/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

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

revision 1.169 by camm, Thu Apr 14 21:31:03 2005 UTC revision 1.170 by mjthomas, Wed May 4 04:24:21 2005 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.56.
 # 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    ## M4sh Initialization.  ##
11    ## --------------------- ##
12    
13    # Be Bourne compatible
14    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15      emulate sh
16      NULLCMD=:
17      # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18      # is contrary to our usage.  Disable this feature.
19      alias -g '${1+"$@"}'='"$@"'
20    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21      set -o posix
22    fi
23    
24    # Support unset when possible.
25    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26      as_unset=unset
27    else
28      as_unset=false
29    fi
30    
31    
32    # Work around bugs in pre-3.0 UWIN ksh.
33    $as_unset ENV MAIL MAILPATH
34    PS1='$ '
35    PS2='> '
36    PS4='+ '
37    
38    # NLS nuisances.
39    for as_var in \
40      LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41      LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42      LC_TELEPHONE LC_TIME
43    do
44      if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45        eval $as_var=C; export $as_var
46      else
47        $as_unset $as_var
48      fi
49    done
50    
51    # Required to use basename.
52    if expr a : '\(a\)' >/dev/null 2>&1; then
53      as_expr=expr
54    else
55      as_expr=false
56    fi
57    
58    if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59      as_basename=basename
60    else
61      as_basename=false
62    fi
63    
64    
65    # Name of the executable.
66    as_me=`$as_basename "$0" ||
67    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68             X"$0" : 'X\(//\)$' \| \
69             X"$0" : 'X\(/\)$' \| \
70             .     : '\(.\)' 2>/dev/null ||
71    echo X/"$0" |
72        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73              /^X\/\(\/\/\)$/{ s//\1/; q; }
74              /^X\/\(\/\).*/{ s//\1/; q; }
75              s/.*/./; q'`
76    
77    
78    # PATH needs CR, and LINENO needs CR and PATH.
79    # Avoid depending upon Character Ranges.
80    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83    as_cr_digits='0123456789'
84    as_cr_alnum=$as_cr_Letters$as_cr_digits
85    
86    # The user is always right.
87    if test "${PATH_SEPARATOR+set}" != set; then
88      echo "#! /bin/sh" >conf$$.sh
89      echo  "exit 0"   >>conf$$.sh
90      chmod +x conf$$.sh
91      if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92        PATH_SEPARATOR=';'
93      else
94        PATH_SEPARATOR=:
95      fi
96      rm -f conf$$.sh
97    fi
98    
99    
100      as_lineno_1=$LINENO
101      as_lineno_2=$LINENO
102      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103      test "x$as_lineno_1" != "x$as_lineno_2" &&
104      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105      # Find who we are.  Look in the path if we contain no path at all
106      # relative or not.
107      case $0 in
108        *[\\/]* ) as_myself=$0 ;;
109        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110    for as_dir in $PATH
111    do
112      IFS=$as_save_IFS
113      test -z "$as_dir" && as_dir=.
114      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115    done
116    
117           ;;
118      esac
119      # We did not find ourselves, most probably we were run as `sh COMMAND'
120      # in which case we are not to be found in the path.
121      if test "x$as_myself" = x; then
122        as_myself=$0
123      fi
124      if test ! -f "$as_myself"; then
125        { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126       { (exit 1); exit 1; }; }
127      fi
128      case $CONFIG_SHELL in
129      '')
130        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132    do
133      IFS=$as_save_IFS
134      test -z "$as_dir" && as_dir=.
135      for as_base in sh bash ksh sh5; do
136             case $as_dir in
137             /*)
138               if ("$as_dir/$as_base" -c '
139      as_lineno_1=$LINENO
140      as_lineno_2=$LINENO
141      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142      test "x$as_lineno_1" != "x$as_lineno_2" &&
143      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144                 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145                 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146                 CONFIG_SHELL=$as_dir/$as_base
147                 export CONFIG_SHELL
148                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149               fi;;
150             esac
151           done
152    done
153    ;;
154      esac
155    
156      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157      # uniformly replaced by the line number.  The first 'sed' inserts a
158      # line-number line before each line; the second 'sed' does the real
159      # work.  The second script uses 'N' to pair each line-number line
160      # with the numbered line, and appends trailing '-' during
161      # substitution so that $LINENO is not a special case at line end.
162      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164      sed '=' <$as_myself |
165        sed '
166          N
167          s,$,-,
168          : loop
169          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170          t loop
171          s,-$,,
172          s,^['$as_cr_digits']*\n,,
173        ' >$as_me.lineno &&
174      chmod +x $as_me.lineno ||
175        { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176       { (exit 1); exit 1; }; }
177    
178      # Don't try to exec as it changes $[0], causing all sort of problems
179      # (the dirname of $[0] is not the place where we might find the
180      # original and so on.  Autoconf is especially sensible to this).
181      . ./$as_me.lineno
182      # Exit status is that of the last command.
183      exit
184    }
185    
186    
187    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188      *c*,-n*) ECHO_N= ECHO_C='
189    ' ECHO_T='      ' ;;
190      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192    esac
193    
194  # Defaults:  if expr a : '\(a\)' >/dev/null 2>&1; then
195  ac_help=    as_expr=expr
196    else
197      as_expr=false
198    fi
199    
200    rm -f conf$$ conf$$.exe conf$$.file
201    echo >conf$$.file
202    if ln -s conf$$.file conf$$ 2>/dev/null; then
203      # We could just check for DJGPP; but this test a) works b) is more generic
204      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205      if test -f conf$$.exe; then
206        # Don't use ln at all; we don't have any links
207        as_ln_s='cp -p'
208      else
209        as_ln_s='ln -s'
210      fi
211    elif ln conf$$.file conf$$ 2>/dev/null; then
212      as_ln_s=ln
213    else
214      as_ln_s='cp -p'
215    fi
216    rm -f conf$$ conf$$.exe conf$$.file
217    
218    if mkdir -p . 2>/dev/null; then
219      as_mkdir_p=:
220    else
221      as_mkdir_p=false
222    fi
223    
224    as_executable_p="test -f"
225    
226    # Sed expression to map a string onto a valid CPP name.
227    as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228    
229    # Sed expression to map a string onto a valid variable name.
230    as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231    
232    
233    # IFS
234    # We need space, tab and new line, in precisely that order.
235    as_nl='
236    '
237    IFS="   $as_nl"
238    
239    # CDPATH.
240    $as_unset CDPATH
241    
242    
243    # Name of the host.
244    # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245    # so uname gets run too.
246    ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247    
248    exec 6>&1
249    
250    #
251    # Initializations.
252    #
253  ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
254  # Any additions from configure.in:  ac_config_libobj_dir=.
255  ac_help="$ac_help  cross_compiling=no
256   --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) "  subdirs=
257  ac_help="$ac_help  MFLAGS=
258   --enable-holepage=XXXX will compile in a XXX-sized hole between the heap and relocatable memory area (eg '--enable-holepage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each) "  MAKEFLAGS=
259  ac_help="$ac_help  SHELL=${CONFIG_SHELL-/bin/sh}
260   --enable-vssize=XXXX will compile in a value stack of size XXX "  
261  ac_help="$ac_help  # Maximum number of lines to put in a shell here document.
262   --enable-bdssize=XXXX will compile in a binding stack of size XXX "  # This variable seems obsolete.  It should probably be removed, and
263  ac_help="$ac_help  # only ac_max_sed_lines should be used.
264   --enable-ihssize=XXXX will compile in a invocation history stack of size XXX "  : ${ac_max_here_lines=38}
265  ac_help="$ac_help  
266   --enable-frssize=XXXX will compile in a frame stack of size XXX "  # Identity of this package.
267  ac_help="$ac_help  PACKAGE_NAME=
268   --enable-cssize=XXXX produces executables with a C stack of size XXX "  PACKAGE_TARNAME=
269  ac_help="$ac_help  PACKAGE_VERSION=
270   --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs "  PACKAGE_STRING=
271  ac_help="$ac_help  PACKAGE_BUGREPORT=
272   --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems "  
273  ac_help="$ac_help  # Factoring default headers for most tests.
274   --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh  "  ac_includes_default="\
275  ac_help="$ac_help  #include <stdio.h>
276   --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh  "  #if HAVE_SYS_TYPES_H
277  ac_help="$ac_help  # include <sys/types.h>
278   --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info  "  #endif
279  ac_help="$ac_help  #if HAVE_SYS_STAT_H
280   --enable-emacsdir=XXXX will manually specify the location for elisp files  "  # include <sys/stat.h>
281  ac_help="$ac_help  #endif
282   --enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes) "  #if STDC_HEADERS
283  ac_help="$ac_help  # include <stdlib.h>
284   --enable-japi=yes will compile in support for the JAPI graphical interface if present on your system"  # include <stddef.h>
285  ac_help="$ac_help  #else
286   --enable-xdr=yes will compile in support for XDR"  # if HAVE_STDLIB_H
287  ac_help="$ac_help  #  include <stdlib.h>
288   --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images  # endif
289          "  #endif
290  ac_help="$ac_help  #if HAVE_STRING_H
291   --enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files  # if !STDC_HEADERS && HAVE_MEMORY_H
292          "  #  include <memory.h>
293  ac_help="$ac_help  # endif
294   --enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files  # include <string.h>
295          "  #endif
296  ac_help="$ac_help  #if HAVE_STRINGS_H
297   --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files  # include <strings.h>
298          "  #endif
299  ac_help="$ac_help  #if HAVE_INTTYPES_H
300   --enable-custreloc uses custom gcl code if available for loading  and relocationing object files  # include <inttypes.h>
301          "  #else
302  ac_help="$ac_help  # if HAVE_STDINT_H
303   --enable-debug builds gcl with -g in CFLAGS to enable running under gdb  #  include <stdint.h>
304          "  # endif
305  ac_help="$ac_help  #endif
306   --enable-gprof builds gcl with -pg in CFLAGS to enable profiling with gprof  #if HAVE_UNISTD_H
307          "  # include <unistd.h>
308  ac_help="$ac_help  #endif"
309   --enable-static will link your GCL against static as opposed to shared system libraries  "  
310  ac_help="$ac_help  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os PROCESSOR_FLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP AWK MAKEINFO EGREP GMP GMPDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS BUILD_BFD LITTLE_END HAVE_LONG_LONG FLISP SYSTEM CLSTANDARD PAGEWIDTH RL_OBJS RL_LIB NO_PROFILE HAVE_SETENV HAVE_PUTENV USE_CLEANUP ENDIAN_ALREADY_DEFINED HAVE_SV_ONSTACK HAVE_SIGSYS HAVE_SIGEMT EMACS EMACS_SITE_LISP EMACS_DEFAULT_EL INFO_DIR TCLSH TK_CONFIG_PREFIX TK_LIBRARY TCL_LIBRARY TK_XINCLUDES TK_INCLUDE TCL_INCLUDE TK_LIB_SPEC TK_BUILD_LIB_SPEC TK_XLIBSW TCL_LIB_SPEC TCL_DL_LIBS TCL_LIBS NOTIFY BROKEN_O4_OPT FINAL_CFLAGS NIFLAGS O3FLAGS O2FLAGS EXTRA_LOBJS LEADING_UNDERSCORE GNU_LD LD_STACK_FLAGS use LIBOBJS LTLIBOBJS'
311   --enable-pic builds gcl with -fPIC in CFLAGS  ac_subst_files=''
         "  
 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"  
312    
313  # Initialize some variables set by options.  # Initialize some variables set by options.
314    ac_init_help=
315    ac_init_version=false
316  # The variables have the same names as the options, with  # The variables have the same names as the options, with
317  # dashes changed to underlines.  # dashes changed to underlines.
318  build=NONE  cache_file=/dev/null
 cache_file=./config.cache  
319  exec_prefix=NONE  exec_prefix=NONE
 host=NONE  
320  no_create=  no_create=
 nonopt=NONE  
321  no_recursion=  no_recursion=
322  prefix=NONE  prefix=NONE
323  program_prefix=NONE  program_prefix=NONE
# Line 97  program_transform_name=s,x,x, Line 326  program_transform_name=s,x,x,
326  silent=  silent=
327  site=  site=
328  srcdir=  srcdir=
 target=NONE  
329  verbose=  verbose=
330  x_includes=NONE  x_includes=NONE
331  x_libraries=NONE  x_libraries=NONE
332    
333    # Installation directory options.
334    # These are left unexpanded so users can "make install exec_prefix=/foo"
335    # and all the variables that are supposed to be based on exec_prefix
336    # by default will actually change.
337    # Use braces instead of parens because sh, perl, etc. also accept them.
338  bindir='${exec_prefix}/bin'  bindir='${exec_prefix}/bin'
339  sbindir='${exec_prefix}/sbin'  sbindir='${exec_prefix}/sbin'
340  libexecdir='${exec_prefix}/libexec'  libexecdir='${exec_prefix}/libexec'
# Line 114  oldincludedir='/usr/include' Line 348  oldincludedir='/usr/include'
348  infodir='${prefix}/info'  infodir='${prefix}/info'
349  mandir='${prefix}/man'  mandir='${prefix}/man'
350    
 # 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  
   
351  ac_prev=  ac_prev=
352  for ac_option  for ac_option
353  do  do
   
354    # If the previous option needs an argument, assign it.    # If the previous option needs an argument, assign it.
355    if test -n "$ac_prev"; then    if test -n "$ac_prev"; then
356      eval "$ac_prev=\$ac_option"      eval "$ac_prev=\$ac_option"
# Line 132  do Line 358  do
358      continue      continue
359    fi    fi
360    
361    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  
362    
363    # Accept the important Cygnus configure options, so we can diagnose typos.    # Accept the important Cygnus configure options, so we can diagnose typos.
364    
365    case "$ac_option" in    case $ac_option in
366    
367    -bindir | --bindir | --bindi | --bind | --bin | --bi)    -bindir | --bindir | --bindi | --bind | --bin | --bi)
368      ac_prev=bindir ;;      ac_prev=bindir ;;
369    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
370      bindir="$ac_optarg" ;;      bindir=$ac_optarg ;;
371    
372    -build | --build | --buil | --bui | --bu)    -build | --build | --buil | --bui | --bu)
373      ac_prev=build ;;      ac_prev=build_alias ;;
374    -build=* | --build=* | --buil=* | --bui=* | --bu=*)    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
375      build="$ac_optarg" ;;      build_alias=$ac_optarg ;;
376    
377    -cache-file | --cache-file | --cache-fil | --cache-fi \    -cache-file | --cache-file | --cache-fil | --cache-fi \
378    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
379      ac_prev=cache_file ;;      ac_prev=cache_file ;;
380    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
381    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
382      cache_file="$ac_optarg" ;;      cache_file=$ac_optarg ;;
383    
384      --config-cache | -C)
385        cache_file=config.cache ;;
386    
387    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
388      ac_prev=datadir ;;      ac_prev=datadir ;;
389    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
390    | --da=*)    | --da=*)
391      datadir="$ac_optarg" ;;      datadir=$ac_optarg ;;
392    
393    -disable-* | --disable-*)    -disable-* | --disable-*)
394      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
395      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
396      if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
397        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
398      fi     { (exit 1); exit 1; }; }
399      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
400      eval "enable_${ac_feature}=no" ;;      eval "enable_$ac_feature=no" ;;
401    
402    -enable-* | --enable-*)    -enable-* | --enable-*)
403      ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
404      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
405      if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
406        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
407      fi     { (exit 1); exit 1; }; }
408      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
409      case "$ac_option" in      case $ac_option in
410        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
411        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
412      esac      esac
413      eval "enable_${ac_feature}='$ac_optarg'" ;;      eval "enable_$ac_feature='$ac_optarg'" ;;
414    
415    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
416    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 193  do Line 419  do
419    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
420    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
421    | --exec=* | --exe=* | --ex=*)    | --exec=* | --exe=* | --ex=*)
422      exec_prefix="$ac_optarg" ;;      exec_prefix=$ac_optarg ;;
423    
424    -gas | --gas | --ga | --g)    -gas | --gas | --ga | --g)
425      # Obsolete; use --with-gas.      # Obsolete; use --with-gas.
426      with_gas=yes ;;      with_gas=yes ;;
427    
428    -help | --help | --hel | --he)    -help | --help | --hel | --he | -h)
429      # Omit some internal or obsolete options to make the list less imposing.      ac_init_help=long ;;
430      # 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*)
431      cat << EOF      ac_init_help=recursive ;;
432  Usage: configure [options] [host]    -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
433  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 ;;  
434    
435    -host | --host | --hos | --ho)    -host | --host | --hos | --ho)
436      ac_prev=host ;;      ac_prev=host_alias ;;
437    -host=* | --host=* | --hos=* | --ho=*)    -host=* | --host=* | --hos=* | --ho=*)
438      host="$ac_optarg" ;;      host_alias=$ac_optarg ;;
439    
440    -includedir | --includedir | --includedi | --included | --include \    -includedir | --includedir | --includedi | --included | --include \
441    | --includ | --inclu | --incl | --inc)    | --includ | --inclu | --incl | --inc)
442      ac_prev=includedir ;;      ac_prev=includedir ;;
443    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
444    | --includ=* | --inclu=* | --incl=* | --inc=*)    | --includ=* | --inclu=* | --incl=* | --inc=*)
445      includedir="$ac_optarg" ;;      includedir=$ac_optarg ;;
446    
447    -infodir | --infodir | --infodi | --infod | --info | --inf)    -infodir | --infodir | --infodi | --infod | --info | --inf)
448      ac_prev=infodir ;;      ac_prev=infodir ;;
449    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
450      infodir="$ac_optarg" ;;      infodir=$ac_optarg ;;
451    
452    -libdir | --libdir | --libdi | --libd)    -libdir | --libdir | --libdi | --libd)
453      ac_prev=libdir ;;      ac_prev=libdir ;;
454    -libdir=* | --libdir=* | --libdi=* | --libd=*)    -libdir=* | --libdir=* | --libdi=* | --libd=*)
455      libdir="$ac_optarg" ;;      libdir=$ac_optarg ;;
456    
457    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
458    | --libexe | --libex | --libe)    | --libexe | --libex | --libe)
459      ac_prev=libexecdir ;;      ac_prev=libexecdir ;;
460    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
461    | --libexe=* | --libex=* | --libe=*)    | --libexe=* | --libex=* | --libe=*)
462      libexecdir="$ac_optarg" ;;      libexecdir=$ac_optarg ;;
463    
464    -localstatedir | --localstatedir | --localstatedi | --localstated \    -localstatedir | --localstatedir | --localstatedi | --localstated \
465    | --localstate | --localstat | --localsta | --localst \    | --localstate | --localstat | --localsta | --localst \
# Line 290  EOF Line 468  EOF
468    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
469    | --localstate=* | --localstat=* | --localsta=* | --localst=* \    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
470    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
471      localstatedir="$ac_optarg" ;;      localstatedir=$ac_optarg ;;
472    
473    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
474      ac_prev=mandir ;;      ac_prev=mandir ;;
475    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
476      mandir="$ac_optarg" ;;      mandir=$ac_optarg ;;
477    
478    -nfp | --nfp | --nf)    -nfp | --nfp | --nf)
479      # Obsolete; use --without-fp.      # Obsolete; use --without-fp.
480      with_fp=no ;;      with_fp=no ;;
481    
482    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
483    | --no-cr | --no-c)    | --no-cr | --no-c | -n)
484      no_create=yes ;;      no_create=yes ;;
485    
486    -no-recursion | --no-recursion | --no-recursio | --no-recursi \    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 316  EOF Line 494  EOF
494    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
495    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
496    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
497      oldincludedir="$ac_optarg" ;;      oldincludedir=$ac_optarg ;;
498    
499    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
500      ac_prev=prefix ;;      ac_prev=prefix ;;
501    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
502      prefix="$ac_optarg" ;;      prefix=$ac_optarg ;;
503    
504    -program-prefix | --program-prefix | --program-prefi | --program-pref \    -program-prefix | --program-prefix | --program-prefi | --program-pref \
505    | --program-pre | --program-pr | --program-p)    | --program-pre | --program-pr | --program-p)
506      ac_prev=program_prefix ;;      ac_prev=program_prefix ;;
507    -program-prefix=* | --program-prefix=* | --program-prefi=* \    -program-prefix=* | --program-prefix=* | --program-prefi=* \
508    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
509      program_prefix="$ac_optarg" ;;      program_prefix=$ac_optarg ;;
510    
511    -program-suffix | --program-suffix | --program-suffi | --program-suff \    -program-suffix | --program-suffix | --program-suffi | --program-suff \
512    | --program-suf | --program-su | --program-s)    | --program-suf | --program-su | --program-s)
513      ac_prev=program_suffix ;;      ac_prev=program_suffix ;;
514    -program-suffix=* | --program-suffix=* | --program-suffi=* \    -program-suffix=* | --program-suffix=* | --program-suffi=* \
515    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
516      program_suffix="$ac_optarg" ;;      program_suffix=$ac_optarg ;;
517    
518    -program-transform-name | --program-transform-name \    -program-transform-name | --program-transform-name \
519    | --program-transform-nam | --program-transform-na \    | --program-transform-nam | --program-transform-na \
# Line 352  EOF Line 530  EOF
530    | --program-transfo=* | --program-transf=* \    | --program-transfo=* | --program-transf=* \
531    | --program-trans=* | --program-tran=* \    | --program-trans=* | --program-tran=* \
532    | --progr-tra=* | --program-tr=* | --program-t=*)    | --progr-tra=* | --program-tr=* | --program-t=*)
533      program_transform_name="$ac_optarg" ;;      program_transform_name=$ac_optarg ;;
534    
535    -q | -quiet | --quiet | --quie | --qui | --qu | --q \    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
536    | -silent | --silent | --silen | --sile | --sil)    | -silent | --silent | --silen | --sile | --sil)
# Line 362  EOF Line 540  EOF
540      ac_prev=sbindir ;;      ac_prev=sbindir ;;
541    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
542    | --sbi=* | --sb=*)    | --sbi=* | --sb=*)
543      sbindir="$ac_optarg" ;;      sbindir=$ac_optarg ;;
544    
545    -sharedstatedir | --sharedstatedir | --sharedstatedi \    -sharedstatedir | --sharedstatedir | --sharedstatedi \
546    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
# Line 373  EOF Line 551  EOF
551    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
552    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
553    | --sha=* | --sh=*)    | --sha=* | --sh=*)
554      sharedstatedir="$ac_optarg" ;;      sharedstatedir=$ac_optarg ;;
555    
556    -site | --site | --sit)    -site | --site | --sit)
557      ac_prev=site ;;      ac_prev=site ;;
558    -site=* | --site=* | --sit=*)    -site=* | --site=* | --sit=*)
559      site="$ac_optarg" ;;      site=$ac_optarg ;;
560    
561    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
562      ac_prev=srcdir ;;      ac_prev=srcdir ;;
563    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
564      srcdir="$ac_optarg" ;;      srcdir=$ac_optarg ;;
565    
566    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
567    | --syscon | --sysco | --sysc | --sys | --sy)    | --syscon | --sysco | --sysc | --sys | --sy)
568      ac_prev=sysconfdir ;;      ac_prev=sysconfdir ;;
569    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
570    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
571      sysconfdir="$ac_optarg" ;;      sysconfdir=$ac_optarg ;;
572    
573    -target | --target | --targe | --targ | --tar | --ta | --t)    -target | --target | --targe | --targ | --tar | --ta | --t)
574      ac_prev=target ;;      ac_prev=target_alias ;;
575    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
576      target="$ac_optarg" ;;      target_alias=$ac_optarg ;;
577    
578    -v | -verbose | --verbose | --verbos | --verbo | --verb)    -v | -verbose | --verbose | --verbos | --verbo | --verb)
579      verbose=yes ;;      verbose=yes ;;
580    
581    -version | --version | --versio | --versi | --vers)    -version | --version | --versio | --versi | --vers | -V)
582      echo "configure generated by autoconf version 2.13"      ac_init_version=: ;;
     exit 0 ;;  
583    
584    -with-* | --with-*)    -with-* | --with-*)
585      ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
586      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
587      if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
589      fi     { (exit 1); exit 1; }; }
590      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
591      case "$ac_option" in      case $ac_option in
592        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
594      esac      esac
595      eval "with_${ac_package}='$ac_optarg'" ;;      eval "with_$ac_package='$ac_optarg'" ;;
596    
597    -without-* | --without-*)    -without-* | --without-*)
598      ac_package=`echo $ac_option|sed -e 's/-*without-//'`      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
599      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
600      if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
601        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
602      fi     { (exit 1); exit 1; }; }
603      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package | sed 's/-/_/g'`
604      eval "with_${ac_package}=no" ;;      eval "with_$ac_package=no" ;;
605    
606    --x)    --x)
607      # Obsolete; use --with-x.      # Obsolete; use --with-x.
# Line 435  EOF Line 612  EOF
612      ac_prev=x_includes ;;      ac_prev=x_includes ;;
613    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
614    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
615      x_includes="$ac_optarg" ;;      x_includes=$ac_optarg ;;
616    
617    -x-libraries | --x-libraries | --x-librarie | --x-librari \    -x-libraries | --x-libraries | --x-librarie | --x-librari \
618    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
619      ac_prev=x_libraries ;;      ac_prev=x_libraries ;;
620    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
621    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
622      x_libraries="$ac_optarg" ;;      x_libraries=$ac_optarg ;;
623    
624    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }    -*) { echo "$as_me: error: unrecognized option: $ac_option
625    Try \`$0 --help' for more information." >&2
626       { (exit 1); exit 1; }; }
627      ;;      ;;
628    
629      *=*)
630        ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
631        # Reject names that are not valid shell variable names.
632        expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
633          { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
634       { (exit 1); exit 1; }; }
635        ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
636        eval "$ac_envvar='$ac_optarg'"
637        export $ac_envvar ;;
638    
639    *)    *)
640      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then      # FIXME: should be removed in autoconf 3.0.
641        echo "configure: warning: $ac_option: invalid host type" 1>&2      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
642      fi      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
643      if test "x$nonopt" != xNONE; then        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
644        { 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"  
645      ;;      ;;
646    
647    esac    esac
648  done  done
649    
650  if test -n "$ac_prev"; then  if test -n "$ac_prev"; then
651    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
652  fi    { echo "$as_me: error: missing argument to $ac_option" >&2
653       { (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  
654  fi  fi
 exec 5>./config.log  
655    
656  echo "\  # Be sure to have absolute paths.
657  This file contains any messages produced by compilers while  for ac_var in exec_prefix prefix
658  running configure, to aid debugging if configure makes a mistake.  do
659  " 1>&5    eval ac_val=$`echo $ac_var`
660      case $ac_val in
661        [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
662        *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663       { (exit 1); exit 1; }; };;
664      esac
665    done
666    
667  # Strip out --no-create and --no-recursion so they do not pile up.  # Be sure to have absolute paths.
668  # Also quote any args containing shell metacharacters.  for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
669  ac_configure_args=                localstatedir libdir includedir oldincludedir infodir mandir
 for ac_arg  
670  do  do
671    case "$ac_arg" in    eval ac_val=$`echo $ac_var`
672    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    case $ac_val in
673    | --no-cr | --no-c) ;;      [\\/$]* | ?:[\\/]* ) ;;
674    -no-recursion | --no-recursion | --no-recursio | --no-recursi \      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
675    | --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" ;;  
676    esac    esac
677  done  done
678    
679  # NLS nuisances.  # There might be people who depend on the old broken behavior: `$host'
680  # Only set these to C if already set.  These must not be set unconditionally  # used to hold the argument of --host etc.
681  # because not all systems understand e.g. LANG=C (notably SCO).  # FIXME: To remove some day.
682  # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!  build=$build_alias
683  # Non-C LC_CTYPE values break the ctype check.  host=$host_alias
684  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi  target=$target_alias
685  if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi  
686  if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi  # FIXME: To remove some day.
687  if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi  if test "x$host_alias" != x; then
688      if test "x$build_alias" = x; then
689        cross_compiling=maybe
690        echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
691        If a cross compiler is detected then cross compile mode will be used." >&2
692      elif test "x$build_alias" != "x$host_alias"; then
693        cross_compiling=yes
694      fi
695    fi
696    
697  # confdefs.h avoids OS command line length limits that DEFS can exceed.  ac_tool_prefix=
698  rm -rf conftest* confdefs.h  test -n "$host_alias" && ac_tool_prefix=$host_alias-
699  # AIX cpp loses on an empty file, so make sure it contains at least a newline.  
700  echo > confdefs.h  test "$silent" = yes && exec 6>/dev/null
701    
 # 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=  
702    
703  # Find the source files, if location was not specified.  # Find the source files, if location was not specified.
704  if test -z "$srcdir"; then  if test -z "$srcdir"; then
705    ac_srcdir_defaulted=yes    ac_srcdir_defaulted=yes
706    # Try the directory containing this script, then its parent.    # Try the directory containing this script, then its parent.
707    ac_prog=$0    ac_confdir=`(dirname "$0") 2>/dev/null ||
708    ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`  $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
709    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.           X"$0" : 'X\(//\)[^/]' \| \
710             X"$0" : 'X\(//\)$' \| \
711             X"$0" : 'X\(/\)' \| \
712             .     : '\(.\)' 2>/dev/null ||
713    echo X"$0" |
714        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
715              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
716              /^X\(\/\/\)$/{ s//\1/; q; }
717              /^X\(\/\).*/{ s//\1/; q; }
718              s/.*/./; q'`
719    srcdir=$ac_confdir    srcdir=$ac_confdir
720    if test ! -r $srcdir/$ac_unique_file; then    if test ! -r $srcdir/$ac_unique_file; then
721      srcdir=..      srcdir=..
# Line 537  else Line 725  else
725  fi  fi
726  if test ! -r $srcdir/$ac_unique_file; then  if test ! -r $srcdir/$ac_unique_file; then
727    if test "$ac_srcdir_defaulted" = yes; then    if test "$ac_srcdir_defaulted" = yes; then
728      { 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
729       { (exit 1); exit 1; }; }
730    else    else
731      { 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
732       { (exit 1); exit 1; }; }
733    fi    fi
734  fi  fi
735  srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`  (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
736      { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
737       { (exit 1); exit 1; }; }
738    srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
739    ac_env_build_alias_set=${build_alias+set}
740    ac_env_build_alias_value=$build_alias
741    ac_cv_env_build_alias_set=${build_alias+set}
742    ac_cv_env_build_alias_value=$build_alias
743    ac_env_host_alias_set=${host_alias+set}
744    ac_env_host_alias_value=$host_alias
745    ac_cv_env_host_alias_set=${host_alias+set}
746    ac_cv_env_host_alias_value=$host_alias
747    ac_env_target_alias_set=${target_alias+set}
748    ac_env_target_alias_value=$target_alias
749    ac_cv_env_target_alias_set=${target_alias+set}
750    ac_cv_env_target_alias_value=$target_alias
751    ac_env_CC_set=${CC+set}
752    ac_env_CC_value=$CC
753    ac_cv_env_CC_set=${CC+set}
754    ac_cv_env_CC_value=$CC
755    ac_env_CFLAGS_set=${CFLAGS+set}
756    ac_env_CFLAGS_value=$CFLAGS
757    ac_cv_env_CFLAGS_set=${CFLAGS+set}
758    ac_cv_env_CFLAGS_value=$CFLAGS
759    ac_env_LDFLAGS_set=${LDFLAGS+set}
760    ac_env_LDFLAGS_value=$LDFLAGS
761    ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
762    ac_cv_env_LDFLAGS_value=$LDFLAGS
763    ac_env_CPPFLAGS_set=${CPPFLAGS+set}
764    ac_env_CPPFLAGS_value=$CPPFLAGS
765    ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
766    ac_cv_env_CPPFLAGS_value=$CPPFLAGS
767    ac_env_CPP_set=${CPP+set}
768    ac_env_CPP_value=$CPP
769    ac_cv_env_CPP_set=${CPP+set}
770    ac_cv_env_CPP_value=$CPP
771    
772    #
773    # Report the --help message.
774    #
775    if test "$ac_init_help" = "long"; then
776      # Omit some internal or obsolete options to make the list less imposing.
777      # This message is too long to be a string in the A/UX 3.1 sh.
778      cat <<_ACEOF
779    \`configure' configures this package to adapt to many kinds of systems.
780    
781    Usage: $0 [OPTION]... [VAR=VALUE]...
782    
783    To assign environment variables (e.g., CC, CFLAGS...), specify them as
784    VAR=VALUE.  See below for descriptions of some of the useful variables.
785    
786    Defaults for the options are specified in brackets.
787    
788    Configuration:
789      -h, --help              display this help and exit
790          --help=short        display options specific to this package
791          --help=recursive    display the short help of all the included packages
792      -V, --version           display version information and exit
793      -q, --quiet, --silent   do not print \`checking...' messages
794          --cache-file=FILE   cache test results in FILE [disabled]
795      -C, --config-cache      alias for \`--cache-file=config.cache'
796      -n, --no-create         do not create output files
797          --srcdir=DIR        find the sources in DIR [configure dir or \`..']
798    
799    _ACEOF
800    
801      cat <<_ACEOF
802    Installation directories:
803      --prefix=PREFIX         install architecture-independent files in PREFIX
804                              [$ac_default_prefix]
805      --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
806                              [PREFIX]
807    
808    By default, \`make install' will install all the files in
809    \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
810    an installation prefix other than \`$ac_default_prefix' using \`--prefix',
811    for instance \`--prefix=\$HOME'.
812    
813    For better control, use the options below.
814    
815    Fine tuning of the installation directories:
816      --bindir=DIR           user executables [EPREFIX/bin]
817      --sbindir=DIR          system admin executables [EPREFIX/sbin]
818      --libexecdir=DIR       program executables [EPREFIX/libexec]
819      --datadir=DIR          read-only architecture-independent data [PREFIX/share]
820      --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
821      --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
822      --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
823      --libdir=DIR           object code libraries [EPREFIX/lib]
824      --includedir=DIR       C header files [PREFIX/include]
825      --oldincludedir=DIR    C header files for non-gcc [/usr/include]
826      --infodir=DIR          info documentation [PREFIX/info]
827      --mandir=DIR           man documentation [PREFIX/man]
828    _ACEOF
829    
830      cat <<\_ACEOF
831    
832    X features:
833      --x-includes=DIR    X include files are in DIR
834      --x-libraries=DIR   X library files are in DIR
835    
836    System types:
837      --build=BUILD     configure for building on BUILD [guessed]
838      --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839    _ACEOF
840    fi
841    
842    if test -n "$ac_init_help"; then
843    
844      cat <<\_ACEOF
845    
846    Optional Features:
847      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
848      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
849     --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)
850     --enable-holepage=XXXX will compile in a XXX-sized hole between the heap and relocatable memory area (eg '--enable-holepage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each)
851     --enable-vssize=XXXX will compile in a value stack of size XXX
852     --enable-bdssize=XXXX will compile in a binding stack of size XXX
853     --enable-ihssize=XXXX will compile in a invocation history stack of size XXX
854     --enable-frssize=XXXX will compile in a frame stack of size XXX
855     --enable-cssize=XXXX produces executables with a C stack of size XXX
856     --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs
857     --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems
858     --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh
859     --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh
860     --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info
861     --enable-emacsdir=XXXX will manually specify the location for elisp files
862     --enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes)
863     --enable-japi=yes will compile in support for the JAPI graphical interface if present on your system
864     --enable-xdr=yes will compile in support for XDR
865     --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images
866    
867     --enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files
868    
869     --enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files
870    
871     --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files
872    
873     --enable-custreloc uses custom gcl code if available for loading  and relocationing object files
874    
875     --enable-debug builds gcl with -g in CFLAGS to enable running under gdb
876    
877     --enable-gprof builds gcl with -pg in CFLAGS to enable profiling with gprof
878    
879     --enable-static will link your GCL against static as opposed to shared system libraries
880     --enable-pic builds gcl with -fPIC in CFLAGS
881    
882     --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source
883    
884    --enable-readine    enables command line completion via the readline library
885    --enable-ansi builds a large gcl aiming for ansi compliance,
886                        --disable-ansi builds the smaller traditional CLtL1 image
887    
888    Optional Packages:
889      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
890      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
891      --with-x                use the X Window System
892    
893    Some influential environment variables:
894      CC          C compiler command
895      CFLAGS      C compiler flags
896      LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
897                  nonstandard directory <lib dir>
898      CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
899                  headers in a nonstandard directory <include dir>
900      CPP         C preprocessor
901    
902    Use these variables to override the choices made by `configure' or to help
903    it to find libraries and programs with nonstandard names/locations.
904    
905    _ACEOF
906    fi
907    
908    if test "$ac_init_help" = "recursive"; then
909      # If there are subdirs, report their specific --help.
910      ac_popdir=`pwd`
911      for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
912        test -d $ac_dir || continue
913        ac_builddir=.
914    
915    if test "$ac_dir" != .; then
916      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
917      # A "../" for each directory in $ac_dir_suffix.
918      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
919    else
920      ac_dir_suffix= ac_top_builddir=
921    fi
922    
923    case $srcdir in
924      .)  # No --srcdir option.  We are building in place.
925        ac_srcdir=.
926        if test -z "$ac_top_builddir"; then
927           ac_top_srcdir=.
928        else
929           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
930        fi ;;
931      [\\/]* | ?:[\\/]* )  # Absolute path.
932        ac_srcdir=$srcdir$ac_dir_suffix;
933        ac_top_srcdir=$srcdir ;;
934      *) # Relative path.
935        ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
936        ac_top_srcdir=$ac_top_builddir$srcdir ;;
937    esac
938    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
939    # absolute.
940    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
941    ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
942    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
943    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
944    
945        cd $ac_dir
946        # Check for guested configure; otherwise get Cygnus style configure.
947        if test -f $ac_srcdir/configure.gnu; then
948          echo
949          $SHELL $ac_srcdir/configure.gnu  --help=recursive
950        elif test -f $ac_srcdir/configure; then
951          echo
952          $SHELL $ac_srcdir/configure  --help=recursive
953        elif test -f $ac_srcdir/configure.ac ||
954               test -f $ac_srcdir/configure.in; then
955          echo
956          $ac_configure --help
957        else
958          echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959        fi
960        cd $ac_popdir
961      done
962    fi
963    
964    test -n "$ac_init_help" && exit 0
965    if $ac_init_version; then
966      cat <<\_ACEOF
967    
968    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
969    Free Software Foundation, Inc.
970    This configure script is free software; the Free Software Foundation
971    gives unlimited permission to copy, distribute and modify it.
972    _ACEOF
973      exit 0
974    fi
975    exec 5>config.log
976    cat >&5 <<_ACEOF
977    This file contains any messages produced by compilers while
978    running configure, to aid debugging if configure makes a mistake.
979    
980    It was created by $as_me, which was
981    generated by GNU Autoconf 2.56.  Invocation command line was
982    
983      $ $0 $@
984    
985    _ACEOF
986    {
987    cat <<_ASUNAME
988    ## --------- ##
989    ## Platform. ##
990    ## --------- ##
991    
992    hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993    uname -m = `(uname -m) 2>/dev/null || echo unknown`
994    uname -r = `(uname -r) 2>/dev/null || echo unknown`
995    uname -s = `(uname -s) 2>/dev/null || echo unknown`
996    uname -v = `(uname -v) 2>/dev/null || echo unknown`
997    
998    /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999    /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1000    
1001    /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1002    /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1003    /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004    hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1005    /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1006    /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1007    /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1008    
1009    _ASUNAME
1010    
1011    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012    for as_dir in $PATH
1013    do
1014      IFS=$as_save_IFS
1015      test -z "$as_dir" && as_dir=.
1016      echo "PATH: $as_dir"
1017    done
1018    
1019    } >&5
1020    
1021    cat >&5 <<_ACEOF
1022    
1023    
1024    ## ----------- ##
1025    ## Core tests. ##
1026    ## ----------- ##
1027    
1028    _ACEOF
1029    
1030    
1031    # Keep a trace of the command line.
1032    # Strip out --no-create and --no-recursion so they do not pile up.
1033    # Strip out --silent because we don't want to record it for future runs.
1034    # Also quote any args containing shell meta-characters.
1035    # Make two passes to allow for proper duplicate-argument suppression.
1036    ac_configure_args=
1037    ac_configure_args0=
1038    ac_configure_args1=
1039    ac_sep=
1040    ac_must_keep_next=false
1041    for ac_pass in 1 2
1042    do
1043      for ac_arg
1044      do
1045        case $ac_arg in
1046        -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047        -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048        | -silent | --silent | --silen | --sile | --sil)
1049          continue ;;
1050        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051          ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1052        esac
1053        case $ac_pass in
1054        1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1055        2)
1056          ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057          if test $ac_must_keep_next = true; then
1058            ac_must_keep_next=false # Got value, back to normal.
1059          else
1060            case $ac_arg in
1061              *=* | --config-cache | -C | -disable-* | --disable-* \
1062              | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063              | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064              | -with-* | --with-* | -without-* | --without-* | --x)
1065                case "$ac_configure_args0 " in
1066                  "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1067                esac
1068                ;;
1069              -* ) ac_must_keep_next=true ;;
1070            esac
1071          fi
1072          ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073          # Get rid of the leading space.
1074          ac_sep=" "
1075          ;;
1076        esac
1077      done
1078    done
1079    $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080    $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1081    
1082    # When interrupted or exit'd, cleanup temporary files, and complete
1083    # config.log.  We remove comments because anyway the quotes in there
1084    # would cause problems or look ugly.
1085    # WARNING: Be sure not to use single quotes in there, as some shells,
1086    # such as our DU 5.0 friend, will then `close' the trap.
1087    trap 'exit_status=$?
1088      # Save into config.log some information that might help in debugging.
1089      {
1090        echo
1091    
1092        cat <<\_ASBOX
1093    ## ---------------- ##
1094    ## Cache variables. ##
1095    ## ---------------- ##
1096    _ASBOX
1097        echo
1098        # The following way of writing the cache mishandles newlines in values,
1099    {
1100      (set) 2>&1 |
1101        case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1102        *ac_space=\ *)
1103          sed -n \
1104            "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105              s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106          ;;
1107        *)
1108          sed -n \
1109            "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1110          ;;
1111        esac;
1112    }
1113        echo
1114    
1115        cat <<\_ASBOX
1116    ## ----------------- ##
1117    ## Output variables. ##
1118    ## ----------------- ##
1119    _ASBOX
1120        echo
1121        for ac_var in $ac_subst_vars
1122        do
1123          eval ac_val=$`echo $ac_var`
1124          echo "$ac_var='"'"'$ac_val'"'"'"
1125        done | sort
1126        echo
1127    
1128        if test -n "$ac_subst_files"; then
1129          cat <<\_ASBOX
1130    ## ------------- ##
1131    ## Output files. ##
1132    ## ------------- ##
1133    _ASBOX
1134          echo
1135          for ac_var in $ac_subst_files
1136          do
1137            eval ac_val=$`echo $ac_var`
1138            echo "$ac_var='"'"'$ac_val'"'"'"
1139          done | sort
1140          echo
1141        fi
1142    
1143        if test -s confdefs.h; then
1144          cat <<\_ASBOX
1145    ## ----------- ##
1146    ## confdefs.h. ##
1147    ## ----------- ##
1148    _ASBOX
1149          echo
1150          sed "/^$/d" confdefs.h | sort
1151          echo
1152        fi
1153        test "$ac_signal" != 0 &&
1154          echo "$as_me: caught signal $ac_signal"
1155        echo "$as_me: exit $exit_status"
1156      } >&5
1157      rm -f core core.* *.core &&
1158      rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1159        exit $exit_status
1160         ' 0
1161    for ac_signal in 1 2 13 15; do
1162      trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163    done
1164    ac_signal=0
1165    
1166    # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167    rm -rf conftest* confdefs.h
1168    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1169    echo >confdefs.h
1170    
1171    # Predefined preprocessor variables.
1172    
1173    cat >>confdefs.h <<_ACEOF
1174    #define PACKAGE_NAME "$PACKAGE_NAME"
1175    _ACEOF
1176    
1177    
1178    cat >>confdefs.h <<_ACEOF
1179    #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180    _ACEOF
1181    
1182    
1183    cat >>confdefs.h <<_ACEOF
1184    #define PACKAGE_VERSION "$PACKAGE_VERSION"
1185    _ACEOF
1186    
1187    
1188    cat >>confdefs.h <<_ACEOF
1189    #define PACKAGE_STRING "$PACKAGE_STRING"
1190    _ACEOF
1191    
1192    
1193    cat >>confdefs.h <<_ACEOF
1194    #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195    _ACEOF
1196    
1197    
1198    # Let the site file select an alternate cache file if it wants to.
1199  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
1200  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
1201    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 554  if test -z "$CONFIG_SITE"; then Line 1206  if test -z "$CONFIG_SITE"; then
1206  fi  fi
1207  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
1208    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
1209      echo "loading site script $ac_site_file"      { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210    echo "$as_me: loading site script $ac_site_file" >&6;}
1211        sed 's/^/| /' "$ac_site_file" >&5
1212      . "$ac_site_file"      . "$ac_site_file"
1213    fi    fi
1214  done  done
1215    
1216  if test -r "$cache_file"; then  if test -r "$cache_file"; then
1217    echo "loading cache $cache_file"    # Some versions of bash will fail to source /dev/null (special
1218    . $cache_file    # files actually), so we avoid doing that.
1219      if test -f "$cache_file"; then
1220        { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221    echo "$as_me: loading cache $cache_file" >&6;}
1222        case $cache_file in
1223          [\\/]* | ?:[\\/]* ) . $cache_file;;
1224          *)                      . ./$cache_file;;
1225        esac
1226      fi
1227  else  else
1228    echo "creating cache $cache_file"    { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229    > $cache_file  echo "$as_me: creating cache $cache_file" >&6;}
1230      >$cache_file
1231    fi
1232    
1233    # Check that the precious variables saved in the cache have kept the same
1234    # value.
1235    ac_cache_corrupted=false
1236    for ac_var in `(set) 2>&1 |
1237                   sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238      eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239      eval ac_new_set=\$ac_env_${ac_var}_set
1240      eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241      eval ac_new_val="\$ac_env_${ac_var}_value"
1242      case $ac_old_set,$ac_new_set in
1243        set,)
1244          { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245    echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246          ac_cache_corrupted=: ;;
1247        ,set)
1248          { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249    echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250          ac_cache_corrupted=: ;;
1251        ,);;
1252        *)
1253          if test "x$ac_old_val" != "x$ac_new_val"; then
1254            { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255    echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256            { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1257    echo "$as_me:   former value:  $ac_old_val" >&2;}
1258            { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1259    echo "$as_me:   current value: $ac_new_val" >&2;}
1260            ac_cache_corrupted=:
1261          fi;;
1262      esac
1263      # Pass precious variables to config.status.
1264      if test "$ac_new_set" = set; then
1265        case $ac_new_val in
1266        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267          ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268        *) ac_arg=$ac_var=$ac_new_val ;;
1269        esac
1270        case " $ac_configure_args " in
1271          *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1272          *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273        esac
1274      fi
1275    done
1276    if $ac_cache_corrupted; then
1277      { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278    echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279      { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280    echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281       { (exit 1); exit 1; }; }
1282  fi  fi
1283    
1284  ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
1285  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
1286  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287  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'
1288  cross_compiling=$ac_cv_prog_cc_cross  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1289    
1290  ac_exeext=  
1291  ac_objext=o  
1292  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  
1293    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  
1294    if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then  
1295      ac_n= ac_c='  
1296  ' ac_t='        '  
1297    else  
     ac_n=-n ac_c= ac_t=  
   fi  
 else  
   ac_n= ac_c='\c' ac_t=  
 fi  
1298    
1299    
1300    
1301    
1302    
1303    
1304    
1305    
1306    
1307    
1308              ac_config_headers="$ac_config_headers h/gclincl.h"
1309    
1310    
1311  VERSION=`cat majvers`.`cat minvers`  VERSION=`cat majvers`.`cat minvers`
1312    
1313    
# Line 604  help="--enable-maxpage=XXXX will compile Line 1321  help="--enable-maxpage=XXXX will compile
1321  # Check whether --enable-maxpage or --disable-maxpage was given.  # Check whether --enable-maxpage or --disable-maxpage was given.
1322  if test "${enable_maxpage+set}" = set; then  if test "${enable_maxpage+set}" = set; then
1323    enableval="$enable_maxpage"    enableval="$enable_maxpage"
1324    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1325  #define MAXPAGE $enable_maxpage  #define MAXPAGE $enable_maxpage
1326  EOF  _ACEOF
   
 fi  
1327    
1328    fi;
1329    
1330  # Check whether --enable-holepage or --disable-holepage was given.  # Check whether --enable-holepage or --disable-holepage was given.
1331  if test "${enable_holepage+set}" = set; then  if test "${enable_holepage+set}" = set; then
1332    enableval="$enable_holepage"    enableval="$enable_holepage"
1333    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1334  #define HOLEPAGE $enable_holepage  #define HOLEPAGE $enable_holepage
1335  EOF  _ACEOF
   
 fi  
1336    
1337    fi;
1338    
1339  # Check whether --enable-vssize or --disable-vssize was given.  # Check whether --enable-vssize or --disable-vssize was given.
1340  if test "${enable_vssize+set}" = set; then  if test "${enable_vssize+set}" = set; then
1341    enableval="$enable_vssize"    enableval="$enable_vssize"
1342    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1343  #define VSSIZE $enable_vssize  #define VSSIZE $enable_vssize
1344  EOF  _ACEOF
   
 fi  
1345    
1346    fi;
1347    
1348  # Check whether --enable-bdssize or --disable-bdssize was given.  # Check whether --enable-bdssize or --disable-bdssize was given.
1349  if test "${enable_bdssize+set}" = set; then  if test "${enable_bdssize+set}" = set; then
1350    enableval="$enable_bdssize"    enableval="$enable_bdssize"
1351    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1352  #define BDSSIZE $enable_bdssize  #define BDSSIZE $enable_bdssize
1353  EOF  _ACEOF
   
 fi  
1354    
1355    fi;
1356    
1357  # Check whether --enable-ihssize or --disable-ihssize was given.  # Check whether --enable-ihssize or --disable-ihssize was given.
1358  if test "${enable_ihssize+set}" = set; then  if test "${enable_ihssize+set}" = set; then
1359    enableval="$enable_ihssize"    enableval="$enable_ihssize"
1360    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1361  #define IHSSIZE $enable_ihssize  #define IHSSIZE $enable_ihssize
1362  EOF  _ACEOF
   
 fi  
1363    
1364    fi;
1365    
1366  # Check whether --enable-frssize or --disable-frssize was given.  # Check whether --enable-frssize or --disable-frssize was given.
1367  if test "${enable_frssize+set}" = set; then  if test "${enable_frssize+set}" = set; then
1368    enableval="$enable_frssize"    enableval="$enable_frssize"
1369    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1370  #define FRSSIZE $enable_frssize  #define FRSSIZE $enable_frssize
1371  EOF  _ACEOF
   
 fi  
1372    
1373    fi;
1374    
1375  # Check whether --enable-cssize or --disable-cssize was given.  # Check whether --enable-cssize or --disable-cssize was given.
1376  if test "${enable_cssize+set}" = set; then  if test "${enable_cssize+set}" = set; then
1377    enableval="$enable_cssize"    enableval="$enable_cssize"
1378    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1379  #define CSSIZE $enable_cssize  #define CSSIZE $enable_cssize
1380  EOF  _ACEOF
   
 fi  
1381    
1382    fi;
1383    
1384  # Check whether --enable-machine or --disable-machine was given.  # Check whether --enable-machine or --disable-machine was given.
1385  if test "${enable_machine+set}" = set; then  if test "${enable_machine+set}" = set; then
# Line 677  if test "${enable_machine+set}" = set; t Line 1387  if test "${enable_machine+set}" = set; t
1387    enable_machine=$enableval    enable_machine=$enableval
1388  else  else
1389    enable_machine=""    enable_machine=""
1390  fi  fi;
   
1391    
1392  #AC_ARG_ENABLE(gmp,[ --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes)] ,  #AC_ARG_ENABLE(gmp,[ --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes)] ,
1393  #[use_gmp=$enableval],[use_gmp="yes"])  #[use_gmp=$enableval],[use_gmp="yes"])
# Line 691  if test "${enable_notify+set}" = set; th Line 1400  if test "${enable_notify+set}" = set; th
1400    enable_notify=$enableval    enable_notify=$enableval
1401  else  else
1402    enable_notify="yes"    enable_notify="yes"
1403  fi  fi;
   
1404    
1405  # Check whether --enable-tkconfig or --disable-tkconfig was given.  # Check whether --enable-tkconfig or --disable-tkconfig was given.
1406  if test "${enable_tkconfig+set}" = set; then  if test "${enable_tkconfig+set}" = set; then
# Line 700  if test "${enable_tkconfig+set}" = set; Line 1408  if test "${enable_tkconfig+set}" = set;
1408    TK_CONFIG_PREFIX=$enableval    TK_CONFIG_PREFIX=$enableval
1409  else  else
1410    TK_CONFIG_PREFIX="unknown"    TK_CONFIG_PREFIX="unknown"
1411  fi  fi;
   
1412    
1413    
1414  # Check whether --enable-tclconfig or --disable-tclconfig was given.  # Check whether --enable-tclconfig or --disable-tclconfig was given.
# Line 710  if test "${enable_tclconfig+set}" = set; Line 1417  if test "${enable_tclconfig+set}" = set;
1417    TCL_CONFIG_PREFIX=$enableval    TCL_CONFIG_PREFIX=$enableval
1418  else  else
1419    TCL_CONFIG_PREFIX="unknown"    TCL_CONFIG_PREFIX="unknown"
1420  fi  fi;
   
1421    
1422  # Check whether --enable-infodir or --disable-infodir was given.  # Check whether --enable-infodir or --disable-infodir was given.
1423  if test "${enable_infodir+set}" = set; then  if test "${enable_infodir+set}" = set; then
# Line 719  if test "${enable_infodir+set}" = set; t Line 1425  if test "${enable_infodir+set}" = set; t
1425    INFO_DIR=$enableval    INFO_DIR=$enableval
1426  else  else
1427    INFO_DIR="unknown"    INFO_DIR="unknown"
1428  fi  fi;
   
1429  INFO_DIR=`eval echo $INFO_DIR/`  INFO_DIR=`eval echo $INFO_DIR/`
1430    
1431  # Check whether --enable-emacsdir or --disable-emacsdir was given.  # Check whether --enable-emacsdir or --disable-emacsdir was given.
# Line 729  if test "${enable_emacsdir+set}" = set; Line 1434  if test "${enable_emacsdir+set}" = set;
1434    EMACS_SITE_LISP=$enableval    EMACS_SITE_LISP=$enableval
1435  else  else
1436    EMACS_SITE_LISP="unknown"    EMACS_SITE_LISP="unknown"
1437  fi  fi;
   
1438  EMACS_SITE_LISP=`eval echo $EMACS_SITE_LISP`  EMACS_SITE_LISP=`eval echo $EMACS_SITE_LISP`
1439    
1440  # Check whether --enable-common-binary or --disable-common-binary was given.  # Check whether --enable-common-binary or --disable-common-binary was given.
# Line 739  if test "${enable_common_binary+set}" = Line 1443  if test "${enable_common_binary+set}" =
1443    use_common_binary=$enableval    use_common_binary=$enableval
1444  else  else
1445    use_common_binary="yes"    use_common_binary="yes"
1446  fi  fi;
   
1447    
1448  # Check whether --enable-japi or --disable-japi was given.  # Check whether --enable-japi or --disable-japi was given.
1449  if test "${enable_japi+set}" = set; then  if test "${enable_japi+set}" = set; then
# Line 748  if test "${enable_japi+set}" = set; then Line 1451  if test "${enable_japi+set}" = set; then
1451    try_japi=$enableval    try_japi=$enableval
1452  else  else
1453    try_japi="no"    try_japi="no"
1454  fi  fi;
   
1455    
1456  # Check whether --enable-xdr or --disable-xdr was given.  # Check whether --enable-xdr or --disable-xdr was given.
1457  if test "${enable_xdr+set}" = set; then  if test "${enable_xdr+set}" = set; then
# Line 757  if test "${enable_xdr+set}" = set; then Line 1459  if test "${enable_xdr+set}" = set; then
1459    try_xdr=$enableval    try_xdr=$enableval
1460  else  else
1461    try_xdr="no"    try_xdr="no"
1462  fi  fi;
   
1463    
1464  #  #
1465  # Host information  # Host information
1466  #  #
1467    
1468    
# Line 775  for ac_dir in $srcdir $srcdir/.. $srcdir Line 1476  for ac_dir in $srcdir $srcdir/.. $srcdir
1476      ac_aux_dir=$ac_dir      ac_aux_dir=$ac_dir
1477      ac_install_sh="$ac_aux_dir/install.sh -c"      ac_install_sh="$ac_aux_dir/install.sh -c"
1478      break      break
1479      elif test -f $ac_dir/shtool; then
1480        ac_aux_dir=$ac_dir
1481        ac_install_sh="$ac_aux_dir/shtool install -c"
1482        break
1483    fi    fi
1484  done  done
1485  if test -z "$ac_aux_dir"; then  if test -z "$ac_aux_dir"; then
1486    { 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
1487  fi  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1488  ac_config_guess=$ac_aux_dir/config.guess     { (exit 1); exit 1; }; }
1489  ac_config_sub=$ac_aux_dir/config.sub  fi
1490  ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.  ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1491    ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1492    ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1493    
1494  # Make sure we can run config.sub.  # Make sure we can run config.sub.
1495  if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :  $ac_config_sub sun4 >/dev/null 2>&1 ||
1496  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
1497  fi  echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1498       { (exit 1); exit 1; }; }
1499  echo $ac_n "checking host system type""... $ac_c" 1>&6  
1500  echo "configure:795: checking host system type" >&5  echo "$as_me:$LINENO: checking build system type" >&5
1501    echo $ECHO_N "checking build system type... $ECHO_C" >&6
1502    if test "${ac_cv_build+set}" = set; then
1503      echo $ECHO_N "(cached) $ECHO_C" >&6
1504    else
1505      ac_cv_build_alias=$build_alias
1506    test -z "$ac_cv_build_alias" &&
1507      ac_cv_build_alias=`$ac_config_guess`
1508    test -z "$ac_cv_build_alias" &&
1509      { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1510    echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1511       { (exit 1); exit 1; }; }
1512    ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1513      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1514    echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1515       { (exit 1); exit 1; }; }
1516    
1517    fi
1518    echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1519    echo "${ECHO_T}$ac_cv_build" >&6
1520    build=$ac_cv_build
1521    build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1522    build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1523    build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1524    
1525    
1526    echo "$as_me:$LINENO: checking host system type" >&5
1527    echo $ECHO_N "checking host system type... $ECHO_C" >&6
1528    if test "${ac_cv_host+set}" = set; then
1529      echo $ECHO_N "(cached) $ECHO_C" >&6
1530    else
1531      ac_cv_host_alias=$host_alias
1532    test -z "$ac_cv_host_alias" &&
1533      ac_cv_host_alias=$ac_cv_build_alias
1534    ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1535      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1536    echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1537       { (exit 1); exit 1; }; }
1538    
1539    fi
1540    echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1541    echo "${ECHO_T}$ac_cv_host" >&6
1542    host=$ac_cv_host
1543    host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1544    host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1545    host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546    
 host_alias=$host  
 case "$host_alias" in  
 NONE)  
   case $nonopt in  
   NONE)  
     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :  
     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }  
     fi ;;  
   *) host_alias=$nonopt ;;  
   esac ;;  
 esac  
   
 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  
1547    
1548  canonical=$host  canonical=$host
1549  my_host_kernel=`echo $host_os | awk '{j=split($1,A,"-");print A[1]}'`  my_host_kernel=`echo $host_os | awk '{j=split($1,A,"-");print A[1]}'`
1550  my_host_system=`echo $host_os | awk '{j=split($1,A,"-");if (j>=2) print A[2]}'`  my_host_system=`echo $host_os | awk '{j=split($1,A,"-");if (j>=2) print A[2]}'`
1551  cat >> confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
1552  #define HOST_CPU "`echo $host_cpu | awk '{print toupper($0)}'`"  #define HOST_CPU "`echo $host_cpu | awk '{print toupper($0)}'`"
1553  EOF  _ACEOF
1554    
1555  cat >> confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
1556  #define HOST_KERNEL "`echo $my_host_kernel | awk '{print toupper($0)}'`"  #define HOST_KERNEL "`echo $my_host_kernel | awk '{print toupper($0)}'`"
1557  EOF  _ACEOF
1558    
1559  if test "$my_host_system" != "" ; then  if test "$my_host_system" != "" ; then
1560          cat >> confdefs.h <<EOF          cat >>confdefs.h <<_ACEOF
1561  #define HOST_SYSTEM "`echo $my_host_system | awk '{print toupper($0)}'`"  #define HOST_SYSTEM "`echo $my_host_system | awk '{print toupper($0)}'`"
1562  EOF  _ACEOF
1563    
1564  fi  fi
1565  echo "$ac_t""host=$host" 1>&6  echo "$as_me:$LINENO: result: host=$host" >&5
1566    echo "${ECHO_T}host=$host" >&6
1567    
1568  PROCESSOR_FLAGS=${PROCESSOR_FLAGS:-""}  PROCESSOR_FLAGS=${PROCESSOR_FLAGS:-""}
1569  LD_STACK_FLAGS=""  LD_STACK_FLAGS=""
# Line 882  case $canonical in Line 1617  case $canonical in
1617    
1618       powerpc-*-darwin*)       powerpc-*-darwin*)
1619          use=powerpc-macosx;;          use=powerpc-macosx;;
1620        
1621       alpha-dec-osf)       alpha-dec-osf)
1622       use=alpha-osf1;;       use=alpha-osf1;;
1623    
# Line 913  case $canonical in Line 1648  case $canonical in
1648             IRIX3*)             IRIX3*)
1649              use=sgi4d;;              use=sgi4d;;
1650         esac ;;         esac ;;
1651    
1652    
1653       m68k-apple-aux*)       m68k-apple-aux*)
1654       use=mac2;;       use=mac2;;
# Line 996  case $canonical in Line 1731  case $canonical in
1731           echo "Linker stack size flags added: $LD_STACK_FLAGS"           echo "Linker stack size flags added: $LD_STACK_FLAGS"
1732         fi         fi
1733         echo "Executable C stack size will be $CSSIZE"         echo "Executable C stack size will be $CSSIZE"
1734         cat >> confdefs.h <<EOF         cat >>confdefs.h <<_ACEOF
1735  #define CSSIZE $enable_cssize  #define CSSIZE $enable_cssize
1736  EOF  _ACEOF
1737    
1738    
1739         use=mingw;;         use=mingw;;
# Line 1013  EOF Line 1748  EOF
1748          # 'ld -Z' means disable W^X          # 'ld -Z' means disable W^X
1749          TLDFLAGS="$TLDFLAGS -Z"          TLDFLAGS="$TLDFLAGS -Z"
1750          use=FreeBSD;;          use=FreeBSD;;
1751      
1752  esac  esac
1753    
1754    
# Line 1030  def_locbfd="no" Line 1765  def_locbfd="no"
1765  def_pic="no";  def_pic="no";
1766  def_static="no";  def_static="no";
1767  def_static="debug";  def_static="debug";
1768  case $use in  case $use in
1769       *linux)       *linux)
1770          ln -snf linux.defs h/$use.defs;          ln -snf linux.defs h/$use.defs;
1771          case $use in          case $use in
# Line 1040  case $use in Line 1775  case $use in
1775  #               mips*)  #               mips*)
1776  #                       def_dlopen="yes" ; def_statsysbfd="no" ;;  #                       def_dlopen="yes" ; def_statsysbfd="no" ;;
1777  # 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
1778  # on these architectures -- CM                    # on these architectures -- CM
1779                  ia64*)                  ia64*)
1780                          def_dlopen="yes" ; def_statsysbfd="no" ; def_static="no" ;;                          def_dlopen="yes" ; def_statsysbfd="no" ; def_static="no" ;;
1781                  hppa*)                  hppa*)
# Line 1055  esac Line 1790  esac
1790  # Check whether --enable-dlopen or --disable-dlopen was given.  # Check whether --enable-dlopen or --disable-dlopen was given.
1791  if test "${enable_dlopen+set}" = set; then  if test "${enable_dlopen+set}" = set; then
1792    enableval="$enable_dlopen"    enableval="$enable_dlopen"
1793    :  
1794  else  else
1795    enable_dlopen="$def_dlopen"    enable_dlopen="$def_dlopen"
1796  fi  fi;
   
1797  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.
1798  if test "${enable_statsysbfd+set}" = set; then  if test "${enable_statsysbfd+set}" = set; then
1799    enableval="$enable_statsysbfd"    enableval="$enable_statsysbfd"
1800    :  
1801  else  else
1802    enable_statsysbfd="$def_statsysbfd"    enable_statsysbfd="$def_statsysbfd"
1803  fi  fi;
   
1804  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.
1805  if test "${enable_dynsysbfd+set}" = set; then  if test "${enable_dynsysbfd+set}" = set; then
1806    enableval="$enable_dynsysbfd"    enableval="$enable_dynsysbfd"
1807    :  
1808  else  else
1809    enable_dynsysbfd="no"    enable_dynsysbfd="no"
1810  fi  fi;
   
1811  # Check whether --enable-locbfd or --disable-locbfd was given.  # Check whether --enable-locbfd or --disable-locbfd was given.
1812  if test "${enable_locbfd+set}" = set; then  if test "${enable_locbfd+set}" = set; then
1813    enableval="$enable_locbfd"    enableval="$enable_locbfd"
1814    :  
1815  else  else
1816    enable_locbfd="$def_locbfd"    enable_locbfd="$def_locbfd"
1817  fi  fi;
   
1818  # Check whether --enable-custreloc or --disable-custreloc was given.  # Check whether --enable-custreloc or --disable-custreloc was given.
1819  if test "${enable_custreloc+set}" = set; then  if test "${enable_custreloc+set}" = set; then
1820    enableval="$enable_custreloc"    enableval="$enable_custreloc"
1821    :  
1822  else  else
1823    enable_custreloc="$def_custreloc"    enable_custreloc="$def_custreloc"
1824  fi  fi;
   
1825  # Check whether --enable-debug or --disable-debug was given.  # Check whether --enable-debug or --disable-debug was given.
1826  if test "${enable_debug+set}" = set; then  if test "${enable_debug+set}" = set; then
1827    enableval="$enable_debug"    enableval="$enable_debug"
1828    :  
1829  else  else
1830    enable_debug="$def_debug"    enable_debug="$def_debug"
1831  fi  fi;
   
1832  # Check whether --enable-gprof or --disable-gprof was given.  # Check whether --enable-gprof or --disable-gprof was given.
1833  if test "${enable_gprof+set}" = set; then  if test "${enable_gprof+set}" = set; then
1834    enableval="$enable_gprof"    enableval="$enable_gprof"
1835    :  
1836  else  else
1837    enable_gprof="no"    enable_gprof="no"
1838  fi  fi;
   
1839  # Check whether --enable-static or --disable-static was given.  # Check whether --enable-static or --disable-static was given.
1840  if test "${enable_static+set}" = set; then  if test "${enable_static+set}" = set; then
1841    enableval="$enable_static"    enableval="$enable_static"
1842    enable_static=$enableval    enable_static=$enableval
1843  else  else
1844    enable_static="$def_static"    enable_static="$def_static"
1845  fi  fi;
   
1846  # Check whether --enable-pic or --disable-pic was given.  # Check whether --enable-pic or --disable-pic was given.
1847  if test "${enable_pic+set}" = set; then  if test "${enable_pic+set}" = set; then
1848    enableval="$enable_pic"    enableval="$enable_pic"
1849    :  
1850  else  else
1851    enable_pic="$def_pic"    enable_pic="$def_pic"
1852  fi  fi;
   
1853    
1854  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.
1855  if test "${enable_dynsysgmp+set}" = set; then  if test "${enable_dynsysgmp+set}" = set; then
1856    enableval="$enable_dynsysgmp"    enableval="$enable_dynsysgmp"
1857    :  
1858  else  else
1859    enable_dynsysgmp="yes"    enable_dynsysgmp="yes"
1860  fi  fi;
   
1861    
1862  load_opt="0"  load_opt="0"
1863  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
# Line 1183  fi Line 1908  fi
1908  ##  ##
1909  #if test "$use" = "unknown" ; then  #if test "$use" = "unknown" ; then
1910  #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"`
1911  #echo got canonical=$canonical, but was not recognized.  #echo got canonical=$canonical, but was not recognized.
1912  #echo Unable to guess type to use.  Try one of  #echo Unable to guess type to use.  Try one of
1913  #exit(1)  #exit(1)
1914  #fi  #fi
1915    
1916  echo "$ac_t""use=$use" 1>&6      echo "$as_me:$LINENO: result: use=$use" >&5
1917    echo "${ECHO_T}use=$use" >&6
1918    
1919    
1920  #  #
# Line 1204  if test "$LDFLAGS" = "" ; then Line 1930  if test "$LDFLAGS" = "" ; then
1930          LDFLAGS=" "          LDFLAGS=" "
1931  fi  fi
1932    
1933  # Extract the first word of "gcc", so it can be a program name with args.  ac_ext=c
1934    ac_cpp='$CPP $CPPFLAGS'
1935    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938    if test -n "$ac_tool_prefix"; then
1939      # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1940    set dummy ${ac_tool_prefix}gcc; ac_word=$2
1941    echo "$as_me:$LINENO: checking for $ac_word" >&5
1942    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1943    if test "${ac_cv_prog_CC+set}" = set; then
1944      echo $ECHO_N "(cached) $ECHO_C" >&6
1945    else
1946      if test -n "$CC"; then
1947      ac_cv_prog_CC="$CC" # Let the user override the test.
1948    else
1949    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950    for as_dir in $PATH
1951    do
1952      IFS=$as_save_IFS
1953      test -z "$as_dir" && as_dir=.
1954      for ac_exec_ext in '' $ac_executable_extensions; do
1955      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1956        ac_cv_prog_CC="${ac_tool_prefix}gcc"
1957        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958        break 2
1959      fi
1960    done
1961    done
1962    
1963    fi
1964    fi
1965    CC=$ac_cv_prog_CC
1966    if test -n "$CC"; then
1967      echo "$as_me:$LINENO: result: $CC" >&5
1968    echo "${ECHO_T}$CC" >&6
1969    else
1970      echo "$as_me:$LINENO: result: no" >&5
1971    echo "${ECHO_T}no" >&6
1972    fi
1973    
1974    fi
1975    if test -z "$ac_cv_prog_CC"; then
1976      ac_ct_CC=$CC
1977      # Extract the first word of "gcc", so it can be a program name with args.
1978  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1979  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
1980  echo "configure:1211: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1982    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1983    else
1984      if test -n "$ac_ct_CC"; then
1985      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1986    else
1987    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988    for as_dir in $PATH
1989    do
1990      IFS=$as_save_IFS
1991      test -z "$as_dir" && as_dir=.
1992      for ac_exec_ext in '' $ac_executable_extensions; do
1993      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994        ac_cv_prog_ac_ct_CC="gcc"
1995        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996        break 2
1997      fi
1998    done
1999    done
2000    
2001    fi
2002    fi
2003    ac_ct_CC=$ac_cv_prog_ac_ct_CC
2004    if test -n "$ac_ct_CC"; then
2005      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2006    echo "${ECHO_T}$ac_ct_CC" >&6
2007    else
2008      echo "$as_me:$LINENO: result: no" >&5
2009    echo "${ECHO_T}no" >&6
2010    fi
2011    
2012      CC=$ac_ct_CC
2013    else
2014      CC="$ac_cv_prog_CC"
2015    fi
2016    
2017    if test -z "$CC"; then
2018      if test -n "$ac_tool_prefix"; then
2019      # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2020    set dummy ${ac_tool_prefix}cc; ac_word=$2
2021    echo "$as_me:$LINENO: checking for $ac_word" >&5
2022    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023    if test "${ac_cv_prog_CC+set}" = set; then
2024      echo $ECHO_N "(cached) $ECHO_C" >&6
2025  else  else
2026    if test -n "$CC"; then    if test -n "$CC"; then
2027    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
2028  else  else
2029    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030    ac_dummy="$PATH"  for as_dir in $PATH
2031    for ac_dir in $ac_dummy; do  do
2032      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2033      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2034        ac_cv_prog_CC="gcc"    for ac_exec_ext in '' $ac_executable_extensions; do
2035        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036      fi      ac_cv_prog_CC="${ac_tool_prefix}cc"
2037    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038    IFS="$ac_save_ifs"      break 2
2039      fi
2040    done
2041    done
2042    
2043  fi  fi
2044  fi  fi
2045  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
2046  if test -n "$CC"; then  if test -n "$CC"; then
2047    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
2048    echo "${ECHO_T}$CC" >&6
2049    else
2050      echo "$as_me:$LINENO: result: no" >&5
2051    echo "${ECHO_T}no" >&6
2052    fi
2053    
2054    fi
2055    if test -z "$ac_cv_prog_CC"; then
2056      ac_ct_CC=$CC
2057      # Extract the first word of "cc", so it can be a program name with args.
2058    set dummy cc; 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="cc"
2075        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076        break 2
2077      fi
2078    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  else
2088    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2089    echo "${ECHO_T}no" >&6
2090  fi  fi
2091    
2092      CC=$ac_ct_CC
2093    else
2094      CC="$ac_cv_prog_CC"
2095    fi
2096    
2097    fi
2098  if test -z "$CC"; then  if test -z "$CC"; then
2099    # 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.
2100  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
2101  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
2102  echo "configure:1241: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_CC+set}" = set; then
2104    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2105  else  else
2106    if test -n "$CC"; then    if test -n "$CC"; then
2107    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
2108  else  else
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
2109    ac_prog_rejected=no    ac_prog_rejected=no
2110    ac_dummy="$PATH"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111    for ac_dir in $ac_dummy; do  for as_dir in $PATH
2112      test -z "$ac_dir" && ac_dir=.  do
2113      if test -f $ac_dir/$ac_word; then    IFS=$as_save_IFS
2114        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then    test -z "$as_dir" && as_dir=.
2115          ac_prog_rejected=yes    for ac_exec_ext in '' $ac_executable_extensions; do
2116          continue    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2117        fi      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2118        ac_cv_prog_CC="cc"         ac_prog_rejected=yes
2119        break         continue
2120      fi       fi
2121    done      ac_cv_prog_CC="cc"
2122    IFS="$ac_save_ifs"      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123        break 2
2124      fi
2125    done
2126    done
2127    
2128  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
2129    # 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.
2130    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
2131    shift    shift
2132    if test $# -gt 0; then    if test $# != 0; then
2133      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
2134      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
2135      # 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.
2136      shift      shift
2137      set dummy "$ac_dir/$ac_word" "$@"      ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
     shift  
     ac_cv_prog_CC="$@"  
2138    fi    fi
2139  fi  fi
2140  fi  fi
2141  fi  fi
2142  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
2143  if test -n "$CC"; then  if test -n "$CC"; then
2144    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
2145    echo "${ECHO_T}$CC" >&6
2146  else  else
2147    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2148    echo "${ECHO_T}no" >&6
2149  fi  fi
2150    
2151    if test -z "$CC"; then  fi
2152      case "`uname -s`" in  if test -z "$CC"; then
2153      *win32* | *WIN32*)    if test -n "$ac_tool_prefix"; then
2154        # Extract the first word of "cl", so it can be a program name with args.    for ac_prog in cl
2155  set dummy cl; ac_word=$2    do
2156  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.
2157  echo "configure:1292: checking for $ac_word" >&5  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2158  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo "$as_me:$LINENO: checking for $ac_word" >&5
2159    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160    if test "${ac_cv_prog_CC+set}" = set; then
2161      echo $ECHO_N "(cached) $ECHO_C" >&6
2162  else  else
2163    if test -n "$CC"; then    if test -n "$CC"; then
2164    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
2165  else  else
2166    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167    ac_dummy="$PATH"  for as_dir in $PATH
2168    for ac_dir in $ac_dummy; do  do
2169      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2170      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2171        ac_cv_prog_CC="cl"    for ac_exec_ext in '' $ac_executable_extensions; do
2172        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173      fi      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2174    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175    IFS="$ac_save_ifs"      break 2
2176      fi
2177    done
2178    done
2179    
2180  fi  fi
2181  fi  fi
2182  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
2183  if test -n "$CC"; then  if test -n "$CC"; then
2184    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
2185    echo "${ECHO_T}$CC" >&6
2186  else  else
2187    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2188    echo "${ECHO_T}no" >&6
2189  fi  fi
2190   ;;  
2191      esac      test -n "$CC" && break
2192      done
2193    fi
2194    if test -z "$CC"; then
2195      ac_ct_CC=$CC
2196      for ac_prog in cl
2197    do
2198      # Extract the first word of "$ac_prog", so it can be a program name with args.
2199    set dummy $ac_prog; ac_word=$2
2200    echo "$as_me:$LINENO: checking for $ac_word" >&5
2201    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203      echo $ECHO_N "(cached) $ECHO_C" >&6
2204    else
2205      if test -n "$ac_ct_CC"; then
2206      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2207    else
2208    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209    for as_dir in $PATH
2210    do
2211      IFS=$as_save_IFS
2212      test -z "$as_dir" && as_dir=.
2213      for ac_exec_ext in '' $ac_executable_extensions; do
2214      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215        ac_cv_prog_ac_ct_CC="$ac_prog"
2216        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217        break 2
2218    fi    fi
2219    test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }  done
2220    done
2221    
2222    fi
2223    fi
2224    ac_ct_CC=$ac_cv_prog_ac_ct_CC
2225    if test -n "$ac_ct_CC"; then
2226      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2227    echo "${ECHO_T}$ac_ct_CC" >&6
2228    else
2229      echo "$as_me:$LINENO: result: no" >&5
2230    echo "${ECHO_T}no" >&6
2231  fi  fi
2232    
2233  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6    test -n "$ac_ct_CC" && break
2234  echo "configure:1324: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  done
2235    
2236  ac_ext=c    CC=$ac_ct_CC
2237  # 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  
2238    
2239  cat > conftest.$ac_ext << EOF  fi
2240    
 #line 1335 "configure"  
 #include "confdefs.h"  
2241    
2242  main(){return(0);}  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2243  EOF  See \`config.log' for more details." >&5
2244  if { (eval echo configure:1340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  echo "$as_me: error: no acceptable C compiler found in \$PATH
2245    ac_cv_prog_cc_works=yes  See \`config.log' for more details." >&2;}
2246    # If we can't run a trivial program, we are probably using a cross compiler.     { (exit 1); exit 1; }; }
2247    if (./conftest; exit) 2>/dev/null; then  
2248      ac_cv_prog_cc_cross=no  # Provide some information about the compiler.
2249    echo "$as_me:$LINENO:" \
2250         "checking for C compiler version" >&5
2251    ac_compiler=`set X $ac_compile; echo $2`
2252    { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2253      (eval $ac_compiler --version </dev/null >&5) 2>&5
2254      ac_status=$?
2255      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256      (exit $ac_status); }
2257    { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2258      (eval $ac_compiler -v </dev/null >&5) 2>&5
2259      ac_status=$?
2260      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261      (exit $ac_status); }
2262    { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2263      (eval $ac_compiler -V </dev/null >&5) 2>&5
2264      ac_status=$?
2265      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266      (exit $ac_status); }
2267    
2268    cat >conftest.$ac_ext <<_ACEOF
2269    #line $LINENO "configure"
2270    /* confdefs.h.  */
2271    _ACEOF
2272    cat confdefs.h >>conftest.$ac_ext
2273    cat >>conftest.$ac_ext <<_ACEOF
2274    /* end confdefs.h.  */
2275    
2276    int
2277    main ()
2278    {
2279    
2280      ;
2281      return 0;
2282    }
2283    _ACEOF
2284    ac_clean_files_save=$ac_clean_files
2285    ac_clean_files="$ac_clean_files a.out a.exe b.out"
2286    # Try to create an executable without -o first, disregard a.out.
2287    # It will help us diagnose broken compilers, and finding out an intuition
2288    # of exeext.
2289    echo "$as_me:$LINENO: checking for C compiler default output" >&5
2290    echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2291    ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2292    if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2293      (eval $ac_link_default) 2>&5
2294      ac_status=$?
2295      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296      (exit $ac_status); }; then
2297      # Find the output, starting from the most likely.  This scheme is
2298    # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2299    # resort.
2300    
2301    # Be careful to initialize this variable, since it used to be cached.
2302    # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2303    ac_cv_exeext=
2304    # b.out is created by i960 compilers.
2305    for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2306    do
2307      test -f "$ac_file" || continue
2308      case $ac_file in
2309        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2310            ;;
2311        conftest.$ac_ext )
2312            # This is the source file.
2313            ;;
2314        [ab].out )
2315            # We found the default executable, but exeext='' is most
2316            # certainly right.
2317            break;;
2318        *.* )
2319            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2320            # FIXME: I believe we export ac_cv_exeext for Libtool,
2321            # but it would be cool to find out if it's true.  Does anybody
2322            # maintain Libtool? --akim.
2323            export ac_cv_exeext
2324            break;;
2325        * )
2326            break;;
2327      esac
2328    done
2329    else
2330      echo "$as_me: failed program was:" >&5
2331    sed 's/^/| /' conftest.$ac_ext >&5
2332    
2333    { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2334    See \`config.log' for more details." >&5
2335    echo "$as_me: error: C compiler cannot create executables
2336    See \`config.log' for more details." >&2;}
2337       { (exit 77); exit 77; }; }
2338    fi
2339    
2340    ac_exeext=$ac_cv_exeext
2341    echo "$as_me:$LINENO: result: $ac_file" >&5
2342    echo "${ECHO_T}$ac_file" >&6
2343    
2344    # Check the compiler produces executables we can run.  If not, either
2345    # the compiler is broken, or we cross compile.
2346    echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2347    echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2348    # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2349    # If not cross compiling, check that we can run a simple program.
2350    if test "$cross_compiling" != yes; then
2351      if { ac_try='./$ac_file'
2352      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353      (eval $ac_try) 2>&5
2354      ac_status=$?
2355      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356      (exit $ac_status); }; }; then
2357        cross_compiling=no
2358    else    else
2359      ac_cv_prog_cc_cross=yes      if test "$cross_compiling" = maybe; then
2360            cross_compiling=yes
2361        else
2362            { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2363    If you meant to cross compile, use \`--host'.
2364    See \`config.log' for more details." >&5
2365    echo "$as_me: error: cannot run C compiled programs.
2366    If you meant to cross compile, use \`--host'.
2367    See \`config.log' for more details." >&2;}
2368       { (exit 1); exit 1; }; }
2369        fi
2370    fi    fi
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   ac_cv_prog_cc_works=no  
2371  fi  fi
2372  rm -fr conftest*  echo "$as_me:$LINENO: result: yes" >&5
2373  ac_ext=c  echo "${ECHO_T}yes" >&6
2374  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
2375  ac_cpp='$CPP $CPPFLAGS'  rm -f a.out a.exe conftest$ac_cv_exeext b.out
2376  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_clean_files=$ac_clean_files_save
2377  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  # Check the compiler produces executables we can run.  If not, either
2378  cross_compiling=$ac_cv_prog_cc_cross  # the compiler is broken, or we cross compile.
2379    echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2380  echo "$ac_t""$ac_cv_prog_cc_works" 1>&6  echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2381  if test $ac_cv_prog_cc_works = no; then  echo "$as_me:$LINENO: result: $cross_compiling" >&5
2382    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }  echo "${ECHO_T}$cross_compiling" >&6
2383  fi  
2384  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for suffix of executables" >&5
2385  echo "configure:1366: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2386  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2387  cross_compiling=$ac_cv_prog_cc_cross    (eval $ac_link) 2>&5
2388      ac_status=$?
2389  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390  echo "configure:1371: checking whether we are using GNU C" >&5    (exit $ac_status); }; then
2391  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then    # If both `conftest.exe' and `conftest' are `present' (well, observable)
2392    echo $ac_n "(cached) $ac_c" 1>&6  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2393  else  # work properly (i.e., refer to `conftest.exe'), while it won't with
2394    cat > conftest.c <<EOF  # `rm'.
2395  #ifdef __GNUC__  for ac_file in conftest.exe conftest conftest.*; do
2396    yes;    test -f "$ac_file" || continue
2397  #endif    case $ac_file in
2398  EOF      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2399  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2400    ac_cv_prog_gcc=yes            export ac_cv_exeext
2401              break;;
2402        * ) break;;
2403      esac
2404    done
2405  else  else
2406    ac_cv_prog_gcc=no    { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2407  fi  See \`config.log' for more details." >&5
2408  fi  echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2409    See \`config.log' for more details." >&2;}
2410       { (exit 1); exit 1; }; }
2411    fi
2412    
2413    rm -f conftest$ac_cv_exeext
2414    echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2415    echo "${ECHO_T}$ac_cv_exeext" >&6
2416    
2417    rm -f conftest.$ac_ext
2418    EXEEXT=$ac_cv_exeext
2419    ac_exeext=$EXEEXT
2420    echo "$as_me:$LINENO: checking for suffix of object files" >&5
2421    echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2422    if test "${ac_cv_objext+set}" = set; then
2423      echo $ECHO_N "(cached) $ECHO_C" >&6
2424    else
2425      cat >conftest.$ac_ext <<_ACEOF
2426    #line $LINENO "configure"
2427    /* confdefs.h.  */
2428    _ACEOF
2429    cat confdefs.h >>conftest.$ac_ext
2430    cat >>conftest.$ac_ext <<_ACEOF
2431    /* end confdefs.h.  */
2432    
2433  echo "$ac_t""$ac_cv_prog_gcc" 1>&6  int
2434    main ()
2435    {
2436    
2437  if test $ac_cv_prog_gcc = yes; then    ;
2438    GCC=yes    return 0;
2439    }
2440    _ACEOF
2441    rm -f conftest.o conftest.obj
2442    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443      (eval $ac_compile) 2>&5
2444      ac_status=$?
2445      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446      (exit $ac_status); }; then
2447      for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2448      case $ac_file in
2449        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2450        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2451           break;;
2452      esac
2453    done
2454  else  else
2455    GCC=    echo "$as_me: failed program was:" >&5
2456  fi  sed 's/^/| /' conftest.$ac_ext >&5
2457    
2458  ac_test_CFLAGS="${CFLAGS+set}"  { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2459  ac_save_CFLAGS="$CFLAGS"  See \`config.log' for more details." >&5
2460  CFLAGS=  echo "$as_me: error: cannot compute suffix of object files: cannot compile
2461  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  See \`config.log' for more details." >&2;}
2462  echo "configure:1399: checking whether ${CC-cc} accepts -g" >&5     { (exit 1); exit 1; }; }
2463  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  fi
2464    echo $ac_n "(cached) $ac_c" 1>&6  
2465  else  rm -f conftest.$ac_cv_objext conftest.$ac_ext
2466    echo 'void f(){}' > conftest.c  fi
2467  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2468    echo "${ECHO_T}$ac_cv_objext" >&6
2469    OBJEXT=$ac_cv_objext
2470    ac_objext=$OBJEXT
2471    echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2472    echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2473    if test "${ac_cv_c_compiler_gnu+set}" = set; then
2474      echo $ECHO_N "(cached) $ECHO_C" >&6
2475    else
2476      cat >conftest.$ac_ext <<_ACEOF
2477    #line $LINENO "configure"
2478    /* confdefs.h.  */
2479    _ACEOF
2480    cat confdefs.h >>conftest.$ac_ext
2481    cat >>conftest.$ac_ext <<_ACEOF
2482    /* end confdefs.h.  */
2483    
2484    int
2485    main ()
2486    {
2487    #ifndef __GNUC__
2488           choke me
2489    #endif
2490    
2491      ;
2492      return 0;
2493    }
2494    _ACEOF
2495    rm -f conftest.$ac_objext
2496    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497      (eval $ac_compile) 2>&5
2498      ac_status=$?
2499      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500      (exit $ac_status); } &&
2501             { ac_try='test -s conftest.$ac_objext'
2502      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503      (eval $ac_try) 2>&5
2504      ac_status=$?
2505      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506      (exit $ac_status); }; }; then
2507      ac_compiler_gnu=yes
2508    else
2509      echo "$as_me: failed program was:" >&5
2510    sed 's/^/| /' conftest.$ac_ext >&5
2511    
2512    ac_compiler_gnu=no
2513    fi
2514    rm -f conftest.$ac_objext conftest.$ac_ext
2515    ac_cv_c_compiler_gnu=$ac_compiler_gnu
2516    
2517    fi
2518    echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2519    echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2520    GCC=`test $ac_compiler_gnu = yes && echo yes`
2521    ac_test_CFLAGS=${CFLAGS+set}
2522    ac_save_CFLAGS=$CFLAGS
2523    CFLAGS="-g"
2524    echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2525    echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2526    if test "${ac_cv_prog_cc_g+set}" = set; then
2527      echo $ECHO_N "(cached) $ECHO_C" >&6
2528    else
2529      cat >conftest.$ac_ext <<_ACEOF
2530    #line $LINENO "configure"
2531    /* confdefs.h.  */
2532    _ACEOF
2533    cat confdefs.h >>conftest.$ac_ext
2534    cat >>conftest.$ac_ext <<_ACEOF
2535    /* end confdefs.h.  */
2536    
2537    int
2538    main ()
2539    {
2540    
2541      ;
2542      return 0;
2543    }
2544    _ACEOF
2545    rm -f conftest.$ac_objext
2546    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547      (eval $ac_compile) 2>&5
2548      ac_status=$?
2549      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550      (exit $ac_status); } &&
2551             { ac_try='test -s conftest.$ac_objext'
2552      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553      (eval $ac_try) 2>&5
2554      ac_status=$?
2555      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556      (exit $ac_status); }; }; then
2557    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
2558  else  else
2559    ac_cv_prog_cc_g=no    echo "$as_me: failed program was:" >&5
2560  fi  sed 's/^/| /' conftest.$ac_ext >&5
 rm -f conftest*  
2561    
2562    ac_cv_prog_cc_g=no
2563  fi  fi
2564    rm -f conftest.$ac_objext conftest.$ac_ext
2565  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6  fi
2566    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2567    echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2568  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
2569    CFLAGS="$ac_save_CFLAGS"    CFLAGS=$ac_save_CFLAGS
2570  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
2571    if test "$GCC" = yes; then    if test "$GCC" = yes; then
2572      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 1425  else Line 2580  else
2580      CFLAGS=      CFLAGS=
2581    fi    fi
2582  fi  fi
2583    echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2584    echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2585    if test "${ac_cv_prog_cc_stdc+set}" = set; then
2586      echo $ECHO_N "(cached) $ECHO_C" >&6
2587    else
2588      ac_cv_prog_cc_stdc=no
2589    ac_save_CC=$CC
2590    cat >conftest.$ac_ext <<_ACEOF
2591    #line $LINENO "configure"
2592    /* confdefs.h.  */
2593    _ACEOF
2594    cat confdefs.h >>conftest.$ac_ext
2595    cat >>conftest.$ac_ext <<_ACEOF
2596    /* end confdefs.h.  */
2597    #include <stdarg.h>
2598    #include <stdio.h>
2599    #include <sys/types.h>
2600    #include <sys/stat.h>
2601    /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2602    struct buf { int x; };
2603    FILE * (*rcsopen) (struct buf *, struct stat *, int);
2604    static char *e (p, i)
2605         char **p;
2606         int i;
2607    {
2608      return p[i];
2609    }
2610    static char *f (char * (*g) (char **, int), char **p, ...)
2611    {
2612      char *s;
2613      va_list v;
2614      va_start (v,p);
2615      s = g (p, va_arg (v,int));
2616      va_end (v);
2617      return s;
2618    }
2619    int test (int i, double x);
2620    struct s1 {int (*f) (int a);};
2621    struct s2 {int (*f) (double a);};
2622    int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2623    int argc;
2624    char **argv;
2625    int
2626    main ()
2627    {
2628    return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2629      ;
2630      return 0;
2631    }
2632    _ACEOF
2633    # Don't try gcc -ansi; that turns off useful extensions and
2634    # breaks some systems' header files.
2635    # AIX                   -qlanglvl=ansi
2636    # Ultrix and OSF/1      -std1
2637    # HP-UX 10.20 and later -Ae
2638    # HP-UX older versions  -Aa -D_HPUX_SOURCE
2639    # SVR4                  -Xc -D__EXTENSIONS__
2640    for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2641    do
2642      CC="$ac_save_CC $ac_arg"
2643      rm -f conftest.$ac_objext
2644    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645      (eval $ac_compile) 2>&5
2646      ac_status=$?
2647      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648      (exit $ac_status); } &&
2649             { ac_try='test -s conftest.$ac_objext'
2650      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651      (eval $ac_try) 2>&5
2652      ac_status=$?
2653      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654      (exit $ac_status); }; }; then
2655      ac_cv_prog_cc_stdc=$ac_arg
2656    break
2657    else
2658      echo "$as_me: failed program was:" >&5
2659    sed 's/^/| /' conftest.$ac_ext >&5
2660    
2661    fi
2662    rm -f conftest.$ac_objext
2663    done
2664    rm -f conftest.$ac_ext conftest.$ac_objext
2665    CC=$ac_save_CC
2666    
2667    fi
2668    
2669    case "x$ac_cv_prog_cc_stdc" in
2670      x|xno)
2671        echo "$as_me:$LINENO: result: none needed" >&5
2672    echo "${ECHO_T}none needed" >&6 ;;
2673      *)
2674        echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2675    echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2676        CC="$CC $ac_cv_prog_cc_stdc" ;;
2677    esac
2678    
2679    # Some people use a C++ compiler to compile C.  Since we use `exit',
2680    # in C++ we need to declare it.  In case someone uses the same compiler
2681    # for both compiling C and C++ we need to have the C++ compiler decide
2682    # the declaration of exit, since it's the most demanding environment.
2683    cat >conftest.$ac_ext <<_ACEOF
2684    #ifndef __cplusplus
2685      choke me
2686    #endif
2687    _ACEOF
2688    rm -f conftest.$ac_objext
2689    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690      (eval $ac_compile) 2>&5
2691      ac_status=$?
2692      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693      (exit $ac_status); } &&
2694             { ac_try='test -s conftest.$ac_objext'
2695      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696      (eval $ac_try) 2>&5
2697      ac_status=$?
2698      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699      (exit $ac_status); }; }; then
2700      for ac_declaration in \
2701       ''\
2702       '#include <stdlib.h>' \
2703       'extern "C" void std::exit (int) throw (); using std::exit;' \
2704       'extern "C" void std::exit (int); using std::exit;' \
2705       'extern "C" void exit (int) throw ();' \
2706       'extern "C" void exit (int);' \
2707       'void exit (int);'
2708    do
2709      cat >conftest.$ac_ext <<_ACEOF
2710    #line $LINENO "configure"
2711    /* confdefs.h.  */
2712    _ACEOF
2713    cat confdefs.h >>conftest.$ac_ext
2714    cat >>conftest.$ac_ext <<_ACEOF
2715    /* end confdefs.h.  */
2716    #include <stdlib.h>
2717    $ac_declaration
2718    int
2719    main ()
2720    {
2721    exit (42);
2722      ;
2723      return 0;
2724    }
2725    _ACEOF
2726    rm -f conftest.$ac_objext
2727    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728      (eval $ac_compile) 2>&5
2729      ac_status=$?
2730      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731      (exit $ac_status); } &&
2732             { ac_try='test -s conftest.$ac_objext'
2733      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734      (eval $ac_try) 2>&5
2735      ac_status=$?
2736      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737      (exit $ac_status); }; }; then
2738      :
2739    else
2740      echo "$as_me: failed program was:" >&5
2741    sed 's/^/| /' conftest.$ac_ext >&5
2742    
2743    continue
2744    fi
2745    rm -f conftest.$ac_objext conftest.$ac_ext
2746      cat >conftest.$ac_ext <<_ACEOF
2747    #line $LINENO "configure"
2748    /* confdefs.h.  */
2749    _ACEOF
2750    cat confdefs.h >>conftest.$ac_ext
2751    cat >>conftest.$ac_ext <<_ACEOF
2752    /* end confdefs.h.  */
2753    $ac_declaration
2754    int
2755    main ()
2756    {
2757    exit (42);
2758      ;
2759      return 0;
2760    }
2761    _ACEOF
2762    rm -f conftest.$ac_objext
2763    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764      (eval $ac_compile) 2>&5
2765      ac_status=$?
2766      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767      (exit $ac_status); } &&
2768             { ac_try='test -s conftest.$ac_objext'
2769      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770      (eval $ac_try) 2>&5
2771      ac_status=$?
2772      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773      (exit $ac_status); }; }; then
2774      break
2775    else
2776      echo "$as_me: failed program was:" >&5
2777    sed 's/^/| /' conftest.$ac_ext >&5
2778    
2779    fi
2780    rm -f conftest.$ac_objext conftest.$ac_ext
2781    done
2782    rm -f conftest*
2783    if test -n "$ac_declaration"; then
2784      echo '#ifdef __cplusplus' >>confdefs.h
2785      echo $ac_declaration      >>confdefs.h
2786      echo '#endif'             >>confdefs.h
2787    fi
2788    
2789  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  else
2790  echo "configure:1431: checking how to run the C preprocessor" >&5    echo "$as_me: failed program was:" >&5
2791    sed 's/^/| /' conftest.$ac_ext >&5
2792    
2793    fi
2794    rm -f conftest.$ac_objext conftest.$ac_ext
2795    ac_ext=c
2796    ac_cpp='$CPP $CPPFLAGS'
2797    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800    
2801    ac_ext=c
2802    ac_cpp='$CPP $CPPFLAGS'
2803    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806    echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2807    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2808  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
2809  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
2810    CPP=    CPP=
2811  fi  fi
2812  if test -z "$CPP"; then  if test -z "$CPP"; then
2813  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then    if test "${ac_cv_prog_CPP+set}" = set; then
2814    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2815  else  else
2816      # This must be in double quotes, not single quotes, because CPP may get        # Double quotes because CPP needs to be expanded
2817    # substituted into the Makefile and "${CC-cc}" will confuse make.      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2818    CPP="${CC-cc} -E"      do
2819          ac_preproc_ok=false
2820    for ac_c_preproc_warn_flag in '' yes
2821    do
2822      # Use a header file that comes with gcc, so configuring glibc
2823      # with a fresh cross-compiler works.
2824    # 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,
2825    # not just through cpp.    # not just through cpp. "Syntax error" is here to catch this case.
2826    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2827  #line 1446 "configure"  #line $LINENO "configure"
2828  #include "confdefs.h"  /* confdefs.h.  */
2829    _ACEOF
2830    cat confdefs.h >>conftest.$ac_ext
2831    cat >>conftest.$ac_ext <<_ACEOF
2832    /* end confdefs.h.  */
2833  #include <assert.h>  #include <assert.h>
2834  Syntax Error                       Syntax error
2835  EOF  _ACEOF
2836  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837  { (eval echo configure:1452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2838  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2839  if test -z "$ac_err"; then    grep -v '^ *+' conftest.er1 >conftest.err
2840    :    rm -f conftest.er1
2841      cat conftest.err >&5
2842      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843      (exit $ac_status); } >/dev/null; then
2844      if test -s conftest.err; then
2845        ac_cpp_err=$ac_c_preproc_warn_flag
2846      else
2847        ac_cpp_err=
2848      fi
2849  else  else
2850    echo "$ac_err" >&5    ac_cpp_err=yes
2851    echo "configure: failed program was:" >&5  fi
2852    cat conftest.$ac_ext >&5  if test -z "$ac_cpp_err"; then
   rm -rf conftest*  
   CPP="${CC-cc} -E -traditional-cpp"  
   cat > conftest.$ac_ext <<EOF  
 #line 1463 "configure"  
 #include "confdefs.h"  
 #include <assert.h>  
 Syntax Error  
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:1469: \"$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  
2853    :    :
2854  else  else
2855    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
2856    echo "configure: failed program was:" >&5  sed 's/^/| /' conftest.$ac_ext >&5
2857    cat conftest.$ac_ext >&5  
2858    rm -rf conftest*    # Broken: fails on valid input.
2859    CPP="${CC-cc} -nologo -E"  continue
2860    cat > conftest.$ac_ext <<EOF  fi
2861  #line 1480 "configure"  rm -f conftest.err conftest.$ac_ext
2862  #include "confdefs.h"  
2863      # OK, works on sane cases.  Now check whether non-existent headers
2864      # can be detected and how.
2865      cat >conftest.$ac_ext <<_ACEOF
2866    #line $LINENO "configure"
2867    /* confdefs.h.  */
2868    _ACEOF
2869    cat confdefs.h >>conftest.$ac_ext
2870    cat >>conftest.$ac_ext <<_ACEOF
2871    /* end confdefs.h.  */
2872    #include <ac_nonexistent.h>
2873    _ACEOF
2874    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2876      ac_status=$?
2877      grep -v '^ *+' conftest.er1 >conftest.err
2878      rm -f conftest.er1
2879      cat conftest.err >&5
2880      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881      (exit $ac_status); } >/dev/null; then
2882      if test -s conftest.err; then
2883        ac_cpp_err=$ac_c_preproc_warn_flag
2884      else
2885        ac_cpp_err=
2886      fi
2887    else
2888      ac_cpp_err=yes
2889    fi
2890    if test -z "$ac_cpp_err"; then
2891      # Broken: success on invalid input.
2892    continue
2893    else
2894      echo "$as_me: failed program was:" >&5
2895    sed 's/^/| /' conftest.$ac_ext >&5
2896    
2897      # Passes both tests.
2898    ac_preproc_ok=:
2899    break
2900    fi
2901    rm -f conftest.err conftest.$ac_ext
2902    
2903    done
2904    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2905    rm -f conftest.err conftest.$ac_ext
2906    if $ac_preproc_ok; then
2907      break
2908    fi
2909    
2910        done
2911        ac_cv_prog_CPP=$CPP
2912    
2913    fi
2914      CPP=$ac_cv_prog_CPP
2915    else
2916      ac_cv_prog_CPP=$CPP
2917    fi
2918    echo "$as_me:$LINENO: result: $CPP" >&5
2919    echo "${ECHO_T}$CPP" >&6
2920    ac_preproc_ok=false
2921    for ac_c_preproc_warn_flag in '' yes
2922    do
2923      # Use a header file that comes with gcc, so configuring glibc
2924      # with a fresh cross-compiler works.
2925      # On the NeXT, cc -E runs the code through the compiler's parser,
2926      # not just through cpp. "Syntax error" is here to catch this case.
2927      cat >conftest.$ac_ext <<_ACEOF
2928    #line $LINENO "configure"
2929    /* confdefs.h.  */
2930    _ACEOF
2931    cat confdefs.h >>conftest.$ac_ext
2932    cat >>conftest.$ac_ext <<_ACEOF
2933    /* end confdefs.h.  */
2934  #include <assert.h>  #include <assert.h>
2935  Syntax Error                       Syntax error
2936  EOF  _ACEOF
2937  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938  { (eval echo configure:1486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2940  if test -z "$ac_err"; then    grep -v '^ *+' conftest.er1 >conftest.err
2941    :    rm -f conftest.er1
2942      cat conftest.err >&5
2943      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944      (exit $ac_status); } >/dev/null; then
2945      if test -s conftest.err; then
2946        ac_cpp_err=$ac_c_preproc_warn_flag
2947      else
2948        ac_cpp_err=
2949      fi
2950  else  else
2951    echo "$ac_err" >&5    ac_cpp_err=yes
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   CPP=/lib/cpp  
2952  fi  fi
2953  rm -f conftest*  if test -z "$ac_cpp_err"; then
2954      :
2955    else
2956      echo "$as_me: failed program was:" >&5
2957    sed 's/^/| /' conftest.$ac_ext >&5
2958    
2959      # Broken: fails on valid input.
2960    continue
2961  fi  fi
2962  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2963    
2964      # OK, works on sane cases.  Now check whether non-existent headers
2965      # can be detected and how.
2966      cat >conftest.$ac_ext <<_ACEOF
2967    #line $LINENO "configure"
2968    /* confdefs.h.  */
2969    _ACEOF
2970    cat confdefs.h >>conftest.$ac_ext
2971    cat >>conftest.$ac_ext <<_ACEOF
2972    /* end confdefs.h.  */
2973    #include <ac_nonexistent.h>
2974    _ACEOF
2975    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2976      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2977      ac_status=$?
2978      grep -v '^ *+' conftest.er1 >conftest.err
2979      rm -f conftest.er1
2980      cat conftest.err >&5
2981      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982      (exit $ac_status); } >/dev/null; then
2983      if test -s conftest.err; then
2984        ac_cpp_err=$ac_c_preproc_warn_flag
2985      else
2986        ac_cpp_err=
2987      fi
2988    else
2989      ac_cpp_err=yes
2990  fi  fi
2991  rm -f conftest*  if test -z "$ac_cpp_err"; then
2992    ac_cv_prog_CPP="$CPP"    # Broken: success on invalid input.
2993    continue
2994    else
2995      echo "$as_me: failed program was:" >&5
2996    sed 's/^/| /' conftest.$ac_ext >&5
2997    
2998      # Passes both tests.
2999    ac_preproc_ok=:
3000    break
3001  fi  fi
3002    CPP="$ac_cv_prog_CPP"  rm -f conftest.err conftest.$ac_ext
3003    
3004    done
3005    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006    rm -f conftest.err conftest.$ac_ext
3007    if $ac_preproc_ok; then
3008      :
3009  else  else
3010    ac_cv_prog_CPP="$CPP"    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3011    See \`config.log' for more details." >&5
3012    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3013    See \`config.log' for more details." >&2;}
3014       { (exit 1); exit 1; }; }
3015  fi  fi
3016  echo "$ac_t""$CPP" 1>&6  
3017    ac_ext=c
3018    ac_cpp='$CPP $CPPFLAGS'
3019    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021    ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022    
3023    
3024    
# Line 1552  esac Line 3066  esac
3066    
3067  for ac_prog in gawk nawk awk  for ac_prog in gawk nawk awk
3068  do  do
3069  # 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.
3070  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
3071  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
3072  echo "configure:1559: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3073  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  if test "${ac_cv_prog_AWK+set}" = set; then
3074    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3075  else  else
3076    if test -n "$AWK"; then    if test -n "$AWK"; then
3077    ac_cv_prog_AWK="$AWK" # Let the user override the test.    ac_cv_prog_AWK="$AWK" # Let the user override the test.
3078  else  else
3079    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080    ac_dummy="$PATH"  for as_dir in $PATH
3081    for ac_dir in $ac_dummy; do  do
3082      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
3083      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
3084        ac_cv_prog_AWK="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
3085        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086      fi      ac_cv_prog_AWK="$ac_prog"
3087    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3088    IFS="$ac_save_ifs"      break 2
3089      fi
3090    done
3091    done
3092    
3093  fi  fi
3094  fi  fi
3095  AWK="$ac_cv_prog_AWK"  AWK=$ac_cv_prog_AWK
3096  if test -n "$AWK"; then  if test -n "$AWK"; then
3097    echo "$ac_t""$AWK" 1>&6    echo "$as_me:$LINENO: result: $AWK" >&5
3098    echo "${ECHO_T}$AWK" >&6
3099  else  else
3100    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3101    echo "${ECHO_T}no" >&6
3102  fi  fi
3103    
3104  test -n "$AWK" && break    test -n "$AWK" && break
3105  done  done
3106  test -n "$AWK" || AWK=""""  test -n "$AWK" || AWK=""""
3107    
# Line 1590  if test "$enable_gprof" = "yes" ; then Line 3110  if test "$enable_gprof" = "yes" ; then
3110          TCFLAGS="$TCFLAGS -pg"          TCFLAGS="$TCFLAGS -pg"
3111          TLIBS="$TLIBS -pg"          TLIBS="$TLIBS -pg"
3112          TFPFLAG=""          TFPFLAG=""
3113          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
3114  #define GCL_GPROF 1  #define GCL_GPROF 1
3115  EOF  _ACEOF
3116    
3117          echo $ac_n "checking for text start""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for text start" >&5
3118  echo "configure:1599: checking for text start" >&5  echo $ECHO_N "checking for text start... $ECHO_C" >&6
3119          echo 'int main () {return(0);}' >foo.c          echo 'int main () {return(0);}' >foo.c
3120          $CC foo.c -o foo          $CC foo.c -o foo
3121          GCL_GPROF_START=`nm foo | $AWK  '/  *T  *__*start$/ {print $NF}'`          GCL_GPROF_START=`nm foo | $AWK  '/  *T  *__*start$/ {print $NF}'`
3122          rm -f foo.c foo          rm -f foo.c foo
3123          echo "$ac_t""$GCL_GPROF_START" 1>&6          echo "$as_me:$LINENO: result: $GCL_GPROF_START" >&5
3124          cat >> confdefs.h <<EOF  echo "${ECHO_T}$GCL_GPROF_START" >&6
3125            cat >>confdefs.h <<_ACEOF
3126  #define GCL_GPROF_START $GCL_GPROF_START  #define GCL_GPROF_START $GCL_GPROF_START
3127  EOF  _ACEOF
3128    
3129          case "$use" in            case "$use" in
3130            arm*)            arm*)
3131          #FIXME report and remove this when done          #FIXME report and remove this when done
3132                  echo "$ac_t""Reducing optimization on profiling arm build to workaround gcc bug" 1>&6                  echo "$as_me:$LINENO: result: Reducing optimization on profiling arm build to workaround gcc bug" >&5
3133    echo "${ECHO_T}Reducing optimization on profiling arm build to workaround gcc bug" >&6
3134                  enable_debug=yes;;                  enable_debug=yes;;
3135          esac          esac
3136  fi  fi
# Line 1631  fi Line 3153  fi
3153    
3154  # 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
3155  TONIFLAGS=""  TONIFLAGS=""
3156  case $use in  case $use in
3157       *linux)       *linux)
3158          case $use in          case $use in
3159  #               amd64*) # stack-boundary option does not work  #               amd64*) # stack-boundary option does not work
3160  #                       TCFLAGS="$TCFLAGS -m64 -mpreferred-stack-boundary=8";;    #                       TCFLAGS="$TCFLAGS -m64 -mpreferred-stack-boundary=8";;
3161                  alpha*)                  alpha*)
3162                          TCFLAGS="$TCFLAGS -mieee";;                          TCFLAGS="$TCFLAGS -mieee";;
3163  #               m68k*)  #               m68k*)
# Line 1646  case $use in Line 3168  case $use in
3168                          if test "$enable_debug" != "yes" ; then TO2FLAGS="-O" ; fi                          if test "$enable_debug" != "yes" ; then TO2FLAGS="-O" ; fi
3169                          ;;                          ;;
3170                  arm*)                  arm*)
3171                          TCFLAGS="$TCFLAGS -mlong-calls";;                                TCFLAGS="$TCFLAGS -mlong-calls";;
3172                  powerpc*)                  powerpc*)
3173                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then
3174                             echo Reducing optimization for buggy gcc-3.2                             echo Reducing optimization for buggy gcc-3.2
3175                             if test "$enable_debug" != "yes" ; then TONIFLAGS="-O $TFPFLAG" ; fi                             if test "$enable_debug" != "yes" ; then TONIFLAGS="-O $TFPFLAG" ; fi
# Line 1670  fi Line 3192  fi
3192  # 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
3193  # there are a few systems, like Next, where this doesn't work.  # there are a few systems, like Next, where this doesn't work.
3194    
3195  echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5
3196  echo "configure:1675: checking system version (for dynamic loading)" >&5  echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6
3197  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
3198    
3199  for ac_prog in makeinfo  for ac_prog in makeinfo
3200  do  do
3201  # 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.
3202  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
3203  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
3204  echo "configure:1683: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then  if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3206    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3207  else  else
3208    if test -n "$MAKEINFO"; then    if test -n "$MAKEINFO"; then
3209    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3210  else  else
3211    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212    ac_dummy="$PATH"  for as_dir in $PATH
3213    for ac_dir in $ac_dummy; do  do
3214      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
3215      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
3216        ac_cv_prog_MAKEINFO="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
3217        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218      fi      ac_cv_prog_MAKEINFO="$ac_prog"
3219    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220    IFS="$ac_save_ifs"      break 2
3221      fi
3222    done
3223    done
3224    
3225  fi  fi
3226  fi  fi
3227  MAKEINFO="$ac_cv_prog_MAKEINFO"  MAKEINFO=$ac_cv_prog_MAKEINFO
3228  if test -n "$MAKEINFO"; then  if test -n "$MAKEINFO"; then
3229    echo "$ac_t""$MAKEINFO" 1>&6    echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3230    echo "${ECHO_T}$MAKEINFO" >&6
3231  else  else
3232    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3233    echo "${ECHO_T}no" >&6
3234  fi  fi
3235    
3236  test -n "$MAKEINFO" && break    test -n "$MAKEINFO" && break
3237  done  done
3238  test -n "$MAKEINFO" || MAKEINFO=""false""  test -n "$MAKEINFO" || MAKEINFO=""false""
3239    
# Line 1716  if test -f /usr/lib/NextStep/software_ve Line 3244  if test -f /usr/lib/NextStep/software_ve
3244  else  else
3245      system=`uname -s`-`uname -r`      system=`uname -s`-`uname -r`
3246      if test "$?" -ne 0 ; then      if test "$?" -ne 0 ; then
3247          echo "$ac_t""unknown (can't find uname command)" 1>&6          echo "$as_me:$LINENO: result: unknown (can't find uname command)" >&5
3248    echo "${ECHO_T}unknown (can't find uname command)" >&6
3249          system=unknown          system=unknown
3250      else      else
3251          # Special check for weird MP-RAS system (uname returns weird          # Special check for weird MP-RAS system (uname returns weird
3252          # results, and the version is kept in special file).          # results, and the version is kept in special file).
3253        
3254          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
3255              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`
3256          fi          fi
3257          if test "`uname -s`" = "AIX" ; then          if test "`uname -s`" = "AIX" ; then
3258              system=AIX-`uname -v`.`uname -r`              system=AIX-`uname -v`.`uname -r`
3259          fi          fi
3260          echo "$ac_t""$system" 1>&6          echo "$as_me:$LINENO: result: $system" >&5
3261    echo "${ECHO_T}$system" >&6
3262      fi      fi
3263  fi  fi
3264    
3265  # sysconf  # sysconf
3266    
3267  ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'`  
3268  echo $ac_n "checking for unistd.h""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for egrep" >&5
3269  echo "configure:1740: checking for unistd.h" >&5  echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3270  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_prog_egrep+set}" = set; then
3271    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3272  else  else
3273    cat > conftest.$ac_ext <<EOF    if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3274  #line 1745 "configure"      then ac_cv_prog_egrep='grep -E'
3275  #include "confdefs.h"      else ac_cv_prog_egrep='egrep'
3276  #include <unistd.h>      fi
3277  EOF  fi
3278  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3279  { (eval echo configure:1750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3280  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`   EGREP=$ac_cv_prog_egrep
3281  if test -z "$ac_err"; then  
3282    rm -rf conftest*  
3283    eval "ac_cv_header_$ac_safe=yes"  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3284  else  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3285    echo "$ac_err" >&5  if test "${ac_cv_header_stdc+set}" = set; then
3286    echo "configure: failed program was:" >&5    echo $ECHO_N "(cached) $ECHO_C" >&6
3287    cat conftest.$ac_ext >&5  else
3288    rm -rf conftest*    cat >conftest.$ac_ext <<_ACEOF
3289    eval "ac_cv_header_$ac_safe=no"  #line $LINENO "configure"
3290    /* confdefs.h.  */
3291    _ACEOF
3292    cat confdefs.h >>conftest.$ac_ext
3293    cat >>conftest.$ac_ext <<_ACEOF
3294    /* end confdefs.h.  */
3295    #include <stdlib.h>
3296    #include <stdarg.h>
3297    #include <string.h>
3298    #include <float.h>
3299    
3300    int
3301    main ()
3302    {
3303    
3304      ;
3305      return 0;
3306    }
3307    _ACEOF
3308    rm -f conftest.$ac_objext
3309    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310      (eval $ac_compile) 2>&5
3311      ac_status=$?
3312      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313      (exit $ac_status); } &&
3314             { ac_try='test -s conftest.$ac_objext'
3315      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316      (eval $ac_try) 2>&5
3317      ac_status=$?
3318      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319      (exit $ac_status); }; }; then
3320      ac_cv_header_stdc=yes
3321    else
3322      echo "$as_me: failed program was:" >&5
3323    sed 's/^/| /' conftest.$ac_ext >&5
3324    
3325    ac_cv_header_stdc=no
3326    fi
3327    rm -f conftest.$ac_objext conftest.$ac_ext
3328    
3329    if test $ac_cv_header_stdc = yes; then
3330      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3331      cat >conftest.$ac_ext <<_ACEOF
3332    #line $LINENO "configure"
3333    /* confdefs.h.  */
3334    _ACEOF
3335    cat confdefs.h >>conftest.$ac_ext
3336    cat >>conftest.$ac_ext <<_ACEOF
3337    /* end confdefs.h.  */
3338    #include <string.h>
3339    
3340    _ACEOF
3341    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3342      $EGREP "memchr" >/dev/null 2>&1; then
3343      :
3344    else
3345      ac_cv_header_stdc=no
3346    fi
3347    rm -f conftest*
3348    
3349    fi
3350    
3351    if test $ac_cv_header_stdc = yes; then
3352      # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3353      cat >conftest.$ac_ext <<_ACEOF
3354    #line $LINENO "configure"
3355    /* confdefs.h.  */
3356    _ACEOF
3357    cat confdefs.h >>conftest.$ac_ext
3358    cat >>conftest.$ac_ext <<_ACEOF
3359    /* end confdefs.h.  */
3360    #include <stdlib.h>
3361    
3362    _ACEOF
3363    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3364      $EGREP "free" >/dev/null 2>&1; then
3365      :
3366    else
3367      ac_cv_header_stdc=no
3368  fi  fi
3369  rm -f conftest*  rm -f conftest*
3370    
3371  fi  fi
3372  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  
3373    echo "$ac_t""yes" 1>&6  if test $ac_cv_header_stdc = yes; then
3374    echo $ac_n "checking for sysconf in -lc""... $ac_c" 1>&6    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3375  echo "configure:1767: checking for sysconf in -lc" >&5    if test "$cross_compiling" = yes; then
3376  ac_lib_var=`echo c'_'sysconf | sed 'y%./+-%__p_%'`    :
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
3377  else  else
3378    ac_save_LIBS="$LIBS"    cat >conftest.$ac_ext <<_ACEOF
3379  LIBS="-lc  $LIBS"  #line $LINENO "configure"
3380  cat > conftest.$ac_ext <<EOF  /* confdefs.h.  */
3381  #line 1775 "configure"  _ACEOF
3382  #include "confdefs.h"  cat confdefs.h >>conftest.$ac_ext
3383  /* Override any gcc2 internal prototype to avoid an error.  */  cat >>conftest.$ac_ext <<_ACEOF
3384  /* We use char because int might match the return type of a gcc2  /* end confdefs.h.  */
3385      builtin and then its argument prototype would still apply.  */  #include <ctype.h>
3386  char sysconf();  #if ((' ' & 0x0FF) == 0x020)
3387    # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3388    # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3389    #else
3390    # define ISLOWER(c) \
3391                       (('a' <= (c) && (c) <= 'i') \
3392                         || ('j' <= (c) && (c) <= 'r') \
3393                         || ('s' <= (c) && (c) <= 'z'))
3394    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3395    #endif
3396    
3397  int main() {  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3398  sysconf()  int
3399  ; return 0; }  main ()
3400  EOF  {
3401  if { (eval echo configure:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    int i;
3402    rm -rf conftest*    for (i = 0; i < 256; i++)
3403    eval "ac_cv_lib_$ac_lib_var=yes"      if (XOR (islower (i), ISLOWER (i))
3404  else          || toupper (i) != TOUPPER (i))
3405    echo "configure: failed program was:" >&5        exit(2);
3406    cat conftest.$ac_ext >&5    exit (0);
3407    rm -rf conftest*  }
3408    eval "ac_cv_lib_$ac_lib_var=no"  _ACEOF
3409    rm -f conftest$ac_exeext
3410    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3411      (eval $ac_link) 2>&5
3412      ac_status=$?
3413      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3415      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416      (eval $ac_try) 2>&5
3417      ac_status=$?
3418      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419      (exit $ac_status); }; }; then
3420      :
3421    else
3422      echo "$as_me: program exited with status $ac_status" >&5
3423    echo "$as_me: failed program was:" >&5
3424    sed 's/^/| /' conftest.$ac_ext >&5
3425    
3426    ( exit $ac_status )
3427    ac_cv_header_stdc=no
3428  fi  fi
3429  rm -f conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3430  LIBS="$ac_save_LIBS"  fi
3431    fi
3432    fi
3433    echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3434    echo "${ECHO_T}$ac_cv_header_stdc" >&6
3435    if test $ac_cv_header_stdc = yes; then
3436    
3437    cat >>confdefs.h <<\_ACEOF
3438    #define STDC_HEADERS 1
3439    _ACEOF
3440    
3441  fi  fi
3442  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
3443    echo "$ac_t""yes" 1>&6  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3444    echo $ac_n "checking "for _SC_CLK_TCK"""... $ac_c" 1>&6  
3445  echo "configure:1802: checking "for _SC_CLK_TCK"" >&5  
3446                  if test "$cross_compiling" = yes; then  
3447    
3448    
3449    
3450    
3451    
3452    
3453    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3454                      inttypes.h stdint.h unistd.h
3455    do
3456    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3457    echo "$as_me:$LINENO: checking for $ac_header" >&5
3458    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3459    if eval "test \"\${$as_ac_Header+set}\" = set"; then
3460      echo $ECHO_N "(cached) $ECHO_C" >&6
3461    else
3462      cat >conftest.$ac_ext <<_ACEOF
3463    #line $LINENO "configure"
3464    /* confdefs.h.  */
3465    _ACEOF
3466    cat confdefs.h >>conftest.$ac_ext
3467    cat >>conftest.$ac_ext <<_ACEOF
3468    /* end confdefs.h.  */
3469    $ac_includes_default
3470    
3471    #include <$ac_header>
3472    _ACEOF
3473    rm -f conftest.$ac_objext
3474    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3475      (eval $ac_compile) 2>&5
3476      ac_status=$?
3477      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478      (exit $ac_status); } &&
3479             { ac_try='test -s conftest.$ac_objext'
3480      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481      (eval $ac_try) 2>&5
3482      ac_status=$?
3483      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484      (exit $ac_status); }; }; then
3485      eval "$as_ac_Header=yes"
3486    else
3487      echo "$as_me: failed program was:" >&5
3488    sed 's/^/| /' conftest.$ac_ext >&5
3489    
3490    eval "$as_ac_Header=no"
3491    fi
3492    rm -f conftest.$ac_objext conftest.$ac_ext
3493    fi
3494    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3495    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3496    if test `eval echo '${'$as_ac_Header'}'` = yes; then
3497      cat >>confdefs.h <<_ACEOF
3498    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3499    _ACEOF
3500    
3501    fi
3502    
3503    done
3504    
3505    
3506    if test "${ac_cv_header_unistd_h+set}" = set; then
3507      echo "$as_me:$LINENO: checking for unistd.h" >&5
3508    echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
3509    if test "${ac_cv_header_unistd_h+set}" = set; then
3510      echo $ECHO_N "(cached) $ECHO_C" >&6
3511    fi
3512    echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
3513    echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
3514    else
3515      # Is the header compilable?
3516    echo "$as_me:$LINENO: checking unistd.h usability" >&5
3517    echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
3518    cat >conftest.$ac_ext <<_ACEOF
3519    #line $LINENO "configure"
3520    /* confdefs.h.  */
3521    _ACEOF
3522    cat confdefs.h >>conftest.$ac_ext
3523    cat >>conftest.$ac_ext <<_ACEOF
3524    /* end confdefs.h.  */
3525    $ac_includes_default
3526    #include <unistd.h>
3527    _ACEOF
3528    rm -f conftest.$ac_objext
3529    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3530      (eval $ac_compile) 2>&5
3531      ac_status=$?
3532      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533      (exit $ac_status); } &&
3534             { ac_try='test -s conftest.$ac_objext'
3535      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536      (eval $ac_try) 2>&5
3537      ac_status=$?
3538      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539      (exit $ac_status); }; }; then
3540      ac_header_compiler=yes
3541    else
3542      echo "$as_me: failed program was:" >&5
3543    sed 's/^/| /' conftest.$ac_ext >&5
3544    
3545    ac_header_compiler=no
3546    fi
3547    rm -f conftest.$ac_objext conftest.$ac_ext
3548    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3549    echo "${ECHO_T}$ac_header_compiler" >&6
3550    
3551    # Is the header present?
3552    echo "$as_me:$LINENO: checking unistd.h presence" >&5
3553    echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
3554    cat >conftest.$ac_ext <<_ACEOF
3555    #line $LINENO "configure"
3556    /* confdefs.h.  */
3557    _ACEOF
3558    cat confdefs.h >>conftest.$ac_ext
3559    cat >>conftest.$ac_ext <<_ACEOF
3560    /* end confdefs.h.  */
3561    #include <unistd.h>
3562    _ACEOF
3563    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3564      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3565      ac_status=$?
3566      grep -v '^ *+' conftest.er1 >conftest.err
3567      rm -f conftest.er1
3568      cat conftest.err >&5
3569      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570      (exit $ac_status); } >/dev/null; then
3571      if test -s conftest.err; then
3572        ac_cpp_err=$ac_c_preproc_warn_flag
3573      else
3574        ac_cpp_err=
3575      fi
3576    else
3577      ac_cpp_err=yes
3578    fi
3579    if test -z "$ac_cpp_err"; then
3580      ac_header_preproc=yes
3581    else
3582      echo "$as_me: failed program was:" >&5
3583    sed 's/^/| /' conftest.$ac_ext >&5
3584    
3585      ac_header_preproc=no
3586    fi
3587    rm -f conftest.err conftest.$ac_ext
3588    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3589    echo "${ECHO_T}$ac_header_preproc" >&6
3590    
3591    # So?  What about this header?
3592    case $ac_header_compiler:$ac_header_preproc in
3593      yes:no )
3594        { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
3595    echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3596        { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
3597    echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
3598        (
3599          cat <<\_ASBOX
3600    ## ------------------------------------ ##
3601    ## Report this to bug-autoconf@gnu.org. ##
3602    ## ------------------------------------ ##
3603    _ASBOX
3604        ) |
3605          sed "s/^/$as_me: WARNING:     /" >&2
3606        ;;
3607      no:yes )
3608        { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
3609    echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
3610        { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
3611    echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
3612        { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
3613    echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
3614        (
3615          cat <<\_ASBOX
3616    ## ------------------------------------ ##
3617    ## Report this to bug-autoconf@gnu.org. ##
3618    ## ------------------------------------ ##
3619    _ASBOX
3620        ) |
3621          sed "s/^/$as_me: WARNING:     /" >&2
3622        ;;
3623    esac
3624    echo "$as_me:$LINENO: checking for unistd.h" >&5
3625    echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
3626    if test "${ac_cv_header_unistd_h+set}" = set; then
3627      echo $ECHO_N "(cached) $ECHO_C" >&6
3628    else
3629      ac_cv_header_unistd_h=$ac_header_preproc
3630    fi
3631    echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
3632    echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
3633    
3634    fi
3635    if test $ac_cv_header_unistd_h = yes; then
3636      echo "$as_me:$LINENO: checking for sysconf in -lc" >&5
3637    echo $ECHO_N "checking for sysconf in -lc... $ECHO_C" >&6
3638    if test "${ac_cv_lib_c_sysconf+set}" = set; then
3639      echo $ECHO_N "(cached) $ECHO_C" >&6
3640    else
3641      ac_check_lib_save_LIBS=$LIBS
3642    LIBS="-lc  $LIBS"
3643    cat >conftest.$ac_ext <<_ACEOF
3644    #line $LINENO "configure"
3645    /* confdefs.h.  */
3646    _ACEOF
3647    cat confdefs.h >>conftest.$ac_ext
3648    cat >>conftest.$ac_ext <<_ACEOF
3649    /* end confdefs.h.  */
3650    
3651    /* Override any gcc2 internal prototype to avoid an error.  */
3652    #ifdef __cplusplus
3653    extern "C"
3654    #endif
3655    /* We use char because int might match the return type of a gcc2
3656       builtin and then its argument prototype would still apply.  */
3657    char sysconf ();
3658    int
3659    main ()
3660    {
3661    sysconf ();
3662      ;
3663      return 0;
3664    }
3665    _ACEOF
3666    rm -f conftest.$ac_objext conftest$ac_exeext
3667    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3668      (eval $ac_link) 2>&5
3669      ac_status=$?
3670      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671      (exit $ac_status); } &&
3672             { ac_try='test -s conftest$ac_exeext'
3673      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674      (eval $ac_try) 2>&5
3675      ac_status=$?
3676      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677      (exit $ac_status); }; }; then
3678      ac_cv_lib_c_sysconf=yes
3679    else
3680      echo "$as_me: failed program was:" >&5
3681    sed 's/^/| /' conftest.$ac_ext >&5
3682    
3683    ac_cv_lib_c_sysconf=no
3684    fi
3685    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3686    LIBS=$ac_check_lib_save_LIBS
3687    fi
3688    echo "$as_me:$LINENO: result: $ac_cv_lib_c_sysconf" >&5
3689    echo "${ECHO_T}$ac_cv_lib_c_sysconf" >&6
3690    if test $ac_cv_lib_c_sysconf = yes; then
3691      echo "$as_me:$LINENO: checking \"for _SC_CLK_TCK\"" >&5
3692    echo $ECHO_N "checking \"for _SC_CLK_TCK\"... $ECHO_C" >&6
3693    
3694    if test "$cross_compiling" = yes; then
3695    hz=0    hz=0
3696  else  else
3697    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3698  #line 1807 "configure"  #line $LINENO "configure"
3699  #include "confdefs.h"  /* confdefs.h.  */
3700    _ACEOF
3701    cat confdefs.h >>conftest.$ac_ext
3702    cat >>conftest.$ac_ext <<_ACEOF
3703    /* end confdefs.h.  */
3704  #include <unistd.h>  #include <unistd.h>
3705                              #include <stdio.h>                              #include <stdio.h>
3706                              int                              int
# Line 1814  else Line 3710  else
3710                                  fclose(fp);                                  fclose(fp);
3711                                  return 0;                                  return 0;
3712                              }                              }
3713  EOF  _ACEOF
3714  if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3715  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3716      (eval $ac_link) 2>&5
3717      ac_status=$?
3718      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3720      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721      (eval $ac_try) 2>&5
3722      ac_status=$?
3723      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724      (exit $ac_status); }; }; then
3725    hz=`cat conftest1`    hz=`cat conftest1`
3726                              cat >> confdefs.h <<EOF                              cat >>confdefs.h <<_ACEOF
3727  #define HZ $hz  #define HZ $hz
3728  EOF  _ACEOF
3729    
3730    
                               
3731  else  else
3732    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3733    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
3734    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
3735    hz=0  
3736    ( exit $ac_status )
3737    hz=0
3738  fi  fi
3739  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3740  fi  fi
3741                    echo "$as_me:$LINENO: result: $hz" >&5
3742                  echo "$ac_t""$hz" 1>&6  echo "${ECHO_T}$hz" >&6
 else  
   echo "$ac_t""no" 1>&6  
3743  fi  fi
3744    
 else  
   echo "$ac_t""no" 1>&6  
3745  fi  fi
3746    
3747    
3748    
3749    
3750  #MY_SUBDIRS=  #MY_SUBDIRS=
3751    
3752  #  #
# Line 1857  if test $use_gmp = yes ; then Line 3761  if test $use_gmp = yes ; then
3761   GMPDIR=gmp3   GMPDIR=gmp3
3762   PATCHED_SYMBOLS=""   PATCHED_SYMBOLS=""
3763   if test "$enable_dynsysgmp" = "yes" ; then   if test "$enable_dynsysgmp" = "yes" ; then
3764          ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`          if test "${ac_cv_header_gmp_h+set}" = set; then
3765  echo $ac_n "checking for gmp.h""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for gmp.h" >&5
3766  echo "configure:1863: checking for gmp.h" >&5  echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
3767  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_gmp_h+set}" = set; then
3768    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3769  else  fi
3770    cat > conftest.$ac_ext <<EOF  echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
3771  #line 1868 "configure"  echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
3772  #include "confdefs.h"  else
3773      # Is the header compilable?
3774    echo "$as_me:$LINENO: checking gmp.h usability" >&5
3775    echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6
3776    cat >conftest.$ac_ext <<_ACEOF
3777    #line $LINENO "configure"
3778    /* confdefs.h.  */
3779    _ACEOF
3780    cat confdefs.h >>conftest.$ac_ext
3781    cat >>conftest.$ac_ext <<_ACEOF
3782    /* end confdefs.h.  */
3783    $ac_includes_default
3784  #include <gmp.h>  #include <gmp.h>
3785  EOF  _ACEOF
3786  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  rm -f conftest.$ac_objext
3787  { (eval echo configure:1873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    (eval $ac_compile) 2>&5
3789  if test -z "$ac_err"; then    ac_status=$?
3790    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791    eval "ac_cv_header_$ac_safe=yes"    (exit $ac_status); } &&
3792  else           { ac_try='test -s conftest.$ac_objext'
3793    echo "$ac_err" >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794    echo "configure: failed program was:" >&5    (eval $ac_try) 2>&5
3795    cat conftest.$ac_ext >&5    ac_status=$?
3796    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797    eval "ac_cv_header_$ac_safe=no"    (exit $ac_status); }; }; then
3798  fi    ac_header_compiler=yes
3799  rm -f conftest*  else
3800      echo "$as_me: failed program was:" >&5
3801    sed 's/^/| /' conftest.$ac_ext >&5
3802    
3803    ac_header_compiler=no
3804    fi
3805    rm -f conftest.$ac_objext conftest.$ac_ext
3806    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3807    echo "${ECHO_T}$ac_header_compiler" >&6
3808    
3809    # Is the header present?
3810    echo "$as_me:$LINENO: checking gmp.h presence" >&5
3811    echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6
3812    cat >conftest.$ac_ext <<_ACEOF
3813    #line $LINENO "configure"
3814    /* confdefs.h.  */
3815    _ACEOF
3816    cat confdefs.h >>conftest.$ac_ext
3817    cat >>conftest.$ac_ext <<_ACEOF
3818    /* end confdefs.h.  */
3819    #include <gmp.h>
3820    _ACEOF
3821    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3822      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3823      ac_status=$?
3824      grep -v '^ *+' conftest.er1 >conftest.err
3825      rm -f conftest.er1
3826      cat conftest.err >&5
3827      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828      (exit $ac_status); } >/dev/null; then
3829      if test -s conftest.err; then
3830        ac_cpp_err=$ac_c_preproc_warn_flag
3831      else
3832        ac_cpp_err=
3833      fi
3834    else
3835      ac_cpp_err=yes
3836  fi  fi
3837  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
3838    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
   echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6  
 echo "configure:1890: checking for __gmpz_init in -lgmp" >&5  
 ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`  
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
3839  else  else
3840    ac_save_LIBS="$LIBS"    echo "$as_me: failed program was:" >&5
3841  LIBS="-lgmp  $LIBS"  sed 's/^/| /' conftest.$ac_ext >&5
 cat > conftest.$ac_ext <<EOF  
 #line 1898 "configure"  
 #include "confdefs.h"  
 /* Override any gcc2 internal prototype to avoid an error.  */  
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char __gmpz_init();  
3842    
3843  int main() {    ac_header_preproc=no
3844  __gmpz_init()  fi
3845  ; return 0; }  rm -f conftest.err conftest.$ac_ext
3846  EOF  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3847  if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  echo "${ECHO_T}$ac_header_preproc" >&6
3848    rm -rf conftest*  
3849    eval "ac_cv_lib_$ac_lib_var=yes"  # So?  What about this header?
3850  else  case $ac_header_compiler:$ac_header_preproc in
3851    echo "configure: failed program was:" >&5    yes:no )
3852    cat conftest.$ac_ext >&5      { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
3853    rm -rf conftest*  echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3854    eval "ac_cv_lib_$ac_lib_var=no"      { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
3855    echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}
3856        (
3857          cat <<\_ASBOX
3858    ## ------------------------------------ ##
3859    ## Report this to bug-autoconf@gnu.org. ##
3860    ## ------------------------------------ ##
3861    _ASBOX
3862        ) |
3863          sed "s/^/$as_me: WARNING:     /" >&2
3864        ;;
3865      no:yes )
3866        { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
3867    echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
3868        { echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5
3869    echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;}
3870        { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
3871    echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}
3872        (
3873          cat <<\_ASBOX
3874    ## ------------------------------------ ##
3875    ## Report this to bug-autoconf@gnu.org. ##
3876    ## ------------------------------------ ##
3877    _ASBOX
3878        ) |
3879          sed "s/^/$as_me: WARNING:     /" >&2
3880        ;;
3881    esac
3882    echo "$as_me:$LINENO: checking for gmp.h" >&5
3883    echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
3884    if test "${ac_cv_header_gmp_h+set}" = set; then
3885      echo $ECHO_N "(cached) $ECHO_C" >&6
3886    else
3887      ac_cv_header_gmp_h=$ac_header_preproc
3888  fi  fi
3889  rm -f conftest*  echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
3890  LIBS="$ac_save_LIBS"  echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
3891    
3892  fi  fi
3893  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if test $ac_cv_header_gmp_h = yes; then
3894    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
3895    echo $ac_n "checking "for external gmp version"""... $ac_c" 1>&6  echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6
3896  echo "configure:1925: checking "for external gmp version"" >&5  if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
3897      echo $ECHO_N "(cached) $ECHO_C" >&6
3898    else
3899      ac_check_lib_save_LIBS=$LIBS
3900    LIBS="-lgmp  $LIBS"
3901    cat >conftest.$ac_ext <<_ACEOF
3902    #line $LINENO "configure"
3903    /* confdefs.h.  */
3904    _ACEOF
3905    cat confdefs.h >>conftest.$ac_ext
3906    cat >>conftest.$ac_ext <<_ACEOF
3907    /* end confdefs.h.  */
3908    
3909    /* Override any gcc2 internal prototype to avoid an error.  */
3910    #ifdef __cplusplus
3911    extern "C"
3912    #endif
3913    /* We use char because int might match the return type of a gcc2
3914       builtin and then its argument prototype would still apply.  */
3915    char __gmpz_init ();
3916    int
3917    main ()
3918    {
3919    __gmpz_init ();
3920      ;
3921      return 0;
3922    }
3923    _ACEOF
3924    rm -f conftest.$ac_objext conftest$ac_exeext
3925    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926      (eval $ac_link) 2>&5
3927      ac_status=$?
3928      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929      (exit $ac_status); } &&
3930             { ac_try='test -s conftest$ac_exeext'
3931      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932      (eval $ac_try) 2>&5
3933      ac_status=$?
3934      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935      (exit $ac_status); }; }; then
3936      ac_cv_lib_gmp___gmpz_init=yes
3937    else
3938      echo "$as_me: failed program was:" >&5
3939    sed 's/^/| /' conftest.$ac_ext >&5
3940    
3941    ac_cv_lib_gmp___gmpz_init=no
3942    fi
3943    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3944    LIBS=$ac_check_lib_save_LIBS
3945    fi
3946    echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
3947    echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6
3948    if test $ac_cv_lib_gmp___gmpz_init = yes; then
3949      echo "$as_me:$LINENO: checking \"for external gmp version\"" >&5
3950    echo $ECHO_N "checking \"for external gmp version\"... $ECHO_C" >&6
3951                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
3952    echo "Cannot use dynamic gmp lib"    echo "Cannot use dynamic gmp lib"
3953  else  else
3954    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3955  #line 1930 "configure"  #line $LINENO "configure"
3956  #include "confdefs.h"  /* confdefs.h.  */
3957    _ACEOF
3958    cat confdefs.h >>conftest.$ac_ext
3959    cat >>conftest.$ac_ext <<_ACEOF
3960    /* end confdefs.h.  */
3961  #include <gmp.h>  #include <gmp.h>
3962                                      int main() {                                      int main() {
3963                                      #if __GNU_MP_VERSION == 4                                      #if __GNU_MP_VERSION == 4
# Line 1936  else Line 3966  else
3966                                          return -1;                                          return -1;
3967                                      #endif                                      #endif
3968                                      }                                      }
3969  EOF  _ACEOF
3970  if { (eval echo configure:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3971  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3972      (eval $ac_link) 2>&5
3973      ac_status=$?
3974      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3976      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977      (eval $ac_try) 2>&5
3978      ac_status=$?
3979      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980      (exit $ac_status); }; }; then
3981    #                             MPFILES=$GMPDIR/mpn/mul_n.o    #                             MPFILES=$GMPDIR/mpn/mul_n.o
3982  #                               PATCHED_SYMBOLS=__gmpn_toom3_mul_n  #                               PATCHED_SYMBOLS=__gmpn_toom3_mul_n
3983                                  MPFILES=                                  MPFILES=
# Line 1953  then Line 3992  then
3992                                  MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -n 1 | $AWK '{print $3}' | tr -d '"'`                                  MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -n 1 | $AWK '{print $3}' | tr -d '"'`
3993                                  rm -f foo.c                                  rm -f foo.c
3994  else  else
3995    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3996    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
3997    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
3998    echo "Cannot use dynamic gmp lib"  
3999    ( exit $ac_status )
4000    echo "Cannot use dynamic gmp lib"
4001  fi  fi
4002  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4003  fi  fi
   
4004  else  else
4005    echo "$ac_t""no" 1>&6    echo "Cannot use dynamic gmp lib"
 echo "Cannot use dynamic gmp lib"  
4006  fi  fi
4007    
4008  else  else
4009    echo "$ac_t""no" 1>&6    echo "Cannot use dynamic gmp lib"
 echo "Cannot use dynamic gmp lib"  
4010  fi  fi
4011    
4012    
4013  fi  fi
4014    
4015  NEED_LOCAL_GMP=''  NEED_LOCAL_GMP=''
4016  if test "$MP_INCLUDE" = "" ; then                        if test "$MP_INCLUDE" = "" ; then
4017          NEED_LOCAL_GMP=1;          NEED_LOCAL_GMP=1;
4018  fi  fi
4019  if test "$PATCHED_SYMBOLS" != "" ; then                  if test "$PATCHED_SYMBOLS" != "" ; then
4020          NEED_LOCAL_GMP=1;          NEED_LOCAL_GMP=1;
4021  fi  fi
4022    
4023  if test "$NEED_LOCAL_GMP" != "" ; then                    if test "$NEED_LOCAL_GMP" != "" ; then
4024    
4025           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
4026  echo "configure:1988: 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
4027           echo           echo
4028           echo "#"           echo "#"
4029           echo "#"           echo "#"
# Line 1998  echo "configure:1988: checking use_gmp=y Line 4037  echo "configure:1988: checking use_gmp=y
4037           else           else
4038             cd $GMPDIR && ./configure && cd ..             cd $GMPDIR && ./configure && cd ..
4039           fi           fi
4040          #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"          #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"
4041    
4042           echo "#"           echo "#"
4043           echo "#"           echo "#"
# Line 2015  echo "configure:1988: checking use_gmp=y Line 4054  echo "configure:1988: checking use_gmp=y
4054    
4055  fi  fi
4056    
4057  echo $ac_n "checking "for leading underscore in object symbols"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"for leading underscore in object symbols\"" >&5
4058  echo "configure:2020: checking "for leading underscore in object symbols"" >&5  echo $ECHO_N "checking \"for leading underscore in object symbols\"... $ECHO_C" >&6
4059  cat>foo.c <<EOFF  cat>foo.c <<EOFF
4060  #include <math.h>  #include <math.h>
4061  int main() {double d=0.0;cos(d);return 0;}  int main() {double d=0.0;cos(d);return 0;}
# Line 2024  EOFF Line 4063  EOFF
4063  $CC -c foo.c -o foo.o  $CC -c foo.c -o foo.o
4064  if nm foo.o |grep " U " | grep "_cos" >/dev/null ; then  if nm foo.o |grep " U " | grep "_cos" >/dev/null ; then
4065          LEADING_UNDERSCORE=1          LEADING_UNDERSCORE=1
4066          echo "$ac_t"""yes"" 1>&6          echo "$as_me:$LINENO: result: \"yes\"" >&5
4067    echo "${ECHO_T}\"yes\"" >&6
4068  else  else
4069          LEADING_UNDERSCORE=""          LEADING_UNDERSCORE=""
4070          echo "$ac_t"""no"" 1>&6          echo "$as_me:$LINENO: result: \"no\"" >&5
4071    echo "${ECHO_T}\"no\"" >&6
4072  fi  fi
4073  echo $ac_n "checking "for GNU ld option -Map"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"for GNU ld option -Map\"" >&5
4074  echo "configure:2034: checking "for GNU ld option -Map"" >&5  echo $ECHO_N "checking \"for GNU ld option -Map\"... $ECHO_C" >&6
4075  touch map  touch map
4076  $CC -o foo  -Wl,-Map  map foo.o >/dev/null 2>&1  $CC -o foo  -Wl,-Map  map foo.o >/dev/null 2>&1
4077  if test `cat map | wc -l` != "0" ; then  if test `cat map | wc -l` != "0" ; then
4078          echo "$ac_t"""yes"" 1>&6          echo "$as_me:$LINENO: result: \"yes\"" >&5
4079          cat >> confdefs.h <<\EOF  echo "${ECHO_T}\"yes\"" >&6
4080            cat >>confdefs.h <<\_ACEOF
4081  #define HAVE_GNU_LD 1  #define HAVE_GNU_LD 1
4082  EOF  _ACEOF
4083    
4084          GNU_LD=1          GNU_LD=1
4085  else  else
4086          echo "$ac_t"""no"" 1>&6          echo "$as_me:$LINENO: result: \"no\"" >&5
4087    echo "${ECHO_T}\"no\"" >&6
4088          GNU_LD=          GNU_LD=
4089  fi  fi
4090  rm -f foo.c foo.o foo map  rm -f foo.c foo.o foo map
4091    
4092   echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking \"for size of gmp limbs\"" >&5
4093  echo "configure:2051: checking "for size of gmp limbs"" >&5  echo $ECHO_N "checking \"for size of gmp limbs\"... $ECHO_C" >&6
4094   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
4095    mpsize=0    mpsize=0
4096  else  else
4097    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4098  #line 2056 "configure"  #line $LINENO "configure"
4099  #include "confdefs.h"  /* confdefs.h.  */
4100    _ACEOF
4101    cat confdefs.h >>conftest.$ac_ext
4102    cat >>conftest.$ac_ext <<_ACEOF
4103    /* end confdefs.h.  */
4104  #include <stdio.h>  #include <stdio.h>
4105          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
4106          int main() {          int main() {
# Line 2062  else Line 4109  else
4109          fclose(fp);          fclose(fp);
4110          return 0;          return 0;
4111          }          }
4112  EOF  _ACEOF
4113  if { (eval echo configure:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
4114  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4115      (eval $ac_link) 2>&5
4116      ac_status=$?
4117      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4119      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120      (eval $ac_try) 2>&5
4121      ac_status=$?
4122      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123      (exit $ac_status); }; }; then
4124    mpsize=`cat conftest1`    mpsize=`cat conftest1`
4125  else  else
4126    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
4127    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
4128    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
4129    mpsize=0  
4130    ( exit $ac_status )
4131    mpsize=0
4132  fi  fi
4133  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4134  fi  fi
   
4135   if test "$mpsize" = "0" ; then   if test "$mpsize" = "0" ; then
4136          echo "Cannot determine mpsize"          echo "Cannot determine mpsize"
4137          exit 1          exit 1
4138   fi   fi
4139   cat >> confdefs.h <<EOF   cat >>confdefs.h <<_ACEOF
4140  #define MP_LIMB_BYTES $mpsize  #define MP_LIMB_BYTES $mpsize
4141  EOF  _ACEOF
4142    
4143   echo "$ac_t""$mpsize" 1>&6   echo "$as_me:$LINENO: result: $mpsize" >&5
4144    echo "${ECHO_T}$mpsize" >&6
4145    
4146   echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking \"_SHORT_LIMB\"" >&5
4147  echo "configure:2090: checking "_SHORT_LIMB"" >&5  echo $ECHO_N "checking \"_SHORT_LIMB\"... $ECHO_C" >&6
4148   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
4149    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
4150    echo "${ECHO_T}no" >&6
4151  else  else
4152    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4153  #line 2095 "configure"  #line $LINENO "configure"
4154  #include "confdefs.h"  /* confdefs.h.  */
4155    _ACEOF
4156    cat confdefs.h >>conftest.$ac_ext
4157    cat >>conftest.$ac_ext <<_ACEOF
4158    /* end confdefs.h.  */
4159  #include <stdio.h>  #include <stdio.h>
4160          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
4161          int main() {          int main() {
# Line 2102  else Line 4165  else
4165          return 1;          return 1;
4166          #endif          #endif
4167          }          }
4168  EOF  _ACEOF
4169  if { (eval echo configure:2107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
4170  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
4172      ac_status=$?
4173      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4175      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176      (eval $ac_try) 2>&5
4177      ac_status=$?
4178      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179      (exit $ac_status); }; }; then
4180      cat >>confdefs.h <<\_ACEOF
4181  #define __SHORT_LIMB 1  #define __SHORT_LIMB 1
4182  EOF  _ACEOF
4183   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
4184  else  echo "${ECHO_T}yes" >&6
4185    echo "configure: failed program was:" >&5  else
4186    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
4187    rm -fr conftest*  echo "$as_me: failed program was:" >&5
4188    echo "$ac_t""no" 1>&6  sed 's/^/| /' conftest.$ac_ext >&5
4189    
4190    ( exit $ac_status )
4191    echo "$as_me:$LINENO: result: no" >&5
4192    echo "${ECHO_T}no" >&6
4193  fi  fi
4194  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4195  fi  fi
4196     echo "$as_me:$LINENO: checking \"_LONG_LONG_LIMB\"" >&5
4197   echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6  echo $ECHO_N "checking \"_LONG_LONG_LIMB\"... $ECHO_C" >&6
 echo "configure:2123: checking "_LONG_LONG_LIMB"" >&5  
4198   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
4199    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
4200    echo "${ECHO_T}no" >&6
4201  else  else
4202    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4203  #line 2128 "configure"  #line $LINENO "configure"
4204  #include "confdefs.h"  /* confdefs.h.  */
4205    _ACEOF
4206    cat confdefs.h >>conftest.$ac_ext
4207    cat >>conftest.$ac_ext <<_ACEOF
4208    /* end confdefs.h.  */
4209  #include <stdio.h>  #include <stdio.h>
4210          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
4211          int main() {          int main() {
# Line 2135  else Line 4215  else
4215          return 1;          return 1;
4216          #endif          #endif
4217          }          }
4218  EOF  _ACEOF
4219  if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
4220  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4221    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
4222      ac_status=$?
4223      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4225      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226      (eval $ac_try) 2>&5
4227      ac_status=$?
4228      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229      (exit $ac_status); }; }; then
4230      cat >>confdefs.h <<\_ACEOF
4231  #define __LONG_LONG_LIMB 1  #define __LONG_LONG_LIMB 1
4232  EOF  _ACEOF
4233   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
4234  else  echo "${ECHO_T}yes" >&6
4235    echo "configure: failed program was:" >&5  else
4236    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
4237    rm -fr conftest*  echo "$as_me: failed program was:" >&5
4238    echo "$ac_t""no" 1>&6  sed 's/^/| /' conftest.$ac_ext >&5
4239    
4240    ( exit $ac_status )
4241    echo "$as_me:$LINENO: result: no" >&5
4242    echo "${ECHO_T}no" >&6
4243  fi  fi
4244  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4245  fi  fi
4246    
   
4247   GMP=1   GMP=1
4248   cat >> confdefs.h <<\EOF   cat >>confdefs.h <<\_ACEOF
4249  #define GMP 1  #define GMP 1
4250  EOF  _ACEOF
4251    
4252    
4253    
   
   
4254   echo > makedefsafter   echo > makedefsafter
4255   echo "MPFILES=$MPFILES" >> makedefsafter   echo "MPFILES=$MPFILES" >> makedefsafter
4256   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter
# Line 2168  fi Line 4260  fi
4260    
4261  #  #
4262  # X windows  # X windows
4263  #  #
4264    
4265    echo "$as_me:$LINENO: checking for X" >&5
4266    echo $ECHO_N "checking for X... $ECHO_C" >&6
4267    
 # 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:2179: checking for X" >&5  
4268    
4269  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
4270  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
4271    withval="$with_x"    withval="$with_x"
   :  
 fi  
4272    
4273    fi;
4274  # $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.
4275  if test "x$with_x" = xno; then  if test "x$with_x" = xno; then
4276    # The user explicitly disabled X.    # The user explicitly disabled X.
# Line 2192  else Line 4280  else
4280      # Both variables are already set.      # Both variables are already set.
4281      have_x=yes      have_x=yes
4282    else    else
4283  if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then      if test "${ac_cv_have_x+set}" = set; then
4284    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4285  else  else
4286    # 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.
4287  ac_x_includes=NO ac_x_libraries=NO  ac_x_includes=no ac_x_libraries=no
4288  rm -fr conftestdir  rm -fr conftest.dir
4289  if mkdir conftestdir; then  if mkdir conftest.dir; then
4290    cd conftestdir    cd conftest.dir
4291    # 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.
4292    cat > Imakefile <<'EOF'    cat >Imakefile <<'_ACEOF'
4293  acfindx:  acfindx:
4294          @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}"'
4295  EOF  _ACEOF
4296    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4297      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4298      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4299      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4300      for ac_extension in a so sl; do      for ac_extension in a so sl; do
4301        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4302          test -f $ac_im_libdir/libX11.$ac_extension; then           test -f $ac_im_libdir/libX11.$ac_extension; then
4303          ac_im_usrlibdir=$ac_im_libdir; break          ac_im_usrlibdir=$ac_im_libdir; break
4304        fi        fi
4305      done      done
4306      # Screen out bogus values from the imake configuration.  They are      # Screen out bogus values from the imake configuration.  They are
4307      # bogus both because they are the default anyway, and because      # bogus both because they are the default anyway, and because
4308      # using them would break gcc on systems where it needs fixed includes.      # using them would break gcc on systems where it needs fixed includes.
4309      case "$ac_im_incroot" in      case $ac_im_incroot in
4310          /usr/include) ;;          /usr/include) ;;
4311          *) 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;;
4312      esac      esac
4313      case "$ac_im_usrlibdir" in      case $ac_im_usrlibdir in
4314          /usr/lib | /lib) ;;          /usr/lib | /lib) ;;
4315          *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;          *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4316      esac      esac
4317    fi    fi
4318    cd ..    cd ..
4319    rm -fr conftestdir    rm -fr conftest.dir
4320  fi  fi
4321    
4322  if test "$ac_x_includes" = NO; then  # Standard set of common directories for X headers.
4323    # 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.
4324    test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h  ac_x_header_dirs='
4325    /usr/X11/include
4326    /usr/X11R6/include
4327    /usr/X11R5/include
4328    /usr/X11R4/include
4329    
4330    /usr/include/X11
4331    /usr/include/X11R6
4332    /usr/include/X11R5
4333    /usr/include/X11R4
4334    
4335    /usr/local/X11/include
4336    /usr/local/X11R6/include
4337    /usr/local/X11R5/include
4338    /usr/local/X11R4/include
4339    
4340    /usr/local/include/X11
4341    /usr/local/include/X11R6
4342    /usr/local/include/X11R5
4343    /usr/local/include/X11R4
4344    
4345    /usr/X386/include
4346    /usr/x386/include
4347    /usr/XFree86/include/X11
4348    
4349    /usr/include
4350    /usr/local/include
4351    /usr/unsupported/include
4352    /usr/athena/include
4353    /usr/local/x11r5/include
4354    /usr/lpp/Xamples/include
4355    
4356    /usr/openwin/include
4357    /usr/openwin/share/include'
4358    
4359    if test "$ac_x_includes" = no; then
4360      # Guess where to find include files, by looking for Intrinsic.h.
4361    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
4362  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4363  #line 2241 "configure"  #line $LINENO "configure"
4364  #include "confdefs.h"  /* confdefs.h.  */
4365  #include <$x_direct_test_include>  _ACEOF
4366  EOF  cat confdefs.h >>conftest.$ac_ext
4367  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  cat >>conftest.$ac_ext <<_ACEOF
4368  { (eval echo configure:2246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  /* end confdefs.h.  */
4369  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  #include <X11/Intrinsic.h>
4370  if test -z "$ac_err"; then  _ACEOF
4371    rm -rf conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4372      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4373      ac_status=$?
4374      grep -v '^ *+' conftest.er1 >conftest.err
4375      rm -f conftest.er1
4376      cat conftest.err >&5
4377      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378      (exit $ac_status); } >/dev/null; then
4379      if test -s conftest.err; then
4380        ac_cpp_err=$ac_c_preproc_warn_flag
4381      else
4382        ac_cpp_err=
4383      fi
4384    else
4385      ac_cpp_err=yes
4386    fi
4387    if test -z "$ac_cpp_err"; then
4388    # We can compile using X headers with no special include directory.    # We can compile using X headers with no special include directory.
4389  ac_x_includes=  ac_x_includes=
4390  else  else
4391    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
4392    echo "configure: failed program was:" >&5  sed 's/^/| /' conftest.$ac_ext >&5
4393    cat conftest.$ac_ext >&5  
4394    rm -rf conftest*    for ac_dir in $ac_x_header_dirs; do
4395    # Look for the header file in a standard set of common directories.    if test -r "$ac_dir/X11/Intrinsic.h"; then
4396  # Check X11 before X11Rn because it is often a symlink to the current release.      ac_x_includes=$ac_dir
4397    for ac_dir in               \      break
4398      /usr/X11/include          \    fi
4399      /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  
4400  fi  fi
4401  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
4402  fi # $ac_x_includes = NO  fi # $ac_x_includes = no
4403    
4404  if test "$ac_x_libraries" = NO; then  if test "$ac_x_libraries" = no; then
4405    # 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  
   
4406    # See if we find them without any special options.    # See if we find them without any special options.
4407    # Don't add to $LIBS permanently.    # Don't add to $LIBS permanently.
4408    ac_save_LIBS="$LIBS"    ac_save_LIBS=$LIBS
4409    LIBS="-l$x_direct_test_library $LIBS"    LIBS="-lXt $LIBS"
4410  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4411  #line 2315 "configure"  #line $LINENO "configure"
4412  #include "confdefs.h"  /* confdefs.h.  */
4413    _ACEOF
4414  int main() {  cat confdefs.h >>conftest.$ac_ext
4415  ${x_direct_test_function}()  cat >>conftest.$ac_ext <<_ACEOF
4416  ; return 0; }  /* end confdefs.h.  */
4417  EOF  #include <X11/Intrinsic.h>
4418  if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  int
4419    rm -rf conftest*  main ()
4420    LIBS="$ac_save_LIBS"  {
4421    XtMalloc (0)
4422      ;
4423      return 0;
4424    }
4425    _ACEOF
4426    rm -f conftest.$ac_objext conftest$ac_exeext
4427    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4428      (eval $ac_link) 2>&5
4429      ac_status=$?
4430      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431      (exit $ac_status); } &&
4432             { ac_try='test -s conftest$ac_exeext'
4433      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434      (eval $ac_try) 2>&5
4435      ac_status=$?
4436      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437      (exit $ac_status); }; }; then
4438      LIBS=$ac_save_LIBS
4439  # We can link X programs with no special library path.  # We can link X programs with no special library path.
4440  ac_x_libraries=  ac_x_libraries=
4441  else  else
4442    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4443    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4444    rm -rf conftest*  
4445    LIBS="$ac_save_LIBS"  LIBS=$ac_save_LIBS
4446  # First see if replacing the include by lib works.  for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 # 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 \  
     ; \  
4447  do  do
4448      # Don't even attempt the hair of trying to link an X program!
4449    for ac_extension in a so sl; do    for ac_extension in a so sl; do
4450      if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then      if test -r $ac_dir/libXt.$ac_extension; then
4451        ac_x_libraries=$ac_dir        ac_x_libraries=$ac_dir
4452        break 2        break 2
4453      fi      fi
4454    done    done
4455  done  done
4456  fi  fi
4457  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4458  fi # $ac_x_libraries = NO  fi # $ac_x_libraries = no
4459    
4460  if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then  if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4461    # Didn't find X anywhere.  Cache the known absence of X.    # Didn't find X anywhere.  Cache the known absence of X.
4462    ac_cv_have_x="have_x=no"    ac_cv_have_x="have_x=no"
4463  else  else
# Line 2387  else Line 4466  else
4466                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4467  fi  fi
4468  fi  fi
4469    
4470    fi    fi
4471    eval "$ac_cv_have_x"    eval "$ac_cv_have_x"
4472  fi # $with_x != no  fi # $with_x != no
4473    
4474  if test "$have_x" != yes; then  if test "$have_x" != yes; then
4475    echo "$ac_t""$have_x" 1>&6    echo "$as_me:$LINENO: result: $have_x" >&5
4476    echo "${ECHO_T}$have_x" >&6
4477    no_x=yes    no_x=yes
4478  else  else
4479    # 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 2401  else Line 4482  else
4482    # Update the cache value to reflect the command line values.    # Update the cache value to reflect the command line values.
4483    ac_cv_have_x="have_x=yes \    ac_cv_have_x="have_x=yes \
4484                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4485    echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6    echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4486    echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4487  fi  fi
4488    
4489  if test "$no_x" = yes; then  if test "$no_x" = yes; then
4490    # 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.
4491    cat >> confdefs.h <<\EOF  
4492    cat >>confdefs.h <<\_ACEOF
4493  #define X_DISPLAY_MISSING 1  #define X_DISPLAY_MISSING 1
4494  EOF  _ACEOF
4495    
4496    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4497  else  else
# Line 2421  else Line 4504  else
4504      X_LIBS="$X_LIBS -L$x_libraries"      X_LIBS="$X_LIBS -L$x_libraries"
4505      # 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
4506      # others require no space.  Words are not sufficient . . . .      # others require no space.  Words are not sufficient . . . .
4507      case "`(uname -sr) 2>/dev/null`" in      case `(uname -sr) 2>/dev/null` in
4508      "SunOS 5"*)      "SunOS 5"*)
4509        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
4510  echo "configure:2428: 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
4511        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"        ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4512        cat > conftest.$ac_ext <<EOF        cat >conftest.$ac_ext <<_ACEOF
4513  #line 2431 "configure"  #line $LINENO "configure"
4514  #include "confdefs.h"  /* confdefs.h.  */
4515    _ACEOF
4516    cat confdefs.h >>conftest.$ac_ext
4517    cat >>conftest.$ac_ext <<_ACEOF
4518    /* end confdefs.h.  */
4519    
4520  int main() {  int
4521    main ()
4522    {
4523    
4524  ; return 0; }    ;
4525  EOF    return 0;
4526  if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4527    rm -rf conftest*  _ACEOF
4528    rm -f conftest.$ac_objext conftest$ac_exeext
4529    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4530      (eval $ac_link) 2>&5
4531      ac_status=$?
4532      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533      (exit $ac_status); } &&
4534             { ac_try='test -s conftest$ac_exeext'
4535      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536      (eval $ac_try) 2>&5
4537      ac_status=$?
4538      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539      (exit $ac_status); }; }; then
4540    ac_R_nospace=yes    ac_R_nospace=yes
4541  else  else
4542    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4543    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4544    rm -rf conftest*  
4545    ac_R_nospace=no  ac_R_nospace=no
4546  fi  fi
4547  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4548        if test $ac_R_nospace = yes; then        if test $ac_R_nospace = yes; then
4549          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
4550    echo "${ECHO_T}no" >&6
4551          X_LIBS="$X_LIBS -R$x_libraries"          X_LIBS="$X_LIBS -R$x_libraries"
4552        else        else
4553          LIBS="$ac_xsave_LIBS -R $x_libraries"          LIBS="$ac_xsave_LIBS -R $x_libraries"
4554          cat > conftest.$ac_ext <<EOF          cat >conftest.$ac_ext <<_ACEOF
4555  #line 2454 "configure"  #line $LINENO "configure"
4556  #include "confdefs.h"  /* confdefs.h.  */
4557    _ACEOF
4558    cat confdefs.h >>conftest.$ac_ext
4559    cat >>conftest.$ac_ext <<_ACEOF
4560    /* end confdefs.h.  */
4561    
4562  int main() {  int
4563    main ()
4564    {
4565    
4566  ; return 0; }    ;
4567  EOF    return 0;
4568  if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4569    rm -rf conftest*  _ACEOF
4570    rm -f conftest.$ac_objext conftest$ac_exeext
4571    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4572      (eval $ac_link) 2>&5
4573      ac_status=$?
4574      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575      (exit $ac_status); } &&
4576             { ac_try='test -s conftest$ac_exeext'
4577      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578      (eval $ac_try) 2>&5
4579      ac_status=$?
4580      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581      (exit $ac_status); }; }; then
4582    ac_R_space=yes    ac_R_space=yes
4583  else  else
4584    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4585    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4586    rm -rf conftest*  
4587    ac_R_space=no  ac_R_space=no
4588  fi  fi
4589  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4590          if test $ac_R_space = yes; then          if test $ac_R_space = yes; then
4591            echo "$ac_t""yes" 1>&6            echo "$as_me:$LINENO: result: yes" >&5
4592    echo "${ECHO_T}yes" >&6
4593            X_LIBS="$X_LIBS -R $x_libraries"            X_LIBS="$X_LIBS -R $x_libraries"
4594          else          else
4595            echo "$ac_t""neither works" 1>&6            echo "$as_me:$LINENO: result: neither works" >&5
4596    echo "${ECHO_T}neither works" >&6
4597          fi          fi
4598        fi        fi
4599        LIBS="$ac_xsave_LIBS"        LIBS=$ac_xsave_LIBS
4600      esac      esac
4601    fi    fi
4602    
# Line 2485  rm -f conftest* Line 4607  rm -f conftest*
4607    if test "$ISC" = yes; then    if test "$ISC" = yes; then
4608      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4609    else    else
4610      # 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
4611      # libraries were built with DECnet support.  And karl@cs.umb.edu says      # libraries were built with DECnet support.  And Karl Berry says
4612      # the Alpha needs dnet_stub (dnet does not exist).      # the Alpha needs dnet_stub (dnet does not exist).
4613      echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4614  echo "configure:2493: checking for dnet_ntoa in -ldnet" >&5      cat >conftest.$ac_ext <<_ACEOF
4615  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`  #line $LINENO "configure"
4616  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  /* confdefs.h.  */
4617    echo $ac_n "(cached) $ac_c" 1>&6  _ACEOF
4618  else  cat confdefs.h >>conftest.$ac_ext
4619    ac_save_LIBS="$LIBS"  cat >>conftest.$ac_ext <<_ACEOF
4620  LIBS="-ldnet  $LIBS"  /* end confdefs.h.  */
4621  cat > conftest.$ac_ext <<EOF  
 #line 2501 "configure"  
 #include "confdefs.h"  
4622  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4623    #ifdef __cplusplus
4624    extern "C"
4625    #endif
4626  /* 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
4627      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4628  char dnet_ntoa();  char XOpenDisplay ();
4629    int
4630    main ()
4631    {
4632    XOpenDisplay ();
4633      ;
4634      return 0;
4635    }
4636    _ACEOF
4637    rm -f conftest.$ac_objext conftest$ac_exeext
4638    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4639      (eval $ac_link) 2>&5
4640      ac_status=$?
4641      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642      (exit $ac_status); } &&
4643             { ac_try='test -s conftest$ac_exeext'
4644      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645      (eval $ac_try) 2>&5
4646      ac_status=$?
4647      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648      (exit $ac_status); }; }; then
4649      :
4650    else
4651      echo "$as_me: failed program was:" >&5
4652    sed 's/^/| /' conftest.$ac_ext >&5
4653    
4654  int main() {  echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4655  dnet_ntoa()  echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4656  ; return 0; }  if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4657  EOF    echo $ECHO_N "(cached) $ECHO_C" >&6
4658  if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  else
4659    rm -rf conftest*    ac_check_lib_save_LIBS=$LIBS
4660    eval "ac_cv_lib_$ac_lib_var=yes"  LIBS="-ldnet  $LIBS"
4661  else  cat >conftest.$ac_ext <<_ACEOF
4662    echo "configure: failed program was:" >&5  #line $LINENO "configure"
4663    cat conftest.$ac_ext >&5  /* confdefs.h.  */
4664    rm -rf conftest*  _ACEOF
4665    eval "ac_cv_lib_$ac_lib_var=no"  cat confdefs.h >>conftest.$ac_ext
4666  fi  cat >>conftest.$ac_ext <<_ACEOF
4667  rm -f conftest*  /* end confdefs.h.  */
 LIBS="$ac_save_LIBS"  
4668    
4669  fi  /* Override any gcc2 internal prototype to avoid an error.  */
4670  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
4671    echo "$ac_t""yes" 1>&6  extern "C"
4672    #endif
4673    /* We use char because int might match the return type of a gcc2
4674       builtin and then its argument prototype would still apply.  */
4675    char dnet_ntoa ();
4676    int
4677    main ()
4678    {
4679    dnet_ntoa ();
4680      ;
4681      return 0;
4682    }
4683    _ACEOF
4684    rm -f conftest.$ac_objext conftest$ac_exeext
4685    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4686      (eval $ac_link) 2>&5
4687      ac_status=$?
4688      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689      (exit $ac_status); } &&
4690             { ac_try='test -s conftest$ac_exeext'
4691      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692      (eval $ac_try) 2>&5
4693      ac_status=$?
4694      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695      (exit $ac_status); }; }; then
4696      ac_cv_lib_dnet_dnet_ntoa=yes
4697    else
4698      echo "$as_me: failed program was:" >&5
4699    sed 's/^/| /' conftest.$ac_ext >&5
4700    
4701    ac_cv_lib_dnet_dnet_ntoa=no
4702    fi
4703    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4704    LIBS=$ac_check_lib_save_LIBS
4705    fi
4706    echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4707    echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4708    if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4709    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 else  
   echo "$ac_t""no" 1>&6  
4710  fi  fi
4711    
4712      if test $ac_cv_lib_dnet_dnet_ntoa = no; then      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4713        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
4714  echo "configure:2534: checking for dnet_ntoa in -ldnet_stub" >&5  echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4715  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4716  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  
4717  else  else
4718    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4719  LIBS="-ldnet_stub  $LIBS"  LIBS="-ldnet_stub  $LIBS"
4720  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4721  #line 2542 "configure"  #line $LINENO "configure"
4722  #include "confdefs.h"  /* confdefs.h.  */
4723    _ACEOF
4724    cat confdefs.h >>conftest.$ac_ext
4725    cat >>conftest.$ac_ext <<_ACEOF
4726    /* end confdefs.h.  */
4727    
4728  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4729    #ifdef __cplusplus
4730    extern "C"
4731    #endif
4732  /* 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
4733      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4734  char dnet_ntoa();  char dnet_ntoa ();
4735    int
4736  int main() {  main ()
4737  dnet_ntoa()  {
4738  ; return 0; }  dnet_ntoa ();
4739  EOF    ;
4740  if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
4741    rm -rf conftest*  }
4742    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
4743  else  rm -f conftest.$ac_objext conftest$ac_exeext
4744    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4745    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
4746    rm -rf conftest*    ac_status=$?
4747    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748  fi    (exit $ac_status); } &&
4749  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
4750  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751      (eval $ac_try) 2>&5
4752  fi    ac_status=$?
4753  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
4755      ac_cv_lib_dnet_stub_dnet_ntoa=yes
4756    else
4757      echo "$as_me: failed program was:" >&5
4758    sed 's/^/| /' conftest.$ac_ext >&5
4759    
4760    ac_cv_lib_dnet_stub_dnet_ntoa=no
4761    fi
4762    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4763    LIBS=$ac_check_lib_save_LIBS
4764    fi
4765    echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4766    echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4767    if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4768    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 else  
   echo "$ac_t""no" 1>&6  
4769  fi  fi
4770    
4771      fi      fi
4772    fi
4773    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4774        LIBS="$ac_xsave_LIBS"
4775    
4776      # 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,
4777      # to get the SysV transport functions.      # to get the SysV transport functions.
4778      # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)      # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4779      # needs -lnsl.      # needs -lnsl.
4780      # The nsl library prevents programs from opening the X display      # The nsl library prevents programs from opening the X display
4781      # on Irix 5.2, according to dickey@clark.net.      # on Irix 5.2, according to T.E. Dickey.
4782      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6      # The functions gethostbyname, getservbyname, and inet_addr are
4783  echo "configure:2582: checking for gethostbyname" >&5      # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4784  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then      echo "$as_me:$LINENO: checking for gethostbyname" >&5
4785    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4786  else  if test "${ac_cv_func_gethostbyname+set}" = set; then
4787    cat > conftest.$ac_ext <<EOF    echo $ECHO_N "(cached) $ECHO_C" >&6
4788  #line 2587 "configure"  else
4789  #include "confdefs.h"    cat >conftest.$ac_ext <<_ACEOF
4790    #line $LINENO "configure"
4791    /* confdefs.h.  */
4792    _ACEOF
4793    cat confdefs.h >>conftest.$ac_ext
4794    cat >>conftest.$ac_ext <<_ACEOF
4795    /* end confdefs.h.  */
4796  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4797      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname (); below.  */
4798  #include <assert.h>  #include <assert.h>
4799  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4800    #ifdef __cplusplus
4801    extern "C"
4802    {
4803    #endif
4804  /* 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
4805      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4806  char gethostbyname();  char gethostbyname ();
   
 int main() {  
   
4807  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4808      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4809      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4810  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4811  choke me  choke me
4812  #else  #else
4813  gethostbyname();  char (*f) () = gethostbyname;
4814    #endif
4815    #ifdef __cplusplus
4816    }
4817  #endif  #endif
4818    
4819  ; return 0; }  int
4820  EOF  main ()
4821  if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
   rm -rf conftest*  
   eval "ac_cv_func_gethostbyname=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func_gethostbyname=no"  
 fi  
 rm -f conftest*  
 fi  
4822    
4823  if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then    ;
4824    echo "$ac_t""yes" 1>&6    return 0;
4825    :  }
4826  else  _ACEOF
4827    echo "$ac_t""no" 1>&6  rm -f conftest.$ac_objext conftest$ac_exeext
4828    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4829      (eval $ac_link) 2>&5
4830      ac_status=$?
4831      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832      (exit $ac_status); } &&
4833             { ac_try='test -s conftest$ac_exeext'
4834      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835      (eval $ac_try) 2>&5
4836      ac_status=$?
4837      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838      (exit $ac_status); }; }; then
4839      ac_cv_func_gethostbyname=yes
4840    else
4841      echo "$as_me: failed program was:" >&5
4842    sed 's/^/| /' conftest.$ac_ext >&5
4843    
4844    ac_cv_func_gethostbyname=no
4845  fi  fi
4846    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4847    fi
4848    echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4849    echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4850    
4851      if test $ac_cv_func_gethostbyname = no; then      if test $ac_cv_func_gethostbyname = no; then
4852        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4853  echo "configure:2631: checking for gethostbyname in -lnsl" >&5  echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4854  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4855  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  
4856  else  else
4857    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4858  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
4859  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4860  #line 2639 "configure"  #line $LINENO "configure"
4861  #include "confdefs.h"  /* confdefs.h.  */
4862    _ACEOF
4863    cat confdefs.h >>conftest.$ac_ext
4864    cat >>conftest.$ac_ext <<_ACEOF
4865    /* end confdefs.h.  */
4866    
4867  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4868    #ifdef __cplusplus
4869    extern "C"
4870    #endif
4871  /* 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
4872      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4873  char gethostbyname();  char gethostbyname ();
4874    int
4875  int main() {  main ()
4876  gethostbyname()  {
4877  ; return 0; }  gethostbyname ();
4878  EOF    ;
4879  if { (eval echo configure:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
4880    rm -rf conftest*  }
4881    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
4882  else  rm -f conftest.$ac_objext conftest$ac_exeext
4883    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4884    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
4885    rm -rf conftest*    ac_status=$?
4886    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887      (exit $ac_status); } &&
4888             { ac_try='test -s conftest$ac_exeext'
4889      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890      (eval $ac_try) 2>&5
4891      ac_status=$?
4892      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893      (exit $ac_status); }; }; then
4894      ac_cv_lib_nsl_gethostbyname=yes
4895    else
4896      echo "$as_me: failed program was:" >&5
4897    sed 's/^/| /' conftest.$ac_ext >&5
4898    
4899    ac_cv_lib_nsl_gethostbyname=no
4900    fi
4901    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4902    LIBS=$ac_check_lib_save_LIBS
4903    fi
4904    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4905    echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4906    if test $ac_cv_lib_nsl_gethostbyname = yes; then
4907      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4908  fi  fi
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4909    
4910  fi        if test $ac_cv_lib_nsl_gethostbyname = no; then
4911  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then          echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4912    echo "$ac_t""yes" 1>&6  echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4913    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"  if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4914  else    echo $ECHO_N "(cached) $ECHO_C" >&6
4915    echo "$ac_t""no" 1>&6  else
4916      ac_check_lib_save_LIBS=$LIBS
4917    LIBS="-lbsd  $LIBS"
4918    cat >conftest.$ac_ext <<_ACEOF
4919    #line $LINENO "configure"
4920    /* confdefs.h.  */
4921    _ACEOF
4922    cat confdefs.h >>conftest.$ac_ext
4923    cat >>conftest.$ac_ext <<_ACEOF
4924    /* end confdefs.h.  */
4925    
4926    /* Override any gcc2 internal prototype to avoid an error.  */
4927    #ifdef __cplusplus
4928    extern "C"
4929    #endif
4930    /* We use char because int might match the return type of a gcc2
4931       builtin and then its argument prototype would still apply.  */
4932    char gethostbyname ();
4933    int
4934    main ()
4935    {
4936    gethostbyname ();
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_bsd_gethostbyname=yes
4954    else
4955      echo "$as_me: failed program was:" >&5
4956    sed 's/^/| /' conftest.$ac_ext >&5
4957    
4958    ac_cv_lib_bsd_gethostbyname=no
4959    fi
4960    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4961    LIBS=$ac_check_lib_save_LIBS
4962    fi
4963    echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4964    echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4965    if test $ac_cv_lib_bsd_gethostbyname = yes; then
4966      X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4967  fi  fi
4968    
4969          fi
4970      fi      fi
4971    
4972      # lieder@skyler.mavd.honeywell.com says without -lsocket,      # lieder@skyler.mavd.honeywell.com says without -lsocket,
4973      # socket/setsockopt and other routines are undefined under SCO ODT      # socket/setsockopt and other routines are undefined under SCO ODT
4974      # 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
4975      # on later versions), says simon@lia.di.epfl.ch: it contains      # on later versions), says Simon Leinen: it contains gethostby*
4976      # gethostby* variants that don't use the nameserver (or something).      # variants that don't use the name server (or something).  -lsocket
4977      # -lsocket must be given before -lnsl if both are needed.      # must be given before -lnsl if both are needed.  We assume that
4978      # We assume that if connect needs -lnsl, so does gethostbyname.      # if connect needs -lnsl, so does gethostbyname.
4979      echo $ac_n "checking for connect""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for connect" >&5
4980  echo "configure:2680: checking for connect" >&5  echo $ECHO_N "checking for connect... $ECHO_C" >&6
4981  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if test "${ac_cv_func_connect+set}" = set; then
4982    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4983  else  else
4984    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4985  #line 2685 "configure"  #line $LINENO "configure"
4986  #include "confdefs.h"  /* confdefs.h.  */
4987    _ACEOF
4988    cat confdefs.h >>conftest.$ac_ext
4989    cat >>conftest.$ac_ext <<_ACEOF
4990    /* end confdefs.h.  */
4991  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4992      which can conflict with char connect(); below.  */      which can conflict with char connect (); below.  */
4993  #include <assert.h>  #include <assert.h>
4994  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4995    #ifdef __cplusplus
4996    extern "C"
4997    {
4998    #endif
4999  /* 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
5000      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5001  char connect();  char connect ();
   
 int main() {  
   
5002  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5003      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5004      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5005  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
5006  choke me  choke me
5007  #else  #else
5008  connect();  char (*f) () = connect;
5009    #endif
5010    #ifdef __cplusplus
5011    }
5012  #endif  #endif
5013    
5014  ; return 0; }  int
5015  EOF  main ()
5016  if { (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
   rm -rf conftest*  
   eval "ac_cv_func_connect=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func_connect=no"  
 fi  
 rm -f conftest*  
 fi  
5017    
5018  if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then    ;
5019    echo "$ac_t""yes" 1>&6    return 0;
5020    :  }
5021  else  _ACEOF
5022    echo "$ac_t""no" 1>&6  rm -f conftest.$ac_objext conftest$ac_exeext
5023    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5024      (eval $ac_link) 2>&5
5025      ac_status=$?
5026      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027      (exit $ac_status); } &&
5028             { ac_try='test -s conftest$ac_exeext'
5029      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030      (eval $ac_try) 2>&5
5031      ac_status=$?
5032      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033      (exit $ac_status); }; }; then
5034      ac_cv_func_connect=yes
5035    else
5036      echo "$as_me: failed program was:" >&5
5037    sed 's/^/| /' conftest.$ac_ext >&5
5038    
5039    ac_cv_func_connect=no
5040  fi  fi
5041    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5042    fi
5043    echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5044    echo "${ECHO_T}$ac_cv_func_connect" >&6
5045    
5046      if test $ac_cv_func_connect = no; then      if test $ac_cv_func_connect = no; then
5047        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5048  echo "configure:2729: checking for connect in -lsocket" >&5  echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5049  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_connect+set}" = set; then
5050  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  
5051  else  else
5052    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5053  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5054  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5055  #line 2737 "configure"  #line $LINENO "configure"
5056  #include "confdefs.h"  /* confdefs.h.  */
5057    _ACEOF
5058    cat confdefs.h >>conftest.$ac_ext
5059    cat >>conftest.$ac_ext <<_ACEOF
5060    /* end confdefs.h.  */
5061    
5062  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5063    #ifdef __cplusplus
5064    extern "C"
5065    #endif
5066  /* 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
5067      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5068  char connect();  char connect ();
5069    int
5070  int main() {  main ()
5071  connect()  {
5072  ; return 0; }  connect ();
5073  EOF    ;
5074  if { (eval echo configure:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
5075    rm -rf conftest*  }
5076    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
5077  else  rm -f conftest.$ac_objext conftest$ac_exeext
5078    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
5080    rm -rf conftest*    ac_status=$?
5081    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082  fi    (exit $ac_status); } &&
5083  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
5084  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085      (eval $ac_try) 2>&5
5086  fi    ac_status=$?
5087  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
5089      ac_cv_lib_socket_connect=yes
5090    else
5091      echo "$as_me: failed program was:" >&5
5092    sed 's/^/| /' conftest.$ac_ext >&5
5093    
5094    ac_cv_lib_socket_connect=no
5095    fi
5096    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5097    LIBS=$ac_check_lib_save_LIBS
5098    fi
5099    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5100    echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5101    if test $ac_cv_lib_socket_connect = yes; then
5102    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 else  
   echo "$ac_t""no" 1>&6  
5103  fi  fi
5104    
5105      fi      fi
5106    
5107      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.      # Guillermo Gomez says -lposix is necessary on A/UX.
5108      echo $ac_n "checking for remove""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for remove" >&5
5109  echo "configure:2772: checking for remove" >&5  echo $ECHO_N "checking for remove... $ECHO_C" >&6
5110  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then  if test "${ac_cv_func_remove+set}" = set; then
5111    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5112  else  else
5113    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5114  #line 2777 "configure"  #line $LINENO "configure"
5115  #include "confdefs.h"  /* confdefs.h.  */
5116    _ACEOF
5117    cat confdefs.h >>conftest.$ac_ext
5118    cat >>conftest.$ac_ext <<_ACEOF
5119    /* end confdefs.h.  */
5120  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5121      which can conflict with char remove(); below.  */      which can conflict with char remove (); below.  */
5122  #include <assert.h>  #include <assert.h>
5123  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5124    #ifdef __cplusplus
5125    extern "C"
5126    {
5127    #endif
5128  /* 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
5129      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5130  char remove();  char remove ();
   
 int main() {  
   
5131  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5132      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5133      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5134  #if defined (__stub_remove) || defined (__stub___remove)  #if defined (__stub_remove) || defined (__stub___remove)
5135  choke me  choke me
5136  #else  #else
5137  remove();  char (*f) () = remove;
5138    #endif
5139    #ifdef __cplusplus
5140    }
5141  #endif  #endif
5142    
5143  ; return 0; }  int
5144  EOF  main ()
5145  if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
   rm -rf conftest*  
   eval "ac_cv_func_remove=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func_remove=no"  
 fi  
 rm -f conftest*  
 fi  
5146    
5147  if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then    ;
5148    echo "$ac_t""yes" 1>&6    return 0;
5149    :  }
5150  else  _ACEOF
5151    echo "$ac_t""no" 1>&6  rm -f conftest.$ac_objext conftest$ac_exeext
5152    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5153      (eval $ac_link) 2>&5
5154      ac_status=$?
5155      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156      (exit $ac_status); } &&
5157             { ac_try='test -s conftest$ac_exeext'
5158      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159      (eval $ac_try) 2>&5
5160      ac_status=$?
5161      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162      (exit $ac_status); }; }; then
5163      ac_cv_func_remove=yes
5164    else
5165      echo "$as_me: failed program was:" >&5
5166    sed 's/^/| /' conftest.$ac_ext >&5
5167    
5168    ac_cv_func_remove=no
5169  fi  fi
5170    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5171    fi
5172    echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5173    echo "${ECHO_T}$ac_cv_func_remove" >&6
5174    
5175      if test $ac_cv_func_remove = no; then      if test $ac_cv_func_remove = no; then
5176        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5177  echo "configure:2821: checking for remove in -lposix" >&5  echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5178  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_posix_remove+set}" = set; then
5179  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  
5180  else  else
5181    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5182  LIBS="-lposix  $LIBS"  LIBS="-lposix  $LIBS"
5183  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5184  #line 2829 "configure"  #line $LINENO "configure"
5185  #include "confdefs.h"  /* confdefs.h.  */
5186    _ACEOF
5187    cat confdefs.h >>conftest.$ac_ext
5188    cat >>conftest.$ac_ext <<_ACEOF
5189    /* end confdefs.h.  */
5190    
5191  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5192    #ifdef __cplusplus
5193    extern "C"
5194    #endif
5195  /* 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
5196      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5197  char remove();  char remove ();
5198    int
5199  int main() {  main ()
5200  remove()  {
5201  ; return 0; }  remove ();
5202  EOF    ;
5203  if { (eval echo configure:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
5204    rm -rf conftest*  }
5205    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
5206  else  rm -f conftest.$ac_objext conftest$ac_exeext
5207    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
5209    rm -rf conftest*    ac_status=$?
5210    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211  fi    (exit $ac_status); } &&
5212  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
5213  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214      (eval $ac_try) 2>&5
5215  fi    ac_status=$?
5216  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
5218      ac_cv_lib_posix_remove=yes
5219    else
5220      echo "$as_me: failed program was:" >&5
5221    sed 's/^/| /' conftest.$ac_ext >&5
5222    
5223    ac_cv_lib_posix_remove=no
5224    fi
5225    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5226    LIBS=$ac_check_lib_save_LIBS
5227    fi
5228    echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5229    echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5230    if test $ac_cv_lib_posix_remove = yes; then
5231    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 else  
   echo "$ac_t""no" 1>&6  
5232  fi  fi
5233    
5234      fi      fi
5235    
5236      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5237      echo $ac_n "checking for shmat""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for shmat" >&5
5238  echo "configure:2864: checking for shmat" >&5  echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5239  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then  if test "${ac_cv_func_shmat+set}" = set; then
5240    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5241  else  else
5242    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5243  #line 2869 "configure"  #line $LINENO "configure"
5244  #include "confdefs.h"  /* confdefs.h.  */
5245    _ACEOF
5246    cat confdefs.h >>conftest.$ac_ext
5247    cat >>conftest.$ac_ext <<_ACEOF
5248    /* end confdefs.h.  */
5249  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5250      which can conflict with char shmat(); below.  */      which can conflict with char shmat (); below.  */
5251  #include <assert.h>  #include <assert.h>
5252  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5253    #ifdef __cplusplus
5254    extern "C"
5255    {
5256    #endif
5257  /* 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
5258      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5259  char shmat();  char shmat ();
   
 int main() {  
   
5260  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5261      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5262      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5263  #if defined (__stub_shmat) || defined (__stub___shmat)  #if defined (__stub_shmat) || defined (__stub___shmat)
5264  choke me  choke me
5265  #else  #else
5266  shmat();  char (*f) () = shmat;
5267    #endif
5268    #ifdef __cplusplus
5269    }
5270  #endif  #endif
5271    
5272  ; return 0; }  int
5273  EOF  main ()
5274  if { (eval echo configure:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
   rm -rf conftest*  
   eval "ac_cv_func_shmat=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func_shmat=no"  
 fi  
 rm -f conftest*  
 fi  
5275    
5276  if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then    ;
5277    echo "$ac_t""yes" 1>&6    return 0;
5278    :  }
5279  else  _ACEOF
5280    echo "$ac_t""no" 1>&6  rm -f conftest.$ac_objext conftest$ac_exeext
5281    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5282      (eval $ac_link) 2>&5
5283      ac_status=$?
5284      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285      (exit $ac_status); } &&
5286             { ac_try='test -s conftest$ac_exeext'
5287      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288      (eval $ac_try) 2>&5
5289      ac_status=$?
5290      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291      (exit $ac_status); }; }; then
5292      ac_cv_func_shmat=yes
5293    else
5294      echo "$as_me: failed program was:" >&5
5295    sed 's/^/| /' conftest.$ac_ext >&5
5296    
5297    ac_cv_func_shmat=no
5298    fi
5299    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5300  fi  fi
5301    echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5302    echo "${ECHO_T}$ac_cv_func_shmat" >&6
5303    
5304      if test $ac_cv_func_shmat = no; then      if test $ac_cv_func_shmat = no; then
5305        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5306  echo "configure:2913: checking for shmat in -lipc" >&5  echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5307  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5308  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  
5309  else  else
5310    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5311  LIBS="-lipc  $LIBS"  LIBS="-lipc  $LIBS"
5312  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5313  #line 2921 "configure"  #line $LINENO "configure"
5314  #include "confdefs.h"  /* confdefs.h.  */
5315    _ACEOF
5316    cat confdefs.h >>conftest.$ac_ext
5317    cat >>conftest.$ac_ext <<_ACEOF
5318    /* end confdefs.h.  */
5319    
5320  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5321    #ifdef __cplusplus
5322    extern "C"
5323    #endif
5324  /* 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
5325      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5326  char shmat();  char shmat ();
5327    int
5328  int main() {  main ()
5329  shmat()  {
5330  ; return 0; }  shmat ();
5331  EOF    ;
5332  if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
5333    rm -rf conftest*  }
5334    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
5335  else  rm -f conftest.$ac_objext conftest$ac_exeext
5336    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5337    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
5338    rm -rf conftest*    ac_status=$?
5339    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340  fi    (exit $ac_status); } &&
5341  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
5342  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343      (eval $ac_try) 2>&5
5344  fi    ac_status=$?
5345  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
5347      ac_cv_lib_ipc_shmat=yes
5348    else
5349      echo "$as_me: failed program was:" >&5
5350    sed 's/^/| /' conftest.$ac_ext >&5
5351    
5352    ac_cv_lib_ipc_shmat=no
5353    fi
5354    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5355    LIBS=$ac_check_lib_save_LIBS
5356    fi
5357    echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5358    echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5359    if test $ac_cv_lib_ipc_shmat = yes; then
5360    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 else  
   echo "$ac_t""no" 1>&6  
5361  fi  fi
5362    
5363      fi      fi
5364    fi    fi
5365    
5366    # Check for libraries that X11R6 Xt/Xaw programs need.    # Check for libraries that X11R6 Xt/Xaw programs need.
5367    ac_save_LDFLAGS="$LDFLAGS"    ac_save_LDFLAGS=$LDFLAGS
5368    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5369    # 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
5370    # 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
5371    # 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.
5372    # These have to be linked with before -lX11, unlike the other    # These have to be linked with before -lX11, unlike the other
5373    # libraries we check for below, so use a different variable.    # libraries we check for below, so use a different variable.
5374    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.    # John Interrante, Karl Berry
5375    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5376  echo "configure:2965: checking for IceConnectionNumber in -lICE" >&5  echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5377  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5378  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  
5379  else  else
5380    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5381  LIBS="-lICE $X_EXTRA_LIBS $LIBS"  LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5382  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5383  #line 2973 "configure"  #line $LINENO "configure"
5384  #include "confdefs.h"  /* confdefs.h.  */
5385    _ACEOF
5386    cat confdefs.h >>conftest.$ac_ext
5387    cat >>conftest.$ac_ext <<_ACEOF
5388    /* end confdefs.h.  */
5389    
5390  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5391    #ifdef __cplusplus
5392    extern "C"
5393    #endif
5394  /* 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
5395      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5396  char IceConnectionNumber();  char IceConnectionNumber ();
5397    int
5398  int main() {  main ()
5399  IceConnectionNumber()  {
5400  ; return 0; }  IceConnectionNumber ();
5401  EOF    ;
5402  if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
5403    rm -rf conftest*  }
5404    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
5405  else  rm -f conftest.$ac_objext conftest$ac_exeext
5406    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5407    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
5408    rm -rf conftest*    ac_status=$?
5409    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410  fi    (exit $ac_status); } &&
5411  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
5412  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413      (eval $ac_try) 2>&5
5414  fi    ac_status=$?
5415  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
5417      ac_cv_lib_ICE_IceConnectionNumber=yes
5418    else
5419      echo "$as_me: failed program was:" >&5
5420    sed 's/^/| /' conftest.$ac_ext >&5
5421    
5422    ac_cv_lib_ICE_IceConnectionNumber=no
5423    fi
5424    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5425    LIBS=$ac_check_lib_save_LIBS
5426    fi
5427    echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5428    echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5429    if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5430    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 else  
   echo "$ac_t""no" 1>&6  
5431  fi  fi
5432    
5433    LDFLAGS="$ac_save_LDFLAGS"    LDFLAGS=$ac_save_LDFLAGS
5434    
5435  fi  fi
5436    
# Line 3010  echo $X_EXTRA_LIBS Line 5440  echo $X_EXTRA_LIBS
5440  echo $X_PRE_LIBS  echo $X_PRE_LIBS
5441    
5442  miss=0  miss=0
5443  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXmu" >&5
5444  echo "configure:3015: checking for main in -lXmu" >&5  echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6
5445  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xmu_main+set}" = set; then
5446  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  
5447  else  else
5448    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5449  LIBS="-lXmu $X_LIBS $LIBS"  LIBS="-lXmu $X_LIBS $LIBS"
5450  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5451  #line 3023 "configure"  #line $LINENO "configure"
5452  #include "confdefs.h"  /* confdefs.h.  */
5453    _ACEOF
5454    cat confdefs.h >>conftest.$ac_ext
5455    cat >>conftest.$ac_ext <<_ACEOF
5456    /* end confdefs.h.  */
5457    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3030: \"$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"  
5458    
5459  fi  int
5460  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
5461    echo "$ac_t""yes" 1>&6  {
5462    main ();
5463      ;
5464      return 0;
5465    }
5466    _ACEOF
5467    rm -f conftest.$ac_objext conftest$ac_exeext
5468    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5469      (eval $ac_link) 2>&5
5470      ac_status=$?
5471      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472      (exit $ac_status); } &&
5473             { ac_try='test -s conftest$ac_exeext'
5474      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475      (eval $ac_try) 2>&5
5476      ac_status=$?
5477      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478      (exit $ac_status); }; }; then
5479      ac_cv_lib_Xmu_main=yes
5480    else
5481      echo "$as_me: failed program was:" >&5
5482    sed 's/^/| /' conftest.$ac_ext >&5
5483    
5484    ac_cv_lib_Xmu_main=no
5485    fi
5486    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5487    LIBS=$ac_check_lib_save_LIBS
5488    fi
5489    echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5
5490    echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6
5491    if test $ac_cv_lib_Xmu_main = yes; then
5492    X_LIBS="$X_LIBS -lXmu"    X_LIBS="$X_LIBS -lXmu"
5493  else  else
5494    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
5495  fi  fi
5496    
5497  echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXt" >&5
5498  echo "configure:3052: checking for main in -lXt" >&5  echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
5499  ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xt_main+set}" = set; then
5500  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  
5501  else  else
5502    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5503  LIBS="-lXt $X_LIBS $LIBS"  LIBS="-lXt $X_LIBS $LIBS"
5504  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5505  #line 3060 "configure"  #line $LINENO "configure"
5506  #include "confdefs.h"  /* confdefs.h.  */
5507    _ACEOF
5508    cat confdefs.h >>conftest.$ac_ext
5509    cat >>conftest.$ac_ext <<_ACEOF
5510    /* end confdefs.h.  */
5511    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3067: \"$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"  
5512    
5513  fi  int
5514  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
5515    echo "$ac_t""yes" 1>&6  {
5516    main ();
5517      ;
5518      return 0;
5519    }
5520    _ACEOF
5521    rm -f conftest.$ac_objext conftest$ac_exeext
5522    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5523      (eval $ac_link) 2>&5
5524      ac_status=$?
5525      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526      (exit $ac_status); } &&
5527             { ac_try='test -s conftest$ac_exeext'
5528      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529      (eval $ac_try) 2>&5
5530      ac_status=$?
5531      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532      (exit $ac_status); }; }; then
5533      ac_cv_lib_Xt_main=yes
5534    else
5535      echo "$as_me: failed program was:" >&5
5536    sed 's/^/| /' conftest.$ac_ext >&5
5537    
5538    ac_cv_lib_Xt_main=no
5539    fi
5540    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5541    LIBS=$ac_check_lib_save_LIBS
5542    fi
5543    echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
5544    echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
5545    if test $ac_cv_lib_Xt_main = yes; then
5546    X_LIBS="$X_LIBS -lXt"    X_LIBS="$X_LIBS -lXt"
5547  else  else
5548    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
5549  fi  fi
5550    
5551  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXext" >&5
5552  echo "configure:3089: checking for main in -lXext" >&5  echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6
5553  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xext_main+set}" = set; then
5554  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  
5555  else  else
5556    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5557  LIBS="-lXext $X_LIBS $LIBS"  LIBS="-lXext $X_LIBS $LIBS"
5558  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5559  #line 3097 "configure"  #line $LINENO "configure"
5560  #include "confdefs.h"  /* confdefs.h.  */
5561    _ACEOF
5562    cat confdefs.h >>conftest.$ac_ext
5563    cat >>conftest.$ac_ext <<_ACEOF
5564    /* end confdefs.h.  */
5565    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3104: \"$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"  
5566    
5567  fi  int
5568  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
5569    echo "$ac_t""yes" 1>&6  {
5570    main ();
5571      ;
5572      return 0;
5573    }
5574    _ACEOF
5575    rm -f conftest.$ac_objext conftest$ac_exeext
5576    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5577      (eval $ac_link) 2>&5
5578      ac_status=$?
5579      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580      (exit $ac_status); } &&
5581             { ac_try='test -s conftest$ac_exeext'
5582      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583      (eval $ac_try) 2>&5
5584      ac_status=$?
5585      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586      (exit $ac_status); }; }; then
5587      ac_cv_lib_Xext_main=yes
5588    else
5589      echo "$as_me: failed program was:" >&5
5590    sed 's/^/| /' conftest.$ac_ext >&5
5591    
5592    ac_cv_lib_Xext_main=no
5593    fi
5594    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5595    LIBS=$ac_check_lib_save_LIBS
5596    fi
5597    echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5
5598    echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6
5599    if test $ac_cv_lib_Xext_main = yes; then
5600    X_LIBS="$X_LIBS -lXext"    X_LIBS="$X_LIBS -lXext"
5601  else  else
5602    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
5603  fi  fi
5604    
5605  echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXaw" >&5
5606  echo "configure:3126: checking for main in -lXaw" >&5  echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6
5607  ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xaw_main+set}" = set; then
5608  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  
5609  else  else
5610    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5611  LIBS="-lXaw $X_LIBS $LIBS"  LIBS="-lXaw $X_LIBS $LIBS"
5612  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5613  #line 3134 "configure"  #line $LINENO "configure"
5614  #include "confdefs.h"  /* confdefs.h.  */
5615    _ACEOF
5616    cat confdefs.h >>conftest.$ac_ext
5617    cat >>conftest.$ac_ext <<_ACEOF
5618    /* end confdefs.h.  */
5619    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3141: \"$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"  
5620    
5621  fi  int
5622  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
5623    echo "$ac_t""yes" 1>&6  {
5624    main ();
5625      ;
5626      return 0;
5627    }
5628    _ACEOF
5629    rm -f conftest.$ac_objext conftest$ac_exeext
5630    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631      (eval $ac_link) 2>&5
5632      ac_status=$?
5633      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634      (exit $ac_status); } &&
5635             { ac_try='test -s conftest$ac_exeext'
5636      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637      (eval $ac_try) 2>&5
5638      ac_status=$?
5639      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640      (exit $ac_status); }; }; then
5641      ac_cv_lib_Xaw_main=yes
5642    else
5643      echo "$as_me: failed program was:" >&5
5644    sed 's/^/| /' conftest.$ac_ext >&5
5645    
5646    ac_cv_lib_Xaw_main=no
5647    fi
5648    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5649    LIBS=$ac_check_lib_save_LIBS
5650    fi
5651    echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5
5652    echo "${ECHO_T}$ac_cv_lib_Xaw_main" >&6
5653    if test $ac_cv_lib_Xaw_main = yes; then
5654    X_LIBS="$X_LIBS -lXaw"    X_LIBS="$X_LIBS -lXaw"
5655  else  else
5656    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
5657  fi  fi
5658    
5659  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lX11" >&5
5660  echo "configure:3163: checking for main in -lX11" >&5  echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
5661  ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_X11_main+set}" = set; then
5662  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  
5663  else  else
5664    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5665  LIBS="-lX11 $X_LIBS $LIBS"  LIBS="-lX11 $X_LIBS $LIBS"
5666  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5667  #line 3171 "configure"  #line $LINENO "configure"
5668  #include "confdefs.h"  /* confdefs.h.  */
5669    _ACEOF
5670    cat confdefs.h >>conftest.$ac_ext
5671    cat >>conftest.$ac_ext <<_ACEOF
5672    /* end confdefs.h.  */
5673    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3178: \"$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"  
5674    
5675  fi  int
5676  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
5677    echo "$ac_t""yes" 1>&6  {
5678    main ();
5679      ;
5680      return 0;
5681    }
5682    _ACEOF
5683    rm -f conftest.$ac_objext conftest$ac_exeext
5684    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685      (eval $ac_link) 2>&5
5686      ac_status=$?
5687      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688      (exit $ac_status); } &&
5689             { ac_try='test -s conftest$ac_exeext'
5690      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691      (eval $ac_try) 2>&5
5692      ac_status=$?
5693      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694      (exit $ac_status); }; }; then
5695      ac_cv_lib_X11_main=yes
5696    else
5697      echo "$as_me: failed program was:" >&5
5698    sed 's/^/| /' conftest.$ac_ext >&5
5699    
5700    ac_cv_lib_X11_main=no
5701    fi
5702    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5703    LIBS=$ac_check_lib_save_LIBS
5704    fi
5705    echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
5706    echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
5707    if test $ac_cv_lib_X11_main = yes; then
5708    X_LIBS="$X_LIBS -lX11"    X_LIBS="$X_LIBS -lX11"
5709  else  else
5710    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
5711  fi  fi
5712    
5713    
5714  if test "$miss" = "1" ; then  if test "$miss" = "1" ; then
5715          X_CFLAGS=          X_CFLAGS=
5716          X_LIBS=          X_LIBS=
# Line 3212  fi Line 5727  fi
5727    
5728  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
5729    
5730          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5731  echo "configure:3217: checking for dlopen in -ldl" >&5  echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5732  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5733  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  
5734  else  else
5735    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5736  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
5737  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5738  #line 3225 "configure"  #line $LINENO "configure"
5739  #include "confdefs.h"  /* confdefs.h.  */
5740    _ACEOF
5741    cat confdefs.h >>conftest.$ac_ext
5742    cat >>conftest.$ac_ext <<_ACEOF
5743    /* end confdefs.h.  */
5744    
5745  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5746    #ifdef __cplusplus
5747    extern "C"
5748    #endif
5749  /* 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
5750      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5751  char dlopen();  char dlopen ();
5752    int
5753  int main() {  main ()
5754  dlopen()  {
5755  ; return 0; }  dlopen ();
5756  EOF    ;
5757  if { (eval echo configure:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
5758    rm -rf conftest*  }
5759    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
5760  else  rm -f conftest.$ac_objext conftest$ac_exeext
5761    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5762    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
5763    rm -rf conftest*    ac_status=$?
5764    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765  fi    (exit $ac_status); } &&
5766  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
5767  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768      (eval $ac_try) 2>&5
5769  fi    ac_status=$?
5770  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
5772      ac_cv_lib_dl_dlopen=yes
5773    else
5774      echo "$as_me: failed program was:" >&5
5775    sed 's/^/| /' conftest.$ac_ext >&5
5776    
5777    ac_cv_lib_dl_dlopen=no
5778    fi
5779    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5780    LIBS=$ac_check_lib_save_LIBS
5781    fi
5782    echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5783    echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5784    if test $ac_cv_lib_dl_dlopen = yes; then
5785    have_dl=1    have_dl=1
5786  else  else
5787    echo "$ac_t""no" 1>&6    have_dl=0
 have_dl=0  
5788  fi  fi
5789    
5790          if test "$have_dl" = "0" ; then          if test "$have_dl" = "0" ; then
# Line 3259  fi Line 5793  fi
5793          fi          fi
5794    
5795          TLIBS="$TLIBS -ldl -rdynamic"          TLIBS="$TLIBS -ldl -rdynamic"
5796          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
5797  #define USE_DLOPEN 1  #define USE_DLOPEN 1
5798  EOF  _ACEOF
5799    
5800  fi  fi
5801    
5802  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
5803          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`          if test "${ac_cv_header_bfd_h+set}" = set; then
5804  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for bfd.h" >&5
5805  echo "configure:3272: checking for bfd.h" >&5  echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
5806  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_bfd_h+set}" = set; then
5807    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5808  else  fi
5809    cat > conftest.$ac_ext <<EOF  echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
5810  #line 3277 "configure"  echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
5811  #include "confdefs.h"  else
5812      # Is the header compilable?
5813    echo "$as_me:$LINENO: checking bfd.h usability" >&5
5814    echo $ECHO_N "checking bfd.h usability... $ECHO_C" >&6
5815    cat >conftest.$ac_ext <<_ACEOF
5816    #line $LINENO "configure"
5817    /* confdefs.h.  */
5818    _ACEOF
5819    cat confdefs.h >>conftest.$ac_ext
5820    cat >>conftest.$ac_ext <<_ACEOF
5821    /* end confdefs.h.  */
5822    $ac_includes_default
5823  #include <bfd.h>  #include <bfd.h>
5824  EOF  _ACEOF
5825  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  rm -f conftest.$ac_objext
5826  { (eval echo configure:3282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    (eval $ac_compile) 2>&5
5828  if test -z "$ac_err"; then    ac_status=$?
5829    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830    eval "ac_cv_header_$ac_safe=yes"    (exit $ac_status); } &&
5831  else           { ac_try='test -s conftest.$ac_objext'
5832    echo "$ac_err" >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833    echo "configure: failed program was:" >&5    (eval $ac_try) 2>&5
5834    cat conftest.$ac_ext >&5    ac_status=$?
5835    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836    eval "ac_cv_header_$ac_safe=no"    (exit $ac_status); }; }; then
5837  fi    ac_header_compiler=yes
5838  rm -f conftest*  else
5839      echo "$as_me: failed program was:" >&5
5840    sed 's/^/| /' conftest.$ac_ext >&5
5841    
5842    ac_header_compiler=no
5843    fi
5844    rm -f conftest.$ac_objext conftest.$ac_ext
5845    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5846    echo "${ECHO_T}$ac_header_compiler" >&6
5847    
5848    # Is the header present?
5849    echo "$as_me:$LINENO: checking bfd.h presence" >&5
5850    echo $ECHO_N "checking bfd.h presence... $ECHO_C" >&6
5851    cat >conftest.$ac_ext <<_ACEOF
5852    #line $LINENO "configure"
5853    /* confdefs.h.  */
5854    _ACEOF
5855    cat confdefs.h >>conftest.$ac_ext
5856    cat >>conftest.$ac_ext <<_ACEOF
5857    /* end confdefs.h.  */
5858    #include <bfd.h>
5859    _ACEOF
5860    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5861      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5862      ac_status=$?
5863      grep -v '^ *+' conftest.er1 >conftest.err
5864      rm -f conftest.er1
5865      cat conftest.err >&5
5866      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867      (exit $ac_status); } >/dev/null; then
5868      if test -s conftest.err; then
5869        ac_cpp_err=$ac_c_preproc_warn_flag
5870      else
5871        ac_cpp_err=
5872      fi
5873    else
5874      ac_cpp_err=yes
5875  fi  fi
5876  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
5877    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
   echo $ac_n "checking for bfd_init in -lbfd""... $ac_c" 1>&6  
 echo "configure:3299: checking for bfd_init in -lbfd" >&5  
 ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`  
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
5878  else  else
5879    ac_save_LIBS="$LIBS"    echo "$as_me: failed program was:" >&5
5880  LIBS="-lbfd -liberty $LIBS"  sed 's/^/| /' conftest.$ac_ext >&5
 cat > conftest.$ac_ext <<EOF  
 #line 3307 "configure"  
 #include "confdefs.h"  
 /* Override any gcc2 internal prototype to avoid an error.  */  
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char bfd_init();  
5881    
5882  int main() {    ac_header_preproc=no
5883  bfd_init()  fi
5884  ; return 0; }  rm -f conftest.err conftest.$ac_ext
5885  EOF  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5886  if { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  echo "${ECHO_T}$ac_header_preproc" >&6
5887    rm -rf conftest*  
5888    eval "ac_cv_lib_$ac_lib_var=yes"  # So?  What about this header?
5889  else  case $ac_header_compiler:$ac_header_preproc in
5890    echo "configure: failed program was:" >&5    yes:no )
5891    cat conftest.$ac_ext >&5      { echo "$as_me:$LINENO: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&5
5892    rm -rf conftest*  echo "$as_me: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5893    eval "ac_cv_lib_$ac_lib_var=no"      { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
5894    echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;}
5895        (
5896          cat <<\_ASBOX
5897    ## ------------------------------------ ##
5898    ## Report this to bug-autoconf@gnu.org. ##
5899    ## ------------------------------------ ##
5900    _ASBOX
5901        ) |
5902          sed "s/^/$as_me: WARNING:     /" >&2
5903        ;;
5904      no:yes )
5905        { echo "$as_me:$LINENO: WARNING: bfd.h: present but cannot be compiled" >&5
5906    echo "$as_me: WARNING: bfd.h: present but cannot be compiled" >&2;}
5907        { echo "$as_me:$LINENO: WARNING: bfd.h: check for missing prerequisite headers?" >&5
5908    echo "$as_me: WARNING: bfd.h: check for missing prerequisite headers?" >&2;}
5909        { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
5910    echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;}
5911        (
5912          cat <<\_ASBOX
5913    ## ------------------------------------ ##
5914    ## Report this to bug-autoconf@gnu.org. ##
5915    ## ------------------------------------ ##
5916    _ASBOX
5917        ) |
5918          sed "s/^/$as_me: WARNING:     /" >&2
5919        ;;
5920    esac
5921    echo "$as_me:$LINENO: checking for bfd.h" >&5
5922    echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
5923    if test "${ac_cv_header_bfd_h+set}" = set; then
5924      echo $ECHO_N "(cached) $ECHO_C" >&6
5925    else
5926      ac_cv_header_bfd_h=$ac_header_preproc
5927  fi  fi
5928  rm -f conftest*  echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
5929  LIBS="$ac_save_LIBS"  echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
5930    
5931  fi  fi
5932  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if test $ac_cv_header_bfd_h = yes; then
5933    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5
5934    echo $ECHO_N "checking for bfd_init in -lbfd... $ECHO_C" >&6
5935    if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then
5936      echo $ECHO_N "(cached) $ECHO_C" >&6
5937    else
5938      ac_check_lib_save_LIBS=$LIBS
5939    LIBS="-lbfd -liberty $LIBS"
5940    cat >conftest.$ac_ext <<_ACEOF
5941    #line $LINENO "configure"
5942    /* confdefs.h.  */
5943    _ACEOF
5944    cat confdefs.h >>conftest.$ac_ext
5945    cat >>conftest.$ac_ext <<_ACEOF
5946    /* end confdefs.h.  */
5947    
5948    /* Override any gcc2 internal prototype to avoid an error.  */
5949    #ifdef __cplusplus
5950    extern "C"
5951    #endif
5952    /* We use char because int might match the return type of a gcc2
5953       builtin and then its argument prototype would still apply.  */
5954    char bfd_init ();
5955    int
5956    main ()
5957    {
5958    bfd_init ();
5959      ;
5960      return 0;
5961    }
5962    _ACEOF
5963    rm -f conftest.$ac_objext conftest$ac_exeext
5964    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5965      (eval $ac_link) 2>&5
5966      ac_status=$?
5967      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968      (exit $ac_status); } &&
5969             { ac_try='test -s conftest$ac_exeext'
5970      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971      (eval $ac_try) 2>&5
5972      ac_status=$?
5973      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974      (exit $ac_status); }; }; then
5975      ac_cv_lib_bfd_bfd_init=yes
5976    else
5977      echo "$as_me: failed program was:" >&5
5978    sed 's/^/| /' conftest.$ac_ext >&5
5979    
5980    ac_cv_lib_bfd_bfd_init=no
5981    fi
5982    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5983    LIBS=$ac_check_lib_save_LIBS
5984    fi
5985    echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_init" >&5
5986    echo "${ECHO_T}$ac_cv_lib_bfd_bfd_init" >&6
5987    if test $ac_cv_lib_bfd_bfd_init = yes; then
5988    #    #
5989                  # Old binutils appear to need CONST defined to const                  # Old binutils appear to need CONST defined to const
5990                  #                  #
5991                          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
5992  echo "configure:3337: checking if need to define CONST for bfd" >&5  echo $ECHO_N "checking if need to define CONST for bfd... $ECHO_C" >&6
5993                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
5994    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$as_me:$LINENO: result: cannot use bfd" >&5
5995    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5996  else  else
5997    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5998  #line 3342 "configure"  #line $LINENO "configure"
5999  #include "confdefs.h"  /* confdefs.h.  */
6000    _ACEOF
6001    cat confdefs.h >>conftest.$ac_ext
6002    cat >>conftest.$ac_ext <<_ACEOF
6003    /* end confdefs.h.  */
6004  #define IN_GCC  #define IN_GCC
6005                                      #include <bfd.h>                                      #include <bfd.h>
6006                                      int main() { symbol_info t; return 0;}                                      int main() { symbol_info t; return 0;}
6007  EOF  _ACEOF
6008  if { (eval echo configure:3348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6009  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6010    echo "$ac_t""no" 1>&6    (eval $ac_link) 2>&5
6011  else    ac_status=$?
6012    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013    cat conftest.$ac_ext >&5    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6014    rm -fr conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015    if test "$cross_compiling" = yes; then    (eval $ac_try) 2>&5
6016    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    ac_status=$?
6017      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018      (exit $ac_status); }; }; then
6019      echo "$as_me:$LINENO: result: no" >&5
6020    echo "${ECHO_T}no" >&6
6021    else
6022      echo "$as_me: program exited with status $ac_status" >&5
6023    echo "$as_me: failed program was:" >&5
6024    sed 's/^/| /' conftest.$ac_ext >&5
6025    
6026    ( exit $ac_status )
6027    if test "$cross_compiling" = yes; then
6028      echo "$as_me:$LINENO: result: cannot use bfd" >&5
6029    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
6030  else  else
6031    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6032  #line 3359 "configure"  #line $LINENO "configure"
6033  #include "confdefs.h"  /* confdefs.h.  */
6034    _ACEOF
6035    cat confdefs.h >>conftest.$ac_ext
6036    cat >>conftest.$ac_ext <<_ACEOF
6037    /* end confdefs.h.  */
6038  #define CONST const  #define CONST const
6039                                              #define IN_GCC                                              #define IN_GCC
6040                                              #include <bfd.h>                                              #include <bfd.h>
6041                                              int main() {symbol_info t; return 0;}                                              int main() {symbol_info t; return 0;}
6042  EOF  _ACEOF
6043  if { (eval echo configure:3366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6044  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6045    echo "$ac_t""yes" 1>&6    (eval $ac_link) 2>&5
6046                                          cat >> confdefs.h <<\EOF    ac_status=$?
6047      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6049      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050      (eval $ac_try) 2>&5
6051      ac_status=$?
6052      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053      (exit $ac_status); }; }; then
6054      echo "$as_me:$LINENO: result: yes" >&5
6055    echo "${ECHO_T}yes" >&6
6056                                            cat >>confdefs.h <<\_ACEOF
6057  #define NEED_CONST 1  #define NEED_CONST 1
6058  EOF  _ACEOF
6059    
6060  else  else
6061    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6062    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6063    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
6064    echo "$ac_t""cannot use bfd" 1>&6 exit 1;  
6065    ( exit $ac_status )
6066    echo "$as_me:$LINENO: result: cannot use bfd" >&5
6067    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
6068  fi  fi
6069  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6070  fi  fi
   
6071  fi  fi
6072  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6073  fi  fi
6074    
                           
 else  
   echo "$ac_t""no" 1>&6  
6075  fi  fi
6076    
 else  
   echo "$ac_t""no" 1>&6  
6077  fi  fi
6078    
6079    
6080          cat >> confdefs.h <<\EOF  
6081            cat >>confdefs.h <<\_ACEOF
6082  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
6083  EOF  _ACEOF
6084    
6085    
6086  #  #
6087  # BFD boolean syntax  # BFD boolean syntax
6088  #  #
6089    
6090          echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for useable bfd_boolean" >&5
6091  echo "configure:3406: checking for useable bfd_boolean" >&5  echo $ECHO_N "checking for useable bfd_boolean... $ECHO_C" >&6
6092          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
6093    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
6094    echo "${ECHO_T}no" >&6
6095  else  else
6096    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6097  #line 3411 "configure"  #line $LINENO "configure"
6098  #include "confdefs.h"  /* confdefs.h.  */
6099    _ACEOF
6100    cat confdefs.h >>conftest.$ac_ext
6101    cat >>conftest.$ac_ext <<_ACEOF
6102    /* end confdefs.h.  */
6103  #define IN_GCC  #define IN_GCC
6104                      #include <bfd.h>                      #include <bfd.h>
6105                      bfd_boolean foo() {return FALSE;}                      bfd_boolean foo() {return FALSE;}
6106                      int main() {return 0;}                      int main() {return 0;}
6107  EOF  _ACEOF
6108  if { (eval echo configure:3418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6109  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110    echo "$ac_t""yes" 1>&6    (eval $ac_link) 2>&5
6111                  cat >> confdefs.h <<\EOF    ac_status=$?
6112      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6114      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115      (eval $ac_try) 2>&5
6116      ac_status=$?
6117      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118      (exit $ac_status); }; }; then
6119      echo "$as_me:$LINENO: result: yes" >&5
6120    echo "${ECHO_T}yes" >&6
6121                    cat >>confdefs.h <<\_ACEOF
6122  #define HAVE_BFD_BOOLEAN 1  #define HAVE_BFD_BOOLEAN 1
6123  EOF  _ACEOF
6124    
6125  else  else
6126    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6127    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6128    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
6129    echo "$ac_t""no" 1>&6  
6130    ( exit $ac_status )
6131    echo "$as_me:$LINENO: result: no" >&5
6132    echo "${ECHO_T}no" >&6
6133  fi  fi
6134  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6135  fi  fi
6136    
6137    
   
6138  #  #
6139  # FIXME: Need to workaround mingw before this point -- CM  # FIXME: Need to workaround mingw before this point -- CM
6140  #  #
# Line 3444  fi Line 6147  fi
6147                  else                  else
6148                     echo Guessing path to libbfd.a due to gcc bug                     echo Guessing path to libbfd.a due to gcc bug
6149                     TLIBS="$TLIBS /usr/lib/libbfd.a"                     TLIBS="$TLIBS /usr/lib/libbfd.a"
6150                  fi                    fi
6151                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then
6152                     TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a | $AWK '{i=split($1,A,"/");for (j=1;j<=i;j++) if (j>1 && A[j]=="..") {j--;i-=2;for (k=j;k<=i;k++) A[k]=A[k+2];j--;}} END {for (j=1;j<=i;j++) printf("%s%s",A[j],j!=i ? "/" : "")}'`"                     TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a | $AWK '{i=split($1,A,"/");for (j=1;j<=i;j++) if (j>1 && A[j]=="..") {j--;i-=2;for (k=j;k<=i;k++) A[k]=A[k+2];j--;}} END {for (j=1;j<=i;j++) printf("%s%s",A[j],j!=i ? "/" : "")}'`"
6153                  else                  else
6154                     echo Guessing path to libiberty.a due to gcc bug                     echo Guessing path to libiberty.a due to gcc bug
6155                     TLIBS="$TLIBS /usr/lib/libiberty.a"                     TLIBS="$TLIBS /usr/lib/libiberty.a"
6156                  fi                    fi
6157          else          else
6158                  TLIBS="$TLIBS -lbfd -liberty"                  TLIBS="$TLIBS -lbfd -liberty"
6159          fi          fi
# Line 3460  if test "$enable_locbfd" = "yes" ; then Line 6163  if test "$enable_locbfd" = "yes" ; then
6163    
6164          # check for gettext.  It is part of glibc, but others          # check for gettext.  It is part of glibc, but others
6165          # need GNU gettext separately.          # need GNU gettext separately.
6166          ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`          if test "${ac_cv_header_libintl_h+set}" = set; then
6167  echo $ac_n "checking for libintl.h""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for libintl.h" >&5
6168  echo "configure:3466: checking for libintl.h" >&5  echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6169  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_libintl_h+set}" = set; then
6170    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6171  else  fi
6172    cat > conftest.$ac_ext <<EOF  echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6173  #line 3471 "configure"  echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6174  #include "confdefs.h"  else
6175      # Is the header compilable?
6176    echo "$as_me:$LINENO: checking libintl.h usability" >&5
6177    echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
6178    cat >conftest.$ac_ext <<_ACEOF
6179    #line $LINENO "configure"
6180    /* confdefs.h.  */
6181    _ACEOF
6182    cat confdefs.h >>conftest.$ac_ext
6183    cat >>conftest.$ac_ext <<_ACEOF
6184    /* end confdefs.h.  */
6185    $ac_includes_default
6186  #include <libintl.h>  #include <libintl.h>
6187  EOF  _ACEOF
6188  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  rm -f conftest.$ac_objext
6189  { (eval echo configure:3476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6190  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    (eval $ac_compile) 2>&5
6191  if test -z "$ac_err"; then    ac_status=$?
6192    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193    eval "ac_cv_header_$ac_safe=yes"    (exit $ac_status); } &&
6194  else           { ac_try='test -s conftest.$ac_objext'
6195    echo "$ac_err" >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196    echo "configure: failed program was:" >&5    (eval $ac_try) 2>&5
6197    cat conftest.$ac_ext >&5    ac_status=$?
6198    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199    eval "ac_cv_header_$ac_safe=no"    (exit $ac_status); }; }; then
6200      ac_header_compiler=yes
6201    else
6202      echo "$as_me: failed program was:" >&5
6203    sed 's/^/| /' conftest.$ac_ext >&5
6204    
6205    ac_header_compiler=no
6206    fi
6207    rm -f conftest.$ac_objext conftest.$ac_ext
6208    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6209    echo "${ECHO_T}$ac_header_compiler" >&6
6210    
6211    # Is the header present?
6212    echo "$as_me:$LINENO: checking libintl.h presence" >&5
6213    echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
6214    cat >conftest.$ac_ext <<_ACEOF
6215    #line $LINENO "configure"
6216    /* confdefs.h.  */
6217    _ACEOF
6218    cat confdefs.h >>conftest.$ac_ext
6219    cat >>conftest.$ac_ext <<_ACEOF
6220    /* end confdefs.h.  */
6221    #include <libintl.h>
6222    _ACEOF
6223    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6224      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6225      ac_status=$?
6226      grep -v '^ *+' conftest.er1 >conftest.err
6227      rm -f conftest.er1
6228      cat conftest.err >&5
6229      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230      (exit $ac_status); } >/dev/null; then
6231      if test -s conftest.err; then
6232        ac_cpp_err=$ac_c_preproc_warn_flag
6233      else
6234        ac_cpp_err=
6235      fi
6236    else
6237      ac_cpp_err=yes
6238  fi  fi
6239  rm -f conftest*  if test -z "$ac_cpp_err"; then
6240      ac_header_preproc=yes
6241    else
6242      echo "$as_me: failed program was:" >&5
6243    sed 's/^/| /' conftest.$ac_ext >&5
6244    
6245      ac_header_preproc=no
6246    fi
6247    rm -f conftest.err conftest.$ac_ext
6248    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6249    echo "${ECHO_T}$ac_header_preproc" >&6
6250    
6251    # So?  What about this header?
6252    case $ac_header_compiler:$ac_header_preproc in
6253      yes:no )
6254        { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6255    echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6256        { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6257    echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6258        (
6259          cat <<\_ASBOX
6260    ## ------------------------------------ ##
6261    ## Report this to bug-autoconf@gnu.org. ##
6262    ## ------------------------------------ ##
6263    _ASBOX
6264        ) |
6265          sed "s/^/$as_me: WARNING:     /" >&2
6266        ;;
6267      no:yes )
6268        { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6269    echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6270        { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6271    echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6272        { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6273    echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6274        (
6275          cat <<\_ASBOX
6276    ## ------------------------------------ ##
6277    ## Report this to bug-autoconf@gnu.org. ##
6278    ## ------------------------------------ ##
6279    _ASBOX
6280        ) |
6281          sed "s/^/$as_me: WARNING:     /" >&2
6282        ;;
6283    esac
6284    echo "$as_me:$LINENO: checking for libintl.h" >&5
6285    echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6286    if test "${ac_cv_header_libintl_h+set}" = set; then
6287      echo $ECHO_N "(cached) $ECHO_C" >&6
6288    else
6289      ac_cv_header_libintl_h=$ac_header_preproc
6290    fi
6291    echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6292    echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6293    
6294  fi  fi
6295  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test $ac_cv_header_libintl_h = yes; then
   echo "$ac_t""yes" 1>&6  
6296    true    true
6297  else  else
6298    echo "$ac_t""no" 1>&6    { { echo "$as_me:$LINENO: error: libintl.h (gettext) not found" >&5
6299  { echo "configure: error: libintl.h (gettext) not found" 1>&2; exit 1; }  echo "$as_me: error: libintl.h (gettext) not found" >&2;}
6300       { (exit 1); exit 1; }; }
6301  fi  fi
6302    
6303            
6304  echo $ac_n "checking for library containing dgettext""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for library containing dgettext" >&5
6305  echo "configure:3500: checking for library containing dgettext" >&5  echo $ECHO_N "checking for library containing dgettext... $ECHO_C" >&6
6306  if eval "test \"`echo '$''{'ac_cv_search_dgettext'+set}'`\" = set"; then  if test "${ac_cv_search_dgettext+set}" = set; then
6307    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6308  else  else
6309    ac_func_search_save_LIBS="$LIBS"    ac_func_search_save_LIBS=$LIBS
6310  ac_cv_search_dgettext="no"  ac_cv_search_dgettext=no
6311  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6312  #line 3507 "configure"  #line $LINENO "configure"
6313  #include "confdefs.h"  /* confdefs.h.  */
6314    _ACEOF
6315    cat confdefs.h >>conftest.$ac_ext
6316    cat >>conftest.$ac_ext <<_ACEOF
6317    /* end confdefs.h.  */
6318    
6319  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6320    #ifdef __cplusplus
6321    extern "C"
6322    #endif
6323  /* 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
6324      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6325  char dgettext();  char dgettext ();
6326    int
6327  int main() {  main ()
6328  dgettext()  {
6329  ; return 0; }  dgettext ();
6330  EOF    ;
6331  if { (eval echo configure:3518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
6332    rm -rf conftest*  }
6333    _ACEOF
6334    rm -f conftest.$ac_objext conftest$ac_exeext
6335    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6336      (eval $ac_link) 2>&5
6337      ac_status=$?
6338      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339      (exit $ac_status); } &&
6340             { ac_try='test -s conftest$ac_exeext'
6341      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342      (eval $ac_try) 2>&5
6343      ac_status=$?
6344      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345      (exit $ac_status); }; }; then
6346    ac_cv_search_dgettext="none required"    ac_cv_search_dgettext="none required"
6347  else  else
6348    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
6349    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
6350    
6351  fi  fi
6352  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6353  test "$ac_cv_search_dgettext" = "no" && for i in intl; do  if test "$ac_cv_search_dgettext" = no; then
6354  LIBS="-l$i  $ac_func_search_save_LIBS"    for ac_lib in intl; do
6355  cat > conftest.$ac_ext <<EOF      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6356  #line 3529 "configure"      cat >conftest.$ac_ext <<_ACEOF
6357  #include "confdefs.h"  #line $LINENO "configure"
6358    /* confdefs.h.  */
6359    _ACEOF
6360    cat confdefs.h >>conftest.$ac_ext
6361    cat >>conftest.$ac_ext <<_ACEOF
6362    /* end confdefs.h.  */
6363    
6364  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6365    #ifdef __cplusplus
6366    extern "C"
6367    #endif
6368  /* 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
6369      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6370  char dgettext();  char dgettext ();
6371    int
6372  int main() {  main ()
6373  dgettext()  {
6374  ; return 0; }  dgettext ();
6375  EOF    ;
6376  if { (eval echo configure:3540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
6377    rm -rf conftest*  }
6378    ac_cv_search_dgettext="-l$i"  _ACEOF
6379    rm -f conftest.$ac_objext conftest$ac_exeext
6380    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6381      (eval $ac_link) 2>&5
6382      ac_status=$?
6383      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384      (exit $ac_status); } &&
6385             { ac_try='test -s conftest$ac_exeext'
6386      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387      (eval $ac_try) 2>&5
6388      ac_status=$?
6389      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390      (exit $ac_status); }; }; then
6391      ac_cv_search_dgettext="-l$ac_lib"
6392  break  break
6393  else  else
6394    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
6395    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
6396    
6397  fi  fi
6398  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6399  done    done
 LIBS="$ac_func_search_save_LIBS"  
6400  fi  fi
6401    LIBS=$ac_func_search_save_LIBS
6402  echo "$ac_t""$ac_cv_search_dgettext" 1>&6  fi
6403  if test "$ac_cv_search_dgettext" != "no"; then  echo "$as_me:$LINENO: result: $ac_cv_search_dgettext" >&5
6404    echo "${ECHO_T}$ac_cv_search_dgettext" >&6
6405    if test "$ac_cv_search_dgettext" != no; then
6406    test "$ac_cv_search_dgettext" = "none required" || LIBS="$ac_cv_search_dgettext $LIBS"    test "$ac_cv_search_dgettext" = "none required" || LIBS="$ac_cv_search_dgettext $LIBS"
6407    true    true
6408  else :  else
6409    { echo "configure: error: gettext library not found" 1>&2; exit 1; }    { { echo "$as_me:$LINENO: error: gettext library not found" >&5
6410    echo "$as_me: error: gettext library not found" >&2;}
6411       { (exit 1); exit 1; }; }
6412  fi  fi
6413    
6414    
6415          echo "#"          echo "#"
6416          echo "#"          echo "#"
6417          echo "# -------------------------"          echo "# -------------------------"
# Line 3564  fi Line 6419  fi
6419          echo "#"          echo "#"
6420          echo "#"          echo "#"
6421          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..
6422  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "
6423          echo "#"          echo "#"
6424          echo "#"          echo "#"
6425          echo "#"          echo "#"
# Line 3578  fi Line 6433  fi
6433          echo "#"          echo "#"
6434          echo "#"          echo "#"
6435          cd binutils/bfd && chmod +x configure && ./configure && cd ../..          cd binutils/bfd && chmod +x configure && ./configure && cd ../..
6436  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "
6437          echo "#"          echo "#"
6438          echo "#"          echo "#"
6439          echo "#"          echo "#"
# Line 3586  fi Line 6441  fi
6441          echo "# ------------------------"          echo "# ------------------------"
6442          echo "#"          echo "#"
6443  #       TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"  #       TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"
6444          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
6445  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
6446  EOF  _ACEOF
6447    
6448          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"
6449            
6450  fi  fi
6451    
6452  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)
# Line 3600  fi Line 6455  fi
6455  # mechanism, in the PAGE macro.  This offset is subtracted from  # mechanism, in the PAGE macro.  This offset is subtracted from
6456  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
6457    
6458  echo $ac_n "checking size of long""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for long" >&5
6459  echo "configure:3605: checking size of long" >&5  echo $ECHO_N "checking for long... $ECHO_C" >&6
6460  if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then  if test "${ac_cv_type_long+set}" = set; then
6461    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6462  else  else
6463      cat >conftest.$ac_ext <<_ACEOF
6464    #line $LINENO "configure"
6465    /* confdefs.h.  */
6466    _ACEOF
6467    cat confdefs.h >>conftest.$ac_ext
6468    cat >>conftest.$ac_ext <<_ACEOF
6469    /* end confdefs.h.  */
6470    $ac_includes_default
6471    int
6472    main ()
6473    {
6474    if ((long *) 0)
6475      return 0;
6476    if (sizeof (long))
6477      return 0;
6478      ;
6479      return 0;
6480    }
6481    _ACEOF
6482    rm -f conftest.$ac_objext
6483    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6484      (eval $ac_compile) 2>&5
6485      ac_status=$?
6486      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487      (exit $ac_status); } &&
6488             { ac_try='test -s conftest.$ac_objext'
6489      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490      (eval $ac_try) 2>&5
6491      ac_status=$?
6492      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493      (exit $ac_status); }; }; then
6494      ac_cv_type_long=yes
6495    else
6496      echo "$as_me: failed program was:" >&5
6497    sed 's/^/| /' conftest.$ac_ext >&5
6498    
6499    ac_cv_type_long=no
6500    fi
6501    rm -f conftest.$ac_objext conftest.$ac_ext
6502    fi
6503    echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6504    echo "${ECHO_T}$ac_cv_type_long" >&6
6505    
6506    echo "$as_me:$LINENO: checking size of long" >&5
6507    echo $ECHO_N "checking size of long... $ECHO_C" >&6
6508    if test "${ac_cv_sizeof_long+set}" = set; then
6509      echo $ECHO_N "(cached) $ECHO_C" >&6
6510    else
6511      if test "$ac_cv_type_long" = yes; then
6512      # The cast to unsigned long works around a bug in the HP C Compiler
6513      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6514      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6515      # This bug is HP SR number 8606223364.
6516    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
6517    ac_cv_sizeof_long=0    # Depending upon the size, compute the lo and hi bounds.
6518    cat >conftest.$ac_ext <<_ACEOF
6519    #line $LINENO "configure"
6520    /* confdefs.h.  */
6521    _ACEOF
6522    cat confdefs.h >>conftest.$ac_ext
6523    cat >>conftest.$ac_ext <<_ACEOF
6524    /* end confdefs.h.  */
6525    $ac_includes_default
6526    int
6527    main ()
6528    {
6529    static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6530    test_array [0] = 0
6531    
6532      ;
6533      return 0;
6534    }
6535    _ACEOF
6536    rm -f conftest.$ac_objext
6537    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6538      (eval $ac_compile) 2>&5
6539      ac_status=$?
6540      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541      (exit $ac_status); } &&
6542             { ac_try='test -s conftest.$ac_objext'
6543      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544      (eval $ac_try) 2>&5
6545      ac_status=$?
6546      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547      (exit $ac_status); }; }; then
6548      ac_lo=0 ac_mid=0
6549      while :; do
6550        cat >conftest.$ac_ext <<_ACEOF
6551    #line $LINENO "configure"
6552    /* confdefs.h.  */
6553    _ACEOF
6554    cat confdefs.h >>conftest.$ac_ext
6555    cat >>conftest.$ac_ext <<_ACEOF
6556    /* end confdefs.h.  */
6557    $ac_includes_default
6558    int
6559    main ()
6560    {
6561    static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6562    test_array [0] = 0
6563    
6564      ;
6565      return 0;
6566    }
6567    _ACEOF
6568    rm -f conftest.$ac_objext
6569    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6570      (eval $ac_compile) 2>&5
6571      ac_status=$?
6572      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573      (exit $ac_status); } &&
6574             { ac_try='test -s conftest.$ac_objext'
6575      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576      (eval $ac_try) 2>&5
6577      ac_status=$?
6578      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579      (exit $ac_status); }; }; then
6580      ac_hi=$ac_mid; break
6581    else
6582      echo "$as_me: failed program was:" >&5
6583    sed 's/^/| /' conftest.$ac_ext >&5
6584    
6585    ac_lo=`expr $ac_mid + 1`
6586                        if test $ac_lo -le $ac_mid; then
6587                          ac_lo= ac_hi=
6588                          break
6589                        fi
6590                        ac_mid=`expr 2 '*' $ac_mid + 1`
6591    fi
6592    rm -f conftest.$ac_objext conftest.$ac_ext
6593      done
6594  else  else
6595    cat > conftest.$ac_ext <<EOF    echo "$as_me: failed program was:" >&5
6596  #line 3613 "configure"  sed 's/^/| /' conftest.$ac_ext >&5
6597  #include "confdefs.h"  
6598  #include <stdio.h>  cat >conftest.$ac_ext <<_ACEOF
6599  #include <sys/types.h>  #line $LINENO "configure"
6600  main()  /* confdefs.h.  */
6601    _ACEOF
6602    cat confdefs.h >>conftest.$ac_ext
6603    cat >>conftest.$ac_ext <<_ACEOF
6604    /* end confdefs.h.  */
6605    $ac_includes_default
6606    int
6607    main ()
6608  {  {
6609    FILE *f=fopen("conftestval", "w");  static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6610    if (!f) exit(1);  test_array [0] = 0
6611    fprintf(f, "%d\n", sizeof(long));  
6612    exit(0);    ;
6613      return 0;
6614  }  }
6615  EOF  _ACEOF
6616  if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest.$ac_objext
6617  then  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618    ac_cv_sizeof_long=`cat conftestval`    (eval $ac_compile) 2>&5
6619  else    ac_status=$?
6620    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621    cat conftest.$ac_ext >&5    (exit $ac_status); } &&
6622    rm -fr conftest*           { ac_try='test -s conftest.$ac_objext'
6623    ac_cv_sizeof_long=0    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624      (eval $ac_try) 2>&5
6625      ac_status=$?
6626      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627      (exit $ac_status); }; }; then
6628      ac_hi=-1 ac_mid=-1
6629      while :; do
6630        cat >conftest.$ac_ext <<_ACEOF
6631    #line $LINENO "configure"
6632    /* confdefs.h.  */
6633    _ACEOF
6634    cat confdefs.h >>conftest.$ac_ext
6635    cat >>conftest.$ac_ext <<_ACEOF
6636    /* end confdefs.h.  */
6637    $ac_includes_default
6638    int
6639    main ()
6640    {
6641    static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6642    test_array [0] = 0
6643    
6644      ;
6645      return 0;
6646    }
6647    _ACEOF
6648    rm -f conftest.$ac_objext
6649    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650      (eval $ac_compile) 2>&5
6651      ac_status=$?
6652      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653      (exit $ac_status); } &&
6654             { ac_try='test -s conftest.$ac_objext'
6655      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656      (eval $ac_try) 2>&5
6657      ac_status=$?
6658      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659      (exit $ac_status); }; }; then
6660      ac_lo=$ac_mid; break
6661    else
6662      echo "$as_me: failed program was:" >&5
6663    sed 's/^/| /' conftest.$ac_ext >&5
6664    
6665    ac_hi=`expr '(' $ac_mid ')' - 1`
6666                           if test $ac_mid -le $ac_hi; then
6667                             ac_lo= ac_hi=
6668                             break
6669                           fi
6670                           ac_mid=`expr 2 '*' $ac_mid`
6671    fi
6672    rm -f conftest.$ac_objext conftest.$ac_ext
6673      done
6674    else
6675      echo "$as_me: failed program was:" >&5
6676    sed 's/^/| /' conftest.$ac_ext >&5
6677    
6678    ac_lo= ac_hi=
6679  fi  fi
6680  rm -fr conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
6681  fi  fi
6682    rm -f conftest.$ac_objext conftest.$ac_ext
6683    # Binary search between lo and hi bounds.
6684    while test "x$ac_lo" != "x$ac_hi"; do
6685      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6686      cat >conftest.$ac_ext <<_ACEOF
6687    #line $LINENO "configure"
6688    /* confdefs.h.  */
6689    _ACEOF
6690    cat confdefs.h >>conftest.$ac_ext
6691    cat >>conftest.$ac_ext <<_ACEOF
6692    /* end confdefs.h.  */
6693    $ac_includes_default
6694    int
6695    main ()
6696    {
6697    static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6698    test_array [0] = 0
6699    
6700      ;
6701      return 0;
6702    }
6703    _ACEOF
6704    rm -f conftest.$ac_objext
6705    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706      (eval $ac_compile) 2>&5
6707      ac_status=$?
6708      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709      (exit $ac_status); } &&
6710             { ac_try='test -s conftest.$ac_objext'
6711      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712      (eval $ac_try) 2>&5
6713      ac_status=$?
6714      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715      (exit $ac_status); }; }; then
6716      ac_hi=$ac_mid
6717    else
6718      echo "$as_me: failed program was:" >&5
6719    sed 's/^/| /' conftest.$ac_ext >&5
6720    
6721    ac_lo=`expr '(' $ac_mid ')' + 1`
6722  fi  fi
6723  echo "$ac_t""$ac_cv_sizeof_long" 1>&6  rm -f conftest.$ac_objext conftest.$ac_ext
6724  cat >> confdefs.h <<EOF  done
6725    case $ac_lo in
6726    ?*) ac_cv_sizeof_long=$ac_lo;;
6727    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6728    See \`config.log' for more details." >&5
6729    echo "$as_me: error: cannot compute sizeof (long), 77
6730    See \`config.log' for more details." >&2;}
6731       { (exit 1); exit 1; }; } ;;
6732    esac
6733    else
6734      if test "$cross_compiling" = yes; then
6735      { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6736    See \`config.log' for more details." >&5
6737    echo "$as_me: error: cannot run test program while cross compiling
6738    See \`config.log' for more details." >&2;}
6739       { (exit 1); exit 1; }; }
6740    else
6741      cat >conftest.$ac_ext <<_ACEOF
6742    #line $LINENO "configure"
6743    /* confdefs.h.  */
6744    _ACEOF
6745    cat confdefs.h >>conftest.$ac_ext
6746    cat >>conftest.$ac_ext <<_ACEOF
6747    /* end confdefs.h.  */
6748    $ac_includes_default
6749    long longval () { return (long) (sizeof (long)); }
6750    unsigned long ulongval () { return (long) (sizeof (long)); }
6751    #include <stdio.h>
6752    #include <stdlib.h>
6753    int
6754    main ()
6755    {
6756    
6757      FILE *f = fopen ("conftest.val", "w");
6758      if (! f)
6759        exit (1);
6760      if (((long) (sizeof (long))) < 0)
6761        {
6762          long i = longval ();
6763          if (i != ((long) (sizeof (long))))
6764            exit (1);
6765          fprintf (f, "%ld\n", i);
6766        }
6767      else
6768        {
6769          unsigned long i = ulongval ();
6770          if (i != ((long) (sizeof (long))))
6771            exit (1);
6772          fprintf (f, "%lu\n", i);
6773        }
6774      exit (ferror (f) || fclose (f) != 0);
6775    
6776      ;
6777      return 0;
6778    }
6779    _ACEOF
6780    rm -f conftest$ac_exeext
6781    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6782      (eval $ac_link) 2>&5
6783      ac_status=$?
6784      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6786      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787      (eval $ac_try) 2>&5
6788      ac_status=$?
6789      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790      (exit $ac_status); }; }; then
6791      ac_cv_sizeof_long=`cat conftest.val`
6792    else
6793      echo "$as_me: program exited with status $ac_status" >&5
6794    echo "$as_me: failed program was:" >&5
6795    sed 's/^/| /' conftest.$ac_ext >&5
6796    
6797    ( exit $ac_status )
6798    { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6799    See \`config.log' for more details." >&5
6800    echo "$as_me: error: cannot compute sizeof (long), 77
6801    See \`config.log' for more details." >&2;}
6802       { (exit 1); exit 1; }; }
6803    fi
6804    rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6805    fi
6806    fi
6807    rm -f conftest.val
6808    else
6809      ac_cv_sizeof_long=0
6810    fi
6811    fi
6812    echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6813    echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6814    cat >>confdefs.h <<_ACEOF
6815  #define SIZEOF_LONG $ac_cv_sizeof_long  #define SIZEOF_LONG $ac_cv_sizeof_long
6816  EOF  _ACEOF
6817    
6818    
6819  echo $ac_n "checking sizeof struct contblock""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking sizeof struct contblock" >&5
6820  echo "configure:3645: checking sizeof struct contblock" >&5  echo $ECHO_N "checking sizeof struct contblock... $ECHO_C" >&6
6821    
6822  # work around MSYS pwd result incompatibility  # work around MSYS pwd result incompatibility
6823  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
6824  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6825    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
6826  else  else
6827    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6828  #line 3653 "configure"  #line $LINENO "configure"
6829  #include "confdefs.h"  /* confdefs.h.  */
6830    _ACEOF
6831    cat confdefs.h >>conftest.$ac_ext
6832    cat >>conftest.$ac_ext <<_ACEOF
6833    /* end confdefs.h.  */
6834  #include <stdio.h>  #include <stdio.h>
6835          #define EXTER          #define EXTER
6836          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 3662  else Line 6842  else
6842          fclose(f);          fclose(f);
6843          return 0;          return 0;
6844          }          }
6845  EOF  _ACEOF
6846  if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6847  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6848      (eval $ac_link) 2>&5
6849      ac_status=$?
6850      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6852      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853      (eval $ac_try) 2>&5
6854      ac_status=$?
6855      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856      (exit $ac_status); }; }; then
6857    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
6858  else  else
6859    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6860    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6861    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
6862    echo Cannot find sizeof struct contblock;exit 1  
6863    ( exit $ac_status )
6864    echo Cannot find sizeof struct contblock;exit 1
6865  fi  fi
6866  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6867  fi  fi
   
6868  else  else
6869  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6870    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
6871  else  else
6872    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6873  #line 3684 "configure"  #line $LINENO "configure"
6874  #include "confdefs.h"  /* confdefs.h.  */
6875    _ACEOF
6876    cat confdefs.h >>conftest.$ac_ext
6877    cat >>conftest.$ac_ext <<_ACEOF
6878    /* end confdefs.h.  */
6879  #include <stdio.h>  #include <stdio.h>
6880          #define EXTER          #define EXTER
6881          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 3693  else Line 6887  else
6887          fclose(f);          fclose(f);
6888          return 0;          return 0;
6889          }          }
6890  EOF  _ACEOF
6891  if { (eval echo configure:3698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6892  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6893      (eval $ac_link) 2>&5
6894      ac_status=$?
6895      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6897      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898      (eval $ac_try) 2>&5
6899      ac_status=$?
6900      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901      (exit $ac_status); }; }; then
6902    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
6903  else  else
6904    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6905    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6906    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
6907    echo Cannot find sizeof struct contblock;exit 1  
6908    ( exit $ac_status )
6909    echo Cannot find sizeof struct contblock;exit 1
6910  fi  fi
6911  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6912  fi  fi
   
6913  fi  fi
6914  echo "$ac_t""$sizeof_contblock" 1>&6  echo "$as_me:$LINENO: result: $sizeof_contblock" >&5
6915  cat >> confdefs.h <<EOF  echo "${ECHO_T}$sizeof_contblock" >&6
6916    cat >>confdefs.h <<_ACEOF
6917  #define SIZEOF_CONTBLOCK $sizeof_contblock  #define SIZEOF_CONTBLOCK $sizeof_contblock
6918  EOF  _ACEOF
6919    
6920    
6921    
6922    
6923  for ac_hdr in endian.h  
6924    for ac_header in endian.h
6925  do  do
6926  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6927  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6928  echo "configure:3723: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
6929  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6930    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6931  else    echo $ECHO_N "(cached) $ECHO_C" >&6
6932    cat > conftest.$ac_ext <<EOF  fi
6933  #line 3728 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6934  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6935  #include <$ac_hdr>  else
6936  EOF    # Is the header compilable?
6937  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
6938  { (eval echo configure:3733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6939  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
6940  if test -z "$ac_err"; then  #line $LINENO "configure"
6941    rm -rf conftest*  /* confdefs.h.  */
6942    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
6943  else  cat confdefs.h >>conftest.$ac_ext
6944    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
6945    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
6946    cat conftest.$ac_ext >&5  $ac_includes_default
6947    rm -rf conftest*  #include <$ac_header>
6948    eval "ac_cv_header_$ac_safe=no"  _ACEOF
6949  fi  rm -f conftest.$ac_objext
6950  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951      (eval $ac_compile) 2>&5
6952      ac_status=$?
6953      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954      (exit $ac_status); } &&
6955             { ac_try='test -s conftest.$ac_objext'
6956      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957      (eval $ac_try) 2>&5
6958      ac_status=$?
6959      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960      (exit $ac_status); }; }; then
6961      ac_header_compiler=yes
6962    else
6963      echo "$as_me: failed program was:" >&5
6964    sed 's/^/| /' conftest.$ac_ext >&5
6965    
6966    ac_header_compiler=no
6967    fi
6968    rm -f conftest.$ac_objext conftest.$ac_ext
6969    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6970    echo "${ECHO_T}$ac_header_compiler" >&6
6971    
6972    # Is the header present?
6973    echo "$as_me:$LINENO: checking $ac_header presence" >&5
6974    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6975    cat >conftest.$ac_ext <<_ACEOF
6976    #line $LINENO "configure"
6977    /* confdefs.h.  */
6978    _ACEOF
6979    cat confdefs.h >>conftest.$ac_ext
6980    cat >>conftest.$ac_ext <<_ACEOF
6981    /* end confdefs.h.  */
6982    #include <$ac_header>
6983    _ACEOF
6984    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6985      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6986      ac_status=$?
6987      grep -v '^ *+' conftest.er1 >conftest.err
6988      rm -f conftest.er1
6989      cat conftest.err >&5
6990      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991      (exit $ac_status); } >/dev/null; then
6992      if test -s conftest.err; then
6993        ac_cpp_err=$ac_c_preproc_warn_flag
6994      else
6995        ac_cpp_err=
6996      fi
6997    else
6998      ac_cpp_err=yes
6999  fi  fi
7000  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
7001    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
7002      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
7003    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
7004  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
7005  EOF  
7006   echo $ac_n "checking "endianness"""... $ac_c" 1>&6    ac_header_preproc=no
7007  echo "configure:3754: checking "endianness"" >&5  fi
7008    rm -f conftest.err conftest.$ac_ext
7009    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7010    echo "${ECHO_T}$ac_header_preproc" >&6
7011    
7012    # So?  What about this header?
7013    case $ac_header_compiler:$ac_header_preproc in
7014      yes:no )
7015        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7016    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7017        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7018    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7019        (
7020          cat <<\_ASBOX
7021    ## ------------------------------------ ##
7022    ## Report this to bug-autoconf@gnu.org. ##
7023    ## ------------------------------------ ##
7024    _ASBOX
7025        ) |
7026          sed "s/^/$as_me: WARNING:     /" >&2
7027        ;;
7028      no:yes )
7029        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7030    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7031        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7032    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7033        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7034    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7035        (
7036          cat <<\_ASBOX
7037    ## ------------------------------------ ##
7038    ## Report this to bug-autoconf@gnu.org. ##
7039    ## ------------------------------------ ##
7040    _ASBOX
7041        ) |
7042          sed "s/^/$as_me: WARNING:     /" >&2
7043        ;;
7044    esac
7045    echo "$as_me:$LINENO: checking for $ac_header" >&5
7046    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7047    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7048      echo $ECHO_N "(cached) $ECHO_C" >&6
7049    else
7050      eval "$as_ac_Header=$ac_header_preproc"
7051    fi
7052    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7053    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7054    
7055    fi
7056    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7057      cat >>confdefs.h <<_ACEOF
7058    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7059    _ACEOF
7060     echo "$as_me:$LINENO: checking \"endianness\"" >&5
7061    echo $ECHO_N "checking \"endianness\"... $ECHO_C" >&6
7062          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
7063    echo "$ac_t""big" 1>&6    echo "$as_me:$LINENO: result: big" >&5
7064    echo "${ECHO_T}big" >&6
7065  else  else
7066    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7067  #line 3759 "configure"  #line $LINENO "configure"
7068  #include "confdefs.h"  /* confdefs.h.  */
7069    _ACEOF
7070    cat confdefs.h >>conftest.$ac_ext
7071    cat >>conftest.$ac_ext <<_ACEOF
7072    /* end confdefs.h.  */
7073  #define __ARMEB__  #define __ARMEB__
7074                  #include <endian.h>                  #include <endian.h>
7075                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
7076  EOF  _ACEOF
7077  if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7078  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7079    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7080      ac_status=$?
7081      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7083      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084      (eval $ac_try) 2>&5
7085      ac_status=$?
7086      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087      (exit $ac_status); }; }; then
7088      cat >>confdefs.h <<\_ACEOF
7089  #define LITTLE_END 1  #define LITTLE_END 1
7090  EOF  _ACEOF
7091   echo "$ac_t""little" 1>&6   echo "$as_me:$LINENO: result: little" >&5
7092  else  echo "${ECHO_T}little" >&6
7093    echo "configure: failed program was:" >&5  else
7094    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
7095    rm -fr conftest*  echo "$as_me: failed program was:" >&5
7096    echo "$ac_t""big" 1>&6  sed 's/^/| /' conftest.$ac_ext >&5
7097    
7098    ( exit $ac_status )
7099    echo "$as_me:$LINENO: result: big" >&5
7100    echo "${ECHO_T}big" >&6
7101  fi  fi
7102  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7103  fi  fi
   
 else  
   echo "$ac_t""no" 1>&6  
7104  fi  fi
7105    
7106  done  done
7107    
7108    
# Line 3787  done Line 7111  done
7111  # On systems with execshield, brk is randomized.  We need to catch  # On systems with execshield, brk is randomized.  We need to catch
7112  # this and restore the traditional behavior here  # this and restore the traditional behavior here
7113    
7114  echo $ac_n "checking for sbrk""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sbrk" >&5
7115  echo "configure:3792: checking for sbrk" >&5  echo $ECHO_N "checking for sbrk... $ECHO_C" >&6
7116  HAVE_SBRK=""  HAVE_SBRK=""
7117  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7118    echo "$ac_t""no: WARNING you must be able to emulate sbrk: as on mingw or macosx" 1>&6    echo "$as_me:$LINENO: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5
7119    echo "${ECHO_T}no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6
7120  else  else
7121    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7122  #line 3798 "configure"  #line $LINENO "configure"
7123  #include "confdefs.h"  /* confdefs.h.  */
7124    _ACEOF
7125    cat confdefs.h >>conftest.$ac_ext
7126    cat >>conftest.$ac_ext <<_ACEOF
7127    /* end confdefs.h.  */
7128  #include <unistd.h>  #include <unistd.h>
7129              #include <stdio.h>              #include <stdio.h>
7130              int main() {              int main() {
# Line 3805  else Line 7134  else
7134                  fprintf(f,"%u",sbrk(0));                  fprintf(f,"%u",sbrk(0));
7135                  return 0;                  return 0;
7136                  }                  }
7137  EOF  _ACEOF
7138  if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7139  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7140      (eval $ac_link) 2>&5
7141      ac_status=$?
7142      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7144      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145      (eval $ac_try) 2>&5
7146      ac_status=$?
7147      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148      (exit $ac_status); }; }; then
7149    HAVE_SBRK=1    HAVE_SBRK=1
7150                  echo "$ac_t""yes" 1>&6                  echo "$as_me:$LINENO: result: yes" >&5
7151    echo "${ECHO_T}yes" >&6
7152  else  else
7153    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7154    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7155    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
7156    echo "$ac_t""no: WARNING you must be able to emulate sbrk: as on mingw or macosx" 1>&6  
7157    ( exit $ac_status )
7158    echo "$as_me:$LINENO: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5
7159    echo "${ECHO_T}no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6
7160  fi  fi
7161  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7162  fi  fi
7163    
   
7164  if test "$HAVE_SBRK" = "1" ; then  if test "$HAVE_SBRK" = "1" ; then
7165          echo $ac_n "checking for randomized sbrk""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for randomized sbrk" >&5
7166  echo "configure:3826: checking for randomized sbrk" >&5  echo $ECHO_N "checking for randomized sbrk... $ECHO_C" >&6
7167          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
7168    SBRK=0    SBRK=0
7169  else  else
7170    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7171  #line 3831 "configure"  #line $LINENO "configure"
7172  #include "confdefs.h"  /* confdefs.h.  */
7173    _ACEOF
7174    cat confdefs.h >>conftest.$ac_ext
7175    cat >>conftest.$ac_ext <<_ACEOF
7176    /* end confdefs.h.  */
7177  #include <unistd.h>  #include <unistd.h>
7178                      #include <stdio.h>                      #include <stdio.h>
7179                      int main() {                      int main() {
# Line 3838  else Line 7183  else
7183                          fprintf(f,"%u",sbrk(0));                          fprintf(f,"%u",sbrk(0));
7184                          return 0;                          return 0;
7185                          }                          }
7186  EOF  _ACEOF
7187  if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7188  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7189      (eval $ac_link) 2>&5
7190      ac_status=$?
7191      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7193      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194      (eval $ac_try) 2>&5
7195      ac_status=$?
7196      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197      (exit $ac_status); }; }; then
7198    SBRK=`cat conftest1`    SBRK=`cat conftest1`
7199  else  else
7200    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7201    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7202    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
7203    SBRK=0  
7204    ( exit $ac_status )
7205    SBRK=0
7206  fi  fi
7207  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7208  fi  fi
   
7209          if test "$SBRK" = "0" ; then          if test "$SBRK" = "0" ; then
7210                  echo "$ac_t""cannot trap sbrk" 1>&6                  echo "$as_me:$LINENO: result: cannot trap sbrk" >&5
7211    echo "${ECHO_T}cannot trap sbrk" >&6
7212                  exit 1                  exit 1
7213          fi          fi
7214          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
7215    SBRK1=0    SBRK1=0
7216  else  else
7217    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7218  #line 3863 "configure"  #line $LINENO "configure"
7219  #include "confdefs.h"  /* confdefs.h.  */
7220    _ACEOF
7221    cat confdefs.h >>conftest.$ac_ext
7222    cat >>conftest.$ac_ext <<_ACEOF
7223    /* end confdefs.h.  */
7224  #include <unistd.h>  #include <unistd.h>
7225                      #include <stdio.h>                      #include <stdio.h>
7226                      int main() {                      int main() {
# Line 3870  else Line 7230  else
7230                          fprintf(f,"%u",sbrk(0));                          fprintf(f,"%u",sbrk(0));
7231                          return 0;                          return 0;
7232                          }                          }
7233  EOF  _ACEOF
7234  if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7235  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236      (eval $ac_link) 2>&5
7237      ac_status=$?
7238      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7240      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241      (eval $ac_try) 2>&5
7242      ac_status=$?
7243      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244      (exit $ac_status); }; }; then
7245    SBRK1=`cat conftest1`    SBRK1=`cat conftest1`
7246  else  else
7247    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7248    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7249    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
7250    SBRK1=0  
7251    ( exit $ac_status )
7252    SBRK1=0
7253  fi  fi
7254  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7255  fi  fi
   
7256          if test "$SBRK1" = "0" ; then          if test "$SBRK1" = "0" ; then
7257                  echo "$ac_t""cannot trap sbrk" 1>&6                  echo "$as_me:$LINENO: result: cannot trap sbrk" >&5
7258    echo "${ECHO_T}cannot trap sbrk" >&6
7259                  exit 1                  exit 1
7260          fi          fi
7261            
7262          if test "$SBRK" != "$SBRK1" ; then          if test "$SBRK" != "$SBRK1" ; then
7263                  echo "$ac_t""yes" 1>&6                  echo "$as_me:$LINENO: result: yes" >&5
7264                  echo $ac_n "checking for randomized brk remedy""... $ac_c" 1>&6  echo "${ECHO_T}yes" >&6
7265  echo "configure:3895: checking for randomized brk remedy" >&5                  echo "$as_me:$LINENO: checking for randomized brk remedy" >&5
7266    echo $ECHO_N "checking for randomized brk remedy... $ECHO_C" >&6
7267                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
7268    SBRK=0    SBRK=0
7269  else  else
7270    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7271  #line 3900 "configure"  #line $LINENO "configure"
7272  #include "confdefs.h"  /* confdefs.h.  */
7273    _ACEOF
7274    cat confdefs.h >>conftest.$ac_ext
7275    cat >>conftest.$ac_ext <<_ACEOF
7276    /* end confdefs.h.  */
7277  #include <syscall.h>  #include <syscall.h>
7278                              #include <linux/personality.h>                              #include <linux/personality.h>
7279                              #include <stdio.h>                              #include <stdio.h>
# Line 3915  else Line 7291  else
7291                                  fprintf(f,"%u",sbrk(0));                                  fprintf(f,"%u",sbrk(0));
7292                                  return 0;                                  return 0;
7293                                  }                                  }
7294  EOF  _ACEOF
7295  if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7296  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7297      (eval $ac_link) 2>&5
7298      ac_status=$?
7299      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7301      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302      (eval $ac_try) 2>&5
7303      ac_status=$?
7304      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305      (exit $ac_status); }; }; then
7306    SBRK=`cat conftest1`    SBRK=`cat conftest1`
7307  else  else
7308    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7309    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7310    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
7311    SBRK=0  
7312    ( exit $ac_status )
7313    SBRK=0
7314  fi  fi
7315  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7316  fi  fi
   
7317                  if test "$SBRK" = "0" ; then                  if test "$SBRK" = "0" ; then
7318                          echo "$ac_t""cannot trap sbrk" 1>&6                          echo "$as_me:$LINENO: result: cannot trap sbrk" >&5
7319    echo "${ECHO_T}cannot trap sbrk" >&6
7320                          exit 1                          exit 1
7321                  fi                  fi
7322                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
7323    SBRK1=0    SBRK1=0
7324  else  else
7325    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7326  #line 3940 "configure"  #line $LINENO "configure"
7327  #include "confdefs.h"  /* confdefs.h.  */
7328    _ACEOF
7329    cat confdefs.h >>conftest.$ac_ext
7330    cat >>conftest.$ac_ext <<_ACEOF
7331    /* end confdefs.h.  */
7332  #include <syscall.h>  #include <syscall.h>
7333                              #include <linux/personality.h>                              #include <linux/personality.h>
7334                              #include <stdio.h>                              #include <stdio.h>
# Line 3955  else Line 7346  else
7346                                  fprintf(f,"%u",sbrk(0));                                  fprintf(f,"%u",sbrk(0));
7347                                  return 0;                                  return 0;
7348                                  }                                  }
7349  EOF  _ACEOF
7350  if { (eval echo configure:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7351  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352      (eval $ac_link) 2>&5
7353      ac_status=$?
7354      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7356      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357      (eval $ac_try) 2>&5
7358      ac_status=$?
7359      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360      (exit $ac_status); }; }; then
7361    SBRK1=`cat conftest1`    SBRK1=`cat conftest1`
7362  else  else
7363    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7364    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7365    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
7366    SBRK1=0  
7367    ( exit $ac_status )
7368    SBRK1=0
7369  fi  fi
7370  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7371  fi  fi
   
7372                  if test "$SBRK1" = "0" ; then                  if test "$SBRK1" = "0" ; then
7373                          echo "$ac_t""cannot trap sbrk" 1>&6                          echo "$as_me:$LINENO: result: cannot trap sbrk" >&5
7374    echo "${ECHO_T}cannot trap sbrk" >&6
7375                          exit 1                          exit 1
7376                  fi                  fi
7377                  if test "$SBRK" = "$SBRK1" ; then                  if test "$SBRK" = "$SBRK1" ; then
7378                          echo "$ac_t""yes" 1>&6                          echo "$as_me:$LINENO: result: yes" >&5
7379                          cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
7380                            cat >>confdefs.h <<\_ACEOF
7381  #define NEED_NONRANDOM_SBRK 1  #define NEED_NONRANDOM_SBRK 1
7382  EOF  _ACEOF
7383    
7384                  else                  else
7385                          echo "$ac_t""no" 1>&6                          echo "$as_me:$LINENO: result: no" >&5
7386    echo "${ECHO_T}no" >&6
7387                          echo "Cannot build with randomized sbrk"                          echo "Cannot build with randomized sbrk"
7388                          exit 1                          exit 1
7389                  fi                  fi
7390          else          else
7391                  echo "$ac_t""no" 1>&6                  echo "$as_me:$LINENO: result: no" >&5
7392    echo "${ECHO_T}no" >&6
7393          fi          fi
7394  fi  fi
7395    
7396    
7397  old_LDFLAGS="$LDFLAGS"  old_LDFLAGS="$LDFLAGS"
7398  LDFLAGS="$TLDFLAGS"  LDFLAGS="$TLDFLAGS"
7399  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"finding DBEGIN\"" >&5
7400  echo "configure:3996: checking "finding DBEGIN"" >&5  echo $ECHO_N "checking \"finding DBEGIN\"... $ECHO_C" >&6
7401  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7402    dbegin=0    dbegin=0
7403  else  else
7404    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7405  #line 4001 "configure"  #line $LINENO "configure"
7406  #include "confdefs.h"  /* confdefs.h.  */
7407    _ACEOF
7408    cat confdefs.h >>conftest.$ac_ext
7409    cat >>conftest.$ac_ext <<_ACEOF
7410    /* end confdefs.h.  */
7411  #include <stdio.h>  #include <stdio.h>
7412              #include <stdlib.h>              #include <stdlib.h>
7413              #ifdef NEED_NONRANDOM_SBRK              #ifdef NEED_NONRANDOM_SBRK
# Line 4019  if (!syscall(SYS_personality,PER_LINUX32 Line 7428  if (!syscall(SYS_personality,PER_LINUX32
7428  if (!syscall(SYS_personality,PER_LINUX))  if (!syscall(SYS_personality,PER_LINUX))
7429  #endif  #endif
7430       execvp(argv[0],argv);       execvp(argv[0],argv);
7431  #endif    #endif
7432    b = (void *) malloc(1000);    b = (void *) malloc(1000);
7433    fp = fopen("conftest1","w");    fp = fopen("conftest1","w");
7434    
# Line 4035  if (!syscall(SYS_personality,PER_LINUX)) Line 7444  if (!syscall(SYS_personality,PER_LINUX))
7444    fclose(fp);    fclose(fp);
7445    return 0;    return 0;
7446  }  }
7447  EOF  _ACEOF
7448  if { (eval echo configure:4040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7449  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7450      (eval $ac_link) 2>&5
7451      ac_status=$?
7452      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7454      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455      (eval $ac_try) 2>&5
7456      ac_status=$?
7457      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458      (exit $ac_status); }; }; then
7459    dbegin=`cat conftest1`    dbegin=`cat conftest1`
7460  else  else
7461    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7462    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7463    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
7464    dbegin=0  
7465    ( exit $ac_status )
7466    dbegin=0
7467  fi  fi
7468  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7469  fi  fi
7470    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
7471  #define DBEGIN $dbegin \  #define DBEGIN $dbegin \
7472  /* where data begins */  /* where data begins */
7473    
7474  EOF  _ACEOF
7475    
7476  echo "$ac_t""got $dbegin" 1>&6  echo "$as_me:$LINENO: result: got $dbegin" >&5
7477    echo "${ECHO_T}got $dbegin" >&6
7478  LDFLAGS="$old_LDFLAGS"  LDFLAGS="$old_LDFLAGS"
7479    
7480    
7481  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"finding CSTACK_ADDRESS\"" >&5
7482  echo "configure:4063: checking "finding CSTACK_ADDRESS"" >&5  echo $ECHO_N "checking \"finding CSTACK_ADDRESS\"... $ECHO_C" >&6
7483  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7484    cstack_address=0    cstack_address=0
7485  else  else
7486    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7487  #line 4068 "configure"  #line $LINENO "configure"
7488  #include "confdefs.h"  /* confdefs.h.  */
7489    _ACEOF
7490    cat confdefs.h >>conftest.$ac_ext
7491    cat >>conftest.$ac_ext <<_ACEOF
7492    /* end confdefs.h.  */
7493  #include <stdio.h>  #include <stdio.h>
7494  main()  main()
7495  {  {
# Line 4075  main() Line 7499  main()
7499    fclose(fp);    fclose(fp);
7500    return 0;    return 0;
7501  }  }
7502  EOF  _ACEOF
7503  if { (eval echo configure:4080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7504  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7505      (eval $ac_link) 2>&5
7506      ac_status=$?
7507      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7509      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510      (eval $ac_try) 2>&5
7511      ac_status=$?
7512      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513      (exit $ac_status); }; }; then
7514    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
7515  else  else
7516    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7517    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7518    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
7519    cstack_address=0  
7520    ( exit $ac_status )
7521    cstack_address=0
7522  fi  fi
7523  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7524  fi  fi
7525    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
7526  #define CSTACK_ADDRESS $cstack_address \  #define CSTACK_ADDRESS $cstack_address \
7527    
7528  EOF  _ACEOF
7529    
7530  echo "$ac_t""got $cstack_address" 1>&6  echo "$as_me:$LINENO: result: got $cstack_address" >&5
7531    echo "${ECHO_T}got $cstack_address" >&6
7532    
7533  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"sizeof long long int\"" >&5
7534  echo "configure:4100: checking "sizeof long long int"" >&5  echo $ECHO_N "checking \"sizeof long long int\"... $ECHO_C" >&6
7535  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7536    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
7537    echo "${ECHO_T}no" >&6
7538    
7539  else  else
7540    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7541  #line 4106 "configure"  #line $LINENO "configure"
7542  #include "confdefs.h"  /* confdefs.h.  */
7543    _ACEOF
7544    cat confdefs.h >>conftest.$ac_ext
7545    cat >>conftest.$ac_ext <<_ACEOF
7546    /* end confdefs.h.  */
7547  #include <stdio.h>  #include <stdio.h>
7548  main()  main()
7549  {  {
# Line 4111  main() Line 7551  main()
7551    return 1;    return 1;
7552  }  }
7553    
7554  EOF  _ACEOF
7555  if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7556  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7557    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7558      ac_status=$?
7559      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7561      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562      (eval $ac_try) 2>&5
7563      ac_status=$?
7564      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565      (exit $ac_status); }; }; then
7566      cat >>confdefs.h <<\_ACEOF
7567  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
7568  EOF  _ACEOF
7569    
7570  echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: yes" >&5
7571    echo "${ECHO_T}yes" >&6
7572  else  else
7573    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7574    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7575    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
7576    echo "$ac_t""no" 1>&6  
7577    ( exit $ac_status )
7578    echo "$as_me:$LINENO: result: no" >&5
7579    echo "${ECHO_T}no" >&6
7580  fi  fi
7581  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7582  fi  fi
7583    
7584    
7585    
   
7586  # readline  # readline
7587  # Check whether --enable-readline or --disable-readline was given.  # Check whether --enable-readline or --disable-readline was given.
7588  if test "${enable_readline+set}" = set; then  if test "${enable_readline+set}" = set; then
7589    enableval="$enable_readline"    enableval="$enable_readline"
7590    :  
7591  else  else
7592    enable_readline="yes"    enable_readline="yes"
7593  fi  fi;
   
7594    
7595  # ansi lisp  # ansi lisp
7596  # Check whether --enable-ansi or --disable-ansi was given.  # Check whether --enable-ansi or --disable-ansi was given.
7597  if test "${enable_ansi+set}" = set; then  if test "${enable_ansi+set}" = set; then
7598    enableval="$enable_ansi"    enableval="$enable_ansi"
7599    :  
7600  else  else
7601    enable_ansi="no"    enable_ansi="no"
7602  fi  fi;
   
7603    
7604  if test "$enable_ansi" = "yes" ; then  if test "$enable_ansi" = "yes" ; then
7605          SYSTEM=ansi_gcl          SYSTEM=ansi_gcl
7606          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
7607  #define ANSI_COMMON_LISP 1  #define ANSI_COMMON_LISP 1
7608  EOF  _ACEOF
7609    
7610          CLSTANDARD=ANSI          CLSTANDARD=ANSI
7611  else  else
# Line 4169  FLISP="saved_$SYSTEM" Line 7619  FLISP="saved_$SYSTEM"
7619    
7620    
7621  # pagewidth  # pagewidth
7622  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for pagewidth" >&5
7623  echo "configure:4174: checking for pagewidth" >&5  echo $ECHO_N "checking for pagewidth... $ECHO_C" >&6
7624  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7625    PAGEWIDTH=0    PAGEWIDTH=0
7626  else  else
7627    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7628  #line 4179 "configure"  #line $LINENO "configure"
7629  #include "confdefs.h"  /* confdefs.h.  */
7630    _ACEOF
7631    cat confdefs.h >>conftest.$ac_ext
7632    cat >>conftest.$ac_ext <<_ACEOF
7633    /* end confdefs.h.  */
7634  #include <stdio.h>  #include <stdio.h>
7635              #include <unistd.h>              #include <unistd.h>
7636  int main() {size_t i=getpagesize(),j;  int main() {size_t i=getpagesize(),j;
7637              FILE *fp=fopen("conftest1","w");              FILE *fp=fopen("conftest1","w");
7638              for (j=0;i>>=1;j++);              for (j=0;i>>=1;j++);
7639              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
7640              return 0;}              return 0;}
7641  EOF  _ACEOF
7642  if { (eval echo configure:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7643  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7644      (eval $ac_link) 2>&5
7645      ac_status=$?
7646      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7648      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649      (eval $ac_try) 2>&5
7650      ac_status=$?
7651      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652      (exit $ac_status); }; }; then
7653    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
7654  else  else
7655    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7656    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7657    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
7658    PAGEWIDTH=0  
7659  fi  ( exit $ac_status )
7660  rm -fr conftest*  PAGEWIDTH=0
7661  fi  fi
7662    rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7663  echo "$ac_t""$PAGEWIDTH" 1>&6  fi
7664  cat >> confdefs.h <<EOF  echo "$as_me:$LINENO: result: $PAGEWIDTH" >&5
7665    echo "${ECHO_T}$PAGEWIDTH" >&6
7666    cat >>confdefs.h <<_ACEOF
7667  #define PAGEWIDTH $PAGEWIDTH  #define PAGEWIDTH $PAGEWIDTH
7668  EOF  _ACEOF
7669    
7670    
7671    
# Line 4209  EOF Line 7674  EOF
7674    
7675    
7676  # Check if Posix compliant getcwd exists, if not we'll use getwd.  # Check if Posix compliant getcwd exists, if not we'll use getwd.
7677    
7678  for ac_func in getcwd  for ac_func in getcwd
7679  do  do
7680  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7681  echo "configure:4216: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
7682  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7683    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
7684  else    echo $ECHO_N "(cached) $ECHO_C" >&6
7685    cat > conftest.$ac_ext <<EOF  else
7686  #line 4221 "configure"    cat >conftest.$ac_ext <<_ACEOF
7687  #include "confdefs.h"  #line $LINENO "configure"
7688    /* confdefs.h.  */
7689    _ACEOF
7690    cat confdefs.h >>conftest.$ac_ext
7691    cat >>conftest.$ac_ext <<_ACEOF
7692    /* end confdefs.h.  */
7693  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7694      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
7695  #include <assert.h>  #include <assert.h>
7696  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7697    #ifdef __cplusplus
7698    extern "C"
7699    {
7700    #endif
7701  /* 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
7702      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7703  char $ac_func();  char $ac_func ();
   
 int main() {  
   
7704  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7705      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7706      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7707  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7708  choke me  choke me
7709  #else  #else
7710  $ac_func();  char (*f) () = $ac_func;
7711    #endif
7712    #ifdef __cplusplus
7713    }
7714  #endif  #endif
7715    
7716  ; return 0; }  int
7717  EOF  main ()
7718  if { (eval echo configure:4244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
7719    rm -rf conftest*  
7720    eval "ac_cv_func_$ac_func=yes"    ;
7721  else    return 0;
7722    echo "configure: failed program was:" >&5  }
7723    cat conftest.$ac_ext >&5  _ACEOF
7724    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
7725    eval "ac_cv_func_$ac_func=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7726  fi    (eval $ac_link) 2>&5
7727  rm -f conftest*    ac_status=$?
7728  fi    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729      (exit $ac_status); } &&
7730             { ac_try='test -s conftest$ac_exeext'
7731      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732      (eval $ac_try) 2>&5
7733      ac_status=$?
7734      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735      (exit $ac_status); }; }; then
7736      eval "$as_ac_var=yes"
7737    else
7738      echo "$as_me: failed program was:" >&5
7739    sed 's/^/| /' conftest.$ac_ext >&5
7740    
7741    eval "$as_ac_var=no"
7742    fi
7743    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7744    fi
7745    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7746    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7747    if test `eval echo '${'$as_ac_var'}'` = yes; then
7748      cat >>confdefs.h <<_ACEOF
7749    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7750    _ACEOF
7751    
 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  
7752  fi  fi
7753  done  done
7754    
7755    
7756  for ac_func in getwd  for ac_func in getwd
7757  do  do
7758  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7759  echo "configure:4271: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
7760  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7761    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
7762  else    echo $ECHO_N "(cached) $ECHO_C" >&6
7763    cat > conftest.$ac_ext <<EOF  else
7764  #line 4276 "configure"    cat >conftest.$ac_ext <<_ACEOF
7765  #include "confdefs.h"  #line $LINENO "configure"
7766    /* confdefs.h.  */
7767    _ACEOF
7768    cat confdefs.h >>conftest.$ac_ext
7769    cat >>conftest.$ac_ext <<_ACEOF
7770    /* end confdefs.h.  */
7771  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7772      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
7773  #include <assert.h>  #include <assert.h>
7774  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7775    #ifdef __cplusplus
7776    extern "C"
7777    {
7778    #endif
7779  /* 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
7780      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7781  char $ac_func();  char $ac_func ();
   
 int main() {  
   
7782  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7783      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7784      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7785  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7786  choke me  choke me
7787  #else  #else
7788  $ac_func();  char (*f) () = $ac_func;
7789    #endif
7790    #ifdef __cplusplus
7791    }
7792  #endif  #endif
7793    
7794  ; return 0; }  int
7795  EOF  main ()
7796  if { (eval echo configure:4299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
7797    rm -rf conftest*  
7798    eval "ac_cv_func_$ac_func=yes"    ;
7799  else    return 0;
7800    echo "configure: failed program was:" >&5  }
7801    cat conftest.$ac_ext >&5  _ACEOF
7802    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
7803    eval "ac_cv_func_$ac_func=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7804  fi    (eval $ac_link) 2>&5
7805  rm -f conftest*    ac_status=$?
7806  fi    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807      (exit $ac_status); } &&
7808             { ac_try='test -s conftest$ac_exeext'
7809      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810      (eval $ac_try) 2>&5
7811      ac_status=$?
7812      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813      (exit $ac_status); }; }; then
7814      eval "$as_ac_var=yes"
7815    else
7816      echo "$as_me: failed program was:" >&5
7817    sed 's/^/| /' conftest.$ac_ext >&5
7818    
7819    eval "$as_ac_var=no"
7820    fi
7821    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7822    fi
7823    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7824    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7825    if test `eval echo '${'$as_ac_var'}'` = yes; then
7826      cat >>confdefs.h <<_ACEOF
7827    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7828    _ACEOF
7829    
 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  
7830  fi  fi
7831  done  done
7832    
7833  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for uname" >&5
7834  echo "configure:4324: checking for uname" >&5  echo $ECHO_N "checking for uname... $ECHO_C" >&6
7835  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if test "${ac_cv_func_uname+set}" = set; then
7836    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7837  else  else
7838    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7839  #line 4329 "configure"  #line $LINENO "configure"
7840  #include "confdefs.h"  /* confdefs.h.  */
7841    _ACEOF
7842    cat confdefs.h >>conftest.$ac_ext
7843    cat >>conftest.$ac_ext <<_ACEOF
7844    /* end confdefs.h.  */
7845  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7846      which can conflict with char uname(); below.  */      which can conflict with char uname (); below.  */
7847  #include <assert.h>  #include <assert.h>
7848  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7849    #ifdef __cplusplus
7850    extern "C"
7851    {
7852    #endif
7853  /* 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
7854      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7855  char uname();  char uname ();
   
 int main() {  
   
7856  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7857      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7858      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7859  #if defined (__stub_uname) || defined (__stub___uname)  #if defined (__stub_uname) || defined (__stub___uname)
7860  choke me  choke me
7861  #else  #else
7862  uname();  char (*f) () = uname;
7863    #endif
7864    #ifdef __cplusplus
7865    }
7866  #endif  #endif
7867    
7868  ; return 0; }  int
7869  EOF  main ()
7870  if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
   rm -rf conftest*  
   eval "ac_cv_func_uname=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func_uname=no"  
 fi  
 rm -f conftest*  
 fi  
7871    
7872  if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then    ;
7873    echo "$ac_t""yes" 1>&6    return 0;
7874    }
7875    _ACEOF
7876    rm -f conftest.$ac_objext conftest$ac_exeext
7877    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7878      (eval $ac_link) 2>&5
7879      ac_status=$?
7880      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881      (exit $ac_status); } &&
7882             { ac_try='test -s conftest$ac_exeext'
7883      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884      (eval $ac_try) 2>&5
7885      ac_status=$?
7886      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887      (exit $ac_status); }; }; then
7888      ac_cv_func_uname=yes
7889    else
7890      echo "$as_me: failed program was:" >&5
7891    sed 's/^/| /' conftest.$ac_ext >&5
7892    
7893    ac_cv_func_uname=no
7894    fi
7895    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7896    fi
7897    echo "$as_me:$LINENO: result: $ac_cv_func_uname" >&5
7898    echo "${ECHO_T}$ac_cv_func_uname" >&6
7899    if test $ac_cv_func_uname = yes; then
7900    :    :
7901  else  else
7902    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
7903  #define NO_UNAME 1  #define NO_UNAME 1
7904  EOF  _ACEOF
7905    
7906  fi  fi
7907    
7908  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday" >&5
7909  echo "configure:4376: checking for gettimeofday" >&5  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7910  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_gettimeofday+set}" = set; then
7911    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7912  else  else
7913    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7914  #line 4381 "configure"  #line $LINENO "configure"
7915  #include "confdefs.h"  /* confdefs.h.  */
7916    _ACEOF
7917    cat confdefs.h >>conftest.$ac_ext
7918    cat >>conftest.$ac_ext <<_ACEOF
7919    /* end confdefs.h.  */
7920  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7921      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.  */
7922  #include <assert.h>  #include <assert.h>
7923  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7924    #ifdef __cplusplus
7925    extern "C"
7926    {
7927    #endif
7928  /* 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
7929      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7930  char gettimeofday();  char gettimeofday ();
   
 int main() {  
   
7931  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7932      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7933      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7934  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7935  choke me  choke me
7936  #else  #else
7937  gettimeofday();  char (*f) () = gettimeofday;
7938    #endif
7939    #ifdef __cplusplus
7940    }
7941  #endif  #endif
7942    
7943  ; return 0; }  int
7944  EOF  main ()
7945  if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
   rm -rf conftest*  
   eval "ac_cv_func_gettimeofday=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func_gettimeofday=no"  
 fi  
 rm -f conftest*  
 fi  
7946    
7947  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    ;
7948    echo "$ac_t""yes" 1>&6    return 0;
7949    }
7950    _ACEOF
7951    rm -f conftest.$ac_objext conftest$ac_exeext
7952    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7953      (eval $ac_link) 2>&5
7954      ac_status=$?
7955      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956      (exit $ac_status); } &&
7957             { ac_try='test -s conftest$ac_exeext'
7958      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959      (eval $ac_try) 2>&5
7960      ac_status=$?
7961      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962      (exit $ac_status); }; }; then
7963      ac_cv_func_gettimeofday=yes
7964    else
7965      echo "$as_me: failed program was:" >&5
7966    sed 's/^/| /' conftest.$ac_ext >&5
7967    
7968    ac_cv_func_gettimeofday=no
7969    fi
7970    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7971    fi
7972    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7973    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7974    if test $ac_cv_func_gettimeofday = yes; then
7975    :    :
7976  else  else
7977    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
7978  #define NO_GETTOD 1  #define NO_GETTOD 1
7979  EOF  _ACEOF
7980    
7981  fi  fi
7982    
7983    
7984    
7985  for ac_hdr in sys/ioctl.h  
7986    for ac_header in sys/ioctl.h
7987  do  do
7988  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7989  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7990  echo "configure:4433: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7991  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7992    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7993  else    echo $ECHO_N "(cached) $ECHO_C" >&6
7994    cat > conftest.$ac_ext <<EOF  fi
7995  #line 4438 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7996  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7997  #include <$ac_hdr>  else
7998  EOF    # Is the header compilable?
7999  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
8000  { (eval echo configure:4443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8001  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
8002  if test -z "$ac_err"; then  #line $LINENO "configure"
8003    rm -rf conftest*  /* confdefs.h.  */
8004    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
8005  else  cat confdefs.h >>conftest.$ac_ext
8006    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
8007    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
8008    cat conftest.$ac_ext >&5  $ac_includes_default
8009    rm -rf conftest*  #include <$ac_header>
8010    eval "ac_cv_header_$ac_safe=no"  _ACEOF
8011  fi  rm -f conftest.$ac_objext
8012  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8013      (eval $ac_compile) 2>&5
8014      ac_status=$?
8015      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016      (exit $ac_status); } &&
8017             { ac_try='test -s conftest.$ac_objext'
8018      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019      (eval $ac_try) 2>&5
8020      ac_status=$?
8021      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022      (exit $ac_status); }; }; then
8023      ac_header_compiler=yes
8024    else
8025      echo "$as_me: failed program was:" >&5
8026    sed 's/^/| /' conftest.$ac_ext >&5
8027    
8028    ac_header_compiler=no
8029    fi
8030    rm -f conftest.$ac_objext conftest.$ac_ext
8031    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8032    echo "${ECHO_T}$ac_header_compiler" >&6
8033    
8034    # Is the header present?
8035    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8036    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8037    cat >conftest.$ac_ext <<_ACEOF
8038    #line $LINENO "configure"
8039    /* confdefs.h.  */
8040    _ACEOF
8041    cat confdefs.h >>conftest.$ac_ext
8042    cat >>conftest.$ac_ext <<_ACEOF
8043    /* end confdefs.h.  */
8044    #include <$ac_header>
8045    _ACEOF
8046    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8047      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8048      ac_status=$?
8049      grep -v '^ *+' conftest.er1 >conftest.err
8050      rm -f conftest.er1
8051      cat conftest.err >&5
8052      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053      (exit $ac_status); } >/dev/null; then
8054      if test -s conftest.err; then
8055        ac_cpp_err=$ac_c_preproc_warn_flag
8056      else
8057        ac_cpp_err=
8058      fi
8059    else
8060      ac_cpp_err=yes
8061  fi  fi
8062  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
8063    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
8064      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
8065    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
8066  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
8067  EOF  
8068      ac_header_preproc=no
8069    fi
8070    rm -f conftest.err conftest.$ac_ext
8071    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8072    echo "${ECHO_T}$ac_header_preproc" >&6
8073    
8074    # So?  What about this header?
8075    case $ac_header_compiler:$ac_header_preproc in
8076      yes:no )
8077        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8078    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8079        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8080    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8081        (
8082          cat <<\_ASBOX
8083    ## ------------------------------------ ##
8084    ## Report this to bug-autoconf@gnu.org. ##
8085    ## ------------------------------------ ##
8086    _ASBOX
8087        ) |
8088          sed "s/^/$as_me: WARNING:     /" >&2
8089        ;;
8090      no:yes )
8091        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8092    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8093        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8094    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8095        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8096    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8097        (
8098          cat <<\_ASBOX
8099    ## ------------------------------------ ##
8100    ## Report this to bug-autoconf@gnu.org. ##
8101    ## ------------------------------------ ##
8102    _ASBOX
8103        ) |
8104          sed "s/^/$as_me: WARNING:     /" >&2
8105        ;;
8106    esac
8107    echo "$as_me:$LINENO: checking for $ac_header" >&5
8108    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8109    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8110      echo $ECHO_N "(cached) $ECHO_C" >&6
8111  else  else
8112    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
8113    fi
8114    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8115    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8116    
8117    fi
8118    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8119      cat >>confdefs.h <<_ACEOF
8120    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8121    _ACEOF
8122    
8123  fi  fi
8124    
8125  done  done
8126    
8127    
8128  # OpenBSD has elf_abi.h instead of elf.h  # OpenBSD has elf_abi.h instead of elf.h
8129  for ac_hdr in elf.h elf_abi.h  
8130    
8131    for ac_header in elf.h elf_abi.h
8132  do  do
8133  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8134  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8135  echo "configure:4475: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8136  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8137    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8138  else    echo $ECHO_N "(cached) $ECHO_C" >&6
8139    cat > conftest.$ac_ext <<EOF  fi
8140  #line 4480 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8141  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8142  #include <$ac_hdr>  else
8143  EOF    # Is the header compilable?
8144  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
8145  { (eval echo configure:4485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8146  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
8147  if test -z "$ac_err"; then  #line $LINENO "configure"
8148    rm -rf conftest*  /* confdefs.h.  */
8149    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
8150  else  cat confdefs.h >>conftest.$ac_ext
8151    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
8152    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
8153    cat conftest.$ac_ext >&5  $ac_includes_default
8154    rm -rf conftest*  #include <$ac_header>
8155    eval "ac_cv_header_$ac_safe=no"  _ACEOF
8156  fi  rm -f conftest.$ac_objext
8157  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8158      (eval $ac_compile) 2>&5
8159      ac_status=$?
8160      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161      (exit $ac_status); } &&
8162             { ac_try='test -s conftest.$ac_objext'
8163      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164      (eval $ac_try) 2>&5
8165      ac_status=$?
8166      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167      (exit $ac_status); }; }; then
8168      ac_header_compiler=yes
8169    else
8170      echo "$as_me: failed program was:" >&5
8171    sed 's/^/| /' conftest.$ac_ext >&5
8172    
8173    ac_header_compiler=no
8174    fi
8175    rm -f conftest.$ac_objext conftest.$ac_ext
8176    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8177    echo "${ECHO_T}$ac_header_compiler" >&6
8178    
8179    # Is the header present?
8180    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8181    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8182    cat >conftest.$ac_ext <<_ACEOF
8183    #line $LINENO "configure"
8184    /* confdefs.h.  */
8185    _ACEOF
8186    cat confdefs.h >>conftest.$ac_ext
8187    cat >>conftest.$ac_ext <<_ACEOF
8188    /* end confdefs.h.  */
8189    #include <$ac_header>
8190    _ACEOF
8191    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8192      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8193      ac_status=$?
8194      grep -v '^ *+' conftest.er1 >conftest.err
8195      rm -f conftest.er1
8196      cat conftest.err >&5
8197      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198      (exit $ac_status); } >/dev/null; then
8199      if test -s conftest.err; then
8200        ac_cpp_err=$ac_c_preproc_warn_flag
8201      else
8202        ac_cpp_err=
8203      fi
8204    else
8205      ac_cpp_err=yes
8206  fi  fi
8207  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
8208    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
8209      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
8210    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
8211  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
8212  EOF  
8213      ac_header_preproc=no
8214    fi
8215    rm -f conftest.err conftest.$ac_ext
8216    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8217    echo "${ECHO_T}$ac_header_preproc" >&6
8218    
8219    # So?  What about this header?
8220    case $ac_header_compiler:$ac_header_preproc in
8221      yes:no )
8222        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8223    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8224        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8225    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8226        (
8227          cat <<\_ASBOX
8228    ## ------------------------------------ ##
8229    ## Report this to bug-autoconf@gnu.org. ##
8230    ## ------------------------------------ ##
8231    _ASBOX
8232        ) |
8233          sed "s/^/$as_me: WARNING:     /" >&2
8234        ;;
8235      no:yes )
8236        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8237    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8238        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8239    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8240        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8241    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8242        (
8243          cat <<\_ASBOX
8244    ## ------------------------------------ ##
8245    ## Report this to bug-autoconf@gnu.org. ##
8246    ## ------------------------------------ ##
8247    _ASBOX
8248        ) |
8249          sed "s/^/$as_me: WARNING:     /" >&2
8250        ;;
8251    esac
8252    echo "$as_me:$LINENO: checking for $ac_header" >&5
8253    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8254    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8255      echo $ECHO_N "(cached) $ECHO_C" >&6
8256  else  else
8257    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
8258    fi
8259    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8260    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8261    
8262  fi  fi
8263    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8264      cat >>confdefs.h <<_ACEOF
8265    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8266    _ACEOF
8267    
8268    fi
8269    
8270  done  done
8271    
8272    
# Line 4520  done Line 8282  done
8282  #          declare it.  #          declare it.
8283  #--------------------------------------------------------------------  #--------------------------------------------------------------------
8284    
8285  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for BSDgettimeofday" >&5
8286  echo "configure:4525: checking for BSDgettimeofday" >&5  echo $ECHO_N "checking for BSDgettimeofday... $ECHO_C" >&6
8287  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_BSDgettimeofday+set}" = set; then
8288    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8289  else  else
8290    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8291  #line 4530 "configure"  #line $LINENO "configure"
8292  #include "confdefs.h"  /* confdefs.h.  */
8293    _ACEOF
8294    cat confdefs.h >>conftest.$ac_ext
8295    cat >>conftest.$ac_ext <<_ACEOF
8296    /* end confdefs.h.  */
8297  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8298      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday (); below.  */
8299  #include <assert.h>  #include <assert.h>
8300  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8301    #ifdef __cplusplus
8302    extern "C"
8303    {
8304    #endif
8305  /* 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
8306      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8307  char BSDgettimeofday();  char BSDgettimeofday ();
   
 int main() {  
   
8308  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8309      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8310      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8311  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
8312  choke me  choke me
8313  #else  #else
8314  BSDgettimeofday();  char (*f) () = BSDgettimeofday;
8315    #endif
8316    #ifdef __cplusplus
8317    }
8318  #endif  #endif
8319    
8320  ; return 0; }  int
8321  EOF  main ()
8322  if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
   rm -rf conftest*  
   eval "ac_cv_func_BSDgettimeofday=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func_BSDgettimeofday=no"  
 fi  
 rm -f conftest*  
 fi  
8323    
8324  if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then    ;
8325    echo "$ac_t""yes" 1>&6    return 0;
8326    cat >> confdefs.h <<\EOF  }
8327    _ACEOF
8328    rm -f conftest.$ac_objext conftest$ac_exeext
8329    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8330      (eval $ac_link) 2>&5
8331      ac_status=$?
8332      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333      (exit $ac_status); } &&
8334             { ac_try='test -s conftest$ac_exeext'
8335      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336      (eval $ac_try) 2>&5
8337      ac_status=$?
8338      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339      (exit $ac_status); }; }; then
8340      ac_cv_func_BSDgettimeofday=yes
8341    else
8342      echo "$as_me: failed program was:" >&5
8343    sed 's/^/| /' conftest.$ac_ext >&5
8344    
8345    ac_cv_func_BSDgettimeofday=no
8346    fi
8347    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8348    fi
8349    echo "$as_me:$LINENO: result: $ac_cv_func_BSDgettimeofday" >&5
8350    echo "${ECHO_T}$ac_cv_func_BSDgettimeofday" >&6
8351    if test $ac_cv_func_BSDgettimeofday = yes; then
8352      cat >>confdefs.h <<\_ACEOF
8353  #define HAVE_BSDGETTIMEOFDAY 1  #define HAVE_BSDGETTIMEOFDAY 1
8354  EOF  _ACEOF
8355    
8356  else  else
8357    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for gettimeofday" >&5
8358  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
8359  echo "configure:4574: checking for gettimeofday" >&5  if test "${ac_cv_func_gettimeofday+set}" = set; then
8360  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
8361    echo $ac_n "(cached) $ac_c" 1>&6  else
8362  else    cat >conftest.$ac_ext <<_ACEOF
8363    cat > conftest.$ac_ext <<EOF  #line $LINENO "configure"
8364  #line 4579 "configure"  /* confdefs.h.  */
8365  #include "confdefs.h"  _ACEOF
8366    cat confdefs.h >>conftest.$ac_ext
8367    cat >>conftest.$ac_ext <<_ACEOF
8368    /* end confdefs.h.  */
8369  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8370      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.  */
8371  #include <assert.h>  #include <assert.h>
8372  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8373    #ifdef __cplusplus
8374    extern "C"
8375    {
8376    #endif
8377  /* 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
8378      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8379  char gettimeofday();  char gettimeofday ();
   
 int main() {  
   
8380  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8381      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8382      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8383  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
8384  choke me  choke me
8385  #else  #else
8386  gettimeofday();  char (*f) () = gettimeofday;
8387    #endif
8388    #ifdef __cplusplus
8389    }
8390  #endif  #endif
8391    
8392  ; return 0; }  int
8393  EOF  main ()
8394  if { (eval echo configure:4602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
   rm -rf conftest*  
   eval "ac_cv_func_gettimeofday=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func_gettimeofday=no"  
 fi  
 rm -f conftest*  
 fi  
8395    
8396  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    ;
8397    echo "$ac_t""yes" 1>&6    return 0;
8398    }
8399    _ACEOF
8400    rm -f conftest.$ac_objext conftest$ac_exeext
8401    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8402      (eval $ac_link) 2>&5
8403      ac_status=$?
8404      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405      (exit $ac_status); } &&
8406             { ac_try='test -s conftest$ac_exeext'
8407      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408      (eval $ac_try) 2>&5
8409      ac_status=$?
8410      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411      (exit $ac_status); }; }; then
8412      ac_cv_func_gettimeofday=yes
8413    else
8414      echo "$as_me: failed program was:" >&5
8415    sed 's/^/| /' conftest.$ac_ext >&5
8416    
8417    ac_cv_func_gettimeofday=no
8418    fi
8419    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8420    fi
8421    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
8422    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
8423    if test $ac_cv_func_gettimeofday = yes; then
8424    :    :
8425  else  else
8426    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
8427  #define NO_GETTOD 1  #define NO_GETTOD 1
8428  EOF  _ACEOF
8429    
8430  fi  fi
8431    
8432  fi  fi
8433    
8434    
8435  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday declaration" >&5
8436  echo "configure:4629: checking for gettimeofday declaration" >&5  echo $ECHO_N "checking for gettimeofday declaration... $ECHO_C" >&6
8437    
8438  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8439  #line 4632 "configure"  #line $LINENO "configure"
8440  #include "confdefs.h"  /* confdefs.h.  */
8441    _ACEOF
8442    cat confdefs.h >>conftest.$ac_ext
8443    cat >>conftest.$ac_ext <<_ACEOF
8444    /* end confdefs.h.  */
8445  #include <sys/time.h>  #include <sys/time.h>
8446  EOF  
8447    _ACEOF
8448  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8449    egrep "gettimeofday" >/dev/null 2>&1; then    $EGREP "gettimeofday" >/dev/null 2>&1; then
8450    rm -rf conftest*    echo "$as_me:$LINENO: result: present" >&5
8451    echo "$ac_t""present" 1>&6  echo "${ECHO_T}present" >&6
8452  else  else
8453    rm -rf conftest*    echo "$as_me:$LINENO: result: missing" >&5
8454    echo "$ac_t""missing" 1>&6  echo "${ECHO_T}missing" >&6
8455                   cat >> confdefs.h <<\EOF                   cat >>confdefs.h <<\_ACEOF
8456  #define GETTOD_NOT_DECLARED 1  #define GETTOD_NOT_DECLARED 1
8457  EOF  _ACEOF
8458    
8459  fi  fi
8460  rm -f conftest*  rm -f conftest*
8461    
8462    
8463    
8464  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sin in -lm" >&5
8465  echo "configure:4653: checking for sin in -lm" >&5  echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8466  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_m_sin+set}" = set; then
8467  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  
8468  else  else
8469    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
8470  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
8471  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8472  #line 4661 "configure"  #line $LINENO "configure"
8473  #include "confdefs.h"  /* confdefs.h.  */
8474    _ACEOF
8475    cat confdefs.h >>conftest.$ac_ext
8476    cat >>conftest.$ac_ext <<_ACEOF
8477    /* end confdefs.h.  */
8478    
8479  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8480    #ifdef __cplusplus
8481    extern "C"
8482    #endif
8483  /* 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
8484      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8485  char sin();  char sin ();
8486    int
8487  int main() {  main ()
8488  sin()  {
8489  ; return 0; }  sin ();
8490  EOF    ;
8491  if { (eval echo configure:4672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
8492    rm -rf conftest*  }
8493    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
8494  else  rm -f conftest.$ac_objext conftest$ac_exeext
8495    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
8497    rm -rf conftest*    ac_status=$?
8498    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499  fi    (exit $ac_status); } &&
8500  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
8501  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502      (eval $ac_try) 2>&5
8503  fi    ac_status=$?
8504  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8506      ac_cv_lib_m_sin=yes
8507    else
8508      echo "$as_me: failed program was:" >&5
8509    sed 's/^/| /' conftest.$ac_ext >&5
8510    
8511    ac_cv_lib_m_sin=no
8512    fi
8513    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8514    LIBS=$ac_check_lib_save_LIBS
8515    fi
8516    echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8517    echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8518    if test $ac_cv_lib_m_sin = yes; then
8519    LIBS="${LIBS} -lm"    LIBS="${LIBS} -lm"
8520  else  else
8521    echo "$ac_t""no" 1>&6    true
 true  
8522  fi  fi
8523    
8524  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lmingwex" >&5
8525  echo "configure:4694: checking for main in -lmingwex" >&5  echo $ECHO_N "checking for main in -lmingwex... $ECHO_C" >&6
8526  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_mingwex_main+set}" = set; then
8527  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  
8528  else  else
8529    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
8530  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
8531  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8532  #line 4702 "configure"  #line $LINENO "configure"
8533  #include "confdefs.h"  /* confdefs.h.  */
8534    _ACEOF
8535    cat confdefs.h >>conftest.$ac_ext
8536    cat >>conftest.$ac_ext <<_ACEOF
8537    /* end confdefs.h.  */
8538    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:4709: \"$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"  
8539    
8540  fi  int
8541  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
8542    echo "$ac_t""yes" 1>&6  {
8543    main ();
8544      ;
8545      return 0;
8546    }
8547    _ACEOF
8548    rm -f conftest.$ac_objext conftest$ac_exeext
8549    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550      (eval $ac_link) 2>&5
8551      ac_status=$?
8552      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553      (exit $ac_status); } &&
8554             { ac_try='test -s conftest$ac_exeext'
8555      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556      (eval $ac_try) 2>&5
8557      ac_status=$?
8558      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559      (exit $ac_status); }; }; then
8560      ac_cv_lib_mingwex_main=yes
8561    else
8562      echo "$as_me: failed program was:" >&5
8563    sed 's/^/| /' conftest.$ac_ext >&5
8564    
8565    ac_cv_lib_mingwex_main=no
8566    fi
8567    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8568    LIBS=$ac_check_lib_save_LIBS
8569    fi
8570    echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_main" >&5
8571    echo "${ECHO_T}$ac_cv_lib_mingwex_main" >&6
8572    if test $ac_cv_lib_mingwex_main = yes; then
8573    LIBS="${LIBS} -lmingwex"    LIBS="${LIBS} -lmingwex"
8574  else  else
8575    echo "$ac_t""no" 1>&6    true
 true  
8576  fi  fi
8577    
8578    
8579  EXTRA_LOBJS=  EXTRA_LOBJS=
8580  if test "$try_japi" = "yes" ; then  if test "$try_japi" = "yes" ; then
8581     for ac_hdr in japi.h  
8582    for ac_header in japi.h
8583  do  do
8584  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8585  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8586  echo "configure:4737: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8587  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8588    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8589  else    echo $ECHO_N "(cached) $ECHO_C" >&6
8590    cat > conftest.$ac_ext <<EOF  fi
8591  #line 4742 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8592  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8593  #include <$ac_hdr>  else
8594  EOF    # Is the header compilable?
8595  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
8596  { (eval echo configure:4747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8597  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
8598  if test -z "$ac_err"; then  #line $LINENO "configure"
8599    rm -rf conftest*  /* confdefs.h.  */
8600    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
8601  else  cat confdefs.h >>conftest.$ac_ext
8602    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
8603    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
8604    cat conftest.$ac_ext >&5  $ac_includes_default
8605    rm -rf conftest*  #include <$ac_header>
8606    eval "ac_cv_header_$ac_safe=no"  _ACEOF
8607  fi  rm -f conftest.$ac_objext
8608  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8609      (eval $ac_compile) 2>&5
8610      ac_status=$?
8611      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612      (exit $ac_status); } &&
8613             { ac_try='test -s conftest.$ac_objext'
8614      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615      (eval $ac_try) 2>&5
8616      ac_status=$?
8617      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618      (exit $ac_status); }; }; then
8619      ac_header_compiler=yes
8620    else
8621      echo "$as_me: failed program was:" >&5
8622    sed 's/^/| /' conftest.$ac_ext >&5
8623    
8624    ac_header_compiler=no
8625    fi
8626    rm -f conftest.$ac_objext conftest.$ac_ext
8627    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8628    echo "${ECHO_T}$ac_header_compiler" >&6
8629    
8630    # Is the header present?
8631    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8632    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8633    cat >conftest.$ac_ext <<_ACEOF
8634    #line $LINENO "configure"
8635    /* confdefs.h.  */
8636    _ACEOF
8637    cat confdefs.h >>conftest.$ac_ext
8638    cat >>conftest.$ac_ext <<_ACEOF
8639    /* end confdefs.h.  */
8640    #include <$ac_header>
8641    _ACEOF
8642    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8643      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8644      ac_status=$?
8645      grep -v '^ *+' conftest.er1 >conftest.err
8646      rm -f conftest.er1
8647      cat conftest.err >&5
8648      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649      (exit $ac_status); } >/dev/null; then
8650      if test -s conftest.err; then
8651        ac_cpp_err=$ac_c_preproc_warn_flag
8652      else
8653        ac_cpp_err=
8654      fi
8655    else
8656      ac_cpp_err=yes
8657  fi  fi
8658  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
8659    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
8660      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
8661    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
8662  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
8663  EOF  
8664   cat >> confdefs.h <<\EOF    ac_header_preproc=no
8665    fi
8666    rm -f conftest.err conftest.$ac_ext
8667    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8668    echo "${ECHO_T}$ac_header_preproc" >&6
8669    
8670    # So?  What about this header?
8671    case $ac_header_compiler:$ac_header_preproc in
8672      yes:no )
8673        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8674    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8675        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8676    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8677        (
8678          cat <<\_ASBOX
8679    ## ------------------------------------ ##
8680    ## Report this to bug-autoconf@gnu.org. ##
8681    ## ------------------------------------ ##
8682    _ASBOX
8683        ) |
8684          sed "s/^/$as_me: WARNING:     /" >&2
8685        ;;
8686      no:yes )
8687        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8688    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8689        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8690    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8691        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8692    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8693        (
8694          cat <<\_ASBOX
8695    ## ------------------------------------ ##
8696    ## Report this to bug-autoconf@gnu.org. ##
8697    ## ------------------------------------ ##
8698    _ASBOX
8699        ) |
8700          sed "s/^/$as_me: WARNING:     /" >&2
8701        ;;
8702    esac
8703    echo "$as_me:$LINENO: checking for $ac_header" >&5
8704    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8705    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8706      echo $ECHO_N "(cached) $ECHO_C" >&6
8707    else
8708      eval "$as_ac_Header=$ac_header_preproc"
8709    fi
8710    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8711    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8712    
8713    fi
8714    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8715      cat >>confdefs.h <<_ACEOF
8716    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8717    _ACEOF
8718     cat >>confdefs.h <<\_ACEOF
8719  #define HAVE_JAPI_H 1  #define HAVE_JAPI_H 1
8720  EOF  _ACEOF
8721    
8722                                   EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"                                   EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"
8723                                   LIBS="${LIBS} -ljapi -lwsock32"                                   LIBS="${LIBS} -ljapi -lwsock32"
 else  
   echo "$ac_t""no" 1>&6  
8724  fi  fi
8725    
8726  done  done
8727    
8728  fi  fi
8729  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
8730   if test "$try_xdr" = "yes" ; then   if test "$try_xdr" = "yes" ; then
8731     for ac_hdr in rpc/rpc.h  
8732    for ac_header in rpc/rpc.h
8733  do  do
8734  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8735  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736  echo "configure:4785: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8737  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8738    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8739  else    echo $ECHO_N "(cached) $ECHO_C" >&6
8740    cat > conftest.$ac_ext <<EOF  fi
8741  #line 4790 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8742  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8743  #include <$ac_hdr>  else
8744  EOF    # Is the header compilable?
8745  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
8746  { (eval echo configure:4795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8747  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
8748  if test -z "$ac_err"; then  #line $LINENO "configure"
8749    rm -rf conftest*  /* confdefs.h.  */
8750    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
8751  else  cat confdefs.h >>conftest.$ac_ext
8752    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
8753    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
8754    cat conftest.$ac_ext >&5  $ac_includes_default
8755    rm -rf conftest*  #include <$ac_header>
8756    eval "ac_cv_header_$ac_safe=no"  _ACEOF
8757  fi  rm -f conftest.$ac_objext
8758  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8759      (eval $ac_compile) 2>&5
8760      ac_status=$?
8761      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762      (exit $ac_status); } &&
8763             { ac_try='test -s conftest.$ac_objext'
8764      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765      (eval $ac_try) 2>&5
8766      ac_status=$?
8767      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768      (exit $ac_status); }; }; then
8769      ac_header_compiler=yes
8770    else
8771      echo "$as_me: failed program was:" >&5
8772    sed 's/^/| /' conftest.$ac_ext >&5
8773    
8774    ac_header_compiler=no
8775    fi
8776    rm -f conftest.$ac_objext conftest.$ac_ext
8777    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8778    echo "${ECHO_T}$ac_header_compiler" >&6
8779    
8780    # Is the header present?
8781    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8782    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8783    cat >conftest.$ac_ext <<_ACEOF
8784    #line $LINENO "configure"
8785    /* confdefs.h.  */
8786    _ACEOF
8787    cat confdefs.h >>conftest.$ac_ext
8788    cat >>conftest.$ac_ext <<_ACEOF
8789    /* end confdefs.h.  */
8790    #include <$ac_header>
8791    _ACEOF
8792    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8793      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8794      ac_status=$?
8795      grep -v '^ *+' conftest.er1 >conftest.err
8796      rm -f conftest.er1
8797      cat conftest.err >&5
8798      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799      (exit $ac_status); } >/dev/null; then
8800      if test -s conftest.err; then
8801        ac_cpp_err=$ac_c_preproc_warn_flag
8802      else
8803        ac_cpp_err=
8804      fi
8805    else
8806      ac_cpp_err=yes
8807  fi  fi
8808  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
8809    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
8810      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
8811    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
8812  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
8813  EOF  
8814   cat >> confdefs.h <<\EOF    ac_header_preproc=no
8815    fi
8816    rm -f conftest.err conftest.$ac_ext
8817    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8818    echo "${ECHO_T}$ac_header_preproc" >&6
8819    
8820    # So?  What about this header?
8821    case $ac_header_compiler:$ac_header_preproc in
8822      yes:no )
8823        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8824    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8825        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8826    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8827        (
8828          cat <<\_ASBOX
8829    ## ------------------------------------ ##
8830    ## Report this to bug-autoconf@gnu.org. ##
8831    ## ------------------------------------ ##
8832    _ASBOX
8833        ) |
8834          sed "s/^/$as_me: WARNING:     /" >&2
8835        ;;
8836      no:yes )
8837        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8838    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8839        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8840    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8841        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8842    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8843        (
8844          cat <<\_ASBOX
8845    ## ------------------------------------ ##
8846    ## Report this to bug-autoconf@gnu.org. ##
8847    ## ------------------------------------ ##
8848    _ASBOX
8849        ) |
8850          sed "s/^/$as_me: WARNING:     /" >&2
8851        ;;
8852    esac
8853    echo "$as_me:$LINENO: checking for $ac_header" >&5
8854    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8855    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8856      echo $ECHO_N "(cached) $ECHO_C" >&6
8857    else
8858      eval "$as_ac_Header=$ac_header_preproc"
8859    fi
8860    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8861    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8862    
8863    fi
8864    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8865      cat >>confdefs.h <<_ACEOF
8866    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8867    _ACEOF
8868     cat >>confdefs.h <<\_ACEOF
8869  #define HAVE_XDR 1  #define HAVE_XDR 1
8870  EOF  _ACEOF
8871    
8872                                   LIBS="${LIBS} -loncrpc"                                   LIBS="${LIBS} -loncrpc"
 else  
   echo "$ac_t""no" 1>&6  
8873  fi  fi
8874    
8875  done  done
8876    
8877   fi   fi
8878  else  else
8879   if test "$try_xdr" = "yes" ; then   if test "$try_xdr" = "yes" ; then
8880     for ac_hdr in rpc/rpc.h  
8881    for ac_header in rpc/rpc.h
8882  do  do
8883  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8884  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8885  echo "configure:4832: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8886  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8887    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8888  else    echo $ECHO_N "(cached) $ECHO_C" >&6
8889    cat > conftest.$ac_ext <<EOF  fi
8890  #line 4837 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8891  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8892  #include <$ac_hdr>  else
8893  EOF    # Is the header compilable?
8894  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
8895  { (eval echo configure:4842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8896  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
8897  if test -z "$ac_err"; then  #line $LINENO "configure"
8898    rm -rf conftest*  /* confdefs.h.  */
8899    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
8900  else  cat confdefs.h >>conftest.$ac_ext
8901    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
8902    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
8903    cat conftest.$ac_ext >&5  $ac_includes_default
8904    rm -rf conftest*  #include <$ac_header>
8905    eval "ac_cv_header_$ac_safe=no"  _ACEOF
8906  fi  rm -f conftest.$ac_objext
8907  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8908      (eval $ac_compile) 2>&5
8909      ac_status=$?
8910      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911      (exit $ac_status); } &&
8912             { ac_try='test -s conftest.$ac_objext'
8913      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914      (eval $ac_try) 2>&5
8915      ac_status=$?
8916      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917      (exit $ac_status); }; }; then
8918      ac_header_compiler=yes
8919    else
8920      echo "$as_me: failed program was:" >&5
8921    sed 's/^/| /' conftest.$ac_ext >&5
8922    
8923    ac_header_compiler=no
8924    fi
8925    rm -f conftest.$ac_objext conftest.$ac_ext
8926    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8927    echo "${ECHO_T}$ac_header_compiler" >&6
8928    
8929    # Is the header present?
8930    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8931    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8932    cat >conftest.$ac_ext <<_ACEOF
8933    #line $LINENO "configure"
8934    /* confdefs.h.  */
8935    _ACEOF
8936    cat confdefs.h >>conftest.$ac_ext
8937    cat >>conftest.$ac_ext <<_ACEOF
8938    /* end confdefs.h.  */
8939    #include <$ac_header>
8940    _ACEOF
8941    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8942      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8943      ac_status=$?
8944      grep -v '^ *+' conftest.er1 >conftest.err
8945      rm -f conftest.er1
8946      cat conftest.err >&5
8947      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948      (exit $ac_status); } >/dev/null; then
8949      if test -s conftest.err; then
8950        ac_cpp_err=$ac_c_preproc_warn_flag
8951      else
8952        ac_cpp_err=
8953      fi
8954    else
8955      ac_cpp_err=yes
8956  fi  fi
8957  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
8958    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
8959      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
8960    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
8961  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
8962  EOF  
8963   cat >> confdefs.h <<\EOF    ac_header_preproc=no
8964    fi
8965    rm -f conftest.err conftest.$ac_ext
8966    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8967    echo "${ECHO_T}$ac_header_preproc" >&6
8968    
8969    # So?  What about this header?
8970    case $ac_header_compiler:$ac_header_preproc in
8971      yes:no )
8972        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8973    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8974        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8975    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8976        (
8977          cat <<\_ASBOX
8978    ## ------------------------------------ ##
8979    ## Report this to bug-autoconf@gnu.org. ##
8980    ## ------------------------------------ ##
8981    _ASBOX
8982        ) |
8983          sed "s/^/$as_me: WARNING:     /" >&2
8984        ;;
8985      no:yes )
8986        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8987    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8988        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8989    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8990        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8991    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8992        (
8993          cat <<\_ASBOX
8994    ## ------------------------------------ ##
8995    ## Report this to bug-autoconf@gnu.org. ##
8996    ## ------------------------------------ ##
8997    _ASBOX
8998        ) |
8999          sed "s/^/$as_me: WARNING:     /" >&2
9000        ;;
9001    esac
9002    echo "$as_me:$LINENO: checking for $ac_header" >&5
9003    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9004    if eval "test \"\${$as_ac_Header+set}\" = set"; then
9005      echo $ECHO_N "(cached) $ECHO_C" >&6
9006    else
9007      eval "$as_ac_Header=$ac_header_preproc"
9008    fi
9009    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9010    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9011    
9012    fi
9013    if test `eval echo '${'$as_ac_Header'}'` = yes; then
9014      cat >>confdefs.h <<_ACEOF
9015    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9016    _ACEOF
9017     cat >>confdefs.h <<\_ACEOF
9018  #define HAVE_XDR 1  #define HAVE_XDR 1
9019  EOF  _ACEOF
9020    
9021                                   LIBS="${LIBS} -lrpc"                                   LIBS="${LIBS} -lrpc"
 else  
   echo "$ac_t""no" 1>&6  
9022  fi  fi
9023    
9024  done  done
9025    
9026   fi   fi
9027  fi  fi
9028    
9029  # Should really find a way to check for prototypes, but this  # Should really find a way to check for prototypes, but this
9030  # basically works for now.  CM  # basically works for now.  CM
9031  #  #
9032  for ac_hdr in math.h  
9033    for ac_header in math.h
9034  do  do
9035  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9036  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9037  echo "configure:4882: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
9038  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9039    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9040  else    echo $ECHO_N "(cached) $ECHO_C" >&6
9041    cat > conftest.$ac_ext <<EOF  fi
9042  #line 4887 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9043  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9044  #include <$ac_hdr>  else
9045  EOF    # Is the header compilable?
9046  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
9047  { (eval echo configure:4892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9048  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
9049  if test -z "$ac_err"; then  #line $LINENO "configure"
9050    rm -rf conftest*  /* confdefs.h.  */
9051    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
9052  else  cat confdefs.h >>conftest.$ac_ext
9053    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
9054    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
9055    cat conftest.$ac_ext >&5  $ac_includes_default
9056    rm -rf conftest*  #include <$ac_header>
9057    eval "ac_cv_header_$ac_safe=no"  _ACEOF
9058  fi  rm -f conftest.$ac_objext
9059  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9060      (eval $ac_compile) 2>&5
9061      ac_status=$?
9062      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063      (exit $ac_status); } &&
9064             { ac_try='test -s conftest.$ac_objext'
9065      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066      (eval $ac_try) 2>&5
9067      ac_status=$?
9068      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069      (exit $ac_status); }; }; then
9070      ac_header_compiler=yes
9071    else
9072      echo "$as_me: failed program was:" >&5
9073    sed 's/^/| /' conftest.$ac_ext >&5
9074    
9075    ac_header_compiler=no
9076    fi
9077    rm -f conftest.$ac_objext conftest.$ac_ext
9078    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9079    echo "${ECHO_T}$ac_header_compiler" >&6
9080    
9081    # Is the header present?
9082    echo "$as_me:$LINENO: checking $ac_header presence" >&5
9083    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9084    cat >conftest.$ac_ext <<_ACEOF
9085    #line $LINENO "configure"
9086    /* confdefs.h.  */
9087    _ACEOF
9088    cat confdefs.h >>conftest.$ac_ext
9089    cat >>conftest.$ac_ext <<_ACEOF
9090    /* end confdefs.h.  */
9091    #include <$ac_header>
9092    _ACEOF
9093    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9094      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9095      ac_status=$?
9096      grep -v '^ *+' conftest.er1 >conftest.err
9097      rm -f conftest.er1
9098      cat conftest.err >&5
9099      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100      (exit $ac_status); } >/dev/null; then
9101      if test -s conftest.err; then
9102        ac_cpp_err=$ac_c_preproc_warn_flag
9103      else
9104        ac_cpp_err=
9105      fi
9106    else
9107      ac_cpp_err=yes
9108  fi  fi
9109  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
9110    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
9111      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
9112    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
9113  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
9114  EOF  
9115   cat >> confdefs.h <<\EOF    ac_header_preproc=no
9116    fi
9117    rm -f conftest.err conftest.$ac_ext
9118    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9119    echo "${ECHO_T}$ac_header_preproc" >&6
9120    
9121    # So?  What about this header?
9122    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        (
9129          cat <<\_ASBOX
9130    ## ------------------------------------ ##
9131    ## Report this to bug-autoconf@gnu.org. ##
9132    ## ------------------------------------ ##
9133    _ASBOX
9134        ) |
9135          sed "s/^/$as_me: WARNING:     /" >&2
9136        ;;
9137      no:yes )
9138        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9139    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9140        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9141    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9142        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9143    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9144        (
9145          cat <<\_ASBOX
9146    ## ------------------------------------ ##
9147    ## Report this to bug-autoconf@gnu.org. ##
9148    ## ------------------------------------ ##
9149    _ASBOX
9150        ) |
9151          sed "s/^/$as_me: WARNING:     /" >&2
9152        ;;
9153    esac
9154    echo "$as_me:$LINENO: checking for $ac_header" >&5
9155    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9156    if eval "test \"\${$as_ac_Header+set}\" = set"; then
9157      echo $ECHO_N "(cached) $ECHO_C" >&6
9158    else
9159      eval "$as_ac_Header=$ac_header_preproc"
9160    fi
9161    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9162    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9163    
9164    fi
9165    if test `eval echo '${'$as_ac_Header'}'` = yes; then
9166      cat >>confdefs.h <<_ACEOF
9167    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9168    _ACEOF
9169     cat >>confdefs.h <<\_ACEOF
9170  #define HAVE_MATH_H 1  #define HAVE_MATH_H 1
9171  EOF  _ACEOF
9172    
 else  
   echo "$ac_t""no" 1>&6  
9173  fi  fi
9174    
9175  done  done
9176    
9177    
9178  #  #
9179  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM
9180  #  #
9181  for ac_hdr in values.h  
9182    for ac_header in values.h
9183  do  do
9184  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9185  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9186  echo "configure:4929: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
9187  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9188    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9189  else    echo $ECHO_N "(cached) $ECHO_C" >&6
9190    cat > conftest.$ac_ext <<EOF  fi
9191  #line 4934 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9192  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9193  #include <$ac_hdr>  else
9194  EOF    # Is the header compilable?
9195  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
9196  { (eval echo configure:4939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9197  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
9198  if test -z "$ac_err"; then  #line $LINENO "configure"
9199    rm -rf conftest*  /* confdefs.h.  */
9200    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
9201  else  cat confdefs.h >>conftest.$ac_ext
9202    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
9203    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
9204    cat conftest.$ac_ext >&5  $ac_includes_default
9205    rm -rf conftest*  #include <$ac_header>
9206    eval "ac_cv_header_$ac_safe=no"  _ACEOF
9207  fi  rm -f conftest.$ac_objext
9208  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9209      (eval $ac_compile) 2>&5
9210      ac_status=$?
9211      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212      (exit $ac_status); } &&
9213             { ac_try='test -s conftest.$ac_objext'
9214      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215      (eval $ac_try) 2>&5
9216      ac_status=$?
9217      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218      (exit $ac_status); }; }; then
9219      ac_header_compiler=yes
9220    else
9221      echo "$as_me: failed program was:" >&5
9222    sed 's/^/| /' conftest.$ac_ext >&5
9223    
9224    ac_header_compiler=no
9225    fi
9226    rm -f conftest.$ac_objext conftest.$ac_ext
9227    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9228    echo "${ECHO_T}$ac_header_compiler" >&6
9229    
9230    # Is the header present?
9231    echo "$as_me:$LINENO: checking $ac_header presence" >&5
9232    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9233    cat >conftest.$ac_ext <<_ACEOF
9234    #line $LINENO "configure"
9235    /* confdefs.h.  */
9236    _ACEOF
9237    cat confdefs.h >>conftest.$ac_ext
9238    cat >>conftest.$ac_ext <<_ACEOF
9239    /* end confdefs.h.  */
9240    #include <$ac_header>
9241    _ACEOF
9242    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9243      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9244      ac_status=$?
9245      grep -v '^ *+' conftest.er1 >conftest.err
9246      rm -f conftest.er1
9247      cat conftest.err >&5
9248      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249      (exit $ac_status); } >/dev/null; then
9250      if test -s conftest.err; then
9251        ac_cpp_err=$ac_c_preproc_warn_flag
9252      else
9253        ac_cpp_err=
9254      fi
9255    else
9256      ac_cpp_err=yes
9257  fi  fi
9258  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
9259    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
9260      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
9261    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
9262  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
9263  EOF  
9264   cat >> confdefs.h <<\EOF    ac_header_preproc=no
9265    fi
9266    rm -f conftest.err conftest.$ac_ext
9267    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9268    echo "${ECHO_T}$ac_header_preproc" >&6
9269    
9270    # So?  What about this header?
9271    case $ac_header_compiler:$ac_header_preproc in
9272      yes:no )
9273        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9274    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9275        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9276    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9277        (
9278          cat <<\_ASBOX
9279    ## ------------------------------------ ##
9280    ## Report this to bug-autoconf@gnu.org. ##
9281    ## ------------------------------------ ##
9282    _ASBOX
9283        ) |
9284          sed "s/^/$as_me: WARNING:     /" >&2
9285        ;;
9286      no:yes )
9287        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9288    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9289        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9290    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9291        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9292    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9293        (
9294          cat <<\_ASBOX
9295    ## ------------------------------------ ##
9296    ## Report this to bug-autoconf@gnu.org. ##
9297    ## ------------------------------------ ##
9298    _ASBOX
9299        ) |
9300          sed "s/^/$as_me: WARNING:     /" >&2
9301        ;;
9302    esac
9303    echo "$as_me:$LINENO: checking for $ac_header" >&5
9304    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9305    if eval "test \"\${$as_ac_Header+set}\" = set"; then
9306      echo $ECHO_N "(cached) $ECHO_C" >&6
9307    else
9308      eval "$as_ac_Header=$ac_header_preproc"
9309    fi
9310    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9311    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9312    
9313    fi
9314    if test `eval echo '${'$as_ac_Header'}'` = yes; then
9315      cat >>confdefs.h <<_ACEOF
9316    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9317    _ACEOF
9318     cat >>confdefs.h <<\_ACEOF
9319  #define HAVE_VALUES_H 1  #define HAVE_VALUES_H 1
9320  EOF  _ACEOF
9321    
 else  
   echo "$ac_t""no" 1>&6  
9322  fi  fi
9323    
9324  done  done
9325    
9326    
9327  #  #
9328  # 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
9329  #  #
9330  for ac_hdr in float.h  
9331    for ac_header in float.h
9332  do  do
9333  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9334  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9335  echo "configure:4976: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
9336  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9337    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9338  else    echo $ECHO_N "(cached) $ECHO_C" >&6
9339    cat > conftest.$ac_ext <<EOF  fi
9340  #line 4981 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9341  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9342  #include <$ac_hdr>  else
9343  EOF    # Is the header compilable?
9344  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
9345  { (eval echo configure:4986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9346  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
9347  if test -z "$ac_err"; then  #line $LINENO "configure"
9348    rm -rf conftest*  /* confdefs.h.  */
9349    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
9350  else  cat confdefs.h >>conftest.$ac_ext
9351    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
9352    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
9353    cat conftest.$ac_ext >&5  $ac_includes_default
9354    rm -rf conftest*  #include <$ac_header>
9355    eval "ac_cv_header_$ac_safe=no"  _ACEOF
9356  fi  rm -f conftest.$ac_objext
9357  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9358      (eval $ac_compile) 2>&5
9359      ac_status=$?
9360      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361      (exit $ac_status); } &&
9362             { ac_try='test -s conftest.$ac_objext'
9363      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364      (eval $ac_try) 2>&5
9365      ac_status=$?
9366      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367      (exit $ac_status); }; }; then
9368      ac_header_compiler=yes
9369    else
9370      echo "$as_me: failed program was:" >&5
9371    sed 's/^/| /' conftest.$ac_ext >&5
9372    
9373    ac_header_compiler=no
9374    fi
9375    rm -f conftest.$ac_objext conftest.$ac_ext
9376    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9377    echo "${ECHO_T}$ac_header_compiler" >&6
9378    
9379    # Is the header present?
9380    echo "$as_me:$LINENO: checking $ac_header presence" >&5
9381    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9382    cat >conftest.$ac_ext <<_ACEOF
9383    #line $LINENO "configure"
9384    /* confdefs.h.  */
9385    _ACEOF
9386    cat confdefs.h >>conftest.$ac_ext
9387    cat >>conftest.$ac_ext <<_ACEOF
9388    /* end confdefs.h.  */
9389    #include <$ac_header>
9390    _ACEOF
9391    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9392      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9393      ac_status=$?
9394      grep -v '^ *+' conftest.er1 >conftest.err
9395      rm -f conftest.er1
9396      cat conftest.err >&5
9397      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398      (exit $ac_status); } >/dev/null; then
9399      if test -s conftest.err; then
9400        ac_cpp_err=$ac_c_preproc_warn_flag
9401      else
9402        ac_cpp_err=
9403      fi
9404    else
9405      ac_cpp_err=yes
9406  fi  fi
9407  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
9408    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
9409      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
9410    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
9411  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
9412  EOF  
9413   cat >> confdefs.h <<\EOF    ac_header_preproc=no
9414    fi
9415    rm -f conftest.err conftest.$ac_ext
9416    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9417    echo "${ECHO_T}$ac_header_preproc" >&6
9418    
9419    # So?  What about this header?
9420    case $ac_header_compiler:$ac_header_preproc in
9421      yes:no )
9422        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9423    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9424        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9425    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9426        (
9427          cat <<\_ASBOX
9428    ## ------------------------------------ ##
9429    ## Report this to bug-autoconf@gnu.org. ##
9430    ## ------------------------------------ ##
9431    _ASBOX
9432        ) |
9433          sed "s/^/$as_me: WARNING:     /" >&2
9434        ;;
9435      no:yes )
9436        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9437    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9438        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9439    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9440        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9441    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9442        (
9443          cat <<\_ASBOX
9444    ## ------------------------------------ ##
9445    ## Report this to bug-autoconf@gnu.org. ##
9446    ## ------------------------------------ ##
9447    _ASBOX
9448        ) |
9449          sed "s/^/$as_me: WARNING:     /" >&2
9450        ;;
9451    esac
9452    echo "$as_me:$LINENO: checking for $ac_header" >&5
9453    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9454    if eval "test \"\${$as_ac_Header+set}\" = set"; then
9455      echo $ECHO_N "(cached) $ECHO_C" >&6
9456    else
9457      eval "$as_ac_Header=$ac_header_preproc"
9458    fi
9459    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9460    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9461    
9462    fi
9463    if test `eval echo '${'$as_ac_Header'}'` = yes; then
9464      cat >>confdefs.h <<_ACEOF
9465    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9466    _ACEOF
9467     cat >>confdefs.h <<\_ACEOF
9468  #define HAVE_FLOAT_H 1  #define HAVE_FLOAT_H 1
9469  EOF  _ACEOF
9470    
 else  
   echo "$ac_t""no" 1>&6  
9471  fi  fi
9472    
9473  done  done
9474    
9475    
# Line 5017  done Line 9478  done
9478  # a more comprehensive later, i.e. checking that the fpclass  # a more comprehensive later, i.e. checking that the fpclass
9479  # test makes sense.  CM  # test makes sense.  CM
9480  #  #
9481  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for isnormal" >&5
9482  echo "configure:5022: checking for isnormal" >&5  echo $ECHO_N "checking for isnormal... $ECHO_C" >&6
9483  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9484    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$as_me:$LINENO: result: no" >&5
9485    echo "${ECHO_T}no" >&6
9486  else  else
9487    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9488  #line 5027 "configure"  #line $LINENO "configure"
9489  #include "confdefs.h"  /* confdefs.h.  */
9490    _ACEOF
9491    cat confdefs.h >>conftest.$ac_ext
9492    cat >>conftest.$ac_ext <<_ACEOF
9493    /* end confdefs.h.  */
9494  #define _GNU_SOURCE  #define _GNU_SOURCE
9495              #include <math.h>              #include <math.h>
9496              int main() {              int main() {
9497                  float f;                  float f;
9498                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
9499                  }                  }
9500  EOF  _ACEOF
9501  if { (eval echo configure:5036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9502  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
9504      ac_status=$?
9505      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9507      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508      (eval $ac_try) 2>&5
9509      ac_status=$?
9510      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511      (exit $ac_status); }; }; then
9512      cat >>confdefs.h <<\_ACEOF
9513  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
9514  EOF  _ACEOF
9515   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
9516  else  echo "${ECHO_T}yes" >&6
9517    echo "configure: failed program was:" >&5  else
9518    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
9519    rm -fr conftest*  echo "$as_me: failed program was:" >&5
9520    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6  sed 's/^/| /' conftest.$ac_ext >&5
9521  echo "configure:5047: checking for fpclass in ieeefp.h" >&5  
9522    ( exit $ac_status )
9523    echo "$as_me:$LINENO: checking for fpclass in ieeefp.h" >&5
9524    echo $ECHO_N "checking for fpclass in ieeefp.h... $ECHO_C" >&6
9525                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
9526    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
9527    echo "${ECHO_T}no" >&6
9528  else  else
9529    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9530  #line 5052 "configure"  #line $LINENO "configure"
9531  #include "confdefs.h"  /* confdefs.h.  */
9532    _ACEOF
9533    cat confdefs.h >>conftest.$ac_ext
9534    cat >>conftest.$ac_ext <<_ACEOF
9535    /* end confdefs.h.  */
9536  #include <ieeefp.h>  #include <ieeefp.h>
9537                              int main() {                              int main() {
9538                                  float f;                                  float f;
9539                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
9540                                  }                                  }
9541  EOF  _ACEOF
9542  if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9543  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9544    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
9545      ac_status=$?
9546      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9548      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549      (eval $ac_try) 2>&5
9550      ac_status=$?
9551      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552      (exit $ac_status); }; }; then
9553      cat >>confdefs.h <<\_ACEOF
9554  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
9555  EOF  _ACEOF
9556   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
9557    echo "${ECHO_T}yes" >&6
9558  else  else
9559    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9560    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9561    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9562    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6  
9563    ( exit $ac_status )
9564    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
9565    echo "${ECHO_T}no" >&6
9566  fi  fi
9567  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9568  fi  fi
9569    
           
9570  fi  fi
9571  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9572  fi  fi
9573    
9574    echo "$as_me:$LINENO: checking for isfinite" >&5
9575  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ECHO_N "checking for isfinite... $ECHO_C" >&6
 echo "configure:5082: checking for isfinite" >&5  
9576  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9577    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$as_me:$LINENO: result: no" >&5
9578    echo "${ECHO_T}no" >&6
9579  else  else
9580    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9581  #line 5087 "configure"  #line $LINENO "configure"
9582  #include "confdefs.h"  /* confdefs.h.  */
9583    _ACEOF
9584    cat confdefs.h >>conftest.$ac_ext
9585    cat >>conftest.$ac_ext <<_ACEOF
9586    /* end confdefs.h.  */
9587  #define _GNU_SOURCE  #define _GNU_SOURCE
9588              #include <math.h>              #include <math.h>
9589              int main() {              int main() {
9590                  float f;                  float f;
9591                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
9592                  }                  }
9593  EOF  _ACEOF
9594  if { (eval echo configure:5096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9595  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9596    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
9597      ac_status=$?
9598      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9600      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601      (eval $ac_try) 2>&5
9602      ac_status=$?
9603      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604      (exit $ac_status); }; }; then
9605      cat >>confdefs.h <<\_ACEOF
9606  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
9607  EOF  _ACEOF
9608   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
9609  else  echo "${ECHO_T}yes" >&6
9610    echo "configure: failed program was:" >&5  else
9611    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
9612    rm -fr conftest*  echo "$as_me: failed program was:" >&5
9613    echo $ac_n "checking for finite()""... $ac_c" 1>&6  sed 's/^/| /' conftest.$ac_ext >&5
9614  echo "configure:5107: checking for finite()" >&5  
9615    ( exit $ac_status )
9616    echo "$as_me:$LINENO: checking for finite()" >&5
9617    echo $ECHO_N "checking for finite()... $ECHO_C" >&6
9618                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
9619    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
9620    echo "${ECHO_T}no" >&6
9621  else  else
9622    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9623  #line 5112 "configure"  #line $LINENO "configure"
9624  #include "confdefs.h"  /* confdefs.h.  */
9625    _ACEOF
9626    cat confdefs.h >>conftest.$ac_ext
9627    cat >>conftest.$ac_ext <<_ACEOF
9628    /* end confdefs.h.  */
9629  #include <math.h>  #include <math.h>
9630                              #include <ieeefp.h>                              #include <ieeefp.h>
9631                              int main() {                              int main() {
9632                                  float f;                                  float f;
9633                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
9634                                  }                                  }
9635  EOF  _ACEOF
9636  if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9637  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9638    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
9639      ac_status=$?
9640      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9642      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643      (eval $ac_try) 2>&5
9644      ac_status=$?
9645      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646      (exit $ac_status); }; }; then
9647      cat >>confdefs.h <<\_ACEOF
9648  #define HAVE_FINITE 1  #define HAVE_FINITE 1
9649  EOF  _ACEOF
9650   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
9651    echo "${ECHO_T}yes" >&6
9652  else  else
9653    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9654    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9655    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9656    HAVE_FINITE=0 echo "$ac_t""no" 1>&6  
9657    ( exit $ac_status )
9658    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
9659    echo "${ECHO_T}no" >&6
9660  fi  fi
9661  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9662  fi  fi
9663    
           
9664  fi  fi
9665  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9666  fi  fi
9667    
9668    
9669    
   
9670  #--------------------------------------------------------------------  #--------------------------------------------------------------------
9671  #       Check for the existence of the -lsocket and -lnsl libraries.  #       Check for the existence of the -lsocket and -lnsl libraries.
9672  #       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 5157  fi Line 9684  fi
9684  #          To get around this problem, check for both libraries together  #          To get around this problem, check for both libraries together
9685  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
9686  #--------------------------------------------------------------------  #--------------------------------------------------------------------
9687  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sockets" >&5
9688  echo "configure:5162: checking for sockets" >&5  echo $ECHO_N "checking for sockets... $ECHO_C" >&6
9689  tcl_checkBoth=0  tcl_checkBoth=0
9690  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for connect" >&5
9691  echo "configure:5165: checking for connect" >&5  echo $ECHO_N "checking for connect... $ECHO_C" >&6
9692  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if test "${ac_cv_func_connect+set}" = set; then
9693    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9694  else  else
9695    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9696  #line 5170 "configure"  #line $LINENO "configure"
9697  #include "confdefs.h"  /* confdefs.h.  */
9698    _ACEOF
9699    cat confdefs.h >>conftest.$ac_ext
9700    cat >>conftest.$ac_ext <<_ACEOF
9701    /* end confdefs.h.  */
9702  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
9703      which can conflict with char connect(); below.  */      which can conflict with char connect (); below.  */
9704  #include <assert.h>  #include <assert.h>
9705  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
9706    #ifdef __cplusplus
9707    extern "C"
9708    {
9709    #endif
9710  /* 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
9711      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
9712  char connect();  char connect ();
   
 int main() {  
   
9713  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
9714      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
9715      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
9716  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
9717  choke me  choke me
9718  #else  #else
9719  connect();  char (*f) () = connect;
9720    #endif
9721    #ifdef __cplusplus
9722    }
9723  #endif  #endif
9724    
9725  ; return 0; }  int
9726  EOF  main ()
9727  if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
   rm -rf conftest*  
   eval "ac_cv_func_connect=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func_connect=no"  
 fi  
 rm -f conftest*  
 fi  
9728    
9729  if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then    ;
9730    echo "$ac_t""yes" 1>&6    return 0;
9731    }
9732    _ACEOF
9733    rm -f conftest.$ac_objext conftest$ac_exeext
9734    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735      (eval $ac_link) 2>&5
9736      ac_status=$?
9737      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738      (exit $ac_status); } &&
9739             { ac_try='test -s conftest$ac_exeext'
9740      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741      (eval $ac_try) 2>&5
9742      ac_status=$?
9743      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744      (exit $ac_status); }; }; then
9745      ac_cv_func_connect=yes
9746    else
9747      echo "$as_me: failed program was:" >&5
9748    sed 's/^/| /' conftest.$ac_ext >&5
9749    
9750    ac_cv_func_connect=no
9751    fi
9752    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9753    fi
9754    echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9755    echo "${ECHO_T}$ac_cv_func_connect" >&6
9756    if test $ac_cv_func_connect = yes; then
9757    tcl_checkSocket=0    tcl_checkSocket=0
9758  else  else
9759    echo "$ac_t""no" 1>&6    tcl_checkSocket=1
 tcl_checkSocket=1  
9760  fi  fi
9761    
9762  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
9763      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for main in -lsocket" >&5
9764  echo "configure:5215: checking for main in -lsocket" >&5  echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
9765  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_main+set}" = set; then
9766  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  
9767  else  else
9768    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
9769  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
9770  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
9771  #line 5223 "configure"  #line $LINENO "configure"
9772  #include "confdefs.h"  /* confdefs.h.  */
9773    _ACEOF
9774    cat confdefs.h >>conftest.$ac_ext
9775    cat >>conftest.$ac_ext <<_ACEOF
9776    /* end confdefs.h.  */
9777    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:5230: \"$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"  
9778    
9779  fi  int
9780  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
9781    echo "$ac_t""yes" 1>&6  {
9782    main ();
9783      ;
9784      return 0;
9785    }
9786    _ACEOF
9787    rm -f conftest.$ac_objext conftest$ac_exeext
9788    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789      (eval $ac_link) 2>&5
9790      ac_status=$?
9791      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792      (exit $ac_status); } &&
9793             { ac_try='test -s conftest$ac_exeext'
9794      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795      (eval $ac_try) 2>&5
9796      ac_status=$?
9797      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798      (exit $ac_status); }; }; then
9799      ac_cv_lib_socket_main=yes
9800    else
9801      echo "$as_me: failed program was:" >&5
9802    sed 's/^/| /' conftest.$ac_ext >&5
9803    
9804    ac_cv_lib_socket_main=no
9805    fi
9806    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9807    LIBS=$ac_check_lib_save_LIBS
9808    fi
9809    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
9810    echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
9811    if test $ac_cv_lib_socket_main = yes; then
9812    TLIBS="$TLIBS -lsocket"    TLIBS="$TLIBS -lsocket"
9813  else  else
9814    echo "$ac_t""no" 1>&6    tcl_checkBoth=1
 tcl_checkBoth=1  
9815  fi  fi
9816    
9817  fi  fi
# Line 5253  fi Line 9820  fi
9820  if test "$tcl_checkBoth" = 1; then  if test "$tcl_checkBoth" = 1; then
9821      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
9822      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
9823      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for accept" >&5
9824  echo "configure:5258: checking for accept" >&5  echo $ECHO_N "checking for accept... $ECHO_C" >&6
9825  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if test "${ac_cv_func_accept+set}" = set; then
9826    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9827  else  else
9828    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9829  #line 5263 "configure"  #line $LINENO "configure"
9830  #include "confdefs.h"  /* confdefs.h.  */
9831    _ACEOF
9832    cat confdefs.h >>conftest.$ac_ext
9833    cat >>conftest.$ac_ext <<_ACEOF
9834    /* end confdefs.h.  */
9835  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
9836      which can conflict with char accept(); below.  */      which can conflict with char accept (); below.  */
9837  #include <assert.h>  #include <assert.h>
9838  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
9839    #ifdef __cplusplus
9840    extern "C"
9841    {
9842    #endif
9843  /* 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
9844      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
9845  char accept();  char accept ();
   
 int main() {  
   
9846  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
9847      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
9848      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
9849  #if defined (__stub_accept) || defined (__stub___accept)  #if defined (__stub_accept) || defined (__stub___accept)
9850  choke me  choke me
9851  #else  #else
9852  accept();  char (*f) () = accept;
9853    #endif
9854    #ifdef __cplusplus
9855    }
9856  #endif  #endif
9857    
9858  ; return 0; }  int
9859  EOF  main ()
9860  if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
   rm -rf conftest*  
   eval "ac_cv_func_accept=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func_accept=no"  
 fi  
 rm -f conftest*  
 fi  
9861    
9862  if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then    ;
9863    echo "$ac_t""yes" 1>&6    return 0;
9864    }
9865    _ACEOF
9866    rm -f conftest.$ac_objext conftest$ac_exeext
9867    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9868      (eval $ac_link) 2>&5
9869      ac_status=$?
9870      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871      (exit $ac_status); } &&
9872             { ac_try='test -s conftest$ac_exeext'
9873      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874      (eval $ac_try) 2>&5
9875      ac_status=$?
9876      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877      (exit $ac_status); }; }; then
9878      ac_cv_func_accept=yes
9879    else
9880      echo "$as_me: failed program was:" >&5
9881    sed 's/^/| /' conftest.$ac_ext >&5
9882    
9883    ac_cv_func_accept=no
9884    fi
9885    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9886    fi
9887    echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
9888    echo "${ECHO_T}$ac_cv_func_accept" >&6
9889    if test $ac_cv_func_accept = yes; then
9890    tcl_checkNsl=0    tcl_checkNsl=0
9891  else  else
9892    echo "$ac_t""no" 1>&6    TLIBS=$tk_oldLibs
 TLIBS=$tk_oldLibs  
9893  fi  fi
9894    
9895  fi  fi
9896  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gethostbyname" >&5
9897  echo "configure:5308: checking for gethostbyname" >&5  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9898  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if test "${ac_cv_func_gethostbyname+set}" = set; then
9899    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9900  else  else
9901    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9902  #line 5313 "configure"  #line $LINENO "configure"
9903  #include "confdefs.h"  /* confdefs.h.  */
9904    _ACEOF
9905    cat confdefs.h >>conftest.$ac_ext
9906    cat >>conftest.$ac_ext <<_ACEOF
9907    /* end confdefs.h.  */
9908  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
9909      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname (); below.  */
9910  #include <assert.h>  #include <assert.h>
9911  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
9912    #ifdef __cplusplus
9913    extern "C"
9914    {
9915    #endif
9916  /* 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
9917      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
9918  char gethostbyname();  char gethostbyname ();
   
 int main() {  
   
9919  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
9920      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
9921      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
9922  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9923  choke me  choke me
9924  #else  #else
9925  gethostbyname();  char (*f) () = gethostbyname;
9926    #endif
9927    #ifdef __cplusplus
9928    }
9929  #endif  #endif
9930    
9931  ; return 0; }  int
9932  EOF  main ()
9933  if { (eval echo configure:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
   rm -rf conftest*  
   eval "ac_cv_func_gethostbyname=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func_gethostbyname=no"  
 fi  
 rm -f conftest*  
 fi  
9934    
9935  if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then    ;
9936    echo "$ac_t""yes" 1>&6    return 0;
9937    }
9938    _ACEOF
9939    rm -f conftest.$ac_objext conftest$ac_exeext
9940    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9941      (eval $ac_link) 2>&5
9942      ac_status=$?
9943      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944      (exit $ac_status); } &&
9945             { ac_try='test -s conftest$ac_exeext'
9946      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947      (eval $ac_try) 2>&5
9948      ac_status=$?
9949      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950      (exit $ac_status); }; }; then
9951      ac_cv_func_gethostbyname=yes
9952    else
9953      echo "$as_me: failed program was:" >&5
9954    sed 's/^/| /' conftest.$ac_ext >&5
9955    
9956    ac_cv_func_gethostbyname=no
9957    fi
9958    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9959    fi
9960    echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9961    echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9962    if test $ac_cv_func_gethostbyname = yes; then
9963    :    :
9964  else  else
9965    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for main in -lnsl" >&5
9966  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
9967  echo "configure:5354: checking for main in -lnsl" >&5  if test "${ac_cv_lib_nsl_main+set}" = set; then
9968  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  
9969  else  else
9970    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
9971  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
9972  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
9973  #line 5362 "configure"  #line $LINENO "configure"
9974  #include "confdefs.h"  /* confdefs.h.  */
9975    _ACEOF
9976    cat confdefs.h >>conftest.$ac_ext
9977    cat >>conftest.$ac_ext <<_ACEOF
9978    /* end confdefs.h.  */
9979    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:5369: \"$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"  
9980    
9981  fi  int
9982  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
9983    echo "$ac_t""yes" 1>&6  {
9984    main ();
9985      ;
9986      return 0;
9987    }
9988    _ACEOF
9989    rm -f conftest.$ac_objext conftest$ac_exeext
9990    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9991      (eval $ac_link) 2>&5
9992      ac_status=$?
9993      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994      (exit $ac_status); } &&
9995             { ac_try='test -s conftest$ac_exeext'
9996      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997      (eval $ac_try) 2>&5
9998      ac_status=$?
9999      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000      (exit $ac_status); }; }; then
10001      ac_cv_lib_nsl_main=yes
10002    else
10003      echo "$as_me: failed program was:" >&5
10004    sed 's/^/| /' conftest.$ac_ext >&5
10005    
10006    ac_cv_lib_nsl_main=no
10007    fi
10008    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10009    LIBS=$ac_check_lib_save_LIBS
10010    fi
10011    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
10012    echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
10013    if test $ac_cv_lib_nsl_main = yes; then
10014    TLIBS="$TLIBS -lnsl"    TLIBS="$TLIBS -lnsl"
 else  
   echo "$ac_t""no" 1>&6  
10015  fi  fi
10016    
10017  fi  fi
# Line 5391  fi Line 10020  fi
10020  RL_OJBS=""  RL_OJBS=""
10021  RL_LIB=""  RL_LIB=""
10022  if test "$enable_readline" = "yes" ; then  if test "$enable_readline" = "yes" ; then
10023          for ac_hdr in readline/readline.h  
10024    for ac_header in readline/readline.h
10025  do  do
10026  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10027  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
10028  echo "configure:5399: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
10029  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10030    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
10031  else    echo $ECHO_N "(cached) $ECHO_C" >&6
10032    cat > conftest.$ac_ext <<EOF  fi
10033  #line 5404 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10034  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10035  #include <$ac_hdr>  else
10036  EOF    # Is the header compilable?
10037  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
10038  { (eval echo configure:5409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10039  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
10040  if test -z "$ac_err"; then  #line $LINENO "configure"
10041    rm -rf conftest*  /* confdefs.h.  */
10042    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
10043  else  cat confdefs.h >>conftest.$ac_ext
10044    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
10045    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
10046    cat conftest.$ac_ext >&5  $ac_includes_default
10047    rm -rf conftest*  #include <$ac_header>
10048    eval "ac_cv_header_$ac_safe=no"  _ACEOF
10049  fi  rm -f conftest.$ac_objext
10050  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10051      (eval $ac_compile) 2>&5
10052      ac_status=$?
10053      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054      (exit $ac_status); } &&
10055             { ac_try='test -s conftest.$ac_objext'
10056      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057      (eval $ac_try) 2>&5
10058      ac_status=$?
10059      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060      (exit $ac_status); }; }; then
10061      ac_header_compiler=yes
10062    else
10063      echo "$as_me: failed program was:" >&5
10064    sed 's/^/| /' conftest.$ac_ext >&5
10065    
10066    ac_header_compiler=no
10067    fi
10068    rm -f conftest.$ac_objext conftest.$ac_ext
10069    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10070    echo "${ECHO_T}$ac_header_compiler" >&6
10071    
10072    # Is the header present?
10073    echo "$as_me:$LINENO: checking $ac_header presence" >&5
10074    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10075    cat >conftest.$ac_ext <<_ACEOF
10076    #line $LINENO "configure"
10077    /* confdefs.h.  */
10078    _ACEOF
10079    cat confdefs.h >>conftest.$ac_ext
10080    cat >>conftest.$ac_ext <<_ACEOF
10081    /* end confdefs.h.  */
10082    #include <$ac_header>
10083    _ACEOF
10084    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10085      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10086      ac_status=$?
10087      grep -v '^ *+' conftest.er1 >conftest.err
10088      rm -f conftest.er1
10089      cat conftest.err >&5
10090      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091      (exit $ac_status); } >/dev/null; then
10092      if test -s conftest.err; then
10093        ac_cpp_err=$ac_c_preproc_warn_flag
10094      else
10095        ac_cpp_err=
10096      fi
10097    else
10098      ac_cpp_err=yes
10099  fi  fi
10100  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
10101    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
10102      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
10103    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
10104  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
10105  EOF  
10106   echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6    ac_header_preproc=no
10107  echo "configure:5430: checking for main in -lreadline" >&5  fi
10108  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  rm -f conftest.err conftest.$ac_ext
10109  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10110    echo $ac_n "(cached) $ac_c" 1>&6  echo "${ECHO_T}$ac_header_preproc" >&6
10111    
10112    # So?  What about this header?
10113    case $ac_header_compiler:$ac_header_preproc in
10114      yes:no )
10115        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10116    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10117        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10118    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10119        (
10120          cat <<\_ASBOX
10121    ## ------------------------------------ ##
10122    ## Report this to bug-autoconf@gnu.org. ##
10123    ## ------------------------------------ ##
10124    _ASBOX
10125        ) |
10126          sed "s/^/$as_me: WARNING:     /" >&2
10127        ;;
10128      no:yes )
10129        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10130    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10131        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10132    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10133        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10134    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10135        (
10136          cat <<\_ASBOX
10137    ## ------------------------------------ ##
10138    ## Report this to bug-autoconf@gnu.org. ##
10139    ## ------------------------------------ ##
10140    _ASBOX
10141        ) |
10142          sed "s/^/$as_me: WARNING:     /" >&2
10143        ;;
10144    esac
10145    echo "$as_me:$LINENO: checking for $ac_header" >&5
10146    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10147    if eval "test \"\${$as_ac_Header+set}\" = set"; then
10148      echo $ECHO_N "(cached) $ECHO_C" >&6
10149    else
10150      eval "$as_ac_Header=$ac_header_preproc"
10151    fi
10152    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10153    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10154    
10155    fi
10156    if test `eval echo '${'$as_ac_Header'}'` = yes; then
10157      cat >>confdefs.h <<_ACEOF
10158    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10159    _ACEOF
10160     echo "$as_me:$LINENO: checking for main in -lreadline" >&5
10161    echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
10162    if test "${ac_cv_lib_readline_main+set}" = set; then
10163      echo $ECHO_N "(cached) $ECHO_C" >&6
10164  else  else
10165    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
10166  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
10167  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
10168  #line 5438 "configure"  #line $LINENO "configure"
10169  #include "confdefs.h"  /* confdefs.h.  */
10170    _ACEOF
10171    cat confdefs.h >>conftest.$ac_ext
10172    cat >>conftest.$ac_ext <<_ACEOF
10173    /* end confdefs.h.  */
10174    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:5445: \"$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"  
10175    
10176  fi  int
10177  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
10178    echo "$ac_t""yes" 1>&6  {
10179    cat >> confdefs.h <<\EOF  main ();
10180      ;
10181      return 0;
10182    }
10183    _ACEOF
10184    rm -f conftest.$ac_objext conftest$ac_exeext
10185    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10186      (eval $ac_link) 2>&5
10187      ac_status=$?
10188      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189      (exit $ac_status); } &&
10190             { ac_try='test -s conftest$ac_exeext'
10191      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192      (eval $ac_try) 2>&5
10193      ac_status=$?
10194      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195      (exit $ac_status); }; }; then
10196      ac_cv_lib_readline_main=yes
10197    else
10198      echo "$as_me: failed program was:" >&5
10199    sed 's/^/| /' conftest.$ac_ext >&5
10200    
10201    ac_cv_lib_readline_main=no
10202    fi
10203    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10204    LIBS=$ac_check_lib_save_LIBS
10205    fi
10206    echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
10207    echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
10208    if test $ac_cv_lib_readline_main = yes; then
10209      cat >>confdefs.h <<\_ACEOF
10210  #define HAVE_READLINE 1  #define HAVE_READLINE 1
10211  EOF  _ACEOF
10212    
10213                          TLIBS="$TLIBS -lreadline -lncurses"                          TLIBS="$TLIBS -lreadline -lncurses"
10214                          RL_OBJS=gcl_readline.o                          RL_OBJS=gcl_readline.o
10215  # Readline support now initialized automatically when compiled in, this lisp  # Readline support now initialized automatically when compiled in, this lisp
10216  # object no longer needed, 20040102 CM  # object no longer needed, 20040102 CM
10217  #                       RL_LIB=mod/gcl_readline.o  #                       RL_LIB=mod/gcl_readline.o
10218                            
 else  
   echo "$ac_t""no" 1>&6  
10219  fi  fi
10220    
 else  
   echo "$ac_t""no" 1>&6  
10221  fi  fi
10222    
10223  done  done
10224    
10225    
10226  # These tests discover differences between readline 4.1 and 4.3  # These tests discover differences between readline 4.1 and 4.3
10227          echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
10228  echo "configure:5482: checking for rl_completion_matches in -lreadline" >&5  echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
10229  ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
10230  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  
10231  else  else
10232    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
10233  LIBS="-lreadline  $LIBS"  LIBS="-lreadline  $LIBS"
10234  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
10235  #line 5490 "configure"  #line $LINENO "configure"
10236  #include "confdefs.h"  /* confdefs.h.  */
10237    _ACEOF
10238    cat confdefs.h >>conftest.$ac_ext
10239    cat >>conftest.$ac_ext <<_ACEOF
10240    /* end confdefs.h.  */
10241    
10242  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
10243    #ifdef __cplusplus
10244    extern "C"
10245    #endif
10246  /* 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
10247      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
10248  char rl_completion_matches();  char rl_completion_matches ();
10249    int
10250  int main() {  main ()
10251  rl_completion_matches()  {
10252  ; return 0; }  rl_completion_matches ();
10253  EOF    ;
10254  if { (eval echo configure:5501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
10255    rm -rf conftest*  }
10256    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
10257  else  rm -f conftest.$ac_objext conftest$ac_exeext
10258    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10259    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
10260    rm -rf conftest*    ac_status=$?
10261    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262  fi    (exit $ac_status); } &&
10263  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
10264  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265      (eval $ac_try) 2>&5
10266  fi    ac_status=$?
10267  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
10269    cat >> confdefs.h <<\EOF    ac_cv_lib_readline_rl_completion_matches=yes
10270    else
10271      echo "$as_me: failed program was:" >&5
10272    sed 's/^/| /' conftest.$ac_ext >&5
10273    
10274    ac_cv_lib_readline_rl_completion_matches=no
10275    fi
10276    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10277    LIBS=$ac_check_lib_save_LIBS
10278    fi
10279    echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
10280    echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
10281    if test $ac_cv_lib_readline_rl_completion_matches = yes; then
10282      cat >>confdefs.h <<\_ACEOF
10283  #define HAVE_DECL_RL_COMPLETION_MATCHES 1  #define HAVE_DECL_RL_COMPLETION_MATCHES 1
10284  EOF  _ACEOF
10285    
10286                          cat >> confdefs.h <<\EOF                          cat >>confdefs.h <<\_ACEOF
10287  #define HAVE_RL_COMPENTRY_FUNC_T 1  #define HAVE_RL_COMPENTRY_FUNC_T 1
10288  EOF  _ACEOF
10289    
 else  
   echo "$ac_t""no" 1>&6  
10290  fi  fi
10291    
10292  fi  fi
# Line 5529  fi Line 10294  fi
10294    
10295    
10296    
10297  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
10298  echo "configure:5534: checking For network code for nsocket.c" >&5  echo $ECHO_N "checking For network code for nsocket.c... $ECHO_C" >&6
10299  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
10300  #line 5536 "configure"  #line $LINENO "configure"
10301  #include "confdefs.h"  /* confdefs.h.  */
10302    _ACEOF
10303    cat confdefs.h >>conftest.$ac_ext
10304    cat >>conftest.$ac_ext <<_ACEOF
10305    /* end confdefs.h.  */
10306    
10307  #include <sys/time.h>  #include <sys/time.h>
10308  #include <sys/types.h>  #include <sys/types.h>
# Line 5543  cat > conftest.$ac_ext <<EOF Line 10312  cat > conftest.$ac_ext <<EOF
10312  #include <fcntl.h>  #include <fcntl.h>
10313  #include <stdio.h>  #include <stdio.h>
10314    
10315  /************* for the sockets ******************/  /************* for the sockets ******************/
10316  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */
10317  #ifndef NO_UNAME  #ifndef NO_UNAME
10318  #   include <sys/utsname.h>     /* uname system call. */  #   include <sys/utsname.h>     /* uname system call. */
# Line 5552  cat > conftest.$ac_ext <<EOF Line 10321  cat > conftest.$ac_ext <<EOF
10321  #include <arpa/inet.h>          /* inet_ntoa() */  #include <arpa/inet.h>          /* inet_ntoa() */
10322  #include <netdb.h>              /* gethostbyname() */  #include <netdb.h>              /* gethostbyname() */
10323    
10324  int main() {  int
10325    main ()
10326    {
10327   connect(0,(struct sockaddr *)0,0);   connect(0,(struct sockaddr *)0,0);
10328      gethostbyname("jil");      gethostbyname("jil");
10329      socket(AF_INET, SOCK_STREAM, 0);      socket(AF_INET, SOCK_STREAM, 0);
10330            
10331  ; return 0; }    ;
10332  EOF    return 0;
10333  if { (eval echo configure:5563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
10334    rm -rf conftest*  _ACEOF
10335    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext conftest$ac_exeext
10336    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337      (eval $ac_link) 2>&5
10338      ac_status=$?
10339      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340      (exit $ac_status); } &&
10341             { ac_try='test -s conftest$ac_exeext'
10342      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343      (eval $ac_try) 2>&5
10344      ac_status=$?
10345      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346      (exit $ac_status); }; }; then
10347      cat >>confdefs.h <<\_ACEOF
10348  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
10349  EOF  _ACEOF
10350    
10351   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
10352    echo "${ECHO_T}yes" >&6
10353  else  else
10354    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
10355    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
10356    rm -rf conftest*  
10357    echo "$ac_t""no" 1>&6  echo "$as_me:$LINENO: result: no" >&5
10358    echo "${ECHO_T}no" >&6
10359  fi  fi
10360  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10361    
10362    
10363  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for listen using fcntl" >&5
10364  echo "configure:5580: checking check for listen using fcntl" >&5  echo $ECHO_N "checking check for listen using fcntl... $ECHO_C" >&6
10365  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
10366  #line 5582 "configure"  #line $LINENO "configure"
10367  #include "confdefs.h"  /* confdefs.h.  */
10368    _ACEOF
10369    cat confdefs.h >>conftest.$ac_ext
10370    cat >>conftest.$ac_ext <<_ACEOF
10371    /* end confdefs.h.  */
10372  #include <stdio.h>  #include <stdio.h>
10373  #include <fcntl.h>  #include <fcntl.h>
10374    
10375  int main() {  int
10376    main ()
10377    {
10378  FILE *fp=fopen("configure.in","r");  FILE *fp=fopen("configure.in","r");
10379    int orig;    int orig;
10380    orig = fcntl(fileno(fp), F_GETFL);    orig = fcntl(fileno(fp), F_GETFL);
10381    if (! (orig & O_NONBLOCK )) return 0;    if (! (orig & O_NONBLOCK )) return 0;
10382    
10383  ; return 0; }    ;
10384  EOF    return 0;
10385  if { (eval echo configure:5595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
10386    rm -rf conftest*  _ACEOF
10387    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
10388    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10389      (eval $ac_compile) 2>&5
10390      ac_status=$?
10391      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392      (exit $ac_status); } &&
10393             { ac_try='test -s conftest.$ac_objext'
10394      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395      (eval $ac_try) 2>&5
10396      ac_status=$?
10397      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398      (exit $ac_status); }; }; then
10399      cat >>confdefs.h <<\_ACEOF
10400  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
10401  EOF  _ACEOF
10402    
10403   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
10404    echo "${ECHO_T}yes" >&6
10405  else  else
10406    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
10407    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
10408    rm -rf conftest*  
10409    echo "$ac_t""no" 1>&6  echo "$as_me:$LINENO: result: no" >&5
10410    echo "${ECHO_T}no" >&6
10411  fi  fi
10412  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
10413    
10414    
10415    
10416    
10417  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for profil" >&5
10418  echo "configure:5614: checking for profil" >&5  echo $ECHO_N "checking for profil... $ECHO_C" >&6
10419  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if test "${ac_cv_func_profil+set}" = set; then
10420    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10421  else  else
10422    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10423  #line 5619 "configure"  #line $LINENO "configure"
10424  #include "confdefs.h"  /* confdefs.h.  */
10425    _ACEOF
10426    cat confdefs.h >>conftest.$ac_ext
10427    cat >>conftest.$ac_ext <<_ACEOF
10428    /* end confdefs.h.  */
10429  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10430      which can conflict with char profil(); below.  */      which can conflict with char profil (); below.  */
10431  #include <assert.h>  #include <assert.h>
10432  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
10433    #ifdef __cplusplus
10434    extern "C"
10435    {
10436    #endif
10437  /* 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
10438      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
10439  char profil();  char profil ();
   
 int main() {  
   
10440  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
10441      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
10442      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
10443  #if defined (__stub_profil) || defined (__stub___profil)  #if defined (__stub_profil) || defined (__stub___profil)
10444  choke me  choke me
10445  #else  #else
10446  profil();  char (*f) () = profil;
10447    #endif
10448    #ifdef __cplusplus
10449    }
10450  #endif  #endif
10451    
10452  ; return 0; }  int
10453  EOF  main ()
10454  if { (eval echo configure:5642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
   rm -rf conftest*  
   eval "ac_cv_func_profil=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func_profil=no"  
 fi  
 rm -f conftest*  
 fi  
10455    
10456  if eval "test \"`echo '$ac_cv_func_'profil`\" = yes"; then    ;
10457    echo "$ac_t""yes" 1>&6    return 0;
10458    }
10459    _ACEOF
10460    rm -f conftest.$ac_objext conftest$ac_exeext
10461    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462      (eval $ac_link) 2>&5
10463      ac_status=$?
10464      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465      (exit $ac_status); } &&
10466             { ac_try='test -s conftest$ac_exeext'
10467      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468      (eval $ac_try) 2>&5
10469      ac_status=$?
10470      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471      (exit $ac_status); }; }; then
10472      ac_cv_func_profil=yes
10473    else
10474      echo "$as_me: failed program was:" >&5
10475    sed 's/^/| /' conftest.$ac_ext >&5
10476    
10477    ac_cv_func_profil=no
10478    fi
10479    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10480    fi
10481    echo "$as_me:$LINENO: result: $ac_cv_func_profil" >&5
10482    echo "${ECHO_T}$ac_cv_func_profil" >&6
10483    if test $ac_cv_func_profil = yes; then
10484    :    :
10485  else  else
10486    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
10487  #define NO_PROFILE 1  #define NO_PROFILE 1
10488  EOF  _ACEOF
10489    
10490  fi  fi
10491    
10492    
10493  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for setenv" >&5
10494  echo "configure:5667: checking for setenv" >&5  echo $ECHO_N "checking for setenv... $ECHO_C" >&6
10495  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if test "${ac_cv_func_setenv+set}" = set; then
10496    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10497  else  else
10498    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10499  #line 5672 "configure"  #line $LINENO "configure"
10500  #include "confdefs.h"  /* confdefs.h.  */
10501    _ACEOF
10502    cat confdefs.h >>conftest.$ac_ext
10503    cat >>conftest.$ac_ext <<_ACEOF
10504    /* end confdefs.h.  */
10505  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10506      which can conflict with char setenv(); below.  */      which can conflict with char setenv (); below.  */
10507  #include <assert.h>  #include <assert.h>
10508  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
10509    #ifdef __cplusplus
10510    extern "C"
10511    {
10512    #endif
10513  /* 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
10514      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
10515  char setenv();  char setenv ();
   
 int main() {  
   
10516  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
10517      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
10518      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
10519  #if defined (__stub_setenv) || defined (__stub___setenv)  #if defined (__stub_setenv) || defined (__stub___setenv)
10520  choke me  choke me
10521  #else  #else
10522  setenv();  char (*f) () = setenv;
10523    #endif
10524    #ifdef __cplusplus
10525    }
10526  #endif  #endif
10527    
10528  ; return 0; }  int
10529  EOF  main ()
10530  if { (eval echo configure:5695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
   rm -rf conftest*  
   eval "ac_cv_func_setenv=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func_setenv=no"  
 fi  
 rm -f conftest*  
 fi  
10531    
10532  if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then    ;
10533    echo "$ac_t""yes" 1>&6    return 0;
10534    cat >> confdefs.h <<\EOF  }
10535    _ACEOF
10536    rm -f conftest.$ac_objext conftest$ac_exeext
10537    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10538      (eval $ac_link) 2>&5
10539      ac_status=$?
10540      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541      (exit $ac_status); } &&
10542             { ac_try='test -s conftest$ac_exeext'
10543      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544      (eval $ac_try) 2>&5
10545      ac_status=$?
10546      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547      (exit $ac_status); }; }; then
10548      ac_cv_func_setenv=yes
10549    else
10550      echo "$as_me: failed program was:" >&5
10551    sed 's/^/| /' conftest.$ac_ext >&5
10552    
10553    ac_cv_func_setenv=no
10554    fi
10555    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10556    fi
10557    echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
10558    echo "${ECHO_T}$ac_cv_func_setenv" >&6
10559    if test $ac_cv_func_setenv = yes; then
10560      cat >>confdefs.h <<\_ACEOF
10561  #define HAVE_SETENV 1  #define HAVE_SETENV 1
10562  EOF  _ACEOF
10563    
10564  else  else
10565    echo "$ac_t""no" 1>&6    no_setenv=1
 no_setenv=1  
10566  fi  fi
10567    
10568    
10569  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
10570  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for putenv" >&5
10571  echo "configure:5721: checking for putenv" >&5  echo $ECHO_N "checking for putenv... $ECHO_C" >&6
10572  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if test "${ac_cv_func_putenv+set}" = set; then
10573    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10574  else  else
10575    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10576  #line 5726 "configure"  #line $LINENO "configure"
10577  #include "confdefs.h"  /* confdefs.h.  */
10578    _ACEOF
10579    cat confdefs.h >>conftest.$ac_ext
10580    cat >>conftest.$ac_ext <<_ACEOF
10581    /* end confdefs.h.  */
10582  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10583      which can conflict with char putenv(); below.  */      which can conflict with char putenv (); below.  */
10584  #include <assert.h>  #include <assert.h>
10585  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
10586    #ifdef __cplusplus
10587    extern "C"
10588    {
10589    #endif
10590  /* 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
10591      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
10592  char putenv();  char putenv ();
   
 int main() {  
   
10593  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
10594      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
10595      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
10596  #if defined (__stub_putenv) || defined (__stub___putenv)  #if defined (__stub_putenv) || defined (__stub___putenv)
10597  choke me  choke me
10598  #else  #else
10599  putenv();  char (*f) () = putenv;
10600    #endif
10601    #ifdef __cplusplus
10602    }
10603  #endif  #endif
10604    
10605  ; return 0; }  int
10606  EOF  main ()
10607  if { (eval echo configure:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
   rm -rf conftest*  
   eval "ac_cv_func_putenv=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func_putenv=no"  
 fi  
 rm -f conftest*  
 fi  
10608    
10609  if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then    ;
10610    echo "$ac_t""yes" 1>&6    return 0;
10611    cat >> confdefs.h <<\EOF  }
10612    _ACEOF
10613    rm -f conftest.$ac_objext conftest$ac_exeext
10614    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10615      (eval $ac_link) 2>&5
10616      ac_status=$?
10617      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618      (exit $ac_status); } &&
10619             { ac_try='test -s conftest$ac_exeext'
10620      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621      (eval $ac_try) 2>&5
10622      ac_status=$?
10623      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624      (exit $ac_status); }; }; then
10625      ac_cv_func_putenv=yes
10626    else
10627      echo "$as_me: failed program was:" >&5
10628    sed 's/^/| /' conftest.$ac_ext >&5
10629    
10630    ac_cv_func_putenv=no
10631    fi
10632    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10633    fi
10634    echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
10635    echo "${ECHO_T}$ac_cv_func_putenv" >&6
10636    if test $ac_cv_func_putenv = yes; then
10637      cat >>confdefs.h <<\_ACEOF
10638  #define HAVE_PUTENV 1  #define HAVE_PUTENV 1
10639  EOF  _ACEOF
10640    
 else  
   echo "$ac_t""no" 1>&6  
10641  fi  fi
10642    
10643    
10644  fi  fi
10645    
10646  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for _cleanup" >&5
10647  echo "configure:5775: checking for _cleanup" >&5  echo $ECHO_N "checking for _cleanup... $ECHO_C" >&6
10648  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if test "${ac_cv_func__cleanup+set}" = set; then
10649    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10650  else  else
10651    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10652  #line 5780 "configure"  #line $LINENO "configure"
10653  #include "confdefs.h"  /* confdefs.h.  */
10654    _ACEOF
10655    cat confdefs.h >>conftest.$ac_ext
10656    cat >>conftest.$ac_ext <<_ACEOF
10657    /* end confdefs.h.  */
10658  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10659      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup (); below.  */
10660  #include <assert.h>  #include <assert.h>
10661  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
10662    #ifdef __cplusplus
10663    extern "C"
10664    {
10665    #endif
10666  /* 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
10667      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
10668  char _cleanup();  char _cleanup ();
   
 int main() {  
   
10669  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
10670      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
10671      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
10672  #if defined (__stub__cleanup) || defined (__stub____cleanup)  #if defined (__stub__cleanup) || defined (__stub____cleanup)
10673  choke me  choke me
10674  #else  #else
10675  _cleanup();  char (*f) () = _cleanup;
10676    #endif
10677    #ifdef __cplusplus
10678    }
10679  #endif  #endif
10680    
10681  ; return 0; }  int
10682  EOF  main ()
10683  if { (eval echo configure:5803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
   rm -rf conftest*  
   eval "ac_cv_func__cleanup=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func__cleanup=no"  
 fi  
 rm -f conftest*  
 fi  
10684    
10685  if eval "test \"`echo '$ac_cv_func_'_cleanup`\" = yes"; then    ;
10686    echo "$ac_t""yes" 1>&6    return 0;
10687    cat >> confdefs.h <<\EOF  }
10688    _ACEOF
10689    rm -f conftest.$ac_objext conftest$ac_exeext
10690    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10691      (eval $ac_link) 2>&5
10692      ac_status=$?
10693      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694      (exit $ac_status); } &&
10695             { ac_try='test -s conftest$ac_exeext'
10696      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697      (eval $ac_try) 2>&5
10698      ac_status=$?
10699      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700      (exit $ac_status); }; }; then
10701      ac_cv_func__cleanup=yes
10702    else
10703      echo "$as_me: failed program was:" >&5
10704    sed 's/^/| /' conftest.$ac_ext >&5
10705    
10706    ac_cv_func__cleanup=no
10707    fi
10708    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10709    fi
10710    echo "$as_me:$LINENO: result: $ac_cv_func__cleanup" >&5
10711    echo "${ECHO_T}$ac_cv_func__cleanup" >&6
10712    if test $ac_cv_func__cleanup = yes; then
10713      cat >>confdefs.h <<\_ACEOF
10714  #define USE_CLEANUP 1  #define USE_CLEANUP 1
10715  EOF  _ACEOF
10716    
 else  
   echo "$ac_t""no" 1>&6  
10717  fi  fi
10718    
10719    
10720  gcl_ok=no  gcl_ok=no
10721    
10722  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
10723  #line 5829 "configure"  #line $LINENO "configure"
10724  #include "confdefs.h"  /* confdefs.h.  */
10725    _ACEOF
10726    cat confdefs.h >>conftest.$ac_ext
10727    cat >>conftest.$ac_ext <<_ACEOF
10728    /* end confdefs.h.  */
10729  #include <ctype.h>  #include <ctype.h>
10730  EOF  
10731    _ACEOF
10732  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10733    egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then    $EGREP "LITTLE_ENDIAN" >/dev/null 2>&1; then
   rm -rf conftest*  
10734    gcl_ok=yes    gcl_ok=yes
10735  else  else
   rm -rf conftest*  
10736    gcl_ok=noo    gcl_ok=noo
10737  fi  fi
10738  rm -f conftest*  rm -f conftest*
10739    
10740  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
10741  cat >> confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
10742  #define ENDIAN_ALREADY_DEFINED 1  #define ENDIAN_ALREADY_DEFINED 1
10743  EOF  _ACEOF
10744    
10745  fi  fi
10746    
# Line 5852  fi Line 10750  fi
10750    
10751    
10752  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
10753  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
10754  echo "configure:5857: 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
10755    
10756  case $system in  case $system in
10757         OSF*)         OSF*)
10758          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
10759  #define USE_FIONBIO 1  #define USE_FIONBIO 1
10760  EOF  _ACEOF
10761    
10762          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
10763    echo "${ECHO_T}FIONBIO" >&6
10764          ;;          ;;
10765      SunOS-4*)      SunOS-4*)
10766          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
10767  #define USE_FIONBIO 1  #define USE_FIONBIO 1
10768  EOF  _ACEOF
10769    
10770          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
10771    echo "${ECHO_T}FIONBIO" >&6
10772          ;;          ;;
10773      ULTRIX-4.*)      ULTRIX-4.*)
10774          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
10775  #define USE_FIONBIO 1  #define USE_FIONBIO 1
10776  EOF  _ACEOF
10777    
10778          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
10779    echo "${ECHO_T}FIONBIO" >&6
10780          ;;          ;;
10781      *)      *)
10782          echo "$ac_t""O_NONBLOCK" 1>&6          echo "$as_me:$LINENO: result: O_NONBLOCK" >&5
10783    echo "${ECHO_T}O_NONBLOCK" >&6
10784          ;;          ;;
10785  esac  esac
10786    
10787    
10788  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SV_ONSTACK" >&5
10789  echo "configure:5888: checking check for SV_ONSTACK" >&5  echo $ECHO_N "checking check for SV_ONSTACK... $ECHO_C" >&6
10790  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
10791  #line 5890 "configure"  #line $LINENO "configure"
10792  #include "confdefs.h"  /* confdefs.h.  */
10793    _ACEOF
10794    cat confdefs.h >>conftest.$ac_ext
10795    cat >>conftest.$ac_ext <<_ACEOF
10796    /* end confdefs.h.  */
10797  #include <signal.h>  #include <signal.h>
10798  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
10799    
10800  int main() {  int
10801    main ()
10802    {
10803    
10804  ; return 0; }    ;
10805  EOF    return 0;
10806  if { (eval echo configure:5899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
10807    rm -rf conftest*  _ACEOF
10808    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
10809    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10810      (eval $ac_compile) 2>&5
10811      ac_status=$?
10812      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813      (exit $ac_status); } &&
10814             { ac_try='test -s conftest.$ac_objext'
10815      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816      (eval $ac_try) 2>&5
10817      ac_status=$?
10818      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819      (exit $ac_status); }; }; then
10820      cat >>confdefs.h <<\_ACEOF
10821  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
10822  EOF  _ACEOF
10823    
10824    
10825   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
10826    echo "${ECHO_T}yes" >&6
10827  else  else
10828    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
10829    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
10830    rm -rf conftest*  
10831    echo "$ac_t""no" 1>&6  echo "$as_me:$LINENO: result: no" >&5
10832    echo "${ECHO_T}no" >&6
10833  fi  fi
10834  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
10835    
10836  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGSYS" >&5
10837  echo "configure:5916: checking check for SIGSYS" >&5  echo $ECHO_N "checking check for SIGSYS... $ECHO_C" >&6
10838  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
10839  #line 5918 "configure"  #line $LINENO "configure"
10840  #include "confdefs.h"  /* confdefs.h.  */
10841    _ACEOF
10842    cat confdefs.h >>conftest.$ac_ext
10843    cat >>conftest.$ac_ext <<_ACEOF
10844    /* end confdefs.h.  */
10845  #include <signal.h>  #include <signal.h>
10846  int joe=SIGSYS;  int joe=SIGSYS;
10847    
10848  int main() {  int
10849    main ()
10850    {
10851    
10852  ; return 0; }    ;
10853  EOF    return 0;
10854  if { (eval echo configure:5927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
10855    rm -rf conftest*  _ACEOF
10856    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
10857    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10858      (eval $ac_compile) 2>&5
10859      ac_status=$?
10860      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861      (exit $ac_status); } &&
10862             { ac_try='test -s conftest.$ac_objext'
10863      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864      (eval $ac_try) 2>&5
10865      ac_status=$?
10866      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867      (exit $ac_status); }; }; then
10868      cat >>confdefs.h <<\_ACEOF
10869  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
10870  EOF  _ACEOF
10871    
10872    
10873     echo "$as_me:$LINENO: result: yes" >&5
10874   echo "$ac_t""yes" 1>&6  echo "${ECHO_T}yes" >&6
10875  else  else
10876    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
10877    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
10878    rm -rf conftest*  
10879    echo "$ac_t""no" 1>&6  echo "$as_me:$LINENO: result: no" >&5
10880    echo "${ECHO_T}no" >&6
10881  fi  fi
10882  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
10883    
10884    
10885  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGEMT" >&5
10886  echo "configure:5945: checking check for SIGEMT" >&5  echo $ECHO_N "checking check for SIGEMT... $ECHO_C" >&6
10887  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
10888  #line 5947 "configure"  #line $LINENO "configure"
10889  #include "confdefs.h"  /* confdefs.h.  */
10890    _ACEOF
10891    cat confdefs.h >>conftest.$ac_ext
10892    cat >>conftest.$ac_ext <<_ACEOF
10893    /* end confdefs.h.  */
10894  #include <signal.h>  #include <signal.h>
10895  int joe=SIGEMT;  int joe=SIGEMT;
10896    
10897  int main() {  int
10898    main ()
10899    {
10900    
10901  ; return 0; }    ;
10902  EOF    return 0;
10903  if { (eval echo configure:5956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
10904    rm -rf conftest*  _ACEOF
10905    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
10906    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10907      (eval $ac_compile) 2>&5
10908      ac_status=$?
10909      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910      (exit $ac_status); } &&
10911             { ac_try='test -s conftest.$ac_objext'
10912      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913      (eval $ac_try) 2>&5
10914      ac_status=$?
10915      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916      (exit $ac_status); }; }; then
10917      cat >>confdefs.h <<\_ACEOF
10918  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
10919  EOF  _ACEOF
10920    
10921    
10922   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
10923    echo "${ECHO_T}yes" >&6
10924  else  else
10925    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
10926    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
10927    rm -rf conftest*  
10928    echo "$ac_t""no" 1>&6  echo "$as_me:$LINENO: result: no" >&5
10929    echo "${ECHO_T}no" >&6
10930  fi  fi
10931  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
10932    
10933    
10934    
10935    
10936  #if test $use = "386-linux" ; then  #if test $use = "386-linux" ; then
10937          for ac_hdr in asm/sigcontext.h  
10938    for ac_header in asm/sigcontext.h
10939  do  do
10940  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10941  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
10942  echo "configure:5980: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
10943  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10944    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
10945  else    echo $ECHO_N "(cached) $ECHO_C" >&6
10946    cat > conftest.$ac_ext <<EOF  fi
10947  #line 5985 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10948  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10949  #include <$ac_hdr>  else
10950  EOF    # Is the header compilable?
10951  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
10952  { (eval echo configure:5990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10953  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
10954  if test -z "$ac_err"; then  #line $LINENO "configure"
10955    rm -rf conftest*  /* confdefs.h.  */
10956    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
10957  else  cat confdefs.h >>conftest.$ac_ext
10958    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
10959    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
10960    cat conftest.$ac_ext >&5  $ac_includes_default
10961    rm -rf conftest*  #include <$ac_header>
10962    eval "ac_cv_header_$ac_safe=no"  _ACEOF
10963  fi  rm -f conftest.$ac_objext
10964  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10965      (eval $ac_compile) 2>&5
10966      ac_status=$?
10967      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968      (exit $ac_status); } &&
10969             { ac_try='test -s conftest.$ac_objext'
10970      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971      (eval $ac_try) 2>&5
10972      ac_status=$?
10973      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974      (exit $ac_status); }; }; then
10975      ac_header_compiler=yes
10976    else
10977      echo "$as_me: failed program was:" >&5
10978    sed 's/^/| /' conftest.$ac_ext >&5
10979    
10980    ac_header_compiler=no
10981    fi
10982    rm -f conftest.$ac_objext conftest.$ac_ext
10983    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10984    echo "${ECHO_T}$ac_header_compiler" >&6
10985    
10986    # Is the header present?
10987    echo "$as_me:$LINENO: checking $ac_header presence" >&5
10988    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10989    cat >conftest.$ac_ext <<_ACEOF
10990    #line $LINENO "configure"
10991    /* confdefs.h.  */
10992    _ACEOF
10993    cat confdefs.h >>conftest.$ac_ext
10994    cat >>conftest.$ac_ext <<_ACEOF
10995    /* end confdefs.h.  */
10996    #include <$ac_header>
10997    _ACEOF
10998    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10999      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11000      ac_status=$?
11001      grep -v '^ *+' conftest.er1 >conftest.err
11002      rm -f conftest.er1
11003      cat conftest.err >&5
11004      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005      (exit $ac_status); } >/dev/null; then
11006      if test -s conftest.err; then
11007        ac_cpp_err=$ac_c_preproc_warn_flag
11008      else
11009        ac_cpp_err=
11010      fi
11011    else
11012      ac_cpp_err=yes
11013  fi  fi
11014  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
11015    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
11016      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
11017    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
11018  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
11019  EOF  
11020      ac_header_preproc=no
11021    fi
11022    rm -f conftest.err conftest.$ac_ext
11023    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11024    echo "${ECHO_T}$ac_header_preproc" >&6
11025    
11026    # So?  What about this header?
11027    case $ac_header_compiler:$ac_header_preproc in
11028      yes:no )
11029        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11030    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11031        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11032    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11033        (
11034          cat <<\_ASBOX
11035    ## ------------------------------------ ##
11036    ## Report this to bug-autoconf@gnu.org. ##
11037    ## ------------------------------------ ##
11038    _ASBOX
11039        ) |
11040          sed "s/^/$as_me: WARNING:     /" >&2
11041        ;;
11042      no:yes )
11043        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11044    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11045        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11046    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11047        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11048    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11049        (
11050          cat <<\_ASBOX
11051    ## ------------------------------------ ##
11052    ## Report this to bug-autoconf@gnu.org. ##
11053    ## ------------------------------------ ##
11054    _ASBOX
11055        ) |
11056          sed "s/^/$as_me: WARNING:     /" >&2
11057        ;;
11058    esac
11059    echo "$as_me:$LINENO: checking for $ac_header" >&5
11060    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11061    if eval "test \"\${$as_ac_Header+set}\" = set"; then
11062      echo $ECHO_N "(cached) $ECHO_C" >&6
11063  else  else
11064    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
11065    fi
11066    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11067    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11068    
11069  fi  fi
11070    if test `eval echo '${'$as_ac_Header'}'` = yes; then
11071      cat >>confdefs.h <<_ACEOF
11072    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11073    _ACEOF
11074    
11075    fi
11076    
11077  done  done
11078    
11079          for ac_hdr in asm/signal.h  
11080    for ac_header in asm/signal.h
11081  do  do
11082  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11083  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
11084  echo "configure:6020: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
11085  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11086    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
11087      echo $ECHO_N "(cached) $ECHO_C" >&6
11088    fi
11089    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11090    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11091    else
11092      # Is the header compilable?
11093    echo "$as_me:$LINENO: checking $ac_header usability" >&5
11094    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11095    cat >conftest.$ac_ext <<_ACEOF
11096    #line $LINENO "configure"
11097    /* confdefs.h.  */
11098    _ACEOF
11099    cat confdefs.h >>conftest.$ac_ext
11100    cat >>conftest.$ac_ext <<_ACEOF
11101    /* end confdefs.h.  */
11102    $ac_includes_default
11103    #include <$ac_header>
11104    _ACEOF
11105    rm -f conftest.$ac_objext
11106    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11107      (eval $ac_compile) 2>&5
11108      ac_status=$?
11109      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110      (exit $ac_status); } &&
11111             { ac_try='test -s conftest.$ac_objext'
11112      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113      (eval $ac_try) 2>&5
11114      ac_status=$?
11115      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116      (exit $ac_status); }; }; then
11117      ac_header_compiler=yes
11118    else
11119      echo "$as_me: failed program was:" >&5
11120    sed 's/^/| /' conftest.$ac_ext >&5
11121    
11122    ac_header_compiler=no
11123    fi
11124    rm -f conftest.$ac_objext conftest.$ac_ext
11125    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11126    echo "${ECHO_T}$ac_header_compiler" >&6
11127    
11128    # Is the header present?
11129    echo "$as_me:$LINENO: checking $ac_header presence" >&5
11130    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11131    cat >conftest.$ac_ext <<_ACEOF
11132    #line $LINENO "configure"
11133    /* confdefs.h.  */
11134    _ACEOF
11135    cat confdefs.h >>conftest.$ac_ext
11136    cat >>conftest.$ac_ext <<_ACEOF
11137    /* end confdefs.h.  */
11138    #include <$ac_header>
11139    _ACEOF
11140    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11141      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11142      ac_status=$?
11143      grep -v '^ *+' conftest.er1 >conftest.err
11144      rm -f conftest.er1
11145      cat conftest.err >&5
11146      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147      (exit $ac_status); } >/dev/null; then
11148      if test -s conftest.err; then
11149        ac_cpp_err=$ac_c_preproc_warn_flag
11150      else
11151        ac_cpp_err=
11152      fi
11153  else  else
11154    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
 #line 6025 "configure"  
 #include "confdefs.h"  
 #include <$ac_hdr>  
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:6030: \"$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"  
 else  
   echo "$ac_err" >&5  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
11155  fi  fi
11156  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
11157    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
11158      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
11159    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
11160  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
11161  EOF  
11162      ac_header_preproc=no
11163    fi
11164    rm -f conftest.err conftest.$ac_ext
11165    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11166    echo "${ECHO_T}$ac_header_preproc" >&6
11167    
11168    # So?  What about this header?
11169    case $ac_header_compiler:$ac_header_preproc in
11170      yes:no )
11171        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11172    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11173        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11174    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11175        (
11176          cat <<\_ASBOX
11177    ## ------------------------------------ ##
11178    ## Report this to bug-autoconf@gnu.org. ##
11179    ## ------------------------------------ ##
11180    _ASBOX
11181        ) |
11182          sed "s/^/$as_me: WARNING:     /" >&2
11183        ;;
11184      no:yes )
11185        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11186    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11187        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11188    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11189        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11190    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11191        (
11192          cat <<\_ASBOX
11193    ## ------------------------------------ ##
11194    ## Report this to bug-autoconf@gnu.org. ##
11195    ## ------------------------------------ ##
11196    _ASBOX
11197        ) |
11198          sed "s/^/$as_me: WARNING:     /" >&2
11199        ;;
11200    esac
11201    echo "$as_me:$LINENO: checking for $ac_header" >&5
11202    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11203    if eval "test \"\${$as_ac_Header+set}\" = set"; then
11204      echo $ECHO_N "(cached) $ECHO_C" >&6
11205  else  else
11206    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
11207    fi
11208    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11209    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11210    
11211    fi
11212    if test `eval echo '${'$as_ac_Header'}'` = yes; then
11213      cat >>confdefs.h <<_ACEOF
11214    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11215    _ACEOF
11216    
11217  fi  fi
11218    
11219  done  done
11220    
11221          echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for sigcontext..." >&5
11222  echo "configure:6057: checking for sigcontext..." >&5  echo $ECHO_N "checking for sigcontext...... $ECHO_C" >&6
11223          cat > conftest.$ac_ext <<EOF          cat >conftest.$ac_ext <<_ACEOF
11224  #line 6059 "configure"  #line $LINENO "configure"
11225  #include "confdefs.h"  /* confdefs.h.  */
11226    _ACEOF
11227    cat confdefs.h >>conftest.$ac_ext
11228    cat >>conftest.$ac_ext <<_ACEOF
11229    /* end confdefs.h.  */
11230  #include <signal.h>  #include <signal.h>
11231          
11232  int main() {  int
11233    main ()
11234    {
11235    
11236          struct sigcontext foo;          struct sigcontext foo;
11237          
11238  ; return 0; }    ;
11239  EOF    return 0;
11240  if { (eval echo configure:6069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
11241    rm -rf conftest*  _ACEOF
11242      rm -f conftest.$ac_objext
11243    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11244      (eval $ac_compile) 2>&5
11245      ac_status=$?
11246      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247      (exit $ac_status); } &&
11248             { ac_try='test -s conftest.$ac_objext'
11249      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250      (eval $ac_try) 2>&5
11251      ac_status=$?
11252      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253      (exit $ac_status); }; }; then
11254    
11255          sigcontext_works=1;          sigcontext_works=1;
11256          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
11257  #define SIGNAL_H_HAS_SIGCONTEXT 1  #define SIGNAL_H_HAS_SIGCONTEXT 1
11258  EOF  _ACEOF
11259    
11260            echo "$as_me:$LINENO: result: sigcontext in signal.h" >&5
11261    echo "${ECHO_T}sigcontext in signal.h" >&6
11262    
         echo "$ac_t""sigcontext in signal.h" 1>&6  
         
11263  else  else
11264    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
11265    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
11266    rm -rf conftest*  
11267    sigcontext_works=0;  sigcontext_works=0;
11268           echo "$ac_t""sigcontext NOT in signal.h" 1>&6           echo "$as_me:$LINENO: result: sigcontext NOT in signal.h" >&5
11269          echo "${ECHO_T}sigcontext NOT in signal.h" >&6
11270    
11271  fi  fi
11272  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
11273         if test "$sigcontext_works" = 0 ; then         if test "$sigcontext_works" = 0 ; then
11274         echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6         echo "$as_me:$LINENO: checking for sigcontext..." >&5
11275  echo "configure:6090: checking for sigcontext..." >&5  echo $ECHO_N "checking for sigcontext...... $ECHO_C" >&6
11276         cat > conftest.$ac_ext <<EOF         cat >conftest.$ac_ext <<_ACEOF
11277  #line 6092 "configure"  #line $LINENO "configure"
11278  #include "confdefs.h"  /* confdefs.h.  */
11279    _ACEOF
11280    cat confdefs.h >>conftest.$ac_ext
11281    cat >>conftest.$ac_ext <<_ACEOF
11282    /* end confdefs.h.  */
11283  #include <signal.h>  #include <signal.h>
11284               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H
11285               #include <asm/sigcontext.h>               #include <asm/sigcontext.h>
11286               #endif               #endif
11287               #ifdef HAVE_ASM_SIGNAL_H                         #ifdef HAVE_ASM_SIGNAL_H
11288               #include <asm/signal.h>               #include <asm/signal.h>
11289               #endif               #endif
11290              
11291  int main() {  int
11292    main ()
11293    {
11294    
11295          struct sigcontext foo;          struct sigcontext foo;
11296            
11297  ; return 0; }    ;
11298  EOF    return 0;
11299  if { (eval echo configure:6108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
11300    rm -rf conftest*  _ACEOF
11301      rm -f conftest.$ac_objext
11302          cat >> confdefs.h <<\EOF  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11303      (eval $ac_compile) 2>&5
11304      ac_status=$?
11305      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306      (exit $ac_status); } &&
11307             { ac_try='test -s conftest.$ac_objext'
11308      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309      (eval $ac_try) 2>&5
11310      ac_status=$?
11311      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312      (exit $ac_status); }; }; then
11313    
11314            cat >>confdefs.h <<\_ACEOF
11315  #define HAVE_SIGCONTEXT 1  #define HAVE_SIGCONTEXT 1
11316  EOF  _ACEOF
11317    
11318            echo "$as_me:$LINENO: result: sigcontext in asm files" >&5
11319    echo "${ECHO_T}sigcontext in asm files" >&6
11320    
         echo "$ac_t""sigcontext in asm files" 1>&6  
           
11321  else  else
11322    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
11323    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
11324    rm -rf conftest*  
11325      
11326          echo "$ac_t""no sigcontext found" 1>&6          echo "$as_me:$LINENO: result: no sigcontext found" >&5
11327        echo "${ECHO_T}no sigcontext found" >&6
11328    
11329  fi  fi
11330  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
11331    
11332    
11333         fi         fi
11334  #       echo 'foo() {}' > conftest1.c  #       echo 'foo() {}' > conftest1.c
11335  #       $CC -S conftest1.c  #       $CC -S conftest1.c
11336  #       use_underscore=0          #       use_underscore=0
11337  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi
11338  #       if test $use_underscore = 0 ; then  #       if test $use_underscore = 0 ; then
11339  #            MPI_FILE=mpi-386_no_under.o  #            MPI_FILE=mpi-386_no_under.o
# Line 6145  rm -f conftest* Line 11351  rm -f conftest*
11351    
11352  # 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.
11353  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
11354  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
11355  echo "configure:6150: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11356  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if test "${ac_cv_path_EMACS+set}" = set; then
11357    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
11358  else  else
11359    case "$EMACS" in    case $EMACS in
11360    /*)    [\\/]* | ?:[\\/]*)
11361    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.
11362    ;;    ;;
   ?:/*)                    
   ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.  
   ;;  
11363    *)    *)
11364    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365    ac_dummy="$PATH"  for as_dir in $PATH
11366    for ac_dir in $ac_dummy; do  do
11367      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
11368      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
11369        ac_cv_path_EMACS="$ac_dir/$ac_word"    for ac_exec_ext in '' $ac_executable_extensions; do
11370        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11371      fi      ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext"
11372    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11373    IFS="$ac_save_ifs"      break 2
11374      fi
11375    done
11376    done
11377    
11378    ;;    ;;
11379  esac  esac
11380  fi  fi
11381  EMACS="$ac_cv_path_EMACS"  EMACS=$ac_cv_path_EMACS
11382    
11383  if test -n "$EMACS"; then  if test -n "$EMACS"; then
11384    echo "$ac_t""$EMACS" 1>&6    echo "$as_me:$LINENO: result: $EMACS" >&5
11385    echo "${ECHO_T}$EMACS" >&6
11386  else  else
11387    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
11388    echo "${ECHO_T}no" >&6
11389  fi  fi
11390    
11391    
# Line 6193  cat >> conftest.el <<EOF Line 11403  cat >> conftest.el <<EOF
11403    (message ans))    (message ans))
11404  EOF  EOF
11405    
11406  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs site lisp directory" >&5
11407  echo "configure:6198: checking emacs site lisp directory" >&5  echo $ECHO_N "checking emacs site lisp directory... $ECHO_C" >&6
11408  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then
11409          if [ "$EMACS" != "" ] ; then          if [ "$EMACS" != "" ] ; then
11410                  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 `
# Line 6202  if [ "$EMACS_SITE_LISP" = "unknown" ] ; Line 11412  if [ "$EMACS_SITE_LISP" = "unknown" ] ;
11412                  EMACS_SITE_LISP=""                  EMACS_SITE_LISP=""
11413          fi          fi
11414  fi  fi
11415  echo "$ac_t""$EMACS_SITE_LISP" 1>&6  echo "$as_me:$LINENO: result: $EMACS_SITE_LISP" >&5
11416    echo "${ECHO_T}$EMACS_SITE_LISP" >&6
11417    
11418    
11419  # check for where the emacs site lisp default.el is  # check for where the emacs site lisp default.el is
# Line 6217  cat >> conftest.el <<EOF Line 11428  cat >> conftest.el <<EOF
11428    (message ans))    (message ans))
11429  EOF  EOF
11430    
11431  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs default.el" >&5
11432  echo "configure:6222: checking emacs default.el" >&5  echo $ECHO_N "checking emacs default.el... $ECHO_C" >&6
11433  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
11434          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 `
11435  else  else
# Line 6229  if  test -f "${EMACS_DEFAULT_EL}"  ; the Line 11440  if  test -f "${EMACS_DEFAULT_EL}"  ; the
11440       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el
11441    fi    fi
11442  fi  fi
11443  echo "$ac_t""$EMACS_DEFAULT_EL" 1>&6  echo "$as_me:$LINENO: result: $EMACS_DEFAULT_EL" >&5
11444    echo "${ECHO_T}$EMACS_DEFAULT_EL" >&6
11445    
11446    
11447    
# Line 6240  cat >> conftest.el <<EOF Line 11452  cat >> conftest.el <<EOF
11452  (let ((ans "") file (tem Info-default-directory-list))  (let ((ans "") file (tem Info-default-directory-list))
11453   (while tem   (while tem
11454     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))
11455            (setq ans (file-name-as-directory (car tem)))                    (setq ans (file-name-as-directory (car tem)))
11456            (setq tem nil) ))            (setq tem nil) ))
11457     (setq tem (cdr tem)))     (setq tem (cdr tem)))
11458    (message ans))    (message ans))
11459  EOF  EOF
11460    
11461  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs info/dir" >&5
11462  echo "configure:6251: checking emacs info/dir" >&5  echo $ECHO_N "checking emacs info/dir... $ECHO_C" >&6
11463  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
11464      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
11465  else  else
# Line 6261  if test -f /usr/share/info/dir ; then Line 11473  if test -f /usr/share/info/dir ; then
11473  else true;  else true;
11474  fi  fi
11475  fi  fi
11476  echo "$ac_t""$INFO_DIR" 1>&6  echo "$as_me:$LINENO: result: $INFO_DIR" >&5
11477    echo "${ECHO_T}$INFO_DIR" >&6
11478    
11479    
11480  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for tcl/tk" >&5
11481  echo "configure:6269: checking for tcl/tk" >&5  echo $ECHO_N "checking for tcl/tk... $ECHO_C" >&6
11482    
11483    
11484  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 6275  cat >> conftest.tcl <<EOF Line 11488  cat >> conftest.tcl <<EOF
11488  set dir [set tcl_library]  set dir [set tcl_library]
11489  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
11490        puts  [set dir]        puts  [set dir]
11491        exit              exit
11492    }    }
11493  set dir [file dirname [set tcl_library]]  set dir [file dirname [set tcl_library]]
11494  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
# Line 6287  EOF Line 11500  EOF
11500    
11501  # 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.
11502  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
11503  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
11504  echo "configure:6292: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11505  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if test "${ac_cv_prog_TCLSH+set}" = set; then
11506    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
11507  else  else
11508    if test -n "$TCLSH"; then    if test -n "$TCLSH"; then
11509    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
11510  else  else
11511    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512    ac_dummy="$PATH"  for as_dir in $PATH
11513    for ac_dir in $ac_dummy; do  do
11514      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
11515      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
11516        ac_cv_prog_TCLSH="tclsh"    for ac_exec_ext in '' $ac_executable_extensions; do
11517        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11518      fi      ac_cv_prog_TCLSH="tclsh"
11519    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11520    IFS="$ac_save_ifs"      break 2
11521      fi
11522    done
11523    done
11524    
11525    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"
11526  fi  fi
11527  fi  fi
11528  TCLSH="$ac_cv_prog_TCLSH"  TCLSH=$ac_cv_prog_TCLSH
11529  if test -n "$TCLSH"; then  if test -n "$TCLSH"; then
11530    echo "$ac_t""$TCLSH" 1>&6    echo "$as_me:$LINENO: result: $TCLSH" >&5
11531    echo "${ECHO_T}$TCLSH" >&6
11532  else  else
11533    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
11534    echo "${ECHO_T}no" >&6
11535  fi  fi
11536    
11537  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})
# Line 6378  if test -f ${TK_CONFIG_PREFIX}/../includ Line 11597  if test -f ${TK_CONFIG_PREFIX}/../includ
11597    else    else
11598    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then
11599      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
11600    fi        fi
11601  fi  fi
11602  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then
11603    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include
# Line 6387  if test -f ${TCL_CONFIG_PREFIX}/../inclu Line 11606  if test -f ${TCL_CONFIG_PREFIX}/../inclu
11606      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
11607    fi    fi
11608  fi  fi
11609  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6  TCL_VERSION_DOT_FREE=`echo ${TCL_VERSION} | tr -d .`
11610  echo "configure:6392: checking for main in -llieee" >&5  if test -f ${TK_CONFIG_PREFIX}/../bin/tcl${TCL_VERSION_DOT_FREE}.dll  ; then
11611  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`     TCL_LIBS="-L${TK_CONFIG_PREFIX}/../bin -ltk${TCL_VERSION_DOT_FREE} -ltcl${TCL_VERSION_DOT_FREE}"
11612  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  else
11613    echo $ac_n "(cached) $ac_c" 1>&6    echo "$as_me:$LINENO: checking for main in -llieee" >&5
11614    echo $ECHO_N "checking for main in -llieee... $ECHO_C" >&6
11615    if test "${ac_cv_lib_lieee_main+set}" = set; then
11616      echo $ECHO_N "(cached) $ECHO_C" >&6
11617  else  else
11618    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
11619  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
11620  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
11621  #line 6400 "configure"  #line $LINENO "configure"
11622  #include "confdefs.h"  /* confdefs.h.  */
11623    _ACEOF
11624    cat confdefs.h >>conftest.$ac_ext
11625    cat >>conftest.$ac_ext <<_ACEOF
11626    /* end confdefs.h.  */
11627    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:6407: \"$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"  
11628    
11629  fi  int
11630  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
11631    echo "$ac_t""yes" 1>&6  {
11632    main ();
11633      ;
11634      return 0;
11635    }
11636    _ACEOF
11637    rm -f conftest.$ac_objext conftest$ac_exeext
11638    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639      (eval $ac_link) 2>&5
11640      ac_status=$?
11641      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642      (exit $ac_status); } &&
11643             { ac_try='test -s conftest$ac_exeext'
11644      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645      (eval $ac_try) 2>&5
11646      ac_status=$?
11647      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648      (exit $ac_status); }; }; then
11649      ac_cv_lib_lieee_main=yes
11650    else
11651      echo "$as_me: failed program was:" >&5
11652    sed 's/^/| /' conftest.$ac_ext >&5
11653    
11654    ac_cv_lib_lieee_main=no
11655    fi
11656    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11657    LIBS=$ac_check_lib_save_LIBS
11658    fi
11659    echo "$as_me:$LINENO: result: $ac_cv_lib_lieee_main" >&5
11660    echo "${ECHO_T}$ac_cv_lib_lieee_main" >&6
11661    if test $ac_cv_lib_lieee_main = yes; then
11662    have_ieee=1    have_ieee=1
11663  else  else
11664    echo "$ac_t""no" 1>&6    have_ieee=0
 have_ieee=0  
11665  fi  fi
11666    
11667  if test "$have_ieee" = "0" ; then    if test "$have_ieee" = "0" ; then
11668   TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-lieee::g" `      TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-lieee::g" `
11669  fi    fi
11670  if test "$have_dl" = "0" ; then    if test "$have_dl" = "0" ; then
11671   TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-ldl::g"`      TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-ldl::g"`
11672      fi
11673  fi  fi
11674    
11675    
# Line 6450  fi Line 11691  fi
11691    
11692    
11693    
   
11694  if test -d "${TK_CONFIG_PREFIX}" ; then  if test -d "${TK_CONFIG_PREFIX}" ; then
11695  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
11696    echo "${ECHO_T}using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" >&6
11697  else  else
11698  echo "$ac_t""not found" 1>&6  echo "$as_me:$LINENO: result: not found" >&5
11699    echo "${ECHO_T}not found" >&6
11700  fi  fi
11701    
11702  NOTIFY=$enable_notify  NOTIFY=$enable_notify
11703    
11704    
11705          
11706    
11707    
11708  # for sgbc the mprotect capabilities.  # for sgbc the mprotect capabilities.
11709    
11710  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
11711    
11712  echo $ac_n "checking alloca""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking alloca" >&5
11713  echo "configure:6472: checking alloca" >&5  echo $ECHO_N "checking alloca... $ECHO_C" >&6
11714  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
11715    gcl_ok=no    gcl_ok=no
11716  else  else
11717    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
11718  #line 6477 "configure"  #line $LINENO "configure"
11719  #include "confdefs.h"  /* confdefs.h.  */
11720    _ACEOF
11721    cat confdefs.h >>conftest.$ac_ext
11722    cat >>conftest.$ac_ext <<_ACEOF
11723    /* end confdefs.h.  */
11724  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
11725  EOF  _ACEOF
11726  if { (eval echo configure:6481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
11727  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11728      (eval $ac_link) 2>&5
11729      ac_status=$?
11730      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11732      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733      (eval $ac_try) 2>&5
11734      ac_status=$?
11735      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736      (exit $ac_status); }; }; then
11737    :    :
11738  else  else
11739    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
11740    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
11741    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
11742    gcl_ok=yes  
11743    ( exit $ac_status )
11744    gcl_ok=yes
11745  fi  fi
11746  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11747  fi  fi
   
11748  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
11749      echo "$ac_t""yes" 1>&6      echo "$as_me:$LINENO: result: yes" >&5
11750      cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
11751        cat >>confdefs.h <<\_ACEOF
11752  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
11753  EOF  _ACEOF
11754    
11755  else  else
11756    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
11757    gcl_ok=no    gcl_ok=no
11758  else  else
11759    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
11760  #line 6504 "configure"  #line $LINENO "configure"
11761  #include "confdefs.h"  /* confdefs.h.  */
11762    _ACEOF
11763    cat confdefs.h >>conftest.$ac_ext
11764    cat >>conftest.$ac_ext <<_ACEOF
11765    /* end confdefs.h.  */
11766  #include <alloca.h>  #include <alloca.h>
11767    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
11768  EOF  _ACEOF
11769  if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
11770  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11771      (eval $ac_link) 2>&5
11772      ac_status=$?
11773      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11775      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776      (eval $ac_try) 2>&5
11777      ac_status=$?
11778      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779      (exit $ac_status); }; }; then
11780    :    :
11781  else  else
11782    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
11783    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
11784    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
11785    gcl_ok=yes  
11786    ( exit $ac_status )
11787    gcl_ok=yes
11788  fi  fi
11789  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11790  fi  fi
   
11791   if test $gcl_ok = yes ; then   if test $gcl_ok = yes ; then
11792      echo "$ac_t""yes" 1>&6      echo "$as_me:$LINENO: result: yes" >&5
11793      cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
11794        cat >>confdefs.h <<\_ACEOF
11795  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
11796  EOF  _ACEOF
11797    
11798      cat >> confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
11799  #define NEED_ALLOCA_H 1  #define NEED_ALLOCA_H 1
11800  EOF  _ACEOF
11801    
11802   fi   fi
11803  fi  fi
11804  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
11805    echo "${ECHO_T}no" >&6 ; fi
11806    
11807    
11808    
# Line 6545  if test $gcl_ok = no ; then     echo "$a Line 11818  if test $gcl_ok = no ; then     echo "$a
11818  # dlopen etc  # dlopen etc
11819  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)
11820  # 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
11821  #  #
11822    
11823  # what machine this is, and include then a machine specific hdr.  # what machine this is, and include then a machine specific hdr.
11824  # and machine specific defs.  # and machine specific defs.
# Line 6565  if test $gcl_ok = no ; then     echo "$a Line 11838  if test $gcl_ok = no ; then     echo "$a
11838    
11839  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
11840  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
11841  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
11842  echo "configure:6570: checking Checking for buggy gcc version from redhat" >&5  echo $ECHO_N "checking Checking for buggy gcc version from redhat... $ECHO_C" >&6
11843  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
11844     then     then
11845          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1
11846          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
11847  #define BROKEN_O4_OPT 1  #define BROKEN_O4_OPT 1
11848  EOF  _ACEOF
11849    
11850    
           
11851          echo ODIR_DEBUG=-O >> makedefsafter          echo ODIR_DEBUG=-O >> makedefsafter
11852          echo >> makedefsafter          echo >> makedefsafter
11853          echo "$ac_t""yes .. turning off -O4" 1>&6          echo "$as_me:$LINENO: result: yes .. turning off -O4" >&5
11854    echo "${ECHO_T}yes .. turning off -O4" >&6
11855     else     else
11856          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
11857  fi  echo "${ECHO_T}no" >&6
11858    fi
11859    
11860  LIBS="$LDFLAGS $TLDFLAGS $LIBS $TLIBS"  LIBS="$LDFLAGS $TLDFLAGS $LIBS $TLIBS"
11861    
# Line 6604  O2FLAGS=$TO2FLAGS Line 11879  O2FLAGS=$TO2FLAGS
11879    
11880  if test -f h/$use.defs  ; then  if test -f h/$use.defs  ; then
11881    
11882      
11883    trap '' 1 2 15                                            ac_config_files="$ac_config_files makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp"
11884  cat > confcache <<\EOF  cat >confcache <<\_ACEOF
11885  # This file is a shell script that caches the results of configure  # This file is a shell script that caches the results of configure
11886  # tests run on this system so they can be shared between configure  # tests run on this system so they can be shared between configure
11887  # scripts and configure runs.  It is not useful on other systems.  # scripts and configure runs, see configure's option --config-cache.
11888  # 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
11889    # want to keep, you may remove or edit it.
11890  #  #
11891  # By default, configure uses ./config.cache as the cache file,  # config.status only pays attention to the cache file if you give it
11892  # 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.  
11893  #  #
11894  EOF  # `ac_cv_env_foo' variables (set or unset) will be overridden when
11895    # loading this file, other *unset* `ac_cv_foo' will be assigned the
11896    # following values.
11897    
11898    _ACEOF
11899    
11900  # The following way of writing the cache mishandles newlines in values,  # The following way of writing the cache mishandles newlines in values,
11901  # but we know of no workaround that is simple, portable, and efficient.  # but we know of no workaround that is simple, portable, and efficient.
11902  # So, don't put newlines in cache variables' values.  # So, don't put newlines in cache variables' values.
11903  # Ultrix sh set writes to stderr and can't be redirected directly,  # Ultrix sh set writes to stderr and can't be redirected directly,
11904  # 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.
11905  (set) 2>&1 |  {
11906    case `(ac_space=' '; set | grep ac_space) 2>&1` in    (set) 2>&1 |
11907    *ac_space=\ *)      case `(ac_space=' '; set | grep ac_space) 2>&1` in
11908      # `set' does not quote correctly, so add quotes (double-quote substitution      *ac_space=\ *)
11909      # turns \\\\ into \\, and sed turns \\ into \).        # `set' does not quote correctly, so add quotes (double-quote
11910      sed -n \        # substitution turns \\\\ into \\, and sed turns \\ into \).
11911        -e "s/'/'\\\\''/g" \        sed -n \
11912        -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"          "s/'/'\\\\''/g;
11913      ;;            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11914    *)        ;;
11915      # `set' quotes correctly as required by POSIX, so do not add quotes.      *)
11916      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.
11917      ;;        sed -n \
11918    esac >> confcache          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11919  if cmp -s $cache_file confcache; then        ;;
11920    :      esac;
11921  else  } |
11922      sed '
11923         t clear
11924         : clear
11925         s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11926         t end
11927         /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11928         : end' >>confcache
11929    if diff $cache_file confcache >/dev/null 2>&1; then :; else
11930    if test -w $cache_file; then    if test -w $cache_file; then
11931      echo "updating cache $cache_file"      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11932      cat confcache > $cache_file      cat confcache >$cache_file
11933    else    else
11934      echo "not updating unwritable cache $cache_file"      echo "not updating unwritable cache $cache_file"
11935    fi    fi
11936  fi  fi
11937  rm -f confcache  rm -f confcache
11938    
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
11939  test "x$prefix" = xNONE && prefix=$ac_default_prefix  test "x$prefix" = xNONE && prefix=$ac_default_prefix
11940  # Let make expand exec_prefix.  # Let make expand exec_prefix.
11941  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11942    
11943  # Any assignment to VPATH causes Sun make to only execute  # VPATH may cause trouble with some makes, so we remove $(srcdir),
11944  # the first set of double-colon rules, so remove it if not needed.  # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11945  # 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
11946    # (actually we leave an empty line to preserve line numbers).
11947  if test "x$srcdir" = x.; then  if test "x$srcdir" = x.; then
11948    ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'    ac_vpsub='/^[         ]*VPATH[        ]*=/{
11949    s/:*\$(srcdir):*/:/;
11950    s/:*\${srcdir}:*/:/;
11951    s/:*@srcdir@:*/:/;
11952    s/^\([^=]*=[    ]*\):*/\1/;
11953    s/:*$//;
11954    s/^[^=]*=[      ]*$//;
11955    }'
11956  fi  fi
11957    
 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15  
   
11958  DEFS=-DHAVE_CONFIG_H  DEFS=-DHAVE_CONFIG_H
11959    
11960  # Without the "./", some shells look in PATH for config.status.  ac_libobjs=
11961  : ${CONFIG_STATUS=./config.status}  ac_ltlibobjs=
11962    for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11963      # 1. Remove the extension, and $U if already installed.
11964      ac_i=`echo "$ac_i" |
11965             sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11966      # 2. Add them.
11967      ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11968      ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11969    done
11970    LIBOBJS=$ac_libobjs
11971    
11972  echo creating $CONFIG_STATUS  LTLIBOBJS=$ac_ltlibobjs
11973  rm -f $CONFIG_STATUS  
11974  cat > $CONFIG_STATUS <<EOF  
11975  #! /bin/sh  
11976  # Generated automatically by configure.  : ${CONFIG_STATUS=./config.status}
11977    ac_clean_files_save=$ac_clean_files
11978    ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11979    { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11980    echo "$as_me: creating $CONFIG_STATUS" >&6;}
11981    cat >$CONFIG_STATUS <<_ACEOF
11982    #! $SHELL
11983    # Generated by $as_me.
11984  # 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  
 #  
11985  # Compiler output produced by configure, useful for debugging  # Compiler output produced by configure, useful for debugging
11986  # configure, is in ./config.log if it exists.  # configure, is in config.log if it exists.
11987    
11988  ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"  debug=false
11989  for ac_option  ac_cs_recheck=false
11990    ac_cs_silent=false
11991    SHELL=\${CONFIG_SHELL-$SHELL}
11992    _ACEOF
11993    
11994    cat >>$CONFIG_STATUS <<\_ACEOF
11995    ## --------------------- ##
11996    ## M4sh Initialization.  ##
11997    ## --------------------- ##
11998    
11999    # Be Bourne compatible
12000    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12001      emulate sh
12002      NULLCMD=:
12003      # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12004      # is contrary to our usage.  Disable this feature.
12005      alias -g '${1+"$@"}'='"$@"'
12006    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12007      set -o posix
12008    fi
12009    
12010    # Support unset when possible.
12011    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12012      as_unset=unset
12013    else
12014      as_unset=false
12015    fi
12016    
12017    
12018    # Work around bugs in pre-3.0 UWIN ksh.
12019    $as_unset ENV MAIL MAILPATH
12020    PS1='$ '
12021    PS2='> '
12022    PS4='+ '
12023    
12024    # NLS nuisances.
12025    for as_var in \
12026      LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12027      LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12028      LC_TELEPHONE LC_TIME
12029    do
12030      if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12031        eval $as_var=C; export $as_var
12032      else
12033        $as_unset $as_var
12034      fi
12035    done
12036    
12037    # Required to use basename.
12038    if expr a : '\(a\)' >/dev/null 2>&1; then
12039      as_expr=expr
12040    else
12041      as_expr=false
12042    fi
12043    
12044    if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12045      as_basename=basename
12046    else
12047      as_basename=false
12048    fi
12049    
12050    
12051    # Name of the executable.
12052    as_me=`$as_basename "$0" ||
12053    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12054             X"$0" : 'X\(//\)$' \| \
12055             X"$0" : 'X\(/\)$' \| \
12056             .     : '\(.\)' 2>/dev/null ||
12057    echo X/"$0" |
12058        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12059              /^X\/\(\/\/\)$/{ s//\1/; q; }
12060              /^X\/\(\/\).*/{ s//\1/; q; }
12061              s/.*/./; q'`
12062    
12063    
12064    # PATH needs CR, and LINENO needs CR and PATH.
12065    # Avoid depending upon Character Ranges.
12066    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12067    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12068    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12069    as_cr_digits='0123456789'
12070    as_cr_alnum=$as_cr_Letters$as_cr_digits
12071    
12072    # The user is always right.
12073    if test "${PATH_SEPARATOR+set}" != set; then
12074      echo "#! /bin/sh" >conf$$.sh
12075      echo  "exit 0"   >>conf$$.sh
12076      chmod +x conf$$.sh
12077      if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12078        PATH_SEPARATOR=';'
12079      else
12080        PATH_SEPARATOR=:
12081      fi
12082      rm -f conf$$.sh
12083    fi
12084    
12085    
12086      as_lineno_1=$LINENO
12087      as_lineno_2=$LINENO
12088      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12089      test "x$as_lineno_1" != "x$as_lineno_2" &&
12090      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12091      # Find who we are.  Look in the path if we contain no path at all
12092      # relative or not.
12093      case $0 in
12094        *[\\/]* ) as_myself=$0 ;;
12095        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096    for as_dir in $PATH
12097    do
12098      IFS=$as_save_IFS
12099      test -z "$as_dir" && as_dir=.
12100      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12101    done
12102    
12103           ;;
12104      esac
12105      # We did not find ourselves, most probably we were run as `sh COMMAND'
12106      # in which case we are not to be found in the path.
12107      if test "x$as_myself" = x; then
12108        as_myself=$0
12109      fi
12110      if test ! -f "$as_myself"; then
12111        { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12112    echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12113       { (exit 1); exit 1; }; }
12114      fi
12115      case $CONFIG_SHELL in
12116      '')
12117        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12118    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12119  do  do
12120    case "\$ac_option" in    IFS=$as_save_IFS
12121      test -z "$as_dir" && as_dir=.
12122      for as_base in sh bash ksh sh5; do
12123             case $as_dir in
12124             /*)
12125               if ("$as_dir/$as_base" -c '
12126      as_lineno_1=$LINENO
12127      as_lineno_2=$LINENO
12128      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12129      test "x$as_lineno_1" != "x$as_lineno_2" &&
12130      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12131                 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12132                 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12133                 CONFIG_SHELL=$as_dir/$as_base
12134                 export CONFIG_SHELL
12135                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12136               fi;;
12137             esac
12138           done
12139    done
12140    ;;
12141      esac
12142    
12143      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12144      # uniformly replaced by the line number.  The first 'sed' inserts a
12145      # line-number line before each line; the second 'sed' does the real
12146      # work.  The second script uses 'N' to pair each line-number line
12147      # with the numbered line, and appends trailing '-' during
12148      # substitution so that $LINENO is not a special case at line end.
12149      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12150      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12151      sed '=' <$as_myself |
12152        sed '
12153          N
12154          s,$,-,
12155          : loop
12156          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12157          t loop
12158          s,-$,,
12159          s,^['$as_cr_digits']*\n,,
12160        ' >$as_me.lineno &&
12161      chmod +x $as_me.lineno ||
12162        { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12163    echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12164       { (exit 1); exit 1; }; }
12165    
12166      # Don't try to exec as it changes $[0], causing all sort of problems
12167      # (the dirname of $[0] is not the place where we might find the
12168      # original and so on.  Autoconf is especially sensible to this).
12169      . ./$as_me.lineno
12170      # Exit status is that of the last command.
12171      exit
12172    }
12173    
12174    
12175    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12176      *c*,-n*) ECHO_N= ECHO_C='
12177    ' ECHO_T='      ' ;;
12178      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12179      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12180    esac
12181    
12182    if expr a : '\(a\)' >/dev/null 2>&1; then
12183      as_expr=expr
12184    else
12185      as_expr=false
12186    fi
12187    
12188    rm -f conf$$ conf$$.exe conf$$.file
12189    echo >conf$$.file
12190    if ln -s conf$$.file conf$$ 2>/dev/null; then
12191      # We could just check for DJGPP; but this test a) works b) is more generic
12192      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12193      if test -f conf$$.exe; then
12194        # Don't use ln at all; we don't have any links
12195        as_ln_s='cp -p'
12196      else
12197        as_ln_s='ln -s'
12198      fi
12199    elif ln conf$$.file conf$$ 2>/dev/null; then
12200      as_ln_s=ln
12201    else
12202      as_ln_s='cp -p'
12203    fi
12204    rm -f conf$$ conf$$.exe conf$$.file
12205    
12206    if mkdir -p . 2>/dev/null; then
12207      as_mkdir_p=:
12208    else
12209      as_mkdir_p=false
12210    fi
12211    
12212    as_executable_p="test -f"
12213    
12214    # Sed expression to map a string onto a valid CPP name.
12215    as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12216    
12217    # Sed expression to map a string onto a valid variable name.
12218    as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12219    
12220    
12221    # IFS
12222    # We need space, tab and new line, in precisely that order.
12223    as_nl='
12224    '
12225    IFS="   $as_nl"
12226    
12227    # CDPATH.
12228    $as_unset CDPATH
12229    
12230    exec 6>&1
12231    
12232    # Open the log real soon, to keep \$[0] and so on meaningful, and to
12233    # report actual input values of CONFIG_FILES etc. instead of their
12234    # values after options handling.  Logging --version etc. is OK.
12235    exec 5>>config.log
12236    {
12237      echo
12238      sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12239    ## Running $as_me. ##
12240    _ASBOX
12241    } >&5
12242    cat >&5 <<_CSEOF
12243    
12244    This file was extended by $as_me, which was
12245    generated by GNU Autoconf 2.56.  Invocation command line was
12246    
12247      CONFIG_FILES    = $CONFIG_FILES
12248      CONFIG_HEADERS  = $CONFIG_HEADERS
12249      CONFIG_LINKS    = $CONFIG_LINKS
12250      CONFIG_COMMANDS = $CONFIG_COMMANDS
12251      $ $0 $@
12252    
12253    _CSEOF
12254    echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12255    echo >&5
12256    _ACEOF
12257    
12258    # Files that config.status was made for.
12259    if test -n "$ac_config_files"; then
12260      echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12261    fi
12262    
12263    if test -n "$ac_config_headers"; then
12264      echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12265    fi
12266    
12267    if test -n "$ac_config_links"; then
12268      echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12269    fi
12270    
12271    if test -n "$ac_config_commands"; then
12272      echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12273    fi
12274    
12275    cat >>$CONFIG_STATUS <<\_ACEOF
12276    
12277    ac_cs_usage="\
12278    \`$as_me' instantiates files from templates according to the
12279    current configuration.
12280    
12281    Usage: $0 [OPTIONS] [FILE]...
12282    
12283      -h, --help       print this help, then exit
12284      -V, --version    print version number, then exit
12285      -q, --quiet      do not print progress messages
12286      -d, --debug      don't remove temporary files
12287          --recheck    update $as_me by reconfiguring in the same conditions
12288      --file=FILE[:TEMPLATE]
12289                       instantiate the configuration file FILE
12290      --header=FILE[:TEMPLATE]
12291                       instantiate the configuration header FILE
12292    
12293    Configuration files:
12294    $config_files
12295    
12296    Configuration headers:
12297    $config_headers
12298    
12299    Report bugs to <bug-autoconf@gnu.org>."
12300    _ACEOF
12301    
12302    cat >>$CONFIG_STATUS <<_ACEOF
12303    ac_cs_version="\\
12304    config.status
12305    configured by $0, generated by GNU Autoconf 2.56,
12306      with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12307    
12308    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12309    Free Software Foundation, Inc.
12310    This config.status script is free software; the Free Software Foundation
12311    gives unlimited permission to copy, distribute and modify it."
12312    srcdir=$srcdir
12313    _ACEOF
12314    
12315    cat >>$CONFIG_STATUS <<\_ACEOF
12316    # If no file are specified by the user, then we need to provide default
12317    # value.  By we need to know if files were specified by the user.
12318    ac_need_defaults=:
12319    while test $# != 0
12320    do
12321      case $1 in
12322      --*=*)
12323        ac_option=`expr "x$1" : 'x\([^=]*\)='`
12324        ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12325        ac_shift=:
12326        ;;
12327      -*)
12328        ac_option=$1
12329        ac_optarg=$2
12330        ac_shift=shift
12331        ;;
12332      *) # This is not an option, so the user has probably given explicit
12333         # arguments.
12334         ac_option=$1
12335         ac_need_defaults=false;;
12336      esac
12337    
12338      case $ac_option in
12339      # Handling of the options.
12340    _ACEOF
12341    cat >>$CONFIG_STATUS <<\_ACEOF
12342    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12343      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"      ac_cs_recheck=: ;;
12344      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;    --version | --vers* | -V )
12345    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)      echo "$ac_cs_version"; exit 0 ;;
12346      echo "$CONFIG_STATUS generated by autoconf version 2.13"    --he | --h)
12347      exit 0 ;;      # Conflict between --help and --header
12348    -help | --help | --hel | --he | --h)      { { echo "$as_me:$LINENO: error: ambiguous option: $1
12349      echo "\$ac_cs_usage"; exit 0 ;;  Try \`$0 --help' for more information." >&5
12350    *) echo "\$ac_cs_usage"; exit 1 ;;  echo "$as_me: error: ambiguous option: $1
12351    Try \`$0 --help' for more information." >&2;}
12352       { (exit 1); exit 1; }; };;
12353      --help | --hel | -h )
12354        echo "$ac_cs_usage"; exit 0 ;;
12355      --debug | --d* | -d )
12356        debug=: ;;
12357      --file | --fil | --fi | --f )
12358        $ac_shift
12359        CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12360        ac_need_defaults=false;;
12361      --header | --heade | --head | --hea )
12362        $ac_shift
12363        CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12364        ac_need_defaults=false;;
12365      -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12366      | -silent | --silent | --silen | --sile | --sil | --si | --s)
12367        ac_cs_silent=: ;;
12368    
12369      # This is an error.
12370      -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12371    Try \`$0 --help' for more information." >&5
12372    echo "$as_me: error: unrecognized option: $1
12373    Try \`$0 --help' for more information." >&2;}
12374       { (exit 1); exit 1; }; } ;;
12375    
12376      *) ac_config_targets="$ac_config_targets $1" ;;
12377    
12378    esac    esac
12379      shift
12380  done  done
12381    
12382  ac_given_srcdir=$srcdir  ac_configure_extra_args=
12383    
12384  trap 'rm -fr `echo "makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp h/gclincl.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15  if $ac_cs_silent; then
12385  EOF    exec 6>/dev/null
12386  cat >> $CONFIG_STATUS <<EOF    ac_configure_extra_args="$ac_configure_extra_args --silent"
12387    fi
12388    
12389  # Protect against being on the right side of a sed subst in config.status.  _ACEOF
12390  sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;  cat >>$CONFIG_STATUS <<_ACEOF
12391   s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF  if \$ac_cs_recheck; then
12392  $ac_vpsub    echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12393  $extrasub    exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12394  s%@SHELL@%$SHELL%g  fi
12395  s%@CFLAGS@%$CFLAGS%g  
12396  s%@CPPFLAGS@%$CPPFLAGS%g  _ACEOF
12397  s%@CXXFLAGS@%$CXXFLAGS%g  
12398  s%@FFLAGS@%$FFLAGS%g  
12399  s%@DEFS@%$DEFS%g  
12400  s%@LDFLAGS@%$LDFLAGS%g  
12401  s%@LIBS@%$LIBS%g  
12402  s%@exec_prefix@%$exec_prefix%g  cat >>$CONFIG_STATUS <<\_ACEOF
12403  s%@prefix@%$prefix%g  for ac_config_target in $ac_config_targets
12404  s%@program_transform_name@%$program_transform_name%g  do
12405  s%@bindir@%$bindir%g    case "$ac_config_target" in
12406  s%@sbindir@%$sbindir%g    # Handling of arguments.
12407  s%@libexecdir@%$libexecdir%g    "makedefc" ) CONFIG_FILES="$CONFIG_FILES makedefc" ;;
12408  s%@datadir@%$datadir%g    "windows/gcl.iss" ) CONFIG_FILES="$CONFIG_FILES windows/gcl.iss" ;;
12409  s%@sysconfdir@%$sysconfdir%g    "windows/sysdir.bat" ) CONFIG_FILES="$CONFIG_FILES windows/sysdir.bat" ;;
12410  s%@sharedstatedir@%$sharedstatedir%g    "windows/install.lsp" ) CONFIG_FILES="$CONFIG_FILES windows/install.lsp" ;;
12411  s%@localstatedir@%$localstatedir%g    "h/gclincl.h" ) CONFIG_HEADERS="$CONFIG_HEADERS h/gclincl.h" ;;
12412  s%@libdir@%$libdir%g    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12413  s%@includedir@%$includedir%g  echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12414  s%@oldincludedir@%$oldincludedir%g     { (exit 1); exit 1; }; };;
12415  s%@infodir@%$infodir%g    esac
12416  s%@mandir@%$mandir%g  done
12417  s%@VERSION@%$VERSION%g  
12418  s%@host@%$host%g  # If the user did not use the arguments to specify the items to instantiate,
12419  s%@host_alias@%$host_alias%g  # then the envvar interface is used.  Set only those that are not.
12420  s%@host_cpu@%$host_cpu%g  # We use the long form for the default assignment because of an extremely
12421  s%@host_vendor@%$host_vendor%g  # bizarre bug on SunOS 4.1.3.
12422  s%@host_os@%$host_os%g  if $ac_need_defaults; then
12423  s%@PROCESSOR_FLAGS@%$PROCESSOR_FLAGS%g    test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12424  s%@CC@%$CC%g    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12425  s%@CPP@%$CPP%g  fi
12426  s%@AWK@%$AWK%g  
12427  s%@MAKEINFO@%$MAKEINFO%g  # Have a temporary directory for convenience.  Make it in the build tree
12428  s%@GMP@%$GMP%g  # simply because there is no reason to put it here, and in addition,
12429  s%@GMPDIR@%$GMPDIR%g  # creating and moving files from /tmp can sometimes cause problems.
12430  s%@X_CFLAGS@%$X_CFLAGS%g  # Create a temporary directory, and hook for its removal unless debugging.
12431  s%@X_PRE_LIBS@%$X_PRE_LIBS%g  $debug ||
12432  s%@X_LIBS@%$X_LIBS%g  {
12433  s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g    trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12434  s%@BUILD_BFD@%$BUILD_BFD%g    trap '{ (exit 1); exit 1; }' 1 2 13 15
12435  s%@LITTLE_END@%$LITTLE_END%g  }
12436  s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g  
12437  s%@FLISP@%$FLISP%g  # Create a (secure) tmp directory for tmp files.
12438  s%@SYSTEM@%$SYSTEM%g  
12439  s%@CLSTANDARD@%$CLSTANDARD%g  {
12440  s%@PAGEWIDTH@%$PAGEWIDTH%g    tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12441  s%@RL_OBJS@%$RL_OBJS%g    test -n "$tmp" && test -d "$tmp"
12442  s%@RL_LIB@%$RL_LIB%g  }  ||
12443  s%@NO_PROFILE@%$NO_PROFILE%g  {
12444  s%@HAVE_SETENV@%$HAVE_SETENV%g    tmp=./confstat$$-$RANDOM
12445  s%@HAVE_PUTENV@%$HAVE_PUTENV%g    (umask 077 && mkdir $tmp)
12446  s%@USE_CLEANUP@%$USE_CLEANUP%g  } ||
12447  s%@ENDIAN_ALREADY_DEFINED@%$ENDIAN_ALREADY_DEFINED%g  {
12448  s%@HAVE_SV_ONSTACK@%$HAVE_SV_ONSTACK%g     echo "$me: cannot create a temporary directory in ." >&2
12449  s%@HAVE_SIGSYS@%$HAVE_SIGSYS%g     { (exit 1); exit 1; }
12450  s%@HAVE_SIGEMT@%$HAVE_SIGEMT%g  }
12451  s%@EMACS@%$EMACS%g  
12452  s%@EMACS_SITE_LISP@%$EMACS_SITE_LISP%g  _ACEOF
12453  s%@EMACS_DEFAULT_EL@%$EMACS_DEFAULT_EL%g  
12454  s%@INFO_DIR@%$INFO_DIR%g  cat >>$CONFIG_STATUS <<_ACEOF
12455  s%@TCLSH@%$TCLSH%g  
12456  s%@TK_CONFIG_PREFIX@%$TK_CONFIG_PREFIX%g  #
12457  s%@TK_LIBRARY@%$TK_LIBRARY%g  # CONFIG_FILES section.
12458  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%@LEADING_UNDERSCORE@%$LEADING_UNDERSCORE%g  
 s%@GNU_LD@%$GNU_LD%g  
 s%@LD_STACK_FLAGS@%$LD_STACK_FLAGS%g  
 s%@use@%$use%g  
12459    
12460    # No need to generate the scripts if there are no CONFIG_FILES.
12461    # This happens for instance when ./config.status config.h
12462    if test -n "\$CONFIG_FILES"; then
12463      # Protect against being on the right side of a sed subst in config.status.
12464      sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12465       s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12466    s,@SHELL@,$SHELL,;t t
12467    s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12468    s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12469    s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12470    s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12471    s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12472    s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12473    s,@exec_prefix@,$exec_prefix,;t t
12474    s,@prefix@,$prefix,;t t
12475    s,@program_transform_name@,$program_transform_name,;t t
12476    s,@bindir@,$bindir,;t t
12477    s,@sbindir@,$sbindir,;t t
12478    s,@libexecdir@,$libexecdir,;t t
12479    s,@datadir@,$datadir,;t t
12480    s,@sysconfdir@,$sysconfdir,;t t
12481    s,@sharedstatedir@,$sharedstatedir,;t t
12482    s,@localstatedir@,$localstatedir,;t t
12483    s,@libdir@,$libdir,;t t
12484    s,@includedir@,$includedir,;t t
12485    s,@oldincludedir@,$oldincludedir,;t t
12486    s,@infodir@,$infodir,;t t
12487    s,@mandir@,$mandir,;t t
12488    s,@build_alias@,$build_alias,;t t
12489    s,@host_alias@,$host_alias,;t t
12490    s,@target_alias@,$target_alias,;t t
12491    s,@DEFS@,$DEFS,;t t
12492    s,@ECHO_C@,$ECHO_C,;t t
12493    s,@ECHO_N@,$ECHO_N,;t t
12494    s,@ECHO_T@,$ECHO_T,;t t
12495    s,@LIBS@,$LIBS,;t t
12496    s,@VERSION@,$VERSION,;t t
12497    s,@build@,$build,;t t
12498    s,@build_cpu@,$build_cpu,;t t
12499    s,@build_vendor@,$build_vendor,;t t
12500    s,@build_os@,$build_os,;t t
12501    s,@host@,$host,;t t
12502    s,@host_cpu@,$host_cpu,;t t
12503    s,@host_vendor@,$host_vendor,;t t
12504    s,@host_os@,$host_os,;t t
12505    s,@PROCESSOR_FLAGS@,$PROCESSOR_FLAGS,;t t
12506    s,@CC@,$CC,;t t
12507    s,@CFLAGS@,$CFLAGS,;t t
12508    s,@LDFLAGS@,$LDFLAGS,;t t
12509    s,@CPPFLAGS@,$CPPFLAGS,;t t
12510    s,@ac_ct_CC@,$ac_ct_CC,;t t
12511    s,@EXEEXT@,$EXEEXT,;t t
12512    s,@OBJEXT@,$OBJEXT,;t t
12513    s,@CPP@,$CPP,;t t
12514    s,@AWK@,$AWK,;t t
12515    s,@MAKEINFO@,$MAKEINFO,;t t
12516    s,@EGREP@,$EGREP,;t t
12517    s,@GMP@,$GMP,;t t
12518    s,@GMPDIR@,$GMPDIR,;t t
12519    s,@X_CFLAGS@,$X_CFLAGS,;t t
12520    s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12521    s,@X_LIBS@,$X_LIBS,;t t
12522    s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12523    s,@BUILD_BFD@,$BUILD_BFD,;t t
12524    s,@LITTLE_END@,$LITTLE_END,;t t
12525    s,@HAVE_LONG_LONG@,$HAVE_LONG_LONG,;t t
12526    s,@FLISP@,$FLISP,;t t
12527    s,@SYSTEM@,$SYSTEM,;t t
12528    s,@CLSTANDARD@,$CLSTANDARD,;t t
12529    s,@PAGEWIDTH@,$PAGEWIDTH,;t t
12530    s,@RL_OBJS@,$RL_OBJS,;t t
12531    s,@RL_LIB@,$RL_LIB,;t t
12532    s,@NO_PROFILE@,$NO_PROFILE,;t t
12533    s,@HAVE_SETENV@,$HAVE_SETENV,;t t
12534    s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t
12535    s,@USE_CLEANUP@,$USE_CLEANUP,;t t
12536    s,@ENDIAN_ALREADY_DEFINED@,$ENDIAN_ALREADY_DEFINED,;t t
12537    s,@HAVE_SV_ONSTACK@,$HAVE_SV_ONSTACK,;t t
12538    s,@HAVE_SIGSYS@,$HAVE_SIGSYS,;t t
12539    s,@HAVE_SIGEMT@,$HAVE_SIGEMT,;t t
12540    s,@EMACS@,$EMACS,;t t
12541    s,@EMACS_SITE_LISP@,$EMACS_SITE_LISP,;t t
12542    s,@EMACS_DEFAULT_EL@,$EMACS_DEFAULT_EL,;t t
12543    s,@INFO_DIR@,$INFO_DIR,;t t
12544    s,@TCLSH@,$TCLSH,;t t
12545    s,@TK_CONFIG_PREFIX@,$TK_CONFIG_PREFIX,;t t
12546    s,@TK_LIBRARY@,$TK_LIBRARY,;t t
12547    s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
12548    s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
12549    s,@TK_INCLUDE@,$TK_INCLUDE,;t t
12550    s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
12551    s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
12552    s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
12553    s,@TK_XLIBSW@,$TK_XLIBSW,;t t
12554    s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
12555    s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
12556    s,@TCL_LIBS@,$TCL_LIBS,;t t
12557    s,@NOTIFY@,$NOTIFY,;t t
12558    s,@BROKEN_O4_OPT@,$BROKEN_O4_OPT,;t t
12559    s,@FINAL_CFLAGS@,$FINAL_CFLAGS,;t t
12560    s,@NIFLAGS@,$NIFLAGS,;t t
12561    s,@O3FLAGS@,$O3FLAGS,;t t
12562    s,@O2FLAGS@,$O2FLAGS,;t t
12563    s,@EXTRA_LOBJS@,$EXTRA_LOBJS,;t t
12564    s,@LEADING_UNDERSCORE@,$LEADING_UNDERSCORE,;t t
12565    s,@GNU_LD@,$GNU_LD,;t t
12566    s,@LD_STACK_FLAGS@,$LD_STACK_FLAGS,;t t
12567    s,@use@,$use,;t t
12568    s,@LIBOBJS@,$LIBOBJS,;t t
12569    s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12570  CEOF  CEOF
 EOF  
12571    
12572  cat >> $CONFIG_STATUS <<\EOF  _ACEOF
12573    
12574  # Split the substitutions into bite-sized pieces for seds with    cat >>$CONFIG_STATUS <<\_ACEOF
12575  # small command number limits, like on Digital OSF/1 and HP-UX.    # Split the substitutions into bite-sized pieces for seds with
12576  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.
12577  ac_file=1 # Number of current file.    ac_max_sed_lines=48
12578  ac_beg=1 # First line for current file.    ac_sed_frag=1 # Number of current file.
12579  ac_end=$ac_max_sed_cmds # Line after last line for current file.    ac_beg=1 # First line for current file.
12580  ac_more_lines=:    ac_end=$ac_max_sed_lines # Line after last line for current file.
12581  ac_sed_cmds=""    ac_more_lines=:
12582  while $ac_more_lines; do    ac_sed_cmds=
12583    if test $ac_beg -gt 1; then    while $ac_more_lines; do
12584      sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file      if test $ac_beg -gt 1; then
12585    else        sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12586      sed "${ac_end}q" conftest.subs > conftest.s$ac_file      else
12587    fi        sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12588    if test ! -s conftest.s$ac_file; then      fi
12589      ac_more_lines=false      if test ! -s $tmp/subs.frag; then
12590      rm -f conftest.s$ac_file        ac_more_lines=false
   else  
     if test -z "$ac_sed_cmds"; then  
       ac_sed_cmds="sed -f conftest.s$ac_file"  
12591      else      else
12592        ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"        # The purpose of the label and of the branching condition is to
12593          # speed up the sed processing (if there are no `@' at all, there
12594          # is no need to browse any of the substitutions).
12595          # These are the two extra sed commands mentioned above.
12596          (echo ':t
12597      /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12598          if test -z "$ac_sed_cmds"; then
12599            ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12600          else
12601            ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12602          fi
12603          ac_sed_frag=`expr $ac_sed_frag + 1`
12604          ac_beg=$ac_end
12605          ac_end=`expr $ac_end + $ac_max_sed_lines`
12606      fi      fi
12607      ac_file=`expr $ac_file + 1`    done
12608      ac_beg=$ac_end    if test -z "$ac_sed_cmds"; then
12609      ac_end=`expr $ac_end + $ac_max_sed_cmds`      ac_sed_cmds=cat
12610    fi    fi
12611  done  fi # test -n "$CONFIG_FILES"
 if test -z "$ac_sed_cmds"; then  
   ac_sed_cmds=cat  
 fi  
 EOF  
12612    
12613  cat >> $CONFIG_STATUS <<EOF  _ACEOF
12614    cat >>$CONFIG_STATUS <<\_ACEOF
12615  CONFIG_FILES=\${CONFIG_FILES-"makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp"}  for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 EOF  
 cat >> $CONFIG_STATUS <<\EOF  
 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then  
12616    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12617    case "$ac_file" in    case $ac_file in
12618    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
12619         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
12620    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12621            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12622      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12623            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12624      * )   ac_file_in=$ac_file.in ;;
12625    esac    esac
12626    
12627    # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12628      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12629    # Remove last slash and all that follows it.  Not all systems have dirname.  $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12630    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`           X"$ac_file" : 'X\(//\)[^/]' \| \
12631    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then           X"$ac_file" : 'X\(//\)$' \| \
12632      # The file is in a subdirectory.           X"$ac_file" : 'X\(/\)' \| \
12633      test ! -d "$ac_dir" && mkdir "$ac_dir"           .     : '\(.\)' 2>/dev/null ||
12634      ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"  echo X"$ac_file" |
12635      # A "../" for each directory in $ac_dir_suffix.      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12636      ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12637    else            /^X\(\/\/\)$/{ s//\1/; q; }
12638      ac_dir_suffix= ac_dots=            /^X\(\/\).*/{ s//\1/; q; }
12639    fi            s/.*/./; q'`
12640      { if $as_mkdir_p; then
12641    case "$ac_given_srcdir" in      mkdir -p "$ac_dir"
12642    .)  srcdir=.    else
12643        if test -z "$ac_dots"; then top_srcdir=.      as_dir="$ac_dir"
12644        else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;      as_dirs=
12645    /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;      while test ! -d "$as_dir"; do
12646          as_dirs="$as_dir $as_dirs"
12647          as_dir=`(dirname "$as_dir") 2>/dev/null ||
12648    $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12649             X"$as_dir" : 'X\(//\)[^/]' \| \
12650             X"$as_dir" : 'X\(//\)$' \| \
12651             X"$as_dir" : 'X\(/\)' \| \
12652             .     : '\(.\)' 2>/dev/null ||
12653    echo X"$as_dir" |
12654        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12655              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12656              /^X\(\/\/\)$/{ s//\1/; q; }
12657              /^X\(\/\).*/{ s//\1/; q; }
12658              s/.*/./; q'`
12659        done
12660        test ! -n "$as_dirs" || mkdir $as_dirs
12661      fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12662    echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12663       { (exit 1); exit 1; }; }; }
12664    
12665      ac_builddir=.
12666    
12667    if test "$ac_dir" != .; then
12668      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12669      # A "../" for each directory in $ac_dir_suffix.
12670      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12671    else
12672      ac_dir_suffix= ac_top_builddir=
12673    fi
12674    
12675    case $srcdir in
12676      .)  # No --srcdir option.  We are building in place.
12677        ac_srcdir=.
12678        if test -z "$ac_top_builddir"; then
12679           ac_top_srcdir=.
12680        else
12681           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12682        fi ;;
12683      [\\/]* | ?:[\\/]* )  # Absolute path.
12684        ac_srcdir=$srcdir$ac_dir_suffix;
12685        ac_top_srcdir=$srcdir ;;
12686    *) # Relative path.    *) # Relative path.
12687      srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12688      top_srcdir="$ac_dots$ac_given_srcdir" ;;      ac_top_srcdir=$ac_top_builddir$srcdir ;;
12689    esac  esac
12690    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12691    # absolute.
12692    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12693    ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12694    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12695    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12696    
12697    
   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  
12698    
12699    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
12700    sed -e "$ac_comsub      { echo "$as_me:$LINENO: creating $ac_file" >&5
12701  s%@configure_input@%$configure_input%g  echo "$as_me: creating $ac_file" >&6;}
12702  s%@srcdir@%$srcdir%g      rm -f "$ac_file"
12703  s%@top_srcdir@%$top_srcdir%g    fi
12704  " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file    # Let's still pretend it is `configure' which instantiates (i.e., don't
12705  fi; done    # use $as_me), people would be surprised to read:
12706  rm -f conftest.s*    #    /* config.h.  Generated by config.status.  */
12707      if test x"$ac_file" = x-; then
12708        configure_input=
12709      else
12710        configure_input="$ac_file.  "
12711      fi
12712      configure_input=$configure_input"Generated from `echo $ac_file_in |
12713                                         sed 's,.*/,,'` by configure."
12714    
12715      # First look for the input files in the build tree, otherwise in the
12716      # src tree.
12717      ac_file_inputs=`IFS=:
12718        for f in $ac_file_in; do
12719          case $f in
12720          -) echo $tmp/stdin ;;
12721          [\\/$]*)
12722             # Absolute (can't be DOS-style, as IFS=:)
12723             test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12724    echo "$as_me: error: cannot find input file: $f" >&2;}
12725       { (exit 1); exit 1; }; }
12726             echo $f;;
12727          *) # Relative
12728             if test -f "$f"; then
12729               # Build tree
12730               echo $f
12731             elif test -f "$srcdir/$f"; then
12732               # Source tree
12733               echo $srcdir/$f
12734             else
12735               # /dev/null tree
12736               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12737    echo "$as_me: error: cannot find input file: $f" >&2;}
12738       { (exit 1); exit 1; }; }
12739             fi;;
12740          esac
12741        done` || { (exit 1); exit 1; }
12742    _ACEOF
12743    cat >>$CONFIG_STATUS <<_ACEOF
12744      sed "$ac_vpsub
12745    $extrasub
12746    _ACEOF
12747    cat >>$CONFIG_STATUS <<\_ACEOF
12748    :t
12749    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12750    s,@configure_input@,$configure_input,;t t
12751    s,@srcdir@,$ac_srcdir,;t t
12752    s,@abs_srcdir@,$ac_abs_srcdir,;t t
12753    s,@top_srcdir@,$ac_top_srcdir,;t t
12754    s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12755    s,@builddir@,$ac_builddir,;t t
12756    s,@abs_builddir@,$ac_abs_builddir,;t t
12757    s,@top_builddir@,$ac_top_builddir,;t t
12758    s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12759    " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12760      rm -f $tmp/stdin
12761      if test x"$ac_file" != x-; then
12762        mv $tmp/out $ac_file
12763      else
12764        cat $tmp/out
12765        rm -f $tmp/out
12766      fi
12767    
12768    done
12769    _ACEOF
12770    cat >>$CONFIG_STATUS <<\_ACEOF
12771    
12772    #
12773    # CONFIG_HEADER section.
12774    #
12775    
12776  # 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
12777  # 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.
12778  #  #
12779  # ac_d sets the value in "#define NAME VALUE" lines.  # ac_d sets the value in "#define NAME VALUE" lines.
12780  ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'  ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12781  ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'  ac_dB='[        ].*$,\1#\2'
12782  ac_dC='\3'  ac_dC=' '
12783  ac_dD='%g'  ac_dD=',;t'
12784  # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".  # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12785  ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12786  ac_uB='\([      ]\)%\1#\2define\3'  ac_uB='$,\1#\2define\3'
12787  ac_uC=' '  ac_uC=' '
12788  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'  
12789    
12790  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  
12791    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12792    case "$ac_file" in    case $ac_file in
12793    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
12794         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
12795    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12796            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12797      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12798            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12799      * )   ac_file_in=$ac_file.in ;;
12800    esac    esac
12801    
12802    echo creating $ac_file    test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12803    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  
12804    
12805  EOF    # First look for the input files in the build tree, otherwise in the
12806      # src tree.
12807  # Transform confdefs.h into a sed script conftest.vals that substitutes    ac_file_inputs=`IFS=:
12808  # the proper values into config.h.in to produce config.h.  And first:      for f in $ac_file_in; do
12809  # Protect against being on the right side of a sed subst in config.status.        case $f in
12810  # Protect against being in an unquoted here document in config.status.        -) echo $tmp/stdin ;;
12811  rm -f conftest.vals        [\\/$]*)
12812  cat > conftest.hdr <<\EOF           # Absolute (can't be DOS-style, as IFS=:)
12813  s/[\\&%]/\\&/g           test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12814  s%[\\$`]%\\&%g  echo "$as_me: error: cannot find input file: $f" >&2;}
12815  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; }; }
12816  s%ac_d%ac_u%gp           echo $f;;
12817  s%ac_u%ac_e%gp        *) # Relative
12818  EOF           if test -f "$f"; then
12819  sed -n -f conftest.hdr confdefs.h > conftest.vals             # Build tree
12820  rm -f conftest.hdr             echo $f
12821             elif test -f "$srcdir/$f"; then
12822               # Source tree
12823               echo $srcdir/$f
12824             else
12825               # /dev/null tree
12826               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12827    echo "$as_me: error: cannot find input file: $f" >&2;}
12828       { (exit 1); exit 1; }; }
12829             fi;;
12830          esac
12831        done` || { (exit 1); exit 1; }
12832      # Remove the trailing spaces.
12833      sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12834    
12835    _ACEOF
12836    
12837    # Transform confdefs.h into two sed scripts, `conftest.defines' and
12838    # `conftest.undefs', that substitutes the proper values into
12839    # config.h.in to produce config.h.  The first handles `#define'
12840    # templates, and the second `#undef' templates.
12841    # And first: Protect against being on the right side of a sed subst in
12842    # config.status.  Protect against being in an unquoted here document
12843    # in config.status.
12844    rm -f conftest.defines conftest.undefs
12845    # Using a here document instead of a string reduces the quoting nightmare.
12846    # Putting comments in sed scripts is not portable.
12847    #
12848    # `end' is used to avoid that the second main sed command (meant for
12849    # 0-ary CPP macros) applies to n-ary macro definitions.
12850    # See the Autoconf documentation for `clear'.
12851    cat >confdef2sed.sed <<\_ACEOF
12852    s/[\\&,]/\\&/g
12853    s,[\\$`],\\&,g
12854    t clear
12855    : clear
12856    s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12857    t end
12858    s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12859    : end
12860    _ACEOF
12861    # If some macros were called several times there might be several times
12862    # the same #defines, which is useless.  Nevertheless, we may not want to
12863    # sort them, since we want the *last* AC-DEFINE to be honored.
12864    uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12865    sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12866    rm -f confdef2sed.sed
12867    
12868  # This sed command replaces #undef with comments.  This is necessary, for  # This sed command replaces #undef with comments.  This is necessary, for
12869  # example, in the case of _POSIX_SOURCE, which is predefined and required  # example, in the case of _POSIX_SOURCE, which is predefined and required
12870  # on some systems where configure will not decide to define it.  # on some systems where configure will not decide to define it.
12871  cat >> conftest.vals <<\EOF  cat >>conftest.undefs <<\_ACEOF
12872  s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%  s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12873  EOF  _ACEOF
12874    
12875  # Break up conftest.vals because some shells have a limit on  # Break up conftest.defines because some shells have a limit on the size
12876  # the size of here documents, and old seds have small limits too.  # of here documents, and old seds have small limits too (100 cmds).
12877    echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12878    echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12879    echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12880    echo '  :' >>$CONFIG_STATUS
12881  rm -f conftest.tail  rm -f conftest.tail
12882  while :  while grep . conftest.defines >/dev/null
12883  do  do
12884    ac_lines=`grep -c . conftest.vals`    # Write a limited-size here document to $tmp/defines.sed.
12885    # grep -c gives empty output for an empty file on some AIX systems.    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12886    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi    # Speed up: don't consider the non `#define' lines.
12887    # Write a limited-size here document to conftest.frag.    echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12888    echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS    # Work around the forget-to-reset-the-flag bug.
12889    sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS    echo 't clr' >>$CONFIG_STATUS
12890      echo ': clr' >>$CONFIG_STATUS
12891      sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12892    echo 'CEOF    echo 'CEOF
12893    sed -f conftest.frag conftest.in > conftest.out    sed -f $tmp/defines.sed $tmp/in >$tmp/out
12894    rm -f conftest.in    rm -f $tmp/in
12895    mv conftest.out conftest.in    mv $tmp/out $tmp/in
12896  ' >> $CONFIG_STATUS  ' >>$CONFIG_STATUS
12897    sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail    sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12898    rm -f conftest.vals    rm -f conftest.defines
12899    mv conftest.tail conftest.vals    mv conftest.tail conftest.defines
12900  done  done
12901  rm -f conftest.vals  rm -f conftest.defines
12902    echo '  fi # grep' >>$CONFIG_STATUS
12903  cat >> $CONFIG_STATUS <<\EOF  echo >>$CONFIG_STATUS
12904    rm -f conftest.frag conftest.h  
12905    echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h  # Break up conftest.undefs because some shells have a limit on the size
12906    cat conftest.in >> conftest.h  # of here documents, and old seds have small limits too (100 cmds).
12907    rm -f conftest.in  echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12908    if cmp -s $ac_file conftest.h 2>/dev/null; then  rm -f conftest.tail
12909      echo "$ac_file is unchanged"  while grep . conftest.undefs >/dev/null
12910      rm -f conftest.h  do
12911    else    # Write a limited-size here document to $tmp/undefs.sed.
12912      # Remove last slash and all that follows it.  Not all systems have dirname.    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12913        ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`    # Speed up: don't consider the non `#undef'
12914        if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then    echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12915        # The file is in a subdirectory.    # Work around the forget-to-reset-the-flag bug.
12916        test ! -d "$ac_dir" && mkdir "$ac_dir"    echo 't clr' >>$CONFIG_STATUS
12917      fi    echo ': clr' >>$CONFIG_STATUS
12918      rm -f $ac_file    sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12919      mv conftest.h $ac_file    echo 'CEOF
12920      sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12921      rm -f $tmp/in
12922      mv $tmp/out $tmp/in
12923    ' >>$CONFIG_STATUS
12924      sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12925      rm -f conftest.undefs
12926      mv conftest.tail conftest.undefs
12927    done
12928    rm -f conftest.undefs
12929    
12930    cat >>$CONFIG_STATUS <<\_ACEOF
12931      # Let's still pretend it is `configure' which instantiates (i.e., don't
12932      # use $as_me), people would be surprised to read:
12933      #    /* config.h.  Generated by config.status.  */
12934      if test x"$ac_file" = x-; then
12935        echo "/* Generated by configure.  */" >$tmp/config.h
12936      else
12937        echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12938    fi    fi
12939  fi; done    cat $tmp/in >>$tmp/config.h
12940      rm -f $tmp/in
12941      if test x"$ac_file" != x-; then
12942        if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12943          { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12944    echo "$as_me: $ac_file is unchanged" >&6;}
12945        else
12946          ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12947    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12948             X"$ac_file" : 'X\(//\)[^/]' \| \
12949             X"$ac_file" : 'X\(//\)$' \| \
12950             X"$ac_file" : 'X\(/\)' \| \
12951             .     : '\(.\)' 2>/dev/null ||
12952    echo X"$ac_file" |
12953        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12954              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12955              /^X\(\/\/\)$/{ s//\1/; q; }
12956              /^X\(\/\).*/{ s//\1/; q; }
12957              s/.*/./; q'`
12958          { if $as_mkdir_p; then
12959        mkdir -p "$ac_dir"
12960      else
12961        as_dir="$ac_dir"
12962        as_dirs=
12963        while test ! -d "$as_dir"; do
12964          as_dirs="$as_dir $as_dirs"
12965          as_dir=`(dirname "$as_dir") 2>/dev/null ||
12966    $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12967             X"$as_dir" : 'X\(//\)[^/]' \| \
12968             X"$as_dir" : 'X\(//\)$' \| \
12969             X"$as_dir" : 'X\(/\)' \| \
12970             .     : '\(.\)' 2>/dev/null ||
12971    echo X"$as_dir" |
12972        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12973              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12974              /^X\(\/\/\)$/{ s//\1/; q; }
12975              /^X\(\/\).*/{ s//\1/; q; }
12976              s/.*/./; q'`
12977        done
12978        test ! -n "$as_dirs" || mkdir $as_dirs
12979      fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12980    echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12981       { (exit 1); exit 1; }; }; }
12982    
12983  EOF        rm -f $ac_file
12984  cat >> $CONFIG_STATUS <<EOF        mv $tmp/config.h $ac_file
12985        fi
12986      else
12987        cat $tmp/config.h
12988        rm -f $tmp/config.h
12989      fi
12990    done
12991    _ACEOF
12992    
12993  EOF  cat >>$CONFIG_STATUS <<\_ACEOF
 cat >> $CONFIG_STATUS <<\EOF  
12994    
12995  exit 0  { (exit 0); exit 0; }
12996  EOF  _ACEOF
12997  chmod +x $CONFIG_STATUS  chmod +x $CONFIG_STATUS
12998  rm -fr confdefs* $ac_clean_files  ac_clean_files=$ac_clean_files_save
12999  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1  
13000    
13001    # configure is writing to config.log, and then calls config.status.
13002    # config.status does its own redirection, appending to config.log.
13003    # Unfortunately, on DOS this fails, as config.log is still kept open
13004    # by configure, so config.status won't be able to write to it; its
13005    # output is simply discarded.  So we exec the FD to /dev/null,
13006    # effectively closing config.log, so it can be properly (re)opened and
13007    # appended to by config.status.  When coming back to configure, we
13008    # need to make the FD available again.
13009    if test "$no_create" != yes; then
13010      ac_cs_success=:
13011      ac_config_status_args=
13012      test "$silent" = yes &&
13013        ac_config_status_args="$ac_config_status_args --quiet"
13014      exec 5>/dev/null
13015      $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13016      exec 5>>config.log
13017      # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13018      # would make configure fail if this is the last instruction.
13019      $ac_cs_success || { (exit 1); exit 1; }
13020    fi
13021    
13022    echo makedefc    echo makedefc
13023    cat makedefc    cat makedefc

Legend:
Removed from v.1.169  
changed lines
  Added in v.1.170

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