/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.107.4.1.2.2.2.8 by camm, Wed Sep 24 16:08:19 2003 UTC revision 1.107.4.1.2.2.2.9 by mjthomas, Fri Oct 10 05:52:14 2003 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
   
2  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
3  # Generated automatically using autoconf version 2.13  # Generated by GNU Autoconf 2.53.
 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.  
4  #  #
5    # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6    # Free Software Foundation, Inc.
7  # This configure script is free software; the Free Software Foundation  # This configure script is free software; the Free Software Foundation
8  # gives unlimited permission to copy, distribute and modify it.  # gives unlimited permission to copy, distribute and modify it.
9    
10  # Defaults:  if expr a : '\(a\)' >/dev/null 2>&1; then
11  ac_help=    as_expr=expr
12    else
13      as_expr=false
14    fi
15    
16    
17    ## --------------------- ##
18    ## M4sh Initialization.  ##
19    ## --------------------- ##
20    
21    # Be Bourne compatible
22    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23      emulate sh
24      NULLCMD=:
25    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26      set -o posix
27    fi
28    
29    # NLS nuisances.
30    # Support unset when possible.
31    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32      as_unset=unset
33    else
34      as_unset=false
35    fi
36    
37    (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38        { $as_unset LANG || test "${LANG+set}" != set; } ||
39          { LANG=C; export LANG; }
40    (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41        { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42          { LC_ALL=C; export LC_ALL; }
43    (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44        { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45          { LC_TIME=C; export LC_TIME; }
46    (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47        { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48          { LC_CTYPE=C; export LC_CTYPE; }
49    (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50        { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51          { LANGUAGE=C; export LANGUAGE; }
52    (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53        { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54          { LC_COLLATE=C; export LC_COLLATE; }
55    (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56        { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57          { LC_NUMERIC=C; export LC_NUMERIC; }
58    (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59        { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60          { LC_MESSAGES=C; export LC_MESSAGES; }
61    
62    
63    # Name of the executable.
64    as_me=`(basename "$0") 2>/dev/null ||
65    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66             X"$0" : 'X\(//\)$' \| \
67             X"$0" : 'X\(/\)$' \| \
68             .     : '\(.\)' 2>/dev/null ||
69    echo X/"$0" |
70        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71              /^X\/\(\/\/\)$/{ s//\1/; q; }
72              /^X\/\(\/\).*/{ s//\1/; q; }
73              s/.*/./; q'`
74    
75    # PATH needs CR, and LINENO needs CR and PATH.
76    # Avoid depending upon Character Ranges.
77    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80    as_cr_digits='0123456789'
81    as_cr_alnum=$as_cr_Letters$as_cr_digits
82    
83    # The user is always right.
84    if test "${PATH_SEPARATOR+set}" != set; then
85      echo "#! /bin/sh" >conftest.sh
86      echo  "exit 0"   >>conftest.sh
87      chmod +x conftest.sh
88      if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89        PATH_SEPARATOR=';'
90      else
91        PATH_SEPARATOR=:
92      fi
93      rm -f conftest.sh
94    fi
95    
96    
97      as_lineno_1=$LINENO
98      as_lineno_2=$LINENO
99      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100      test "x$as_lineno_1" != "x$as_lineno_2" &&
101      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102      # Find who we are.  Look in the path if we contain no path at all
103      # relative or not.
104      case $0 in
105        *[\\/]* ) as_myself=$0 ;;
106        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107    for as_dir in $PATH
108    do
109      IFS=$as_save_IFS
110      test -z "$as_dir" && as_dir=.
111      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112    done
113    
114           ;;
115      esac
116      # We did not find ourselves, most probably we were run as `sh COMMAND'
117      # in which case we are not to be found in the path.
118      if test "x$as_myself" = x; then
119        as_myself=$0
120      fi
121      if test ! -f "$as_myself"; then
122        { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123       { (exit 1); exit 1; }; }
124      fi
125      case $CONFIG_SHELL in
126      '')
127        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129    do
130      IFS=$as_save_IFS
131      test -z "$as_dir" && as_dir=.
132      for as_base in sh bash ksh sh5; do
133             case $as_dir in
134             /*)
135               if ("$as_dir/$as_base" -c '
136      as_lineno_1=$LINENO
137      as_lineno_2=$LINENO
138      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139      test "x$as_lineno_1" != "x$as_lineno_2" &&
140      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141                 CONFIG_SHELL=$as_dir/$as_base
142                 export CONFIG_SHELL
143                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144               fi;;
145             esac
146           done
147    done
148    ;;
149      esac
150    
151      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152      # uniformly replaced by the line number.  The first 'sed' inserts a
153      # line-number line before each line; the second 'sed' does the real
154      # work.  The second script uses 'N' to pair each line-number line
155      # with the numbered line, and appends trailing '-' during
156      # substitution so that $LINENO is not a special case at line end.
157      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159      sed '=' <$as_myself |
160        sed '
161          N
162          s,$,-,
163          : loop
164          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165          t loop
166          s,-$,,
167          s,^['$as_cr_digits']*\n,,
168        ' >$as_me.lineno &&
169      chmod +x $as_me.lineno ||
170        { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171       { (exit 1); exit 1; }; }
172    
173      # Don't try to exec as it changes $[0], causing all sort of problems
174      # (the dirname of $[0] is not the place where we might find the
175      # original and so on.  Autoconf is especially sensible to this).
176      . ./$as_me.lineno
177      # Exit status is that of the last command.
178      exit
179    }
180    
181    
182    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183      *c*,-n*) ECHO_N= ECHO_C='
184    ' ECHO_T='      ' ;;
185      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187    esac
188    
189    if expr a : '\(a\)' >/dev/null 2>&1; then
190      as_expr=expr
191    else
192      as_expr=false
193    fi
194    
195    rm -f conf$$ conf$$.exe conf$$.file
196    echo >conf$$.file
197    if ln -s conf$$.file conf$$ 2>/dev/null; then
198      # We could just check for DJGPP; but this test a) works b) is more generic
199      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200      if test -f conf$$.exe; then
201        # Don't use ln at all; we don't have any links
202        as_ln_s='cp -p'
203      else
204        as_ln_s='ln -s'
205      fi
206    elif ln conf$$.file conf$$ 2>/dev/null; then
207      as_ln_s=ln
208    else
209      as_ln_s='cp -p'
210    fi
211    rm -f conf$$ conf$$.exe conf$$.file
212    
213    as_executable_p="test -f"
214    
215    # Sed expression to map a string onto a valid CPP name.
216    as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217    
218    # Sed expression to map a string onto a valid variable name.
219    as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220    
221    
222    # IFS
223    # We need space, tab and new line, in precisely that order.
224    as_nl='
225    '
226    IFS="   $as_nl"
227    
228    # CDPATH.
229    $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230    
231    
232    # Name of the host.
233    # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234    # so uname gets run too.
235    ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236    
237    exec 6>&1
238    
239    #
240    # Initializations.
241    #
242  ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
243  # Any additions from configure.in:  cross_compiling=no
244  ac_help="$ac_help  subdirs=
245   --enable-maxpage=XXXX will compile in a page table of size XXX (eg '--enable-maxpage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each) "  MFLAGS=
246  ac_help="$ac_help  MAKEFLAGS=
247   --enable-vssize=XXXX will compile in a value stack of size XXX "  SHELL=${CONFIG_SHELL-/bin/sh}
248  ac_help="$ac_help  
249   --enable-bdssize=XXXX will compile in a binding stack of size XXX "  # Maximum number of lines to put in a shell here document.
250  ac_help="$ac_help  # This variable seems obsolete.  It should probably be removed, and
251   --enable-ihssize=XXXX will compile in a invocation history stack of size XXX "  # only ac_max_sed_lines should be used.
252  ac_help="$ac_help  : ${ac_max_here_lines=38}
253   --enable-frssize=XXXX will compile in a frame stack of size XXX "  
254  ac_help="$ac_help  # Identity of this package.
255   --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs "  PACKAGE_NAME=
256  ac_help="$ac_help  PACKAGE_TARNAME=
257   --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes) "  PACKAGE_VERSION=
258  ac_help="$ac_help  PACKAGE_STRING=
259   --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems "  PACKAGE_BUGREPORT=
260  ac_help="$ac_help  
261   --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh  "  # Factoring default headers for most tests.
262  ac_help="$ac_help  ac_includes_default="\
263   --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh  "  #include <stdio.h>
264  ac_help="$ac_help  #if HAVE_SYS_TYPES_H
265   --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info  "  # include <sys/types.h>
266  ac_help="$ac_help  #endif
267   --enable-emacsdir=XXXX will manually specify the location for elisp files  "  #if HAVE_SYS_STAT_H
268  ac_help="$ac_help  # include <sys/stat.h>
269   --enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes) "  #endif
270  ac_help="$ac_help  #if STDC_HEADERS
271   --enable-japi=yes will compile in support for the JAPI graphical interface if present on your system"  # include <stdlib.h>
272  ac_help="$ac_help  # include <stddef.h>
273   --enable-xdr=yes will compile in support for XDR"  #else
274  ac_help="$ac_help  # if HAVE_STDLIB_H
275   --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images  #  include <stdlib.h>
276          "  # endif
277  ac_help="$ac_help  #endif
278   --enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files  #if HAVE_STRING_H
279          "  # if !STDC_HEADERS && HAVE_MEMORY_H
280  ac_help="$ac_help  #  include <memory.h>
281   --enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files  # endif
282          "  # include <string.h>
283  ac_help="$ac_help  #endif
284   --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files  #if HAVE_STRINGS_H
285          "  # include <strings.h>
286  ac_help="$ac_help  #endif
287   --enable-custreloc uses custom gcl code if available for loading  and relocationing object files  #if HAVE_INTTYPES_H
288          "  # include <inttypes.h>
289  ac_help="$ac_help  #else
290   --enable-debug builds gcl with -g in CFLAGS to enable running under gdb  # if HAVE_STDINT_H
291          "  #  include <stdint.h>
292  ac_help="$ac_help  # endif
293   --enable-static will link your GCL against static as opposed to shared system libraries  "  #endif
294  ac_help="$ac_help  #if HAVE_UNISTD_H
295   --enable-pic builds gcl with -fPIC in CFLAGS  # include <unistd.h>
296          "  #endif"
297  ac_help="$ac_help  
  --enable-oldgmp will link against gmp2 instead of gmp3  
         "  
 ac_help="$ac_help  
  --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source  
         "  
 ac_help="$ac_help  
   --with-x                use the X Window System"  
 ac_help="$ac_help  
 --enable-readine    enables command line completion via the readline library "  
 ac_help="$ac_help  
 --enable-ansi builds a large gcl aiming for ansi compliance,  
                     --disable-ansi builds the smaller traditional CLtL1 image"  
298    
299  # Initialize some variables set by options.  # Initialize some variables set by options.
300    ac_init_help=
301    ac_init_version=false
302  # The variables have the same names as the options, with  # The variables have the same names as the options, with
303  # dashes changed to underlines.  # dashes changed to underlines.
304  build=NONE  cache_file=/dev/null
 cache_file=./config.cache  
305  exec_prefix=NONE  exec_prefix=NONE
 host=NONE  
306  no_create=  no_create=
 nonopt=NONE  
307  no_recursion=  no_recursion=
308  prefix=NONE  prefix=NONE
309  program_prefix=NONE  program_prefix=NONE
# Line 95  program_transform_name=s,x,x, Line 312  program_transform_name=s,x,x,
312  silent=  silent=
313  site=  site=
314  srcdir=  srcdir=
 target=NONE  
315  verbose=  verbose=
316  x_includes=NONE  x_includes=NONE
317  x_libraries=NONE  x_libraries=NONE
318    
319    # Installation directory options.
320    # These are left unexpanded so users can "make install exec_prefix=/foo"
321    # and all the variables that are supposed to be based on exec_prefix
322    # by default will actually change.
323    # Use braces instead of parens because sh, perl, etc. also accept them.
324  bindir='${exec_prefix}/bin'  bindir='${exec_prefix}/bin'
325  sbindir='${exec_prefix}/sbin'  sbindir='${exec_prefix}/sbin'
326  libexecdir='${exec_prefix}/libexec'  libexecdir='${exec_prefix}/libexec'
# Line 112  oldincludedir='/usr/include' Line 334  oldincludedir='/usr/include'
334  infodir='${prefix}/info'  infodir='${prefix}/info'
335  mandir='${prefix}/man'  mandir='${prefix}/man'
336    
 # Initialize some other variables.  
 subdirs=  
 MFLAGS= MAKEFLAGS=  
 SHELL=${CONFIG_SHELL-/bin/sh}  
 # Maximum number of lines to put in a shell here document.  
 ac_max_here_lines=12  
   
337  ac_prev=  ac_prev=
338  for ac_option  for ac_option
339  do  do
   
340    # If the previous option needs an argument, assign it.    # If the previous option needs an argument, assign it.
341    if test -n "$ac_prev"; then    if test -n "$ac_prev"; then
342      eval "$ac_prev=\$ac_option"      eval "$ac_prev=\$ac_option"
# Line 130  do Line 344  do
344      continue      continue
345    fi    fi
346    
347    case "$ac_option" in    ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;  
   *) ac_optarg= ;;  
   esac  
348    
349    # Accept the important Cygnus configure options, so we can diagnose typos.    # Accept the important Cygnus configure options, so we can diagnose typos.
350    
351    case "$ac_option" in    case $ac_option in
352    
353    -bindir | --bindir | --bindi | --bind | --bin | --bi)    -bindir | --bindir | --bindi | --bind | --bin | --bi)
354      ac_prev=bindir ;;      ac_prev=bindir ;;
355    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
356      bindir="$ac_optarg" ;;      bindir=$ac_optarg ;;
357    
358    -build | --build | --buil | --bui | --bu)    -build | --build | --buil | --bui | --bu)
359      ac_prev=build ;;      ac_prev=build_alias ;;
360    -build=* | --build=* | --buil=* | --bui=* | --bu=*)    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
361      build="$ac_optarg" ;;      build_alias=$ac_optarg ;;
362    
363    -cache-file | --cache-file | --cache-fil | --cache-fi \    -cache-file | --cache-file | --cache-fil | --cache-fi \
364    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
365      ac_prev=cache_file ;;      ac_prev=cache_file ;;
366    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
367    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
368      cache_file="$ac_optarg" ;;      cache_file=$ac_optarg ;;
369    
370      --config-cache | -C)
371        cache_file=config.cache ;;
372    
373    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
374      ac_prev=datadir ;;      ac_prev=datadir ;;
375    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
376    | --da=*)    | --da=*)
377      datadir="$ac_optarg" ;;      datadir=$ac_optarg ;;
378    
379    -disable-* | --disable-*)    -disable-* | --disable-*)
380      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
381      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
382      if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
383        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
384      fi     { (exit 1); exit 1; }; }
385      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
386      eval "enable_${ac_feature}=no" ;;      eval "enable_$ac_feature=no" ;;
387    
388    -enable-* | --enable-*)    -enable-* | --enable-*)
389      ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
390      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
391      if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
393      fi     { (exit 1); exit 1; }; }
394      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
395      case "$ac_option" in      case $ac_option in
396        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
397        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
398      esac      esac
399      eval "enable_${ac_feature}='$ac_optarg'" ;;      eval "enable_$ac_feature='$ac_optarg'" ;;
400    
401    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
402    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 191  do Line 405  do
405    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
406    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
407    | --exec=* | --exe=* | --ex=*)    | --exec=* | --exe=* | --ex=*)
408      exec_prefix="$ac_optarg" ;;      exec_prefix=$ac_optarg ;;
409    
410    -gas | --gas | --ga | --g)    -gas | --gas | --ga | --g)
411      # Obsolete; use --with-gas.      # Obsolete; use --with-gas.
412      with_gas=yes ;;      with_gas=yes ;;
413    
414    -help | --help | --hel | --he)    -help | --help | --hel | --he | -h)
415      # Omit some internal or obsolete options to make the list less imposing.      ac_init_help=long ;;
416      # This message is too long to be a string in the A/UX 3.1 sh.    -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
417      cat << EOF      ac_init_help=recursive ;;
418  Usage: configure [options] [host]    -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
419  Options: [defaults in brackets after descriptions]      ac_init_help=short ;;
 Configuration:  
   --cache-file=FILE       cache test results in FILE  
   --help                  print this message  
   --no-create             do not create output files  
   --quiet, --silent       do not print \`checking...' messages  
   --version               print the version of autoconf that created configure  
 Directory and file names:  
   --prefix=PREFIX         install architecture-independent files in PREFIX  
                           [$ac_default_prefix]  
   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX  
                           [same as prefix]  
   --bindir=DIR            user executables in DIR [EPREFIX/bin]  
   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]  
   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]  
   --datadir=DIR           read-only architecture-independent data in DIR  
                           [PREFIX/share]  
   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]  
   --sharedstatedir=DIR    modifiable architecture-independent data in DIR  
                           [PREFIX/com]  
   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]  
   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]  
   --includedir=DIR        C header files in DIR [PREFIX/include]  
   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]  
   --infodir=DIR           info documentation in DIR [PREFIX/info]  
   --mandir=DIR            man documentation in DIR [PREFIX/man]  
   --srcdir=DIR            find the sources in DIR [configure dir or ..]  
   --program-prefix=PREFIX prepend PREFIX to installed program names  
   --program-suffix=SUFFIX append SUFFIX to installed program names  
   --program-transform-name=PROGRAM  
                           run sed PROGRAM on installed program names  
 EOF  
     cat << EOF  
 Host type:  
   --build=BUILD           configure for building on BUILD [BUILD=HOST]  
   --host=HOST             configure for HOST [guessed]  
   --target=TARGET         configure for TARGET [TARGET=HOST]  
 Features and packages:  
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)  
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]  
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]  
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)  
   --x-includes=DIR        X include files are in DIR  
   --x-libraries=DIR       X library files are in DIR  
 EOF  
     if test -n "$ac_help"; then  
       echo "--enable and --with options recognized:$ac_help"  
     fi  
     exit 0 ;;  
420    
421    -host | --host | --hos | --ho)    -host | --host | --hos | --ho)
422      ac_prev=host ;;      ac_prev=host_alias ;;
423    -host=* | --host=* | --hos=* | --ho=*)    -host=* | --host=* | --hos=* | --ho=*)
424      host="$ac_optarg" ;;      host_alias=$ac_optarg ;;
425    
426    -includedir | --includedir | --includedi | --included | --include \    -includedir | --includedir | --includedi | --included | --include \
427    | --includ | --inclu | --incl | --inc)    | --includ | --inclu | --incl | --inc)
428      ac_prev=includedir ;;      ac_prev=includedir ;;
429    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
430    | --includ=* | --inclu=* | --incl=* | --inc=*)    | --includ=* | --inclu=* | --incl=* | --inc=*)
431      includedir="$ac_optarg" ;;      includedir=$ac_optarg ;;
432    
433    -infodir | --infodir | --infodi | --infod | --info | --inf)    -infodir | --infodir | --infodi | --infod | --info | --inf)
434      ac_prev=infodir ;;      ac_prev=infodir ;;
435    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
436      infodir="$ac_optarg" ;;      infodir=$ac_optarg ;;
437    
438    -libdir | --libdir | --libdi | --libd)    -libdir | --libdir | --libdi | --libd)
439      ac_prev=libdir ;;      ac_prev=libdir ;;
440    -libdir=* | --libdir=* | --libdi=* | --libd=*)    -libdir=* | --libdir=* | --libdi=* | --libd=*)
441      libdir="$ac_optarg" ;;      libdir=$ac_optarg ;;
442    
443    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
444    | --libexe | --libex | --libe)    | --libexe | --libex | --libe)
445      ac_prev=libexecdir ;;      ac_prev=libexecdir ;;
446    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
447    | --libexe=* | --libex=* | --libe=*)    | --libexe=* | --libex=* | --libe=*)
448      libexecdir="$ac_optarg" ;;      libexecdir=$ac_optarg ;;
449    
450    -localstatedir | --localstatedir | --localstatedi | --localstated \    -localstatedir | --localstatedir | --localstatedi | --localstated \
451    | --localstate | --localstat | --localsta | --localst \    | --localstate | --localstat | --localsta | --localst \
# Line 288  EOF Line 454  EOF
454    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
455    | --localstate=* | --localstat=* | --localsta=* | --localst=* \    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
456    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
457      localstatedir="$ac_optarg" ;;      localstatedir=$ac_optarg ;;
458    
459    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
460      ac_prev=mandir ;;      ac_prev=mandir ;;
461    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
462      mandir="$ac_optarg" ;;      mandir=$ac_optarg ;;
463    
464    -nfp | --nfp | --nf)    -nfp | --nfp | --nf)
465      # Obsolete; use --without-fp.      # Obsolete; use --without-fp.
466      with_fp=no ;;      with_fp=no ;;
467    
468    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
469    | --no-cr | --no-c)    | --no-cr | --no-c | -n)
470      no_create=yes ;;      no_create=yes ;;
471    
472    -no-recursion | --no-recursion | --no-recursio | --no-recursi \    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 314  EOF Line 480  EOF
480    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
481    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
482    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
483      oldincludedir="$ac_optarg" ;;      oldincludedir=$ac_optarg ;;
484    
485    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
486      ac_prev=prefix ;;      ac_prev=prefix ;;
487    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
488      prefix="$ac_optarg" ;;      prefix=$ac_optarg ;;
489    
490    -program-prefix | --program-prefix | --program-prefi | --program-pref \    -program-prefix | --program-prefix | --program-prefi | --program-pref \
491    | --program-pre | --program-pr | --program-p)    | --program-pre | --program-pr | --program-p)
492      ac_prev=program_prefix ;;      ac_prev=program_prefix ;;
493    -program-prefix=* | --program-prefix=* | --program-prefi=* \    -program-prefix=* | --program-prefix=* | --program-prefi=* \
494    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
495      program_prefix="$ac_optarg" ;;      program_prefix=$ac_optarg ;;
496    
497    -program-suffix | --program-suffix | --program-suffi | --program-suff \    -program-suffix | --program-suffix | --program-suffi | --program-suff \
498    | --program-suf | --program-su | --program-s)    | --program-suf | --program-su | --program-s)
499      ac_prev=program_suffix ;;      ac_prev=program_suffix ;;
500    -program-suffix=* | --program-suffix=* | --program-suffi=* \    -program-suffix=* | --program-suffix=* | --program-suffi=* \
501    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
502      program_suffix="$ac_optarg" ;;      program_suffix=$ac_optarg ;;
503    
504    -program-transform-name | --program-transform-name \    -program-transform-name | --program-transform-name \
505    | --program-transform-nam | --program-transform-na \    | --program-transform-nam | --program-transform-na \
# Line 350  EOF Line 516  EOF
516    | --program-transfo=* | --program-transf=* \    | --program-transfo=* | --program-transf=* \
517    | --program-trans=* | --program-tran=* \    | --program-trans=* | --program-tran=* \
518    | --progr-tra=* | --program-tr=* | --program-t=*)    | --progr-tra=* | --program-tr=* | --program-t=*)
519      program_transform_name="$ac_optarg" ;;      program_transform_name=$ac_optarg ;;
520    
521    -q | -quiet | --quiet | --quie | --qui | --qu | --q \    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
522    | -silent | --silent | --silen | --sile | --sil)    | -silent | --silent | --silen | --sile | --sil)
# Line 360  EOF Line 526  EOF
526      ac_prev=sbindir ;;      ac_prev=sbindir ;;
527    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
528    | --sbi=* | --sb=*)    | --sbi=* | --sb=*)
529      sbindir="$ac_optarg" ;;      sbindir=$ac_optarg ;;
530    
531    -sharedstatedir | --sharedstatedir | --sharedstatedi \    -sharedstatedir | --sharedstatedir | --sharedstatedi \
532    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
# Line 371  EOF Line 537  EOF
537    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
538    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
539    | --sha=* | --sh=*)    | --sha=* | --sh=*)
540      sharedstatedir="$ac_optarg" ;;      sharedstatedir=$ac_optarg ;;
541    
542    -site | --site | --sit)    -site | --site | --sit)
543      ac_prev=site ;;      ac_prev=site ;;
544    -site=* | --site=* | --sit=*)    -site=* | --site=* | --sit=*)
545      site="$ac_optarg" ;;      site=$ac_optarg ;;
546    
547    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
548      ac_prev=srcdir ;;      ac_prev=srcdir ;;
549    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
550      srcdir="$ac_optarg" ;;      srcdir=$ac_optarg ;;
551    
552    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
553    | --syscon | --sysco | --sysc | --sys | --sy)    | --syscon | --sysco | --sysc | --sys | --sy)
554      ac_prev=sysconfdir ;;      ac_prev=sysconfdir ;;
555    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
556    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
557      sysconfdir="$ac_optarg" ;;      sysconfdir=$ac_optarg ;;
558    
559    -target | --target | --targe | --targ | --tar | --ta | --t)    -target | --target | --targe | --targ | --tar | --ta | --t)
560      ac_prev=target ;;      ac_prev=target_alias ;;
561    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
562      target="$ac_optarg" ;;      target_alias=$ac_optarg ;;
563    
564    -v | -verbose | --verbose | --verbos | --verbo | --verb)    -v | -verbose | --verbose | --verbos | --verbo | --verb)
565      verbose=yes ;;      verbose=yes ;;
566    
567    -version | --version | --versio | --versi | --vers)    -version | --version | --versio | --versi | --vers | -V)
568      echo "configure generated by autoconf version 2.13"      ac_init_version=: ;;
     exit 0 ;;  
569    
570    -with-* | --with-*)    -with-* | --with-*)
571      ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
572      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
573      if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
575      fi     { (exit 1); exit 1; }; }
576      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
577      case "$ac_option" in      case $ac_option in
578        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
580      esac      esac
581      eval "with_${ac_package}='$ac_optarg'" ;;      eval "with_$ac_package='$ac_optarg'" ;;
582    
583    -without-* | --without-*)    -without-* | --without-*)
584      ac_package=`echo $ac_option|sed -e 's/-*without-//'`      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
585      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
586      if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
588      fi     { (exit 1); exit 1; }; }
589      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package | sed 's/-/_/g'`
590      eval "with_${ac_package}=no" ;;      eval "with_$ac_package=no" ;;
591    
592    --x)    --x)
593      # Obsolete; use --with-x.      # Obsolete; use --with-x.
# Line 433  EOF Line 598  EOF
598      ac_prev=x_includes ;;      ac_prev=x_includes ;;
599    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
600    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
601      x_includes="$ac_optarg" ;;      x_includes=$ac_optarg ;;
602    
603    -x-libraries | --x-libraries | --x-librarie | --x-librari \    -x-libraries | --x-libraries | --x-librarie | --x-librari \
604    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
605      ac_prev=x_libraries ;;      ac_prev=x_libraries ;;
606    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
607    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
608      x_libraries="$ac_optarg" ;;      x_libraries=$ac_optarg ;;
609    
610    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }    -*) { echo "$as_me: error: unrecognized option: $ac_option
611    Try \`$0 --help' for more information." >&2
612       { (exit 1); exit 1; }; }
613      ;;      ;;
614    
615      *=*)
616        ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
617        # Reject names that are not valid shell variable names.
618        expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
619          { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
620       { (exit 1); exit 1; }; }
621        ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
622        eval "$ac_envvar='$ac_optarg'"
623        export $ac_envvar ;;
624    
625    *)    *)
626      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then      # FIXME: should be removed in autoconf 3.0.
627        echo "configure: warning: $ac_option: invalid host type" 1>&2      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
628      fi      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
629      if test "x$nonopt" != xNONE; then        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
630        { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     fi  
     nonopt="$ac_option"  
631      ;;      ;;
632    
633    esac    esac
634  done  done
635    
636  if test -n "$ac_prev"; then  if test -n "$ac_prev"; then
637    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
638  fi    { echo "$as_me: error: missing argument to $ac_option" >&2
639       { (exit 1); exit 1; }; }
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
 # File descriptor usage:  
 # 0 standard input  
 # 1 file creation  
 # 2 errors and warnings  
 # 3 some systems may open it to /dev/tty  
 # 4 used on the Kubota Titan  
 # 6 checking for... messages and results  
 # 5 compiler messages saved in config.log  
 if test "$silent" = yes; then  
   exec 6>/dev/null  
 else  
   exec 6>&1  
640  fi  fi
 exec 5>./config.log  
641    
642  echo "\  # Be sure to have absolute paths.
643  This file contains any messages produced by compilers while  for ac_var in exec_prefix prefix
644  running configure, to aid debugging if configure makes a mistake.  do
645  " 1>&5    eval ac_val=$`echo $ac_var`
646      case $ac_val in
647        [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
648        *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
649       { (exit 1); exit 1; }; };;
650      esac
651    done
652    
653  # Strip out --no-create and --no-recursion so they do not pile up.  # Be sure to have absolute paths.
654  # Also quote any args containing shell metacharacters.  for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
655  ac_configure_args=                localstatedir libdir includedir oldincludedir infodir mandir
 for ac_arg  
656  do  do
657    case "$ac_arg" in    eval ac_val=$`echo $ac_var`
658    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    case $ac_val in
659    | --no-cr | --no-c) ;;      [\\/$]* | ?:[\\/]* ) ;;
660    -no-recursion | --no-recursion | --no-recursio | --no-recursi \      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;     { (exit 1); exit 1; }; };;
   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)  
   ac_configure_args="$ac_configure_args '$ac_arg'" ;;  
   *) ac_configure_args="$ac_configure_args $ac_arg" ;;  
662    esac    esac
663  done  done
664    
665  # NLS nuisances.  # There might be people who depend on the old broken behavior: `$host'
666  # Only set these to C if already set.  These must not be set unconditionally  # used to hold the argument of --host etc.
667  # because not all systems understand e.g. LANG=C (notably SCO).  # FIXME: To remove some day.
668  # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!  build=$build_alias
669  # Non-C LC_CTYPE values break the ctype check.  host=$host_alias
670  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi  target=$target_alias
671  if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi  
672  if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi  # FIXME: To remove some day.
673  if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi  if test "x$host_alias" != x; then
674      if test "x$build_alias" = x; then
675        cross_compiling=maybe
676        echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
677        If a cross compiler is detected then cross compile mode will be used." >&2
678      elif test "x$build_alias" != "x$host_alias"; then
679        cross_compiling=yes
680      fi
681    fi
682    
683  # confdefs.h avoids OS command line length limits that DEFS can exceed.  ac_tool_prefix=
684  rm -rf conftest* confdefs.h  test -n "$host_alias" && ac_tool_prefix=$host_alias-
685  # AIX cpp loses on an empty file, so make sure it contains at least a newline.  
686  echo > confdefs.h  test "$silent" = yes && exec 6>/dev/null
687    
 # A filename unique to this package, relative to the directory that  
 # configure is in, which we can look for to find out if srcdir is correct.  
 ac_unique_file=  
688    
689  # Find the source files, if location was not specified.  # Find the source files, if location was not specified.
690  if test -z "$srcdir"; then  if test -z "$srcdir"; then
691    ac_srcdir_defaulted=yes    ac_srcdir_defaulted=yes
692    # Try the directory containing this script, then its parent.    # Try the directory containing this script, then its parent.
693    ac_prog=$0    ac_confdir=`(dirname "$0") 2>/dev/null ||
694    ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`  $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
695    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.           X"$0" : 'X\(//\)[^/]' \| \
696             X"$0" : 'X\(//\)$' \| \
697             X"$0" : 'X\(/\)' \| \
698             .     : '\(.\)' 2>/dev/null ||
699    echo X"$0" |
700        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
701              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
702              /^X\(\/\/\)$/{ s//\1/; q; }
703              /^X\(\/\).*/{ s//\1/; q; }
704              s/.*/./; q'`
705    srcdir=$ac_confdir    srcdir=$ac_confdir
706    if test ! -r $srcdir/$ac_unique_file; then    if test ! -r $srcdir/$ac_unique_file; then
707      srcdir=..      srcdir=..
# Line 535  else Line 711  else
711  fi  fi
712  if test ! -r $srcdir/$ac_unique_file; then  if test ! -r $srcdir/$ac_unique_file; then
713    if test "$ac_srcdir_defaulted" = yes; then    if test "$ac_srcdir_defaulted" = yes; then
714      { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
715       { (exit 1); exit 1; }; }
716    else    else
717      { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
718       { (exit 1); exit 1; }; }
719    fi    fi
720  fi  fi
721  srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`  srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
722    ac_env_build_alias_set=${build_alias+set}
723    ac_env_build_alias_value=$build_alias
724    ac_cv_env_build_alias_set=${build_alias+set}
725    ac_cv_env_build_alias_value=$build_alias
726    ac_env_host_alias_set=${host_alias+set}
727    ac_env_host_alias_value=$host_alias
728    ac_cv_env_host_alias_set=${host_alias+set}
729    ac_cv_env_host_alias_value=$host_alias
730    ac_env_target_alias_set=${target_alias+set}
731    ac_env_target_alias_value=$target_alias
732    ac_cv_env_target_alias_set=${target_alias+set}
733    ac_cv_env_target_alias_value=$target_alias
734    ac_env_CC_set=${CC+set}
735    ac_env_CC_value=$CC
736    ac_cv_env_CC_set=${CC+set}
737    ac_cv_env_CC_value=$CC
738    ac_env_CFLAGS_set=${CFLAGS+set}
739    ac_env_CFLAGS_value=$CFLAGS
740    ac_cv_env_CFLAGS_set=${CFLAGS+set}
741    ac_cv_env_CFLAGS_value=$CFLAGS
742    ac_env_LDFLAGS_set=${LDFLAGS+set}
743    ac_env_LDFLAGS_value=$LDFLAGS
744    ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
745    ac_cv_env_LDFLAGS_value=$LDFLAGS
746    ac_env_CPPFLAGS_set=${CPPFLAGS+set}
747    ac_env_CPPFLAGS_value=$CPPFLAGS
748    ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
749    ac_cv_env_CPPFLAGS_value=$CPPFLAGS
750    ac_env_CPP_set=${CPP+set}
751    ac_env_CPP_value=$CPP
752    ac_cv_env_CPP_set=${CPP+set}
753    ac_cv_env_CPP_value=$CPP
754    
755    #
756    # Report the --help message.
757    #
758    if test "$ac_init_help" = "long"; then
759      # Omit some internal or obsolete options to make the list less imposing.
760      # This message is too long to be a string in the A/UX 3.1 sh.
761      cat <<_ACEOF
762    \`configure' configures this package to adapt to many kinds of systems.
763    
764    Usage: $0 [OPTION]... [VAR=VALUE]...
765    
766    To assign environment variables (e.g., CC, CFLAGS...), specify them as
767    VAR=VALUE.  See below for descriptions of some of the useful variables.
768    
769    Defaults for the options are specified in brackets.
770    
771    Configuration:
772      -h, --help              display this help and exit
773          --help=short        display options specific to this package
774          --help=recursive    display the short help of all the included packages
775      -V, --version           display version information and exit
776      -q, --quiet, --silent   do not print \`checking...' messages
777          --cache-file=FILE   cache test results in FILE [disabled]
778      -C, --config-cache      alias for \`--cache-file=config.cache'
779      -n, --no-create         do not create output files
780          --srcdir=DIR        find the sources in DIR [configure dir or \`..']
781    
782    _ACEOF
783    
784      cat <<_ACEOF
785    Installation directories:
786      --prefix=PREFIX         install architecture-independent files in PREFIX
787                              [$ac_default_prefix]
788      --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
789                              [PREFIX]
790    
791    By default, \`make install' will install all the files in
792    \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
793    an installation prefix other than \`$ac_default_prefix' using \`--prefix',
794    for instance \`--prefix=\$HOME'.
795    
796    For better control, use the options below.
797    
798    Fine tuning of the installation directories:
799      --bindir=DIR           user executables [EPREFIX/bin]
800      --sbindir=DIR          system admin executables [EPREFIX/sbin]
801      --libexecdir=DIR       program executables [EPREFIX/libexec]
802      --datadir=DIR          read-only architecture-independent data [PREFIX/share]
803      --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
804      --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
805      --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
806      --libdir=DIR           object code libraries [EPREFIX/lib]
807      --includedir=DIR       C header files [PREFIX/include]
808      --oldincludedir=DIR    C header files for non-gcc [/usr/include]
809      --infodir=DIR          info documentation [PREFIX/info]
810      --mandir=DIR           man documentation [PREFIX/man]
811    _ACEOF
812    
813      cat <<\_ACEOF
814    
815    X features:
816      --x-includes=DIR    X include files are in DIR
817      --x-libraries=DIR   X library files are in DIR
818    
819    System types:
820      --build=BUILD     configure for building on BUILD [guessed]
821      --host=HOST       cross-compile to build programs to run on HOST [BUILD]
822    _ACEOF
823    fi
824    
825    if test -n "$ac_init_help"; then
826    
827      cat <<\_ACEOF
828    
829    Optional Features:
830      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
831      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
832     --enable-maxpage=XXXX will compile in a page table of size XXX (eg '--enable-maxpage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each)
833     --enable-vssize=XXXX will compile in a value stack of size XXX
834     --enable-bdssize=XXXX will compile in a binding stack of size XXX
835     --enable-ihssize=XXXX will compile in a invocation history stack of size XXX
836     --enable-frssize=XXXX will compile in a frame stack of size XXX
837     --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs
838     --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes)
839     --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems
840     --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh
841     --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh
842     --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info
843     --enable-emacsdir=XXXX will manually specify the location for elisp files
844     --enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes)
845     --enable-japi=yes will compile in support for the JAPI graphical interface if present on your system
846     --enable-xdr=yes will compile in support for XDR
847     --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images
848    
849     --enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files
850    
851     --enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files
852    
853     --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files
854    
855     --enable-custreloc uses custom gcl code if available for loading  and relocationing object files
856    
857     --enable-debug builds gcl with -g in CFLAGS to enable running under gdb
858    
859     --enable-static will link your GCL against static as opposed to shared system libraries
860     --enable-pic builds gcl with -fPIC in CFLAGS
861    
862     --enable-oldgmp will link against gmp2 instead of gmp3
863    
864     --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source
865    
866    --enable-readine    enables command line completion via the readline library
867    --enable-ansi builds a large gcl aiming for ansi compliance,
868                        --disable-ansi builds the smaller traditional CLtL1 image
869    
870    Optional Packages:
871      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
872      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
873      --with-x                use the X Window System
874    
875    Some influential environment variables:
876      CC          C compiler command
877      CFLAGS      C compiler flags
878      LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
879                  nonstandard directory <lib dir>
880      CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
881                  headers in a nonstandard directory <include dir>
882      CPP         C preprocessor
883    
884    Use these variables to override the choices made by `configure' or to help
885    it to find libraries and programs with nonstandard names/locations.
886    
887    _ACEOF
888    fi
889    
890    if test "$ac_init_help" = "recursive"; then
891      # If there are subdirs, report their specific --help.
892      ac_popdir=`pwd`
893      for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894        test -d $ac_dir || continue
895        ac_builddir=.
896    
897    if test "$ac_dir" != .; then
898      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899      # A "../" for each directory in $ac_dir_suffix.
900      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901    else
902      ac_dir_suffix= ac_top_builddir=
903    fi
904    
905    case $srcdir in
906      .)  # No --srcdir option.  We are building in place.
907        ac_srcdir=.
908        if test -z "$ac_top_builddir"; then
909           ac_top_srcdir=.
910        else
911           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912        fi ;;
913      [\\/]* | ?:[\\/]* )  # Absolute path.
914        ac_srcdir=$srcdir$ac_dir_suffix;
915        ac_top_srcdir=$srcdir ;;
916      *) # Relative path.
917        ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918        ac_top_srcdir=$ac_top_builddir$srcdir ;;
919    esac
920    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
921    # absolute.
922    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
923    ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
924    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
925    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
926    
927        cd $ac_dir
928        # Check for guested configure; otherwise get Cygnus style configure.
929        if test -f $ac_srcdir/configure.gnu; then
930          echo
931          $SHELL $ac_srcdir/configure.gnu  --help=recursive
932        elif test -f $ac_srcdir/configure; then
933          echo
934          $SHELL $ac_srcdir/configure  --help=recursive
935        elif test -f $ac_srcdir/configure.ac ||
936               test -f $ac_srcdir/configure.in; then
937          echo
938          $ac_configure --help
939        else
940          echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
941        fi
942        cd $ac_popdir
943      done
944    fi
945    
946    test -n "$ac_init_help" && exit 0
947    if $ac_init_version; then
948      cat <<\_ACEOF
949    
950    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
951    Free Software Foundation, Inc.
952    This configure script is free software; the Free Software Foundation
953    gives unlimited permission to copy, distribute and modify it.
954    _ACEOF
955      exit 0
956    fi
957    exec 5>config.log
958    cat >&5 <<_ACEOF
959    This file contains any messages produced by compilers while
960    running configure, to aid debugging if configure makes a mistake.
961    
962    It was created by $as_me, which was
963    generated by GNU Autoconf 2.53.  Invocation command line was
964    
965      $ $0 $@
966    
967    _ACEOF
968    {
969    cat <<_ASUNAME
970    ## --------- ##
971    ## Platform. ##
972    ## --------- ##
973    
974    hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
975    uname -m = `(uname -m) 2>/dev/null || echo unknown`
976    uname -r = `(uname -r) 2>/dev/null || echo unknown`
977    uname -s = `(uname -s) 2>/dev/null || echo unknown`
978    uname -v = `(uname -v) 2>/dev/null || echo unknown`
979    
980    /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
981    /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
982    
983    /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
984    /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
985    /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
986    hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
987    /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
988    /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
989    /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
990    
991    _ASUNAME
992    
993    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
994    for as_dir in $PATH
995    do
996      IFS=$as_save_IFS
997      test -z "$as_dir" && as_dir=.
998      echo "PATH: $as_dir"
999    done
1000    
1001    } >&5
1002    
1003    cat >&5 <<_ACEOF
1004    
1005    
1006    ## ----------- ##
1007    ## Core tests. ##
1008    ## ----------- ##
1009    
1010    _ACEOF
1011    
1012    
1013    # Keep a trace of the command line.
1014    # Strip out --no-create and --no-recursion so they do not pile up.
1015    # Also quote any args containing shell meta-characters.
1016    ac_configure_args=
1017    ac_sep=
1018    for ac_arg
1019    do
1020      case $ac_arg in
1021      -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022      | --no-cr | --no-c | -n ) continue ;;
1023      -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024      | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025        continue ;;
1026      *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1027        ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1028      esac
1029      case " $ac_configure_args " in
1030        *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1031        *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1032           ac_sep=" " ;;
1033      esac
1034      # Get rid of the leading space.
1035    done
1036    
1037    # When interrupted or exit'd, cleanup temporary files, and complete
1038    # config.log.  We remove comments because anyway the quotes in there
1039    # would cause problems or look ugly.
1040    # WARNING: Be sure not to use single quotes in there, as some shells,
1041    # such as our DU 5.0 friend, will then `close' the trap.
1042    trap 'exit_status=$?
1043      # Save into config.log some information that might help in debugging.
1044      {
1045        echo
1046        cat <<\_ASBOX
1047    ## ---------------- ##
1048    ## Cache variables. ##
1049    ## ---------------- ##
1050    _ASBOX
1051        echo
1052        # The following way of writing the cache mishandles newlines in values,
1053    {
1054      (set) 2>&1 |
1055        case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1056        *ac_space=\ *)
1057          sed -n \
1058            "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1059              s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1060          ;;
1061        *)
1062          sed -n \
1063            "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1064          ;;
1065        esac;
1066    }
1067        echo
1068        if test -s confdefs.h; then
1069          cat <<\_ASBOX
1070    ## ----------- ##
1071    ## confdefs.h. ##
1072    ## ----------- ##
1073    _ASBOX
1074          echo
1075          sed "/^$/d" confdefs.h
1076          echo
1077        fi
1078        test "$ac_signal" != 0 &&
1079          echo "$as_me: caught signal $ac_signal"
1080        echo "$as_me: exit $exit_status"
1081      } >&5
1082      rm -f core core.* *.core &&
1083      rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1084        exit $exit_status
1085         ' 0
1086    for ac_signal in 1 2 13 15; do
1087      trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1088    done
1089    ac_signal=0
1090    
1091    # confdefs.h avoids OS command line length limits that DEFS can exceed.
1092    rm -rf conftest* confdefs.h
1093    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1094    echo >confdefs.h
1095    
1096    # Predefined preprocessor variables.
1097    
1098    cat >>confdefs.h <<_ACEOF
1099    #define PACKAGE_NAME "$PACKAGE_NAME"
1100    _ACEOF
1101    
1102    
1103    cat >>confdefs.h <<_ACEOF
1104    #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1105    _ACEOF
1106    
1107    
1108    cat >>confdefs.h <<_ACEOF
1109    #define PACKAGE_VERSION "$PACKAGE_VERSION"
1110    _ACEOF
1111    
1112    
1113    cat >>confdefs.h <<_ACEOF
1114    #define PACKAGE_STRING "$PACKAGE_STRING"
1115    _ACEOF
1116    
1117    
1118    cat >>confdefs.h <<_ACEOF
1119    #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1120    _ACEOF
1121    
1122    
1123    # Let the site file select an alternate cache file if it wants to.
1124  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
1125  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
1126    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 552  if test -z "$CONFIG_SITE"; then Line 1131  if test -z "$CONFIG_SITE"; then
1131  fi  fi
1132  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
1133    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
1134      echo "loading site script $ac_site_file"      { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1135    echo "$as_me: loading site script $ac_site_file" >&6;}
1136        sed 's/^/| /' "$ac_site_file" >&5
1137      . "$ac_site_file"      . "$ac_site_file"
1138    fi    fi
1139  done  done
1140    
1141  if test -r "$cache_file"; then  if test -r "$cache_file"; then
1142    echo "loading cache $cache_file"    # Some versions of bash will fail to source /dev/null (special
1143    . $cache_file    # files actually), so we avoid doing that.
1144      if test -f "$cache_file"; then
1145        { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1146    echo "$as_me: loading cache $cache_file" >&6;}
1147        case $cache_file in
1148          [\\/]* | ?:[\\/]* ) . $cache_file;;
1149          *)                      . ./$cache_file;;
1150        esac
1151      fi
1152  else  else
1153    echo "creating cache $cache_file"    { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1154    > $cache_file  echo "$as_me: creating cache $cache_file" >&6;}
1155      >$cache_file
1156    fi
1157    
1158    # Check that the precious variables saved in the cache have kept the same
1159    # value.
1160    ac_cache_corrupted=false
1161    for ac_var in `(set) 2>&1 |
1162                   sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1163      eval ac_old_set=\$ac_cv_env_${ac_var}_set
1164      eval ac_new_set=\$ac_env_${ac_var}_set
1165      eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1166      eval ac_new_val="\$ac_env_${ac_var}_value"
1167      case $ac_old_set,$ac_new_set in
1168        set,)
1169          { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1170    echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1171          ac_cache_corrupted=: ;;
1172        ,set)
1173          { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1174    echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1175          ac_cache_corrupted=: ;;
1176        ,);;
1177        *)
1178          if test "x$ac_old_val" != "x$ac_new_val"; then
1179            { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1180    echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1181            { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1182    echo "$as_me:   former value:  $ac_old_val" >&2;}
1183            { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1184    echo "$as_me:   current value: $ac_new_val" >&2;}
1185            ac_cache_corrupted=:
1186          fi;;
1187      esac
1188      # Pass precious variables to config.status.
1189      if test "$ac_new_set" = set; then
1190        case $ac_new_val in
1191        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1192          ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1193        *) ac_arg=$ac_var=$ac_new_val ;;
1194        esac
1195        case " $ac_configure_args " in
1196          *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1197          *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1198        esac
1199      fi
1200    done
1201    if $ac_cache_corrupted; then
1202      { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1203    echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1204      { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1205    echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1206       { (exit 1); exit 1; }; }
1207  fi  fi
1208    
1209  ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
1210  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
1211  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1212  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1213  cross_compiling=$ac_cv_prog_cc_cross  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1214    
1215  ac_exeext=  
1216  ac_objext=o  
1217  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  
1218    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  
1219    if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then  
1220      ac_n= ac_c='  
1221  ' ac_t='        '  
1222    else  
1223      ac_n=-n ac_c= ac_t=  
1224    fi  
1225  else  
1226    ac_n= ac_c='\c' ac_t=  
1227  fi  
1228    
1229    
1230    
1231    
1232    ac_config_headers="$ac_config_headers h/gclincl.h"
1233    
1234    
1235  VERSION=`cat majvers`.`cat minvers`  VERSION=`cat majvers`.`cat minvers`
# Line 602  help="--enable-maxpage=XXXX will compile Line 1245  help="--enable-maxpage=XXXX will compile
1245  # Check whether --enable-maxpage or --disable-maxpage was given.  # Check whether --enable-maxpage or --disable-maxpage was given.
1246  if test "${enable_maxpage+set}" = set; then  if test "${enable_maxpage+set}" = set; then
1247    enableval="$enable_maxpage"    enableval="$enable_maxpage"
1248    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1249  #define MAXPAGE $enable_maxpage  #define MAXPAGE $enable_maxpage
1250  EOF  _ACEOF
   
 fi  
1251    
1252    fi;
1253    
1254  # Check whether --enable-vssize or --disable-vssize was given.  # Check whether --enable-vssize or --disable-vssize was given.
1255  if test "${enable_vssize+set}" = set; then  if test "${enable_vssize+set}" = set; then
1256    enableval="$enable_vssize"    enableval="$enable_vssize"
1257    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1258  #define VSSIZE $enable_vssize  #define VSSIZE $enable_vssize
1259  EOF  _ACEOF
   
 fi  
1260    
1261    fi;
1262    
1263  # Check whether --enable-bdssize or --disable-bdssize was given.  # Check whether --enable-bdssize or --disable-bdssize was given.
1264  if test "${enable_bdssize+set}" = set; then  if test "${enable_bdssize+set}" = set; then
1265    enableval="$enable_bdssize"    enableval="$enable_bdssize"
1266    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1267  #define BDSSIZE $enable_bdssize  #define BDSSIZE $enable_bdssize
1268  EOF  _ACEOF
   
 fi  
1269    
1270    fi;
1271    
1272  # Check whether --enable-ihssize or --disable-ihssize was given.  # Check whether --enable-ihssize or --disable-ihssize was given.
1273  if test "${enable_ihssize+set}" = set; then  if test "${enable_ihssize+set}" = set; then
1274    enableval="$enable_ihssize"    enableval="$enable_ihssize"
1275    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1276  #define IHSSIZE $enable_ihssize  #define IHSSIZE $enable_ihssize
1277  EOF  _ACEOF
   
 fi  
1278    
1279    fi;
1280    
1281  # Check whether --enable-frssize or --disable-frssize was given.  # Check whether --enable-frssize or --disable-frssize was given.
1282  if test "${enable_frssize+set}" = set; then  if test "${enable_frssize+set}" = set; then
1283    enableval="$enable_frssize"    enableval="$enable_frssize"
1284    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1285  #define FRSSIZE $enable_frssize  #define FRSSIZE $enable_frssize
1286  EOF  _ACEOF
   
 fi  
1287    
1288    fi;
1289    
1290  # Check whether --enable-machine or --disable-machine was given.  # Check whether --enable-machine or --disable-machine was given.
1291  if test "${enable_machine+set}" = set; then  if test "${enable_machine+set}" = set; then
# Line 655  if test "${enable_machine+set}" = set; t Line 1293  if test "${enable_machine+set}" = set; t
1293    enable_machine=$enableval    enable_machine=$enableval
1294  else  else
1295    enable_machine=""    enable_machine=""
1296  fi  fi;
   
1297    
1298  # Check whether --enable-gmp or --disable-gmp was given.  # Check whether --enable-gmp or --disable-gmp was given.
1299  if test "${enable_gmp+set}" = set; then  if test "${enable_gmp+set}" = set; then
# Line 664  if test "${enable_gmp+set}" = set; then Line 1301  if test "${enable_gmp+set}" = set; then
1301    use_gmp=$enableval    use_gmp=$enableval
1302  else  else
1303    use_gmp="yes"    use_gmp="yes"
1304  fi  fi;
   
1305    
1306  # Check whether --enable-notify or --disable-notify was given.  # Check whether --enable-notify or --disable-notify was given.
1307  if test "${enable_notify+set}" = set; then  if test "${enable_notify+set}" = set; then
# Line 673  if test "${enable_notify+set}" = set; th Line 1309  if test "${enable_notify+set}" = set; th
1309    enable_notify=$enableval    enable_notify=$enableval
1310  else  else
1311    enable_notify="yes"    enable_notify="yes"
1312  fi  fi;
   
1313    
1314  # Check whether --enable-tkconfig or --disable-tkconfig was given.  # Check whether --enable-tkconfig or --disable-tkconfig was given.
1315  if test "${enable_tkconfig+set}" = set; then  if test "${enable_tkconfig+set}" = set; then
# Line 682  if test "${enable_tkconfig+set}" = set; Line 1317  if test "${enable_tkconfig+set}" = set;
1317    TK_CONFIG_PREFIX=$enableval    TK_CONFIG_PREFIX=$enableval
1318  else  else
1319    TK_CONFIG_PREFIX="unknown"    TK_CONFIG_PREFIX="unknown"
1320  fi  fi;
   
1321    
1322    
1323  # Check whether --enable-tclconfig or --disable-tclconfig was given.  # Check whether --enable-tclconfig or --disable-tclconfig was given.
# Line 692  if test "${enable_tclconfig+set}" = set; Line 1326  if test "${enable_tclconfig+set}" = set;
1326    TCL_CONFIG_PREFIX=$enableval    TCL_CONFIG_PREFIX=$enableval
1327  else  else
1328    TCL_CONFIG_PREFIX="unknown"    TCL_CONFIG_PREFIX="unknown"
1329  fi  fi;
   
1330    
1331  # Check whether --enable-infodir or --disable-infodir was given.  # Check whether --enable-infodir or --disable-infodir was given.
1332  if test "${enable_infodir+set}" = set; then  if test "${enable_infodir+set}" = set; then
# Line 701  if test "${enable_infodir+set}" = set; t Line 1334  if test "${enable_infodir+set}" = set; t
1334    INFO_DIR=$enableval    INFO_DIR=$enableval
1335  else  else
1336    INFO_DIR="unknown"    INFO_DIR="unknown"
1337  fi  fi;
   
1338    
1339  # Check whether --enable-emacsdir or --disable-emacsdir was given.  # Check whether --enable-emacsdir or --disable-emacsdir was given.
1340  if test "${enable_emacsdir+set}" = set; then  if test "${enable_emacsdir+set}" = set; then
# Line 710  if test "${enable_emacsdir+set}" = set; Line 1342  if test "${enable_emacsdir+set}" = set;
1342    EMACS_SITE_LISP=$enableval    EMACS_SITE_LISP=$enableval
1343  else  else
1344    EMACS_SITE_LISP="unknown"    EMACS_SITE_LISP="unknown"
1345  fi  fi;
   
1346    
1347  # Check whether --enable-common-binary or --disable-common-binary was given.  # Check whether --enable-common-binary or --disable-common-binary was given.
1348  if test "${enable_common_binary+set}" = set; then  if test "${enable_common_binary+set}" = set; then
# Line 719  if test "${enable_common_binary+set}" = Line 1350  if test "${enable_common_binary+set}" =
1350    use_common_binary=$enableval    use_common_binary=$enableval
1351  else  else
1352    use_common_binary="yes"    use_common_binary="yes"
1353  fi  fi;
   
1354    
1355  # Check whether --enable-japi or --disable-japi was given.  # Check whether --enable-japi or --disable-japi was given.
1356  if test "${enable_japi+set}" = set; then  if test "${enable_japi+set}" = set; then
# Line 728  if test "${enable_japi+set}" = set; then Line 1358  if test "${enable_japi+set}" = set; then
1358    try_japi=$enableval    try_japi=$enableval
1359  else  else
1360    try_japi="no"    try_japi="no"
1361  fi  fi;
   
1362    
1363  # Check whether --enable-xdr or --disable-xdr was given.  # Check whether --enable-xdr or --disable-xdr was given.
1364  if test "${enable_xdr+set}" = set; then  if test "${enable_xdr+set}" = set; then
# Line 737  if test "${enable_xdr+set}" = set; then Line 1366  if test "${enable_xdr+set}" = set; then
1366    try_xdr=$enableval    try_xdr=$enableval
1367  else  else
1368    try_xdr="no"    try_xdr="no"
1369  fi  fi;
   
1370    
1371  #  #
1372  # Host information  # Host information
1373  #  #
1374    
1375    
# Line 755  for ac_dir in $srcdir $srcdir/.. $srcdir Line 1383  for ac_dir in $srcdir $srcdir/.. $srcdir
1383      ac_aux_dir=$ac_dir      ac_aux_dir=$ac_dir
1384      ac_install_sh="$ac_aux_dir/install.sh -c"      ac_install_sh="$ac_aux_dir/install.sh -c"
1385      break      break
1386      elif test -f $ac_dir/shtool; then
1387        ac_aux_dir=$ac_dir
1388        ac_install_sh="$ac_aux_dir/shtool install -c"
1389        break
1390    fi    fi
1391  done  done
1392  if test -z "$ac_aux_dir"; then  if test -z "$ac_aux_dir"; then
1393    { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }    { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1394  fi  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1395  ac_config_guess=$ac_aux_dir/config.guess     { (exit 1); exit 1; }; }
1396  ac_config_sub=$ac_aux_dir/config.sub  fi
1397  ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.  ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1398    ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1399    ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1400    
1401  # Make sure we can run config.sub.  # Make sure we can run config.sub.
1402  if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :  $ac_config_sub sun4 >/dev/null 2>&1 ||
1403  else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }    { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404  fi  echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405       { (exit 1); exit 1; }; }
1406  echo $ac_n "checking host system type""... $ac_c" 1>&6  
1407  echo "configure:775: checking host system type" >&5  echo "$as_me:$LINENO: checking build system type" >&5
1408    echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409  host_alias=$host  if test "${ac_cv_build+set}" = set; then
1410  case "$host_alias" in    echo $ECHO_N "(cached) $ECHO_C" >&6
1411  NONE)  else
1412    case $nonopt in    ac_cv_build_alias=$build_alias
1413    NONE)  test -z "$ac_cv_build_alias" &&
1414      if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :    ac_cv_build_alias=`$ac_config_guess`
1415      else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }  test -z "$ac_cv_build_alias" &&
1416      fi ;;    { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417    *) host_alias=$nonopt ;;  echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418    esac ;;     { (exit 1); exit 1; }; }
1419  esac  ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421    echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422       { (exit 1); exit 1; }; }
1423    
1424    fi
1425    echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426    echo "${ECHO_T}$ac_cv_build" >&6
1427    build=$ac_cv_build
1428    build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429    build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430    build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431    
1432    
1433    echo "$as_me:$LINENO: checking host system type" >&5
1434    echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435    if test "${ac_cv_host+set}" = set; then
1436      echo $ECHO_N "(cached) $ECHO_C" >&6
1437    else
1438      ac_cv_host_alias=$host_alias
1439    test -z "$ac_cv_host_alias" &&
1440      ac_cv_host_alias=$ac_cv_build_alias
1441    ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443    echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444       { (exit 1); exit 1; }; }
1445    
1446    fi
1447    echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448    echo "${ECHO_T}$ac_cv_host" >&6
1449    host=$ac_cv_host
1450    host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451    host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452    host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453    
 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`  
 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  
 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  
 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  
 echo "$ac_t""$host" 1>&6  
1454    
1455  canonical=$host  canonical=$host
1456  ## host=CPU-COMPANY-SYSTEM  ## host=CPU-COMPANY-SYSTEM
1457  echo "$ac_t""host=$host" 1>&6  echo "$as_me:$LINENO: result: host=$host" >&5
1458    echo "${ECHO_T}host=$host" >&6
1459    
1460  PROCESSOR_FLAGS=${PROCESSOR_FLAGS:-""}  PROCESSOR_FLAGS=${PROCESSOR_FLAGS:-""}
1461    
# Line 873  case $canonical in Line 1535  case $canonical in
1535             IRIX3*)             IRIX3*)
1536              use=sgi4d;;              use=sgi4d;;
1537         esac ;;         esac ;;
1538    
1539    
1540       m68k-apple-aux*)       m68k-apple-aux*)
1541       use=mac2;;       use=mac2;;
# Line 954  case $canonical in Line 1616  case $canonical in
1616              then use=mingw              then use=mingw
1617            else  use=gnuwin95            else  use=gnuwin95
1618          fi;;          fi;;
1619      
1620  esac  esac
1621    
1622    
# Line 970  def_custreloc="no" Line 1632  def_custreloc="no"
1632  def_oldgmp="no"  def_oldgmp="no"
1633  def_pic="no";  def_pic="no";
1634  def_static="no";  def_static="no";
1635  case $use in  case $use in
1636       *linux)       *linux)
1637          ln -snf linux.defs h/$use.defs;          ln -snf linux.defs h/$use.defs;
1638          case $use in          case $use in
# Line 979  case $use in Line 1641  case $use in
1641                  mips*)                  mips*)
1642                          def_dlopen="yes" ; def_statsysbfd="no" ;;                          def_dlopen="yes" ; def_statsysbfd="no" ;;
1643  # def_static -- Function descriptors are currently realized at runtime in a non-reproducible fashion  # def_static -- Function descriptors are currently realized at runtime in a non-reproducible fashion
1644  # on these architectures -- CM                    # on these architectures -- CM
1645                  ia64*)                  ia64*)
1646                          def_dlopen="yes" ; def_statsysbfd="no" ; def_static="no" ;;                          def_dlopen="yes" ; def_statsysbfd="no" ; def_static="no" ;;
1647                  hppa*)                  hppa*)
# Line 994  esac Line 1656  esac
1656  # Check whether --enable-dlopen or --disable-dlopen was given.  # Check whether --enable-dlopen or --disable-dlopen was given.
1657  if test "${enable_dlopen+set}" = set; then  if test "${enable_dlopen+set}" = set; then
1658    enableval="$enable_dlopen"    enableval="$enable_dlopen"
1659    :  
1660  else  else
1661    enable_dlopen="$def_dlopen"    enable_dlopen="$def_dlopen"
1662  fi  fi;
   
1663  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.
1664  if test "${enable_statsysbfd+set}" = set; then  if test "${enable_statsysbfd+set}" = set; then
1665    enableval="$enable_statsysbfd"    enableval="$enable_statsysbfd"
1666    :  
1667  else  else
1668    enable_statsysbfd="$def_statsysbfd"    enable_statsysbfd="$def_statsysbfd"
1669  fi  fi;
   
1670  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.
1671  if test "${enable_dynsysbfd+set}" = set; then  if test "${enable_dynsysbfd+set}" = set; then
1672    enableval="$enable_dynsysbfd"    enableval="$enable_dynsysbfd"
1673    :  
1674  else  else
1675    enable_dynsysbfd="no"    enable_dynsysbfd="no"
1676  fi  fi;
   
1677  # Check whether --enable-locbfd or --disable-locbfd was given.  # Check whether --enable-locbfd or --disable-locbfd was given.
1678  if test "${enable_locbfd+set}" = set; then  if test "${enable_locbfd+set}" = set; then
1679    enableval="$enable_locbfd"    enableval="$enable_locbfd"
1680    :  
1681  else  else
1682    enable_locbfd="no"    enable_locbfd="no"
1683  fi  fi;
   
1684  # Check whether --enable-custreloc or --disable-custreloc was given.  # Check whether --enable-custreloc or --disable-custreloc was given.
1685  if test "${enable_custreloc+set}" = set; then  if test "${enable_custreloc+set}" = set; then
1686    enableval="$enable_custreloc"    enableval="$enable_custreloc"
1687    :  
1688  else  else
1689    enable_custreloc="$def_custreloc"    enable_custreloc="$def_custreloc"
1690  fi  fi;
   
1691  # Check whether --enable-debug or --disable-debug was given.  # Check whether --enable-debug or --disable-debug was given.
1692  if test "${enable_debug+set}" = set; then  if test "${enable_debug+set}" = set; then
1693    enableval="$enable_debug"    enableval="$enable_debug"
1694    :  
1695  else  else
1696    enable_debug="no"    enable_debug="no"
1697  fi  fi;
   
1698  # Check whether --enable-static or --disable-static was given.  # Check whether --enable-static or --disable-static was given.
1699  if test "${enable_static+set}" = set; then  if test "${enable_static+set}" = set; then
1700    enableval="$enable_static"    enableval="$enable_static"
1701    enable_static=$enableval    enable_static=$enableval
1702  else  else
1703    enable_static="$def_static"    enable_static="$def_static"
1704  fi  fi;
   
1705  # Check whether --enable-pic or --disable-pic was given.  # Check whether --enable-pic or --disable-pic was given.
1706  if test "${enable_pic+set}" = set; then  if test "${enable_pic+set}" = set; then
1707    enableval="$enable_pic"    enableval="$enable_pic"
1708    :  
1709  else  else
1710    enable_pic="$def_pic"    enable_pic="$def_pic"
1711  fi  fi;
   
1712    
1713  # Check whether --enable-oldgmp or --disable-oldgmp was given.  # Check whether --enable-oldgmp or --disable-oldgmp was given.
1714  if test "${enable_oldgmp+set}" = set; then  if test "${enable_oldgmp+set}" = set; then
1715    enableval="$enable_oldgmp"    enableval="$enable_oldgmp"
1716    :  
1717  else  else
1718    enable_oldgmp="$def_oldgmp"    enable_oldgmp="$def_oldgmp"
1719  fi  fi;
   
1720    
1721  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.
1722  if test "${enable_dynsysgmp+set}" = set; then  if test "${enable_dynsysgmp+set}" = set; then
1723    enableval="$enable_dynsysgmp"    enableval="$enable_dynsysgmp"
1724    :  
1725  else  else
1726    enable_dynsysgmp="no"    enable_dynsysgmp="no"
1727  fi  fi;
   
1728    
1729  load_opt="0"  load_opt="0"
1730  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
# Line 1122  fi Line 1774  fi
1774  ##  ##
1775  #if test "$use" = "unknown" ; then  #if test "$use" = "unknown" ; then
1776  #types=`echo h/*.defs` | sed -e "s:h/::g" -e "s:\.defs:g"`  #types=`echo h/*.defs` | sed -e "s:h/::g" -e "s:\.defs:g"`
1777  #echo got canonical=$canonical, but was not recognized.  #echo got canonical=$canonical, but was not recognized.
1778  #echo Unable to guess type to use.  Try one of  #echo Unable to guess type to use.  Try one of
1779  #exit(1)  #exit(1)
1780  #fi  #fi
1781    
1782  echo "$ac_t""use=$use" 1>&6      echo "$as_me:$LINENO: result: use=$use" >&5
1783    echo "${ECHO_T}use=$use" >&6
1784    
1785    
1786  #  #
1787  # System programs  # System programs
1788  #  #
1789    
1790  # Extract the first word of "gcc", so it can be a program name with args.  ac_ext=c
1791    ac_cpp='$CPP $CPPFLAGS'
1792    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795    if test -n "$ac_tool_prefix"; then
1796      # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1797    set dummy ${ac_tool_prefix}gcc; ac_word=$2
1798    echo "$as_me:$LINENO: checking for $ac_word" >&5
1799    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800    if test "${ac_cv_prog_CC+set}" = set; then
1801      echo $ECHO_N "(cached) $ECHO_C" >&6
1802    else
1803      if test -n "$CC"; then
1804      ac_cv_prog_CC="$CC" # Let the user override the test.
1805    else
1806    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807    for as_dir in $PATH
1808    do
1809      IFS=$as_save_IFS
1810      test -z "$as_dir" && as_dir=.
1811      for ac_exec_ext in '' $ac_executable_extensions; do
1812      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813        ac_cv_prog_CC="${ac_tool_prefix}gcc"
1814        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815        break 2
1816      fi
1817    done
1818    done
1819    
1820    fi
1821    fi
1822    CC=$ac_cv_prog_CC
1823    if test -n "$CC"; then
1824      echo "$as_me:$LINENO: result: $CC" >&5
1825    echo "${ECHO_T}$CC" >&6
1826    else
1827      echo "$as_me:$LINENO: result: no" >&5
1828    echo "${ECHO_T}no" >&6
1829    fi
1830    
1831    fi
1832    if test -z "$ac_cv_prog_CC"; then
1833      ac_ct_CC=$CC
1834      # Extract the first word of "gcc", so it can be a program name with args.
1835  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1836  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
1837  echo "configure:1141: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1839    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1840    else
1841      if test -n "$ac_ct_CC"; then
1842      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1843    else
1844    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845    for as_dir in $PATH
1846    do
1847      IFS=$as_save_IFS
1848      test -z "$as_dir" && as_dir=.
1849      for ac_exec_ext in '' $ac_executable_extensions; do
1850      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851        ac_cv_prog_ac_ct_CC="gcc"
1852        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853        break 2
1854      fi
1855    done
1856    done
1857    
1858    fi
1859    fi
1860    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1861    if test -n "$ac_ct_CC"; then
1862      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1863    echo "${ECHO_T}$ac_ct_CC" >&6
1864    else
1865      echo "$as_me:$LINENO: result: no" >&5
1866    echo "${ECHO_T}no" >&6
1867    fi
1868    
1869      CC=$ac_ct_CC
1870    else
1871      CC="$ac_cv_prog_CC"
1872    fi
1873    
1874    if test -z "$CC"; then
1875      if test -n "$ac_tool_prefix"; then
1876      # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1877    set dummy ${ac_tool_prefix}cc; ac_word=$2
1878    echo "$as_me:$LINENO: checking for $ac_word" >&5
1879    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880    if test "${ac_cv_prog_CC+set}" = set; then
1881      echo $ECHO_N "(cached) $ECHO_C" >&6
1882  else  else
1883    if test -n "$CC"; then    if test -n "$CC"; then
1884    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1885  else  else
1886    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887    ac_dummy="$PATH"  for as_dir in $PATH
1888    for ac_dir in $ac_dummy; do  do
1889      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
1890      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
1891        ac_cv_prog_CC="gcc"    for ac_exec_ext in '' $ac_executable_extensions; do
1892        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893      fi      ac_cv_prog_CC="${ac_tool_prefix}cc"
1894    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895    IFS="$ac_save_ifs"      break 2
1896      fi
1897    done
1898    done
1899    
1900  fi  fi
1901  fi  fi
1902  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1903  if test -n "$CC"; then  if test -n "$CC"; then
1904    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1905    echo "${ECHO_T}$CC" >&6
1906  else  else
1907    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
1908    echo "${ECHO_T}no" >&6
1909  fi  fi
1910    
1911    fi
1912    if test -z "$ac_cv_prog_CC"; then
1913      ac_ct_CC=$CC
1914      # Extract the first word of "cc", so it can be a program name with args.
1915    set dummy cc; ac_word=$2
1916    echo "$as_me:$LINENO: checking for $ac_word" >&5
1917    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919      echo $ECHO_N "(cached) $ECHO_C" >&6
1920    else
1921      if test -n "$ac_ct_CC"; then
1922      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923    else
1924    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925    for as_dir in $PATH
1926    do
1927      IFS=$as_save_IFS
1928      test -z "$as_dir" && as_dir=.
1929      for ac_exec_ext in '' $ac_executable_extensions; do
1930      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931        ac_cv_prog_ac_ct_CC="cc"
1932        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933        break 2
1934      fi
1935    done
1936    done
1937    
1938    fi
1939    fi
1940    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1941    if test -n "$ac_ct_CC"; then
1942      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1943    echo "${ECHO_T}$ac_ct_CC" >&6
1944    else
1945      echo "$as_me:$LINENO: result: no" >&5
1946    echo "${ECHO_T}no" >&6
1947    fi
1948    
1949      CC=$ac_ct_CC
1950    else
1951      CC="$ac_cv_prog_CC"
1952    fi
1953    
1954    fi
1955  if test -z "$CC"; then  if test -z "$CC"; then
1956    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
1957  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1958  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
1959  echo "configure:1171: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_CC+set}" = set; then
1961    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1962  else  else
1963    if test -n "$CC"; then    if test -n "$CC"; then
1964    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1965  else  else
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
1966    ac_prog_rejected=no    ac_prog_rejected=no
1967    ac_dummy="$PATH"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968    for ac_dir in $ac_dummy; do  for as_dir in $PATH
1969      test -z "$ac_dir" && ac_dir=.  do
1970      if test -f $ac_dir/$ac_word; then    IFS=$as_save_IFS
1971        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then    test -z "$as_dir" && as_dir=.
1972          ac_prog_rejected=yes    for ac_exec_ext in '' $ac_executable_extensions; do
1973          continue    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974        fi      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1975        ac_cv_prog_CC="cc"         ac_prog_rejected=yes
1976        break         continue
1977      fi       fi
1978    done      ac_cv_prog_CC="cc"
1979    IFS="$ac_save_ifs"      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980        break 2
1981      fi
1982    done
1983    done
1984    
1985  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
1986    # We found a bogon in the path, so make sure we never use it.    # We found a bogon in the path, so make sure we never use it.
1987    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
1988    shift    shift
1989    if test $# -gt 0; then    if test $# != 0; then
1990      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
1991      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
1992      # first if we set CC to just the basename; use the full file name.      # first if we set CC to just the basename; use the full file name.
1993      shift      shift
1994      set dummy "$ac_dir/$ac_word" "$@"      set dummy "$as_dir/$ac_word" ${1+"$@"}
1995      shift      shift
1996      ac_cv_prog_CC="$@"      ac_cv_prog_CC="$@"
1997    fi    fi
1998  fi  fi
1999  fi  fi
2000  fi  fi
2001  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
2002  if test -n "$CC"; then  if test -n "$CC"; then
2003    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
2004    echo "${ECHO_T}$CC" >&6
2005  else  else
2006    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2007    echo "${ECHO_T}no" >&6
2008  fi  fi
2009    
2010    if test -z "$CC"; then  fi
2011      case "`uname -s`" in  if test -z "$CC"; then
2012      *win32* | *WIN32*)    if test -n "$ac_tool_prefix"; then
2013        # Extract the first word of "cl", so it can be a program name with args.    for ac_prog in cl
2014  set dummy cl; ac_word=$2    do
2015  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2016  echo "configure:1222: checking for $ac_word" >&5  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2017  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo "$as_me:$LINENO: checking for $ac_word" >&5
2018    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2019    if test "${ac_cv_prog_CC+set}" = set; then
2020      echo $ECHO_N "(cached) $ECHO_C" >&6
2021  else  else
2022    if test -n "$CC"; then    if test -n "$CC"; then
2023    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
2024  else  else
2025    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026    ac_dummy="$PATH"  for as_dir in $PATH
2027    for ac_dir in $ac_dummy; do  do
2028      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2029      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2030        ac_cv_prog_CC="cl"    for ac_exec_ext in '' $ac_executable_extensions; do
2031        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032      fi      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2033    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034    IFS="$ac_save_ifs"      break 2
2035      fi
2036    done
2037    done
2038    
2039  fi  fi
2040  fi  fi
2041  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
2042  if test -n "$CC"; then  if test -n "$CC"; then
2043    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
2044    echo "${ECHO_T}$CC" >&6
2045  else  else
2046    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2047    echo "${ECHO_T}no" >&6
2048  fi  fi
2049   ;;  
2050      esac      test -n "$CC" && break
2051      done
2052    fi
2053    if test -z "$CC"; then
2054      ac_ct_CC=$CC
2055      for ac_prog in cl
2056    do
2057      # Extract the first word of "$ac_prog", so it can be a program name with args.
2058    set dummy $ac_prog; ac_word=$2
2059    echo "$as_me:$LINENO: checking for $ac_word" >&5
2060    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2061    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062      echo $ECHO_N "(cached) $ECHO_C" >&6
2063    else
2064      if test -n "$ac_ct_CC"; then
2065      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066    else
2067    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068    for as_dir in $PATH
2069    do
2070      IFS=$as_save_IFS
2071      test -z "$as_dir" && as_dir=.
2072      for ac_exec_ext in '' $ac_executable_extensions; do
2073      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2074        ac_cv_prog_ac_ct_CC="$ac_prog"
2075        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076        break 2
2077    fi    fi
2078    test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }  done
2079    done
2080    
2081    fi
2082    fi
2083    ac_ct_CC=$ac_cv_prog_ac_ct_CC
2084    if test -n "$ac_ct_CC"; then
2085      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2086    echo "${ECHO_T}$ac_ct_CC" >&6
2087    else
2088      echo "$as_me:$LINENO: result: no" >&5
2089    echo "${ECHO_T}no" >&6
2090  fi  fi
2091    
2092  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6    test -n "$ac_ct_CC" && break
2093  echo "configure:1254: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  done
2094    
2095  ac_ext=c    CC=$ac_ct_CC
2096  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  fi
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  
 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  
 cross_compiling=$ac_cv_prog_cc_cross  
2097    
2098  cat > conftest.$ac_ext << EOF  fi
2099    
 #line 1265 "configure"  
 #include "confdefs.h"  
2100    
2101  main(){return(0);}  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2102  EOF  echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2103  if { (eval echo configure:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then     { (exit 1); exit 1; }; }
2104    ac_cv_prog_cc_works=yes  
2105    # If we can't run a trivial program, we are probably using a cross compiler.  # Provide some information about the compiler.
2106    if (./conftest; exit) 2>/dev/null; then  echo "$as_me:$LINENO:" \
2107      ac_cv_prog_cc_cross=no       "checking for C compiler version" >&5
2108    else  ac_compiler=`set X $ac_compile; echo $2`
2109      ac_cv_prog_cc_cross=yes  { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2110    fi    (eval $ac_compiler --version </dev/null >&5) 2>&5
2111  else    ac_status=$?
2112    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113    cat conftest.$ac_ext >&5    (exit $ac_status); }
2114    ac_cv_prog_cc_works=no  { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2115  fi    (eval $ac_compiler -v </dev/null >&5) 2>&5
2116  rm -fr conftest*    ac_status=$?
2117  ac_ext=c    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.    (exit $ac_status); }
2119  ac_cpp='$CPP $CPPFLAGS'  { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2120  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'    (eval $ac_compiler -V </dev/null >&5) 2>&5
2121  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'    ac_status=$?
2122  cross_compiling=$ac_cv_prog_cc_cross    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123      (exit $ac_status); }
2124  echo "$ac_t""$ac_cv_prog_cc_works" 1>&6  
2125  if test $ac_cv_prog_cc_works = no; then  cat >conftest.$ac_ext <<_ACEOF
2126    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }  #line $LINENO "configure"
2127  fi  #include "confdefs.h"
2128  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  
2129  echo "configure:1296: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  #ifdef F77_DUMMY_MAIN
2130  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  #  ifdef __cplusplus
2131  cross_compiling=$ac_cv_prog_cc_cross       extern "C"
2132    #  endif
2133  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6     int F77_DUMMY_MAIN() { return 1; }
 echo "configure:1301: checking whether we are using GNU C" >&5  
 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   cat > conftest.c <<EOF  
 #ifdef __GNUC__  
   yes;  
2134  #endif  #endif
2135  EOF  int
2136  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  main ()
2137    ac_cv_prog_gcc=yes  {
2138    
2139      ;
2140      return 0;
2141    }
2142    _ACEOF
2143    ac_clean_files_save=$ac_clean_files
2144    ac_clean_files="$ac_clean_files a.out a.exe"
2145    # Try to create an executable without -o first, disregard a.out.
2146    # It will help us diagnose broken compilers, and finding out an intuition
2147    # of exeext.
2148    echo "$as_me:$LINENO: checking for C compiler default output" >&5
2149    echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2150    ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2151    if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2152      (eval $ac_link_default) 2>&5
2153      ac_status=$?
2154      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155      (exit $ac_status); }; then
2156      # Find the output, starting from the most likely.  This scheme is
2157    # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2158    # resort.
2159    
2160    # Be careful to initialize this variable, since it used to be cached.
2161    # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2162    ac_cv_exeext=
2163    for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2164                    ls a.out conftest 2>/dev/null;
2165                    ls a.* conftest.* 2>/dev/null`; do
2166      case $ac_file in
2167        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2168        a.out ) # We found the default executable, but exeext='' is most
2169                # certainly right.
2170                break;;
2171        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172              # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2173              export ac_cv_exeext
2174              break;;
2175        * ) break;;
2176      esac
2177    done
2178  else  else
2179    ac_cv_prog_gcc=no    echo "$as_me: failed program was:" >&5
2180  fi  cat conftest.$ac_ext >&5
2181    { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2182    echo "$as_me: error: C compiler cannot create executables" >&2;}
2183       { (exit 77); exit 77; }; }
2184    fi
2185    
2186    ac_exeext=$ac_cv_exeext
2187    echo "$as_me:$LINENO: result: $ac_file" >&5
2188    echo "${ECHO_T}$ac_file" >&6
2189    
2190    # Check the compiler produces executables we can run.  If not, either
2191    # the compiler is broken, or we cross compile.
2192    echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2193    echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2194    # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2195    # If not cross compiling, check that we can run a simple program.
2196    if test "$cross_compiling" != yes; then
2197      if { ac_try='./$ac_file'
2198      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199      (eval $ac_try) 2>&5
2200      ac_status=$?
2201      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202      (exit $ac_status); }; }; then
2203        cross_compiling=no
2204      else
2205        if test "$cross_compiling" = maybe; then
2206            cross_compiling=yes
2207        else
2208            { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2209    If you meant to cross compile, use \`--host'." >&5
2210    echo "$as_me: error: cannot run C compiled programs.
2211    If you meant to cross compile, use \`--host'." >&2;}
2212       { (exit 1); exit 1; }; }
2213        fi
2214      fi
2215  fi  fi
2216    echo "$as_me:$LINENO: result: yes" >&5
2217    echo "${ECHO_T}yes" >&6
2218    
2219  echo "$ac_t""$ac_cv_prog_gcc" 1>&6  rm -f a.out a.exe conftest$ac_cv_exeext
2220    ac_clean_files=$ac_clean_files_save
2221  if test $ac_cv_prog_gcc = yes; then  # Check the compiler produces executables we can run.  If not, either
2222    GCC=yes  # the compiler is broken, or we cross compile.
2223    echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2224    echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2225    echo "$as_me:$LINENO: result: $cross_compiling" >&5
2226    echo "${ECHO_T}$cross_compiling" >&6
2227    
2228    echo "$as_me:$LINENO: checking for suffix of executables" >&5
2229    echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2230    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2231      (eval $ac_link) 2>&5
2232      ac_status=$?
2233      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234      (exit $ac_status); }; then
2235      # If both `conftest.exe' and `conftest' are `present' (well, observable)
2236    # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2237    # work properly (i.e., refer to `conftest.exe'), while it won't with
2238    # `rm'.
2239    for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2240      case $ac_file in
2241        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2242        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2243              export ac_cv_exeext
2244              break;;
2245        * ) break;;
2246      esac
2247    done
2248  else  else
2249    GCC=    { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2250  fi  echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2251       { (exit 1); exit 1; }; }
2252    fi
2253    
2254    rm -f conftest$ac_cv_exeext
2255    echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2256    echo "${ECHO_T}$ac_cv_exeext" >&6
2257    
2258    rm -f conftest.$ac_ext
2259    EXEEXT=$ac_cv_exeext
2260    ac_exeext=$EXEEXT
2261    echo "$as_me:$LINENO: checking for suffix of object files" >&5
2262    echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2263    if test "${ac_cv_objext+set}" = set; then
2264      echo $ECHO_N "(cached) $ECHO_C" >&6
2265    else
2266      cat >conftest.$ac_ext <<_ACEOF
2267    #line $LINENO "configure"
2268    #include "confdefs.h"
2269    
2270    #ifdef F77_DUMMY_MAIN
2271    #  ifdef __cplusplus
2272         extern "C"
2273    #  endif
2274       int F77_DUMMY_MAIN() { return 1; }
2275    #endif
2276    int
2277    main ()
2278    {
2279    
2280  ac_test_CFLAGS="${CFLAGS+set}"    ;
2281  ac_save_CFLAGS="$CFLAGS"    return 0;
2282  CFLAGS=  }
2283  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  _ACEOF
2284  echo "configure:1329: checking whether ${CC-cc} accepts -g" >&5  rm -f conftest.o conftest.obj
2285  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2286    echo $ac_n "(cached) $ac_c" 1>&6    (eval $ac_compile) 2>&5
2287      ac_status=$?
2288      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289      (exit $ac_status); }; then
2290      for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2291      case $ac_file in
2292        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2293        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2294           break;;
2295      esac
2296    done
2297  else  else
2298    echo 'void f(){}' > conftest.c    echo "$as_me: failed program was:" >&5
2299  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  cat conftest.$ac_ext >&5
2300    { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2301    echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2302       { (exit 1); exit 1; }; }
2303    fi
2304    
2305    rm -f conftest.$ac_cv_objext conftest.$ac_ext
2306    fi
2307    echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2308    echo "${ECHO_T}$ac_cv_objext" >&6
2309    OBJEXT=$ac_cv_objext
2310    ac_objext=$OBJEXT
2311    echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2312    echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2313    if test "${ac_cv_c_compiler_gnu+set}" = set; then
2314      echo $ECHO_N "(cached) $ECHO_C" >&6
2315    else
2316      cat >conftest.$ac_ext <<_ACEOF
2317    #line $LINENO "configure"
2318    #include "confdefs.h"
2319    
2320    #ifdef F77_DUMMY_MAIN
2321    #  ifdef __cplusplus
2322         extern "C"
2323    #  endif
2324       int F77_DUMMY_MAIN() { return 1; }
2325    #endif
2326    int
2327    main ()
2328    {
2329    #ifndef __GNUC__
2330           choke me
2331    #endif
2332    
2333      ;
2334      return 0;
2335    }
2336    _ACEOF
2337    rm -f conftest.$ac_objext
2338    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339      (eval $ac_compile) 2>&5
2340      ac_status=$?
2341      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342      (exit $ac_status); } &&
2343             { ac_try='test -s conftest.$ac_objext'
2344      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345      (eval $ac_try) 2>&5
2346      ac_status=$?
2347      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348      (exit $ac_status); }; }; then
2349      ac_compiler_gnu=yes
2350    else
2351      echo "$as_me: failed program was:" >&5
2352    cat conftest.$ac_ext >&5
2353    ac_compiler_gnu=no
2354    fi
2355    rm -f conftest.$ac_objext conftest.$ac_ext
2356    ac_cv_c_compiler_gnu=$ac_compiler_gnu
2357    
2358    fi
2359    echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2360    echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2361    GCC=`test $ac_compiler_gnu = yes && echo yes`
2362    ac_test_CFLAGS=${CFLAGS+set}
2363    ac_save_CFLAGS=$CFLAGS
2364    CFLAGS="-g"
2365    echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2366    echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2367    if test "${ac_cv_prog_cc_g+set}" = set; then
2368      echo $ECHO_N "(cached) $ECHO_C" >&6
2369    else
2370      cat >conftest.$ac_ext <<_ACEOF
2371    #line $LINENO "configure"
2372    #include "confdefs.h"
2373    
2374    #ifdef F77_DUMMY_MAIN
2375    #  ifdef __cplusplus
2376         extern "C"
2377    #  endif
2378       int F77_DUMMY_MAIN() { return 1; }
2379    #endif
2380    int
2381    main ()
2382    {
2383    
2384      ;
2385      return 0;
2386    }
2387    _ACEOF
2388    rm -f conftest.$ac_objext
2389    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390      (eval $ac_compile) 2>&5
2391      ac_status=$?
2392      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393      (exit $ac_status); } &&
2394             { ac_try='test -s conftest.$ac_objext'
2395      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396      (eval $ac_try) 2>&5
2397      ac_status=$?
2398      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399      (exit $ac_status); }; }; then
2400    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
2401  else  else
2402    ac_cv_prog_cc_g=no    echo "$as_me: failed program was:" >&5
2403    cat conftest.$ac_ext >&5
2404    ac_cv_prog_cc_g=no
2405  fi  fi
2406  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
   
2407  fi  fi
2408    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2409  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2410  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
2411    CFLAGS="$ac_save_CFLAGS"    CFLAGS=$ac_save_CFLAGS
2412  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
2413    if test "$GCC" = yes; then    if test "$GCC" = yes; then
2414      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 1355  else Line 2422  else
2422      CFLAGS=      CFLAGS=
2423    fi    fi
2424  fi  fi
2425    # Some people use a C++ compiler to compile C.  Since we use `exit',
2426    # in C++ we need to declare it.  In case someone uses the same compiler
2427    # for both compiling C and C++ we need to have the C++ compiler decide
2428    # the declaration of exit, since it's the most demanding environment.
2429    cat >conftest.$ac_ext <<_ACEOF
2430    #ifndef __cplusplus
2431      choke me
2432    #endif
2433    _ACEOF
2434    rm -f conftest.$ac_objext
2435    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436      (eval $ac_compile) 2>&5
2437      ac_status=$?
2438      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439      (exit $ac_status); } &&
2440             { ac_try='test -s conftest.$ac_objext'
2441      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442      (eval $ac_try) 2>&5
2443      ac_status=$?
2444      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445      (exit $ac_status); }; }; then
2446      for ac_declaration in \
2447       ''\
2448       '#include <stdlib.h>' \
2449       'extern "C" void std::exit (int) throw (); using std::exit;' \
2450       'extern "C" void std::exit (int); using std::exit;' \
2451       'extern "C" void exit (int) throw ();' \
2452       'extern "C" void exit (int);' \
2453       'void exit (int);'
2454    do
2455      cat >conftest.$ac_ext <<_ACEOF
2456    #line $LINENO "configure"
2457    #include "confdefs.h"
2458    #include <stdlib.h>
2459    $ac_declaration
2460    #ifdef F77_DUMMY_MAIN
2461    #  ifdef __cplusplus
2462         extern "C"
2463    #  endif
2464       int F77_DUMMY_MAIN() { return 1; }
2465    #endif
2466    int
2467    main ()
2468    {
2469    exit (42);
2470      ;
2471      return 0;
2472    }
2473    _ACEOF
2474    rm -f conftest.$ac_objext
2475    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476      (eval $ac_compile) 2>&5
2477      ac_status=$?
2478      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479      (exit $ac_status); } &&
2480             { ac_try='test -s conftest.$ac_objext'
2481      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482      (eval $ac_try) 2>&5
2483      ac_status=$?
2484      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485      (exit $ac_status); }; }; then
2486      :
2487    else
2488      echo "$as_me: failed program was:" >&5
2489    cat conftest.$ac_ext >&5
2490    continue
2491    fi
2492    rm -f conftest.$ac_objext conftest.$ac_ext
2493      cat >conftest.$ac_ext <<_ACEOF
2494    #line $LINENO "configure"
2495    #include "confdefs.h"
2496    $ac_declaration
2497    #ifdef F77_DUMMY_MAIN
2498    #  ifdef __cplusplus
2499         extern "C"
2500    #  endif
2501       int F77_DUMMY_MAIN() { return 1; }
2502    #endif
2503    int
2504    main ()
2505    {
2506    exit (42);
2507      ;
2508      return 0;
2509    }
2510    _ACEOF
2511    rm -f conftest.$ac_objext
2512    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513      (eval $ac_compile) 2>&5
2514      ac_status=$?
2515      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516      (exit $ac_status); } &&
2517             { ac_try='test -s conftest.$ac_objext'
2518      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519      (eval $ac_try) 2>&5
2520      ac_status=$?
2521      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522      (exit $ac_status); }; }; then
2523      break
2524    else
2525      echo "$as_me: failed program was:" >&5
2526    cat conftest.$ac_ext >&5
2527    fi
2528    rm -f conftest.$ac_objext conftest.$ac_ext
2529    done
2530    rm -f conftest*
2531    if test -n "$ac_declaration"; then
2532      echo '#ifdef __cplusplus' >>confdefs.h
2533      echo $ac_declaration      >>confdefs.h
2534      echo '#endif'             >>confdefs.h
2535    fi
2536    
2537  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  else
2538  echo "configure:1361: checking how to run the C preprocessor" >&5    echo "$as_me: failed program was:" >&5
2539    cat conftest.$ac_ext >&5
2540    fi
2541    rm -f conftest.$ac_objext conftest.$ac_ext
2542    ac_ext=c
2543    ac_cpp='$CPP $CPPFLAGS'
2544    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547    
2548    ac_ext=c
2549    ac_cpp='$CPP $CPPFLAGS'
2550    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2551    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2552    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2553    echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2554    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2555  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
2556  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
2557    CPP=    CPP=
2558  fi  fi
2559  if test -z "$CPP"; then  if test -z "$CPP"; then
2560  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then    if test "${ac_cv_prog_CPP+set}" = set; then
2561    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2562  else  else
2563      # This must be in double quotes, not single quotes, because CPP may get        # Double quotes because CPP needs to be expanded
2564    # substituted into the Makefile and "${CC-cc}" will confuse make.      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2565    CPP="${CC-cc} -E"      do
2566          ac_preproc_ok=false
2567    for ac_c_preproc_warn_flag in '' yes
2568    do
2569      # Use a header file that comes with gcc, so configuring glibc
2570      # with a fresh cross-compiler works.
2571    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
2572    # not just through cpp.    # not just through cpp. "Syntax error" is here to catch this case.
2573    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2574  #line 1376 "configure"  #line $LINENO "configure"
2575  #include "confdefs.h"  #include "confdefs.h"
2576  #include <assert.h>  #include <assert.h>
2577  Syntax Error                       Syntax error
2578  EOF  _ACEOF
2579  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2580  { (eval echo configure:1382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2581  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2582  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2583      rm -f conftest.er1
2584      cat conftest.err >&5
2585      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586      (exit $ac_status); } >/dev/null; then
2587      if test -s conftest.err; then
2588        ac_cpp_err=$ac_c_preproc_warn_flag
2589      else
2590        ac_cpp_err=
2591      fi
2592    else
2593      ac_cpp_err=yes
2594    fi
2595    if test -z "$ac_cpp_err"; then
2596    :    :
2597  else  else
2598    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2599    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2600    rm -rf conftest*    # Broken: fails on valid input.
2601    CPP="${CC-cc} -E -traditional-cpp"  continue
2602    cat > conftest.$ac_ext <<EOF  fi
2603  #line 1393 "configure"  rm -f conftest.err conftest.$ac_ext
2604  #include "confdefs.h"  
2605  #include <assert.h>    # OK, works on sane cases.  Now check whether non-existent headers
2606  Syntax Error    # can be detected and how.
2607  EOF    cat >conftest.$ac_ext <<_ACEOF
2608  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  #line $LINENO "configure"
2609  { (eval echo configure:1399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  #include "confdefs.h"
2610  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  #include <ac_nonexistent.h>
2611  if test -z "$ac_err"; then  _ACEOF
2612    :  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2613      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2614      ac_status=$?
2615      egrep -v '^ *\+' conftest.er1 >conftest.err
2616      rm -f conftest.er1
2617      cat conftest.err >&5
2618      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619      (exit $ac_status); } >/dev/null; then
2620      if test -s conftest.err; then
2621        ac_cpp_err=$ac_c_preproc_warn_flag
2622      else
2623        ac_cpp_err=
2624      fi
2625  else  else
2626    echo "$ac_err" >&5    ac_cpp_err=yes
2627    echo "configure: failed program was:" >&5  fi
2628    if test -z "$ac_cpp_err"; then
2629      # Broken: success on invalid input.
2630    continue
2631    else
2632      echo "$as_me: failed program was:" >&5
2633    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2634    rm -rf conftest*    # Passes both tests.
2635    CPP="${CC-cc} -nologo -E"  ac_preproc_ok=:
2636    cat > conftest.$ac_ext <<EOF  break
2637  #line 1410 "configure"  fi
2638    rm -f conftest.err conftest.$ac_ext
2639    
2640    done
2641    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2642    rm -f conftest.err conftest.$ac_ext
2643    if $ac_preproc_ok; then
2644      break
2645    fi
2646    
2647        done
2648        ac_cv_prog_CPP=$CPP
2649    
2650    fi
2651      CPP=$ac_cv_prog_CPP
2652    else
2653      ac_cv_prog_CPP=$CPP
2654    fi
2655    echo "$as_me:$LINENO: result: $CPP" >&5
2656    echo "${ECHO_T}$CPP" >&6
2657    ac_preproc_ok=false
2658    for ac_c_preproc_warn_flag in '' yes
2659    do
2660      # Use a header file that comes with gcc, so configuring glibc
2661      # with a fresh cross-compiler works.
2662      # On the NeXT, cc -E runs the code through the compiler's parser,
2663      # not just through cpp. "Syntax error" is here to catch this case.
2664      cat >conftest.$ac_ext <<_ACEOF
2665    #line $LINENO "configure"
2666  #include "confdefs.h"  #include "confdefs.h"
2667  #include <assert.h>  #include <assert.h>
2668  Syntax Error                       Syntax error
2669  EOF  _ACEOF
2670  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2671  { (eval echo configure:1416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2672  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2673  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2674      rm -f conftest.er1
2675      cat conftest.err >&5
2676      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677      (exit $ac_status); } >/dev/null; then
2678      if test -s conftest.err; then
2679        ac_cpp_err=$ac_c_preproc_warn_flag
2680      else
2681        ac_cpp_err=
2682      fi
2683    else
2684      ac_cpp_err=yes
2685    fi
2686    if test -z "$ac_cpp_err"; then
2687    :    :
2688  else  else
2689    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2690    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2691    rm -rf conftest*    # Broken: fails on valid input.
2692    CPP=/lib/cpp  continue
2693  fi  fi
2694  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2695  fi  
2696  rm -f conftest*    # OK, works on sane cases.  Now check whether non-existent headers
2697      # can be detected and how.
2698      cat >conftest.$ac_ext <<_ACEOF
2699    #line $LINENO "configure"
2700    #include "confdefs.h"
2701    #include <ac_nonexistent.h>
2702    _ACEOF
2703    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2704      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2705      ac_status=$?
2706      egrep -v '^ *\+' conftest.er1 >conftest.err
2707      rm -f conftest.er1
2708      cat conftest.err >&5
2709      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710      (exit $ac_status); } >/dev/null; then
2711      if test -s conftest.err; then
2712        ac_cpp_err=$ac_c_preproc_warn_flag
2713      else
2714        ac_cpp_err=
2715      fi
2716    else
2717      ac_cpp_err=yes
2718  fi  fi
2719  rm -f conftest*  if test -z "$ac_cpp_err"; then
2720    ac_cv_prog_CPP="$CPP"    # Broken: success on invalid input.
2721    continue
2722    else
2723      echo "$as_me: failed program was:" >&5
2724      cat conftest.$ac_ext >&5
2725      # Passes both tests.
2726    ac_preproc_ok=:
2727    break
2728  fi  fi
2729    CPP="$ac_cv_prog_CPP"  rm -f conftest.err conftest.$ac_ext
2730    
2731    done
2732    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2733    rm -f conftest.err conftest.$ac_ext
2734    if $ac_preproc_ok; then
2735      :
2736  else  else
2737    ac_cv_prog_CPP="$CPP"    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2738    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2739       { (exit 1); exit 1; }; }
2740  fi  fi
2741  echo "$ac_t""$CPP" 1>&6  
2742    ac_ext=c
2743    ac_cpp='$CPP $CPPFLAGS'
2744    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747    
2748    
2749    
# Line 1468  fi Line 2777  fi
2777    
2778  for ac_prog in gawk nawk awk  for ac_prog in gawk nawk awk
2779  do  do
2780  # Extract the first word of "$ac_prog", so it can be a program name with args.    # Extract the first word of "$ac_prog", so it can be a program name with args.
2781  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2782  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
2783  echo "configure:1475: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  if test "${ac_cv_prog_AWK+set}" = set; then
2785    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2786  else  else
2787    if test -n "$AWK"; then    if test -n "$AWK"; then
2788    ac_cv_prog_AWK="$AWK" # Let the user override the test.    ac_cv_prog_AWK="$AWK" # Let the user override the test.
2789  else  else
2790    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791    ac_dummy="$PATH"  for as_dir in $PATH
2792    for ac_dir in $ac_dummy; do  do
2793      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2794      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2795        ac_cv_prog_AWK="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
2796        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797      fi      ac_cv_prog_AWK="$ac_prog"
2798    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799    IFS="$ac_save_ifs"      break 2
2800      fi
2801    done
2802    done
2803    
2804  fi  fi
2805  fi  fi
2806  AWK="$ac_cv_prog_AWK"  AWK=$ac_cv_prog_AWK
2807  if test -n "$AWK"; then  if test -n "$AWK"; then
2808    echo "$ac_t""$AWK" 1>&6    echo "$as_me:$LINENO: result: $AWK" >&5
2809    echo "${ECHO_T}$AWK" >&6
2810  else  else
2811    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2812    echo "${ECHO_T}no" >&6
2813  fi  fi
2814    
2815  test -n "$AWK" && break    test -n "$AWK" && break
2816  done  done
2817  test -n "$AWK" || AWK=""""  test -n "$AWK" || AWK=""""
2818    
2819    
2820  # gcc on ppc cannot compile our new_init.c with full opts --CM  # gcc on ppc cannot compile our new_init.c with full opts --CM
2821  TONIFLAGS=""  TONIFLAGS=""
2822  case $use in  case $use in
2823       *linux)       *linux)
2824          case $use in          case $use in
2825                  amd64*)                  amd64*)
2826                          TCFLAGS="$TCFLAGS -m64";;                            TCFLAGS="$TCFLAGS -m64";;
2827                  alpha*)                  alpha*)
2828                          TCFLAGS="$TCFLAGS -mieee";;                          TCFLAGS="$TCFLAGS -mieee";;
2829  #               m68k*)  #               m68k*)
# Line 1519  case $use in Line 2834  case $use in
2834                          if test "$enable_debug" != "yes" ; then TO2FLAGS="-O" ; fi                          if test "$enable_debug" != "yes" ; then TO2FLAGS="-O" ; fi
2835                          ;;                          ;;
2836                  arm*)                  arm*)
2837                          TCFLAGS="$TCFLAGS -mlong-calls";;                                TCFLAGS="$TCFLAGS -mlong-calls";;
2838                  powerpc*)                  powerpc*)
2839                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then
2840                             echo Reducing optimization for buggy gcc-3.2                             echo Reducing optimization for buggy gcc-3.2
2841                             if test "$enable_debug" != "yes" ; then TONIFLAGS="-O -fomit-frame-pointer" ; fi                             if test "$enable_debug" != "yes" ; then TONIFLAGS="-O -fomit-frame-pointer" ; fi
# Line 1543  fi Line 2858  fi
2858  # for the system.  This can usually be done via the "uname" command, but  # for the system.  This can usually be done via the "uname" command, but
2859  # there are a few systems, like Next, where this doesn't work.  # there are a few systems, like Next, where this doesn't work.
2860    
2861  echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5
2862  echo "configure:1548: checking system version (for dynamic loading)" >&5  echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6
2863  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
2864    
2865  for ac_prog in makeinfo  for ac_prog in makeinfo
2866  do  do
2867  # Extract the first word of "$ac_prog", so it can be a program name with args.    # Extract the first word of "$ac_prog", so it can be a program name with args.
2868  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2869  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
2870  echo "configure:1556: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then  if test "${ac_cv_prog_MAKEINFO+set}" = set; then
2872    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2873  else  else
2874    if test -n "$MAKEINFO"; then    if test -n "$MAKEINFO"; then
2875    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2876  else  else
2877    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878    ac_dummy="$PATH"  for as_dir in $PATH
2879    for ac_dir in $ac_dummy; do  do
2880      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2881      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2882        ac_cv_prog_MAKEINFO="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
2883        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884      fi      ac_cv_prog_MAKEINFO="$ac_prog"
2885    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886    IFS="$ac_save_ifs"      break 2
2887      fi
2888    done
2889    done
2890    
2891  fi  fi
2892  fi  fi
2893  MAKEINFO="$ac_cv_prog_MAKEINFO"  MAKEINFO=$ac_cv_prog_MAKEINFO
2894  if test -n "$MAKEINFO"; then  if test -n "$MAKEINFO"; then
2895    echo "$ac_t""$MAKEINFO" 1>&6    echo "$as_me:$LINENO: result: $MAKEINFO" >&5
2896    echo "${ECHO_T}$MAKEINFO" >&6
2897  else  else
2898    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2899    echo "${ECHO_T}no" >&6
2900  fi  fi
2901    
2902  test -n "$MAKEINFO" && break    test -n "$MAKEINFO" && break
2903  done  done
2904  test -n "$MAKEINFO" || MAKEINFO=""false""  test -n "$MAKEINFO" || MAKEINFO=""false""
2905    
# Line 1589  if test -f /usr/lib/NextStep/software_ve Line 2910  if test -f /usr/lib/NextStep/software_ve
2910  else  else
2911      system=`uname -s`-`uname -r`      system=`uname -s`-`uname -r`
2912      if test "$?" -ne 0 ; then      if test "$?" -ne 0 ; then
2913          echo "$ac_t""unknown (can't find uname command)" 1>&6          echo "$as_me:$LINENO: result: unknown (can't find uname command)" >&5
2914    echo "${ECHO_T}unknown (can't find uname command)" >&6
2915          system=unknown          system=unknown
2916      else      else
2917          # Special check for weird MP-RAS system (uname returns weird          # Special check for weird MP-RAS system (uname returns weird
2918          # results, and the version is kept in special file).          # results, and the version is kept in special file).
2919        
2920          if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then          if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
2921              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`
2922          fi          fi
2923          if test "`uname -s`" = "AIX" ; then          if test "`uname -s`" = "AIX" ; then
2924              system=AIX-`uname -v`.`uname -r`              system=AIX-`uname -v`.`uname -r`
2925          fi          fi
2926          echo "$ac_t""$system" 1>&6          echo "$as_me:$LINENO: result: $system" >&5
2927    echo "${ECHO_T}$system" >&6
2928      fi      fi
2929  fi  fi
2930    
# Line 1616  rm -f makedefsafter Line 2939  rm -f makedefsafter
2939  MP_INLCUDE=""  MP_INLCUDE=""
2940  if test $use_gmp = yes ; then  if test $use_gmp = yes ; then
2941    
2942   echo $ac_n "checking use_gmp=yes, doing configure in gmp directory""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking use_gmp=yes, doing configure in gmp directory" >&5
2943  echo "configure:1621: checking use_gmp=yes, doing configure in gmp directory" >&5  echo $ECHO_N "checking use_gmp=yes, doing configure in gmp directory... $ECHO_C" >&6
2944   echo   echo
2945   echo "#"   echo "#"
2946   echo "#"   echo "#"
# Line 1637  echo "configure:1621: checking use_gmp=y Line 2960  echo "configure:1621: checking use_gmp=y
2960   else   else
2961     cd $GMPDIR && ./configure && cd ..     cd $GMPDIR && ./configure && cd ..
2962   fi   fi
2963  #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"  #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"
2964    
2965   echo "#"   echo "#"
2966   echo "#"   echo "#"
# Line 1648  echo "configure:1621: checking use_gmp=y Line 2971  echo "configure:1621: checking use_gmp=y
2971    
2972   PATCHED_SYMBOLS=""   PATCHED_SYMBOLS=""
2973   if test "$enable_dynsysgmp" = "yes" ; then   if test "$enable_dynsysgmp" = "yes" ; then
2974          ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`  
2975  echo $ac_n "checking for gmp.h""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2976  echo "configure:1654: checking for gmp.h" >&5  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2977  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_stdc+set}" = set; then
2978    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2979    else
2980      cat >conftest.$ac_ext <<_ACEOF
2981    #line $LINENO "configure"
2982    #include "confdefs.h"
2983    #include <stdlib.h>
2984    #include <stdarg.h>
2985    #include <string.h>
2986    #include <float.h>
2987    
2988    _ACEOF
2989    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2990      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2991      ac_status=$?
2992      egrep -v '^ *\+' conftest.er1 >conftest.err
2993      rm -f conftest.er1
2994      cat conftest.err >&5
2995      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996      (exit $ac_status); } >/dev/null; then
2997      if test -s conftest.err; then
2998        ac_cpp_err=$ac_c_preproc_warn_flag
2999      else
3000        ac_cpp_err=
3001      fi
3002  else  else
3003    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
3004  #line 1659 "configure"  fi
3005  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
3006  #include <gmp.h>    ac_cv_header_stdc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:1664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
3007  else  else
3008    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
3009    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3010    rm -rf conftest*    ac_cv_header_stdc=no
3011    eval "ac_cv_header_$ac_safe=no"  fi
3012    rm -f conftest.err conftest.$ac_ext
3013    
3014    if test $ac_cv_header_stdc = yes; then
3015      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3016      cat >conftest.$ac_ext <<_ACEOF
3017    #line $LINENO "configure"
3018    #include "confdefs.h"
3019    #include <string.h>
3020    
3021    _ACEOF
3022    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3023      egrep "memchr" >/dev/null 2>&1; then
3024      :
3025    else
3026      ac_cv_header_stdc=no
3027  fi  fi
3028  rm -f conftest*  rm -f conftest*
3029    
3030  fi  fi
3031  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  
3032    echo "$ac_t""yes" 1>&6  if test $ac_cv_header_stdc = yes; then
3033    echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3034  echo "configure:1681: checking for __gmpz_init in -lgmp" >&5    cat >conftest.$ac_ext <<_ACEOF
3035  ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`  #line $LINENO "configure"
3036  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  #include "confdefs.h"
3037    echo $ac_n "(cached) $ac_c" 1>&6  #include <stdlib.h>
3038    
3039    _ACEOF
3040    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3041      egrep "free" >/dev/null 2>&1; then
3042      :
3043  else  else
3044    ac_save_LIBS="$LIBS"    ac_cv_header_stdc=no
3045  LIBS="-lgmp  $LIBS"  fi
3046  cat > conftest.$ac_ext <<EOF  rm -f conftest*
3047  #line 1689 "configure"  
3048    fi
3049    
3050    if test $ac_cv_header_stdc = yes; then
3051      # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3052      if test "$cross_compiling" = yes; then
3053      :
3054    else
3055      cat >conftest.$ac_ext <<_ACEOF
3056    #line $LINENO "configure"
3057  #include "confdefs.h"  #include "confdefs.h"
3058  /* Override any gcc2 internal prototype to avoid an error.  */  #include <ctype.h>
3059  /* We use char because int might match the return type of a gcc2  #if ((' ' & 0x0FF) == 0x020)
3060      builtin and then its argument prototype would still apply.  */  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3061  char __gmpz_init();  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3062    #else
3063    # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3064                         || ('j' <= (c) && (c) <= 'r') \
3065                         || ('s' <= (c) && (c) <= 'z'))
3066    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3067    #endif
3068    
3069  int main() {  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3070  __gmpz_init()  int
3071  ; return 0; }  main ()
3072  EOF  {
3073  if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    int i;
3074    rm -rf conftest*    for (i = 0; i < 256; i++)
3075    eval "ac_cv_lib_$ac_lib_var=yes"      if (XOR (islower (i), ISLOWER (i))
3076            || toupper (i) != TOUPPER (i))
3077          exit(2);
3078      exit (0);
3079    }
3080    _ACEOF
3081    rm -f conftest$ac_exeext
3082    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3083      (eval $ac_link) 2>&5
3084      ac_status=$?
3085      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3087      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088      (eval $ac_try) 2>&5
3089      ac_status=$?
3090      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091      (exit $ac_status); }; }; then
3092      :
3093    else
3094      echo "$as_me: program exited with status $ac_status" >&5
3095    echo "$as_me: failed program was:" >&5
3096    cat conftest.$ac_ext >&5
3097    ( exit $ac_status )
3098    ac_cv_header_stdc=no
3099    fi
3100    rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3101    fi
3102    fi
3103    fi
3104    echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3105    echo "${ECHO_T}$ac_cv_header_stdc" >&6
3106    if test $ac_cv_header_stdc = yes; then
3107    
3108    cat >>confdefs.h <<\_ACEOF
3109    #define STDC_HEADERS 1
3110    _ACEOF
3111    
3112    fi
3113    
3114    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3115    
3116    
3117    
3118    
3119    
3120    
3121    
3122    
3123    
3124    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3125                      inttypes.h stdint.h unistd.h
3126    do
3127    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3128    echo "$as_me:$LINENO: checking for $ac_header" >&5
3129    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3130    if eval "test \"\${$as_ac_Header+set}\" = set"; then
3131      echo $ECHO_N "(cached) $ECHO_C" >&6
3132    else
3133      cat >conftest.$ac_ext <<_ACEOF
3134    #line $LINENO "configure"
3135    #include "confdefs.h"
3136    $ac_includes_default
3137    
3138    #include <$ac_header>
3139    _ACEOF
3140    rm -f conftest.$ac_objext
3141    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142      (eval $ac_compile) 2>&5
3143      ac_status=$?
3144      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145      (exit $ac_status); } &&
3146             { ac_try='test -s conftest.$ac_objext'
3147      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148      (eval $ac_try) 2>&5
3149      ac_status=$?
3150      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151      (exit $ac_status); }; }; then
3152      eval "$as_ac_Header=yes"
3153    else
3154      echo "$as_me: failed program was:" >&5
3155    cat conftest.$ac_ext >&5
3156    eval "$as_ac_Header=no"
3157    fi
3158    rm -f conftest.$ac_objext conftest.$ac_ext
3159    fi
3160    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3161    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3162    if test `eval echo '${'$as_ac_Header'}'` = yes; then
3163      cat >>confdefs.h <<_ACEOF
3164    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3165    _ACEOF
3166    
3167    fi
3168    
3169    done
3170    
3171    
3172    if test "${ac_cv_header_gmp_h+set}" = set; then
3173      echo "$as_me:$LINENO: checking for gmp.h" >&5
3174    echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
3175    if test "${ac_cv_header_gmp_h+set}" = set; then
3176      echo $ECHO_N "(cached) $ECHO_C" >&6
3177    fi
3178    echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
3179    echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
3180    else
3181      # Is the header compilable?
3182    echo "$as_me:$LINENO: checking gmp.h usability" >&5
3183    echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6
3184    cat >conftest.$ac_ext <<_ACEOF
3185    #line $LINENO "configure"
3186    #include "confdefs.h"
3187    $ac_includes_default
3188    #include <gmp.h>
3189    _ACEOF
3190    rm -f conftest.$ac_objext
3191    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3192      (eval $ac_compile) 2>&5
3193      ac_status=$?
3194      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195      (exit $ac_status); } &&
3196             { ac_try='test -s conftest.$ac_objext'
3197      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198      (eval $ac_try) 2>&5
3199      ac_status=$?
3200      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201      (exit $ac_status); }; }; then
3202      ac_header_compiler=yes
3203    else
3204      echo "$as_me: failed program was:" >&5
3205    cat conftest.$ac_ext >&5
3206    ac_header_compiler=no
3207    fi
3208    rm -f conftest.$ac_objext conftest.$ac_ext
3209    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3210    echo "${ECHO_T}$ac_header_compiler" >&6
3211    
3212    # Is the header present?
3213    echo "$as_me:$LINENO: checking gmp.h presence" >&5
3214    echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6
3215    cat >conftest.$ac_ext <<_ACEOF
3216    #line $LINENO "configure"
3217    #include "confdefs.h"
3218    #include <gmp.h>
3219    _ACEOF
3220    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3221      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3222      ac_status=$?
3223      egrep -v '^ *\+' conftest.er1 >conftest.err
3224      rm -f conftest.er1
3225      cat conftest.err >&5
3226      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227      (exit $ac_status); } >/dev/null; then
3228      if test -s conftest.err; then
3229        ac_cpp_err=$ac_c_preproc_warn_flag
3230      else
3231        ac_cpp_err=
3232      fi
3233    else
3234      ac_cpp_err=yes
3235    fi
3236    if test -z "$ac_cpp_err"; then
3237      ac_header_preproc=yes
3238  else  else
3239    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3240    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3241    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_lib_$ac_lib_var=no"  
3242  fi  fi
3243  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
3244  LIBS="$ac_save_LIBS"  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3245    echo "${ECHO_T}$ac_header_preproc" >&6
3246    
3247    # So?  What about this header?
3248    case $ac_header_compiler:$ac_header_preproc in
3249      yes:no )
3250        { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
3251    echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3252        { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
3253    echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;};;
3254      no:yes )
3255        { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
3256    echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
3257        { echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5
3258    echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;}
3259        { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
3260    echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;};;
3261    esac
3262    echo "$as_me:$LINENO: checking for gmp.h" >&5
3263    echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
3264    if test "${ac_cv_header_gmp_h+set}" = set; then
3265      echo $ECHO_N "(cached) $ECHO_C" >&6
3266    else
3267      ac_cv_header_gmp_h=$ac_header_preproc
3268    fi
3269    echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
3270    echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
3271    
3272  fi  fi
3273  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if test $ac_cv_header_gmp_h = yes; then
3274    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
3275    echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6
3276    if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
3277      echo $ECHO_N "(cached) $ECHO_C" >&6
3278    else
3279      ac_check_lib_save_LIBS=$LIBS
3280    LIBS="-lgmp  $LIBS"
3281    
3282    cat >conftest.$ac_ext <<_ACEOF
3283    #line $LINENO "configure"
3284    #include "confdefs.h"
3285    
3286    /* Override any gcc2 internal prototype to avoid an error.  */
3287    #ifdef __cplusplus
3288    extern "C"
3289    #endif
3290    /* We use char because int might match the return type of a gcc2
3291       builtin and then its argument prototype would still apply.  */
3292    char __gmpz_init ();
3293    #ifdef F77_DUMMY_MAIN
3294    #  ifdef __cplusplus
3295         extern "C"
3296    #  endif
3297       int F77_DUMMY_MAIN() { return 1; }
3298    #endif
3299    int
3300    main ()
3301    {
3302    __gmpz_init ();
3303      ;
3304      return 0;
3305    }
3306    _ACEOF
3307    rm -f conftest.$ac_objext conftest$ac_exeext
3308    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309      (eval $ac_link) 2>&5
3310      ac_status=$?
3311      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312      (exit $ac_status); } &&
3313             { ac_try='test -s conftest$ac_exeext'
3314      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315      (eval $ac_try) 2>&5
3316      ac_status=$?
3317      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318      (exit $ac_status); }; }; then
3319      ac_cv_lib_gmp___gmpz_init=yes
3320    else
3321      echo "$as_me: failed program was:" >&5
3322    cat conftest.$ac_ext >&5
3323    ac_cv_lib_gmp___gmpz_init=no
3324    fi
3325    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3326    LIBS=$ac_check_lib_save_LIBS
3327    fi
3328    echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
3329    echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6
3330    if test $ac_cv_lib_gmp___gmpz_init = yes; then
3331    MPFILES=$GMPDIR/mpn/mul_n.o    MPFILES=$GMPDIR/mpn/mul_n.o
3332                          PATCHED_SYMBOLS=__gmpn_toom3_mul_n                          PATCHED_SYMBOLS=__gmpn_toom3_mul_n
3333                          if test "$use" = "m68k-linux" ; then                          if test "$use" = "m68k-linux" ; then
# Line 1723  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 3340  if eval "test \"`echo '$ac_cv_lib_'$ac_l
3340                          MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -1l | $AWK '{print $3}' | tr -d '"'`                          MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -1l | $AWK '{print $3}' | tr -d '"'`
3341                          rm -f foo.c                          rm -f foo.c
3342  else  else
3343    echo "$ac_t""no" 1>&6    echo "Cannot use dynamic gmp lib" ; exit 1
 echo "Cannot use dynamic gmp lib" ; exit 1  
3344  fi  fi
3345    
3346  else  else
3347    echo "$ac_t""no" 1>&6    echo "Cannot use dynamic gmp lib" ; exit 1
 echo "Cannot use dynamic gmp lib" ; exit 1  
3348  fi  fi
3349    
3350    
3351  else                      
3352    else
3353    
3354          cp $GMPDIR/gmp.h h/gmp.h          cp $GMPDIR/gmp.h h/gmp.h
3355          MP_INCLUDE=h/gmp.h          MP_INCLUDE=h/gmp.h
# Line 1741  else Line 3357  else
3357    
3358  fi  fi
3359    
3360   echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking \"for size of gmp limbs\"" >&5
3361  echo "configure:1746: checking "for size of gmp limbs"" >&5  echo $ECHO_N "checking \"for size of gmp limbs\"... $ECHO_C" >&6
3362   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3363    mpsize=0    mpsize=0
3364  else  else
3365    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3366  #line 1751 "configure"  #line $LINENO "configure"
3367  #include "confdefs.h"  #include "confdefs.h"
3368  #include <stdio.h>  #include <stdio.h>
3369          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1757  else Line 3373  else
3373          fclose(fp);          fclose(fp);
3374          return 0;          return 0;
3375          }          }
3376  EOF  _ACEOF
3377  if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3378  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3379      (eval $ac_link) 2>&5
3380      ac_status=$?
3381      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3383      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384      (eval $ac_try) 2>&5
3385      ac_status=$?
3386      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387      (exit $ac_status); }; }; then
3388    mpsize=`cat conftest1`    mpsize=`cat conftest1`
3389  else  else
3390    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3391    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
3392    rm -fr conftest*  cat conftest.$ac_ext >&5
3393    mpsize=0  ( exit $ac_status )
3394    mpsize=0
3395  fi  fi
3396  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3397  fi  fi
   
3398   if test "$mpsize" = "0" ; then   if test "$mpsize" = "0" ; then
3399          echo "Cannot determine mpsize"          echo "Cannot determine mpsize"
3400          exit 1          exit 1
3401   fi   fi
3402   cat >> confdefs.h <<EOF   cat >>confdefs.h <<_ACEOF
3403  #define MP_LIMB_BYTES $mpsize  #define MP_LIMB_BYTES $mpsize
3404  EOF  _ACEOF
3405    
3406   echo "$ac_t""$mpsize" 1>&6   echo "$as_me:$LINENO: result: $mpsize" >&5
3407    echo "${ECHO_T}$mpsize" >&6
3408    
3409   echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking \"_SHORT_LIMB\"" >&5
3410  echo "configure:1785: checking "_SHORT_LIMB"" >&5  echo $ECHO_N "checking \"_SHORT_LIMB\"... $ECHO_C" >&6
3411   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3412    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3413    echo "${ECHO_T}no" >&6
3414  else  else
3415    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3416  #line 1790 "configure"  #line $LINENO "configure"
3417  #include "confdefs.h"  #include "confdefs.h"
3418  #include <stdio.h>  #include <stdio.h>
3419          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1797  else Line 3424  else
3424          return 1;          return 1;
3425          #endif          #endif
3426          }          }
3427  EOF  _ACEOF
3428  if { (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3429  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3430    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
3431      ac_status=$?
3432      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3434      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435      (eval $ac_try) 2>&5
3436      ac_status=$?
3437      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438      (exit $ac_status); }; }; then
3439      cat >>confdefs.h <<\_ACEOF
3440  #define __SHORT_LIMB 1  #define __SHORT_LIMB 1
3441  EOF  _ACEOF
3442   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
3443  else  echo "${ECHO_T}yes" >&6
3444    echo "configure: failed program was:" >&5  else
3445    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
3446    rm -fr conftest*  echo "$as_me: failed program was:" >&5
3447    echo "$ac_t""no" 1>&6  cat conftest.$ac_ext >&5
3448    ( exit $ac_status )
3449    echo "$as_me:$LINENO: result: no" >&5
3450    echo "${ECHO_T}no" >&6
3451  fi  fi
3452  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3453  fi  fi
3454     echo "$as_me:$LINENO: checking \"_LONG_LONG_LIMB\"" >&5
3455   echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6  echo $ECHO_N "checking \"_LONG_LONG_LIMB\"... $ECHO_C" >&6
 echo "configure:1818: checking "_LONG_LONG_LIMB"" >&5  
3456   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3457    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3458    echo "${ECHO_T}no" >&6
3459  else  else
3460    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3461  #line 1823 "configure"  #line $LINENO "configure"
3462  #include "confdefs.h"  #include "confdefs.h"
3463  #include <stdio.h>  #include <stdio.h>
3464          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1830  else Line 3469  else
3469          return 1;          return 1;
3470          #endif          #endif
3471          }          }
3472  EOF  _ACEOF
3473  if { (eval echo configure:1835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3474  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3475    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
3476      ac_status=$?
3477      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3479      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480      (eval $ac_try) 2>&5
3481      ac_status=$?
3482      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483      (exit $ac_status); }; }; then
3484      cat >>confdefs.h <<\_ACEOF
3485  #define __LONG_LONG_LIMB 1  #define __LONG_LONG_LIMB 1
3486  EOF  _ACEOF
3487   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
3488  else  echo "${ECHO_T}yes" >&6
3489    echo "configure: failed program was:" >&5  else
3490    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
3491    rm -fr conftest*  echo "$as_me: failed program was:" >&5
3492    echo "$ac_t""no" 1>&6  cat conftest.$ac_ext >&5
3493    ( exit $ac_status )
3494    echo "$as_me:$LINENO: result: no" >&5
3495    echo "${ECHO_T}no" >&6
3496  fi  fi
3497  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3498  fi  fi
3499    
   
3500   GMP=1   GMP=1
3501   cat >> confdefs.h <<\EOF   cat >>confdefs.h <<\_ACEOF
3502  #define GMP 1  #define GMP 1
3503  EOF  _ACEOF
3504    
3505    
3506    
   
   
3507   echo > makedefsafter   echo > makedefsafter
3508   echo "MPFILES=$MPFILES" >> makedefsafter   echo "MPFILES=$MPFILES" >> makedefsafter
3509   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter
# Line 1863  fi Line 3513  fi
3513    
3514  #  #
3515  # X windows  # X windows
3516  #  #
3517    
3518    echo "$as_me:$LINENO: checking for X" >&5
3519    echo $ECHO_N "checking for X... $ECHO_C" >&6
3520    
 # If we find X, set shell vars x_includes and x_libraries to the  
 # paths, otherwise set no_x=yes.  
 # Uses ac_ vars as temps to allow command line to override cache and checks.  
 # --without-x overrides everything else, but does not touch the cache.  
 echo $ac_n "checking for X""... $ac_c" 1>&6  
 echo "configure:1874: checking for X" >&5  
3521    
3522  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
3523  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
3524    withval="$with_x"    withval="$with_x"
   :  
 fi  
3525    
3526    fi;
3527  # $have_x is `yes', `no', `disabled', or empty when we do not yet know.  # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3528  if test "x$with_x" = xno; then  if test "x$with_x" = xno; then
3529    # The user explicitly disabled X.    # The user explicitly disabled X.
# Line 1887  else Line 3533  else
3533      # Both variables are already set.      # Both variables are already set.
3534      have_x=yes      have_x=yes
3535    else    else
3536  if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then      if test "${ac_cv_have_x+set}" = set; then
3537    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3538  else  else
3539    # One or both of the vars are not set, and there is no cached value.    # One or both of the vars are not set, and there is no cached value.
3540  ac_x_includes=NO ac_x_libraries=NO  ac_x_includes=no ac_x_libraries=no
3541  rm -fr conftestdir  rm -fr conftest.dir
3542  if mkdir conftestdir; then  if mkdir conftest.dir; then
3543    cd conftestdir    cd conftest.dir
3544    # Make sure to not put "make" in the Imakefile rules, since we grep it out.    # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3545    cat > Imakefile <<'EOF'    cat >Imakefile <<'_ACEOF'
3546  acfindx:  acfindx:
3547          @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'          @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3548  EOF  _ACEOF
3549    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3550      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3551      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3552      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3553      for ac_extension in a so sl; do      for ac_extension in a so sl; do
3554        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3555          test -f $ac_im_libdir/libX11.$ac_extension; then           test -f $ac_im_libdir/libX11.$ac_extension; then
3556          ac_im_usrlibdir=$ac_im_libdir; break          ac_im_usrlibdir=$ac_im_libdir; break
3557        fi        fi
3558      done      done
3559      # Screen out bogus values from the imake configuration.  They are      # Screen out bogus values from the imake configuration.  They are
3560      # bogus both because they are the default anyway, and because      # bogus both because they are the default anyway, and because
3561      # using them would break gcc on systems where it needs fixed includes.      # using them would break gcc on systems where it needs fixed includes.
3562      case "$ac_im_incroot" in      case $ac_im_incroot in
3563          /usr/include) ;;          /usr/include) ;;
3564          *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;          *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3565      esac      esac
3566      case "$ac_im_usrlibdir" in      case $ac_im_usrlibdir in
3567          /usr/lib | /lib) ;;          /usr/lib | /lib) ;;
3568          *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;          *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3569      esac      esac
3570    fi    fi
3571    cd ..    cd ..
3572    rm -fr conftestdir    rm -fr conftest.dir
3573  fi  fi
3574    
3575  if test "$ac_x_includes" = NO; then  # Standard set of common directories for X headers.
3576    # Guess where to find include files, by looking for this one X11 .h file.  # Check X11 before X11Rn because it is often a symlink to the current release.
3577    test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h  ac_x_header_dirs='
3578    /usr/X11/include
3579    /usr/X11R6/include
3580    /usr/X11R5/include
3581    /usr/X11R4/include
3582    
3583    /usr/include/X11
3584    /usr/include/X11R6
3585    /usr/include/X11R5
3586    /usr/include/X11R4
3587    
3588    /usr/local/X11/include
3589    /usr/local/X11R6/include
3590    /usr/local/X11R5/include
3591    /usr/local/X11R4/include
3592    
3593    /usr/local/include/X11
3594    /usr/local/include/X11R6
3595    /usr/local/include/X11R5
3596    /usr/local/include/X11R4
3597    
3598    /usr/X386/include
3599    /usr/x386/include
3600    /usr/XFree86/include/X11
3601    
3602    /usr/include
3603    /usr/local/include
3604    /usr/unsupported/include
3605    /usr/athena/include
3606    /usr/local/x11r5/include
3607    /usr/lpp/Xamples/include
3608    
3609    /usr/openwin/include
3610    /usr/openwin/share/include'
3611    
3612    if test "$ac_x_includes" = no; then
3613      # Guess where to find include files, by looking for Intrinsic.h.
3614    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
3615  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3616  #line 1936 "configure"  #line $LINENO "configure"
3617  #include "confdefs.h"  #include "confdefs.h"
3618  #include <$x_direct_test_include>  #include <X11/Intrinsic.h>
3619  EOF  _ACEOF
3620  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3621  { (eval echo configure:1941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3622  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
3623  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
3624    rm -rf conftest*    rm -f conftest.er1
3625      cat conftest.err >&5
3626      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627      (exit $ac_status); } >/dev/null; then
3628      if test -s conftest.err; then
3629        ac_cpp_err=$ac_c_preproc_warn_flag
3630      else
3631        ac_cpp_err=
3632      fi
3633    else
3634      ac_cpp_err=yes
3635    fi
3636    if test -z "$ac_cpp_err"; then
3637    # We can compile using X headers with no special include directory.    # We can compile using X headers with no special include directory.
3638  ac_x_includes=  ac_x_includes=
3639  else  else
3640    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
3641    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3642    rm -rf conftest*    for ac_dir in $ac_x_header_dirs; do
3643    # Look for the header file in a standard set of common directories.    if test -r "$ac_dir/X11/Intrinsic.h"; then
3644  # Check X11 before X11Rn because it is often a symlink to the current release.      ac_x_includes=$ac_dir
3645    for ac_dir in               \      break
3646      /usr/X11/include          \    fi
3647      /usr/X11R6/include        \  done
     /usr/X11R5/include        \  
     /usr/X11R4/include        \  
                               \  
     /usr/include/X11          \  
     /usr/include/X11R6        \  
     /usr/include/X11R5        \  
     /usr/include/X11R4        \  
                               \  
     /usr/local/X11/include    \  
     /usr/local/X11R6/include  \  
     /usr/local/X11R5/include  \  
     /usr/local/X11R4/include  \  
                               \  
     /usr/local/include/X11    \  
     /usr/local/include/X11R6  \  
     /usr/local/include/X11R5  \  
     /usr/local/include/X11R4  \  
                               \  
     /usr/X386/include         \  
     /usr/x386/include         \  
     /usr/XFree86/include/X11  \  
                               \  
     /usr/include              \  
     /usr/local/include        \  
     /usr/unsupported/include  \  
     /usr/athena/include       \  
     /usr/local/x11r5/include  \  
     /usr/lpp/Xamples/include  \  
                               \  
     /usr/openwin/include      \  
     /usr/openwin/share/include \  
     ; \  
   do  
     if test -r "$ac_dir/$x_direct_test_include"; then  
       ac_x_includes=$ac_dir  
       break  
     fi  
   done  
3648  fi  fi
3649  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
3650  fi # $ac_x_includes = NO  fi # $ac_x_includes = no
3651    
3652  if test "$ac_x_libraries" = NO; then  if test "$ac_x_libraries" = no; then
3653    # Check for the libraries.    # Check for the libraries.
   
   test -z "$x_direct_test_library" && x_direct_test_library=Xt  
   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc  
   
3654    # See if we find them without any special options.    # See if we find them without any special options.
3655    # Don't add to $LIBS permanently.    # Don't add to $LIBS permanently.
3656    ac_save_LIBS="$LIBS"    ac_save_LIBS=$LIBS
3657    LIBS="-l$x_direct_test_library $LIBS"    LIBS="-lXt $LIBS"
3658  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3659  #line 2010 "configure"  #line $LINENO "configure"
3660  #include "confdefs.h"  #include "confdefs.h"
3661    #include <X11/Intrinsic.h>
3662  int main() {  #ifdef F77_DUMMY_MAIN
3663  ${x_direct_test_function}()  #  ifdef __cplusplus
3664  ; return 0; }       extern "C"
3665  EOF  #  endif
3666  if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then     int F77_DUMMY_MAIN() { return 1; }
3667    rm -rf conftest*  #endif
3668    LIBS="$ac_save_LIBS"  int
3669    main ()
3670    {
3671    XtMalloc (0)
3672      ;
3673      return 0;
3674    }
3675    _ACEOF
3676    rm -f conftest.$ac_objext conftest$ac_exeext
3677    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3678      (eval $ac_link) 2>&5
3679      ac_status=$?
3680      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681      (exit $ac_status); } &&
3682             { ac_try='test -s conftest$ac_exeext'
3683      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684      (eval $ac_try) 2>&5
3685      ac_status=$?
3686      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687      (exit $ac_status); }; }; then
3688      LIBS=$ac_save_LIBS
3689  # We can link X programs with no special library path.  # We can link X programs with no special library path.
3690  ac_x_libraries=  ac_x_libraries=
3691  else  else
3692    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3693    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3694    rm -rf conftest*  LIBS=$ac_save_LIBS
3695    LIBS="$ac_save_LIBS"  for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 # First see if replacing the include by lib works.  
 # Check X11 before X11Rn because it is often a symlink to the current release.  
 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \  
     /usr/X11/lib          \  
     /usr/X11R6/lib        \  
     /usr/X11R5/lib        \  
     /usr/X11R4/lib        \  
                           \  
     /usr/lib/X11          \  
     /usr/lib/X11R6        \  
     /usr/lib/X11R5        \  
     /usr/lib/X11R4        \  
                           \  
     /usr/local/X11/lib    \  
     /usr/local/X11R6/lib  \  
     /usr/local/X11R5/lib  \  
     /usr/local/X11R4/lib  \  
                           \  
     /usr/local/lib/X11    \  
     /usr/local/lib/X11R6  \  
     /usr/local/lib/X11R5  \  
     /usr/local/lib/X11R4  \  
                           \  
     /usr/X386/lib         \  
     /usr/x386/lib         \  
     /usr/XFree86/lib/X11  \  
                           \  
     /usr/lib              \  
     /usr/local/lib        \  
     /usr/unsupported/lib  \  
     /usr/athena/lib       \  
     /usr/local/x11r5/lib  \  
     /usr/lpp/Xamples/lib  \  
     /lib/usr/lib/X11      \  
                           \  
     /usr/openwin/lib      \  
     /usr/openwin/share/lib \  
     ; \  
3696  do  do
3697      # Don't even attempt the hair of trying to link an X program!
3698    for ac_extension in a so sl; do    for ac_extension in a so sl; do
3699      if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then      if test -r $ac_dir/libXt.$ac_extension; then
3700        ac_x_libraries=$ac_dir        ac_x_libraries=$ac_dir
3701        break 2        break 2
3702      fi      fi
3703    done    done
3704  done  done
3705  fi  fi
3706  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3707  fi # $ac_x_libraries = NO  fi # $ac_x_libraries = no
3708    
3709  if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then  if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3710    # Didn't find X anywhere.  Cache the known absence of X.    # Didn't find X anywhere.  Cache the known absence of X.
3711    ac_cv_have_x="have_x=no"    ac_cv_have_x="have_x=no"
3712  else  else
# Line 2082  else Line 3715  else
3715                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3716  fi  fi
3717  fi  fi
3718    
3719    fi    fi
3720    eval "$ac_cv_have_x"    eval "$ac_cv_have_x"
3721  fi # $with_x != no  fi # $with_x != no
3722    
3723  if test "$have_x" != yes; then  if test "$have_x" != yes; then
3724    echo "$ac_t""$have_x" 1>&6    echo "$as_me:$LINENO: result: $have_x" >&5
3725    echo "${ECHO_T}$have_x" >&6
3726    no_x=yes    no_x=yes
3727  else  else
3728    # If each of the values was on the command line, it overrides each guess.    # If each of the values was on the command line, it overrides each guess.
# Line 2096  else Line 3731  else
3731    # Update the cache value to reflect the command line values.    # Update the cache value to reflect the command line values.
3732    ac_cv_have_x="have_x=yes \    ac_cv_have_x="have_x=yes \
3733                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3734    echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6    echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3735    echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3736  fi  fi
3737    
3738  if test "$no_x" = yes; then  if test "$no_x" = yes; then
3739    # Not all programs may use this symbol, but it does not hurt to define it.    # Not all programs may use this symbol, but it does not hurt to define it.
3740    cat >> confdefs.h <<\EOF  
3741    cat >>confdefs.h <<\_ACEOF
3742  #define X_DISPLAY_MISSING 1  #define X_DISPLAY_MISSING 1
3743  EOF  _ACEOF
3744    
3745    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3746  else  else
# Line 2116  else Line 3753  else
3753      X_LIBS="$X_LIBS -L$x_libraries"      X_LIBS="$X_LIBS -L$x_libraries"
3754      # For Solaris; some versions of Sun CC require a space after -R and      # For Solaris; some versions of Sun CC require a space after -R and
3755      # others require no space.  Words are not sufficient . . . .      # others require no space.  Words are not sufficient . . . .
3756      case "`(uname -sr) 2>/dev/null`" in      case `(uname -sr) 2>/dev/null` in
3757      "SunOS 5"*)      "SunOS 5"*)
3758        echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3759  echo "configure:2123: checking whether -R must be followed by a space" >&5  echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3760        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"        ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3761        cat > conftest.$ac_ext <<EOF        cat >conftest.$ac_ext <<_ACEOF
3762  #line 2126 "configure"  #line $LINENO "configure"
3763  #include "confdefs.h"  #include "confdefs.h"
3764    
3765  int main() {  #ifdef F77_DUMMY_MAIN
3766    #  ifdef __cplusplus
3767         extern "C"
3768    #  endif
3769       int F77_DUMMY_MAIN() { return 1; }
3770    #endif
3771    int
3772    main ()
3773    {
3774    
3775  ; return 0; }    ;
3776  EOF    return 0;
3777  if { (eval echo configure:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3778    rm -rf conftest*  _ACEOF
3779    rm -f conftest.$ac_objext conftest$ac_exeext
3780    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3781      (eval $ac_link) 2>&5
3782      ac_status=$?
3783      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784      (exit $ac_status); } &&
3785             { ac_try='test -s conftest$ac_exeext'
3786      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787      (eval $ac_try) 2>&5
3788      ac_status=$?
3789      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790      (exit $ac_status); }; }; then
3791    ac_R_nospace=yes    ac_R_nospace=yes
3792  else  else
3793    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3794    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3795    rm -rf conftest*  ac_R_nospace=no
   ac_R_nospace=no  
3796  fi  fi
3797  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3798        if test $ac_R_nospace = yes; then        if test $ac_R_nospace = yes; then
3799          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
3800    echo "${ECHO_T}no" >&6
3801          X_LIBS="$X_LIBS -R$x_libraries"          X_LIBS="$X_LIBS -R$x_libraries"
3802        else        else
3803          LIBS="$ac_xsave_LIBS -R $x_libraries"          LIBS="$ac_xsave_LIBS -R $x_libraries"
3804          cat > conftest.$ac_ext <<EOF          cat >conftest.$ac_ext <<_ACEOF
3805  #line 2149 "configure"  #line $LINENO "configure"
3806  #include "confdefs.h"  #include "confdefs.h"
3807    
3808  int main() {  #ifdef F77_DUMMY_MAIN
3809    #  ifdef __cplusplus
3810         extern "C"
3811    #  endif
3812       int F77_DUMMY_MAIN() { return 1; }
3813    #endif
3814    int
3815    main ()
3816    {
3817    
3818  ; return 0; }    ;
3819  EOF    return 0;
3820  if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3821    rm -rf conftest*  _ACEOF
3822    rm -f conftest.$ac_objext conftest$ac_exeext
3823    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3824      (eval $ac_link) 2>&5
3825      ac_status=$?
3826      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827      (exit $ac_status); } &&
3828             { ac_try='test -s conftest$ac_exeext'
3829      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830      (eval $ac_try) 2>&5
3831      ac_status=$?
3832      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833      (exit $ac_status); }; }; then
3834    ac_R_space=yes    ac_R_space=yes
3835  else  else
3836    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3837    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3838    rm -rf conftest*  ac_R_space=no
   ac_R_space=no  
3839  fi  fi
3840  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3841          if test $ac_R_space = yes; then          if test $ac_R_space = yes; then
3842            echo "$ac_t""yes" 1>&6            echo "$as_me:$LINENO: result: yes" >&5
3843    echo "${ECHO_T}yes" >&6
3844            X_LIBS="$X_LIBS -R $x_libraries"            X_LIBS="$X_LIBS -R $x_libraries"
3845          else          else
3846            echo "$ac_t""neither works" 1>&6            echo "$as_me:$LINENO: result: neither works" >&5
3847    echo "${ECHO_T}neither works" >&6
3848          fi          fi
3849        fi        fi
3850        LIBS="$ac_xsave_LIBS"        LIBS=$ac_xsave_LIBS
3851      esac      esac
3852    fi    fi
3853    
# Line 2180  rm -f conftest* Line 3858  rm -f conftest*
3858    if test "$ISC" = yes; then    if test "$ISC" = yes; then
3859      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3860    else    else
3861      # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X      # Martyn Johnson says this is needed for Ultrix, if the X
3862      # libraries were built with DECnet support.  And karl@cs.umb.edu says      # libraries were built with DECnet support.  And Karl Berry says
3863      # the Alpha needs dnet_stub (dnet does not exist).      # the Alpha needs dnet_stub (dnet does not exist).
3864      echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3865  echo "configure:2188: checking for dnet_ntoa in -ldnet" >&5      cat >conftest.$ac_ext <<_ACEOF
3866  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`  #line $LINENO "configure"
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   ac_save_LIBS="$LIBS"  
 LIBS="-ldnet  $LIBS"  
 cat > conftest.$ac_ext <<EOF  
 #line 2196 "configure"  
3867  #include "confdefs.h"  #include "confdefs.h"
3868    
3869  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3870    #ifdef __cplusplus
3871    extern "C"
3872    #endif
3873  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3874      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3875  char dnet_ntoa();  char XOpenDisplay ();
3876    #ifdef F77_DUMMY_MAIN
3877  int main() {  #  ifdef __cplusplus
3878  dnet_ntoa()       extern "C"
3879  ; return 0; }  #  endif
3880  EOF     int F77_DUMMY_MAIN() { return 1; }
3881  if { (eval echo configure:2207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
3882    rm -rf conftest*  int
3883    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
3884    {
3885    XOpenDisplay ();
3886      ;
3887      return 0;
3888    }
3889    _ACEOF
3890    rm -f conftest.$ac_objext conftest$ac_exeext
3891    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3892      (eval $ac_link) 2>&5
3893      ac_status=$?
3894      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895      (exit $ac_status); } &&
3896             { ac_try='test -s conftest$ac_exeext'
3897      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898      (eval $ac_try) 2>&5
3899      ac_status=$?
3900      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901      (exit $ac_status); }; }; then
3902      :
3903  else  else
3904    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3905    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3906    rm -rf conftest*  echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3907    eval "ac_cv_lib_$ac_lib_var=no"  echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3908  fi  if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3909  rm -f conftest*    echo $ECHO_N "(cached) $ECHO_C" >&6
3910  LIBS="$ac_save_LIBS"  else
3911      ac_check_lib_save_LIBS=$LIBS
3912    LIBS="-ldnet  $LIBS"
3913    cat >conftest.$ac_ext <<_ACEOF
3914    #line $LINENO "configure"
3915    #include "confdefs.h"
3916    
3917  fi  /* Override any gcc2 internal prototype to avoid an error.  */
3918  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
3919    echo "$ac_t""yes" 1>&6  extern "C"
3920    #endif
3921    /* We use char because int might match the return type of a gcc2
3922       builtin and then its argument prototype would still apply.  */
3923    char dnet_ntoa ();
3924    #ifdef F77_DUMMY_MAIN
3925    #  ifdef __cplusplus
3926         extern "C"
3927    #  endif
3928       int F77_DUMMY_MAIN() { return 1; }
3929    #endif
3930    int
3931    main ()
3932    {
3933    dnet_ntoa ();
3934      ;
3935      return 0;
3936    }
3937    _ACEOF
3938    rm -f conftest.$ac_objext conftest$ac_exeext
3939    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3940      (eval $ac_link) 2>&5
3941      ac_status=$?
3942      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943      (exit $ac_status); } &&
3944             { ac_try='test -s conftest$ac_exeext'
3945      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946      (eval $ac_try) 2>&5
3947      ac_status=$?
3948      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949      (exit $ac_status); }; }; then
3950      ac_cv_lib_dnet_dnet_ntoa=yes
3951    else
3952      echo "$as_me: failed program was:" >&5
3953    cat conftest.$ac_ext >&5
3954    ac_cv_lib_dnet_dnet_ntoa=no
3955    fi
3956    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3957    LIBS=$ac_check_lib_save_LIBS
3958    fi
3959    echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3960    echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3961    if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3962    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 else  
   echo "$ac_t""no" 1>&6  
3963  fi  fi
3964    
3965      if test $ac_cv_lib_dnet_dnet_ntoa = no; then      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3966        echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3967  echo "configure:2229: checking for dnet_ntoa in -ldnet_stub" >&5  echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3968  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3969  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
3970  else  else
3971    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
3972  LIBS="-ldnet_stub  $LIBS"  LIBS="-ldnet_stub  $LIBS"
3973  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
3974  #line 2237 "configure"  #line $LINENO "configure"
3975  #include "confdefs.h"  #include "confdefs.h"
3976    
3977  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3978    #ifdef __cplusplus
3979    extern "C"
3980    #endif
3981  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3982      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3983  char dnet_ntoa();  char dnet_ntoa ();
3984    #ifdef F77_DUMMY_MAIN
3985  int main() {  #  ifdef __cplusplus
3986  dnet_ntoa()       extern "C"
3987  ; return 0; }  #  endif
3988  EOF     int F77_DUMMY_MAIN() { return 1; }
3989  if { (eval echo configure:2248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
3990    rm -rf conftest*  int
3991    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
3992  else  {
3993    echo "configure: failed program was:" >&5  dnet_ntoa ();
3994    cat conftest.$ac_ext >&5    ;
3995    rm -rf conftest*    return 0;
3996    eval "ac_cv_lib_$ac_lib_var=no"  }
3997  fi  _ACEOF
3998  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
3999  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4000      (eval $ac_link) 2>&5
4001  fi    ac_status=$?
4002  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4004             { ac_try='test -s conftest$ac_exeext'
4005      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006      (eval $ac_try) 2>&5
4007      ac_status=$?
4008      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009      (exit $ac_status); }; }; then
4010      ac_cv_lib_dnet_stub_dnet_ntoa=yes
4011    else
4012      echo "$as_me: failed program was:" >&5
4013    cat conftest.$ac_ext >&5
4014    ac_cv_lib_dnet_stub_dnet_ntoa=no
4015    fi
4016    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4017    LIBS=$ac_check_lib_save_LIBS
4018    fi
4019    echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4020    echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4021    if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4022    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 else  
   echo "$ac_t""no" 1>&6  
4023  fi  fi
4024    
4025      fi      fi
4026    fi
4027    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4028        LIBS="$ac_xsave_LIBS"
4029    
4030      # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,      # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4031      # to get the SysV transport functions.      # to get the SysV transport functions.
4032      # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)      # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4033      # needs -lnsl.      # needs -lnsl.
4034      # The nsl library prevents programs from opening the X display      # The nsl library prevents programs from opening the X display
4035      # on Irix 5.2, according to dickey@clark.net.      # on Irix 5.2, according to T.E. Dickey.
4036      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6      # The functions gethostbyname, getservbyname, and inet_addr are
4037  echo "configure:2277: checking for gethostbyname" >&5      # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4038  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then      echo "$as_me:$LINENO: checking for gethostbyname" >&5
4039    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4040    if test "${ac_cv_func_gethostbyname+set}" = set; then
4041      echo $ECHO_N "(cached) $ECHO_C" >&6
4042  else  else
4043    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4044  #line 2282 "configure"  #line $LINENO "configure"
4045  #include "confdefs.h"  #include "confdefs.h"
4046  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4047      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname (); below.  */
4048  #include <assert.h>  #include <assert.h>
4049  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4050    #ifdef __cplusplus
4051    extern "C"
4052    #endif
4053  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4054      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4055  char gethostbyname();  char gethostbyname ();
4056    char (*f) ();
4057  int main() {  
4058    #ifdef F77_DUMMY_MAIN
4059    #  ifdef __cplusplus
4060         extern "C"
4061    #  endif
4062       int F77_DUMMY_MAIN() { return 1; }
4063    #endif
4064    int
4065    main ()
4066    {
4067  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4068      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4069      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4070  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4071  choke me  choke me
4072  #else  #else
4073  gethostbyname();  f = gethostbyname;
4074  #endif  #endif
4075    
4076  ; return 0; }    ;
4077  EOF    return 0;
4078  if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4079    rm -rf conftest*  _ACEOF
4080    eval "ac_cv_func_gethostbyname=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4081  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4082    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4083    cat conftest.$ac_ext >&5    ac_status=$?
4084    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085    eval "ac_cv_func_gethostbyname=no"    (exit $ac_status); } &&
4086             { ac_try='test -s conftest$ac_exeext'
4087      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088      (eval $ac_try) 2>&5
4089      ac_status=$?
4090      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091      (exit $ac_status); }; }; then
4092      ac_cv_func_gethostbyname=yes
4093    else
4094      echo "$as_me: failed program was:" >&5
4095    cat conftest.$ac_ext >&5
4096    ac_cv_func_gethostbyname=no
4097  fi  fi
4098  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 fi  
   
 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   :  
 else  
   echo "$ac_t""no" 1>&6  
4099  fi  fi
4100    echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4101    echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4102    
4103      if test $ac_cv_func_gethostbyname = no; then      if test $ac_cv_func_gethostbyname = no; then
4104        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4105  echo "configure:2326: checking for gethostbyname in -lnsl" >&5  echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4106  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4107  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4108  else  else
4109    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4110  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
4111  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4112  #line 2334 "configure"  #line $LINENO "configure"
4113  #include "confdefs.h"  #include "confdefs.h"
4114    
4115  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4116    #ifdef __cplusplus
4117    extern "C"
4118    #endif
4119  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4120      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4121  char gethostbyname();  char gethostbyname ();
4122    #ifdef F77_DUMMY_MAIN
4123  int main() {  #  ifdef __cplusplus
4124  gethostbyname()       extern "C"
4125  ; return 0; }  #  endif
4126  EOF     int F77_DUMMY_MAIN() { return 1; }
4127  if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4128    rm -rf conftest*  int
4129    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4130  else  {
4131    echo "configure: failed program was:" >&5  gethostbyname ();
4132    cat conftest.$ac_ext >&5    ;
4133    rm -rf conftest*    return 0;
4134    eval "ac_cv_lib_$ac_lib_var=no"  }
4135    _ACEOF
4136    rm -f conftest.$ac_objext conftest$ac_exeext
4137    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4138      (eval $ac_link) 2>&5
4139      ac_status=$?
4140      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141      (exit $ac_status); } &&
4142             { ac_try='test -s conftest$ac_exeext'
4143      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144      (eval $ac_try) 2>&5
4145      ac_status=$?
4146      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147      (exit $ac_status); }; }; then
4148      ac_cv_lib_nsl_gethostbyname=yes
4149    else
4150      echo "$as_me: failed program was:" >&5
4151    cat conftest.$ac_ext >&5
4152    ac_cv_lib_nsl_gethostbyname=no
4153    fi
4154    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4155    LIBS=$ac_check_lib_save_LIBS
4156    fi
4157    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4158    echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4159    if test $ac_cv_lib_nsl_gethostbyname = yes; then
4160      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4161  fi  fi
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4162    
4163  fi        if test $ac_cv_lib_nsl_gethostbyname = no; then
4164  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then          echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4165    echo "$ac_t""yes" 1>&6  echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4166    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"  if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4167  else    echo $ECHO_N "(cached) $ECHO_C" >&6
4168    echo "$ac_t""no" 1>&6  else
4169      ac_check_lib_save_LIBS=$LIBS
4170    LIBS="-lbsd  $LIBS"
4171    cat >conftest.$ac_ext <<_ACEOF
4172    #line $LINENO "configure"
4173    #include "confdefs.h"
4174    
4175    /* Override any gcc2 internal prototype to avoid an error.  */
4176    #ifdef __cplusplus
4177    extern "C"
4178    #endif
4179    /* We use char because int might match the return type of a gcc2
4180       builtin and then its argument prototype would still apply.  */
4181    char gethostbyname ();
4182    #ifdef F77_DUMMY_MAIN
4183    #  ifdef __cplusplus
4184         extern "C"
4185    #  endif
4186       int F77_DUMMY_MAIN() { return 1; }
4187    #endif
4188    int
4189    main ()
4190    {
4191    gethostbyname ();
4192      ;
4193      return 0;
4194    }
4195    _ACEOF
4196    rm -f conftest.$ac_objext conftest$ac_exeext
4197    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4198      (eval $ac_link) 2>&5
4199      ac_status=$?
4200      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201      (exit $ac_status); } &&
4202             { ac_try='test -s conftest$ac_exeext'
4203      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204      (eval $ac_try) 2>&5
4205      ac_status=$?
4206      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207      (exit $ac_status); }; }; then
4208      ac_cv_lib_bsd_gethostbyname=yes
4209    else
4210      echo "$as_me: failed program was:" >&5
4211    cat conftest.$ac_ext >&5
4212    ac_cv_lib_bsd_gethostbyname=no
4213    fi
4214    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4215    LIBS=$ac_check_lib_save_LIBS
4216    fi
4217    echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4218    echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4219    if test $ac_cv_lib_bsd_gethostbyname = yes; then
4220      X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4221  fi  fi
4222    
4223          fi
4224      fi      fi
4225    
4226      # lieder@skyler.mavd.honeywell.com says without -lsocket,      # lieder@skyler.mavd.honeywell.com says without -lsocket,
4227      # socket/setsockopt and other routines are undefined under SCO ODT      # socket/setsockopt and other routines are undefined under SCO ODT
4228      # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary      # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4229      # on later versions), says simon@lia.di.epfl.ch: it contains      # on later versions), says Simon Leinen: it contains gethostby*
4230      # gethostby* variants that don't use the nameserver (or something).      # variants that don't use the nameserver (or something).  -lsocket
4231      # -lsocket must be given before -lnsl if both are needed.      # must be given before -lnsl if both are needed.  We assume that
4232      # We assume that if connect needs -lnsl, so does gethostbyname.      # if connect needs -lnsl, so does gethostbyname.
4233      echo $ac_n "checking for connect""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for connect" >&5
4234  echo "configure:2375: checking for connect" >&5  echo $ECHO_N "checking for connect... $ECHO_C" >&6
4235  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if test "${ac_cv_func_connect+set}" = set; then
4236    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4237  else  else
4238    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4239  #line 2380 "configure"  #line $LINENO "configure"
4240  #include "confdefs.h"  #include "confdefs.h"
4241  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4242      which can conflict with char connect(); below.  */      which can conflict with char connect (); below.  */
4243  #include <assert.h>  #include <assert.h>
4244  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4245    #ifdef __cplusplus
4246    extern "C"
4247    #endif
4248  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4249      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4250  char connect();  char connect ();
4251    char (*f) ();
4252  int main() {  
4253    #ifdef F77_DUMMY_MAIN
4254    #  ifdef __cplusplus
4255         extern "C"
4256    #  endif
4257       int F77_DUMMY_MAIN() { return 1; }
4258    #endif
4259    int
4260    main ()
4261    {
4262  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4263      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4264      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4265  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
4266  choke me  choke me
4267  #else  #else
4268  connect();  f = connect;
4269  #endif  #endif
4270    
4271  ; return 0; }    ;
4272  EOF    return 0;
4273  if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4274    rm -rf conftest*  _ACEOF
4275    eval "ac_cv_func_connect=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4276  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4277    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4278    cat conftest.$ac_ext >&5    ac_status=$?
4279    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280    eval "ac_cv_func_connect=no"    (exit $ac_status); } &&
4281  fi           { ac_try='test -s conftest$ac_exeext'
4282  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283      (eval $ac_try) 2>&5
4284      ac_status=$?
4285      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286      (exit $ac_status); }; }; then
4287      ac_cv_func_connect=yes
4288    else
4289      echo "$as_me: failed program was:" >&5
4290    cat conftest.$ac_ext >&5
4291    ac_cv_func_connect=no
4292  fi  fi
4293    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   :  
 else  
   echo "$ac_t""no" 1>&6  
4294  fi  fi
4295    echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4296    echo "${ECHO_T}$ac_cv_func_connect" >&6
4297    
4298      if test $ac_cv_func_connect = no; then      if test $ac_cv_func_connect = no; then
4299        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4300  echo "configure:2424: checking for connect in -lsocket" >&5  echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4301  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_connect+set}" = set; then
4302  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4303  else  else
4304    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4305  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4306  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4307  #line 2432 "configure"  #line $LINENO "configure"
4308  #include "confdefs.h"  #include "confdefs.h"
4309    
4310  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4311    #ifdef __cplusplus
4312    extern "C"
4313    #endif
4314  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4315      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4316  char connect();  char connect ();
4317    #ifdef F77_DUMMY_MAIN
4318  int main() {  #  ifdef __cplusplus
4319  connect()       extern "C"
4320  ; return 0; }  #  endif
4321  EOF     int F77_DUMMY_MAIN() { return 1; }
4322  if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4323    rm -rf conftest*  int
4324    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4325  else  {
4326    echo "configure: failed program was:" >&5  connect ();
4327    cat conftest.$ac_ext >&5    ;
4328    rm -rf conftest*    return 0;
4329    eval "ac_cv_lib_$ac_lib_var=no"  }
4330  fi  _ACEOF
4331  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4332  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4333      (eval $ac_link) 2>&5
4334  fi    ac_status=$?
4335  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4337             { ac_try='test -s conftest$ac_exeext'
4338      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339      (eval $ac_try) 2>&5
4340      ac_status=$?
4341      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342      (exit $ac_status); }; }; then
4343      ac_cv_lib_socket_connect=yes
4344    else
4345      echo "$as_me: failed program was:" >&5
4346    cat conftest.$ac_ext >&5
4347    ac_cv_lib_socket_connect=no
4348    fi
4349    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4350    LIBS=$ac_check_lib_save_LIBS
4351    fi
4352    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4353    echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4354    if test $ac_cv_lib_socket_connect = yes; then
4355    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 else  
   echo "$ac_t""no" 1>&6  
4356  fi  fi
4357    
4358      fi      fi
4359    
4360      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.      # Guillermo Gomez says -lposix is necessary on A/UX.
4361      echo $ac_n "checking for remove""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for remove" >&5
4362  echo "configure:2467: checking for remove" >&5  echo $ECHO_N "checking for remove... $ECHO_C" >&6
4363  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then  if test "${ac_cv_func_remove+set}" = set; then
4364    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4365  else  else
4366    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4367  #line 2472 "configure"  #line $LINENO "configure"
4368  #include "confdefs.h"  #include "confdefs.h"
4369  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4370      which can conflict with char remove(); below.  */      which can conflict with char remove (); below.  */
4371  #include <assert.h>  #include <assert.h>
4372  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4373    #ifdef __cplusplus
4374    extern "C"
4375    #endif
4376  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4377      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4378  char remove();  char remove ();
4379    char (*f) ();
4380  int main() {  
4381    #ifdef F77_DUMMY_MAIN
4382    #  ifdef __cplusplus
4383         extern "C"
4384    #  endif
4385       int F77_DUMMY_MAIN() { return 1; }
4386    #endif
4387    int
4388    main ()
4389    {
4390  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4391      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4392      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4393  #if defined (__stub_remove) || defined (__stub___remove)  #if defined (__stub_remove) || defined (__stub___remove)
4394  choke me  choke me
4395  #else  #else
4396  remove();  f = remove;
4397  #endif  #endif
4398    
4399  ; return 0; }    ;
4400  EOF    return 0;
4401  if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4402    rm -rf conftest*  _ACEOF
4403    eval "ac_cv_func_remove=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4404  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4406    cat conftest.$ac_ext >&5    ac_status=$?
4407    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408    eval "ac_cv_func_remove=no"    (exit $ac_status); } &&
4409  fi           { ac_try='test -s conftest$ac_exeext'
4410  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411      (eval $ac_try) 2>&5
4412      ac_status=$?
4413      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414      (exit $ac_status); }; }; then
4415      ac_cv_func_remove=yes
4416    else
4417      echo "$as_me: failed program was:" >&5
4418    cat conftest.$ac_ext >&5
4419    ac_cv_func_remove=no
4420  fi  fi
4421    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   :  
 else  
   echo "$ac_t""no" 1>&6  
4422  fi  fi
4423    echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4424    echo "${ECHO_T}$ac_cv_func_remove" >&6
4425    
4426      if test $ac_cv_func_remove = no; then      if test $ac_cv_func_remove = no; then
4427        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4428  echo "configure:2516: checking for remove in -lposix" >&5  echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4429  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_posix_remove+set}" = set; then
4430  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4431  else  else
4432    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4433  LIBS="-lposix  $LIBS"  LIBS="-lposix  $LIBS"
4434  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4435  #line 2524 "configure"  #line $LINENO "configure"
4436  #include "confdefs.h"  #include "confdefs.h"
4437    
4438  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4439    #ifdef __cplusplus
4440    extern "C"
4441    #endif
4442  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4443      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4444  char remove();  char remove ();
4445    #ifdef F77_DUMMY_MAIN
4446  int main() {  #  ifdef __cplusplus
4447  remove()       extern "C"
4448  ; return 0; }  #  endif
4449  EOF     int F77_DUMMY_MAIN() { return 1; }
4450  if { (eval echo configure:2535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4451    rm -rf conftest*  int
4452    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4453  else  {
4454    echo "configure: failed program was:" >&5  remove ();
4455    cat conftest.$ac_ext >&5    ;
4456    rm -rf conftest*    return 0;
4457    eval "ac_cv_lib_$ac_lib_var=no"  }
4458  fi  _ACEOF
4459  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4460  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4461      (eval $ac_link) 2>&5
4462  fi    ac_status=$?
4463  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4465             { ac_try='test -s conftest$ac_exeext'
4466      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467      (eval $ac_try) 2>&5
4468      ac_status=$?
4469      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470      (exit $ac_status); }; }; then
4471      ac_cv_lib_posix_remove=yes
4472    else
4473      echo "$as_me: failed program was:" >&5
4474    cat conftest.$ac_ext >&5
4475    ac_cv_lib_posix_remove=no
4476    fi
4477    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4478    LIBS=$ac_check_lib_save_LIBS
4479    fi
4480    echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4481    echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4482    if test $ac_cv_lib_posix_remove = yes; then
4483    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 else  
   echo "$ac_t""no" 1>&6  
4484  fi  fi
4485    
4486      fi      fi
4487    
4488      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4489      echo $ac_n "checking for shmat""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for shmat" >&5
4490  echo "configure:2559: checking for shmat" >&5  echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4491  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then  if test "${ac_cv_func_shmat+set}" = set; then
4492    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4493  else  else
4494    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4495  #line 2564 "configure"  #line $LINENO "configure"
4496  #include "confdefs.h"  #include "confdefs.h"
4497  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4498      which can conflict with char shmat(); below.  */      which can conflict with char shmat (); below.  */
4499  #include <assert.h>  #include <assert.h>
4500  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4501    #ifdef __cplusplus
4502    extern "C"
4503    #endif
4504  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4505      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4506  char shmat();  char shmat ();
4507    char (*f) ();
4508  int main() {  
4509    #ifdef F77_DUMMY_MAIN
4510    #  ifdef __cplusplus
4511         extern "C"
4512    #  endif
4513       int F77_DUMMY_MAIN() { return 1; }
4514    #endif
4515    int
4516    main ()
4517    {
4518  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4519      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4520      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4521  #if defined (__stub_shmat) || defined (__stub___shmat)  #if defined (__stub_shmat) || defined (__stub___shmat)
4522  choke me  choke me
4523  #else  #else
4524  shmat();  f = shmat;
4525  #endif  #endif
4526    
4527  ; return 0; }    ;
4528  EOF    return 0;
4529  if { (eval echo configure:2587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4530    rm -rf conftest*  _ACEOF
4531    eval "ac_cv_func_shmat=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4532  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4533    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4534    cat conftest.$ac_ext >&5    ac_status=$?
4535    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536    eval "ac_cv_func_shmat=no"    (exit $ac_status); } &&
4537  fi           { ac_try='test -s conftest$ac_exeext'
4538  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539      (eval $ac_try) 2>&5
4540      ac_status=$?
4541      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542      (exit $ac_status); }; }; then
4543      ac_cv_func_shmat=yes
4544    else
4545      echo "$as_me: failed program was:" >&5
4546    cat conftest.$ac_ext >&5
4547    ac_cv_func_shmat=no
4548  fi  fi
4549    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   :  
 else  
   echo "$ac_t""no" 1>&6  
4550  fi  fi
4551    echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4552    echo "${ECHO_T}$ac_cv_func_shmat" >&6
4553    
4554      if test $ac_cv_func_shmat = no; then      if test $ac_cv_func_shmat = no; then
4555        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4556  echo "configure:2608: checking for shmat in -lipc" >&5  echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4557  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4558  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4559  else  else
4560    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4561  LIBS="-lipc  $LIBS"  LIBS="-lipc  $LIBS"
4562  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4563  #line 2616 "configure"  #line $LINENO "configure"
4564  #include "confdefs.h"  #include "confdefs.h"
4565    
4566  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4567    #ifdef __cplusplus
4568    extern "C"
4569    #endif
4570  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4571      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4572  char shmat();  char shmat ();
4573    #ifdef F77_DUMMY_MAIN
4574  int main() {  #  ifdef __cplusplus
4575  shmat()       extern "C"
4576  ; return 0; }  #  endif
4577  EOF     int F77_DUMMY_MAIN() { return 1; }
4578  if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4579    rm -rf conftest*  int
4580    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4581  else  {
4582    echo "configure: failed program was:" >&5  shmat ();
4583    cat conftest.$ac_ext >&5    ;
4584    rm -rf conftest*    return 0;
4585    eval "ac_cv_lib_$ac_lib_var=no"  }
4586  fi  _ACEOF
4587  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4588  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4589      (eval $ac_link) 2>&5
4590  fi    ac_status=$?
4591  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4593             { ac_try='test -s conftest$ac_exeext'
4594      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595      (eval $ac_try) 2>&5
4596      ac_status=$?
4597      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598      (exit $ac_status); }; }; then
4599      ac_cv_lib_ipc_shmat=yes
4600    else
4601      echo "$as_me: failed program was:" >&5
4602    cat conftest.$ac_ext >&5
4603    ac_cv_lib_ipc_shmat=no
4604    fi
4605    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4606    LIBS=$ac_check_lib_save_LIBS
4607    fi
4608    echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4609    echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4610    if test $ac_cv_lib_ipc_shmat = yes; then
4611    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 else  
   echo "$ac_t""no" 1>&6  
4612  fi  fi
4613    
4614      fi      fi
4615    fi    fi
4616    
4617    # Check for libraries that X11R6 Xt/Xaw programs need.    # Check for libraries that X11R6 Xt/Xaw programs need.
4618    ac_save_LDFLAGS="$LDFLAGS"    ac_save_LDFLAGS=$LDFLAGS
4619    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4620    # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to    # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4621    # check for ICE first), but we must link in the order -lSM -lICE or    # check for ICE first), but we must link in the order -lSM -lICE or
4622    # we get undefined symbols.  So assume we have SM if we have ICE.    # we get undefined symbols.  So assume we have SM if we have ICE.
4623    # These have to be linked with before -lX11, unlike the other    # These have to be linked with before -lX11, unlike the other
4624    # libraries we check for below, so use a different variable.    # libraries we check for below, so use a different variable.
4625    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.    # John Interrante, Karl Berry
4626    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4627  echo "configure:2660: checking for IceConnectionNumber in -lICE" >&5  echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4628  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4629  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4630  else  else
4631    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4632  LIBS="-lICE $X_EXTRA_LIBS $LIBS"  LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4633  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4634  #line 2668 "configure"  #line $LINENO "configure"
4635  #include "confdefs.h"  #include "confdefs.h"
4636    
4637  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4638    #ifdef __cplusplus
4639    extern "C"
4640    #endif
4641  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4642      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4643  char IceConnectionNumber();  char IceConnectionNumber ();
4644    #ifdef F77_DUMMY_MAIN
4645  int main() {  #  ifdef __cplusplus
4646  IceConnectionNumber()       extern "C"
4647  ; return 0; }  #  endif
4648  EOF     int F77_DUMMY_MAIN() { return 1; }
4649  if { (eval echo configure:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4650    rm -rf conftest*  int
4651    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4652  else  {
4653    echo "configure: failed program was:" >&5  IceConnectionNumber ();
4654    cat conftest.$ac_ext >&5    ;
4655    rm -rf conftest*    return 0;
4656    eval "ac_cv_lib_$ac_lib_var=no"  }
4657  fi  _ACEOF
4658  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4659  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4660      (eval $ac_link) 2>&5
4661  fi    ac_status=$?
4662  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4664             { ac_try='test -s conftest$ac_exeext'
4665      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666      (eval $ac_try) 2>&5
4667      ac_status=$?
4668      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669      (exit $ac_status); }; }; then
4670      ac_cv_lib_ICE_IceConnectionNumber=yes
4671    else
4672      echo "$as_me: failed program was:" >&5
4673    cat conftest.$ac_ext >&5
4674    ac_cv_lib_ICE_IceConnectionNumber=no
4675    fi
4676    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4677    LIBS=$ac_check_lib_save_LIBS
4678    fi
4679    echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4680    echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4681    if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4682    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 else  
   echo "$ac_t""no" 1>&6  
4683  fi  fi
4684    
4685    LDFLAGS="$ac_save_LDFLAGS"    LDFLAGS=$ac_save_LDFLAGS
4686    
4687  fi  fi
4688    
# Line 2705  echo $X_EXTRA_LIBS Line 4692  echo $X_EXTRA_LIBS
4692  echo $X_PRE_LIBS  echo $X_PRE_LIBS
4693    
4694  miss=0  miss=0
4695  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXmu" >&5
4696  echo "configure:2710: checking for main in -lXmu" >&5  echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6
4697  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xmu_main+set}" = set; then
4698  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4699  else  else
4700    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4701  LIBS="-lXmu $X_LIBS $LIBS"  LIBS="-lXmu $X_LIBS $LIBS"
4702  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4703  #line 2718 "configure"  #line $LINENO "configure"
4704  #include "confdefs.h"  #include "confdefs.h"
4705    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4706    
4707  fi  #ifdef F77_DUMMY_MAIN
4708  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4709    echo "$ac_t""yes" 1>&6       extern "C"
4710    #  endif
4711       int F77_DUMMY_MAIN() { return 1; }
4712    #endif
4713    int
4714    main ()
4715    {
4716    main ();
4717      ;
4718      return 0;
4719    }
4720    _ACEOF
4721    rm -f conftest.$ac_objext conftest$ac_exeext
4722    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4723      (eval $ac_link) 2>&5
4724      ac_status=$?
4725      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726      (exit $ac_status); } &&
4727             { ac_try='test -s conftest$ac_exeext'
4728      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729      (eval $ac_try) 2>&5
4730      ac_status=$?
4731      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732      (exit $ac_status); }; }; then
4733      ac_cv_lib_Xmu_main=yes
4734    else
4735      echo "$as_me: failed program was:" >&5
4736    cat conftest.$ac_ext >&5
4737    ac_cv_lib_Xmu_main=no
4738    fi
4739    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4740    LIBS=$ac_check_lib_save_LIBS
4741    fi
4742    echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5
4743    echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6
4744    if test $ac_cv_lib_Xmu_main = yes; then
4745    X_LIBS="$X_LIBS -lXmu"    X_LIBS="$X_LIBS -lXmu"
4746  else  else
4747    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4748  fi  fi
4749    
4750  echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXt" >&5
4751  echo "configure:2747: checking for main in -lXt" >&5  echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
4752  ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xt_main+set}" = set; then
4753  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4754  else  else
4755    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4756  LIBS="-lXt $X_LIBS $LIBS"  LIBS="-lXt $X_LIBS $LIBS"
4757  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4758  #line 2755 "configure"  #line $LINENO "configure"
4759  #include "confdefs.h"  #include "confdefs.h"
4760    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4761    
4762  fi  #ifdef F77_DUMMY_MAIN
4763  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4764    echo "$ac_t""yes" 1>&6       extern "C"
4765    #  endif
4766       int F77_DUMMY_MAIN() { return 1; }
4767    #endif
4768    int
4769    main ()
4770    {
4771    main ();
4772      ;
4773      return 0;
4774    }
4775    _ACEOF
4776    rm -f conftest.$ac_objext conftest$ac_exeext
4777    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4778      (eval $ac_link) 2>&5
4779      ac_status=$?
4780      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781      (exit $ac_status); } &&
4782             { ac_try='test -s conftest$ac_exeext'
4783      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784      (eval $ac_try) 2>&5
4785      ac_status=$?
4786      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787      (exit $ac_status); }; }; then
4788      ac_cv_lib_Xt_main=yes
4789    else
4790      echo "$as_me: failed program was:" >&5
4791    cat conftest.$ac_ext >&5
4792    ac_cv_lib_Xt_main=no
4793    fi
4794    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4795    LIBS=$ac_check_lib_save_LIBS
4796    fi
4797    echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
4798    echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
4799    if test $ac_cv_lib_Xt_main = yes; then
4800    X_LIBS="$X_LIBS -lXt"    X_LIBS="$X_LIBS -lXt"
4801  else  else
4802    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4803  fi  fi
4804    
4805  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXext" >&5
4806  echo "configure:2784: checking for main in -lXext" >&5  echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6
4807  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xext_main+set}" = set; then
4808  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4809  else  else
4810    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4811  LIBS="-lXext $X_LIBS $LIBS"  LIBS="-lXext $X_LIBS $LIBS"
4812  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4813  #line 2792 "configure"  #line $LINENO "configure"
4814  #include "confdefs.h"  #include "confdefs.h"
4815    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4816    
4817  fi  #ifdef F77_DUMMY_MAIN
4818  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4819    echo "$ac_t""yes" 1>&6       extern "C"
4820    #  endif
4821       int F77_DUMMY_MAIN() { return 1; }
4822    #endif
4823    int
4824    main ()
4825    {
4826    main ();
4827      ;
4828      return 0;
4829    }
4830    _ACEOF
4831    rm -f conftest.$ac_objext conftest$ac_exeext
4832    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4833      (eval $ac_link) 2>&5
4834      ac_status=$?
4835      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836      (exit $ac_status); } &&
4837             { ac_try='test -s conftest$ac_exeext'
4838      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839      (eval $ac_try) 2>&5
4840      ac_status=$?
4841      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842      (exit $ac_status); }; }; then
4843      ac_cv_lib_Xext_main=yes
4844    else
4845      echo "$as_me: failed program was:" >&5
4846    cat conftest.$ac_ext >&5
4847    ac_cv_lib_Xext_main=no
4848    fi
4849    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4850    LIBS=$ac_check_lib_save_LIBS
4851    fi
4852    echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5
4853    echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6
4854    if test $ac_cv_lib_Xext_main = yes; then
4855    X_LIBS="$X_LIBS -lXext"    X_LIBS="$X_LIBS -lXext"
4856  else  else
4857    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4858  fi  fi
4859    
4860  echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXaw" >&5
4861  echo "configure:2821: checking for main in -lXaw" >&5  echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6
4862  ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xaw_main+set}" = set; then
4863  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4864  else  else
4865    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4866  LIBS="-lXaw $X_LIBS $LIBS"  LIBS="-lXaw $X_LIBS $LIBS"
4867  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4868  #line 2829 "configure"  #line $LINENO "configure"
4869  #include "confdefs.h"  #include "confdefs.h"
4870    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4871    
4872  fi  #ifdef F77_DUMMY_MAIN
4873  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4874    echo "$ac_t""yes" 1>&6       extern "C"
4875    #  endif
4876       int F77_DUMMY_MAIN() { return 1; }
4877    #endif
4878    int
4879    main ()
4880    {
4881    main ();
4882      ;
4883      return 0;
4884    }
4885    _ACEOF
4886    rm -f conftest.$ac_objext conftest$ac_exeext
4887    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4888      (eval $ac_link) 2>&5
4889      ac_status=$?
4890      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891      (exit $ac_status); } &&
4892             { ac_try='test -s conftest$ac_exeext'
4893      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894      (eval $ac_try) 2>&5
4895      ac_status=$?
4896      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897      (exit $ac_status); }; }; then
4898      ac_cv_lib_Xaw_main=yes
4899    else
4900      echo "$as_me: failed program was:" >&5
4901    cat conftest.$ac_ext >&5
4902    ac_cv_lib_Xaw_main=no
4903    fi
4904    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4905    LIBS=$ac_check_lib_save_LIBS
4906    fi
4907    echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5
4908    echo "${ECHO_T}$ac_cv_lib_Xaw_main" >&6
4909    if test $ac_cv_lib_Xaw_main = yes; then
4910    X_LIBS="$X_LIBS -lXaw"    X_LIBS="$X_LIBS -lXaw"
4911  else  else
4912    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4913  fi  fi
4914    
4915  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lX11" >&5
4916  echo "configure:2858: checking for main in -lX11" >&5  echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
4917  ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_X11_main+set}" = set; then
4918  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4919  else  else
4920    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4921  LIBS="-lX11 $X_LIBS $LIBS"  LIBS="-lX11 $X_LIBS $LIBS"
4922  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4923  #line 2866 "configure"  #line $LINENO "configure"
4924  #include "confdefs.h"  #include "confdefs.h"
4925    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4926    
4927  fi  #ifdef F77_DUMMY_MAIN
4928  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4929    echo "$ac_t""yes" 1>&6       extern "C"
4930    #  endif
4931       int F77_DUMMY_MAIN() { return 1; }
4932    #endif
4933    int
4934    main ()
4935    {
4936    main ();
4937      ;
4938      return 0;
4939    }
4940    _ACEOF
4941    rm -f conftest.$ac_objext conftest$ac_exeext
4942    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4943      (eval $ac_link) 2>&5
4944      ac_status=$?
4945      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946      (exit $ac_status); } &&
4947             { ac_try='test -s conftest$ac_exeext'
4948      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949      (eval $ac_try) 2>&5
4950      ac_status=$?
4951      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952      (exit $ac_status); }; }; then
4953      ac_cv_lib_X11_main=yes
4954    else
4955      echo "$as_me: failed program was:" >&5
4956    cat conftest.$ac_ext >&5
4957    ac_cv_lib_X11_main=no
4958    fi
4959    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4960    LIBS=$ac_check_lib_save_LIBS
4961    fi
4962    echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
4963    echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
4964    if test $ac_cv_lib_X11_main = yes; then
4965    X_LIBS="$X_LIBS -lX11"    X_LIBS="$X_LIBS -lX11"
4966  else  else
4967    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4968  fi  fi
4969    
4970    
4971  if test "$miss" = "1" ; then  if test "$miss" = "1" ; then
4972          X_CFLAGS=          X_CFLAGS=
4973          X_LIBS=          X_LIBS=
# Line 2907  fi Line 4984  fi
4984    
4985  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
4986    
4987          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4988  echo "configure:2912: checking for dlopen in -ldl" >&5  echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4989  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4990  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4991  else  else
4992    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4993  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
4994  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4995  #line 2920 "configure"  #line $LINENO "configure"
4996  #include "confdefs.h"  #include "confdefs.h"
4997    
4998  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4999    #ifdef __cplusplus
5000    extern "C"
5001    #endif
5002  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
5003      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5004  char dlopen();  char dlopen ();
5005    #ifdef F77_DUMMY_MAIN
5006  int main() {  #  ifdef __cplusplus
5007  dlopen()       extern "C"
5008  ; return 0; }  #  endif
5009  EOF     int F77_DUMMY_MAIN() { return 1; }
5010  if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
5011    rm -rf conftest*  int
5012    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
5013  else  {
5014    echo "configure: failed program was:" >&5  dlopen ();
5015    cat conftest.$ac_ext >&5    ;
5016    rm -rf conftest*    return 0;
5017    eval "ac_cv_lib_$ac_lib_var=no"  }
5018  fi  _ACEOF
5019  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
5020  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5021      (eval $ac_link) 2>&5
5022  fi    ac_status=$?
5023  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
5025             { ac_try='test -s conftest$ac_exeext'
5026      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027      (eval $ac_try) 2>&5
5028      ac_status=$?
5029      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030      (exit $ac_status); }; }; then
5031      ac_cv_lib_dl_dlopen=yes
5032    else
5033      echo "$as_me: failed program was:" >&5
5034    cat conftest.$ac_ext >&5
5035    ac_cv_lib_dl_dlopen=no
5036    fi
5037    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5038    LIBS=$ac_check_lib_save_LIBS
5039    fi
5040    echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5041    echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5042    if test $ac_cv_lib_dl_dlopen = yes; then
5043    have_dl=1    have_dl=1
5044  else  else
5045    echo "$ac_t""no" 1>&6    have_dl=0
 have_dl=0  
5046  fi  fi
5047    
5048          if test "$have_dl" = "0" ; then          if test "$have_dl" = "0" ; then
# Line 2954  fi Line 5051  fi
5051          fi          fi
5052    
5053          TLIBS="$TLIBS -ldl -rdynamic"          TLIBS="$TLIBS -ldl -rdynamic"
5054          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
5055  #define USE_DLOPEN 1  #define USE_DLOPEN 1
5056  EOF  _ACEOF
5057    
5058  fi  fi
5059    
5060  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
5061          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`          if test "${ac_cv_header_bfd_h+set}" = set; then
5062  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for bfd.h" >&5
5063  echo "configure:2967: checking for bfd.h" >&5  echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
5064  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_bfd_h+set}" = set; then
5065    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5066  else  fi
5067    cat > conftest.$ac_ext <<EOF  echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
5068  #line 2972 "configure"  echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
5069    else
5070      # Is the header compilable?
5071    echo "$as_me:$LINENO: checking bfd.h usability" >&5
5072    echo $ECHO_N "checking bfd.h usability... $ECHO_C" >&6
5073    cat >conftest.$ac_ext <<_ACEOF
5074    #line $LINENO "configure"
5075  #include "confdefs.h"  #include "confdefs.h"
5076    $ac_includes_default
5077  #include <bfd.h>  #include <bfd.h>
5078  EOF  _ACEOF
5079  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  rm -f conftest.$ac_objext
5080  { (eval echo configure:2977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    (eval $ac_compile) 2>&5
5082  if test -z "$ac_err"; then    ac_status=$?
5083    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084    eval "ac_cv_header_$ac_safe=yes"    (exit $ac_status); } &&
5085             { ac_try='test -s conftest.$ac_objext'
5086      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087      (eval $ac_try) 2>&5
5088      ac_status=$?
5089      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090      (exit $ac_status); }; }; then
5091      ac_header_compiler=yes
5092    else
5093      echo "$as_me: failed program was:" >&5
5094    cat conftest.$ac_ext >&5
5095    ac_header_compiler=no
5096    fi
5097    rm -f conftest.$ac_objext conftest.$ac_ext
5098    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5099    echo "${ECHO_T}$ac_header_compiler" >&6
5100    
5101    # Is the header present?
5102    echo "$as_me:$LINENO: checking bfd.h presence" >&5
5103    echo $ECHO_N "checking bfd.h presence... $ECHO_C" >&6
5104    cat >conftest.$ac_ext <<_ACEOF
5105    #line $LINENO "configure"
5106    #include "confdefs.h"
5107    #include <bfd.h>
5108    _ACEOF
5109    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5110      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5111      ac_status=$?
5112      egrep -v '^ *\+' conftest.er1 >conftest.err
5113      rm -f conftest.er1
5114      cat conftest.err >&5
5115      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116      (exit $ac_status); } >/dev/null; then
5117      if test -s conftest.err; then
5118        ac_cpp_err=$ac_c_preproc_warn_flag
5119      else
5120        ac_cpp_err=
5121      fi
5122  else  else
5123    echo "$ac_err" >&5    ac_cpp_err=yes
5124    echo "configure: failed program was:" >&5  fi
5125    if test -z "$ac_cpp_err"; then
5126      ac_header_preproc=yes
5127    else
5128      echo "$as_me: failed program was:" >&5
5129    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5130    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
5131  fi  fi
5132  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
5133    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5134    echo "${ECHO_T}$ac_header_preproc" >&6
5135    
5136    # So?  What about this header?
5137    case $ac_header_compiler:$ac_header_preproc in
5138      yes:no )
5139        { echo "$as_me:$LINENO: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&5
5140    echo "$as_me: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5141        { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
5142    echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;};;
5143      no:yes )
5144        { echo "$as_me:$LINENO: WARNING: bfd.h: present but cannot be compiled" >&5
5145    echo "$as_me: WARNING: bfd.h: present but cannot be compiled" >&2;}
5146        { echo "$as_me:$LINENO: WARNING: bfd.h: check for missing prerequisite headers?" >&5
5147    echo "$as_me: WARNING: bfd.h: check for missing prerequisite headers?" >&2;}
5148        { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
5149    echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;};;
5150    esac
5151    echo "$as_me:$LINENO: checking for bfd.h" >&5
5152    echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
5153    if test "${ac_cv_header_bfd_h+set}" = set; then
5154      echo $ECHO_N "(cached) $ECHO_C" >&6
5155    else
5156      ac_cv_header_bfd_h=$ac_header_preproc
5157    fi
5158    echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
5159    echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
5160    
5161  fi  fi
5162  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test $ac_cv_header_bfd_h = yes; then
5163    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5
5164    echo $ac_n "checking for bfd_init in -lbfd""... $ac_c" 1>&6  echo $ECHO_N "checking for bfd_init in -lbfd... $ECHO_C" >&6
5165  echo "configure:2994: checking for bfd_init in -lbfd" >&5  if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then
5166  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`    echo $ECHO_N "(cached) $ECHO_C" >&6
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
5167  else  else
5168    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5169  LIBS="-lbfd -liberty $LIBS"  LIBS="-lbfd -liberty $LIBS"
5170  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5171  #line 3002 "configure"  #line $LINENO "configure"
5172  #include "confdefs.h"  #include "confdefs.h"
5173    
5174  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5175    #ifdef __cplusplus
5176    extern "C"
5177    #endif
5178  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
5179      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5180  char bfd_init();  char bfd_init ();
5181    #ifdef F77_DUMMY_MAIN
5182  int main() {  #  ifdef __cplusplus
5183  bfd_init()       extern "C"
5184  ; return 0; }  #  endif
5185  EOF     int F77_DUMMY_MAIN() { return 1; }
5186  if { (eval echo configure:3013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
5187    rm -rf conftest*  int
5188    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
5189  else  {
5190    echo "configure: failed program was:" >&5  bfd_init ();
5191    cat conftest.$ac_ext >&5    ;
5192    rm -rf conftest*    return 0;
5193    eval "ac_cv_lib_$ac_lib_var=no"  }
5194  fi  _ACEOF
5195  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
5196  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5197      (eval $ac_link) 2>&5
5198  fi    ac_status=$?
5199  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
5201             { ac_try='test -s conftest$ac_exeext'
5202      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203      (eval $ac_try) 2>&5
5204      ac_status=$?
5205      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206      (exit $ac_status); }; }; then
5207      ac_cv_lib_bfd_bfd_init=yes
5208    else
5209      echo "$as_me: failed program was:" >&5
5210    cat conftest.$ac_ext >&5
5211    ac_cv_lib_bfd_bfd_init=no
5212    fi
5213    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5214    LIBS=$ac_check_lib_save_LIBS
5215    fi
5216    echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_init" >&5
5217    echo "${ECHO_T}$ac_cv_lib_bfd_bfd_init" >&6
5218    if test $ac_cv_lib_bfd_bfd_init = yes; then
5219    #    #
5220                  # Old binutils appear to need CONST defined to const                  # Old binutils appear to need CONST defined to const
5221                  #                  #
5222                          echo $ac_n "checking if need to define CONST for bfd""... $ac_c" 1>&6                          echo "$as_me:$LINENO: checking if need to define CONST for bfd" >&5
5223  echo "configure:3032: checking if need to define CONST for bfd" >&5  echo $ECHO_N "checking if need to define CONST for bfd... $ECHO_C" >&6
5224                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
5225    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$as_me:$LINENO: result: cannot use bfd" >&5
5226    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5227  else  else
5228    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5229  #line 3037 "configure"  #line $LINENO "configure"
5230  #include "confdefs.h"  #include "confdefs.h"
5231  #define IN_GCC  #define IN_GCC
5232                                      #include <bfd.h>                                      #include <bfd.h>
5233                                      int main() { symbol_info t; return 0;}                                      int main() { symbol_info t; return 0;}
5234  EOF  _ACEOF
5235  if { (eval echo configure:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5236  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237    echo "$ac_t""no" 1>&6    (eval $ac_link) 2>&5
5238  else    ac_status=$?
5239    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240    cat conftest.$ac_ext >&5    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5241    rm -fr conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242    if test "$cross_compiling" = yes; then    (eval $ac_try) 2>&5
5243    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    ac_status=$?
5244      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245      (exit $ac_status); }; }; then
5246      echo "$as_me:$LINENO: result: no" >&5
5247    echo "${ECHO_T}no" >&6
5248    else
5249      echo "$as_me: program exited with status $ac_status" >&5
5250    echo "$as_me: failed program was:" >&5
5251    cat conftest.$ac_ext >&5
5252    ( exit $ac_status )
5253    if test "$cross_compiling" = yes; then
5254      echo "$as_me:$LINENO: result: cannot use bfd" >&5
5255    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5256  else  else
5257    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5258  #line 3054 "configure"  #line $LINENO "configure"
5259  #include "confdefs.h"  #include "confdefs.h"
5260  #define CONST const  #define CONST const
5261                                              #define IN_GCC                                              #define IN_GCC
5262                                              #include <bfd.h>                                              #include <bfd.h>
5263                                              int main() {symbol_info t; return 0;}                                              int main() {symbol_info t; return 0;}
5264  EOF  _ACEOF
5265  if { (eval echo configure:3061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5266  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5267    echo "$ac_t""yes" 1>&6    (eval $ac_link) 2>&5
5268                                          cat >> confdefs.h <<\EOF    ac_status=$?
5269      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5271      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272      (eval $ac_try) 2>&5
5273      ac_status=$?
5274      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275      (exit $ac_status); }; }; then
5276      echo "$as_me:$LINENO: result: yes" >&5
5277    echo "${ECHO_T}yes" >&6
5278                                            cat >>confdefs.h <<\_ACEOF
5279  #define NEED_CONST 1  #define NEED_CONST 1
5280  EOF  _ACEOF
5281    
5282  else  else
5283    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5284    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5285    rm -fr conftest*  cat conftest.$ac_ext >&5
5286    echo "$ac_t""cannot use bfd" 1>&6 exit 1;  ( exit $ac_status )
5287    echo "$as_me:$LINENO: result: cannot use bfd" >&5
5288    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5289  fi  fi
5290  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5291  fi  fi
   
5292  fi  fi
5293  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5294  fi  fi
5295    
                           
 else  
   echo "$ac_t""no" 1>&6  
5296  fi  fi
5297    
 else  
   echo "$ac_t""no" 1>&6  
5298  fi  fi
5299    
5300    
5301          cat >> confdefs.h <<\EOF  
5302            cat >>confdefs.h <<\_ACEOF
5303  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
5304  EOF  _ACEOF
5305    
5306    
5307  #  #
5308  # BFD boolean syntax  # BFD boolean syntax
5309  #  #
5310    
5311          echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for useable bfd_boolean" >&5
5312  echo "configure:3101: checking for useable bfd_boolean" >&5  echo $ECHO_N "checking for useable bfd_boolean... $ECHO_C" >&6
5313          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
5314    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
5315    echo "${ECHO_T}no" >&6
5316  else  else
5317    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5318  #line 3106 "configure"  #line $LINENO "configure"
5319  #include "confdefs.h"  #include "confdefs.h"
5320  #define IN_GCC  #define IN_GCC
5321                      #include <bfd.h>                      #include <bfd.h>
5322                      bfd_boolean foo() {return FALSE;}                      bfd_boolean foo() {return FALSE;}
5323                      int main() {return 0;}                      int main() {return 0;}
5324  EOF  _ACEOF
5325  if { (eval echo configure:3113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5326  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5327    echo "$ac_t""yes" 1>&6    (eval $ac_link) 2>&5
5328                  cat >> confdefs.h <<\EOF    ac_status=$?
5329      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5331      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332      (eval $ac_try) 2>&5
5333      ac_status=$?
5334      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335      (exit $ac_status); }; }; then
5336      echo "$as_me:$LINENO: result: yes" >&5
5337    echo "${ECHO_T}yes" >&6
5338                    cat >>confdefs.h <<\_ACEOF
5339  #define HAVE_BFD_BOOLEAN 1  #define HAVE_BFD_BOOLEAN 1
5340  EOF  _ACEOF
5341    
5342  else  else
5343    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5344    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5345    rm -fr conftest*  cat conftest.$ac_ext >&5
5346    echo "$ac_t""no" 1>&6  ( exit $ac_status )
5347    echo "$as_me:$LINENO: result: no" >&5
5348    echo "${ECHO_T}no" >&6
5349  fi  fi
5350  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5351  fi  fi
5352    
5353    
   
5354  #  #
5355  # FIXME: Need to workaround mingw before this point -- CM  # FIXME: Need to workaround mingw before this point -- CM
5356  #  #
# Line 3139  fi Line 5363  fi
5363                  else                  else
5364                     echo Guessing path to libbfd.a due to gcc bug                     echo Guessing path to libbfd.a due to gcc bug
5365                     TLIBS="$TLIBS /usr/lib/libbfd.a"                     TLIBS="$TLIBS /usr/lib/libbfd.a"
5366                  fi                    fi
5367                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then
5368                     TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a`"                     TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a`"
5369                  else                  else
5370                     echo Guessing path to libiberty.a due to gcc bug                     echo Guessing path to libiberty.a due to gcc bug
5371                     TLIBS="$TLIBS /usr/lib/libiberty.a"                     TLIBS="$TLIBS /usr/lib/libiberty.a"
5372                  fi                    fi
5373          else          else
5374                  TLIBS="$TLIBS -lbfd -liberty"                  TLIBS="$TLIBS -lbfd -liberty"
5375          fi          fi
# Line 3159  if test "$enable_locbfd" = "yes" ; then Line 5383  if test "$enable_locbfd" = "yes" ; then
5383          echo "#"          echo "#"
5384          echo "#"          echo "#"
5385          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..
5386  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "
5387          echo "#"          echo "#"
5388          echo "#"          echo "#"
5389          echo "#"          echo "#"
# Line 3173  if test "$enable_locbfd" = "yes" ; then Line 5397  if test "$enable_locbfd" = "yes" ; then
5397          echo "#"          echo "#"
5398          echo "#"          echo "#"
5399          cd binutils/bfd && chmod +x configure && ./configure && cd ../..          cd binutils/bfd && chmod +x configure && ./configure && cd ../..
5400  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "
5401          echo "#"          echo "#"
5402          echo "#"          echo "#"
5403          echo "#"          echo "#"
# Line 3181  if test "$enable_locbfd" = "yes" ; then Line 5405  if test "$enable_locbfd" = "yes" ; then
5405          echo "# ------------------------"          echo "# ------------------------"
5406          echo "#"          echo "#"
5407          TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"          TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"
5408          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
5409  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
5410  EOF  _ACEOF
5411    
5412          BUILD_BFD="h/bfd.h h/bfdlink.h h/ansidecl.h h/symcat.h"          BUILD_BFD="h/bfd.h h/bfdlink.h h/ansidecl.h h/symcat.h"
5413            
5414  fi  fi
5415    
5416  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)
# Line 3195  fi Line 5419  fi
5419  # mechanism, in the PAGE macro.  This offset is subtracted from  # mechanism, in the PAGE macro.  This offset is subtracted from
5420  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
5421    
5422  echo $ac_n "checking size of long""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for long" >&5
5423  echo "configure:3200: checking size of long" >&5  echo $ECHO_N "checking for long... $ECHO_C" >&6
5424  if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then  if test "${ac_cv_type_long+set}" = set; then
5425    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5426  else  else
5427      cat >conftest.$ac_ext <<_ACEOF
5428    #line $LINENO "configure"
5429    #include "confdefs.h"
5430    $ac_includes_default
5431    #ifdef F77_DUMMY_MAIN
5432    #  ifdef __cplusplus
5433         extern "C"
5434    #  endif
5435       int F77_DUMMY_MAIN() { return 1; }
5436    #endif
5437    int
5438    main ()
5439    {
5440    if ((long *) 0)
5441      return 0;
5442    if (sizeof (long))
5443      return 0;
5444      ;
5445      return 0;
5446    }
5447    _ACEOF
5448    rm -f conftest.$ac_objext
5449    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5450      (eval $ac_compile) 2>&5
5451      ac_status=$?
5452      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453      (exit $ac_status); } &&
5454             { ac_try='test -s conftest.$ac_objext'
5455      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456      (eval $ac_try) 2>&5
5457      ac_status=$?
5458      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459      (exit $ac_status); }; }; then
5460      ac_cv_type_long=yes
5461    else
5462      echo "$as_me: failed program was:" >&5
5463    cat conftest.$ac_ext >&5
5464    ac_cv_type_long=no
5465    fi
5466    rm -f conftest.$ac_objext conftest.$ac_ext
5467    fi
5468    echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5469    echo "${ECHO_T}$ac_cv_type_long" >&6
5470    
5471    echo "$as_me:$LINENO: checking size of long" >&5
5472    echo $ECHO_N "checking size of long... $ECHO_C" >&6
5473    if test "${ac_cv_sizeof_long+set}" = set; then
5474      echo $ECHO_N "(cached) $ECHO_C" >&6
5475    else
5476      if test "$ac_cv_type_long" = yes; then
5477      # The cast to unsigned long works around a bug in the HP C Compiler
5478      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5479      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5480      # This bug is HP SR number 8606223364.
5481    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
5482    ac_cv_sizeof_long=0    # Depending upon the size, compute the lo and hi bounds.
5483    cat >conftest.$ac_ext <<_ACEOF
5484    #line $LINENO "configure"
5485    #include "confdefs.h"
5486    $ac_includes_default
5487    #ifdef F77_DUMMY_MAIN
5488    #  ifdef __cplusplus
5489         extern "C"
5490    #  endif
5491       int F77_DUMMY_MAIN() { return 1; }
5492    #endif
5493    int
5494    main ()
5495    {
5496    static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5497    test_array [0] = 0
5498    
5499      ;
5500      return 0;
5501    }
5502    _ACEOF
5503    rm -f conftest.$ac_objext
5504    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505      (eval $ac_compile) 2>&5
5506      ac_status=$?
5507      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508      (exit $ac_status); } &&
5509             { ac_try='test -s conftest.$ac_objext'
5510      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511      (eval $ac_try) 2>&5
5512      ac_status=$?
5513      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514      (exit $ac_status); }; }; then
5515      ac_lo=0 ac_mid=0
5516      while :; do
5517        cat >conftest.$ac_ext <<_ACEOF
5518    #line $LINENO "configure"
5519    #include "confdefs.h"
5520    $ac_includes_default
5521    #ifdef F77_DUMMY_MAIN
5522    #  ifdef __cplusplus
5523         extern "C"
5524    #  endif
5525       int F77_DUMMY_MAIN() { return 1; }
5526    #endif
5527    int
5528    main ()
5529    {
5530    static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5531    test_array [0] = 0
5532    
5533      ;
5534      return 0;
5535    }
5536    _ACEOF
5537    rm -f conftest.$ac_objext
5538    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539      (eval $ac_compile) 2>&5
5540      ac_status=$?
5541      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542      (exit $ac_status); } &&
5543             { ac_try='test -s conftest.$ac_objext'
5544      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545      (eval $ac_try) 2>&5
5546      ac_status=$?
5547      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548      (exit $ac_status); }; }; then
5549      ac_hi=$ac_mid; break
5550    else
5551      echo "$as_me: failed program was:" >&5
5552    cat conftest.$ac_ext >&5
5553    ac_lo=`expr $ac_mid + 1`
5554                        if test $ac_lo -le $ac_mid; then
5555                          ac_lo= ac_hi=
5556                          break
5557                        fi
5558                        ac_mid=`expr 2 '*' $ac_mid + 1`
5559    fi
5560    rm -f conftest.$ac_objext conftest.$ac_ext
5561      done
5562  else  else
5563    cat > conftest.$ac_ext <<EOF    echo "$as_me: failed program was:" >&5
5564  #line 3208 "configure"  cat conftest.$ac_ext >&5
5565  #include "confdefs.h"  cat >conftest.$ac_ext <<_ACEOF
5566    #line $LINENO "configure"
5567    #include "confdefs.h"
5568    $ac_includes_default
5569    #ifdef F77_DUMMY_MAIN
5570    #  ifdef __cplusplus
5571         extern "C"
5572    #  endif
5573       int F77_DUMMY_MAIN() { return 1; }
5574    #endif
5575    int
5576    main ()
5577    {
5578    static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5579    test_array [0] = 0
5580    
5581      ;
5582      return 0;
5583    }
5584    _ACEOF
5585    rm -f conftest.$ac_objext
5586    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587      (eval $ac_compile) 2>&5
5588      ac_status=$?
5589      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590      (exit $ac_status); } &&
5591             { ac_try='test -s conftest.$ac_objext'
5592      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593      (eval $ac_try) 2>&5
5594      ac_status=$?
5595      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596      (exit $ac_status); }; }; then
5597      ac_hi=-1 ac_mid=-1
5598      while :; do
5599        cat >conftest.$ac_ext <<_ACEOF
5600    #line $LINENO "configure"
5601    #include "confdefs.h"
5602    $ac_includes_default
5603    #ifdef F77_DUMMY_MAIN
5604    #  ifdef __cplusplus
5605         extern "C"
5606    #  endif
5607       int F77_DUMMY_MAIN() { return 1; }
5608    #endif
5609    int
5610    main ()
5611    {
5612    static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5613    test_array [0] = 0
5614    
5615      ;
5616      return 0;
5617    }
5618    _ACEOF
5619    rm -f conftest.$ac_objext
5620    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621      (eval $ac_compile) 2>&5
5622      ac_status=$?
5623      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624      (exit $ac_status); } &&
5625             { ac_try='test -s conftest.$ac_objext'
5626      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627      (eval $ac_try) 2>&5
5628      ac_status=$?
5629      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630      (exit $ac_status); }; }; then
5631      ac_lo=$ac_mid; break
5632    else
5633      echo "$as_me: failed program was:" >&5
5634    cat conftest.$ac_ext >&5
5635    ac_hi=`expr '(' $ac_mid ')' - 1`
5636                           if test $ac_mid -le $ac_hi; then
5637                             ac_lo= ac_hi=
5638                             break
5639                           fi
5640                           ac_mid=`expr 2 '*' $ac_mid`
5641    fi
5642    rm -f conftest.$ac_objext conftest.$ac_ext
5643      done
5644    else
5645      echo "$as_me: failed program was:" >&5
5646    cat conftest.$ac_ext >&5
5647    ac_lo= ac_hi=
5648    fi
5649    rm -f conftest.$ac_objext conftest.$ac_ext
5650    fi
5651    rm -f conftest.$ac_objext conftest.$ac_ext
5652    # Binary search between lo and hi bounds.
5653    while test "x$ac_lo" != "x$ac_hi"; do
5654      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5655      cat >conftest.$ac_ext <<_ACEOF
5656    #line $LINENO "configure"
5657    #include "confdefs.h"
5658    $ac_includes_default
5659    #ifdef F77_DUMMY_MAIN
5660    #  ifdef __cplusplus
5661         extern "C"
5662    #  endif
5663       int F77_DUMMY_MAIN() { return 1; }
5664    #endif
5665    int
5666    main ()
5667    {
5668    static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5669    test_array [0] = 0
5670    
5671      ;
5672      return 0;
5673    }
5674    _ACEOF
5675    rm -f conftest.$ac_objext
5676    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677      (eval $ac_compile) 2>&5
5678      ac_status=$?
5679      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680      (exit $ac_status); } &&
5681             { ac_try='test -s conftest.$ac_objext'
5682      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683      (eval $ac_try) 2>&5
5684      ac_status=$?
5685      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686      (exit $ac_status); }; }; then
5687      ac_hi=$ac_mid
5688    else
5689      echo "$as_me: failed program was:" >&5
5690    cat conftest.$ac_ext >&5
5691    ac_lo=`expr '(' $ac_mid ')' + 1`
5692    fi
5693    rm -f conftest.$ac_objext conftest.$ac_ext
5694    done
5695    case $ac_lo in
5696    ?*) ac_cv_sizeof_long=$ac_lo;;
5697    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5698    echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5699       { (exit 1); exit 1; }; } ;;
5700    esac
5701    else
5702      if test "$cross_compiling" = yes; then
5703      { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5704    echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5705       { (exit 1); exit 1; }; }
5706    else
5707      cat >conftest.$ac_ext <<_ACEOF
5708    #line $LINENO "configure"
5709    #include "confdefs.h"
5710    $ac_includes_default
5711    long longval () { return (long) (sizeof (long)); }
5712    unsigned long ulongval () { return (long) (sizeof (long)); }
5713  #include <stdio.h>  #include <stdio.h>
5714  #include <sys/types.h>  #include <stdlib.h>
5715  main()  #ifdef F77_DUMMY_MAIN
5716    #  ifdef __cplusplus
5717         extern "C"
5718    #  endif
5719       int F77_DUMMY_MAIN() { return 1; }
5720    #endif
5721    int
5722    main ()
5723  {  {
5724    FILE *f=fopen("conftestval", "w");  
5725    if (!f) exit(1);    FILE *f = fopen ("conftest.val", "w");
5726    fprintf(f, "%d\n", sizeof(long));    if (! f)
5727    exit(0);      exit (1);
5728      if (((long) (sizeof (long))) < 0)
5729        {
5730          long i = longval ();
5731          if (i != ((long) (sizeof (long))))
5732            exit (1);
5733          fprintf (f, "%ld\n", i);
5734        }
5735      else
5736        {
5737          unsigned long i = ulongval ();
5738          if (i != ((long) (sizeof (long))))
5739            exit (1);
5740          fprintf (f, "%lu\n", i);
5741        }
5742      exit (ferror (f) || fclose (f) != 0);
5743    
5744      ;
5745      return 0;
5746  }  }
5747  EOF  _ACEOF
5748  if { (eval echo configure:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5749  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5750    ac_cv_sizeof_long=`cat conftestval`    (eval $ac_link) 2>&5
5751      ac_status=$?
5752      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5754      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755      (eval $ac_try) 2>&5
5756      ac_status=$?
5757      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758      (exit $ac_status); }; }; then
5759      ac_cv_sizeof_long=`cat conftest.val`
5760    else
5761      echo "$as_me: program exited with status $ac_status" >&5
5762    echo "$as_me: failed program was:" >&5
5763    cat conftest.$ac_ext >&5
5764    ( exit $ac_status )
5765    { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5766    echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5767       { (exit 1); exit 1; }; }
5768    fi
5769    rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5770    fi
5771    fi
5772    rm -f conftest.val
5773  else  else
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -fr conftest*  
5774    ac_cv_sizeof_long=0    ac_cv_sizeof_long=0
5775  fi  fi
 rm -fr conftest*  
 fi  
   
5776  fi  fi
5777  echo "$ac_t""$ac_cv_sizeof_long" 1>&6  echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5778  cat >> confdefs.h <<EOF  echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5779    cat >>confdefs.h <<_ACEOF
5780  #define SIZEOF_LONG $ac_cv_sizeof_long  #define SIZEOF_LONG $ac_cv_sizeof_long
5781  EOF  _ACEOF
5782    
5783    
5784    echo "$as_me:$LINENO: checking sizeof struct contblock" >&5
5785    echo $ECHO_N "checking sizeof struct contblock... $ECHO_C" >&6
5786    
5787  echo $ac_n "checking sizeof struct contblock""... $ac_c" 1>&6  # work around MSYS pwd result incompatibility
5788  echo "configure:3240: checking sizeof struct contblock" >&5  if test "$use" = "mingw" ; then
5789  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5790    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
5791  else  else
5792    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5793  #line 3245 "configure"  #line $LINENO "configure"
5794    #include "confdefs.h"
5795    #include <stdio.h>
5796            #define EXTER
5797            #include "$MP_INCLUDE"
5798            #include "h/enum.h"
5799            #include "h/object.h"
5800            int main(int argc,char **argv,char **envp) {
5801            FILE *f=fopen("conftest1","w");
5802            fprintf(f,"%u",sizeof(struct contblock));
5803            fclose(f);
5804            return 0;
5805            }
5806    _ACEOF
5807    rm -f conftest$ac_exeext
5808    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5809      (eval $ac_link) 2>&5
5810      ac_status=$?
5811      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5813      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814      (eval $ac_try) 2>&5
5815      ac_status=$?
5816      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817      (exit $ac_status); }; }; then
5818      sizeof_contblock=`cat conftest1`
5819    else
5820      echo "$as_me: program exited with status $ac_status" >&5
5821    echo "$as_me: failed program was:" >&5
5822    cat conftest.$ac_ext >&5
5823    ( exit $ac_status )
5824    echo Cannot find sizeof struct contblock;exit 1
5825    fi
5826    rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5827    fi
5828    else
5829    if test "$cross_compiling" = yes; then
5830      echo Cannot find sizeof struct contblock;exit 1
5831    else
5832      cat >conftest.$ac_ext <<_ACEOF
5833    #line $LINENO "configure"
5834  #include "confdefs.h"  #include "confdefs.h"
5835  #include <stdio.h>  #include <stdio.h>
5836          #define EXTER          #define EXTER
# Line 3254  else Line 5843  else
5843          fclose(f);          fclose(f);
5844          return 0;          return 0;
5845          }          }
5846  EOF  _ACEOF
5847  if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5848  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5849      (eval $ac_link) 2>&5
5850      ac_status=$?
5851      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5853      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854      (eval $ac_try) 2>&5
5855      ac_status=$?
5856      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857      (exit $ac_status); }; }; then
5858    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
5859  else  else
5860    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5861    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5862    rm -fr conftest*  cat conftest.$ac_ext >&5
5863    echo Cannot find sizeof struct contblock;exit 1  ( exit $ac_status )
5864    echo Cannot find sizeof struct contblock;exit 1
5865    fi
5866    rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5867  fi  fi
 rm -fr conftest*  
5868  fi  fi
5869    echo "$as_me:$LINENO: result: $sizeof_contblock" >&5
5870  echo "$ac_t""$sizeof_contblock" 1>&6  echo "${ECHO_T}$sizeof_contblock" >&6
5871  cat >> confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
5872  #define SIZEOF_CONTBLOCK $sizeof_contblock  #define SIZEOF_CONTBLOCK $sizeof_contblock
5873  EOF  _ACEOF
5874    
5875    
5876    
5877    
5878    
5879  for ac_hdr in endian.h  for ac_header in endian.h
5880  do  do
5881  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5882  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
5883  echo "configure:3283: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
5884  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5885    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
5886      echo $ECHO_N "(cached) $ECHO_C" >&6
5887    fi
5888    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5889    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5890    else
5891      # Is the header compilable?
5892    echo "$as_me:$LINENO: checking $ac_header usability" >&5
5893    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5894    cat >conftest.$ac_ext <<_ACEOF
5895    #line $LINENO "configure"
5896    #include "confdefs.h"
5897    $ac_includes_default
5898    #include <$ac_header>
5899    _ACEOF
5900    rm -f conftest.$ac_objext
5901    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902      (eval $ac_compile) 2>&5
5903      ac_status=$?
5904      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905      (exit $ac_status); } &&
5906             { ac_try='test -s conftest.$ac_objext'
5907      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908      (eval $ac_try) 2>&5
5909      ac_status=$?
5910      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911      (exit $ac_status); }; }; then
5912      ac_header_compiler=yes
5913    else
5914      echo "$as_me: failed program was:" >&5
5915    cat conftest.$ac_ext >&5
5916    ac_header_compiler=no
5917    fi
5918    rm -f conftest.$ac_objext conftest.$ac_ext
5919    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5920    echo "${ECHO_T}$ac_header_compiler" >&6
5921    
5922    # Is the header present?
5923    echo "$as_me:$LINENO: checking $ac_header presence" >&5
5924    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5925    cat >conftest.$ac_ext <<_ACEOF
5926    #line $LINENO "configure"
5927    #include "confdefs.h"
5928    #include <$ac_header>
5929    _ACEOF
5930    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5931      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5932      ac_status=$?
5933      egrep -v '^ *\+' conftest.er1 >conftest.err
5934      rm -f conftest.er1
5935      cat conftest.err >&5
5936      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937      (exit $ac_status); } >/dev/null; then
5938      if test -s conftest.err; then
5939        ac_cpp_err=$ac_c_preproc_warn_flag
5940      else
5941        ac_cpp_err=
5942      fi
5943  else  else
5944    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
5945  #line 3288 "configure"  fi
5946  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
5947  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
5948  else  else
5949    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
5950    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5951    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
5952  fi  fi
5953  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
5954  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5955  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
5956    echo "$ac_t""yes" 1>&6  
5957      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
5958    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
5959  #define $ac_tr_hdr 1    yes:no )
5960  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5961   echo $ac_n "checking "endianness"""... $ac_c" 1>&6  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5962  echo "configure:3314: checking "endianness"" >&5      { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5963    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5964      no:yes )
5965        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5966    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5967        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5968    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5969        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5970    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5971    esac
5972    echo "$as_me:$LINENO: checking for $ac_header" >&5
5973    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5974    if eval "test \"\${$as_ac_Header+set}\" = set"; then
5975      echo $ECHO_N "(cached) $ECHO_C" >&6
5976    else
5977      eval "$as_ac_Header=$ac_header_preproc"
5978    fi
5979    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5980    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5981    
5982    fi
5983    if test `eval echo '${'$as_ac_Header'}'` = yes; then
5984      cat >>confdefs.h <<_ACEOF
5985    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5986    _ACEOF
5987     echo "$as_me:$LINENO: checking \"endianness\"" >&5
5988    echo $ECHO_N "checking \"endianness\"... $ECHO_C" >&6
5989          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
5990    echo "$ac_t""big" 1>&6    echo "$as_me:$LINENO: result: big" >&5
5991    echo "${ECHO_T}big" >&6
5992  else  else
5993    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5994  #line 3319 "configure"  #line $LINENO "configure"
5995  #include "confdefs.h"  #include "confdefs.h"
5996  #define __ARMEB__  #define __ARMEB__
5997                  #include <endian.h>                  #include <endian.h>
5998                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
5999  EOF  _ACEOF
6000  if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6001  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6002    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
6003      ac_status=$?
6004      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6006      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007      (eval $ac_try) 2>&5
6008      ac_status=$?
6009      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010      (exit $ac_status); }; }; then
6011      cat >>confdefs.h <<\_ACEOF
6012  #define LITTLE_END 1  #define LITTLE_END 1
6013  EOF  _ACEOF
6014   echo "$ac_t""little" 1>&6   echo "$as_me:$LINENO: result: little" >&5
6015  else  echo "${ECHO_T}little" >&6
6016    echo "configure: failed program was:" >&5  else
6017    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
6018    rm -fr conftest*  echo "$as_me: failed program was:" >&5
6019    echo "$ac_t""big" 1>&6  cat conftest.$ac_ext >&5
6020    ( exit $ac_status )
6021    echo "$as_me:$LINENO: result: big" >&5
6022    echo "${ECHO_T}big" >&6
6023  fi  fi
6024  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6025  fi  fi
   
 else  
   echo "$ac_t""no" 1>&6  
6026  fi  fi
6027    
6028  done  done
6029    
6030    
6031    
6032  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"finding DBEGIN\"" >&5
6033  echo "configure:3348: checking "finding DBEGIN"" >&5  echo $ECHO_N "checking \"finding DBEGIN\"... $ECHO_C" >&6
6034  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6035    dbegin=0    dbegin=0
6036  else  else
6037    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6038  #line 3353 "configure"  #line $LINENO "configure"
6039  #include "confdefs.h"  #include "confdefs.h"
6040  #include <stdio.h>  #include <stdio.h>
6041              #include <stdlib.h>              #include <stdlib.h>
# Line 3365  main() Line 6051  main()
6051    fclose(fp);    fclose(fp);
6052    return 0;    return 0;
6053  }  }
6054  EOF  _ACEOF
6055  if { (eval echo configure:3370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6056  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6057      (eval $ac_link) 2>&5
6058      ac_status=$?
6059      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6061      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062      (eval $ac_try) 2>&5
6063      ac_status=$?
6064      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065      (exit $ac_status); }; }; then
6066    dbegin=`cat conftest1`    dbegin=`cat conftest1`
6067  else  else
6068    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6069    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6070    rm -fr conftest*  cat conftest.$ac_ext >&5
6071    dbegin=0  ( exit $ac_status )
6072    dbegin=0
6073  fi  fi
6074  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6075  fi  fi
6076    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
6077  #define DBEGIN $dbegin \  #define DBEGIN $dbegin \
6078  /* where data begins */  /* where data begins */
6079    
6080  EOF  _ACEOF
6081    
6082  echo "$ac_t""got $dbegin" 1>&6  echo "$as_me:$LINENO: result: got $dbegin" >&5
6083    echo "${ECHO_T}got $dbegin" >&6
6084    
6085    
6086  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"finding CSTACK_ADDRESS\"" >&5
6087  echo "configure:3392: checking "finding CSTACK_ADDRESS"" >&5  echo $ECHO_N "checking \"finding CSTACK_ADDRESS\"... $ECHO_C" >&6
6088  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6089    cstack_address=0    cstack_address=0
6090  else  else
6091    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6092  #line 3397 "configure"  #line $LINENO "configure"
6093  #include "confdefs.h"  #include "confdefs.h"
6094  #include <stdio.h>  #include <stdio.h>
6095  main()  main()
# Line 3404  main() Line 6100  main()
6100    fclose(fp);    fclose(fp);
6101    return 0;    return 0;
6102  }  }
6103  EOF  _ACEOF
6104  if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6105  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6106      (eval $ac_link) 2>&5
6107      ac_status=$?
6108      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6110      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111      (eval $ac_try) 2>&5
6112      ac_status=$?
6113      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114      (exit $ac_status); }; }; then
6115    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
6116  else  else
6117    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6118    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6119    rm -fr conftest*  cat conftest.$ac_ext >&5
6120    cstack_address=0  ( exit $ac_status )
6121    cstack_address=0
6122  fi  fi
6123  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6124  fi  fi
6125    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
6126  #define CSTACK_ADDRESS $cstack_address \  #define CSTACK_ADDRESS $cstack_address \
6127    
6128  EOF  _ACEOF
6129    
6130  echo "$ac_t""got $cstack_address" 1>&6  echo "$as_me:$LINENO: result: got $cstack_address" >&5
6131    echo "${ECHO_T}got $cstack_address" >&6
6132    
6133    
6134    
6135  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"sizeof long long int\"" >&5
6136  echo "configure:3431: checking "sizeof long long int"" >&5  echo $ECHO_N "checking \"sizeof long long int\"... $ECHO_C" >&6
6137  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6138    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
6139    echo "${ECHO_T}no" >&6
6140    
6141  else  else
6142    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6143  #line 3437 "configure"  #line $LINENO "configure"
6144  #include "confdefs.h"  #include "confdefs.h"
6145  #include <stdio.h>  #include <stdio.h>
6146  main()  main()
# Line 3442  main() Line 6149  main()
6149    return 1;    return 1;
6150  }  }
6151    
6152  EOF  _ACEOF
6153  if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6154  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6155    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
6156      ac_status=$?
6157      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6159      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160      (eval $ac_try) 2>&5
6161      ac_status=$?
6162      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163      (exit $ac_status); }; }; then
6164      cat >>confdefs.h <<\_ACEOF
6165  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
6166  EOF  _ACEOF
6167    
6168  echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: yes" >&5
6169    echo "${ECHO_T}yes" >&6
6170  else  else
6171    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6172    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6173    rm -fr conftest*  cat conftest.$ac_ext >&5
6174    echo "$ac_t""no" 1>&6  ( exit $ac_status )
6175    echo "$as_me:$LINENO: result: no" >&5
6176    echo "${ECHO_T}no" >&6
6177  fi  fi
6178  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6179  fi  fi
6180    
6181    
6182    
   
6183  # readline  # readline
6184  # Check whether --enable-readline or --disable-readline was given.  # Check whether --enable-readline or --disable-readline was given.
6185  if test "${enable_readline+set}" = set; then  if test "${enable_readline+set}" = set; then
6186    enableval="$enable_readline"    enableval="$enable_readline"
6187    :  
6188  else  else
6189    enable_readline="yes"    enable_readline="yes"
6190  fi  fi;
   
6191    
6192  # ansi lisp  # ansi lisp
6193  # Check whether --enable-ansi or --disable-ansi was given.  # Check whether --enable-ansi or --disable-ansi was given.
6194  if test "${enable_ansi+set}" = set; then  if test "${enable_ansi+set}" = set; then
6195    enableval="$enable_ansi"    enableval="$enable_ansi"
6196    :  
6197  else  else
6198    enable_ansi="no"    enable_ansi="no"
6199  fi  fi;
   
6200    
6201  if test "$enable_ansi" = "yes" ; then  if test "$enable_ansi" = "yes" ; then
6202          SYSTEM=ansi_gcl          SYSTEM=ansi_gcl
6203          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
6204  #define ANSI_COMMON_LISP 1  #define ANSI_COMMON_LISP 1
6205  EOF  _ACEOF
6206    
6207  else  else
6208          SYSTEM=gcl          SYSTEM=gcl
# Line 3497  FLISP="saved_$SYSTEM" Line 6213  FLISP="saved_$SYSTEM"
6213    
6214    
6215  # pagewidth  # pagewidth
6216  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for pagewidth" >&5
6217  echo "configure:3502: checking for pagewidth" >&5  echo $ECHO_N "checking for pagewidth... $ECHO_C" >&6
6218  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6219    PAGEWIDTH=0    PAGEWIDTH=0
6220  else  else
6221    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6222  #line 3507 "configure"  #line $LINENO "configure"
6223  #include "confdefs.h"  #include "confdefs.h"
6224  #include <stdio.h>  #include <stdio.h>
6225              #include <unistd.h>              #include <unistd.h>
6226  int main() {size_t i=getpagesize(),j;  int main() {size_t i=getpagesize(),j;
6227              FILE *fp=fopen("conftest1","w");              FILE *fp=fopen("conftest1","w");
6228              for (j=0;i>>=1;j++);              for (j=0;i>>=1;j++);
6229              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
6230              return 0;}              return 0;}
6231  EOF  _ACEOF
6232  if { (eval echo configure:3517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6233  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6234      (eval $ac_link) 2>&5
6235      ac_status=$?
6236      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6238      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239      (eval $ac_try) 2>&5
6240      ac_status=$?
6241      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242      (exit $ac_status); }; }; then
6243    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
6244  else  else
6245    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6246    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6247    rm -fr conftest*  cat conftest.$ac_ext >&5
6248    PAGEWIDTH=0  ( exit $ac_status )
6249  fi  PAGEWIDTH=0
6250  rm -fr conftest*  fi
6251  fi  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6252    fi
6253  echo "$ac_t""$PAGEWIDTH" 1>&6  echo "$as_me:$LINENO: result: $PAGEWIDTH" >&5
6254  cat >> confdefs.h <<EOF  echo "${ECHO_T}$PAGEWIDTH" >&6
6255    cat >>confdefs.h <<_ACEOF
6256  #define PAGEWIDTH $PAGEWIDTH  #define PAGEWIDTH $PAGEWIDTH
6257  EOF  _ACEOF
6258    
6259    
6260    
# Line 3537  EOF Line 6263  EOF
6263    
6264    
6265  # Check if Posix compliant getcwd exists, if not we'll use getwd.  # Check if Posix compliant getcwd exists, if not we'll use getwd.
6266    
6267  for ac_func in getcwd  for ac_func in getcwd
6268  do  do
6269  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6270  echo "configure:3544: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
6271  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6272    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
6273      echo $ECHO_N "(cached) $ECHO_C" >&6
6274  else  else
6275    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6276  #line 3549 "configure"  #line $LINENO "configure"
6277  #include "confdefs.h"  #include "confdefs.h"
6278  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6279      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
6280  #include <assert.h>  #include <assert.h>
6281  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6282    #ifdef __cplusplus
6283    extern "C"
6284    #endif
6285  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
6286      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6287  char $ac_func();  char $ac_func ();
6288    char (*f) ();
6289  int main() {  
6290    #ifdef F77_DUMMY_MAIN
6291    #  ifdef __cplusplus
6292         extern "C"
6293    #  endif
6294       int F77_DUMMY_MAIN() { return 1; }
6295    #endif
6296    int
6297    main ()
6298    {
6299  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6300      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6301      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6302  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6303  choke me  choke me
6304  #else  #else
6305  $ac_func();  f = $ac_func;
6306  #endif  #endif
6307    
6308  ; return 0; }    ;
6309  EOF    return 0;
6310  if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6311    rm -rf conftest*  _ACEOF
6312    eval "ac_cv_func_$ac_func=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6313  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6314    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6315    cat conftest.$ac_ext >&5    ac_status=$?
6316    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317    eval "ac_cv_func_$ac_func=no"    (exit $ac_status); } &&
6318  fi           { ac_try='test -s conftest$ac_exeext'
6319  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320  fi    (eval $ac_try) 2>&5
6321      ac_status=$?
6322      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323      (exit $ac_status); }; }; then
6324      eval "$as_ac_var=yes"
6325    else
6326      echo "$as_me: failed program was:" >&5
6327    cat conftest.$ac_ext >&5
6328    eval "$as_ac_var=no"
6329    fi
6330    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6331    fi
6332    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6333    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6334    if test `eval echo '${'$as_ac_var'}'` = yes; then
6335      cat >>confdefs.h <<_ACEOF
6336    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6337    _ACEOF
6338    
 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  
   cat >> confdefs.h <<EOF  
 #define $ac_tr_func 1  
 EOF  
   
 else  
   echo "$ac_t""no" 1>&6  
6339  fi  fi
6340  done  done
6341    
6342    
6343  for ac_func in getwd  for ac_func in getwd
6344  do  do
6345  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6346  echo "configure:3599: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
6347  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6348    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
6349      echo $ECHO_N "(cached) $ECHO_C" >&6
6350  else  else
6351    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6352  #line 3604 "configure"  #line $LINENO "configure"
6353  #include "confdefs.h"  #include "confdefs.h"
6354  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6355      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
6356  #include <assert.h>  #include <assert.h>
6357  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6358    #ifdef __cplusplus
6359    extern "C"
6360    #endif
6361  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
6362      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6363  char $ac_func();  char $ac_func ();
6364    char (*f) ();
6365  int main() {  
6366    #ifdef F77_DUMMY_MAIN
6367    #  ifdef __cplusplus
6368         extern "C"
6369    #  endif
6370       int F77_DUMMY_MAIN() { return 1; }
6371    #endif
6372    int
6373    main ()
6374    {
6375  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6376      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6377      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6378  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6379  choke me  choke me
6380  #else  #else
6381  $ac_func();  f = $ac_func;
6382  #endif  #endif
6383    
6384  ; return 0; }    ;
6385  EOF    return 0;
6386  if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6387    rm -rf conftest*  _ACEOF
6388    eval "ac_cv_func_$ac_func=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6389  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6390    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6391    cat conftest.$ac_ext >&5    ac_status=$?
6392    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393    eval "ac_cv_func_$ac_func=no"    (exit $ac_status); } &&
6394  fi           { ac_try='test -s conftest$ac_exeext'
6395  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396  fi    (eval $ac_try) 2>&5
6397      ac_status=$?
6398      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399      (exit $ac_status); }; }; then
6400      eval "$as_ac_var=yes"
6401    else
6402      echo "$as_me: failed program was:" >&5
6403    cat conftest.$ac_ext >&5
6404    eval "$as_ac_var=no"
6405    fi
6406    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6407    fi
6408    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6409    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6410    if test `eval echo '${'$as_ac_var'}'` = yes; then
6411      cat >>confdefs.h <<_ACEOF
6412    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6413    _ACEOF
6414    
 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  
   cat >> confdefs.h <<EOF  
 #define $ac_tr_func 1  
 EOF  
   
 else  
   echo "$ac_t""no" 1>&6  
6415  fi  fi
6416  done  done
6417    
6418  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for uname" >&5
6419  echo "configure:3652: checking for uname" >&5  echo $ECHO_N "checking for uname... $ECHO_C" >&6
6420  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if test "${ac_cv_func_uname+set}" = set; then
6421    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6422  else  else
6423    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6424  #line 3657 "configure"  #line $LINENO "configure"
6425  #include "confdefs.h"  #include "confdefs.h"
6426  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6427      which can conflict with char uname(); below.  */      which can conflict with char uname (); below.  */
6428  #include <assert.h>  #include <assert.h>
6429  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6430    #ifdef __cplusplus
6431    extern "C"
6432    #endif
6433  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
6434      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6435  char uname();  char uname ();
6436    char (*f) ();
6437  int main() {  
6438    #ifdef F77_DUMMY_MAIN
6439    #  ifdef __cplusplus
6440         extern "C"
6441    #  endif
6442       int F77_DUMMY_MAIN() { return 1; }
6443    #endif
6444    int
6445    main ()
6446    {
6447  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6448      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6449      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6450  #if defined (__stub_uname) || defined (__stub___uname)  #if defined (__stub_uname) || defined (__stub___uname)
6451  choke me  choke me
6452  #else  #else
6453  uname();  f = uname;
6454  #endif  #endif
6455    
6456  ; return 0; }    ;
6457  EOF    return 0;
6458  if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6459    rm -rf conftest*  _ACEOF
6460    eval "ac_cv_func_uname=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6461  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6463    cat conftest.$ac_ext >&5    ac_status=$?
6464    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465    eval "ac_cv_func_uname=no"    (exit $ac_status); } &&
6466  fi           { ac_try='test -s conftest$ac_exeext'
6467  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468  fi    (eval $ac_try) 2>&5
6469      ac_status=$?
6470  if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6472      ac_cv_func_uname=yes
6473    else
6474      echo "$as_me: failed program was:" >&5
6475    cat conftest.$ac_ext >&5
6476    ac_cv_func_uname=no
6477    fi
6478    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6479    fi
6480    echo "$as_me:$LINENO: result: $ac_cv_func_uname" >&5
6481    echo "${ECHO_T}$ac_cv_func_uname" >&6
6482    if test $ac_cv_func_uname = yes; then
6483    :    :
6484  else  else
6485    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
6486  #define NO_UNAME 1  #define NO_UNAME 1
6487  EOF  _ACEOF
6488    
6489  fi  fi
6490    
6491  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday" >&5
6492  echo "configure:3704: checking for gettimeofday" >&5  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
6493  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_gettimeofday+set}" = set; then
6494    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6495  else  else
6496    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6497  #line 3709 "configure"  #line $LINENO "configure"
6498  #include "confdefs.h"  #include "confdefs.h"
6499  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6500      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.  */
6501  #include <assert.h>  #include <assert.h>
6502  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6503    #ifdef __cplusplus
6504    extern "C"
6505    #endif
6506  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
6507      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6508  char gettimeofday();  char gettimeofday ();
6509    char (*f) ();
6510  int main() {  
6511    #ifdef F77_DUMMY_MAIN
6512    #  ifdef __cplusplus
6513         extern "C"
6514    #  endif
6515       int F77_DUMMY_MAIN() { return 1; }
6516    #endif
6517    int
6518    main ()
6519    {
6520  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6521      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6522      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6523  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
6524  choke me  choke me
6525  #else  #else
6526  gettimeofday();  f = gettimeofday;
6527  #endif  #endif
6528    
6529  ; return 0; }    ;
6530  EOF    return 0;
6531  if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6532    rm -rf conftest*  _ACEOF
6533    eval "ac_cv_func_gettimeofday=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6534  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6535    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6536    cat conftest.$ac_ext >&5    ac_status=$?
6537    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538    eval "ac_cv_func_gettimeofday=no"    (exit $ac_status); } &&
6539  fi           { ac_try='test -s conftest$ac_exeext'
6540  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541  fi    (eval $ac_try) 2>&5
6542      ac_status=$?
6543  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6545      ac_cv_func_gettimeofday=yes
6546    else
6547      echo "$as_me: failed program was:" >&5
6548    cat conftest.$ac_ext >&5
6549    ac_cv_func_gettimeofday=no
6550    fi
6551    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6552    fi
6553    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
6554    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
6555    if test $ac_cv_func_gettimeofday = yes; then
6556    :    :
6557  else  else
6558    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
6559  #define NO_GETTOD 1  #define NO_GETTOD 1
6560  EOF  _ACEOF
6561    
6562  fi  fi
6563    
6564    
6565    
6566  for ac_hdr in sys/ioctl.h  
6567    for ac_header in sys/ioctl.h
6568  do  do
6569  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6571  echo "configure:3761: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
6572  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6573    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6574      echo $ECHO_N "(cached) $ECHO_C" >&6
6575    fi
6576    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6577    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6578    else
6579      # Is the header compilable?
6580    echo "$as_me:$LINENO: checking $ac_header usability" >&5
6581    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6582    cat >conftest.$ac_ext <<_ACEOF
6583    #line $LINENO "configure"
6584    #include "confdefs.h"
6585    $ac_includes_default
6586    #include <$ac_header>
6587    _ACEOF
6588    rm -f conftest.$ac_objext
6589    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590      (eval $ac_compile) 2>&5
6591      ac_status=$?
6592      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593      (exit $ac_status); } &&
6594             { ac_try='test -s conftest.$ac_objext'
6595      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596      (eval $ac_try) 2>&5
6597      ac_status=$?
6598      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599      (exit $ac_status); }; }; then
6600      ac_header_compiler=yes
6601    else
6602      echo "$as_me: failed program was:" >&5
6603    cat conftest.$ac_ext >&5
6604    ac_header_compiler=no
6605    fi
6606    rm -f conftest.$ac_objext conftest.$ac_ext
6607    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6608    echo "${ECHO_T}$ac_header_compiler" >&6
6609    
6610    # Is the header present?
6611    echo "$as_me:$LINENO: checking $ac_header presence" >&5
6612    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6613    cat >conftest.$ac_ext <<_ACEOF
6614    #line $LINENO "configure"
6615    #include "confdefs.h"
6616    #include <$ac_header>
6617    _ACEOF
6618    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6619      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6620      ac_status=$?
6621      egrep -v '^ *\+' conftest.er1 >conftest.err
6622      rm -f conftest.er1
6623      cat conftest.err >&5
6624      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625      (exit $ac_status); } >/dev/null; then
6626      if test -s conftest.err; then
6627        ac_cpp_err=$ac_c_preproc_warn_flag
6628      else
6629        ac_cpp_err=
6630      fi
6631  else  else
6632    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
6633  #line 3766 "configure"  fi
6634  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
6635  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
6636  else  else
6637    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
6638    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6639    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
6640  fi  fi
6641  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
6642    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6643      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
6644    cat >> confdefs.h <<EOF  
6645  #define $ac_tr_hdr 1  # So?  What about this header?
6646  EOF  case $ac_header_compiler:$ac_header_preproc in
6647      yes:no )
6648        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6649    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6650        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6651    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6652      no:yes )
6653        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6654    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6655        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6656    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6657        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6658    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6659    esac
6660    echo "$as_me:$LINENO: checking for $ac_header" >&5
6661    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6662    if eval "test \"\${$as_ac_Header+set}\" = set"; then
6663      echo $ECHO_N "(cached) $ECHO_C" >&6
6664  else  else
6665    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
6666    fi
6667    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6668    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6669    
6670  fi  fi
6671    if test `eval echo '${'$as_ac_Header'}'` = yes; then
6672      cat >>confdefs.h <<_ACEOF
6673    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6674    _ACEOF
6675    
6676    fi
6677    
6678  done  done
6679    
6680    
# Line 3806  done Line 6690  done
6690  #          declare it.  #          declare it.
6691  #--------------------------------------------------------------------  #--------------------------------------------------------------------
6692    
6693  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for BSDgettimeofday" >&5
6694  echo "configure:3811: checking for BSDgettimeofday" >&5  echo $ECHO_N "checking for BSDgettimeofday... $ECHO_C" >&6
6695  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_BSDgettimeofday+set}" = set; then
6696    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6697  else  else
6698    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6699  #line 3816 "configure"  #line $LINENO "configure"
6700  #include "confdefs.h"  #include "confdefs.h"
6701  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6702      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday (); below.  */
6703  #include <assert.h>  #include <assert.h>
6704  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6705    #ifdef __cplusplus
6706    extern "C"
6707    #endif
6708  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
6709      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6710  char BSDgettimeofday();  char BSDgettimeofday ();
6711    char (*f) ();
6712  int main() {  
6713    #ifdef F77_DUMMY_MAIN
6714    #  ifdef __cplusplus
6715         extern "C"
6716    #  endif
6717       int F77_DUMMY_MAIN() { return 1; }
6718    #endif
6719    int
6720    main ()
6721    {
6722  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6723      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6724      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6725  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
6726  choke me  choke me
6727  #else  #else
6728  BSDgettimeofday();  f = BSDgettimeofday;
6729  #endif  #endif
6730    
6731  ; return 0; }    ;
6732  EOF    return 0;
6733  if { (eval echo configure:3839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6734    rm -rf conftest*  _ACEOF
6735    eval "ac_cv_func_BSDgettimeofday=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6736  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6737    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6738    cat conftest.$ac_ext >&5    ac_status=$?
6739    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740    eval "ac_cv_func_BSDgettimeofday=no"    (exit $ac_status); } &&
6741  fi           { ac_try='test -s conftest$ac_exeext'
6742  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743  fi    (eval $ac_try) 2>&5
6744      ac_status=$?
6745  if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6747    cat >> confdefs.h <<\EOF    ac_cv_func_BSDgettimeofday=yes
6748    else
6749      echo "$as_me: failed program was:" >&5
6750    cat conftest.$ac_ext >&5
6751    ac_cv_func_BSDgettimeofday=no
6752    fi
6753    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6754    fi
6755    echo "$as_me:$LINENO: result: $ac_cv_func_BSDgettimeofday" >&5
6756    echo "${ECHO_T}$ac_cv_func_BSDgettimeofday" >&6
6757    if test $ac_cv_func_BSDgettimeofday = yes; then
6758      cat >>confdefs.h <<\_ACEOF
6759  #define HAVE_BSDGETTIMEOFDAY 1  #define HAVE_BSDGETTIMEOFDAY 1
6760  EOF  _ACEOF
6761    
6762  else  else
6763    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for gettimeofday" >&5
6764  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
6765  echo "configure:3860: checking for gettimeofday" >&5  if test "${ac_cv_func_gettimeofday+set}" = set; then
6766  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
6767  else  else
6768    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6769  #line 3865 "configure"  #line $LINENO "configure"
6770  #include "confdefs.h"  #include "confdefs.h"
6771  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6772      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.  */
6773  #include <assert.h>  #include <assert.h>
6774  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6775    #ifdef __cplusplus
6776    extern "C"
6777    #endif
6778  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
6779      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6780  char gettimeofday();  char gettimeofday ();
6781    char (*f) ();
6782  int main() {  
6783    #ifdef F77_DUMMY_MAIN
6784    #  ifdef __cplusplus
6785         extern "C"
6786    #  endif
6787       int F77_DUMMY_MAIN() { return 1; }
6788    #endif
6789    int
6790    main ()
6791    {
6792  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6793      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6794      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6795  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
6796  choke me  choke me
6797  #else  #else
6798  gettimeofday();  f = gettimeofday;
6799  #endif  #endif
6800    
6801  ; return 0; }    ;
6802  EOF    return 0;
6803  if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6804    rm -rf conftest*  _ACEOF
6805    eval "ac_cv_func_gettimeofday=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6806  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6807    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6808    cat conftest.$ac_ext >&5    ac_status=$?
6809    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810    eval "ac_cv_func_gettimeofday=no"    (exit $ac_status); } &&
6811  fi           { ac_try='test -s conftest$ac_exeext'
6812  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813  fi    (eval $ac_try) 2>&5
6814      ac_status=$?
6815  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6817      ac_cv_func_gettimeofday=yes
6818    else
6819      echo "$as_me: failed program was:" >&5
6820    cat conftest.$ac_ext >&5
6821    ac_cv_func_gettimeofday=no
6822    fi
6823    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6824    fi
6825    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
6826    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
6827    if test $ac_cv_func_gettimeofday = yes; then
6828    :    :
6829  else  else
6830    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
6831  #define NO_GETTOD 1  #define NO_GETTOD 1
6832  EOF  _ACEOF
6833    
6834  fi  fi
6835    
6836  fi  fi
6837    
6838    
6839  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday declaration" >&5
6840  echo "configure:3915: checking for gettimeofday declaration" >&5  echo $ECHO_N "checking for gettimeofday declaration... $ECHO_C" >&6
6841    
6842  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6843  #line 3918 "configure"  #line $LINENO "configure"
6844  #include "confdefs.h"  #include "confdefs.h"
6845  #include <sys/time.h>  #include <sys/time.h>
6846  EOF  
6847    _ACEOF
6848  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6849    egrep "gettimeofday" >/dev/null 2>&1; then    egrep "gettimeofday" >/dev/null 2>&1; then
6850    rm -rf conftest*    echo "$as_me:$LINENO: result: present" >&5
6851    echo "$ac_t""present" 1>&6  echo "${ECHO_T}present" >&6
6852  else  else
6853    rm -rf conftest*    echo "$as_me:$LINENO: result: missing" >&5
6854    echo "$ac_t""missing" 1>&6  echo "${ECHO_T}missing" >&6
6855                   cat >> confdefs.h <<\EOF                   cat >>confdefs.h <<\_ACEOF
6856  #define GETTOD_NOT_DECLARED 1  #define GETTOD_NOT_DECLARED 1
6857  EOF  _ACEOF
6858    
6859  fi  fi
6860  rm -f conftest*  rm -f conftest*
6861    
6862    
6863    
6864  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sin in -lm" >&5
6865  echo "configure:3939: checking for sin in -lm" >&5  echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6866  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_m_sin+set}" = set; then
6867  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
6868  else  else
6869    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
6870  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
6871  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6872  #line 3947 "configure"  #line $LINENO "configure"
6873  #include "confdefs.h"  #include "confdefs.h"
6874    
6875  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6876    #ifdef __cplusplus
6877    extern "C"
6878    #endif
6879  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
6880      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6881  char sin();  char sin ();
6882    #ifdef F77_DUMMY_MAIN
6883  int main() {  #  ifdef __cplusplus
6884  sin()       extern "C"
6885  ; return 0; }  #  endif
6886  EOF     int F77_DUMMY_MAIN() { return 1; }
6887  if { (eval echo configure:3958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
6888    rm -rf conftest*  int
6889    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
6890  else  {
6891    echo "configure: failed program was:" >&5  sin ();
6892    cat conftest.$ac_ext >&5    ;
6893    rm -rf conftest*    return 0;
6894    eval "ac_cv_lib_$ac_lib_var=no"  }
6895  fi  _ACEOF
6896  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
6897  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6898      (eval $ac_link) 2>&5
6899  fi    ac_status=$?
6900  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
6902             { ac_try='test -s conftest$ac_exeext'
6903      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904      (eval $ac_try) 2>&5
6905      ac_status=$?
6906      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907      (exit $ac_status); }; }; then
6908      ac_cv_lib_m_sin=yes
6909    else
6910      echo "$as_me: failed program was:" >&5
6911    cat conftest.$ac_ext >&5
6912    ac_cv_lib_m_sin=no
6913    fi
6914    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6915    LIBS=$ac_check_lib_save_LIBS
6916    fi
6917    echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6918    echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6919    if test $ac_cv_lib_m_sin = yes; then
6920    LIBS="${LIBS} -lm"    LIBS="${LIBS} -lm"
6921  else  else
6922    echo "$ac_t""no" 1>&6    true
 true  
6923  fi  fi
6924    
6925  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lmingwex" >&5
6926  echo "configure:3980: checking for main in -lmingwex" >&5  echo $ECHO_N "checking for main in -lmingwex... $ECHO_C" >&6
6927  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_mingwex_main+set}" = set; then
6928  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
6929  else  else
6930    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
6931  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
6932  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6933  #line 3988 "configure"  #line $LINENO "configure"
6934  #include "confdefs.h"  #include "confdefs.h"
6935    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
6936    
6937  fi  #ifdef F77_DUMMY_MAIN
6938  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
6939    echo "$ac_t""yes" 1>&6       extern "C"
6940    #  endif
6941       int F77_DUMMY_MAIN() { return 1; }
6942    #endif
6943    int
6944    main ()
6945    {
6946    main ();
6947      ;
6948      return 0;
6949    }
6950    _ACEOF
6951    rm -f conftest.$ac_objext conftest$ac_exeext
6952    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953      (eval $ac_link) 2>&5
6954      ac_status=$?
6955      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956      (exit $ac_status); } &&
6957             { ac_try='test -s conftest$ac_exeext'
6958      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959      (eval $ac_try) 2>&5
6960      ac_status=$?
6961      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962      (exit $ac_status); }; }; then
6963      ac_cv_lib_mingwex_main=yes
6964    else
6965      echo "$as_me: failed program was:" >&5
6966    cat conftest.$ac_ext >&5
6967    ac_cv_lib_mingwex_main=no
6968    fi
6969    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6970    LIBS=$ac_check_lib_save_LIBS
6971    fi
6972    echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_main" >&5
6973    echo "${ECHO_T}$ac_cv_lib_mingwex_main" >&6
6974    if test $ac_cv_lib_mingwex_main = yes; then
6975    LIBS="${LIBS} -lmingwex"    LIBS="${LIBS} -lmingwex"
6976  else  else
6977    echo "$ac_t""no" 1>&6    true
 true  
6978  fi  fi
6979    
6980  # AC_CHECK_LIB(japi,j_start,LIBS="${LIBS} -ljapi -lws2_32",true)  # AC_CHECK_LIB(japi,j_start,LIBS="${LIBS} -ljapi -lws2_32",true)
6981  EXTRA_LOBJS=  EXTRA_LOBJS=
6982  if test "$try_japi" = "yes" ; then  if test "$try_japi" = "yes" ; then
6983     for ac_hdr in japi.h  
6984    for ac_header in japi.h
6985  do  do
6986  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6987  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6988  echo "configure:4023: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
6989  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6990    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6991      echo $ECHO_N "(cached) $ECHO_C" >&6
6992    fi
6993    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6994    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6995    else
6996      # Is the header compilable?
6997    echo "$as_me:$LINENO: checking $ac_header usability" >&5
6998    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6999    cat >conftest.$ac_ext <<_ACEOF
7000    #line $LINENO "configure"
7001    #include "confdefs.h"
7002    $ac_includes_default
7003    #include <$ac_header>
7004    _ACEOF
7005    rm -f conftest.$ac_objext
7006    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007      (eval $ac_compile) 2>&5
7008      ac_status=$?
7009      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010      (exit $ac_status); } &&
7011             { ac_try='test -s conftest.$ac_objext'
7012      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013      (eval $ac_try) 2>&5
7014      ac_status=$?
7015      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016      (exit $ac_status); }; }; then
7017      ac_header_compiler=yes
7018    else
7019      echo "$as_me: failed program was:" >&5
7020    cat conftest.$ac_ext >&5
7021    ac_header_compiler=no
7022    fi
7023    rm -f conftest.$ac_objext conftest.$ac_ext
7024    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7025    echo "${ECHO_T}$ac_header_compiler" >&6
7026    
7027    # Is the header present?
7028    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7029    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7030    cat >conftest.$ac_ext <<_ACEOF
7031    #line $LINENO "configure"
7032    #include "confdefs.h"
7033    #include <$ac_header>
7034    _ACEOF
7035    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7036      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7037      ac_status=$?
7038      egrep -v '^ *\+' conftest.er1 >conftest.err
7039      rm -f conftest.er1
7040      cat conftest.err >&5
7041      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042      (exit $ac_status); } >/dev/null; then
7043      if test -s conftest.err; then
7044        ac_cpp_err=$ac_c_preproc_warn_flag
7045      else
7046        ac_cpp_err=
7047      fi
7048  else  else
7049    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7050  #line 4028 "configure"  fi
7051  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7052  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
7053  else  else
7054    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7055    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7056    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
7057  fi  fi
7058  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
7059    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7060      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
7061    cat >> confdefs.h <<EOF  
7062  #define $ac_tr_hdr 1  # So?  What about this header?
7063  EOF  case $ac_header_compiler:$ac_header_preproc in
7064   cat >> confdefs.h <<\EOF    yes:no )
7065        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7066    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7067        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7068    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7069      no:yes )
7070        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7071    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7072        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7073    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7074        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7075    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7076    esac
7077    echo "$as_me:$LINENO: checking for $ac_header" >&5
7078    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7079    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7080      echo $ECHO_N "(cached) $ECHO_C" >&6
7081    else
7082      eval "$as_ac_Header=$ac_header_preproc"
7083    fi
7084    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7085    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7086    
7087    fi
7088    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7089      cat >>confdefs.h <<_ACEOF
7090    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7091    _ACEOF
7092     cat >>confdefs.h <<\_ACEOF
7093  #define HAVE_JAPI_H 1  #define HAVE_JAPI_H 1
7094  EOF  _ACEOF
7095    
7096                                   EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"                                   EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"
7097                                   LIBS="${LIBS} -ljapi -lws2_32"                                   LIBS="${LIBS} -ljapi -lws2_32"
 else  
   echo "$ac_t""no" 1>&6  
7098  fi  fi
7099    
7100  done  done
7101    
7102  fi  fi
7103  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
7104   if test "$try_xdr" = "yes" ; then   if test "$try_xdr" = "yes" ; then
7105     for ac_hdr in rpc/rpc.h  
7106    for ac_header in rpc/rpc.h
7107  do  do
7108  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7109  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7110  echo "configure:4071: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7111  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7112    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7113      echo $ECHO_N "(cached) $ECHO_C" >&6
7114    fi
7115    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7116    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7117    else
7118      # Is the header compilable?
7119    echo "$as_me:$LINENO: checking $ac_header usability" >&5
7120    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7121    cat >conftest.$ac_ext <<_ACEOF
7122    #line $LINENO "configure"
7123    #include "confdefs.h"
7124    $ac_includes_default
7125    #include <$ac_header>
7126    _ACEOF
7127    rm -f conftest.$ac_objext
7128    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7129      (eval $ac_compile) 2>&5
7130      ac_status=$?
7131      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132      (exit $ac_status); } &&
7133             { ac_try='test -s conftest.$ac_objext'
7134      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135      (eval $ac_try) 2>&5
7136      ac_status=$?
7137      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138      (exit $ac_status); }; }; then
7139      ac_header_compiler=yes
7140    else
7141      echo "$as_me: failed program was:" >&5
7142    cat conftest.$ac_ext >&5
7143    ac_header_compiler=no
7144    fi
7145    rm -f conftest.$ac_objext conftest.$ac_ext
7146    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7147    echo "${ECHO_T}$ac_header_compiler" >&6
7148    
7149    # Is the header present?
7150    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7151    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7152    cat >conftest.$ac_ext <<_ACEOF
7153    #line $LINENO "configure"
7154    #include "confdefs.h"
7155    #include <$ac_header>
7156    _ACEOF
7157    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7158      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7159      ac_status=$?
7160      egrep -v '^ *\+' conftest.er1 >conftest.err
7161      rm -f conftest.er1
7162      cat conftest.err >&5
7163      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164      (exit $ac_status); } >/dev/null; then
7165      if test -s conftest.err; then
7166        ac_cpp_err=$ac_c_preproc_warn_flag
7167      else
7168        ac_cpp_err=
7169      fi
7170  else  else
7171    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7172  #line 4076 "configure"  fi
7173  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7174  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
7175  else  else
7176    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7177    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7178    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
7179  fi  fi
7180  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
7181  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7182  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
7183    echo "$ac_t""yes" 1>&6  
7184      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
7185    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
7186  #define $ac_tr_hdr 1    yes:no )
7187  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7188   cat >> confdefs.h <<\EOF  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7189        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7190    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7191      no:yes )
7192        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7193    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7194        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7195    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7196        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7197    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7198    esac
7199    echo "$as_me:$LINENO: checking for $ac_header" >&5
7200    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7201    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7202      echo $ECHO_N "(cached) $ECHO_C" >&6
7203    else
7204      eval "$as_ac_Header=$ac_header_preproc"
7205    fi
7206    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7207    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7208    
7209    fi
7210    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7211      cat >>confdefs.h <<_ACEOF
7212    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7213    _ACEOF
7214     cat >>confdefs.h <<\_ACEOF
7215  #define HAVE_XDR 1  #define HAVE_XDR 1
7216  EOF  _ACEOF
7217    
7218                                   LIBS="${LIBS} -loncrpc"                                   LIBS="${LIBS} -loncrpc"
 else  
   echo "$ac_t""no" 1>&6  
7219  fi  fi
7220    
7221  done  done
7222    
7223   fi   fi
7224  else  else
7225   if test "$try_xdr" = "yes" ; then   if test "$try_xdr" = "yes" ; then
7226     for ac_hdr in rpc/rpc.h  
7227    for ac_header in rpc/rpc.h
7228  do  do
7229  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7230  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7231  echo "configure:4118: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7232  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7233    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7234      echo $ECHO_N "(cached) $ECHO_C" >&6
7235    fi
7236    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7237    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7238    else
7239      # Is the header compilable?
7240    echo "$as_me:$LINENO: checking $ac_header usability" >&5
7241    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7242    cat >conftest.$ac_ext <<_ACEOF
7243    #line $LINENO "configure"
7244    #include "confdefs.h"
7245    $ac_includes_default
7246    #include <$ac_header>
7247    _ACEOF
7248    rm -f conftest.$ac_objext
7249    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7250      (eval $ac_compile) 2>&5
7251      ac_status=$?
7252      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253      (exit $ac_status); } &&
7254             { ac_try='test -s conftest.$ac_objext'
7255      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256      (eval $ac_try) 2>&5
7257      ac_status=$?
7258      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259      (exit $ac_status); }; }; then
7260      ac_header_compiler=yes
7261    else
7262      echo "$as_me: failed program was:" >&5
7263    cat conftest.$ac_ext >&5
7264    ac_header_compiler=no
7265    fi
7266    rm -f conftest.$ac_objext conftest.$ac_ext
7267    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7268    echo "${ECHO_T}$ac_header_compiler" >&6
7269    
7270    # Is the header present?
7271    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7272    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7273    cat >conftest.$ac_ext <<_ACEOF
7274    #line $LINENO "configure"
7275    #include "confdefs.h"
7276    #include <$ac_header>
7277    _ACEOF
7278    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7279      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7280      ac_status=$?
7281      egrep -v '^ *\+' conftest.er1 >conftest.err
7282      rm -f conftest.er1
7283      cat conftest.err >&5
7284      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285      (exit $ac_status); } >/dev/null; then
7286      if test -s conftest.err; then
7287        ac_cpp_err=$ac_c_preproc_warn_flag
7288      else
7289        ac_cpp_err=
7290      fi
7291  else  else
7292    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7293  #line 4123 "configure"  fi
7294  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7295  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
7296  else  else
7297    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7298    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7299    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
7300  fi  fi
7301  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
7302    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7303      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
7304    cat >> confdefs.h <<EOF  
7305  #define $ac_tr_hdr 1  # So?  What about this header?
7306  EOF  case $ac_header_compiler:$ac_header_preproc in
7307   cat >> confdefs.h <<\EOF    yes:no )
7308        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7309    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7310        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7311    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7312      no:yes )
7313        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7314    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7315        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7316    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7317        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7318    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7319    esac
7320    echo "$as_me:$LINENO: checking for $ac_header" >&5
7321    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7322    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7323      echo $ECHO_N "(cached) $ECHO_C" >&6
7324    else
7325      eval "$as_ac_Header=$ac_header_preproc"
7326    fi
7327    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7328    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7329    
7330    fi
7331    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7332      cat >>confdefs.h <<_ACEOF
7333    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7334    _ACEOF
7335     cat >>confdefs.h <<\_ACEOF
7336  #define HAVE_XDR 1  #define HAVE_XDR 1
7337  EOF  _ACEOF
7338    
7339                                   LIBS="${LIBS} -lrpc"                                   LIBS="${LIBS} -lrpc"
 else  
   echo "$ac_t""no" 1>&6  
7340  fi  fi
7341    
7342  done  done
7343    
7344   fi   fi
7345  fi  fi
7346    
7347  # Should really find a way to check for prototypes, but this  # Should really find a way to check for prototypes, but this
7348  # basically works for now.  CM  # basically works for now.  CM
7349  #  #
7350  for ac_hdr in math.h  
7351    for ac_header in math.h
7352  do  do
7353  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7354  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7355  echo "configure:4168: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7356  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7357    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7358      echo $ECHO_N "(cached) $ECHO_C" >&6
7359    fi
7360    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7361    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7362    else
7363      # Is the header compilable?
7364    echo "$as_me:$LINENO: checking $ac_header usability" >&5
7365    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7366    cat >conftest.$ac_ext <<_ACEOF
7367    #line $LINENO "configure"
7368    #include "confdefs.h"
7369    $ac_includes_default
7370    #include <$ac_header>
7371    _ACEOF
7372    rm -f conftest.$ac_objext
7373    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7374      (eval $ac_compile) 2>&5
7375      ac_status=$?
7376      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377      (exit $ac_status); } &&
7378             { ac_try='test -s conftest.$ac_objext'
7379      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380      (eval $ac_try) 2>&5
7381      ac_status=$?
7382      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383      (exit $ac_status); }; }; then
7384      ac_header_compiler=yes
7385    else
7386      echo "$as_me: failed program was:" >&5
7387    cat conftest.$ac_ext >&5
7388    ac_header_compiler=no
7389    fi
7390    rm -f conftest.$ac_objext conftest.$ac_ext
7391    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7392    echo "${ECHO_T}$ac_header_compiler" >&6
7393    
7394    # Is the header present?
7395    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7396    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7397    cat >conftest.$ac_ext <<_ACEOF
7398    #line $LINENO "configure"
7399    #include "confdefs.h"
7400    #include <$ac_header>
7401    _ACEOF
7402    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7403      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7404      ac_status=$?
7405      egrep -v '^ *\+' conftest.er1 >conftest.err
7406      rm -f conftest.er1
7407      cat conftest.err >&5
7408      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409      (exit $ac_status); } >/dev/null; then
7410      if test -s conftest.err; then
7411        ac_cpp_err=$ac_c_preproc_warn_flag
7412      else
7413        ac_cpp_err=
7414      fi
7415  else  else
7416    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7417  #line 4173 "configure"  fi
7418  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7419  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
7420  else  else
7421    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7422    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7423    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
7424  fi  fi
7425  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
7426  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7427  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
7428    echo "$ac_t""yes" 1>&6  
7429      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
7430    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
7431  #define $ac_tr_hdr 1    yes:no )
7432  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7433   cat >> confdefs.h <<\EOF  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7434        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7435    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7436      no:yes )
7437        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7438    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7439        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7440    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7441        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7442    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7443    esac
7444    echo "$as_me:$LINENO: checking for $ac_header" >&5
7445    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7446    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7447      echo $ECHO_N "(cached) $ECHO_C" >&6
7448    else
7449      eval "$as_ac_Header=$ac_header_preproc"
7450    fi
7451    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7452    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7453    
7454    fi
7455    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7456      cat >>confdefs.h <<_ACEOF
7457    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7458    _ACEOF
7459     cat >>confdefs.h <<\_ACEOF
7460  #define HAVE_MATH_H 1  #define HAVE_MATH_H 1
7461  EOF  _ACEOF
7462    
 else  
   echo "$ac_t""no" 1>&6  
7463  fi  fi
7464    
7465  done  done
7466    
7467    
7468  #  #
7469  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM
7470  #  #
7471  for ac_hdr in values.h  
7472    for ac_header in values.h
7473  do  do
7474  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7475  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7476  echo "configure:4215: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7477  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7478    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7479      echo $ECHO_N "(cached) $ECHO_C" >&6
7480    fi
7481    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7482    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7483    else
7484      # Is the header compilable?
7485    echo "$as_me:$LINENO: checking $ac_header usability" >&5
7486    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7487    cat >conftest.$ac_ext <<_ACEOF
7488    #line $LINENO "configure"
7489    #include "confdefs.h"
7490    $ac_includes_default
7491    #include <$ac_header>
7492    _ACEOF
7493    rm -f conftest.$ac_objext
7494    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7495      (eval $ac_compile) 2>&5
7496      ac_status=$?
7497      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498      (exit $ac_status); } &&
7499             { ac_try='test -s conftest.$ac_objext'
7500      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501      (eval $ac_try) 2>&5
7502      ac_status=$?
7503      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504      (exit $ac_status); }; }; then
7505      ac_header_compiler=yes
7506    else
7507      echo "$as_me: failed program was:" >&5
7508    cat conftest.$ac_ext >&5
7509    ac_header_compiler=no
7510    fi
7511    rm -f conftest.$ac_objext conftest.$ac_ext
7512    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7513    echo "${ECHO_T}$ac_header_compiler" >&6
7514    
7515    # Is the header present?
7516    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7517    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7518    cat >conftest.$ac_ext <<_ACEOF
7519    #line $LINENO "configure"
7520    #include "confdefs.h"
7521    #include <$ac_header>
7522    _ACEOF
7523    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7524      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7525      ac_status=$?
7526      egrep -v '^ *\+' conftest.er1 >conftest.err
7527      rm -f conftest.er1
7528      cat conftest.err >&5
7529      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530      (exit $ac_status); } >/dev/null; then
7531      if test -s conftest.err; then
7532        ac_cpp_err=$ac_c_preproc_warn_flag
7533      else
7534        ac_cpp_err=
7535      fi
7536  else  else
7537    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7538  #line 4220 "configure"  fi
7539  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7540  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
7541  else  else
7542    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7543    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7544    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
7545  fi  fi
7546  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
7547    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7548      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
7549    cat >> confdefs.h <<EOF  
7550  #define $ac_tr_hdr 1  # So?  What about this header?
7551  EOF  case $ac_header_compiler:$ac_header_preproc in
7552   cat >> confdefs.h <<\EOF    yes:no )
7553        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7554    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7555        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7556    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7557      no:yes )
7558        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7559    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7560        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7561    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7562        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7563    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7564    esac
7565    echo "$as_me:$LINENO: checking for $ac_header" >&5
7566    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7567    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7568      echo $ECHO_N "(cached) $ECHO_C" >&6
7569    else
7570      eval "$as_ac_Header=$ac_header_preproc"
7571    fi
7572    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7573    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7574    
7575    fi
7576    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7577      cat >>confdefs.h <<_ACEOF
7578    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7579    _ACEOF
7580     cat >>confdefs.h <<\_ACEOF
7581  #define HAVE_VALUES_H 1  #define HAVE_VALUES_H 1
7582  EOF  _ACEOF
7583    
 else  
   echo "$ac_t""no" 1>&6  
7584  fi  fi
7585    
7586  done  done
7587    
7588    
7589  #  #
7590  # Sparc solaris keeps this in float.h, rework either/or with values.h later  # Sparc solaris keeps this in float.h, rework either/or with values.h later
7591  #  #
7592  for ac_hdr in float.h  
7593    for ac_header in float.h
7594  do  do
7595  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7596  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7597  echo "configure:4262: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7598  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7599    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7600      echo $ECHO_N "(cached) $ECHO_C" >&6
7601    fi
7602    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7603    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7604    else
7605      # Is the header compilable?
7606    echo "$as_me:$LINENO: checking $ac_header usability" >&5
7607    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7608    cat >conftest.$ac_ext <<_ACEOF
7609    #line $LINENO "configure"
7610    #include "confdefs.h"
7611    $ac_includes_default
7612    #include <$ac_header>
7613    _ACEOF
7614    rm -f conftest.$ac_objext
7615    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7616      (eval $ac_compile) 2>&5
7617      ac_status=$?
7618      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619      (exit $ac_status); } &&
7620             { ac_try='test -s conftest.$ac_objext'
7621      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622      (eval $ac_try) 2>&5
7623      ac_status=$?
7624      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625      (exit $ac_status); }; }; then
7626      ac_header_compiler=yes
7627    else
7628      echo "$as_me: failed program was:" >&5
7629    cat conftest.$ac_ext >&5
7630    ac_header_compiler=no
7631    fi
7632    rm -f conftest.$ac_objext conftest.$ac_ext
7633    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7634    echo "${ECHO_T}$ac_header_compiler" >&6
7635    
7636    # Is the header present?
7637    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7638    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7639    cat >conftest.$ac_ext <<_ACEOF
7640    #line $LINENO "configure"
7641    #include "confdefs.h"
7642    #include <$ac_header>
7643    _ACEOF
7644    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7645      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7646      ac_status=$?
7647      egrep -v '^ *\+' conftest.er1 >conftest.err
7648      rm -f conftest.er1
7649      cat conftest.err >&5
7650      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651      (exit $ac_status); } >/dev/null; then
7652      if test -s conftest.err; then
7653        ac_cpp_err=$ac_c_preproc_warn_flag
7654      else
7655        ac_cpp_err=
7656      fi
7657  else  else
7658    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7659  #line 4267 "configure"  fi
7660  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7661  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
7662  else  else
7663    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7664    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7665    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
7666  fi  fi
7667  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
7668    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7669      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
7670    cat >> confdefs.h <<EOF  
7671  #define $ac_tr_hdr 1  # So?  What about this header?
7672  EOF  case $ac_header_compiler:$ac_header_preproc in
7673   cat >> confdefs.h <<\EOF    yes:no )
7674        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7675    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7676        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7677    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7678      no:yes )
7679        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7680    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7681        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7682    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7683        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7684    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7685    esac
7686    echo "$as_me:$LINENO: checking for $ac_header" >&5
7687    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7688    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7689      echo $ECHO_N "(cached) $ECHO_C" >&6
7690    else
7691      eval "$as_ac_Header=$ac_header_preproc"
7692    fi
7693    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7694    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7695    
7696    fi
7697    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7698      cat >>confdefs.h <<_ACEOF
7699    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7700    _ACEOF
7701     cat >>confdefs.h <<\_ACEOF
7702  #define HAVE_FLOAT_H 1  #define HAVE_FLOAT_H 1
7703  EOF  _ACEOF
7704    
 else  
   echo "$ac_t""no" 1>&6  
7705  fi  fi
7706    
7707  done  done
7708    
7709    
# Line 4303  done Line 7712  done
7712  # a more comprehensive later, i.e. checking that the fpclass  # a more comprehensive later, i.e. checking that the fpclass
7713  # test makes sense.  CM  # test makes sense.  CM
7714  #  #
7715  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for isnormal" >&5
7716  echo "configure:4308: checking for isnormal" >&5  echo $ECHO_N "checking for isnormal... $ECHO_C" >&6
7717  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7718    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$as_me:$LINENO: result: no" >&5
7719    echo "${ECHO_T}no" >&6
7720  else  else
7721    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7722  #line 4313 "configure"  #line $LINENO "configure"
7723  #include "confdefs.h"  #include "confdefs.h"
7724  #define _GNU_SOURCE  #define _GNU_SOURCE
7725              #include <math.h>              #include <math.h>
# Line 4317  else Line 7727  else
7727                  float f;                  float f;
7728                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
7729                  }                  }
7730  EOF  _ACEOF
7731  if { (eval echo configure:4322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7732  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7733    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7734      ac_status=$?
7735      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7737      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738      (eval $ac_try) 2>&5
7739      ac_status=$?
7740      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741      (exit $ac_status); }; }; then
7742      cat >>confdefs.h <<\_ACEOF
7743  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
7744  EOF  _ACEOF
7745   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7746  else  echo "${ECHO_T}yes" >&6
7747    echo "configure: failed program was:" >&5  else
7748    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
7749    rm -fr conftest*  echo "$as_me: failed program was:" >&5
7750    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6  cat conftest.$ac_ext >&5
7751  echo "configure:4333: checking for fpclass in ieeefp.h" >&5  ( exit $ac_status )
7752    echo "$as_me:$LINENO: checking for fpclass in ieeefp.h" >&5
7753    echo $ECHO_N "checking for fpclass in ieeefp.h... $ECHO_C" >&6
7754                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
7755    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
7756    echo "${ECHO_T}no" >&6
7757  else  else
7758    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7759  #line 4338 "configure"  #line $LINENO "configure"
7760  #include "confdefs.h"  #include "confdefs.h"
7761  #include <ieeefp.h>  #include <ieeefp.h>
7762                              int main() {                              int main() {
7763                                  float f;                                  float f;
7764                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
7765                                  }                                  }
7766  EOF  _ACEOF
7767  if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7768  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7769    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7770      ac_status=$?
7771      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7773      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774      (eval $ac_try) 2>&5
7775      ac_status=$?
7776      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777      (exit $ac_status); }; }; then
7778      cat >>confdefs.h <<\_ACEOF
7779  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
7780  EOF  _ACEOF
7781   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7782    echo "${ECHO_T}yes" >&6
7783  else  else
7784    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7785    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7786    rm -fr conftest*  cat conftest.$ac_ext >&5
7787    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6  ( exit $ac_status )
7788    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
7789    echo "${ECHO_T}no" >&6
7790  fi  fi
7791  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7792  fi  fi
7793    
           
7794  fi  fi
7795  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7796  fi  fi
7797    
7798    echo "$as_me:$LINENO: checking for isfinite" >&5
7799  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ECHO_N "checking for isfinite... $ECHO_C" >&6
 echo "configure:4368: checking for isfinite" >&5  
7800  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7801    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$as_me:$LINENO: result: no" >&5
7802    echo "${ECHO_T}no" >&6
7803  else  else
7804    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7805  #line 4373 "configure"  #line $LINENO "configure"
7806  #include "confdefs.h"  #include "confdefs.h"
7807  #define _GNU_SOURCE  #define _GNU_SOURCE
7808              #include <math.h>              #include <math.h>
# Line 4377  else Line 7810  else
7810                  float f;                  float f;
7811                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
7812                  }                  }
7813  EOF  _ACEOF
7814  if { (eval echo configure:4382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7815  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7816    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7817      ac_status=$?
7818      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7820      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821      (eval $ac_try) 2>&5
7822      ac_status=$?
7823      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824      (exit $ac_status); }; }; then
7825      cat >>confdefs.h <<\_ACEOF
7826  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
7827  EOF  _ACEOF
7828   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7829  else  echo "${ECHO_T}yes" >&6
7830    echo "configure: failed program was:" >&5  else
7831    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
7832    rm -fr conftest*  echo "$as_me: failed program was:" >&5
7833    echo $ac_n "checking for finite()""... $ac_c" 1>&6  cat conftest.$ac_ext >&5
7834  echo "configure:4393: checking for finite()" >&5  ( exit $ac_status )
7835    echo "$as_me:$LINENO: checking for finite()" >&5
7836    echo $ECHO_N "checking for finite()... $ECHO_C" >&6
7837                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
7838    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
7839    echo "${ECHO_T}no" >&6
7840  else  else
7841    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7842  #line 4398 "configure"  #line $LINENO "configure"
7843  #include "confdefs.h"  #include "confdefs.h"
7844  #include <math.h>  #include <math.h>
7845                              #include <ieeefp.h>                              #include <ieeefp.h>
# Line 4402  else Line 7847  else
7847                                  float f;                                  float f;
7848                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
7849                                  }                                  }
7850  EOF  _ACEOF
7851  if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7852  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7853    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7854      ac_status=$?
7855      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7857      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858      (eval $ac_try) 2>&5
7859      ac_status=$?
7860      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861      (exit $ac_status); }; }; then
7862      cat >>confdefs.h <<\_ACEOF
7863  #define HAVE_FINITE 1  #define HAVE_FINITE 1
7864  EOF  _ACEOF
7865   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7866    echo "${ECHO_T}yes" >&6
7867  else  else
7868    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7869    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7870    rm -fr conftest*  cat conftest.$ac_ext >&5
7871    HAVE_FINITE=0 echo "$ac_t""no" 1>&6  ( exit $ac_status )
7872    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
7873    echo "${ECHO_T}no" >&6
7874  fi  fi
7875  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7876  fi  fi
7877    
           
7878  fi  fi
7879  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7880  fi  fi
7881    
7882    
7883    
   
7884  #--------------------------------------------------------------------  #--------------------------------------------------------------------
7885  #       Check for the existence of the -lsocket and -lnsl libraries.  #       Check for the existence of the -lsocket and -lnsl libraries.
7886  #       The order here is important, so that they end up in the right  #       The order here is important, so that they end up in the right
# Line 4443  fi Line 7898  fi
7898  #          To get around this problem, check for both libraries together  #          To get around this problem, check for both libraries together
7899  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
7900  #--------------------------------------------------------------------  #--------------------------------------------------------------------
7901  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sockets" >&5
7902  echo "configure:4448: checking for sockets" >&5  echo $ECHO_N "checking for sockets... $ECHO_C" >&6
7903  tcl_checkBoth=0  tcl_checkBoth=0
7904  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for connect" >&5
7905  echo "configure:4451: checking for connect" >&5  echo $ECHO_N "checking for connect... $ECHO_C" >&6
7906  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if test "${ac_cv_func_connect+set}" = set; then
7907    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7908  else  else
7909    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7910  #line 4456 "configure"  #line $LINENO "configure"
7911  #include "confdefs.h"  #include "confdefs.h"
7912  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7913      which can conflict with char connect(); below.  */      which can conflict with char connect (); below.  */
7914  #include <assert.h>  #include <assert.h>
7915  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7916    #ifdef __cplusplus
7917    extern "C"
7918    #endif
7919  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
7920      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7921  char connect();  char connect ();
7922    char (*f) ();
7923  int main() {  
7924    #ifdef F77_DUMMY_MAIN
7925    #  ifdef __cplusplus
7926         extern "C"
7927    #  endif
7928       int F77_DUMMY_MAIN() { return 1; }
7929    #endif
7930    int
7931    main ()
7932    {
7933  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7934      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7935      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7936  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
7937  choke me  choke me
7938  #else  #else
7939  connect();  f = connect;
7940  #endif  #endif
7941    
7942  ; return 0; }    ;
7943  EOF    return 0;
7944  if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
7945    rm -rf conftest*  _ACEOF
7946    eval "ac_cv_func_connect=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
7947  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
7949    cat conftest.$ac_ext >&5    ac_status=$?
7950    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951    eval "ac_cv_func_connect=no"    (exit $ac_status); } &&
7952  fi           { ac_try='test -s conftest$ac_exeext'
7953  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954  fi    (eval $ac_try) 2>&5
7955      ac_status=$?
7956  if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
7958      ac_cv_func_connect=yes
7959    else
7960      echo "$as_me: failed program was:" >&5
7961    cat conftest.$ac_ext >&5
7962    ac_cv_func_connect=no
7963    fi
7964    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7965    fi
7966    echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7967    echo "${ECHO_T}$ac_cv_func_connect" >&6
7968    if test $ac_cv_func_connect = yes; then
7969    tcl_checkSocket=0    tcl_checkSocket=0
7970  else  else
7971    echo "$ac_t""no" 1>&6    tcl_checkSocket=1
 tcl_checkSocket=1  
7972  fi  fi
7973    
7974  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
7975      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for main in -lsocket" >&5
7976  echo "configure:4501: checking for main in -lsocket" >&5  echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
7977  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_main+set}" = set; then
7978  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
7979  else  else
7980    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
7981  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
7982  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
7983  #line 4509 "configure"  #line $LINENO "configure"
7984  #include "confdefs.h"  #include "confdefs.h"
7985    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:4516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
7986    
7987  fi  #ifdef F77_DUMMY_MAIN
7988  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
7989    echo "$ac_t""yes" 1>&6       extern "C"
7990    #  endif
7991       int F77_DUMMY_MAIN() { return 1; }
7992    #endif
7993    int
7994    main ()
7995    {
7996    main ();
7997      ;
7998      return 0;
7999    }
8000    _ACEOF
8001    rm -f conftest.$ac_objext conftest$ac_exeext
8002    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8003      (eval $ac_link) 2>&5
8004      ac_status=$?
8005      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006      (exit $ac_status); } &&
8007             { ac_try='test -s conftest$ac_exeext'
8008      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009      (eval $ac_try) 2>&5
8010      ac_status=$?
8011      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012      (exit $ac_status); }; }; then
8013      ac_cv_lib_socket_main=yes
8014    else
8015      echo "$as_me: failed program was:" >&5
8016    cat conftest.$ac_ext >&5
8017    ac_cv_lib_socket_main=no
8018    fi
8019    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8020    LIBS=$ac_check_lib_save_LIBS
8021    fi
8022    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
8023    echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
8024    if test $ac_cv_lib_socket_main = yes; then
8025    TLIBS="$TLIBS -lsocket"    TLIBS="$TLIBS -lsocket"
8026  else  else
8027    echo "$ac_t""no" 1>&6    tcl_checkBoth=1
 tcl_checkBoth=1  
8028  fi  fi
8029    
8030  fi  fi
# Line 4539  fi Line 8033  fi
8033  if test "$tcl_checkBoth" = 1; then  if test "$tcl_checkBoth" = 1; then
8034      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
8035      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
8036      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for accept" >&5
8037  echo "configure:4544: checking for accept" >&5  echo $ECHO_N "checking for accept... $ECHO_C" >&6
8038  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if test "${ac_cv_func_accept+set}" = set; then
8039    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8040  else  else
8041    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8042  #line 4549 "configure"  #line $LINENO "configure"
8043  #include "confdefs.h"  #include "confdefs.h"
8044  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8045      which can conflict with char accept(); below.  */      which can conflict with char accept (); below.  */
8046  #include <assert.h>  #include <assert.h>
8047  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8048    #ifdef __cplusplus
8049    extern "C"
8050    #endif
8051  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
8052      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8053  char accept();  char accept ();
8054    char (*f) ();
8055  int main() {  
8056    #ifdef F77_DUMMY_MAIN
8057    #  ifdef __cplusplus
8058         extern "C"
8059    #  endif
8060       int F77_DUMMY_MAIN() { return 1; }
8061    #endif
8062    int
8063    main ()
8064    {
8065  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8066      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8067      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8068  #if defined (__stub_accept) || defined (__stub___accept)  #if defined (__stub_accept) || defined (__stub___accept)
8069  choke me  choke me
8070  #else  #else
8071  accept();  f = accept;
8072  #endif  #endif
8073    
8074  ; return 0; }    ;
8075  EOF    return 0;
8076  if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8077    rm -rf conftest*  _ACEOF
8078    eval "ac_cv_func_accept=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8079  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8080    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8081    cat conftest.$ac_ext >&5    ac_status=$?
8082    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083    eval "ac_cv_func_accept=no"    (exit $ac_status); } &&
8084  fi           { ac_try='test -s conftest$ac_exeext'
8085  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086  fi    (eval $ac_try) 2>&5
8087      ac_status=$?
8088  if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8090      ac_cv_func_accept=yes
8091    else
8092      echo "$as_me: failed program was:" >&5
8093    cat conftest.$ac_ext >&5
8094    ac_cv_func_accept=no
8095    fi
8096    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8097    fi
8098    echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
8099    echo "${ECHO_T}$ac_cv_func_accept" >&6
8100    if test $ac_cv_func_accept = yes; then
8101    tcl_checkNsl=0    tcl_checkNsl=0
8102  else  else
8103    echo "$ac_t""no" 1>&6    TLIBS=$tk_oldLibs
 TLIBS=$tk_oldLibs  
8104  fi  fi
8105    
8106  fi  fi
8107  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gethostbyname" >&5
8108  echo "configure:4594: checking for gethostbyname" >&5  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8109  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if test "${ac_cv_func_gethostbyname+set}" = set; then
8110    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8111  else  else
8112    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8113  #line 4599 "configure"  #line $LINENO "configure"
8114  #include "confdefs.h"  #include "confdefs.h"
8115  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8116      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname (); below.  */
8117  #include <assert.h>  #include <assert.h>
8118  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8119    #ifdef __cplusplus
8120    extern "C"
8121    #endif
8122  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
8123      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8124  char gethostbyname();  char gethostbyname ();
8125    char (*f) ();
8126  int main() {  
8127    #ifdef F77_DUMMY_MAIN
8128    #  ifdef __cplusplus
8129         extern "C"
8130    #  endif
8131       int F77_DUMMY_MAIN() { return 1; }
8132    #endif
8133    int
8134    main ()
8135    {
8136  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8137      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8138      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8139  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8140  choke me  choke me
8141  #else  #else
8142  gethostbyname();  f = gethostbyname;
8143  #endif  #endif
8144    
8145  ; return 0; }    ;
8146  EOF    return 0;
8147  if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8148    rm -rf conftest*  _ACEOF
8149    eval "ac_cv_func_gethostbyname=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8150  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8151    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8152    cat conftest.$ac_ext >&5    ac_status=$?
8153    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154    eval "ac_cv_func_gethostbyname=no"    (exit $ac_status); } &&
8155  fi           { ac_try='test -s conftest$ac_exeext'
8156  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157  fi    (eval $ac_try) 2>&5
8158      ac_status=$?
8159  if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8161      ac_cv_func_gethostbyname=yes
8162    else
8163      echo "$as_me: failed program was:" >&5
8164    cat conftest.$ac_ext >&5
8165    ac_cv_func_gethostbyname=no
8166    fi
8167    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8168    fi
8169    echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8170    echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8171    if test $ac_cv_func_gethostbyname = yes; then
8172    :    :
8173  else  else
8174    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for main in -lnsl" >&5
8175  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
8176  echo "configure:4640: checking for main in -lnsl" >&5  if test "${ac_cv_lib_nsl_main+set}" = set; then
8177  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`    echo $ECHO_N "(cached) $ECHO_C" >&6
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
8178  else  else
8179    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
8180  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
8181  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8182  #line 4648 "configure"  #line $LINENO "configure"
8183  #include "confdefs.h"  #include "confdefs.h"
8184    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
8185    
8186  fi  #ifdef F77_DUMMY_MAIN
8187  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
8188    echo "$ac_t""yes" 1>&6       extern "C"
8189    #  endif
8190       int F77_DUMMY_MAIN() { return 1; }
8191    #endif
8192    int
8193    main ()
8194    {
8195    main ();
8196      ;
8197      return 0;
8198    }
8199    _ACEOF
8200    rm -f conftest.$ac_objext conftest$ac_exeext
8201    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8202      (eval $ac_link) 2>&5
8203      ac_status=$?
8204      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205      (exit $ac_status); } &&
8206             { ac_try='test -s conftest$ac_exeext'
8207      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208      (eval $ac_try) 2>&5
8209      ac_status=$?
8210      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211      (exit $ac_status); }; }; then
8212      ac_cv_lib_nsl_main=yes
8213    else
8214      echo "$as_me: failed program was:" >&5
8215    cat conftest.$ac_ext >&5
8216    ac_cv_lib_nsl_main=no
8217    fi
8218    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8219    LIBS=$ac_check_lib_save_LIBS
8220    fi
8221    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
8222    echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
8223    if test $ac_cv_lib_nsl_main = yes; then
8224    TLIBS="$TLIBS -lnsl"    TLIBS="$TLIBS -lnsl"
 else  
   echo "$ac_t""no" 1>&6  
8225  fi  fi
8226    
8227  fi  fi
8228    
8229    
8230  if test "$enable_readline" = "yes" ; then  if test "$enable_readline" = "yes" ; then
8231          echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for main in -lreadline" >&5
8232  echo "configure:4680: checking for main in -lreadline" >&5  echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
8233  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_readline_main+set}" = set; then
8234  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
8235  else  else
8236    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
8237  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
8238  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8239  #line 4688 "configure"  #line $LINENO "configure"
8240  #include "confdefs.h"  #include "confdefs.h"
8241    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:4695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
8242    
8243  fi  #ifdef F77_DUMMY_MAIN
8244  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
8245    echo "$ac_t""yes" 1>&6       extern "C"
8246    cat >> confdefs.h <<\EOF  #  endif
8247       int F77_DUMMY_MAIN() { return 1; }
8248    #endif
8249    int
8250    main ()
8251    {
8252    main ();
8253      ;
8254      return 0;
8255    }
8256    _ACEOF
8257    rm -f conftest.$ac_objext conftest$ac_exeext
8258    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8259      (eval $ac_link) 2>&5
8260      ac_status=$?
8261      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262      (exit $ac_status); } &&
8263             { ac_try='test -s conftest$ac_exeext'
8264      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265      (eval $ac_try) 2>&5
8266      ac_status=$?
8267      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268      (exit $ac_status); }; }; then
8269      ac_cv_lib_readline_main=yes
8270    else
8271      echo "$as_me: failed program was:" >&5
8272    cat conftest.$ac_ext >&5
8273    ac_cv_lib_readline_main=no
8274    fi
8275    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8276    LIBS=$ac_check_lib_save_LIBS
8277    fi
8278    echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
8279    echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
8280    if test $ac_cv_lib_readline_main = yes; then
8281      cat >>confdefs.h <<\_ACEOF
8282  #define HAVE_READLINE 1  #define HAVE_READLINE 1
8283  EOF  _ACEOF
8284    
8285                  TLIBS="$TLIBS -lreadline -lncurses"                  TLIBS="$TLIBS -lreadline -lncurses"
8286                  RL_OBJS=gcl_readline.o                  RL_OBJS=gcl_readline.o
8287                  RL_LIB=lsp/gcl_readline.o                  RL_LIB=lsp/gcl_readline.o
 else  
   echo "$ac_t""no" 1>&6  
8288  fi  fi
8289    
8290  fi  fi
# Line 4722  fi Line 8292  fi
8292    
8293    
8294    
8295  echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking For network code for nsocket.c" >&5
8296  echo "configure:4727: checking For network code for nsocket.c" >&5  echo $ECHO_N "checking For network code for nsocket.c... $ECHO_C" >&6
8297  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8298  #line 4729 "configure"  #line $LINENO "configure"
8299  #include "confdefs.h"  #include "confdefs.h"
8300    
8301  #include <sys/time.h>  #include <sys/time.h>
# Line 4736  cat > conftest.$ac_ext <<EOF Line 8306  cat > conftest.$ac_ext <<EOF
8306  #include <fcntl.h>  #include <fcntl.h>
8307  #include <stdio.h>  #include <stdio.h>
8308    
8309  /************* for the sockets ******************/  /************* for the sockets ******************/
8310  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */
8311  #ifndef NO_UNAME  #ifndef NO_UNAME
8312  #   include <sys/utsname.h>     /* uname system call. */  #   include <sys/utsname.h>     /* uname system call. */
# Line 4745  cat > conftest.$ac_ext <<EOF Line 8315  cat > conftest.$ac_ext <<EOF
8315  #include <arpa/inet.h>          /* inet_ntoa() */  #include <arpa/inet.h>          /* inet_ntoa() */
8316  #include <netdb.h>              /* gethostbyname() */  #include <netdb.h>              /* gethostbyname() */
8317    
8318  int main() {  #ifdef F77_DUMMY_MAIN
8319    #  ifdef __cplusplus
8320         extern "C"
8321    #  endif
8322       int F77_DUMMY_MAIN() { return 1; }
8323    #endif
8324    int
8325    main ()
8326    {
8327   connect(0,(struct sockaddr *)0,0);   connect(0,(struct sockaddr *)0,0);
8328      gethostbyname("jil");      gethostbyname("jil");
8329      socket(AF_INET, SOCK_STREAM, 0);      socket(AF_INET, SOCK_STREAM, 0);
8330            
8331  ; return 0; }    ;
8332  EOF    return 0;
8333  if { (eval echo configure:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8334    rm -rf conftest*  _ACEOF
8335    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext conftest$ac_exeext
8336    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8337      (eval $ac_link) 2>&5
8338      ac_status=$?
8339      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340      (exit $ac_status); } &&
8341             { ac_try='test -s conftest$ac_exeext'
8342      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343      (eval $ac_try) 2>&5
8344      ac_status=$?
8345      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346      (exit $ac_status); }; }; then
8347      cat >>confdefs.h <<\_ACEOF
8348  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
8349  EOF  _ACEOF
8350    
8351   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
8352    echo "${ECHO_T}yes" >&6
8353  else  else
8354    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8355    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8356    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8357    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8358  fi  fi
8359  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8360    
8361    
8362  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for listen using fcntl" >&5
8363  echo "configure:4773: checking check for listen using fcntl" >&5  echo $ECHO_N "checking check for listen using fcntl... $ECHO_C" >&6
8364  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8365  #line 4775 "configure"  #line $LINENO "configure"
8366  #include "confdefs.h"  #include "confdefs.h"
8367  #include <stdio.h>  #include <stdio.h>
8368  #include <fcntl.h>  #include <fcntl.h>
8369    
8370  int main() {  #ifdef F77_DUMMY_MAIN
8371    #  ifdef __cplusplus
8372         extern "C"
8373    #  endif
8374       int F77_DUMMY_MAIN() { return 1; }
8375    #endif
8376    int
8377    main ()
8378    {
8379  FILE *fp=fopen("configure.in","r");  FILE *fp=fopen("configure.in","r");
8380    int orig;    int orig;
8381    orig = fcntl(fileno(fp), F_GETFL);    orig = fcntl(fileno(fp), F_GETFL);
8382    if (! (orig & O_NONBLOCK )) return 0;    if (! (orig & O_NONBLOCK )) return 0;
8383    
8384  ; return 0; }    ;
8385  EOF    return 0;
8386  if { (eval echo configure:4788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8387    rm -rf conftest*  _ACEOF
8388    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
8389    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8390      (eval $ac_compile) 2>&5
8391      ac_status=$?
8392      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393      (exit $ac_status); } &&
8394             { ac_try='test -s conftest.$ac_objext'
8395      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396      (eval $ac_try) 2>&5
8397      ac_status=$?
8398      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399      (exit $ac_status); }; }; then
8400      cat >>confdefs.h <<\_ACEOF
8401  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
8402  EOF  _ACEOF
8403    
8404   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
8405    echo "${ECHO_T}yes" >&6
8406  else  else
8407    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8408    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8409    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8410    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8411  fi  fi
8412  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8413    
8414    
8415    
8416    
8417  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for profil" >&5
8418  echo "configure:4807: checking for profil" >&5  echo $ECHO_N "checking for profil... $ECHO_C" >&6
8419  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if test "${ac_cv_func_profil+set}" = set; then
8420    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8421  else  else
8422    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8423  #line 4812 "configure"  #line $LINENO "configure"
8424  #include "confdefs.h"  #include "confdefs.h"
8425  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8426      which can conflict with char profil(); below.  */      which can conflict with char profil (); below.  */
8427  #include <assert.h>  #include <assert.h>
8428  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8429    #ifdef __cplusplus
8430    extern "C"
8431    #endif
8432  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
8433      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8434  char profil();  char profil ();
8435    char (*f) ();
8436  int main() {  
8437    #ifdef F77_DUMMY_MAIN
8438    #  ifdef __cplusplus
8439         extern "C"
8440    #  endif
8441       int F77_DUMMY_MAIN() { return 1; }
8442    #endif
8443    int
8444    main ()
8445    {
8446  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8447      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8448      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8449  #if defined (__stub_profil) || defined (__stub___profil)  #if defined (__stub_profil) || defined (__stub___profil)
8450  choke me  choke me
8451  #else  #else
8452  profil();  f = profil;
8453  #endif  #endif
8454    
8455  ; return 0; }    ;
8456  EOF    return 0;
8457  if { (eval echo configure:4835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8458    rm -rf conftest*  _ACEOF
8459    eval "ac_cv_func_profil=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8460  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8462    cat conftest.$ac_ext >&5    ac_status=$?
8463    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464    eval "ac_cv_func_profil=no"    (exit $ac_status); } &&
8465  fi           { ac_try='test -s conftest$ac_exeext'
8466  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467  fi    (eval $ac_try) 2>&5
8468      ac_status=$?
8469  if eval "test \"`echo '$ac_cv_func_'profil`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8471      ac_cv_func_profil=yes
8472    else
8473      echo "$as_me: failed program was:" >&5
8474    cat conftest.$ac_ext >&5
8475    ac_cv_func_profil=no
8476    fi
8477    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8478    fi
8479    echo "$as_me:$LINENO: result: $ac_cv_func_profil" >&5
8480    echo "${ECHO_T}$ac_cv_func_profil" >&6
8481    if test $ac_cv_func_profil = yes; then
8482    :    :
8483  else  else
8484    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
8485  #define NO_PROFILE 1  #define NO_PROFILE 1
8486  EOF  _ACEOF
8487    
8488  fi  fi
8489    
8490    
8491  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for setenv" >&5
8492  echo "configure:4860: checking for setenv" >&5  echo $ECHO_N "checking for setenv... $ECHO_C" >&6
8493  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if test "${ac_cv_func_setenv+set}" = set; then
8494    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8495  else  else
8496    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8497  #line 4865 "configure"  #line $LINENO "configure"
8498  #include "confdefs.h"  #include "confdefs.h"
8499  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8500      which can conflict with char setenv(); below.  */      which can conflict with char setenv (); below.  */
8501  #include <assert.h>  #include <assert.h>
8502  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8503    #ifdef __cplusplus
8504    extern "C"
8505    #endif
8506  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
8507      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8508  char setenv();  char setenv ();
8509    char (*f) ();
8510  int main() {  
8511    #ifdef F77_DUMMY_MAIN
8512    #  ifdef __cplusplus
8513         extern "C"
8514    #  endif
8515       int F77_DUMMY_MAIN() { return 1; }
8516    #endif
8517    int
8518    main ()
8519    {
8520  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8521      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8522      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8523  #if defined (__stub_setenv) || defined (__stub___setenv)  #if defined (__stub_setenv) || defined (__stub___setenv)
8524  choke me  choke me
8525  #else  #else
8526  setenv();  f = setenv;
8527  #endif  #endif
8528    
8529  ; return 0; }    ;
8530  EOF    return 0;
8531  if { (eval echo configure:4888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8532    rm -rf conftest*  _ACEOF
8533    eval "ac_cv_func_setenv=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8534  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8535    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8536    cat conftest.$ac_ext >&5    ac_status=$?
8537    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538    eval "ac_cv_func_setenv=no"    (exit $ac_status); } &&
8539  fi           { ac_try='test -s conftest$ac_exeext'
8540  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541  fi    (eval $ac_try) 2>&5
8542      ac_status=$?
8543  if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8545    cat >> confdefs.h <<\EOF    ac_cv_func_setenv=yes
8546    else
8547      echo "$as_me: failed program was:" >&5
8548    cat conftest.$ac_ext >&5
8549    ac_cv_func_setenv=no
8550    fi
8551    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8552    fi
8553    echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
8554    echo "${ECHO_T}$ac_cv_func_setenv" >&6
8555    if test $ac_cv_func_setenv = yes; then
8556      cat >>confdefs.h <<\_ACEOF
8557  #define HAVE_SETENV 1  #define HAVE_SETENV 1
8558  EOF  _ACEOF
8559    
8560  else  else
8561    echo "$ac_t""no" 1>&6    no_setenv=1
 no_setenv=1  
8562  fi  fi
8563    
8564    
8565  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
8566  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for putenv" >&5
8567  echo "configure:4914: checking for putenv" >&5  echo $ECHO_N "checking for putenv... $ECHO_C" >&6
8568  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if test "${ac_cv_func_putenv+set}" = set; then
8569    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8570  else  else
8571    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8572  #line 4919 "configure"  #line $LINENO "configure"
8573  #include "confdefs.h"  #include "confdefs.h"
8574  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8575      which can conflict with char putenv(); below.  */      which can conflict with char putenv (); below.  */
8576  #include <assert.h>  #include <assert.h>
8577  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8578    #ifdef __cplusplus
8579    extern "C"
8580    #endif
8581  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
8582      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8583  char putenv();  char putenv ();
8584    char (*f) ();
8585  int main() {  
8586    #ifdef F77_DUMMY_MAIN
8587    #  ifdef __cplusplus
8588         extern "C"
8589    #  endif
8590       int F77_DUMMY_MAIN() { return 1; }
8591    #endif
8592    int
8593    main ()
8594    {
8595  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8596      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8597      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8598  #if defined (__stub_putenv) || defined (__stub___putenv)  #if defined (__stub_putenv) || defined (__stub___putenv)
8599  choke me  choke me
8600  #else  #else
8601  putenv();  f = putenv;
8602  #endif  #endif
8603    
8604  ; return 0; }    ;
8605  EOF    return 0;
8606  if { (eval echo configure:4942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8607    rm -rf conftest*  _ACEOF
8608    eval "ac_cv_func_putenv=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8609  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8610    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8611    cat conftest.$ac_ext >&5    ac_status=$?
8612    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613    eval "ac_cv_func_putenv=no"    (exit $ac_status); } &&
8614  fi           { ac_try='test -s conftest$ac_exeext'
8615  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616  fi    (eval $ac_try) 2>&5
8617      ac_status=$?
8618  if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8620    cat >> confdefs.h <<\EOF    ac_cv_func_putenv=yes
8621    else
8622      echo "$as_me: failed program was:" >&5
8623    cat conftest.$ac_ext >&5
8624    ac_cv_func_putenv=no
8625    fi
8626    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8627    fi
8628    echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
8629    echo "${ECHO_T}$ac_cv_func_putenv" >&6
8630    if test $ac_cv_func_putenv = yes; then
8631      cat >>confdefs.h <<\_ACEOF
8632  #define HAVE_PUTENV 1  #define HAVE_PUTENV 1
8633  EOF  _ACEOF
8634    
 else  
   echo "$ac_t""no" 1>&6  
8635  fi  fi
8636    
8637    
8638  fi  fi
8639    
8640  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for _cleanup" >&5
8641  echo "configure:4968: checking for _cleanup" >&5  echo $ECHO_N "checking for _cleanup... $ECHO_C" >&6
8642  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if test "${ac_cv_func__cleanup+set}" = set; then
8643    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8644  else  else
8645    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8646  #line 4973 "configure"  #line $LINENO "configure"
8647  #include "confdefs.h"  #include "confdefs.h"
8648  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8649      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup (); below.  */
8650  #include <assert.h>  #include <assert.h>
8651  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8652    #ifdef __cplusplus
8653    extern "C"
8654    #endif
8655  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
8656      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8657  char _cleanup();  char _cleanup ();
8658    char (*f) ();
8659  int main() {  
8660    #ifdef F77_DUMMY_MAIN
8661    #  ifdef __cplusplus
8662         extern "C"
8663    #  endif
8664       int F77_DUMMY_MAIN() { return 1; }
8665    #endif
8666    int
8667    main ()
8668    {
8669  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8670      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8671      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8672  #if defined (__stub__cleanup) || defined (__stub____cleanup)  #if defined (__stub__cleanup) || defined (__stub____cleanup)
8673  choke me  choke me
8674  #else  #else
8675  _cleanup();  f = _cleanup;
8676  #endif  #endif
8677    
8678  ; return 0; }    ;
8679  EOF    return 0;
8680  if { (eval echo configure:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8681    rm -rf conftest*  _ACEOF
8682    eval "ac_cv_func__cleanup=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8683  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8684    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8685    cat conftest.$ac_ext >&5    ac_status=$?
8686    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687    eval "ac_cv_func__cleanup=no"    (exit $ac_status); } &&
8688  fi           { ac_try='test -s conftest$ac_exeext'
8689  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690  fi    (eval $ac_try) 2>&5
8691      ac_status=$?
8692  if eval "test \"`echo '$ac_cv_func_'_cleanup`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8694    cat >> confdefs.h <<\EOF    ac_cv_func__cleanup=yes
8695    else
8696      echo "$as_me: failed program was:" >&5
8697    cat conftest.$ac_ext >&5
8698    ac_cv_func__cleanup=no
8699    fi
8700    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8701    fi
8702    echo "$as_me:$LINENO: result: $ac_cv_func__cleanup" >&5
8703    echo "${ECHO_T}$ac_cv_func__cleanup" >&6
8704    if test $ac_cv_func__cleanup = yes; then
8705      cat >>confdefs.h <<\_ACEOF
8706  #define USE_CLEANUP 1  #define USE_CLEANUP 1
8707  EOF  _ACEOF
8708    
 else  
   echo "$ac_t""no" 1>&6  
8709  fi  fi
8710    
8711    
8712  gcl_ok=no  gcl_ok=no
8713    
8714  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8715  #line 5022 "configure"  #line $LINENO "configure"
8716  #include "confdefs.h"  #include "confdefs.h"
8717  #include <ctype.h>  #include <ctype.h>
8718  EOF  
8719    _ACEOF
8720  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8721    egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then    egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then
   rm -rf conftest*  
8722    gcl_ok=yes    gcl_ok=yes
8723  else  else
   rm -rf conftest*  
8724    gcl_ok=noo    gcl_ok=noo
8725  fi  fi
8726  rm -f conftest*  rm -f conftest*
8727    
8728  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
8729  cat >> confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
8730  #define ENDIAN_ALREADY_DEFINED 1  #define ENDIAN_ALREADY_DEFINED 1
8731  EOF  _ACEOF
8732    
8733  fi  fi
8734    
# Line 5045  fi Line 8738  fi
8738    
8739    
8740  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
8741  echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
8742  echo "configure:5050: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5  echo $ECHO_N "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... $ECHO_C" >&6
8743    
8744  case $system in  case $system in
8745         OSF*)         OSF*)
8746          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8747  #define USE_FIONBIO 1  #define USE_FIONBIO 1
8748  EOF  _ACEOF
8749    
8750          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
8751    echo "${ECHO_T}FIONBIO" >&6
8752          ;;          ;;
8753      SunOS-4*)      SunOS-4*)
8754          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8755  #define USE_FIONBIO 1  #define USE_FIONBIO 1
8756  EOF  _ACEOF
8757    
8758          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
8759    echo "${ECHO_T}FIONBIO" >&6
8760          ;;          ;;
8761      ULTRIX-4.*)      ULTRIX-4.*)
8762          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8763  #define USE_FIONBIO 1  #define USE_FIONBIO 1
8764  EOF  _ACEOF
8765    
8766          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
8767    echo "${ECHO_T}FIONBIO" >&6
8768          ;;          ;;
8769      *)      *)
8770          echo "$ac_t""O_NONBLOCK" 1>&6          echo "$as_me:$LINENO: result: O_NONBLOCK" >&5
8771    echo "${ECHO_T}O_NONBLOCK" >&6
8772          ;;          ;;
8773  esac  esac
8774    
8775    
8776  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SV_ONSTACK" >&5
8777  echo "configure:5081: checking check for SV_ONSTACK" >&5  echo $ECHO_N "checking check for SV_ONSTACK... $ECHO_C" >&6
8778  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8779  #line 5083 "configure"  #line $LINENO "configure"
8780  #include "confdefs.h"  #include "confdefs.h"
8781  #include <signal.h>  #include <signal.h>
8782  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
8783    
8784  int main() {  #ifdef F77_DUMMY_MAIN
8785    #  ifdef __cplusplus
8786         extern "C"
8787    #  endif
8788       int F77_DUMMY_MAIN() { return 1; }
8789    #endif
8790    int
8791    main ()
8792    {
8793    
8794  ; return 0; }    ;
8795  EOF    return 0;
8796  if { (eval echo configure:5092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8797    rm -rf conftest*  _ACEOF
8798    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
8799    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8800      (eval $ac_compile) 2>&5
8801      ac_status=$?
8802      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803      (exit $ac_status); } &&
8804             { ac_try='test -s conftest.$ac_objext'
8805      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806      (eval $ac_try) 2>&5
8807      ac_status=$?
8808      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809      (exit $ac_status); }; }; then
8810      cat >>confdefs.h <<\_ACEOF
8811  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
8812  EOF  _ACEOF
8813    
8814    
8815     echo "$as_me:$LINENO: result: yes" >&5
8816   echo "$ac_t""yes" 1>&6  echo "${ECHO_T}yes" >&6
8817  else  else
8818    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8819    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8820    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8821    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8822  fi  fi
8823  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8824    
8825  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGSYS" >&5
8826  echo "configure:5109: checking check for SIGSYS" >&5  echo $ECHO_N "checking check for SIGSYS... $ECHO_C" >&6
8827  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8828  #line 5111 "configure"  #line $LINENO "configure"
8829  #include "confdefs.h"  #include "confdefs.h"
8830  #include <signal.h>  #include <signal.h>
8831  int joe=SIGSYS;  int joe=SIGSYS;
8832    
8833  int main() {  #ifdef F77_DUMMY_MAIN
8834    #  ifdef __cplusplus
8835         extern "C"
8836    #  endif
8837       int F77_DUMMY_MAIN() { return 1; }
8838    #endif
8839    int
8840    main ()
8841    {
8842    
8843  ; return 0; }    ;
8844  EOF    return 0;
8845  if { (eval echo configure:5120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8846    rm -rf conftest*  _ACEOF
8847    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
8848    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8849      (eval $ac_compile) 2>&5
8850      ac_status=$?
8851      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852      (exit $ac_status); } &&
8853             { ac_try='test -s conftest.$ac_objext'
8854      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855      (eval $ac_try) 2>&5
8856      ac_status=$?
8857      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858      (exit $ac_status); }; }; then
8859      cat >>confdefs.h <<\_ACEOF
8860  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
8861  EOF  _ACEOF
8862    
8863    
8864     echo "$as_me:$LINENO: result: yes" >&5
8865   echo "$ac_t""yes" 1>&6  echo "${ECHO_T}yes" >&6
8866  else  else
8867    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8868    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8869    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8870    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8871  fi  fi
8872  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8873    
8874    
8875  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGEMT" >&5
8876  echo "configure:5138: checking check for SIGEMT" >&5  echo $ECHO_N "checking check for SIGEMT... $ECHO_C" >&6
8877  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8878  #line 5140 "configure"  #line $LINENO "configure"
8879  #include "confdefs.h"  #include "confdefs.h"
8880  #include <signal.h>  #include <signal.h>
8881  int joe=SIGEMT;  int joe=SIGEMT;
8882    
8883  int main() {  #ifdef F77_DUMMY_MAIN
8884    #  ifdef __cplusplus
8885         extern "C"
8886    #  endif
8887       int F77_DUMMY_MAIN() { return 1; }
8888    #endif
8889    int
8890    main ()
8891    {
8892    
8893  ; return 0; }    ;
8894  EOF    return 0;
8895  if { (eval echo configure:5149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8896    rm -rf conftest*  _ACEOF
8897    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
8898    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8899      (eval $ac_compile) 2>&5
8900      ac_status=$?
8901      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902      (exit $ac_status); } &&
8903             { ac_try='test -s conftest.$ac_objext'
8904      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905      (eval $ac_try) 2>&5
8906      ac_status=$?
8907      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908      (exit $ac_status); }; }; then
8909      cat >>confdefs.h <<\_ACEOF
8910  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
8911  EOF  _ACEOF
8912    
8913    
8914     echo "$as_me:$LINENO: result: yes" >&5
8915   echo "$ac_t""yes" 1>&6  echo "${ECHO_T}yes" >&6
8916  else  else
8917    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8918    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8919    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8920    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8921  fi  fi
8922  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8923    
8924    
8925    
8926    
8927  #if test $use = "386-linux" ; then  #if test $use = "386-linux" ; then
8928          for ac_hdr in asm/sigcontext.h  
8929    for ac_header in asm/sigcontext.h
8930  do  do
8931  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8932  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8933  echo "configure:5173: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8934  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8935    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8936      echo $ECHO_N "(cached) $ECHO_C" >&6
8937    fi
8938    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8939    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8940    else
8941      # Is the header compilable?
8942    echo "$as_me:$LINENO: checking $ac_header usability" >&5
8943    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8944    cat >conftest.$ac_ext <<_ACEOF
8945    #line $LINENO "configure"
8946    #include "confdefs.h"
8947    $ac_includes_default
8948    #include <$ac_header>
8949    _ACEOF
8950    rm -f conftest.$ac_objext
8951    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8952      (eval $ac_compile) 2>&5
8953      ac_status=$?
8954      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955      (exit $ac_status); } &&
8956             { ac_try='test -s conftest.$ac_objext'
8957      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958      (eval $ac_try) 2>&5
8959      ac_status=$?
8960      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961      (exit $ac_status); }; }; then
8962      ac_header_compiler=yes
8963    else
8964      echo "$as_me: failed program was:" >&5
8965    cat conftest.$ac_ext >&5
8966    ac_header_compiler=no
8967    fi
8968    rm -f conftest.$ac_objext conftest.$ac_ext
8969    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8970    echo "${ECHO_T}$ac_header_compiler" >&6
8971    
8972    # Is the header present?
8973    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8974    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8975    cat >conftest.$ac_ext <<_ACEOF
8976    #line $LINENO "configure"
8977    #include "confdefs.h"
8978    #include <$ac_header>
8979    _ACEOF
8980    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8981      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8982      ac_status=$?
8983      egrep -v '^ *\+' conftest.er1 >conftest.err
8984      rm -f conftest.er1
8985      cat conftest.err >&5
8986      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987      (exit $ac_status); } >/dev/null; then
8988      if test -s conftest.err; then
8989        ac_cpp_err=$ac_c_preproc_warn_flag
8990      else
8991        ac_cpp_err=
8992      fi
8993  else  else
8994    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
8995  #line 5178 "configure"  fi
8996  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
8997  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:5183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
8998  else  else
8999    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
9000    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
9001    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
9002  fi  fi
9003  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
9004    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9005      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
9006    cat >> confdefs.h <<EOF  
9007  #define $ac_tr_hdr 1  # So?  What about this header?
9008  EOF  case $ac_header_compiler:$ac_header_preproc in
9009      yes:no )
9010        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9011    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9012        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9013    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9014      no:yes )
9015        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9016    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9017        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9018    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9019        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9020    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9021    esac
9022    echo "$as_me:$LINENO: checking for $ac_header" >&5
9023    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9024    if eval "test \"\${$as_ac_Header+set}\" = set"; then
9025      echo $ECHO_N "(cached) $ECHO_C" >&6
9026  else  else
9027    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
9028    fi
9029    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9030    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9031    
9032  fi  fi
9033    if test `eval echo '${'$as_ac_Header'}'` = yes; then
9034      cat >>confdefs.h <<_ACEOF
9035    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9036    _ACEOF
9037    
9038    fi
9039    
9040  done  done
9041    
9042          for ac_hdr in asm/signal.h  
9043    for ac_header in asm/signal.h
9044  do  do
9045  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9046  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9047  echo "configure:5213: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
9048  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9049    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9050      echo $ECHO_N "(cached) $ECHO_C" >&6
9051    fi
9052    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9053    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9054    else
9055      # Is the header compilable?
9056    echo "$as_me:$LINENO: checking $ac_header usability" >&5
9057    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9058    cat >conftest.$ac_ext <<_ACEOF
9059    #line $LINENO "configure"
9060    #include "confdefs.h"
9061    $ac_includes_default
9062    #include <$ac_header>
9063    _ACEOF
9064    rm -f conftest.$ac_objext
9065    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066      (eval $ac_compile) 2>&5
9067      ac_status=$?
9068      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069      (exit $ac_status); } &&
9070             { ac_try='test -s conftest.$ac_objext'
9071      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072      (eval $ac_try) 2>&5
9073      ac_status=$?
9074      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075      (exit $ac_status); }; }; then
9076      ac_header_compiler=yes
9077    else
9078      echo "$as_me: failed program was:" >&5
9079    cat conftest.$ac_ext >&5
9080    ac_header_compiler=no
9081    fi
9082    rm -f conftest.$ac_objext conftest.$ac_ext
9083    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9084    echo "${ECHO_T}$ac_header_compiler" >&6
9085    
9086    # Is the header present?
9087    echo "$as_me:$LINENO: checking $ac_header presence" >&5
9088    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9089    cat >conftest.$ac_ext <<_ACEOF
9090    #line $LINENO "configure"
9091    #include "confdefs.h"
9092    #include <$ac_header>
9093    _ACEOF
9094    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9095      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9096      ac_status=$?
9097      egrep -v '^ *\+' conftest.er1 >conftest.err
9098      rm -f conftest.er1
9099      cat conftest.err >&5
9100      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101      (exit $ac_status); } >/dev/null; then
9102      if test -s conftest.err; then
9103        ac_cpp_err=$ac_c_preproc_warn_flag
9104      else
9105        ac_cpp_err=
9106      fi
9107  else  else
9108    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
9109  #line 5218 "configure"  fi
9110  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
9111  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:5223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
9112  else  else
9113    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
9114    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
9115    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
9116  fi  fi
9117  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
9118    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9119      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
9120    cat >> confdefs.h <<EOF  
9121  #define $ac_tr_hdr 1  # So?  What about this header?
9122  EOF  case $ac_header_compiler:$ac_header_preproc in
9123      yes:no )
9124        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9125    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9126        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9127    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9128      no:yes )
9129        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9130    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9131        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9132    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9133        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9134    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9135    esac
9136    echo "$as_me:$LINENO: checking for $ac_header" >&5
9137    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9138    if eval "test \"\${$as_ac_Header+set}\" = set"; then
9139      echo $ECHO_N "(cached) $ECHO_C" >&6
9140  else  else
9141    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
9142    fi
9143    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9144    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9145    
9146  fi  fi
9147    if test `eval echo '${'$as_ac_Header'}'` = yes; then
9148      cat >>confdefs.h <<_ACEOF
9149    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9150    _ACEOF
9151    
9152    fi
9153    
9154  done  done
9155    
9156          cat > conftest.$ac_ext <<EOF          cat >conftest.$ac_ext <<_ACEOF
9157  #line 5250 "configure"  #line $LINENO "configure"
9158  #include "confdefs.h"  #include "confdefs.h"
9159  #include <signal.h>  #include <signal.h>
9160                          long code;                            long code;
9161          
9162  int main() {  #ifdef F77_DUMMY_MAIN
9163    #  ifdef __cplusplus
9164         extern "C"
9165    #  endif
9166       int F77_DUMMY_MAIN() { return 1; }
9167    #endif
9168    int
9169    main ()
9170    {
9171    
9172          void *p = ((void *)(((struct sigcontext_struct *)(&code))));          void *p = ((void *)(((struct sigcontext_struct *)(&code))));
9173          
9174  ; return 0; }    ;
9175  EOF    return 0;
9176  if { (eval echo configure:5261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
9177    rm -rf conftest*  _ACEOF
9178      rm -f conftest.$ac_objext
9179    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9180      (eval $ac_compile) 2>&5
9181      ac_status=$?
9182      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183      (exit $ac_status); } &&
9184             { ac_try='test -s conftest.$ac_objext'
9185      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186      (eval $ac_try) 2>&5
9187      ac_status=$?
9188      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189      (exit $ac_status); }; }; then
9190    
9191          sigcontext_struct_works=1;          sigcontext_struct_works=1;
9192          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
9193  #define SIGNAL_H_HAS_SIGCONTEXT 1  #define SIGNAL_H_HAS_SIGCONTEXT 1
9194  EOF  _ACEOF
9195    
9196            echo "$as_me:$LINENO: result: \"sigcontext in signal.h\"" >&5
9197    echo "${ECHO_T}\"sigcontext in signal.h\"" >&6
9198    
         echo "$ac_t"""sigcontext in signal.h"" 1>&6  
         
9199  else  else
9200    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
9201    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
9202    rm -rf conftest*  sigcontext_struct_works=0;
9203    sigcontext_struct_works=0;           echo "$as_me:$LINENO: result: \"sigcontext NOT in signal.h\"" >&5
9204           echo "$ac_t"""sigcontext NOT in signal.h"" 1>&6  echo "${ECHO_T}\"sigcontext NOT in signal.h\"" >&6
9205          
9206  fi  fi
9207  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
9208         if test "$sigcontext_struct_works" = 0 ; then         if test "$sigcontext_struct_works" = 0 ; then
9209         cat > conftest.$ac_ext <<EOF         cat >conftest.$ac_ext <<_ACEOF
9210  #line 5282 "configure"  #line $LINENO "configure"
9211  #include "confdefs.h"  #include "confdefs.h"
9212  #include <signal.h>  #include <signal.h>
9213               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H
9214               #include <asm/sigcontext.h>               #include <asm/sigcontext.h>
9215               #endif               #endif
9216               #ifdef HAVE_ASM_SIGNAL_H                         #ifdef HAVE_ASM_SIGNAL_H
9217               #include <asm/signal.h>               #include <asm/signal.h>
9218               #endif               #endif
9219               long code;               long code;
9220              
9221  int main() {  #ifdef F77_DUMMY_MAIN
9222    #  ifdef __cplusplus
9223         extern "C"
9224    #  endif
9225       int F77_DUMMY_MAIN() { return 1; }
9226    #endif
9227    int
9228    main ()
9229    {
9230    
9231          void *p = ((void *)(((struct sigcontext *)(&code))));          void *p = ((void *)(((struct sigcontext *)(&code))));
9232            
9233  ; return 0; }    ;
9234  EOF    return 0;
9235  if { (eval echo configure:5299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
9236    rm -rf conftest*  _ACEOF
9237      rm -f conftest.$ac_objext
9238    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9239      (eval $ac_compile) 2>&5
9240      ac_status=$?
9241      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242      (exit $ac_status); } &&
9243             { ac_try='test -s conftest.$ac_objext'
9244      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245      (eval $ac_try) 2>&5
9246      ac_status=$?
9247      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248      (exit $ac_status); }; }; then
9249    
9250          sigcontext_works=1 ;          sigcontext_works=1 ;
9251          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
9252  #define HAVE_SIGCONTEXT 1  #define HAVE_SIGCONTEXT 1
9253  EOF  _ACEOF
9254    
9255            echo "$as_me:$LINENO: result: \"use struct sigcontext\"" >&5
9256    echo "${ECHO_T}\"use struct sigcontext\"" >&6
9257    
         echo "$ac_t"""use struct sigcontext"" 1>&6  
           
9258  else  else
9259    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
9260    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
9261    rm -rf conftest*  
9262              sigcontext_works=0 ;
9263          sigcontext_works=0 ;  
       
9264  fi  fi
9265  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
9266    
9267    
9268         fi         fi
9269  #       echo 'foo() {}' > conftest1.c  #       echo 'foo() {}' > conftest1.c
9270  #       $CC -S conftest1.c  #       $CC -S conftest1.c
9271  #       use_underscore=0          #       use_underscore=0
9272  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi
9273  #       if test $use_underscore = 0 ; then  #       if test $use_underscore = 0 ; then
9274  #            MPI_FILE=mpi-386_no_under.o  #            MPI_FILE=mpi-386_no_under.o
# Line 5337  rm -f conftest* Line 9286  rm -f conftest*
9286    
9287  # Extract the first word of "emacs", so it can be a program name with args.  # Extract the first word of "emacs", so it can be a program name with args.
9288  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
9289  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
9290  echo "configure:5342: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9291  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if test "${ac_cv_path_EMACS+set}" = set; then
9292    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9293  else  else
9294    case "$EMACS" in    case $EMACS in
9295    /*)    [\\/]* | ?:[\\/]*)
9296    ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.    ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
9297    ;;    ;;
   ?:/*)                    
   ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.  
   ;;  
9298    *)    *)
9299    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300    ac_dummy="$PATH"  for as_dir in $PATH
9301    for ac_dir in $ac_dummy; do  do
9302      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
9303      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
9304        ac_cv_path_EMACS="$ac_dir/$ac_word"    for ac_exec_ext in '' $ac_executable_extensions; do
9305        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9306      fi      ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext"
9307    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9308    IFS="$ac_save_ifs"      break 2
9309      fi
9310    done
9311    done
9312    
9313    ;;    ;;
9314  esac  esac
9315  fi  fi
9316  EMACS="$ac_cv_path_EMACS"  EMACS=$ac_cv_path_EMACS
9317    
9318  if test -n "$EMACS"; then  if test -n "$EMACS"; then
9319    echo "$ac_t""$EMACS" 1>&6    echo "$as_me:$LINENO: result: $EMACS" >&5
9320    echo "${ECHO_T}$EMACS" >&6
9321  else  else
9322    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
9323    echo "${ECHO_T}no" >&6
9324  fi  fi
9325    
9326    
# Line 5385  cat >> conftest.el <<EOF Line 9338  cat >> conftest.el <<EOF
9338    (message ans))    (message ans))
9339  EOF  EOF
9340    
9341  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs site lisp directory" >&5
9342  echo "configure:5390: checking emacs site lisp directory" >&5  echo $ECHO_N "checking emacs site lisp directory... $ECHO_C" >&6
9343  if [ "$EMACS" != "" ]  && [ "$EMACS_SITE_LISP" = "unknown" ] ; then  if [ "$EMACS" != "" ]  && [ "$EMACS_SITE_LISP" = "unknown" ] ; then
9344          EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `          EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
9345  else  else
9346          EMACS_SITE_LISP=""          EMACS_SITE_LISP=""
9347  fi  fi
9348  echo "$ac_t""$EMACS_SITE_LISP" 1>&6  echo "$as_me:$LINENO: result: $EMACS_SITE_LISP" >&5
9349    echo "${ECHO_T}$EMACS_SITE_LISP" >&6
9350    
9351    
9352  # check for where the emacs site lisp default.el is  # check for where the emacs site lisp default.el is
# Line 5407  cat >> conftest.el <<EOF Line 9361  cat >> conftest.el <<EOF
9361    (message ans))    (message ans))
9362  EOF  EOF
9363    
9364  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs default.el" >&5
9365  echo "configure:5412: checking emacs default.el" >&5  echo $ECHO_N "checking emacs default.el... $ECHO_C" >&6
9366  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
9367          EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `          EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
9368  else  else
# Line 5419  if  test -f "${EMACS_DEFAULT_EL}"  ; the Line 9373  if  test -f "${EMACS_DEFAULT_EL}"  ; the
9373       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el
9374    fi    fi
9375  fi  fi
9376  echo "$ac_t""$EMACS_DEFAULT_EL" 1>&6  echo "$as_me:$LINENO: result: $EMACS_DEFAULT_EL" >&5
9377    echo "${ECHO_T}$EMACS_DEFAULT_EL" >&6
9378    
9379    
9380    
# Line 5430  cat >> conftest.el <<EOF Line 9385  cat >> conftest.el <<EOF
9385  (let ((ans "") file (tem Info-default-directory-list))  (let ((ans "") file (tem Info-default-directory-list))
9386   (while tem   (while tem
9387     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))
9388            (setq ans (file-name-as-directory (car tem)))                    (setq ans (file-name-as-directory (car tem)))
9389            (setq tem nil) ))            (setq tem nil) ))
9390     (setq tem (cdr tem)))     (setq tem (cdr tem)))
9391    (message ans))    (message ans))
9392  EOF  EOF
9393    
9394  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs info/dir" >&5
9395  echo "configure:5441: checking emacs info/dir" >&5  echo $ECHO_N "checking emacs info/dir... $ECHO_C" >&6
9396  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
9397      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
9398  else  else
# Line 5451  if test -f /usr/info/dir ; then Line 9406  if test -f /usr/info/dir ; then
9406  else true;  else true;
9407  fi  fi
9408  fi  fi
9409  echo "$ac_t""$INFO_DIR" 1>&6  echo "$as_me:$LINENO: result: $INFO_DIR" >&5
9410    echo "${ECHO_T}$INFO_DIR" >&6
9411    
9412    
9413  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for tcl/tk" >&5
9414  echo "configure:5459: checking for tcl/tk" >&5  echo $ECHO_N "checking for tcl/tk... $ECHO_C" >&6
9415    
9416    
9417  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 5465  cat >> conftest.tcl <<EOF Line 9421  cat >> conftest.tcl <<EOF
9421  set dir [set tcl_library]  set dir [set tcl_library]
9422  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
9423        puts  [set dir]        puts  [set dir]
9424        exit              exit
9425    }    }
9426  set dir [file dirname [set tcl_library]]  set dir [file dirname [set tcl_library]]
9427  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
# Line 5477  EOF Line 9433  EOF
9433    
9434  # Extract the first word of "tclsh", so it can be a program name with args.  # Extract the first word of "tclsh", so it can be a program name with args.
9435  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
9436  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
9437  echo "configure:5482: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9438  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if test "${ac_cv_prog_TCLSH+set}" = set; then
9439    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9440  else  else
9441    if test -n "$TCLSH"; then    if test -n "$TCLSH"; then
9442    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
9443  else  else
9444    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9445    ac_dummy="$PATH"  for as_dir in $PATH
9446    for ac_dir in $ac_dummy; do  do
9447      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
9448      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
9449        ac_cv_prog_TCLSH="tclsh"    for ac_exec_ext in '' $ac_executable_extensions; do
9450        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9451      fi      ac_cv_prog_TCLSH="tclsh"
9452    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9453    IFS="$ac_save_ifs"      break 2
9454      fi
9455    done
9456    done
9457    
9458    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"
9459  fi  fi
9460  fi  fi
9461  TCLSH="$ac_cv_prog_TCLSH"  TCLSH=$ac_cv_prog_TCLSH
9462  if test -n "$TCLSH"; then  if test -n "$TCLSH"; then
9463    echo "$ac_t""$TCLSH" 1>&6    echo "$as_me:$LINENO: result: $TCLSH" >&5
9464    echo "${ECHO_T}$TCLSH" >&6
9465  else  else
9466    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
9467    echo "${ECHO_T}no" >&6
9468  fi  fi
9469    
9470  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})
# Line 5568  if test -f ${TK_CONFIG_PREFIX}/../includ Line 9530  if test -f ${TK_CONFIG_PREFIX}/../includ
9530    else    else
9531    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then
9532      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
9533    fi        fi
9534  fi  fi
9535  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then
9536    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include
# Line 5577  if test -f ${TCL_CONFIG_PREFIX}/../inclu Line 9539  if test -f ${TCL_CONFIG_PREFIX}/../inclu
9539      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
9540    fi    fi
9541  fi  fi
9542  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -llieee" >&5
9543  echo "configure:5582: checking for main in -llieee" >&5  echo $ECHO_N "checking for main in -llieee... $ECHO_C" >&6
9544  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_lieee_main+set}" = set; then
9545  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
9546  else  else
9547    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
9548  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
9549  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
9550  #line 5590 "configure"  #line $LINENO "configure"
9551  #include "confdefs.h"  #include "confdefs.h"
9552    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:5597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
9553    
9554  fi  #ifdef F77_DUMMY_MAIN
9555  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
9556    echo "$ac_t""yes" 1>&6       extern "C"
9557    #  endif
9558       int F77_DUMMY_MAIN() { return 1; }
9559    #endif
9560    int
9561    main ()
9562    {
9563    main ();
9564      ;
9565      return 0;
9566    }
9567    _ACEOF
9568    rm -f conftest.$ac_objext conftest$ac_exeext
9569    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9570      (eval $ac_link) 2>&5
9571      ac_status=$?
9572      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573      (exit $ac_status); } &&
9574             { ac_try='test -s conftest$ac_exeext'
9575      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576      (eval $ac_try) 2>&5
9577      ac_status=$?
9578      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579      (exit $ac_status); }; }; then
9580      ac_cv_lib_lieee_main=yes
9581    else
9582      echo "$as_me: failed program was:" >&5
9583    cat conftest.$ac_ext >&5
9584    ac_cv_lib_lieee_main=no
9585    fi
9586    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9587    LIBS=$ac_check_lib_save_LIBS
9588    fi
9589    echo "$as_me:$LINENO: result: $ac_cv_lib_lieee_main" >&5
9590    echo "${ECHO_T}$ac_cv_lib_lieee_main" >&6
9591    if test $ac_cv_lib_lieee_main = yes; then
9592    have_ieee=1    have_ieee=1
9593  else  else
9594    echo "$ac_t""no" 1>&6    have_ieee=0
 have_ieee=0  
9595  fi  fi
9596    
9597  if test "$have_ieee" = "0" ; then  if test "$have_ieee" = "0" ; then
# Line 5642  fi Line 9622  fi
9622    
9623    
9624  if test -d "${TK_CONFIG_PREFIX}" ; then  if test -d "${TK_CONFIG_PREFIX}" ; then
9625  echo "$ac_t""using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" 1>&6  echo "$as_me:$LINENO: result: using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" >&5
9626    echo "${ECHO_T}using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" >&6
9627  else  else
9628  echo "$ac_t""not found" 1>&6  echo "$as_me:$LINENO: result: not found" >&5
9629    echo "${ECHO_T}not found" >&6
9630  fi  fi
9631    
9632  NOTIFY=$enable_notify  NOTIFY=$enable_notify
9633    
9634    
9635          
9636    
9637    
9638  # for sgbc the mprotect capabilities.  # for sgbc the mprotect capabilities.
9639    
9640  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
9641    
9642  echo $ac_n "checking alloca""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking alloca" >&5
9643  echo "configure:5662: checking alloca" >&5  echo $ECHO_N "checking alloca... $ECHO_C" >&6
9644  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9645    gcl_ok=no    gcl_ok=no
9646  else  else
9647    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9648  #line 5667 "configure"  #line $LINENO "configure"
9649  #include "confdefs.h"  #include "confdefs.h"
9650  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
9651  EOF  _ACEOF
9652  if { (eval echo configure:5671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9653  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654      (eval $ac_link) 2>&5
9655      ac_status=$?
9656      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9658      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659      (eval $ac_try) 2>&5
9660      ac_status=$?
9661      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662      (exit $ac_status); }; }; then
9663    :    :
9664  else  else
9665    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9666    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9667    rm -fr conftest*  cat conftest.$ac_ext >&5
9668    gcl_ok=yes  ( exit $ac_status )
9669    gcl_ok=yes
9670  fi  fi
9671  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9672  fi  fi
   
9673  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
9674      echo "$ac_t""yes" 1>&6      echo "$as_me:$LINENO: result: yes" >&5
9675      cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
9676        cat >>confdefs.h <<\_ACEOF
9677  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
9678  EOF  _ACEOF
9679    
9680  else  else
9681    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
9682    gcl_ok=no    gcl_ok=no
9683  else  else
9684    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9685  #line 5694 "configure"  #line $LINENO "configure"
9686  #include "confdefs.h"  #include "confdefs.h"
9687  #include <alloca.h>  #include <alloca.h>
9688    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
9689  EOF  _ACEOF
9690  if { (eval echo configure:5699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9691  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9692      (eval $ac_link) 2>&5
9693      ac_status=$?
9694      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9696      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697      (eval $ac_try) 2>&5
9698      ac_status=$?
9699      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700      (exit $ac_status); }; }; then
9701    :    :
9702  else  else
9703    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9704    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9705    rm -fr conftest*  cat conftest.$ac_ext >&5
9706    gcl_ok=yes  ( exit $ac_status )
9707    gcl_ok=yes
9708  fi  fi
9709  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9710  fi  fi
   
9711   if test $gcl_ok = yes ; then   if test $gcl_ok = yes ; then
9712      echo "$ac_t""yes" 1>&6      echo "$as_me:$LINENO: result: yes" >&5
9713      cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
9714        cat >>confdefs.h <<\_ACEOF
9715  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
9716  EOF  _ACEOF
9717    
9718      cat >> confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
9719  #define NEED_ALLOCA_H 1  #define NEED_ALLOCA_H 1
9720  EOF  _ACEOF
9721    
9722   fi   fi
9723  fi  fi
9724  if test $gcl_ok = no ; then     echo "$ac_t""no" 1>&6 ; fi  if test $gcl_ok = no ; then     echo "$as_me:$LINENO: result: no" >&5
9725    echo "${ECHO_T}no" >&6 ; fi
9726    
9727    
9728    
# Line 5735  if test $gcl_ok = no ; then     echo "$a Line 9738  if test $gcl_ok = no ; then     echo "$a
9738  # dlopen etc  # dlopen etc
9739  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)
9740  # then dlload("foo.o") a lisp file can refer to things in libX.so  # then dlload("foo.o") a lisp file can refer to things in libX.so
9741  #  #
9742    
9743  # what machine this is, and include then a machine specific hdr.  # what machine this is, and include then a machine specific hdr.
9744  # and machine specific defs.  # and machine specific defs.
# Line 5755  if test $gcl_ok = no ; then     echo "$a Line 9758  if test $gcl_ok = no ; then     echo "$a
9758    
9759  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
9760  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
9761  echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking Checking for buggy gcc version from redhat" >&5
9762  echo "configure:5760: checking Checking for buggy gcc version from redhat" >&5  echo $ECHO_N "checking Checking for buggy gcc version from redhat... $ECHO_C" >&6
9763  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
9764     then     then
9765          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1
9766          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
9767  #define BROKEN_O4_OPT 1  #define BROKEN_O4_OPT 1
9768  EOF  _ACEOF
9769    
9770    
           
9771          echo ODIR_DEBUG=-O >> makedefsafter          echo ODIR_DEBUG=-O >> makedefsafter
9772          echo >> makedefsafter          echo >> makedefsafter
9773          echo "$ac_t""yes .. turning off -O4" 1>&6          echo "$as_me:$LINENO: result: yes .. turning off -O4" >&5
9774    echo "${ECHO_T}yes .. turning off -O4" >&6
9775     else     else
9776          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
9777  fi  echo "${ECHO_T}no" >&6
9778    fi
9779    
9780  LIBS="$LIBS $TLIBS"  LIBS="$LIBS $TLIBS"
9781    
# Line 5789  O2FLAGS=$TO2FLAGS Line 9794  O2FLAGS=$TO2FLAGS
9794    
9795  if test -f h/$use.defs  ; then  if test -f h/$use.defs  ; then
9796    
9797      
9798    trap '' 1 2 15    ac_config_files="$ac_config_files makedefc windows/gcl.iss windows/gcl.ansi.iss windows/install.ansi.lsp windows/install.lsp"
9799  cat > confcache <<\EOF  cat >confcache <<\_ACEOF
9800  # This file is a shell script that caches the results of configure  # This file is a shell script that caches the results of configure
9801  # tests run on this system so they can be shared between configure  # tests run on this system so they can be shared between configure
9802  # scripts and configure runs.  It is not useful on other systems.  # scripts and configure runs, see configure's option --config-cache.
9803  # If it contains results you don't want to keep, you may remove or edit it.  # It is not useful on other systems.  If it contains results you don't
9804    # want to keep, you may remove or edit it.
9805  #  #
9806  # By default, configure uses ./config.cache as the cache file,  # config.status only pays attention to the cache file if you give it
9807  # creating it if it does not exist already.  You can give configure  # the --recheck option to rerun configure.
 # the --cache-file=FILE option to use a different cache file; that is  
 # what configure does when it calls configure scripts in  
 # subdirectories, so they share the cache.  
 # Giving --cache-file=/dev/null disables caching, for debugging configure.  
 # config.status only pays attention to the cache file if you give it the  
 # --recheck option to rerun configure.  
9808  #  #
9809  EOF  # `ac_cv_env_foo' variables (set or unset) will be overriden when
9810    # loading this file, other *unset* `ac_cv_foo' will be assigned the
9811    # following values.
9812    
9813    _ACEOF
9814    
9815  # The following way of writing the cache mishandles newlines in values,  # The following way of writing the cache mishandles newlines in values,
9816  # but we know of no workaround that is simple, portable, and efficient.  # but we know of no workaround that is simple, portable, and efficient.
9817  # So, don't put newlines in cache variables' values.  # So, don't put newlines in cache variables' values.
9818  # Ultrix sh set writes to stderr and can't be redirected directly,  # Ultrix sh set writes to stderr and can't be redirected directly,
9819  # and sets the high bit in the cache file unless we assign to the vars.  # and sets the high bit in the cache file unless we assign to the vars.
9820  (set) 2>&1 |  {
9821    case `(ac_space=' '; set | grep ac_space) 2>&1` in    (set) 2>&1 |
9822    *ac_space=\ *)      case `(ac_space=' '; set | grep ac_space) 2>&1` in
9823      # `set' does not quote correctly, so add quotes (double-quote substitution      *ac_space=\ *)
9824      # turns \\\\ into \\, and sed turns \\ into \).        # `set' does not quote correctly, so add quotes (double-quote
9825      sed -n \        # substitution turns \\\\ into \\, and sed turns \\ into \).
9826        -e "s/'/'\\\\''/g" \        sed -n \
9827        -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"          "s/'/'\\\\''/g;
9828      ;;            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9829    *)        ;;
9830      # `set' quotes correctly as required by POSIX, so do not add quotes.      *)
9831      sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'        # `set' quotes correctly as required by POSIX, so do not add quotes.
9832      ;;        sed -n \
9833    esac >> confcache          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9834  if cmp -s $cache_file confcache; then        ;;
9835    :      esac;
9836  else  } |
9837      sed '
9838         t clear
9839         : clear
9840         s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9841         t end
9842         /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9843         : end' >>confcache
9844    if cmp -s $cache_file confcache; then :; else
9845    if test -w $cache_file; then    if test -w $cache_file; then
9846      echo "updating cache $cache_file"      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9847      cat confcache > $cache_file      cat confcache >$cache_file
9848    else    else
9849      echo "not updating unwritable cache $cache_file"      echo "not updating unwritable cache $cache_file"
9850    fi    fi
9851  fi  fi
9852  rm -f confcache  rm -f confcache
9853    
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
9854  test "x$prefix" = xNONE && prefix=$ac_default_prefix  test "x$prefix" = xNONE && prefix=$ac_default_prefix
9855  # Let make expand exec_prefix.  # Let make expand exec_prefix.
9856  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9857    
9858  # Any assignment to VPATH causes Sun make to only execute  # VPATH may cause trouble with some makes, so we remove $(srcdir),
9859  # the first set of double-colon rules, so remove it if not needed.  # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9860  # If there is a colon in the path, we need to keep it.  # trailing colons and then remove the whole line if VPATH becomes empty
9861    # (actually we leave an empty line to preserve line numbers).
9862  if test "x$srcdir" = x.; then  if test "x$srcdir" = x.; then
9863    ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'    ac_vpsub='/^[         ]*VPATH[        ]*=/{
9864    s/:*\$(srcdir):*/:/;
9865    s/:*\${srcdir}:*/:/;
9866    s/:*@srcdir@:*/:/;
9867    s/^\([^=]*=[    ]*\):*/\1/;
9868    s/:*$//;
9869    s/^[^=]*=[      ]*$//;
9870    }'
9871  fi  fi
9872    
 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15  
   
9873  DEFS=-DHAVE_CONFIG_H  DEFS=-DHAVE_CONFIG_H
9874    
 # Without the "./", some shells look in PATH for config.status.  
 : ${CONFIG_STATUS=./config.status}  
9875    
9876  echo creating $CONFIG_STATUS  : ${CONFIG_STATUS=./config.status}
9877  rm -f $CONFIG_STATUS  ac_clean_files_save=$ac_clean_files
9878  cat > $CONFIG_STATUS <<EOF  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9879  #! /bin/sh  { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9880  # Generated automatically by configure.  echo "$as_me: creating $CONFIG_STATUS" >&6;}
9881    cat >$CONFIG_STATUS <<_ACEOF
9882    #! $SHELL
9883    # Generated by $as_me.
9884  # Run this file to recreate the current configuration.  # Run this file to recreate the current configuration.
 # This directory was configured as follows,  
 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:  
 #  
 # $0 $ac_configure_args  
 #  
9885  # Compiler output produced by configure, useful for debugging  # Compiler output produced by configure, useful for debugging
9886  # configure, is in ./config.log if it exists.  # configure, is in config.log if it exists.
9887    
9888  ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"  debug=false
9889  for ac_option  SHELL=\${CONFIG_SHELL-$SHELL}
9890    _ACEOF
9891    
9892    cat >>$CONFIG_STATUS <<\_ACEOF
9893    
9894    ## --------------------- ##
9895    ## M4sh Initialization.  ##
9896    ## --------------------- ##
9897    
9898    # Be Bourne compatible
9899    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9900      emulate sh
9901      NULLCMD=:
9902    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9903      set -o posix
9904    fi
9905    
9906    # NLS nuisances.
9907    # Support unset when possible.
9908    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9909      as_unset=unset
9910    else
9911      as_unset=false
9912    fi
9913    
9914    (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9915        { $as_unset LANG || test "${LANG+set}" != set; } ||
9916          { LANG=C; export LANG; }
9917    (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9918        { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9919          { LC_ALL=C; export LC_ALL; }
9920    (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9921        { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9922          { LC_TIME=C; export LC_TIME; }
9923    (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9924        { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9925          { LC_CTYPE=C; export LC_CTYPE; }
9926    (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9927        { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9928          { LANGUAGE=C; export LANGUAGE; }
9929    (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9930        { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9931          { LC_COLLATE=C; export LC_COLLATE; }
9932    (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9933        { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9934          { LC_NUMERIC=C; export LC_NUMERIC; }
9935    (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9936        { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9937          { LC_MESSAGES=C; export LC_MESSAGES; }
9938    
9939    
9940    # Name of the executable.
9941    as_me=`(basename "$0") 2>/dev/null ||
9942    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9943             X"$0" : 'X\(//\)$' \| \
9944             X"$0" : 'X\(/\)$' \| \
9945             .     : '\(.\)' 2>/dev/null ||
9946    echo X/"$0" |
9947        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9948              /^X\/\(\/\/\)$/{ s//\1/; q; }
9949              /^X\/\(\/\).*/{ s//\1/; q; }
9950              s/.*/./; q'`
9951    
9952    # PATH needs CR, and LINENO needs CR and PATH.
9953    # Avoid depending upon Character Ranges.
9954    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9955    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9956    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9957    as_cr_digits='0123456789'
9958    as_cr_alnum=$as_cr_Letters$as_cr_digits
9959    
9960    # The user is always right.
9961    if test "${PATH_SEPARATOR+set}" != set; then
9962      echo "#! /bin/sh" >conftest.sh
9963      echo  "exit 0"   >>conftest.sh
9964      chmod +x conftest.sh
9965      if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9966        PATH_SEPARATOR=';'
9967      else
9968        PATH_SEPARATOR=:
9969      fi
9970      rm -f conftest.sh
9971    fi
9972    
9973    
9974      as_lineno_1=$LINENO
9975      as_lineno_2=$LINENO
9976      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9977      test "x$as_lineno_1" != "x$as_lineno_2" &&
9978      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9979      # Find who we are.  Look in the path if we contain no path at all
9980      # relative or not.
9981      case $0 in
9982        *[\\/]* ) as_myself=$0 ;;
9983        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984    for as_dir in $PATH
9985    do
9986      IFS=$as_save_IFS
9987      test -z "$as_dir" && as_dir=.
9988      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9989    done
9990    
9991           ;;
9992      esac
9993      # We did not find ourselves, most probably we were run as `sh COMMAND'
9994      # in which case we are not to be found in the path.
9995      if test "x$as_myself" = x; then
9996        as_myself=$0
9997      fi
9998      if test ! -f "$as_myself"; then
9999        { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10000    echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10001       { (exit 1); exit 1; }; }
10002      fi
10003      case $CONFIG_SHELL in
10004      '')
10005        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10007    do
10008      IFS=$as_save_IFS
10009      test -z "$as_dir" && as_dir=.
10010      for as_base in sh bash ksh sh5; do
10011             case $as_dir in
10012             /*)
10013               if ("$as_dir/$as_base" -c '
10014      as_lineno_1=$LINENO
10015      as_lineno_2=$LINENO
10016      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10017      test "x$as_lineno_1" != "x$as_lineno_2" &&
10018      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10019                 CONFIG_SHELL=$as_dir/$as_base
10020                 export CONFIG_SHELL
10021                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10022               fi;;
10023             esac
10024           done
10025    done
10026    ;;
10027      esac
10028    
10029      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10030      # uniformly replaced by the line number.  The first 'sed' inserts a
10031      # line-number line before each line; the second 'sed' does the real
10032      # work.  The second script uses 'N' to pair each line-number line
10033      # with the numbered line, and appends trailing '-' during
10034      # substitution so that $LINENO is not a special case at line end.
10035      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10036      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10037      sed '=' <$as_myself |
10038        sed '
10039          N
10040          s,$,-,
10041          : loop
10042          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10043          t loop
10044          s,-$,,
10045          s,^['$as_cr_digits']*\n,,
10046        ' >$as_me.lineno &&
10047      chmod +x $as_me.lineno ||
10048        { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10049    echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10050       { (exit 1); exit 1; }; }
10051    
10052      # Don't try to exec as it changes $[0], causing all sort of problems
10053      # (the dirname of $[0] is not the place where we might find the
10054      # original and so on.  Autoconf is especially sensible to this).
10055      . ./$as_me.lineno
10056      # Exit status is that of the last command.
10057      exit
10058    }
10059    
10060    
10061    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10062      *c*,-n*) ECHO_N= ECHO_C='
10063    ' ECHO_T='      ' ;;
10064      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10065      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10066    esac
10067    
10068    if expr a : '\(a\)' >/dev/null 2>&1; then
10069      as_expr=expr
10070    else
10071      as_expr=false
10072    fi
10073    
10074    rm -f conf$$ conf$$.exe conf$$.file
10075    echo >conf$$.file
10076    if ln -s conf$$.file conf$$ 2>/dev/null; then
10077      # We could just check for DJGPP; but this test a) works b) is more generic
10078      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10079      if test -f conf$$.exe; then
10080        # Don't use ln at all; we don't have any links
10081        as_ln_s='cp -p'
10082      else
10083        as_ln_s='ln -s'
10084      fi
10085    elif ln conf$$.file conf$$ 2>/dev/null; then
10086      as_ln_s=ln
10087    else
10088      as_ln_s='cp -p'
10089    fi
10090    rm -f conf$$ conf$$.exe conf$$.file
10091    
10092    as_executable_p="test -f"
10093    
10094    # Sed expression to map a string onto a valid CPP name.
10095    as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10096    
10097    # Sed expression to map a string onto a valid variable name.
10098    as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10099    
10100    
10101    # IFS
10102    # We need space, tab and new line, in precisely that order.
10103    as_nl='
10104    '
10105    IFS="   $as_nl"
10106    
10107    # CDPATH.
10108    $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
10109    
10110    exec 6>&1
10111    
10112    # Open the log real soon, to keep \$[0] and so on meaningful, and to
10113    # report actual input values of CONFIG_FILES etc. instead of their
10114    # values after options handling.  Logging --version etc. is OK.
10115    exec 5>>config.log
10116    {
10117      echo
10118      sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10119    ## Running $as_me. ##
10120    _ASBOX
10121    } >&5
10122    cat >&5 <<_CSEOF
10123    
10124    This file was extended by $as_me, which was
10125    generated by GNU Autoconf 2.53.  Invocation command line was
10126    
10127      CONFIG_FILES    = $CONFIG_FILES
10128      CONFIG_HEADERS  = $CONFIG_HEADERS
10129      CONFIG_LINKS    = $CONFIG_LINKS
10130      CONFIG_COMMANDS = $CONFIG_COMMANDS
10131      $ $0 $@
10132    
10133    _CSEOF
10134    echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10135    echo >&5
10136    _ACEOF
10137    
10138    # Files that config.status was made for.
10139    if test -n "$ac_config_files"; then
10140      echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10141    fi
10142    
10143    if test -n "$ac_config_headers"; then
10144      echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10145    fi
10146    
10147    if test -n "$ac_config_links"; then
10148      echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10149    fi
10150    
10151    if test -n "$ac_config_commands"; then
10152      echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10153    fi
10154    
10155    cat >>$CONFIG_STATUS <<\_ACEOF
10156    
10157    ac_cs_usage="\
10158    \`$as_me' instantiates files from templates according to the
10159    current configuration.
10160    
10161    Usage: $0 [OPTIONS] [FILE]...
10162    
10163      -h, --help       print this help, then exit
10164      -V, --version    print version number, then exit
10165      -d, --debug      don't remove temporary files
10166          --recheck    update $as_me by reconfiguring in the same conditions
10167      --file=FILE[:TEMPLATE]
10168                       instantiate the configuration file FILE
10169      --header=FILE[:TEMPLATE]
10170                       instantiate the configuration header FILE
10171    
10172    Configuration files:
10173    $config_files
10174    
10175    Configuration headers:
10176    $config_headers
10177    
10178    Report bugs to <bug-autoconf@gnu.org>."
10179    _ACEOF
10180    
10181    cat >>$CONFIG_STATUS <<_ACEOF
10182    ac_cs_version="\\
10183    config.status
10184    configured by $0, generated by GNU Autoconf 2.53,
10185      with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10186    
10187    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10188    Free Software Foundation, Inc.
10189    This config.status script is free software; the Free Software Foundation
10190    gives unlimited permission to copy, distribute and modify it."
10191    srcdir=$srcdir
10192    _ACEOF
10193    
10194    cat >>$CONFIG_STATUS <<\_ACEOF
10195    # If no file are specified by the user, then we need to provide default
10196    # value.  By we need to know if files were specified by the user.
10197    ac_need_defaults=:
10198    while test $# != 0
10199  do  do
10200    case "\$ac_option" in    case $1 in
10201      --*=*)
10202        ac_option=`expr "x$1" : 'x\([^=]*\)='`
10203        ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10204        shift
10205        set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10206        shift
10207        ;;
10208      -*);;
10209      *) # This is not an option, so the user has probably given explicit
10210         # arguments.
10211         ac_need_defaults=false;;
10212      esac
10213    
10214      case $1 in
10215      # Handling of the options.
10216    _ACEOF
10217    cat >>$CONFIG_STATUS <<_ACEOF
10218    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10219      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"      echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10220      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;      exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10221    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)  _ACEOF
10222      echo "$CONFIG_STATUS generated by autoconf version 2.13"  cat >>$CONFIG_STATUS <<\_ACEOF
10223      exit 0 ;;    --version | --vers* | -V )
10224    -help | --help | --hel | --he | --h)      echo "$ac_cs_version"; exit 0 ;;
10225      echo "\$ac_cs_usage"; exit 0 ;;    --he | --h)
10226    *) echo "\$ac_cs_usage"; exit 1 ;;      # Conflict between --help and --header
10227        { { echo "$as_me:$LINENO: error: ambiguous option: $1
10228    Try \`$0 --help' for more information." >&5
10229    echo "$as_me: error: ambiguous option: $1
10230    Try \`$0 --help' for more information." >&2;}
10231       { (exit 1); exit 1; }; };;
10232      --help | --hel | -h )
10233        echo "$ac_cs_usage"; exit 0 ;;
10234      --debug | --d* | -d )
10235        debug=: ;;
10236      --file | --fil | --fi | --f )
10237        shift
10238        CONFIG_FILES="$CONFIG_FILES $1"
10239        ac_need_defaults=false;;
10240      --header | --heade | --head | --hea )
10241        shift
10242        CONFIG_HEADERS="$CONFIG_HEADERS $1"
10243        ac_need_defaults=false;;
10244    
10245      # This is an error.
10246      -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10247    Try \`$0 --help' for more information." >&5
10248    echo "$as_me: error: unrecognized option: $1
10249    Try \`$0 --help' for more information." >&2;}
10250       { (exit 1); exit 1; }; } ;;
10251    
10252      *) ac_config_targets="$ac_config_targets $1" ;;
10253    
10254    esac    esac
10255      shift
10256  done  done
10257    
10258  ac_given_srcdir=$srcdir  _ACEOF
10259    
 trap 'rm -fr `echo "makedefc windows/gcl.iss windows/gcl.ansi.iss windows/install.ansi.lsp windows/install.lsp  h/gclincl.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15  
 EOF  
 cat >> $CONFIG_STATUS <<EOF  
10260    
 # Protect against being on the right side of a sed subst in config.status.  
 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;  
  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF  
 $ac_vpsub  
 $extrasub  
 s%@SHELL@%$SHELL%g  
 s%@CFLAGS@%$CFLAGS%g  
 s%@CPPFLAGS@%$CPPFLAGS%g  
 s%@CXXFLAGS@%$CXXFLAGS%g  
 s%@FFLAGS@%$FFLAGS%g  
 s%@DEFS@%$DEFS%g  
 s%@LDFLAGS@%$LDFLAGS%g  
 s%@LIBS@%$LIBS%g  
 s%@exec_prefix@%$exec_prefix%g  
 s%@prefix@%$prefix%g  
 s%@program_transform_name@%$program_transform_name%g  
 s%@bindir@%$bindir%g  
 s%@sbindir@%$sbindir%g  
 s%@libexecdir@%$libexecdir%g  
 s%@datadir@%$datadir%g  
 s%@sysconfdir@%$sysconfdir%g  
 s%@sharedstatedir@%$sharedstatedir%g  
 s%@localstatedir@%$localstatedir%g  
 s%@libdir@%$libdir%g  
 s%@includedir@%$includedir%g  
 s%@oldincludedir@%$oldincludedir%g  
 s%@infodir@%$infodir%g  
 s%@mandir@%$mandir%g  
 s%@VERSION@%$VERSION%g  
 s%@host@%$host%g  
 s%@host_alias@%$host_alias%g  
 s%@host_cpu@%$host_cpu%g  
 s%@host_vendor@%$host_vendor%g  
 s%@host_os@%$host_os%g  
 s%@PROCESSOR_FLAGS@%$PROCESSOR_FLAGS%g  
 s%@CC@%$CC%g  
 s%@CPP@%$CPP%g  
 s%@AWK@%$AWK%g  
 s%@MAKEINFO@%$MAKEINFO%g  
 s%@GMP@%$GMP%g  
 s%@GMPDIR@%$GMPDIR%g  
 s%@X_CFLAGS@%$X_CFLAGS%g  
 s%@X_PRE_LIBS@%$X_PRE_LIBS%g  
 s%@X_LIBS@%$X_LIBS%g  
 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g  
 s%@BUILD_BFD@%$BUILD_BFD%g  
 s%@LITTLE_END@%$LITTLE_END%g  
 s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g  
 s%@FLISP@%$FLISP%g  
 s%@SYSTEM@%$SYSTEM%g  
 s%@PAGEWIDTH@%$PAGEWIDTH%g  
 s%@RL_OBJS@%$RL_OBJS%g  
 s%@RL_LIB@%$RL_LIB%g  
 s%@NO_PROFILE@%$NO_PROFILE%g  
 s%@HAVE_SETENV@%$HAVE_SETENV%g  
 s%@HAVE_PUTENV@%$HAVE_PUTENV%g  
 s%@USE_CLEANUP@%$USE_CLEANUP%g  
 s%@ENDIAN_ALREADY_DEFINED@%$ENDIAN_ALREADY_DEFINED%g  
 s%@HAVE_SV_ONSTACK@%$HAVE_SV_ONSTACK%g  
 s%@HAVE_SIGSYS@%$HAVE_SIGSYS%g  
 s%@HAVE_SIGEMT@%$HAVE_SIGEMT%g  
 s%@EMACS@%$EMACS%g  
 s%@EMACS_SITE_LISP@%$EMACS_SITE_LISP%g  
 s%@EMACS_DEFAULT_EL@%$EMACS_DEFAULT_EL%g  
 s%@INFO_DIR@%$INFO_DIR%g  
 s%@TCLSH@%$TCLSH%g  
 s%@TK_CONFIG_PREFIX@%$TK_CONFIG_PREFIX%g  
 s%@TK_LIBRARY@%$TK_LIBRARY%g  
 s%@TCL_LIBRARY@%$TCL_LIBRARY%g  
 s%@TK_XINCLUDES@%$TK_XINCLUDES%g  
 s%@TK_INCLUDE@%$TK_INCLUDE%g  
 s%@TCL_INCLUDE@%$TCL_INCLUDE%g  
 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g  
 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g  
 s%@TK_XLIBSW@%$TK_XLIBSW%g  
 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g  
 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g  
 s%@TCL_LIBS@%$TCL_LIBS%g  
 s%@NOTIFY@%$NOTIFY%g  
 s%@BROKEN_O4_OPT@%$BROKEN_O4_OPT%g  
 s%@FINAL_CFLAGS@%$FINAL_CFLAGS%g  
 s%@NIFLAGS@%$NIFLAGS%g  
 s%@O3FLAGS@%$O3FLAGS%g  
 s%@O2FLAGS@%$O2FLAGS%g  
 s%@EXTRA_LOBJS@%$EXTRA_LOBJS%g  
 s%@use@%$use%g  
10261    
10262    
10263    
10264    cat >>$CONFIG_STATUS <<\_ACEOF
10265    for ac_config_target in $ac_config_targets
10266    do
10267      case "$ac_config_target" in
10268      # Handling of arguments.
10269      "makedefc" ) CONFIG_FILES="$CONFIG_FILES makedefc" ;;
10270      "windows/gcl.iss" ) CONFIG_FILES="$CONFIG_FILES windows/gcl.iss" ;;
10271      "windows/gcl.ansi.iss" ) CONFIG_FILES="$CONFIG_FILES windows/gcl.ansi.iss" ;;
10272      "windows/install.ansi.lsp" ) CONFIG_FILES="$CONFIG_FILES windows/install.ansi.lsp" ;;
10273      "windows/install.lsp" ) CONFIG_FILES="$CONFIG_FILES windows/install.lsp" ;;
10274      "h/gclincl.h" ) CONFIG_HEADERS="$CONFIG_HEADERS h/gclincl.h" ;;
10275      *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10276    echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10277       { (exit 1); exit 1; }; };;
10278      esac
10279    done
10280    
10281    # If the user did not use the arguments to specify the items to instantiate,
10282    # then the envvar interface is used.  Set only those that are not.
10283    # We use the long form for the default assignment because of an extremely
10284    # bizarre bug on SunOS 4.1.3.
10285    if $ac_need_defaults; then
10286      test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10287      test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10288    fi
10289    
10290    # Create a temporary directory, and hook for its removal unless debugging.
10291    $debug ||
10292    {
10293      trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10294      trap '{ (exit 1); exit 1; }' 1 2 13 15
10295    }
10296    
10297    # Create a (secure) tmp directory for tmp files.
10298    : ${TMPDIR=/tmp}
10299    {
10300      tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
10301      test -n "$tmp" && test -d "$tmp"
10302    }  ||
10303    {
10304      tmp=$TMPDIR/cs$$-$RANDOM
10305      (umask 077 && mkdir $tmp)
10306    } ||
10307    {
10308       echo "$me: cannot create a temporary directory in $TMPDIR" >&2
10309       { (exit 1); exit 1; }
10310    }
10311    
10312    _ACEOF
10313    
10314    cat >>$CONFIG_STATUS <<_ACEOF
10315    
10316    #
10317    # CONFIG_FILES section.
10318    #
10319    
10320    # No need to generate the scripts if there are no CONFIG_FILES.
10321    # This happens for instance when ./config.status config.h
10322    if test -n "\$CONFIG_FILES"; then
10323      # Protect against being on the right side of a sed subst in config.status.
10324      sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10325       s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10326    s,@SHELL@,$SHELL,;t t
10327    s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10328    s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10329    s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10330    s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10331    s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10332    s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10333    s,@exec_prefix@,$exec_prefix,;t t
10334    s,@prefix@,$prefix,;t t
10335    s,@program_transform_name@,$program_transform_name,;t t
10336    s,@bindir@,$bindir,;t t
10337    s,@sbindir@,$sbindir,;t t
10338    s,@libexecdir@,$libexecdir,;t t
10339    s,@datadir@,$datadir,;t t
10340    s,@sysconfdir@,$sysconfdir,;t t
10341    s,@sharedstatedir@,$sharedstatedir,;t t
10342    s,@localstatedir@,$localstatedir,;t t
10343    s,@libdir@,$libdir,;t t
10344    s,@includedir@,$includedir,;t t
10345    s,@oldincludedir@,$oldincludedir,;t t
10346    s,@infodir@,$infodir,;t t
10347    s,@mandir@,$mandir,;t t
10348    s,@build_alias@,$build_alias,;t t
10349    s,@host_alias@,$host_alias,;t t
10350    s,@target_alias@,$target_alias,;t t
10351    s,@DEFS@,$DEFS,;t t
10352    s,@ECHO_C@,$ECHO_C,;t t
10353    s,@ECHO_N@,$ECHO_N,;t t
10354    s,@ECHO_T@,$ECHO_T,;t t
10355    s,@LIBS@,$LIBS,;t t
10356    s,@VERSION@,$VERSION,;t t
10357    s,@build@,$build,;t t
10358    s,@build_cpu@,$build_cpu,;t t
10359    s,@build_vendor@,$build_vendor,;t t
10360    s,@build_os@,$build_os,;t t
10361    s,@host@,$host,;t t
10362    s,@host_cpu@,$host_cpu,;t t
10363    s,@host_vendor@,$host_vendor,;t t
10364    s,@host_os@,$host_os,;t t
10365    s,@PROCESSOR_FLAGS@,$PROCESSOR_FLAGS,;t t
10366    s,@CC@,$CC,;t t
10367    s,@CFLAGS@,$CFLAGS,;t t
10368    s,@LDFLAGS@,$LDFLAGS,;t t
10369    s,@CPPFLAGS@,$CPPFLAGS,;t t
10370    s,@ac_ct_CC@,$ac_ct_CC,;t t
10371    s,@EXEEXT@,$EXEEXT,;t t
10372    s,@OBJEXT@,$OBJEXT,;t t
10373    s,@CPP@,$CPP,;t t
10374    s,@AWK@,$AWK,;t t
10375    s,@MAKEINFO@,$MAKEINFO,;t t
10376    s,@GMP@,$GMP,;t t
10377    s,@GMPDIR@,$GMPDIR,;t t
10378    s,@X_CFLAGS@,$X_CFLAGS,;t t
10379    s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10380    s,@X_LIBS@,$X_LIBS,;t t
10381    s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10382    s,@BUILD_BFD@,$BUILD_BFD,;t t
10383    s,@LITTLE_END@,$LITTLE_END,;t t
10384    s,@HAVE_LONG_LONG@,$HAVE_LONG_LONG,;t t
10385    s,@FLISP@,$FLISP,;t t
10386    s,@SYSTEM@,$SYSTEM,;t t
10387    s,@PAGEWIDTH@,$PAGEWIDTH,;t t
10388    s,@RL_OBJS@,$RL_OBJS,;t t
10389    s,@RL_LIB@,$RL_LIB,;t t
10390    s,@NO_PROFILE@,$NO_PROFILE,;t t
10391    s,@HAVE_SETENV@,$HAVE_SETENV,;t t
10392    s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t
10393    s,@USE_CLEANUP@,$USE_CLEANUP,;t t
10394    s,@ENDIAN_ALREADY_DEFINED@,$ENDIAN_ALREADY_DEFINED,;t t
10395    s,@HAVE_SV_ONSTACK@,$HAVE_SV_ONSTACK,;t t
10396    s,@HAVE_SIGSYS@,$HAVE_SIGSYS,;t t
10397    s,@HAVE_SIGEMT@,$HAVE_SIGEMT,;t t
10398    s,@EMACS@,$EMACS,;t t
10399    s,@EMACS_SITE_LISP@,$EMACS_SITE_LISP,;t t
10400    s,@EMACS_DEFAULT_EL@,$EMACS_DEFAULT_EL,;t t
10401    s,@INFO_DIR@,$INFO_DIR,;t t
10402    s,@TCLSH@,$TCLSH,;t t
10403    s,@TK_CONFIG_PREFIX@,$TK_CONFIG_PREFIX,;t t
10404    s,@TK_LIBRARY@,$TK_LIBRARY,;t t
10405    s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
10406    s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
10407    s,@TK_INCLUDE@,$TK_INCLUDE,;t t
10408    s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
10409    s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
10410    s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
10411    s,@TK_XLIBSW@,$TK_XLIBSW,;t t
10412    s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
10413    s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
10414    s,@TCL_LIBS@,$TCL_LIBS,;t t
10415    s,@NOTIFY@,$NOTIFY,;t t
10416    s,@BROKEN_O4_OPT@,$BROKEN_O4_OPT,;t t
10417    s,@FINAL_CFLAGS@,$FINAL_CFLAGS,;t t
10418    s,@NIFLAGS@,$NIFLAGS,;t t
10419    s,@O3FLAGS@,$O3FLAGS,;t t
10420    s,@O2FLAGS@,$O2FLAGS,;t t
10421    s,@EXTRA_LOBJS@,$EXTRA_LOBJS,;t t
10422    s,@use@,$use,;t t
10423  CEOF  CEOF
 EOF  
10424    
10425  cat >> $CONFIG_STATUS <<\EOF  _ACEOF
10426    
10427  # Split the substitutions into bite-sized pieces for seds with    cat >>$CONFIG_STATUS <<\_ACEOF
10428  # small command number limits, like on Digital OSF/1 and HP-UX.    # Split the substitutions into bite-sized pieces for seds with
10429  ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.    # small command number limits, like on Digital OSF/1 and HP-UX.
10430  ac_file=1 # Number of current file.    ac_max_sed_lines=48
10431  ac_beg=1 # First line for current file.    ac_sed_frag=1 # Number of current file.
10432  ac_end=$ac_max_sed_cmds # Line after last line for current file.    ac_beg=1 # First line for current file.
10433  ac_more_lines=:    ac_end=$ac_max_sed_lines # Line after last line for current file.
10434  ac_sed_cmds=""    ac_more_lines=:
10435  while $ac_more_lines; do    ac_sed_cmds=
10436    if test $ac_beg -gt 1; then    while $ac_more_lines; do
10437      sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file      if test $ac_beg -gt 1; then
10438    else        sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     sed "${ac_end}q" conftest.subs > conftest.s$ac_file  
   fi  
   if test ! -s conftest.s$ac_file; then  
     ac_more_lines=false  
     rm -f conftest.s$ac_file  
   else  
     if test -z "$ac_sed_cmds"; then  
       ac_sed_cmds="sed -f conftest.s$ac_file"  
10439      else      else
10440        ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"        sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10441      fi      fi
10442      ac_file=`expr $ac_file + 1`      if test ! -s $tmp/subs.frag; then
10443      ac_beg=$ac_end        ac_more_lines=false
10444      ac_end=`expr $ac_end + $ac_max_sed_cmds`      else
10445          # The purpose of the label and of the branching condition is to
10446          # speed up the sed processing (if there are no `@' at all, there
10447          # is no need to browse any of the substitutions).
10448          # These are the two extra sed commands mentioned above.
10449          (echo ':t
10450      /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10451          if test -z "$ac_sed_cmds"; then
10452            ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10453          else
10454            ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10455          fi
10456          ac_sed_frag=`expr $ac_sed_frag + 1`
10457          ac_beg=$ac_end
10458          ac_end=`expr $ac_end + $ac_max_sed_lines`
10459        fi
10460      done
10461      if test -z "$ac_sed_cmds"; then
10462        ac_sed_cmds=cat
10463    fi    fi
10464  done  fi # test -n "$CONFIG_FILES"
 if test -z "$ac_sed_cmds"; then  
   ac_sed_cmds=cat  
 fi  
 EOF  
   
 cat >> $CONFIG_STATUS <<EOF  
10465    
10466  CONFIG_FILES=\${CONFIG_FILES-"makedefc windows/gcl.iss windows/gcl.ansi.iss windows/install.ansi.lsp windows/install.lsp "}  _ACEOF
10467  EOF  cat >>$CONFIG_STATUS <<\_ACEOF
10468  cat >> $CONFIG_STATUS <<\EOF  for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then  
10469    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10470    case "$ac_file" in    case $ac_file in
10471    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
10472         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
10473    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10474            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10475      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10476            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10477      * )   ac_file_in=$ac_file.in ;;
10478    esac    esac
10479    
10480    # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10481      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10482    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10483             X"$ac_file" : 'X\(//\)[^/]' \| \
10484             X"$ac_file" : 'X\(//\)$' \| \
10485             X"$ac_file" : 'X\(/\)' \| \
10486             .     : '\(.\)' 2>/dev/null ||
10487    echo X"$ac_file" |
10488        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10489              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10490              /^X\(\/\/\)$/{ s//\1/; q; }
10491              /^X\(\/\).*/{ s//\1/; q; }
10492              s/.*/./; q'`
10493      { case "$ac_dir" in
10494      [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10495      *)                      as_incr_dir=.;;
10496    esac
10497    as_dummy="$ac_dir"
10498    for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10499      case $as_mkdir_dir in
10500        # Skip DOS drivespec
10501        ?:) as_incr_dir=$as_mkdir_dir ;;
10502        *)
10503          as_incr_dir=$as_incr_dir/$as_mkdir_dir
10504          test -d "$as_incr_dir" ||
10505            mkdir "$as_incr_dir" ||
10506            { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10507    echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10508       { (exit 1); exit 1; }; }
10509        ;;
10510      esac
10511    done; }
10512    
10513    # Remove last slash and all that follows it.  Not all systems have dirname.    ac_builddir=.
   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`  
   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then  
     # The file is in a subdirectory.  
     test ! -d "$ac_dir" && mkdir "$ac_dir"  
     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"  
     # A "../" for each directory in $ac_dir_suffix.  
     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`  
   else  
     ac_dir_suffix= ac_dots=  
   fi  
10514    
10515    case "$ac_given_srcdir" in  if test "$ac_dir" != .; then
10516    .)  srcdir=.    ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10517        if test -z "$ac_dots"; then top_srcdir=.    # A "../" for each directory in $ac_dir_suffix.
10518        else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;    ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10519    /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;  else
10520      ac_dir_suffix= ac_top_builddir=
10521    fi
10522    
10523    case $srcdir in
10524      .)  # No --srcdir option.  We are building in place.
10525        ac_srcdir=.
10526        if test -z "$ac_top_builddir"; then
10527           ac_top_srcdir=.
10528        else
10529           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10530        fi ;;
10531      [\\/]* | ?:[\\/]* )  # Absolute path.
10532        ac_srcdir=$srcdir$ac_dir_suffix;
10533        ac_top_srcdir=$srcdir ;;
10534    *) # Relative path.    *) # Relative path.
10535      srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10536      top_srcdir="$ac_dots$ac_given_srcdir" ;;      ac_top_srcdir=$ac_top_builddir$srcdir ;;
10537    esac  esac
10538    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10539    # absolute.
10540    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10541    ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10542    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10543    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10544    
10545    
   echo creating "$ac_file"  
   rm -f "$ac_file"  
   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."  
   case "$ac_file" in  
   *Makefile*) ac_comsub="1i\\  
 # $configure_input" ;;  
   *) ac_comsub= ;;  
   esac  
10546    
10547    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`    if test x"$ac_file" != x-; then
10548    sed -e "$ac_comsub      { echo "$as_me:$LINENO: creating $ac_file" >&5
10549  s%@configure_input@%$configure_input%g  echo "$as_me: creating $ac_file" >&6;}
10550  s%@srcdir@%$srcdir%g      rm -f "$ac_file"
10551  s%@top_srcdir@%$top_srcdir%g    fi
10552  " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file    # Let's still pretend it is `configure' which instantiates (i.e., don't
10553  fi; done    # use $as_me), people would be surprised to read:
10554  rm -f conftest.s*    #    /* config.h.  Generated by config.status.  */
10555      if test x"$ac_file" = x-; then
10556        configure_input=
10557      else
10558        configure_input="$ac_file.  "
10559      fi
10560      configure_input=$configure_input"Generated from `echo $ac_file_in |
10561                                         sed 's,.*/,,'` by configure."
10562    
10563      # First look for the input files in the build tree, otherwise in the
10564      # src tree.
10565      ac_file_inputs=`IFS=:
10566        for f in $ac_file_in; do
10567          case $f in
10568          -) echo $tmp/stdin ;;
10569          [\\/$]*)
10570             # Absolute (can't be DOS-style, as IFS=:)
10571             test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10572    echo "$as_me: error: cannot find input file: $f" >&2;}
10573       { (exit 1); exit 1; }; }
10574             echo $f;;
10575          *) # Relative
10576             if test -f "$f"; then
10577               # Build tree
10578               echo $f
10579             elif test -f "$srcdir/$f"; then
10580               # Source tree
10581               echo $srcdir/$f
10582             else
10583               # /dev/null tree
10584               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10585    echo "$as_me: error: cannot find input file: $f" >&2;}
10586       { (exit 1); exit 1; }; }
10587             fi;;
10588          esac
10589        done` || { (exit 1); exit 1; }
10590    _ACEOF
10591    cat >>$CONFIG_STATUS <<_ACEOF
10592      sed "$ac_vpsub
10593    $extrasub
10594    _ACEOF
10595    cat >>$CONFIG_STATUS <<\_ACEOF
10596    :t
10597    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10598    s,@configure_input@,$configure_input,;t t
10599    s,@srcdir@,$ac_srcdir,;t t
10600    s,@abs_srcdir@,$ac_abs_srcdir,;t t
10601    s,@top_srcdir@,$ac_top_srcdir,;t t
10602    s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10603    s,@builddir@,$ac_builddir,;t t
10604    s,@abs_builddir@,$ac_abs_builddir,;t t
10605    s,@top_builddir@,$ac_top_builddir,;t t
10606    s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10607    " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10608      rm -f $tmp/stdin
10609      if test x"$ac_file" != x-; then
10610        mv $tmp/out $ac_file
10611      else
10612        cat $tmp/out
10613        rm -f $tmp/out
10614      fi
10615    
10616    done
10617    _ACEOF
10618    cat >>$CONFIG_STATUS <<\_ACEOF
10619    
10620    #
10621    # CONFIG_HEADER section.
10622    #
10623    
10624  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10625  # NAME is the cpp macro being defined and VALUE is the value it is being given.  # NAME is the cpp macro being defined and VALUE is the value it is being given.
10626  #  #
10627  # ac_d sets the value in "#define NAME VALUE" lines.  # ac_d sets the value in "#define NAME VALUE" lines.
10628  ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'  ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10629  ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'  ac_dB='[        ].*$,\1#\2'
10630  ac_dC='\3'  ac_dC=' '
10631  ac_dD='%g'  ac_dD=',;t'
10632  # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".  # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10633  ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10634  ac_uB='\([      ]\)%\1#\2define\3'  ac_uB='$,\1#\2define\3'
10635  ac_uC=' '  ac_uC=' '
10636  ac_uD='\4%g'  ac_uD=',;t'
 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".  
 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  
 ac_eB='$%\1#\2define\3'  
 ac_eC=' '  
 ac_eD='%g'  
10637    
10638  if test "${CONFIG_HEADERS+set}" != set; then  for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 EOF  
 cat >> $CONFIG_STATUS <<EOF  
   CONFIG_HEADERS="h/gclincl.h"  
 EOF  
 cat >> $CONFIG_STATUS <<\EOF  
 fi  
 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then  
10639    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10640    case "$ac_file" in    case $ac_file in
10641    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
10642         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
10643    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10644            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10645      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10646            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10647      * )   ac_file_in=$ac_file.in ;;
10648    esac    esac
10649    
10650    echo creating $ac_file    test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10651    echo "$as_me: creating $ac_file" >&6;}
   rm -f conftest.frag conftest.in conftest.out  
   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`  
   cat $ac_file_inputs > conftest.in  
10652    
10653  EOF    # First look for the input files in the build tree, otherwise in the
10654      # src tree.
10655  # Transform confdefs.h into a sed script conftest.vals that substitutes    ac_file_inputs=`IFS=:
10656  # the proper values into config.h.in to produce config.h.  And first:      for f in $ac_file_in; do
10657  # Protect against being on the right side of a sed subst in config.status.        case $f in
10658  # Protect against being in an unquoted here document in config.status.        -) echo $tmp/stdin ;;
10659  rm -f conftest.vals        [\\/$]*)
10660  cat > conftest.hdr <<\EOF           # Absolute (can't be DOS-style, as IFS=:)
10661  s/[\\&%]/\\&/g           test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10662  s%[\\$`]%\\&%g  echo "$as_me: error: cannot find input file: $f" >&2;}
10663  s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp     { (exit 1); exit 1; }; }
10664  s%ac_d%ac_u%gp           echo $f;;
10665  s%ac_u%ac_e%gp        *) # Relative
10666  EOF           if test -f "$f"; then
10667  sed -n -f conftest.hdr confdefs.h > conftest.vals             # Build tree
10668  rm -f conftest.hdr             echo $f
10669             elif test -f "$srcdir/$f"; then
10670               # Source tree
10671               echo $srcdir/$f
10672             else
10673               # /dev/null tree
10674               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10675    echo "$as_me: error: cannot find input file: $f" >&2;}
10676       { (exit 1); exit 1; }; }
10677             fi;;
10678          esac
10679        done` || { (exit 1); exit 1; }
10680      # Remove the trailing spaces.
10681      sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
10682    
10683    _ACEOF
10684    
10685    # Transform confdefs.h into two sed scripts, `conftest.defines' and
10686    # `conftest.undefs', that substitutes the proper values into
10687    # config.h.in to produce config.h.  The first handles `#define'
10688    # templates, and the second `#undef' templates.
10689    # And first: Protect against being on the right side of a sed subst in
10690    # config.status.  Protect against being in an unquoted here document
10691    # in config.status.
10692    rm -f conftest.defines conftest.undefs
10693    # Using a here document instead of a string reduces the quoting nightmare.
10694    # Putting comments in sed scripts is not portable.
10695    #
10696    # `end' is used to avoid that the second main sed command (meant for
10697    # 0-ary CPP macros) applies to n-ary macro definitions.
10698    # See the Autoconf documentation for `clear'.
10699    cat >confdef2sed.sed <<\_ACEOF
10700    s/[\\&,]/\\&/g
10701    s,[\\$`],\\&,g
10702    t clear
10703    : clear
10704    s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10705    t end
10706    s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10707    : end
10708    _ACEOF
10709    # If some macros were called several times there might be several times
10710    # the same #defines, which is useless.  Nevertheless, we may not want to
10711    # sort them, since we want the *last* AC-DEFINE to be honored.
10712    uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10713    sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10714    rm -f confdef2sed.sed
10715    
10716  # This sed command replaces #undef with comments.  This is necessary, for  # This sed command replaces #undef with comments.  This is necessary, for
10717  # example, in the case of _POSIX_SOURCE, which is predefined and required  # example, in the case of _POSIX_SOURCE, which is predefined and required
10718  # on some systems where configure will not decide to define it.  # on some systems where configure will not decide to define it.
10719  cat >> conftest.vals <<\EOF  cat >>conftest.undefs <<\_ACEOF
10720  s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%  s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10721  EOF  _ACEOF
10722    
10723  # Break up conftest.vals because some shells have a limit on  # Break up conftest.defines because some shells have a limit on the size
10724  # the size of here documents, and old seds have small limits too.  # of here documents, and old seds have small limits too (100 cmds).
10725    echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10726    echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10727    echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10728    echo '  :' >>$CONFIG_STATUS
10729    rm -f conftest.tail
10730    while grep . conftest.defines >/dev/null
10731    do
10732      # Write a limited-size here document to $tmp/defines.sed.
10733      echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10734      # Speed up: don't consider the non `#define' lines.
10735      echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
10736      # Work around the forget-to-reset-the-flag bug.
10737      echo 't clr' >>$CONFIG_STATUS
10738      echo ': clr' >>$CONFIG_STATUS
10739      sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10740      echo 'CEOF
10741      sed -f $tmp/defines.sed $tmp/in >$tmp/out
10742      rm -f $tmp/in
10743      mv $tmp/out $tmp/in
10744    ' >>$CONFIG_STATUS
10745      sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10746      rm -f conftest.defines
10747      mv conftest.tail conftest.defines
10748    done
10749    rm -f conftest.defines
10750    echo '  fi # egrep' >>$CONFIG_STATUS
10751    echo >>$CONFIG_STATUS
10752    
10753    # Break up conftest.undefs because some shells have a limit on the size
10754    # of here documents, and old seds have small limits too (100 cmds).
10755    echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10756  rm -f conftest.tail  rm -f conftest.tail
10757  while :  while grep . conftest.undefs >/dev/null
10758  do  do
10759    ac_lines=`grep -c . conftest.vals`    # Write a limited-size here document to $tmp/undefs.sed.
10760    # grep -c gives empty output for an empty file on some AIX systems.    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10761    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi    # Speed up: don't consider the non `#undef'
10762    # Write a limited-size here document to conftest.frag.    echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10763    echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS    # Work around the forget-to-reset-the-flag bug.
10764    sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS    echo 't clr' >>$CONFIG_STATUS
10765      echo ': clr' >>$CONFIG_STATUS
10766      sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10767    echo 'CEOF    echo 'CEOF
10768    sed -f conftest.frag conftest.in > conftest.out    sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10769    rm -f conftest.in    rm -f $tmp/in
10770    mv conftest.out conftest.in    mv $tmp/out $tmp/in
10771  ' >> $CONFIG_STATUS  ' >>$CONFIG_STATUS
10772    sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail    sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10773    rm -f conftest.vals    rm -f conftest.undefs
10774    mv conftest.tail conftest.vals    mv conftest.tail conftest.undefs
10775  done  done
10776  rm -f conftest.vals  rm -f conftest.undefs
10777    
10778  cat >> $CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\_ACEOF
10779    rm -f conftest.frag conftest.h    # Let's still pretend it is `configure' which instantiates (i.e., don't
10780    echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h    # use $as_me), people would be surprised to read:
10781    cat conftest.in >> conftest.h    #    /* config.h.  Generated by config.status.  */
10782    rm -f conftest.in    if test x"$ac_file" = x-; then
10783    if cmp -s $ac_file conftest.h 2>/dev/null; then      echo "/* Generated by configure.  */" >$tmp/config.h
     echo "$ac_file is unchanged"  
     rm -f conftest.h  
10784    else    else
10785      # Remove last slash and all that follows it.  Not all systems have dirname.      echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`  
       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then  
       # The file is in a subdirectory.  
       test ! -d "$ac_dir" && mkdir "$ac_dir"  
     fi  
     rm -f $ac_file  
     mv conftest.h $ac_file  
10786    fi    fi
10787  fi; done    cat $tmp/in >>$tmp/config.h
10788      rm -f $tmp/in
10789      if test x"$ac_file" != x-; then
10790        if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10791          { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10792    echo "$as_me: $ac_file is unchanged" >&6;}
10793        else
10794          ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10795    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10796             X"$ac_file" : 'X\(//\)[^/]' \| \
10797             X"$ac_file" : 'X\(//\)$' \| \
10798             X"$ac_file" : 'X\(/\)' \| \
10799             .     : '\(.\)' 2>/dev/null ||
10800    echo X"$ac_file" |
10801        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10802              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10803              /^X\(\/\/\)$/{ s//\1/; q; }
10804              /^X\(\/\).*/{ s//\1/; q; }
10805              s/.*/./; q'`
10806          { case "$ac_dir" in
10807      [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10808      *)                      as_incr_dir=.;;
10809    esac
10810    as_dummy="$ac_dir"
10811    for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10812      case $as_mkdir_dir in
10813        # Skip DOS drivespec
10814        ?:) as_incr_dir=$as_mkdir_dir ;;
10815        *)
10816          as_incr_dir=$as_incr_dir/$as_mkdir_dir
10817          test -d "$as_incr_dir" ||
10818            mkdir "$as_incr_dir" ||
10819            { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10820    echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10821       { (exit 1); exit 1; }; }
10822        ;;
10823      esac
10824    done; }
10825    
10826  EOF        rm -f $ac_file
10827  cat >> $CONFIG_STATUS <<EOF        mv $tmp/config.h $ac_file
10828        fi
10829      else
10830        cat $tmp/config.h
10831        rm -f $tmp/config.h
10832      fi
10833    done
10834    _ACEOF
10835    
10836  EOF  cat >>$CONFIG_STATUS <<\_ACEOF
 cat >> $CONFIG_STATUS <<\EOF  
10837    
10838  exit 0  { (exit 0); exit 0; }
10839  EOF  _ACEOF
10840  chmod +x $CONFIG_STATUS  chmod +x $CONFIG_STATUS
10841  rm -fr confdefs* $ac_clean_files  ac_clean_files=$ac_clean_files_save
10842  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1  
10843    
10844    # configure is writing to config.log, and then calls config.status.
10845    # config.status does its own redirection, appending to config.log.
10846    # Unfortunately, on DOS this fails, as config.log is still kept open
10847    # by configure, so config.status won't be able to write to it; its
10848    # output is simply discarded.  So we exec the FD to /dev/null,
10849    # effectively closing config.log, so it can be properly (re)opened and
10850    # appended to by config.status.  When coming back to configure, we
10851    # need to make the FD available again.
10852    if test "$no_create" != yes; then
10853      ac_cs_success=:
10854      exec 5>/dev/null
10855      $SHELL $CONFIG_STATUS || ac_cs_success=false
10856      exec 5>>config.log
10857      # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10858      # would make configure fail if this is the last instruction.
10859      $ac_cs_success || { (exit 1); exit 1; }
10860    fi
10861    
10862    echo makedefc    echo makedefc
10863    cat makedefc    cat makedefc

Legend:
Removed from v.1.107.4.1.2.2.2.8  
changed lines
  Added in v.1.107.4.1.2.2.2.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26