/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

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

revision 1.107.4.1.2.2.2.48.2.3.2.1.4.2 by camm, Fri Aug 13 16:15:26 2004 UTC revision 1.107.4.1.2.2.2.48.2.3.2.1.4.2.2.1 by mjthomas, Fri Jan 14 05:45:01 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    if expr a : '\(a\)' >/dev/null 2>&1; then
195      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  # Defaults:  # IFS
234  ac_help=  # 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-machine=XXXX will force the use of one of the definitions in h/XXXX.defs "  PACKAGE_TARNAME=
269  ac_help="$ac_help  PACKAGE_VERSION=
270   --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems "  PACKAGE_STRING=
271  ac_help="$ac_help  PACKAGE_BUGREPORT=
272   --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh  "  
273  ac_help="$ac_help  # Factoring default headers for most tests.
274   --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh  "  ac_includes_default="\
275  ac_help="$ac_help  #include <stdio.h>
276   --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info  "  #if HAVE_SYS_TYPES_H
277  ac_help="$ac_help  # include <sys/types.h>
278   --enable-emacsdir=XXXX will manually specify the location for elisp files  "  #endif
279  ac_help="$ac_help  #if HAVE_SYS_STAT_H
280   --enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes) "  # include <sys/stat.h>
281  ac_help="$ac_help  #endif
282   --enable-japi=yes will compile in support for the JAPI graphical interface if present on your system"  #if STDC_HEADERS
283  ac_help="$ac_help  # include <stdlib.h>
284   --enable-xdr=yes will compile in support for XDR"  # include <stddef.h>
285  ac_help="$ac_help  #else
286   --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images  # if HAVE_STDLIB_H
287          "  #  include <stdlib.h>
288  ac_help="$ac_help  # endif
289   --enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files  #endif
290          "  #if HAVE_STRING_H
291  ac_help="$ac_help  # if !STDC_HEADERS && HAVE_MEMORY_H
292   --enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files  #  include <memory.h>
293          "  # endif
294  ac_help="$ac_help  # include <string.h>
295   --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files  #endif
296          "  #if HAVE_STRINGS_H
297  ac_help="$ac_help  # include <strings.h>
298   --enable-custreloc uses custom gcl code if available for loading  and relocationing object files  #endif
299          "  #if HAVE_INTTYPES_H
300  ac_help="$ac_help  # include <inttypes.h>
301   --enable-debug builds gcl with -g in CFLAGS to enable running under gdb  #else
302          "  # if HAVE_STDINT_H
303  ac_help="$ac_help  #  include <stdint.h>
304   --enable-gprof builds gcl with -pg in CFLAGS to enable profiling with gprof  # endif
305          "  #endif
306  ac_help="$ac_help  #if HAVE_UNISTD_H
307   --enable-static will link your GCL against static as opposed to shared system libraries  "  # include <unistd.h>
308  ac_help="$ac_help  #endif"
309   --enable-pic builds gcl with -fPIC in CFLAGS  
310          "  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 use LIBOBJS LTLIBOBJS'
311  ac_help="$ac_help  ac_subst_files=''
  --enable-oldgmp will link against gmp2 instead of gmp3  
         "  
 ac_help="$ac_help  
  --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source  
         "  
 ac_help="$ac_help  
   --with-x                use the X Window System"  
 ac_help="$ac_help  
 --enable-readine    enables command line completion via the readline library "  
 ac_help="$ac_help  
 --enable-ansi builds a large gcl aiming for ansi compliance,  
                     --disable-ansi builds the smaller traditional CLtL1 image"  
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 98  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 115  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 133  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 194  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 291  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 317  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 353  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 363  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 374  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 436  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 538  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-machine=XXXX will force the use of one of the definitions in h/XXXX.defs
856     --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems
857     --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh
858     --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh
859     --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info
860     --enable-emacsdir=XXXX will manually specify the location for elisp files
861     --enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes)
862     --enable-japi=yes will compile in support for the JAPI graphical interface if present on your system
863     --enable-xdr=yes will compile in support for XDR
864     --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images
865    
866     --enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files
867    
868     --enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files
869    
870     --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files
871    
872     --enable-custreloc uses custom gcl code if available for loading  and relocationing object files
873    
874     --enable-debug builds gcl with -g in CFLAGS to enable running under gdb
875    
876     --enable-gprof builds gcl with -pg in CFLAGS to enable profiling with gprof
877    
878     --enable-static will link your GCL against static as opposed to shared system libraries
879     --enable-pic builds gcl with -fPIC in CFLAGS
880    
881     --enable-oldgmp will link against gmp2 instead of gmp3
882    
883     --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source
884    
885    --enable-readine    enables command line completion via the readline library
886    --enable-ansi builds a large gcl aiming for ansi compliance,
887                        --disable-ansi builds the smaller traditional CLtL1 image
888    
889    Optional Packages:
890      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
891      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
892      --with-x                use the X Window System
893    
894    Some influential environment variables:
895      CC          C compiler command
896      CFLAGS      C compiler flags
897      LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
898                  nonstandard directory <lib dir>
899      CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
900                  headers in a nonstandard directory <include dir>
901      CPP         C preprocessor
902    
903    Use these variables to override the choices made by `configure' or to help
904    it to find libraries and programs with nonstandard names/locations.
905    
906    _ACEOF
907    fi
908    
909    if test "$ac_init_help" = "recursive"; then
910      # If there are subdirs, report their specific --help.
911      ac_popdir=`pwd`
912      for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913        test -d $ac_dir || continue
914        ac_builddir=.
915    
916    if test "$ac_dir" != .; then
917      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918      # A "../" for each directory in $ac_dir_suffix.
919      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920    else
921      ac_dir_suffix= ac_top_builddir=
922    fi
923    
924    case $srcdir in
925      .)  # No --srcdir option.  We are building in place.
926        ac_srcdir=.
927        if test -z "$ac_top_builddir"; then
928           ac_top_srcdir=.
929        else
930           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931        fi ;;
932      [\\/]* | ?:[\\/]* )  # Absolute path.
933        ac_srcdir=$srcdir$ac_dir_suffix;
934        ac_top_srcdir=$srcdir ;;
935      *) # Relative path.
936        ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937        ac_top_srcdir=$ac_top_builddir$srcdir ;;
938    esac
939    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
940    # absolute.
941    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
942    ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
943    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
944    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
945    
946        cd $ac_dir
947        # Check for guested configure; otherwise get Cygnus style configure.
948        if test -f $ac_srcdir/configure.gnu; then
949          echo
950          $SHELL $ac_srcdir/configure.gnu  --help=recursive
951        elif test -f $ac_srcdir/configure; then
952          echo
953          $SHELL $ac_srcdir/configure  --help=recursive
954        elif test -f $ac_srcdir/configure.ac ||
955               test -f $ac_srcdir/configure.in; then
956          echo
957          $ac_configure --help
958        else
959          echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960        fi
961        cd $ac_popdir
962      done
963    fi
964    
965    test -n "$ac_init_help" && exit 0
966    if $ac_init_version; then
967      cat <<\_ACEOF
968    
969    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
970    Free Software Foundation, Inc.
971    This configure script is free software; the Free Software Foundation
972    gives unlimited permission to copy, distribute and modify it.
973    _ACEOF
974      exit 0
975    fi
976    exec 5>config.log
977    cat >&5 <<_ACEOF
978    This file contains any messages produced by compilers while
979    running configure, to aid debugging if configure makes a mistake.
980    
981    It was created by $as_me, which was
982    generated by GNU Autoconf 2.56.  Invocation command line was
983    
984      $ $0 $@
985    
986    _ACEOF
987    {
988    cat <<_ASUNAME
989    ## --------- ##
990    ## Platform. ##
991    ## --------- ##
992    
993    hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994    uname -m = `(uname -m) 2>/dev/null || echo unknown`
995    uname -r = `(uname -r) 2>/dev/null || echo unknown`
996    uname -s = `(uname -s) 2>/dev/null || echo unknown`
997    uname -v = `(uname -v) 2>/dev/null || echo unknown`
998    
999    /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000    /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1001    
1002    /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1003    /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1004    /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005    hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1006    /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1007    /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1008    /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1009    
1010    _ASUNAME
1011    
1012    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013    for as_dir in $PATH
1014    do
1015      IFS=$as_save_IFS
1016      test -z "$as_dir" && as_dir=.
1017      echo "PATH: $as_dir"
1018    done
1019    
1020    } >&5
1021    
1022    cat >&5 <<_ACEOF
1023    
1024    
1025    ## ----------- ##
1026    ## Core tests. ##
1027    ## ----------- ##
1028    
1029    _ACEOF
1030    
1031    
1032    # Keep a trace of the command line.
1033    # Strip out --no-create and --no-recursion so they do not pile up.
1034    # Strip out --silent because we don't want to record it for future runs.
1035    # Also quote any args containing shell meta-characters.
1036    # Make two passes to allow for proper duplicate-argument suppression.
1037    ac_configure_args=
1038    ac_configure_args0=
1039    ac_configure_args1=
1040    ac_sep=
1041    ac_must_keep_next=false
1042    for ac_pass in 1 2
1043    do
1044      for ac_arg
1045      do
1046        case $ac_arg in
1047        -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048        -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049        | -silent | --silent | --silen | --sile | --sil)
1050          continue ;;
1051        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052          ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053        esac
1054        case $ac_pass in
1055        1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056        2)
1057          ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058          if test $ac_must_keep_next = true; then
1059            ac_must_keep_next=false # Got value, back to normal.
1060          else
1061            case $ac_arg in
1062              *=* | --config-cache | -C | -disable-* | --disable-* \
1063              | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064              | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065              | -with-* | --with-* | -without-* | --without-* | --x)
1066                case "$ac_configure_args0 " in
1067                  "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068                esac
1069                ;;
1070              -* ) ac_must_keep_next=true ;;
1071            esac
1072          fi
1073          ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074          # Get rid of the leading space.
1075          ac_sep=" "
1076          ;;
1077        esac
1078      done
1079    done
1080    $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081    $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082    
1083    # When interrupted or exit'd, cleanup temporary files, and complete
1084    # config.log.  We remove comments because anyway the quotes in there
1085    # would cause problems or look ugly.
1086    # WARNING: Be sure not to use single quotes in there, as some shells,
1087    # such as our DU 5.0 friend, will then `close' the trap.
1088    trap 'exit_status=$?
1089      # Save into config.log some information that might help in debugging.
1090      {
1091        echo
1092    
1093        cat <<\_ASBOX
1094    ## ---------------- ##
1095    ## Cache variables. ##
1096    ## ---------------- ##
1097    _ASBOX
1098        echo
1099        # The following way of writing the cache mishandles newlines in values,
1100    {
1101      (set) 2>&1 |
1102        case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103        *ac_space=\ *)
1104          sed -n \
1105            "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106              s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1107          ;;
1108        *)
1109          sed -n \
1110            "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111          ;;
1112        esac;
1113    }
1114        echo
1115    
1116        cat <<\_ASBOX
1117    ## ----------------- ##
1118    ## Output variables. ##
1119    ## ----------------- ##
1120    _ASBOX
1121        echo
1122        for ac_var in $ac_subst_vars
1123        do
1124          eval ac_val=$`echo $ac_var`
1125          echo "$ac_var='"'"'$ac_val'"'"'"
1126        done | sort
1127        echo
1128    
1129        if test -n "$ac_subst_files"; then
1130          cat <<\_ASBOX
1131    ## ------------- ##
1132    ## Output files. ##
1133    ## ------------- ##
1134    _ASBOX
1135          echo
1136          for ac_var in $ac_subst_files
1137          do
1138            eval ac_val=$`echo $ac_var`
1139            echo "$ac_var='"'"'$ac_val'"'"'"
1140          done | sort
1141          echo
1142        fi
1143    
1144        if test -s confdefs.h; then
1145          cat <<\_ASBOX
1146    ## ----------- ##
1147    ## confdefs.h. ##
1148    ## ----------- ##
1149    _ASBOX
1150          echo
1151          sed "/^$/d" confdefs.h | sort
1152          echo
1153        fi
1154        test "$ac_signal" != 0 &&
1155          echo "$as_me: caught signal $ac_signal"
1156        echo "$as_me: exit $exit_status"
1157      } >&5
1158      rm -f core core.* *.core &&
1159      rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160        exit $exit_status
1161         ' 0
1162    for ac_signal in 1 2 13 15; do
1163      trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164    done
1165    ac_signal=0
1166    
1167    # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168    rm -rf conftest* confdefs.h
1169    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170    echo >confdefs.h
1171    
1172    # Predefined preprocessor variables.
1173    
1174    cat >>confdefs.h <<_ACEOF
1175    #define PACKAGE_NAME "$PACKAGE_NAME"
1176    _ACEOF
1177    
1178    
1179    cat >>confdefs.h <<_ACEOF
1180    #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181    _ACEOF
1182    
1183    
1184    cat >>confdefs.h <<_ACEOF
1185    #define PACKAGE_VERSION "$PACKAGE_VERSION"
1186    _ACEOF
1187    
1188    
1189    cat >>confdefs.h <<_ACEOF
1190    #define PACKAGE_STRING "$PACKAGE_STRING"
1191    _ACEOF
1192    
1193    
1194    cat >>confdefs.h <<_ACEOF
1195    #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196    _ACEOF
1197    
1198    
1199    # Let the site file select an alternate cache file if it wants to.
1200  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
1201  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
1202    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 555  if test -z "$CONFIG_SITE"; then Line 1207  if test -z "$CONFIG_SITE"; then
1207  fi  fi
1208  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
1209    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
1210      echo "loading site script $ac_site_file"      { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211    echo "$as_me: loading site script $ac_site_file" >&6;}
1212        sed 's/^/| /' "$ac_site_file" >&5
1213      . "$ac_site_file"      . "$ac_site_file"
1214    fi    fi
1215  done  done
1216    
1217  if test -r "$cache_file"; then  if test -r "$cache_file"; then
1218    echo "loading cache $cache_file"    # Some versions of bash will fail to source /dev/null (special
1219    . $cache_file    # files actually), so we avoid doing that.
1220      if test -f "$cache_file"; then
1221        { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222    echo "$as_me: loading cache $cache_file" >&6;}
1223        case $cache_file in
1224          [\\/]* | ?:[\\/]* ) . $cache_file;;
1225          *)                      . ./$cache_file;;
1226        esac
1227      fi
1228  else  else
1229    echo "creating cache $cache_file"    { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230    > $cache_file  echo "$as_me: creating cache $cache_file" >&6;}
1231      >$cache_file
1232    fi
1233    
1234    # Check that the precious variables saved in the cache have kept the same
1235    # value.
1236    ac_cache_corrupted=false
1237    for ac_var in `(set) 2>&1 |
1238                   sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239      eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240      eval ac_new_set=\$ac_env_${ac_var}_set
1241      eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242      eval ac_new_val="\$ac_env_${ac_var}_value"
1243      case $ac_old_set,$ac_new_set in
1244        set,)
1245          { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246    echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247          ac_cache_corrupted=: ;;
1248        ,set)
1249          { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250    echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251          ac_cache_corrupted=: ;;
1252        ,);;
1253        *)
1254          if test "x$ac_old_val" != "x$ac_new_val"; then
1255            { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256    echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257            { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1258    echo "$as_me:   former value:  $ac_old_val" >&2;}
1259            { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1260    echo "$as_me:   current value: $ac_new_val" >&2;}
1261            ac_cache_corrupted=:
1262          fi;;
1263      esac
1264      # Pass precious variables to config.status.
1265      if test "$ac_new_set" = set; then
1266        case $ac_new_val in
1267        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268          ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269        *) ac_arg=$ac_var=$ac_new_val ;;
1270        esac
1271        case " $ac_configure_args " in
1272          *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1273          *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1274        esac
1275      fi
1276    done
1277    if $ac_cache_corrupted; then
1278      { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279    echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280      { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281    echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282       { (exit 1); exit 1; }; }
1283  fi  fi
1284    
1285  ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
1286  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
1287  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288  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'
1289  cross_compiling=$ac_cv_prog_cc_cross  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1290    
1291  ac_exeext=  
1292  ac_objext=o  
1293  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  
1294    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  
1295    if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then  
1296      ac_n= ac_c='  
1297  ' ac_t='        '  
1298    else  
1299      ac_n=-n ac_c= ac_t=  
1300    fi  
1301  else  
1302    ac_n= ac_c='\c' ac_t=  
 fi  
1303    
1304    
1305    
1306    
1307    
1308    
1309              ac_config_headers="$ac_config_headers h/gclincl.h"
1310    
1311    
1312  VERSION=`cat majvers`.`cat minvers`  VERSION=`cat majvers`.`cat minvers`
1313    
1314    
# Line 605  help="--enable-maxpage=XXXX will compile Line 1322  help="--enable-maxpage=XXXX will compile
1322  # Check whether --enable-maxpage or --disable-maxpage was given.  # Check whether --enable-maxpage or --disable-maxpage was given.
1323  if test "${enable_maxpage+set}" = set; then  if test "${enable_maxpage+set}" = set; then
1324    enableval="$enable_maxpage"    enableval="$enable_maxpage"
1325    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1326  #define MAXPAGE $enable_maxpage  #define MAXPAGE $enable_maxpage
1327  EOF  _ACEOF
   
 fi  
1328    
1329    fi;
1330    
1331  # Check whether --enable-holepage or --disable-holepage was given.  # Check whether --enable-holepage or --disable-holepage was given.
1332  if test "${enable_holepage+set}" = set; then  if test "${enable_holepage+set}" = set; then
1333    enableval="$enable_holepage"    enableval="$enable_holepage"
1334    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1335  #define HOLEPAGE $enable_holepage  #define HOLEPAGE $enable_holepage
1336  EOF  _ACEOF
   
 fi  
1337    
1338    fi;
1339    
1340  # Check whether --enable-vssize or --disable-vssize was given.  # Check whether --enable-vssize or --disable-vssize was given.
1341  if test "${enable_vssize+set}" = set; then  if test "${enable_vssize+set}" = set; then
1342    enableval="$enable_vssize"    enableval="$enable_vssize"
1343    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1344  #define VSSIZE $enable_vssize  #define VSSIZE $enable_vssize
1345  EOF  _ACEOF
   
 fi  
1346    
1347    fi;
1348    
1349  # Check whether --enable-bdssize or --disable-bdssize was given.  # Check whether --enable-bdssize or --disable-bdssize was given.
1350  if test "${enable_bdssize+set}" = set; then  if test "${enable_bdssize+set}" = set; then
1351    enableval="$enable_bdssize"    enableval="$enable_bdssize"
1352    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1353  #define BDSSIZE $enable_bdssize  #define BDSSIZE $enable_bdssize
1354  EOF  _ACEOF
   
 fi  
1355    
1356    fi;
1357    
1358  # Check whether --enable-ihssize or --disable-ihssize was given.  # Check whether --enable-ihssize or --disable-ihssize was given.
1359  if test "${enable_ihssize+set}" = set; then  if test "${enable_ihssize+set}" = set; then
1360    enableval="$enable_ihssize"    enableval="$enable_ihssize"
1361    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1362  #define IHSSIZE $enable_ihssize  #define IHSSIZE $enable_ihssize
1363  EOF  _ACEOF
   
 fi  
1364    
1365    fi;
1366    
1367  # Check whether --enable-frssize or --disable-frssize was given.  # Check whether --enable-frssize or --disable-frssize was given.
1368  if test "${enable_frssize+set}" = set; then  if test "${enable_frssize+set}" = set; then
1369    enableval="$enable_frssize"    enableval="$enable_frssize"
1370    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1371  #define FRSSIZE $enable_frssize  #define FRSSIZE $enable_frssize
1372  EOF  _ACEOF
   
 fi  
1373    
1374    fi;
1375    
1376  # Check whether --enable-machine or --disable-machine was given.  # Check whether --enable-machine or --disable-machine was given.
1377  if test "${enable_machine+set}" = set; then  if test "${enable_machine+set}" = set; then
# Line 668  if test "${enable_machine+set}" = set; t Line 1379  if test "${enable_machine+set}" = set; t
1379    enable_machine=$enableval    enable_machine=$enableval
1380  else  else
1381    enable_machine=""    enable_machine=""
1382  fi  fi;
   
1383    
1384  #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)] ,
1385  #[use_gmp=$enableval],[use_gmp="yes"])  #[use_gmp=$enableval],[use_gmp="yes"])
# Line 682  if test "${enable_notify+set}" = set; th Line 1392  if test "${enable_notify+set}" = set; th
1392    enable_notify=$enableval    enable_notify=$enableval
1393  else  else
1394    enable_notify="yes"    enable_notify="yes"
1395  fi  fi;
   
1396    
1397  # Check whether --enable-tkconfig or --disable-tkconfig was given.  # Check whether --enable-tkconfig or --disable-tkconfig was given.
1398  if test "${enable_tkconfig+set}" = set; then  if test "${enable_tkconfig+set}" = set; then
# Line 691  if test "${enable_tkconfig+set}" = set; Line 1400  if test "${enable_tkconfig+set}" = set;
1400    TK_CONFIG_PREFIX=$enableval    TK_CONFIG_PREFIX=$enableval
1401  else  else
1402    TK_CONFIG_PREFIX="unknown"    TK_CONFIG_PREFIX="unknown"
1403  fi  fi;
   
1404    
1405    
1406  # Check whether --enable-tclconfig or --disable-tclconfig was given.  # Check whether --enable-tclconfig or --disable-tclconfig was given.
# Line 701  if test "${enable_tclconfig+set}" = set; Line 1409  if test "${enable_tclconfig+set}" = set;
1409    TCL_CONFIG_PREFIX=$enableval    TCL_CONFIG_PREFIX=$enableval
1410  else  else
1411    TCL_CONFIG_PREFIX="unknown"    TCL_CONFIG_PREFIX="unknown"
1412  fi  fi;
   
1413    
1414  # Check whether --enable-infodir or --disable-infodir was given.  # Check whether --enable-infodir or --disable-infodir was given.
1415  if test "${enable_infodir+set}" = set; then  if test "${enable_infodir+set}" = set; then
# Line 710  if test "${enable_infodir+set}" = set; t Line 1417  if test "${enable_infodir+set}" = set; t
1417    INFO_DIR=$enableval    INFO_DIR=$enableval
1418  else  else
1419    INFO_DIR="unknown"    INFO_DIR="unknown"
1420  fi  fi;
   
1421  INFO_DIR=`eval echo $INFO_DIR/`  INFO_DIR=`eval echo $INFO_DIR/`
1422    
1423  # Check whether --enable-emacsdir or --disable-emacsdir was given.  # Check whether --enable-emacsdir or --disable-emacsdir was given.
# Line 720  if test "${enable_emacsdir+set}" = set; Line 1426  if test "${enable_emacsdir+set}" = set;
1426    EMACS_SITE_LISP=$enableval    EMACS_SITE_LISP=$enableval
1427  else  else
1428    EMACS_SITE_LISP="unknown"    EMACS_SITE_LISP="unknown"
1429  fi  fi;
   
1430  EMACS_SITE_LISP=`eval echo $EMACS_SITE_LISP`  EMACS_SITE_LISP=`eval echo $EMACS_SITE_LISP`
1431    
1432  # Check whether --enable-common-binary or --disable-common-binary was given.  # Check whether --enable-common-binary or --disable-common-binary was given.
# Line 730  if test "${enable_common_binary+set}" = Line 1435  if test "${enable_common_binary+set}" =
1435    use_common_binary=$enableval    use_common_binary=$enableval
1436  else  else
1437    use_common_binary="yes"    use_common_binary="yes"
1438  fi  fi;
   
1439    
1440  # Check whether --enable-japi or --disable-japi was given.  # Check whether --enable-japi or --disable-japi was given.
1441  if test "${enable_japi+set}" = set; then  if test "${enable_japi+set}" = set; then
# Line 739  if test "${enable_japi+set}" = set; then Line 1443  if test "${enable_japi+set}" = set; then
1443    try_japi=$enableval    try_japi=$enableval
1444  else  else
1445    try_japi="no"    try_japi="no"
1446  fi  fi;
   
1447    
1448  # Check whether --enable-xdr or --disable-xdr was given.  # Check whether --enable-xdr or --disable-xdr was given.
1449  if test "${enable_xdr+set}" = set; then  if test "${enable_xdr+set}" = set; then
# Line 748  if test "${enable_xdr+set}" = set; then Line 1451  if test "${enable_xdr+set}" = set; then
1451    try_xdr=$enableval    try_xdr=$enableval
1452  else  else
1453    try_xdr="no"    try_xdr="no"
1454  fi  fi;
   
1455    
1456  #  #
1457  # Host information  # Host information
1458  #  #
1459    
1460    
# Line 766  for ac_dir in $srcdir $srcdir/.. $srcdir Line 1468  for ac_dir in $srcdir $srcdir/.. $srcdir
1468      ac_aux_dir=$ac_dir      ac_aux_dir=$ac_dir
1469      ac_install_sh="$ac_aux_dir/install.sh -c"      ac_install_sh="$ac_aux_dir/install.sh -c"
1470      break      break
1471      elif test -f $ac_dir/shtool; then
1472        ac_aux_dir=$ac_dir
1473        ac_install_sh="$ac_aux_dir/shtool install -c"
1474        break
1475    fi    fi
1476  done  done
1477  if test -z "$ac_aux_dir"; then  if test -z "$ac_aux_dir"; then
1478    { 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
1479  fi  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1480  ac_config_guess=$ac_aux_dir/config.guess     { (exit 1); exit 1; }; }
1481  ac_config_sub=$ac_aux_dir/config.sub  fi
1482  ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.  ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1483    ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1484    ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1485    
1486  # Make sure we can run config.sub.  # Make sure we can run config.sub.
1487  if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :  $ac_config_sub sun4 >/dev/null 2>&1 ||
1488  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
1489  fi  echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1490       { (exit 1); exit 1; }; }
1491  echo $ac_n "checking host system type""... $ac_c" 1>&6  
1492  echo "configure:786: checking host system type" >&5  echo "$as_me:$LINENO: checking build system type" >&5
1493    echo $ECHO_N "checking build system type... $ECHO_C" >&6
1494  host_alias=$host  if test "${ac_cv_build+set}" = set; then
1495  case "$host_alias" in    echo $ECHO_N "(cached) $ECHO_C" >&6
1496  NONE)  else
1497    case $nonopt in    ac_cv_build_alias=$build_alias
1498    NONE)  test -z "$ac_cv_build_alias" &&
1499      if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :    ac_cv_build_alias=`$ac_config_guess`
1500      else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }  test -z "$ac_cv_build_alias" &&
1501      fi ;;    { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1502    *) host_alias=$nonopt ;;  echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1503    esac ;;     { (exit 1); exit 1; }; }
1504  esac  ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1505      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1506    echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1507       { (exit 1); exit 1; }; }
1508    
1509    fi
1510    echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1511    echo "${ECHO_T}$ac_cv_build" >&6
1512    build=$ac_cv_build
1513    build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1514    build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1515    build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1516    
1517    
1518    echo "$as_me:$LINENO: checking host system type" >&5
1519    echo $ECHO_N "checking host system type... $ECHO_C" >&6
1520    if test "${ac_cv_host+set}" = set; then
1521      echo $ECHO_N "(cached) $ECHO_C" >&6
1522    else
1523      ac_cv_host_alias=$host_alias
1524    test -z "$ac_cv_host_alias" &&
1525      ac_cv_host_alias=$ac_cv_build_alias
1526    ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1527      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1528    echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1529       { (exit 1); exit 1; }; }
1530    
1531    fi
1532    echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1533    echo "${ECHO_T}$ac_cv_host" >&6
1534    host=$ac_cv_host
1535    host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1536    host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1537    host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1538    
 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  
1539    
1540  canonical=$host  canonical=$host
1541  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]}'`
1542  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]}'`
1543  cat >> confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
1544  #define HOST_CPU "`echo $host_cpu | awk '{print toupper($0)}'`"  #define HOST_CPU "`echo $host_cpu | awk '{print toupper($0)}'`"
1545  EOF  _ACEOF
1546    
1547  cat >> confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
1548  #define HOST_KERNEL "`echo $my_host_kernel | awk '{print toupper($0)}'`"  #define HOST_KERNEL "`echo $my_host_kernel | awk '{print toupper($0)}'`"
1549  EOF  _ACEOF
1550    
1551  if test "$my_host_system" != "" ; then  if test "$my_host_system" != "" ; then
1552          cat >> confdefs.h <<EOF          cat >>confdefs.h <<_ACEOF
1553  #define HOST_SYSTEM "`echo $my_host_system | awk '{print toupper($0)}'`"  #define HOST_SYSTEM "`echo $my_host_system | awk '{print toupper($0)}'`"
1554  EOF  _ACEOF
1555    
1556  fi  fi
1557  ## host=CPU-COMPANY-SYSTEM  ## host=CPU-COMPANY-SYSTEM
1558  echo "$ac_t""host=$host" 1>&6  echo "$as_me:$LINENO: result: host=$host" >&5
1559    echo "${ECHO_T}host=$host" >&6
1560    
1561  PROCESSOR_FLAGS=${PROCESSOR_FLAGS:-""}  PROCESSOR_FLAGS=${PROCESSOR_FLAGS:-""}
1562    
# Line 873  case $canonical in Line 1609  case $canonical in
1609    
1610       powerpc-*-darwin*)       powerpc-*-darwin*)
1611          use=powerpc-macosx;;          use=powerpc-macosx;;
1612        
1613       alpha-dec-osf)       alpha-dec-osf)
1614       use=alpha-osf1;;       use=alpha-osf1;;
1615    
# Line 904  case $canonical in Line 1640  case $canonical in
1640             IRIX3*)             IRIX3*)
1641              use=sgi4d;;              use=sgi4d;;
1642         esac ;;         esac ;;
1643    
1644    
1645       m68k-apple-aux*)       m68k-apple-aux*)
1646       use=mac2;;       use=mac2;;
# Line 975  case $canonical in Line 1711  case $canonical in
1711       i*mingw*)       i*mingw*)
1712         if test "$use_common_binary" = "yes"; then         if test "$use_common_binary" = "yes"; then
1713           host=i386-pc-mingw32           host=i386-pc-mingw32
1714           PROCESSOR_FLAGS="-mcpu=i386 -march=i386 "           PROCESSOR_FLAGS="-march=i386 "
1715           echo "The host is canonicalised to $host"           echo "The host is canonicalised to $host"
1716         fi         fi
1717       use=mingw;;       use=mingw;;
# Line 990  case $canonical in Line 1726  case $canonical in
1726          # 'ld -Z' means disable W^X          # 'ld -Z' means disable W^X
1727          TLDFLAGS="$TLDFLAGS -Z"          TLDFLAGS="$TLDFLAGS -Z"
1728          use=FreeBSD;;          use=FreeBSD;;
1729      
1730  esac  esac
1731    
1732    
# Line 1008  def_oldgmp="no" Line 1744  def_oldgmp="no"
1744  def_pic="no";  def_pic="no";
1745  def_static="no";  def_static="no";
1746  def_debug="no";  def_debug="no";
1747  case $use in  case $use in
1748       *linux)       *linux)
1749          ln -snf linux.defs h/$use.defs;          ln -snf linux.defs h/$use.defs;
1750          case $use in          case $use in
# Line 1017  case $use in Line 1753  case $use in
1753                  mips*)                  mips*)
1754                          def_dlopen="yes" ; def_statsysbfd="no" ;;                          def_dlopen="yes" ; def_statsysbfd="no" ;;
1755  # 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
1756  # on these architectures -- CM                    # on these architectures -- CM
1757                  ia64*)                  ia64*)
1758                          def_dlopen="yes" ; def_statsysbfd="no" ; def_static="no" ;;                          def_dlopen="yes" ; def_statsysbfd="no" ; def_static="no" ;;
1759                  hppa*)                  hppa*)
# Line 1034  esac Line 1770  esac
1770  # Check whether --enable-dlopen or --disable-dlopen was given.  # Check whether --enable-dlopen or --disable-dlopen was given.
1771  if test "${enable_dlopen+set}" = set; then  if test "${enable_dlopen+set}" = set; then
1772    enableval="$enable_dlopen"    enableval="$enable_dlopen"
1773    :  
1774  else  else
1775    enable_dlopen="$def_dlopen"    enable_dlopen="$def_dlopen"
1776  fi  fi;
   
1777  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.
1778  if test "${enable_statsysbfd+set}" = set; then  if test "${enable_statsysbfd+set}" = set; then
1779    enableval="$enable_statsysbfd"    enableval="$enable_statsysbfd"
1780    :  
1781  else  else
1782    enable_statsysbfd="$def_statsysbfd"    enable_statsysbfd="$def_statsysbfd"
1783  fi  fi;
   
1784  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.
1785  if test "${enable_dynsysbfd+set}" = set; then  if test "${enable_dynsysbfd+set}" = set; then
1786    enableval="$enable_dynsysbfd"    enableval="$enable_dynsysbfd"
1787    :  
1788  else  else
1789    enable_dynsysbfd="no"    enable_dynsysbfd="no"
1790  fi  fi;
   
1791  # Check whether --enable-locbfd or --disable-locbfd was given.  # Check whether --enable-locbfd or --disable-locbfd was given.
1792  if test "${enable_locbfd+set}" = set; then  if test "${enable_locbfd+set}" = set; then
1793    enableval="$enable_locbfd"    enableval="$enable_locbfd"
1794    :  
1795  else  else
1796    enable_locbfd="$def_locbfd"    enable_locbfd="$def_locbfd"
1797  fi  fi;
   
1798  # Check whether --enable-custreloc or --disable-custreloc was given.  # Check whether --enable-custreloc or --disable-custreloc was given.
1799  if test "${enable_custreloc+set}" = set; then  if test "${enable_custreloc+set}" = set; then
1800    enableval="$enable_custreloc"    enableval="$enable_custreloc"
1801    :  
1802  else  else
1803    enable_custreloc="$def_custreloc"    enable_custreloc="$def_custreloc"
1804  fi  fi;
   
1805  # Check whether --enable-debug or --disable-debug was given.  # Check whether --enable-debug or --disable-debug was given.
1806  if test "${enable_debug+set}" = set; then  if test "${enable_debug+set}" = set; then
1807    enableval="$enable_debug"    enableval="$enable_debug"
1808    :  
1809  else  else
1810    enable_debug="$def_debug"    enable_debug="$def_debug"
1811  fi  fi;
   
1812  # Check whether --enable-gprof or --disable-gprof was given.  # Check whether --enable-gprof or --disable-gprof was given.
1813  if test "${enable_gprof+set}" = set; then  if test "${enable_gprof+set}" = set; then
1814    enableval="$enable_gprof"    enableval="$enable_gprof"
1815    :  
1816  else  else
1817    enable_gprof="no"    enable_gprof="no"
1818  fi  fi;
   
1819  # Check whether --enable-static or --disable-static was given.  # Check whether --enable-static or --disable-static was given.
1820  if test "${enable_static+set}" = set; then  if test "${enable_static+set}" = set; then
1821    enableval="$enable_static"    enableval="$enable_static"
1822    enable_static=$enableval    enable_static=$enableval
1823  else  else
1824    enable_static="$def_static"    enable_static="$def_static"
1825  fi  fi;
   
1826  # Check whether --enable-pic or --disable-pic was given.  # Check whether --enable-pic or --disable-pic was given.
1827  if test "${enable_pic+set}" = set; then  if test "${enable_pic+set}" = set; then
1828    enableval="$enable_pic"    enableval="$enable_pic"
1829    :  
1830  else  else
1831    enable_pic="$def_pic"    enable_pic="$def_pic"
1832  fi  fi;
   
1833    
1834  # Check whether --enable-oldgmp or --disable-oldgmp was given.  # Check whether --enable-oldgmp or --disable-oldgmp was given.
1835  if test "${enable_oldgmp+set}" = set; then  if test "${enable_oldgmp+set}" = set; then
1836    enableval="$enable_oldgmp"    enableval="$enable_oldgmp"
1837    :  
1838  else  else
1839    enable_oldgmp="$def_oldgmp"    enable_oldgmp="$def_oldgmp"
1840  fi  fi;
   
1841    
1842  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.
1843  if test "${enable_dynsysgmp+set}" = set; then  if test "${enable_dynsysgmp+set}" = set; then
1844    enableval="$enable_dynsysgmp"    enableval="$enable_dynsysgmp"
1845    :  
1846  else  else
1847    enable_dynsysgmp="yes"    enable_dynsysgmp="yes"
1848  fi  fi;
   
1849    
1850  load_opt="0"  load_opt="0"
1851  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
# Line 1171  fi Line 1896  fi
1896  ##  ##
1897  #if test "$use" = "unknown" ; then  #if test "$use" = "unknown" ; then
1898  #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"`
1899  #echo got canonical=$canonical, but was not recognized.  #echo got canonical=$canonical, but was not recognized.
1900  #echo Unable to guess type to use.  Try one of  #echo Unable to guess type to use.  Try one of
1901  #exit(1)  #exit(1)
1902  #fi  #fi
1903    
1904  echo "$ac_t""use=$use" 1>&6      echo "$as_me:$LINENO: result: use=$use" >&5
1905    echo "${ECHO_T}use=$use" >&6
1906    
1907    
1908  #  #
# Line 1192  if test "$LDFLAGS" = "" ; then Line 1918  if test "$LDFLAGS" = "" ; then
1918          LDFLAGS=" "          LDFLAGS=" "
1919  fi  fi
1920    
1921  # Extract the first word of "gcc", so it can be a program name with args.  ac_ext=c
1922    ac_cpp='$CPP $CPPFLAGS'
1923    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1924    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1925    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926    if test -n "$ac_tool_prefix"; then
1927      # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1928    set dummy ${ac_tool_prefix}gcc; ac_word=$2
1929    echo "$as_me:$LINENO: checking for $ac_word" >&5
1930    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931    if test "${ac_cv_prog_CC+set}" = set; then
1932      echo $ECHO_N "(cached) $ECHO_C" >&6
1933    else
1934      if test -n "$CC"; then
1935      ac_cv_prog_CC="$CC" # Let the user override the test.
1936    else
1937    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938    for as_dir in $PATH
1939    do
1940      IFS=$as_save_IFS
1941      test -z "$as_dir" && as_dir=.
1942      for ac_exec_ext in '' $ac_executable_extensions; do
1943      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944        ac_cv_prog_CC="${ac_tool_prefix}gcc"
1945        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946        break 2
1947      fi
1948    done
1949    done
1950    
1951    fi
1952    fi
1953    CC=$ac_cv_prog_CC
1954    if test -n "$CC"; then
1955      echo "$as_me:$LINENO: result: $CC" >&5
1956    echo "${ECHO_T}$CC" >&6
1957    else
1958      echo "$as_me:$LINENO: result: no" >&5
1959    echo "${ECHO_T}no" >&6
1960    fi
1961    
1962    fi
1963    if test -z "$ac_cv_prog_CC"; then
1964      ac_ct_CC=$CC
1965      # Extract the first word of "gcc", so it can be a program name with args.
1966  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1967  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
1968  echo "configure:1199: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1970    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1971    else
1972      if test -n "$ac_ct_CC"; then
1973      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1974    else
1975    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976    for as_dir in $PATH
1977    do
1978      IFS=$as_save_IFS
1979      test -z "$as_dir" && as_dir=.
1980      for ac_exec_ext in '' $ac_executable_extensions; do
1981      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982        ac_cv_prog_ac_ct_CC="gcc"
1983        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984        break 2
1985      fi
1986    done
1987    done
1988    
1989    fi
1990    fi
1991    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1992    if test -n "$ac_ct_CC"; then
1993      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1994    echo "${ECHO_T}$ac_ct_CC" >&6
1995    else
1996      echo "$as_me:$LINENO: result: no" >&5
1997    echo "${ECHO_T}no" >&6
1998    fi
1999    
2000      CC=$ac_ct_CC
2001    else
2002      CC="$ac_cv_prog_CC"
2003    fi
2004    
2005    if test -z "$CC"; then
2006      if test -n "$ac_tool_prefix"; then
2007      # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2008    set dummy ${ac_tool_prefix}cc; ac_word=$2
2009    echo "$as_me:$LINENO: checking for $ac_word" >&5
2010    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011    if test "${ac_cv_prog_CC+set}" = set; then
2012      echo $ECHO_N "(cached) $ECHO_C" >&6
2013  else  else
2014    if test -n "$CC"; then    if test -n "$CC"; then
2015    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
2016  else  else
2017    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018    ac_dummy="$PATH"  for as_dir in $PATH
2019    for ac_dir in $ac_dummy; do  do
2020      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2021      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2022        ac_cv_prog_CC="gcc"    for ac_exec_ext in '' $ac_executable_extensions; do
2023        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024      fi      ac_cv_prog_CC="${ac_tool_prefix}cc"
2025    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026    IFS="$ac_save_ifs"      break 2
2027      fi
2028    done
2029    done
2030    
2031  fi  fi
2032  fi  fi
2033  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
2034  if test -n "$CC"; then  if test -n "$CC"; then
2035    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
2036    echo "${ECHO_T}$CC" >&6
2037    else
2038      echo "$as_me:$LINENO: result: no" >&5
2039    echo "${ECHO_T}no" >&6
2040    fi
2041    
2042    fi
2043    if test -z "$ac_cv_prog_CC"; then
2044      ac_ct_CC=$CC
2045      # Extract the first word of "cc", so it can be a program name with args.
2046    set dummy cc; ac_word=$2
2047    echo "$as_me:$LINENO: checking for $ac_word" >&5
2048    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050      echo $ECHO_N "(cached) $ECHO_C" >&6
2051    else
2052      if test -n "$ac_ct_CC"; then
2053      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2054    else
2055    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056    for as_dir in $PATH
2057    do
2058      IFS=$as_save_IFS
2059      test -z "$as_dir" && as_dir=.
2060      for ac_exec_ext in '' $ac_executable_extensions; do
2061      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062        ac_cv_prog_ac_ct_CC="cc"
2063        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064        break 2
2065      fi
2066    done
2067    done
2068    
2069    fi
2070    fi
2071    ac_ct_CC=$ac_cv_prog_ac_ct_CC
2072    if test -n "$ac_ct_CC"; then
2073      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2074    echo "${ECHO_T}$ac_ct_CC" >&6
2075    else
2076      echo "$as_me:$LINENO: result: no" >&5
2077    echo "${ECHO_T}no" >&6
2078    fi
2079    
2080      CC=$ac_ct_CC
2081  else  else
2082    echo "$ac_t""no" 1>&6    CC="$ac_cv_prog_CC"
2083  fi  fi
2084    
2085    fi
2086  if test -z "$CC"; then  if test -z "$CC"; then
2087    # 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.
2088  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
2089  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
2090  echo "configure:1229: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_CC+set}" = set; then
2092    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2093  else  else
2094    if test -n "$CC"; then    if test -n "$CC"; then
2095    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
2096  else  else
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
2097    ac_prog_rejected=no    ac_prog_rejected=no
2098    ac_dummy="$PATH"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099    for ac_dir in $ac_dummy; do  for as_dir in $PATH
2100      test -z "$ac_dir" && ac_dir=.  do
2101      if test -f $ac_dir/$ac_word; then    IFS=$as_save_IFS
2102        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then    test -z "$as_dir" && as_dir=.
2103          ac_prog_rejected=yes    for ac_exec_ext in '' $ac_executable_extensions; do
2104          continue    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105        fi      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2106        ac_cv_prog_CC="cc"         ac_prog_rejected=yes
2107        break         continue
2108      fi       fi
2109    done      ac_cv_prog_CC="cc"
2110    IFS="$ac_save_ifs"      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111        break 2
2112      fi
2113    done
2114    done
2115    
2116  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
2117    # 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.
2118    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
2119    shift    shift
2120    if test $# -gt 0; then    if test $# != 0; then
2121      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
2122      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
2123      # 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.
2124      shift      shift
2125      set dummy "$ac_dir/$ac_word" "$@"      ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
     shift  
     ac_cv_prog_CC="$@"  
2126    fi    fi
2127  fi  fi
2128  fi  fi
2129  fi  fi
2130  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
2131  if test -n "$CC"; then  if test -n "$CC"; then
2132    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
2133    echo "${ECHO_T}$CC" >&6
2134  else  else
2135    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2136    echo "${ECHO_T}no" >&6
2137  fi  fi
2138    
2139    if test -z "$CC"; then  fi
2140      case "`uname -s`" in  if test -z "$CC"; then
2141      *win32* | *WIN32*)    if test -n "$ac_tool_prefix"; then
2142        # Extract the first word of "cl", so it can be a program name with args.    for ac_prog in cl
2143  set dummy cl; ac_word=$2    do
2144  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.
2145  echo "configure:1280: checking for $ac_word" >&5  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2146  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo "$as_me:$LINENO: checking for $ac_word" >&5
2147    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148    if test "${ac_cv_prog_CC+set}" = set; then
2149      echo $ECHO_N "(cached) $ECHO_C" >&6
2150  else  else
2151    if test -n "$CC"; then    if test -n "$CC"; then
2152    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
2153  else  else
2154    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155    ac_dummy="$PATH"  for as_dir in $PATH
2156    for ac_dir in $ac_dummy; do  do
2157      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2158      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2159        ac_cv_prog_CC="cl"    for ac_exec_ext in '' $ac_executable_extensions; do
2160        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161      fi      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2162    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163    IFS="$ac_save_ifs"      break 2
2164      fi
2165    done
2166    done
2167    
2168  fi  fi
2169  fi  fi
2170  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
2171  if test -n "$CC"; then  if test -n "$CC"; then
2172    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
2173    echo "${ECHO_T}$CC" >&6
2174  else  else
2175    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2176    echo "${ECHO_T}no" >&6
2177  fi  fi
2178   ;;  
2179      esac      test -n "$CC" && break
2180      done
2181    fi
2182    if test -z "$CC"; then
2183      ac_ct_CC=$CC
2184      for ac_prog in cl
2185    do
2186      # Extract the first word of "$ac_prog", so it can be a program name with args.
2187    set dummy $ac_prog; ac_word=$2
2188    echo "$as_me:$LINENO: checking for $ac_word" >&5
2189    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191      echo $ECHO_N "(cached) $ECHO_C" >&6
2192    else
2193      if test -n "$ac_ct_CC"; then
2194      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2195    else
2196    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197    for as_dir in $PATH
2198    do
2199      IFS=$as_save_IFS
2200      test -z "$as_dir" && as_dir=.
2201      for ac_exec_ext in '' $ac_executable_extensions; do
2202      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2203        ac_cv_prog_ac_ct_CC="$ac_prog"
2204        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205        break 2
2206    fi    fi
2207    test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }  done
2208    done
2209    
2210    fi
2211    fi
2212    ac_ct_CC=$ac_cv_prog_ac_ct_CC
2213    if test -n "$ac_ct_CC"; then
2214      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2215    echo "${ECHO_T}$ac_ct_CC" >&6
2216    else
2217      echo "$as_me:$LINENO: result: no" >&5
2218    echo "${ECHO_T}no" >&6
2219  fi  fi
2220    
2221  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6    test -n "$ac_ct_CC" && break
2222  echo "configure:1312: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  done
2223    
2224  ac_ext=c    CC=$ac_ct_CC
2225  # 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  
2226    
2227  cat > conftest.$ac_ext << EOF  fi
2228    
 #line 1323 "configure"  
 #include "confdefs.h"  
2229    
2230  main(){return(0);}  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2231  EOF  See \`config.log' for more details." >&5
2232  if { (eval echo configure:1328: \"$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
2233    ac_cv_prog_cc_works=yes  See \`config.log' for more details." >&2;}
2234    # If we can't run a trivial program, we are probably using a cross compiler.     { (exit 1); exit 1; }; }
2235    if (./conftest; exit) 2>/dev/null; then  
2236      ac_cv_prog_cc_cross=no  # Provide some information about the compiler.
2237    echo "$as_me:$LINENO:" \
2238         "checking for C compiler version" >&5
2239    ac_compiler=`set X $ac_compile; echo $2`
2240    { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2241      (eval $ac_compiler --version </dev/null >&5) 2>&5
2242      ac_status=$?
2243      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244      (exit $ac_status); }
2245    { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2246      (eval $ac_compiler -v </dev/null >&5) 2>&5
2247      ac_status=$?
2248      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249      (exit $ac_status); }
2250    { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2251      (eval $ac_compiler -V </dev/null >&5) 2>&5
2252      ac_status=$?
2253      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254      (exit $ac_status); }
2255    
2256    cat >conftest.$ac_ext <<_ACEOF
2257    #line $LINENO "configure"
2258    /* confdefs.h.  */
2259    _ACEOF
2260    cat confdefs.h >>conftest.$ac_ext
2261    cat >>conftest.$ac_ext <<_ACEOF
2262    /* end confdefs.h.  */
2263    
2264    int
2265    main ()
2266    {
2267    
2268      ;
2269      return 0;
2270    }
2271    _ACEOF
2272    ac_clean_files_save=$ac_clean_files
2273    ac_clean_files="$ac_clean_files a.out a.exe b.out"
2274    # Try to create an executable without -o first, disregard a.out.
2275    # It will help us diagnose broken compilers, and finding out an intuition
2276    # of exeext.
2277    echo "$as_me:$LINENO: checking for C compiler default output" >&5
2278    echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2279    ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2280    if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2281      (eval $ac_link_default) 2>&5
2282      ac_status=$?
2283      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284      (exit $ac_status); }; then
2285      # Find the output, starting from the most likely.  This scheme is
2286    # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2287    # resort.
2288    
2289    # Be careful to initialize this variable, since it used to be cached.
2290    # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2291    ac_cv_exeext=
2292    # b.out is created by i960 compilers.
2293    for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2294    do
2295      test -f "$ac_file" || continue
2296      case $ac_file in
2297        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2298            ;;
2299        conftest.$ac_ext )
2300            # This is the source file.
2301            ;;
2302        [ab].out )
2303            # We found the default executable, but exeext='' is most
2304            # certainly right.
2305            break;;
2306        *.* )
2307            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2308            # FIXME: I believe we export ac_cv_exeext for Libtool,
2309            # but it would be cool to find out if it's true.  Does anybody
2310            # maintain Libtool? --akim.
2311            export ac_cv_exeext
2312            break;;
2313        * )
2314            break;;
2315      esac
2316    done
2317    else
2318      echo "$as_me: failed program was:" >&5
2319    sed 's/^/| /' conftest.$ac_ext >&5
2320    
2321    { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2322    See \`config.log' for more details." >&5
2323    echo "$as_me: error: C compiler cannot create executables
2324    See \`config.log' for more details." >&2;}
2325       { (exit 77); exit 77; }; }
2326    fi
2327    
2328    ac_exeext=$ac_cv_exeext
2329    echo "$as_me:$LINENO: result: $ac_file" >&5
2330    echo "${ECHO_T}$ac_file" >&6
2331    
2332    # Check the compiler produces executables we can run.  If not, either
2333    # the compiler is broken, or we cross compile.
2334    echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2335    echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2336    # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2337    # If not cross compiling, check that we can run a simple program.
2338    if test "$cross_compiling" != yes; then
2339      if { ac_try='./$ac_file'
2340      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341      (eval $ac_try) 2>&5
2342      ac_status=$?
2343      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344      (exit $ac_status); }; }; then
2345        cross_compiling=no
2346    else    else
2347      ac_cv_prog_cc_cross=yes      if test "$cross_compiling" = maybe; then
2348            cross_compiling=yes
2349        else
2350            { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2351    If you meant to cross compile, use \`--host'.
2352    See \`config.log' for more details." >&5
2353    echo "$as_me: error: cannot run C compiled programs.
2354    If you meant to cross compile, use \`--host'.
2355    See \`config.log' for more details." >&2;}
2356       { (exit 1); exit 1; }; }
2357        fi
2358    fi    fi
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   ac_cv_prog_cc_works=no  
2359  fi  fi
2360  rm -fr conftest*  echo "$as_me:$LINENO: result: yes" >&5
2361  ac_ext=c  echo "${ECHO_T}yes" >&6
2362  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
2363  ac_cpp='$CPP $CPPFLAGS'  rm -f a.out a.exe conftest$ac_cv_exeext b.out
2364  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_clean_files=$ac_clean_files_save
2365  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
2366  cross_compiling=$ac_cv_prog_cc_cross  # the compiler is broken, or we cross compile.
2367    echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2368  echo "$ac_t""$ac_cv_prog_cc_works" 1>&6  echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2369  if test $ac_cv_prog_cc_works = no; then  echo "$as_me:$LINENO: result: $cross_compiling" >&5
2370    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }  echo "${ECHO_T}$cross_compiling" >&6
2371  fi  
2372  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
2373  echo "configure:1354: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2374  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2375  cross_compiling=$ac_cv_prog_cc_cross    (eval $ac_link) 2>&5
2376      ac_status=$?
2377  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  echo "configure:1359: checking whether we are using GNU C" >&5    (exit $ac_status); }; then
2379  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then    # If both `conftest.exe' and `conftest' are `present' (well, observable)
2380    echo $ac_n "(cached) $ac_c" 1>&6  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2381  else  # work properly (i.e., refer to `conftest.exe'), while it won't with
2382    cat > conftest.c <<EOF  # `rm'.
2383  #ifdef __GNUC__  for ac_file in conftest.exe conftest conftest.*; do
2384    yes;    test -f "$ac_file" || continue
2385  #endif    case $ac_file in
2386  EOF      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2387  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2388    ac_cv_prog_gcc=yes            export ac_cv_exeext
2389              break;;
2390        * ) break;;
2391      esac
2392    done
2393  else  else
2394    ac_cv_prog_gcc=no    { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2395  fi  See \`config.log' for more details." >&5
2396  fi  echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2397    See \`config.log' for more details." >&2;}
2398       { (exit 1); exit 1; }; }
2399    fi
2400    
2401    rm -f conftest$ac_cv_exeext
2402    echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2403    echo "${ECHO_T}$ac_cv_exeext" >&6
2404    
2405    rm -f conftest.$ac_ext
2406    EXEEXT=$ac_cv_exeext
2407    ac_exeext=$EXEEXT
2408    echo "$as_me:$LINENO: checking for suffix of object files" >&5
2409    echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2410    if test "${ac_cv_objext+set}" = set; then
2411      echo $ECHO_N "(cached) $ECHO_C" >&6
2412    else
2413      cat >conftest.$ac_ext <<_ACEOF
2414    #line $LINENO "configure"
2415    /* confdefs.h.  */
2416    _ACEOF
2417    cat confdefs.h >>conftest.$ac_ext
2418    cat >>conftest.$ac_ext <<_ACEOF
2419    /* end confdefs.h.  */
2420    
2421  echo "$ac_t""$ac_cv_prog_gcc" 1>&6  int
2422    main ()
2423    {
2424    
2425  if test $ac_cv_prog_gcc = yes; then    ;
2426    GCC=yes    return 0;
2427    }
2428    _ACEOF
2429    rm -f conftest.o conftest.obj
2430    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431      (eval $ac_compile) 2>&5
2432      ac_status=$?
2433      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434      (exit $ac_status); }; then
2435      for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2436      case $ac_file in
2437        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2438        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2439           break;;
2440      esac
2441    done
2442  else  else
2443    GCC=    echo "$as_me: failed program was:" >&5
2444  fi  sed 's/^/| /' conftest.$ac_ext >&5
2445    
2446  ac_test_CFLAGS="${CFLAGS+set}"  { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2447  ac_save_CFLAGS="$CFLAGS"  See \`config.log' for more details." >&5
2448  CFLAGS=  echo "$as_me: error: cannot compute suffix of object files: cannot compile
2449  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  See \`config.log' for more details." >&2;}
2450  echo "configure:1387: checking whether ${CC-cc} accepts -g" >&5     { (exit 1); exit 1; }; }
2451  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  fi
2452    echo $ac_n "(cached) $ac_c" 1>&6  
2453  else  rm -f conftest.$ac_cv_objext conftest.$ac_ext
2454    echo 'void f(){}' > conftest.c  fi
2455  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2456    echo "${ECHO_T}$ac_cv_objext" >&6
2457    OBJEXT=$ac_cv_objext
2458    ac_objext=$OBJEXT
2459    echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2460    echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2461    if test "${ac_cv_c_compiler_gnu+set}" = set; then
2462      echo $ECHO_N "(cached) $ECHO_C" >&6
2463    else
2464      cat >conftest.$ac_ext <<_ACEOF
2465    #line $LINENO "configure"
2466    /* confdefs.h.  */
2467    _ACEOF
2468    cat confdefs.h >>conftest.$ac_ext
2469    cat >>conftest.$ac_ext <<_ACEOF
2470    /* end confdefs.h.  */
2471    
2472    int
2473    main ()
2474    {
2475    #ifndef __GNUC__
2476           choke me
2477    #endif
2478    
2479      ;
2480      return 0;
2481    }
2482    _ACEOF
2483    rm -f conftest.$ac_objext
2484    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2485      (eval $ac_compile) 2>&5
2486      ac_status=$?
2487      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488      (exit $ac_status); } &&
2489             { ac_try='test -s conftest.$ac_objext'
2490      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491      (eval $ac_try) 2>&5
2492      ac_status=$?
2493      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494      (exit $ac_status); }; }; then
2495      ac_compiler_gnu=yes
2496    else
2497      echo "$as_me: failed program was:" >&5
2498    sed 's/^/| /' conftest.$ac_ext >&5
2499    
2500    ac_compiler_gnu=no
2501    fi
2502    rm -f conftest.$ac_objext conftest.$ac_ext
2503    ac_cv_c_compiler_gnu=$ac_compiler_gnu
2504    
2505    fi
2506    echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2507    echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2508    GCC=`test $ac_compiler_gnu = yes && echo yes`
2509    ac_test_CFLAGS=${CFLAGS+set}
2510    ac_save_CFLAGS=$CFLAGS
2511    CFLAGS="-g"
2512    echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2513    echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2514    if test "${ac_cv_prog_cc_g+set}" = set; then
2515      echo $ECHO_N "(cached) $ECHO_C" >&6
2516    else
2517      cat >conftest.$ac_ext <<_ACEOF
2518    #line $LINENO "configure"
2519    /* confdefs.h.  */
2520    _ACEOF
2521    cat confdefs.h >>conftest.$ac_ext
2522    cat >>conftest.$ac_ext <<_ACEOF
2523    /* end confdefs.h.  */
2524    
2525    int
2526    main ()
2527    {
2528    
2529      ;
2530      return 0;
2531    }
2532    _ACEOF
2533    rm -f conftest.$ac_objext
2534    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535      (eval $ac_compile) 2>&5
2536      ac_status=$?
2537      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538      (exit $ac_status); } &&
2539             { ac_try='test -s conftest.$ac_objext'
2540      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541      (eval $ac_try) 2>&5
2542      ac_status=$?
2543      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544      (exit $ac_status); }; }; then
2545    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
2546  else  else
2547    ac_cv_prog_cc_g=no    echo "$as_me: failed program was:" >&5
2548  fi  sed 's/^/| /' conftest.$ac_ext >&5
 rm -f conftest*  
2549    
2550    ac_cv_prog_cc_g=no
2551  fi  fi
2552    rm -f conftest.$ac_objext conftest.$ac_ext
2553  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6  fi
2554    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2555    echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2556  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
2557    CFLAGS="$ac_save_CFLAGS"    CFLAGS=$ac_save_CFLAGS
2558  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
2559    if test "$GCC" = yes; then    if test "$GCC" = yes; then
2560      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 1413  else Line 2568  else
2568      CFLAGS=      CFLAGS=
2569    fi    fi
2570  fi  fi
2571    echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2572    echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2573    if test "${ac_cv_prog_cc_stdc+set}" = set; then
2574      echo $ECHO_N "(cached) $ECHO_C" >&6
2575    else
2576      ac_cv_prog_cc_stdc=no
2577    ac_save_CC=$CC
2578    cat >conftest.$ac_ext <<_ACEOF
2579    #line $LINENO "configure"
2580    /* confdefs.h.  */
2581    _ACEOF
2582    cat confdefs.h >>conftest.$ac_ext
2583    cat >>conftest.$ac_ext <<_ACEOF
2584    /* end confdefs.h.  */
2585    #include <stdarg.h>
2586    #include <stdio.h>
2587    #include <sys/types.h>
2588    #include <sys/stat.h>
2589    /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2590    struct buf { int x; };
2591    FILE * (*rcsopen) (struct buf *, struct stat *, int);
2592    static char *e (p, i)
2593         char **p;
2594         int i;
2595    {
2596      return p[i];
2597    }
2598    static char *f (char * (*g) (char **, int), char **p, ...)
2599    {
2600      char *s;
2601      va_list v;
2602      va_start (v,p);
2603      s = g (p, va_arg (v,int));
2604      va_end (v);
2605      return s;
2606    }
2607    int test (int i, double x);
2608    struct s1 {int (*f) (int a);};
2609    struct s2 {int (*f) (double a);};
2610    int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2611    int argc;
2612    char **argv;
2613    int
2614    main ()
2615    {
2616    return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2617      ;
2618      return 0;
2619    }
2620    _ACEOF
2621    # Don't try gcc -ansi; that turns off useful extensions and
2622    # breaks some systems' header files.
2623    # AIX                   -qlanglvl=ansi
2624    # Ultrix and OSF/1      -std1
2625    # HP-UX 10.20 and later -Ae
2626    # HP-UX older versions  -Aa -D_HPUX_SOURCE
2627    # SVR4                  -Xc -D__EXTENSIONS__
2628    for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2629    do
2630      CC="$ac_save_CC $ac_arg"
2631      rm -f conftest.$ac_objext
2632    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633      (eval $ac_compile) 2>&5
2634      ac_status=$?
2635      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636      (exit $ac_status); } &&
2637             { ac_try='test -s conftest.$ac_objext'
2638      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639      (eval $ac_try) 2>&5
2640      ac_status=$?
2641      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642      (exit $ac_status); }; }; then
2643      ac_cv_prog_cc_stdc=$ac_arg
2644    break
2645    else
2646      echo "$as_me: failed program was:" >&5
2647    sed 's/^/| /' conftest.$ac_ext >&5
2648    
2649    fi
2650    rm -f conftest.$ac_objext
2651    done
2652    rm -f conftest.$ac_ext conftest.$ac_objext
2653    CC=$ac_save_CC
2654    
2655  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  fi
2656  echo "configure:1419: checking how to run the C preprocessor" >&5  
2657    case "x$ac_cv_prog_cc_stdc" in
2658      x|xno)
2659        echo "$as_me:$LINENO: result: none needed" >&5
2660    echo "${ECHO_T}none needed" >&6 ;;
2661      *)
2662        echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2663    echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2664        CC="$CC $ac_cv_prog_cc_stdc" ;;
2665    esac
2666    
2667    # Some people use a C++ compiler to compile C.  Since we use `exit',
2668    # in C++ we need to declare it.  In case someone uses the same compiler
2669    # for both compiling C and C++ we need to have the C++ compiler decide
2670    # the declaration of exit, since it's the most demanding environment.
2671    cat >conftest.$ac_ext <<_ACEOF
2672    #ifndef __cplusplus
2673      choke me
2674    #endif
2675    _ACEOF
2676    rm -f conftest.$ac_objext
2677    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678      (eval $ac_compile) 2>&5
2679      ac_status=$?
2680      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681      (exit $ac_status); } &&
2682             { ac_try='test -s conftest.$ac_objext'
2683      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684      (eval $ac_try) 2>&5
2685      ac_status=$?
2686      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687      (exit $ac_status); }; }; then
2688      for ac_declaration in \
2689       ''\
2690       '#include <stdlib.h>' \
2691       'extern "C" void std::exit (int) throw (); using std::exit;' \
2692       'extern "C" void std::exit (int); using std::exit;' \
2693       'extern "C" void exit (int) throw ();' \
2694       'extern "C" void exit (int);' \
2695       'void exit (int);'
2696    do
2697      cat >conftest.$ac_ext <<_ACEOF
2698    #line $LINENO "configure"
2699    /* confdefs.h.  */
2700    _ACEOF
2701    cat confdefs.h >>conftest.$ac_ext
2702    cat >>conftest.$ac_ext <<_ACEOF
2703    /* end confdefs.h.  */
2704    #include <stdlib.h>
2705    $ac_declaration
2706    int
2707    main ()
2708    {
2709    exit (42);
2710      ;
2711      return 0;
2712    }
2713    _ACEOF
2714    rm -f conftest.$ac_objext
2715    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716      (eval $ac_compile) 2>&5
2717      ac_status=$?
2718      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719      (exit $ac_status); } &&
2720             { ac_try='test -s conftest.$ac_objext'
2721      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722      (eval $ac_try) 2>&5
2723      ac_status=$?
2724      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725      (exit $ac_status); }; }; then
2726      :
2727    else
2728      echo "$as_me: failed program was:" >&5
2729    sed 's/^/| /' conftest.$ac_ext >&5
2730    
2731    continue
2732    fi
2733    rm -f conftest.$ac_objext conftest.$ac_ext
2734      cat >conftest.$ac_ext <<_ACEOF
2735    #line $LINENO "configure"
2736    /* confdefs.h.  */
2737    _ACEOF
2738    cat confdefs.h >>conftest.$ac_ext
2739    cat >>conftest.$ac_ext <<_ACEOF
2740    /* end confdefs.h.  */
2741    $ac_declaration
2742    int
2743    main ()
2744    {
2745    exit (42);
2746      ;
2747      return 0;
2748    }
2749    _ACEOF
2750    rm -f conftest.$ac_objext
2751    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752      (eval $ac_compile) 2>&5
2753      ac_status=$?
2754      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755      (exit $ac_status); } &&
2756             { ac_try='test -s conftest.$ac_objext'
2757      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758      (eval $ac_try) 2>&5
2759      ac_status=$?
2760      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761      (exit $ac_status); }; }; then
2762      break
2763    else
2764      echo "$as_me: failed program was:" >&5
2765    sed 's/^/| /' conftest.$ac_ext >&5
2766    
2767    fi
2768    rm -f conftest.$ac_objext conftest.$ac_ext
2769    done
2770    rm -f conftest*
2771    if test -n "$ac_declaration"; then
2772      echo '#ifdef __cplusplus' >>confdefs.h
2773      echo $ac_declaration      >>confdefs.h
2774      echo '#endif'             >>confdefs.h
2775    fi
2776    
2777    else
2778      echo "$as_me: failed program was:" >&5
2779    sed 's/^/| /' conftest.$ac_ext >&5
2780    
2781    fi
2782    rm -f conftest.$ac_objext conftest.$ac_ext
2783    ac_ext=c
2784    ac_cpp='$CPP $CPPFLAGS'
2785    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2788    
2789    ac_ext=c
2790    ac_cpp='$CPP $CPPFLAGS'
2791    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794    echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2795    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2796  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
2797  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
2798    CPP=    CPP=
2799  fi  fi
2800  if test -z "$CPP"; then  if test -z "$CPP"; then
2801  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then    if test "${ac_cv_prog_CPP+set}" = set; then
2802    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2803  else  else
2804      # This must be in double quotes, not single quotes, because CPP may get        # Double quotes because CPP needs to be expanded
2805    # substituted into the Makefile and "${CC-cc}" will confuse make.      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2806    CPP="${CC-cc} -E"      do
2807          ac_preproc_ok=false
2808    for ac_c_preproc_warn_flag in '' yes
2809    do
2810      # Use a header file that comes with gcc, so configuring glibc
2811      # with a fresh cross-compiler works.
2812    # 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,
2813    # not just through cpp.    # not just through cpp. "Syntax error" is here to catch this case.
2814    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2815  #line 1434 "configure"  #line $LINENO "configure"
2816  #include "confdefs.h"  /* confdefs.h.  */
2817    _ACEOF
2818    cat confdefs.h >>conftest.$ac_ext
2819    cat >>conftest.$ac_ext <<_ACEOF
2820    /* end confdefs.h.  */
2821  #include <assert.h>  #include <assert.h>
2822  Syntax Error                       Syntax error
2823  EOF  _ACEOF
2824  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2825  { (eval echo configure:1440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2826  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2827  if test -z "$ac_err"; then    grep -v '^ *+' conftest.er1 >conftest.err
2828    :    rm -f conftest.er1
2829      cat conftest.err >&5
2830      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831      (exit $ac_status); } >/dev/null; then
2832      if test -s conftest.err; then
2833        ac_cpp_err=$ac_c_preproc_warn_flag
2834      else
2835        ac_cpp_err=
2836      fi
2837  else  else
2838    echo "$ac_err" >&5    ac_cpp_err=yes
2839    echo "configure: failed program was:" >&5  fi
2840    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 1451 "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:1457: \"$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  
2841    :    :
2842  else  else
2843    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
2844    echo "configure: failed program was:" >&5  sed 's/^/| /' conftest.$ac_ext >&5
2845    cat conftest.$ac_ext >&5  
2846    rm -rf conftest*    # Broken: fails on valid input.
2847    CPP="${CC-cc} -nologo -E"  continue
2848    cat > conftest.$ac_ext <<EOF  fi
2849  #line 1468 "configure"  rm -f conftest.err conftest.$ac_ext
2850  #include "confdefs.h"  
2851      # OK, works on sane cases.  Now check whether non-existent headers
2852      # can be detected and how.
2853      cat >conftest.$ac_ext <<_ACEOF
2854    #line $LINENO "configure"
2855    /* confdefs.h.  */
2856    _ACEOF
2857    cat confdefs.h >>conftest.$ac_ext
2858    cat >>conftest.$ac_ext <<_ACEOF
2859    /* end confdefs.h.  */
2860    #include <ac_nonexistent.h>
2861    _ACEOF
2862    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2863      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2864      ac_status=$?
2865      grep -v '^ *+' conftest.er1 >conftest.err
2866      rm -f conftest.er1
2867      cat conftest.err >&5
2868      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869      (exit $ac_status); } >/dev/null; then
2870      if test -s conftest.err; then
2871        ac_cpp_err=$ac_c_preproc_warn_flag
2872      else
2873        ac_cpp_err=
2874      fi
2875    else
2876      ac_cpp_err=yes
2877    fi
2878    if test -z "$ac_cpp_err"; then
2879      # Broken: success on invalid input.
2880    continue
2881    else
2882      echo "$as_me: failed program was:" >&5
2883    sed 's/^/| /' conftest.$ac_ext >&5
2884    
2885      # Passes both tests.
2886    ac_preproc_ok=:
2887    break
2888    fi
2889    rm -f conftest.err conftest.$ac_ext
2890    
2891    done
2892    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2893    rm -f conftest.err conftest.$ac_ext
2894    if $ac_preproc_ok; then
2895      break
2896    fi
2897    
2898        done
2899        ac_cv_prog_CPP=$CPP
2900    
2901    fi
2902      CPP=$ac_cv_prog_CPP
2903    else
2904      ac_cv_prog_CPP=$CPP
2905    fi
2906    echo "$as_me:$LINENO: result: $CPP" >&5
2907    echo "${ECHO_T}$CPP" >&6
2908    ac_preproc_ok=false
2909    for ac_c_preproc_warn_flag in '' yes
2910    do
2911      # Use a header file that comes with gcc, so configuring glibc
2912      # with a fresh cross-compiler works.
2913      # On the NeXT, cc -E runs the code through the compiler's parser,
2914      # not just through cpp. "Syntax error" is here to catch this case.
2915      cat >conftest.$ac_ext <<_ACEOF
2916    #line $LINENO "configure"
2917    /* confdefs.h.  */
2918    _ACEOF
2919    cat confdefs.h >>conftest.$ac_ext
2920    cat >>conftest.$ac_ext <<_ACEOF
2921    /* end confdefs.h.  */
2922  #include <assert.h>  #include <assert.h>
2923  Syntax Error                       Syntax error
2924  EOF  _ACEOF
2925  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2926  { (eval echo configure:1474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2927  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2928  if test -z "$ac_err"; then    grep -v '^ *+' conftest.er1 >conftest.err
2929    :    rm -f conftest.er1
2930      cat conftest.err >&5
2931      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932      (exit $ac_status); } >/dev/null; then
2933      if test -s conftest.err; then
2934        ac_cpp_err=$ac_c_preproc_warn_flag
2935      else
2936        ac_cpp_err=
2937      fi
2938  else  else
2939    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  
2940  fi  fi
2941  rm -f conftest*  if test -z "$ac_cpp_err"; then
2942      :
2943    else
2944      echo "$as_me: failed program was:" >&5
2945    sed 's/^/| /' conftest.$ac_ext >&5
2946    
2947      # Broken: fails on valid input.
2948    continue
2949  fi  fi
2950  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2951    
2952      # OK, works on sane cases.  Now check whether non-existent headers
2953      # can be detected and how.
2954      cat >conftest.$ac_ext <<_ACEOF
2955    #line $LINENO "configure"
2956    /* confdefs.h.  */
2957    _ACEOF
2958    cat confdefs.h >>conftest.$ac_ext
2959    cat >>conftest.$ac_ext <<_ACEOF
2960    /* end confdefs.h.  */
2961    #include <ac_nonexistent.h>
2962    _ACEOF
2963    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2964      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2965      ac_status=$?
2966      grep -v '^ *+' conftest.er1 >conftest.err
2967      rm -f conftest.er1
2968      cat conftest.err >&5
2969      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970      (exit $ac_status); } >/dev/null; then
2971      if test -s conftest.err; then
2972        ac_cpp_err=$ac_c_preproc_warn_flag
2973      else
2974        ac_cpp_err=
2975      fi
2976    else
2977      ac_cpp_err=yes
2978  fi  fi
2979  rm -f conftest*  if test -z "$ac_cpp_err"; then
2980    ac_cv_prog_CPP="$CPP"    # Broken: success on invalid input.
2981    continue
2982    else
2983      echo "$as_me: failed program was:" >&5
2984    sed 's/^/| /' conftest.$ac_ext >&5
2985    
2986      # Passes both tests.
2987    ac_preproc_ok=:
2988    break
2989  fi  fi
2990    CPP="$ac_cv_prog_CPP"  rm -f conftest.err conftest.$ac_ext
2991    
2992    done
2993    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2994    rm -f conftest.err conftest.$ac_ext
2995    if $ac_preproc_ok; then
2996      :
2997  else  else
2998    ac_cv_prog_CPP="$CPP"    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2999    See \`config.log' for more details." >&5
3000    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3001    See \`config.log' for more details." >&2;}
3002       { (exit 1); exit 1; }; }
3003  fi  fi
3004  echo "$ac_t""$CPP" 1>&6  
3005    ac_ext=c
3006    ac_cpp='$CPP $CPPFLAGS'
3007    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009    ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010    
3011    
3012    
# Line 1540  esac Line 3054  esac
3054    
3055  for ac_prog in gawk nawk awk  for ac_prog in gawk nawk awk
3056  do  do
3057  # 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.
3058  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
3059  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
3060  echo "configure:1547: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  if test "${ac_cv_prog_AWK+set}" = set; then
3062    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3063  else  else
3064    if test -n "$AWK"; then    if test -n "$AWK"; then
3065    ac_cv_prog_AWK="$AWK" # Let the user override the test.    ac_cv_prog_AWK="$AWK" # Let the user override the test.
3066  else  else
3067    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068    ac_dummy="$PATH"  for as_dir in $PATH
3069    for ac_dir in $ac_dummy; do  do
3070      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
3071      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
3072        ac_cv_prog_AWK="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
3073        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074      fi      ac_cv_prog_AWK="$ac_prog"
3075    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076    IFS="$ac_save_ifs"      break 2
3077      fi
3078    done
3079    done
3080    
3081  fi  fi
3082  fi  fi
3083  AWK="$ac_cv_prog_AWK"  AWK=$ac_cv_prog_AWK
3084  if test -n "$AWK"; then  if test -n "$AWK"; then
3085    echo "$ac_t""$AWK" 1>&6    echo "$as_me:$LINENO: result: $AWK" >&5
3086    echo "${ECHO_T}$AWK" >&6
3087  else  else
3088    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3089    echo "${ECHO_T}no" >&6
3090  fi  fi
3091    
3092  test -n "$AWK" && break    test -n "$AWK" && break
3093  done  done
3094  test -n "$AWK" || AWK=""""  test -n "$AWK" || AWK=""""
3095    
# Line 1578  if test "$enable_gprof" = "yes" ; then Line 3098  if test "$enable_gprof" = "yes" ; then
3098          TCFLAGS="$TCFLAGS -pg"          TCFLAGS="$TCFLAGS -pg"
3099          TLIBS="$TLIBS -pg"          TLIBS="$TLIBS -pg"
3100          TFPFLAG=""          TFPFLAG=""
3101          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
3102  #define GCL_GPROF 1  #define GCL_GPROF 1
3103  EOF  _ACEOF
3104    
3105          echo $ac_n "checking for text start""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for text start" >&5
3106  echo "configure:1587: checking for text start" >&5  echo $ECHO_N "checking for text start... $ECHO_C" >&6
3107          echo 'int main () {return(0);}' >foo.c          echo 'int main () {return(0);}' >foo.c
3108          $CC foo.c -o foo          $CC foo.c -o foo
3109          GCL_GPROF_START=`nm foo | $AWK  '/  *T  *__*start$/ {print $NF}'`          GCL_GPROF_START=`nm foo | $AWK  '/  *T  *__*start$/ {print $NF}'`
3110          rm -f foo.c foo          rm -f foo.c foo
3111          echo "$ac_t""$GCL_GPROF_START" 1>&6          echo "$as_me:$LINENO: result: $GCL_GPROF_START" >&5
3112          cat >> confdefs.h <<EOF  echo "${ECHO_T}$GCL_GPROF_START" >&6
3113            cat >>confdefs.h <<_ACEOF
3114  #define GCL_GPROF_START $GCL_GPROF_START  #define GCL_GPROF_START $GCL_GPROF_START
3115  EOF  _ACEOF
3116    
3117          case "$use" in            case "$use" in
3118            arm*)            arm*)
3119          #FIXME report and remove this when done          #FIXME report and remove this when done
3120                  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
3121    echo "${ECHO_T}Reducing optimization on profiling arm build to workaround gcc bug" >&6
3122                  enable_debug=yes;;                  enable_debug=yes;;
3123          esac          esac
3124  fi  fi
# Line 1619  fi Line 3141  fi
3141    
3142  # 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
3143  TONIFLAGS=""  TONIFLAGS=""
3144  case $use in  case $use in
3145       *linux)       *linux)
3146          case $use in          case $use in
3147  #               amd64*) # stack-boundary option does not work  #               amd64*) # stack-boundary option does not work
3148  #                       TCFLAGS="$TCFLAGS -m64 -mpreferred-stack-boundary=8";;    #                       TCFLAGS="$TCFLAGS -m64 -mpreferred-stack-boundary=8";;
3149                  alpha*)                  alpha*)
3150                          TCFLAGS="$TCFLAGS -mieee";;                          TCFLAGS="$TCFLAGS -mieee";;
3151  #               m68k*)  #               m68k*)
# Line 1634  case $use in Line 3156  case $use in
3156                          if test "$enable_debug" != "yes" ; then TO2FLAGS="-O" ; fi                          if test "$enable_debug" != "yes" ; then TO2FLAGS="-O" ; fi
3157                          ;;                          ;;
3158                  arm*)                  arm*)
3159                          TCFLAGS="$TCFLAGS -mlong-calls";;                                TCFLAGS="$TCFLAGS -mlong-calls";;
3160                  powerpc*)                  powerpc*)
3161                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then
3162                             echo Reducing optimization for buggy gcc-3.2                             echo Reducing optimization for buggy gcc-3.2
3163                             if test "$enable_debug" != "yes" ; then TONIFLAGS="-O $TFPFLAG" ; fi                             if test "$enable_debug" != "yes" ; then TONIFLAGS="-O $TFPFLAG" ; fi
# Line 1658  fi Line 3180  fi
3180  # 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
3181  # there are a few systems, like Next, where this doesn't work.  # there are a few systems, like Next, where this doesn't work.
3182    
3183  echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5
3184  echo "configure:1663: checking system version (for dynamic loading)" >&5  echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6
3185  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
3186    
3187  for ac_prog in makeinfo  for ac_prog in makeinfo
3188  do  do
3189  # 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.
3190  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
3191  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
3192  echo "configure:1671: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then  if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3194    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3195  else  else
3196    if test -n "$MAKEINFO"; then    if test -n "$MAKEINFO"; then
3197    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3198  else  else
3199    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200    ac_dummy="$PATH"  for as_dir in $PATH
3201    for ac_dir in $ac_dummy; do  do
3202      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
3203      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
3204        ac_cv_prog_MAKEINFO="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
3205        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206      fi      ac_cv_prog_MAKEINFO="$ac_prog"
3207    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208    IFS="$ac_save_ifs"      break 2
3209      fi
3210    done
3211    done
3212    
3213  fi  fi
3214  fi  fi
3215  MAKEINFO="$ac_cv_prog_MAKEINFO"  MAKEINFO=$ac_cv_prog_MAKEINFO
3216  if test -n "$MAKEINFO"; then  if test -n "$MAKEINFO"; then
3217    echo "$ac_t""$MAKEINFO" 1>&6    echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3218    echo "${ECHO_T}$MAKEINFO" >&6
3219  else  else
3220    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3221    echo "${ECHO_T}no" >&6
3222  fi  fi
3223    
3224  test -n "$MAKEINFO" && break    test -n "$MAKEINFO" && break
3225  done  done
3226  test -n "$MAKEINFO" || MAKEINFO=""false""  test -n "$MAKEINFO" || MAKEINFO=""false""
3227    
# Line 1704  if test -f /usr/lib/NextStep/software_ve Line 3232  if test -f /usr/lib/NextStep/software_ve
3232  else  else
3233      system=`uname -s`-`uname -r`      system=`uname -s`-`uname -r`
3234      if test "$?" -ne 0 ; then      if test "$?" -ne 0 ; then
3235          echo "$ac_t""unknown (can't find uname command)" 1>&6          echo "$as_me:$LINENO: result: unknown (can't find uname command)" >&5
3236    echo "${ECHO_T}unknown (can't find uname command)" >&6
3237          system=unknown          system=unknown
3238      else      else
3239          # Special check for weird MP-RAS system (uname returns weird          # Special check for weird MP-RAS system (uname returns weird
3240          # results, and the version is kept in special file).          # results, and the version is kept in special file).
3241        
3242          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
3243              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`
3244          fi          fi
3245          if test "`uname -s`" = "AIX" ; then          if test "`uname -s`" = "AIX" ; then
3246              system=AIX-`uname -v`.`uname -r`              system=AIX-`uname -v`.`uname -r`
3247          fi          fi
3248          echo "$ac_t""$system" 1>&6          echo "$as_me:$LINENO: result: $system" >&5
3249    echo "${ECHO_T}$system" >&6
3250      fi      fi
3251  fi  fi
3252    
# Line 1734  if test $use_gmp = yes ; then Line 3264  if test $use_gmp = yes ; then
3264   GMPDIR=gmp3   GMPDIR=gmp3
3265   PATCHED_SYMBOLS=""   PATCHED_SYMBOLS=""
3266   if test "$enable_dynsysgmp" = "yes" ; then   if test "$enable_dynsysgmp" = "yes" ; then
3267          ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`  
3268  echo $ac_n "checking for gmp.h""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for egrep" >&5
3269  echo "configure:1740: checking for gmp.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 <gmp.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  fi
3347  rm -f conftest*  rm -f conftest*
3348    
3349  fi  fi
 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6  
 echo "configure:1767: 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  
 else  
   ac_save_LIBS="$LIBS"  
 LIBS="-lgmp  $LIBS"  
 cat > conftest.$ac_ext <<EOF  
 #line 1775 "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();  
3350    
3351  int main() {  if test $ac_cv_header_stdc = yes; then
3352  __gmpz_init()    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3353  ; return 0; }    cat >conftest.$ac_ext <<_ACEOF
3354  EOF  #line $LINENO "configure"
3355  if { (eval echo configure:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  /* confdefs.h.  */
3356    rm -rf conftest*  _ACEOF
3357    eval "ac_cv_lib_$ac_lib_var=yes"  cat confdefs.h >>conftest.$ac_ext
3358  else  cat >>conftest.$ac_ext <<_ACEOF
3359    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
3360    cat conftest.$ac_ext >&5  #include <stdlib.h>
3361    rm -rf conftest*  
3362    eval "ac_cv_lib_$ac_lib_var=no"  _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*
 LIBS="$ac_save_LIBS"  
3370    
3371  fi  fi
3372  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
3373    echo "$ac_t""yes" 1>&6  if test $ac_cv_header_stdc = yes; then
3374    echo $ac_n "checking "for external gmp version"""... $ac_c" 1>&6    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3375  echo "configure:1802: checking "for external gmp version"" >&5    if test "$cross_compiling" = yes; then
3376                          if test "$cross_compiling" = yes; then    :
   echo "Cannot use dynamic gmp lib"  
3377  else  else
3378    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3379  #line 1807 "configure"  #line $LINENO "configure"
3380  #include "confdefs.h"  /* confdefs.h.  */
3381    _ACEOF
3382    cat confdefs.h >>conftest.$ac_ext
3383    cat >>conftest.$ac_ext <<_ACEOF
3384    /* end confdefs.h.  */
3385    #include <ctype.h>
3386    #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    #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3398    int
3399    main ()
3400    {
3401      int i;
3402      for (i = 0; i < 256; i++)
3403        if (XOR (islower (i), ISLOWER (i))
3404            || toupper (i) != TOUPPER (i))
3405          exit(2);
3406      exit (0);
3407    }
3408    _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
3429    rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3430    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
3442    
3443    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3444    
3445    
3446    
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_gmp_h+set}" = set; then
3507      echo "$as_me:$LINENO: checking for gmp.h" >&5
3508    echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
3509    if test "${ac_cv_header_gmp_h+set}" = set; then
3510      echo $ECHO_N "(cached) $ECHO_C" >&6
3511    fi
3512    echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
3513    echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
3514    else
3515      # Is the header compilable?
3516    echo "$as_me:$LINENO: checking gmp.h usability" >&5
3517    echo $ECHO_N "checking gmp.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 <gmp.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 gmp.h presence" >&5
3553    echo $ECHO_N "checking gmp.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 <gmp.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: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
3595    echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3596        { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
3597    echo "$as_me: WARNING: gmp.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: gmp.h: present but cannot be compiled" >&5
3609    echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
3610        { echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5
3611    echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;}
3612        { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
3613    echo "$as_me: WARNING: gmp.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 gmp.h" >&5
3625    echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
3626    if test "${ac_cv_header_gmp_h+set}" = set; then
3627      echo $ECHO_N "(cached) $ECHO_C" >&6
3628    else
3629      ac_cv_header_gmp_h=$ac_header_preproc
3630    fi
3631    echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
3632    echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
3633    
3634    fi
3635    if test $ac_cv_header_gmp_h = yes; then
3636      echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
3637    echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6
3638    if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
3639      echo $ECHO_N "(cached) $ECHO_C" >&6
3640    else
3641      ac_check_lib_save_LIBS=$LIBS
3642    LIBS="-lgmp  $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 __gmpz_init ();
3658    int
3659    main ()
3660    {
3661    __gmpz_init ();
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_gmp___gmpz_init=yes
3679    else
3680      echo "$as_me: failed program was:" >&5
3681    sed 's/^/| /' conftest.$ac_ext >&5
3682    
3683    ac_cv_lib_gmp___gmpz_init=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_gmp___gmpz_init" >&5
3689    echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6
3690    if test $ac_cv_lib_gmp___gmpz_init = yes; then
3691      echo "$as_me:$LINENO: checking \"for external gmp version\"" >&5
3692    echo $ECHO_N "checking \"for external gmp version\"... $ECHO_C" >&6
3693    
3694    if test "$cross_compiling" = yes; then
3695      echo "Cannot use dynamic gmp lib"
3696    else
3697      cat >conftest.$ac_ext <<_ACEOF
3698    #line $LINENO "configure"
3699    /* confdefs.h.  */
3700    _ACEOF
3701    cat confdefs.h >>conftest.$ac_ext
3702    cat >>conftest.$ac_ext <<_ACEOF
3703    /* end confdefs.h.  */
3704  #include <gmp.h>  #include <gmp.h>
3705                                      int main() {                                      int main() {
3706                                      #if __GNU_MP_VERSION == 4                                      #if __GNU_MP_VERSION == 4
# Line 1813  else Line 3709  else
3709                                          return -1;                                          return -1;
3710                                      #endif                                      #endif
3711                                      }                                      }
3712  EOF  _ACEOF
3713  if { (eval echo configure:1818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3714  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3715      (eval $ac_link) 2>&5
3716      ac_status=$?
3717      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3719      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720      (eval $ac_try) 2>&5
3721      ac_status=$?
3722      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723      (exit $ac_status); }; }; then
3724    #                             MPFILES=$GMPDIR/mpn/mul_n.o    #                             MPFILES=$GMPDIR/mpn/mul_n.o
3725  #                               PATCHED_SYMBOLS=__gmpn_toom3_mul_n  #                               PATCHED_SYMBOLS=__gmpn_toom3_mul_n
3726                                  MPFILES=                                  MPFILES=
# Line 1830  then Line 3735  then
3735                                  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 '"'`
3736                                  rm -f foo.c                                  rm -f foo.c
3737  else  else
3738    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3739    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
3740    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
3741    echo "Cannot use dynamic gmp lib"  
3742    ( exit $ac_status )
3743    echo "Cannot use dynamic gmp lib"
3744  fi  fi
3745  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3746  fi  fi
   
3747  else  else
3748    echo "$ac_t""no" 1>&6    echo "Cannot use dynamic gmp lib"
 echo "Cannot use dynamic gmp lib"  
3749  fi  fi
3750    
3751  else  else
3752    echo "$ac_t""no" 1>&6    echo "Cannot use dynamic gmp lib"
 echo "Cannot use dynamic gmp lib"  
3753  fi  fi
3754    
3755    
3756  fi  fi
3757    
3758  NEED_LOCAL_GMP=''  NEED_LOCAL_GMP=''
3759  if test "$MP_INCLUDE" = "" ; then                        if test "$MP_INCLUDE" = "" ; then
3760          NEED_LOCAL_GMP=1;          NEED_LOCAL_GMP=1;
3761  fi  fi
3762  if test "$PATCHED_SYMBOLS" != "" ; then                  if test "$PATCHED_SYMBOLS" != "" ; then
3763          NEED_LOCAL_GMP=1;          NEED_LOCAL_GMP=1;
3764  fi  fi
3765    
3766  if test "$NEED_LOCAL_GMP" != "" ; then                    if test "$NEED_LOCAL_GMP" != "" ; then
3767    
3768           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
3769  echo "configure:1865: 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
3770           echo           echo
3771           echo "#"           echo "#"
3772           echo "#"           echo "#"
# Line 1875  echo "configure:1865: checking use_gmp=y Line 3780  echo "configure:1865: checking use_gmp=y
3780           else           else
3781             cd $GMPDIR && ./configure && cd ..             cd $GMPDIR && ./configure && cd ..
3782           fi           fi
3783          #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"          #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"
3784    
3785           echo "#"           echo "#"
3786           echo "#"           echo "#"
# Line 1892  echo "configure:1865: checking use_gmp=y Line 3797  echo "configure:1865: checking use_gmp=y
3797    
3798  fi  fi
3799    
3800  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
3801  echo "configure:1897: checking "for leading underscore in object symbols"" >&5  echo $ECHO_N "checking \"for leading underscore in object symbols\"... $ECHO_C" >&6
3802  cat>foo.c <<EOFF  cat>foo.c <<EOFF
3803  #include <math.h>  #include <math.h>
3804  int main() {double d=0.0;cos(d);return 0;}  int main() {double d=0.0;cos(d);return 0;}
# Line 1901  EOFF Line 3806  EOFF
3806  $CC -c foo.c -o foo.o  $CC -c foo.c -o foo.o
3807  if nm foo.o |grep " U " | grep "_cos" >/dev/null ; then  if nm foo.o |grep " U " | grep "_cos" >/dev/null ; then
3808          LEADING_UNDERSCORE=1          LEADING_UNDERSCORE=1
3809          echo "$ac_t"""yes"" 1>&6          echo "$as_me:$LINENO: result: \"yes\"" >&5
3810    echo "${ECHO_T}\"yes\"" >&6
3811  else  else
3812          LEADING_UNDERSCORE=""          LEADING_UNDERSCORE=""
3813          echo "$ac_t"""no"" 1>&6          echo "$as_me:$LINENO: result: \"no\"" >&5
3814    echo "${ECHO_T}\"no\"" >&6
3815  fi  fi
3816  echo $ac_n "checking "for GNU ld option -Map"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"for GNU ld option -Map\"" >&5
3817  echo "configure:1911: checking "for GNU ld option -Map"" >&5  echo $ECHO_N "checking \"for GNU ld option -Map\"... $ECHO_C" >&6
3818  touch map  touch map
3819  $CC -o foo  -Wl,-Map  map foo.o >/dev/null 2>&1  $CC -o foo  -Wl,-Map  map foo.o >/dev/null 2>&1
3820  if test `cat map | wc -l` != "0" ; then  if test `cat map | wc -l` != "0" ; then
3821          echo "$ac_t"""yes"" 1>&6          echo "$as_me:$LINENO: result: \"yes\"" >&5
3822          cat >> confdefs.h <<\EOF  echo "${ECHO_T}\"yes\"" >&6
3823            cat >>confdefs.h <<\_ACEOF
3824  #define HAVE_GNU_LD 1  #define HAVE_GNU_LD 1
3825  EOF  _ACEOF
3826    
3827          GNU_LD=1          GNU_LD=1
3828  else  else
3829          echo "$ac_t"""no"" 1>&6          echo "$as_me:$LINENO: result: \"no\"" >&5
3830    echo "${ECHO_T}\"no\"" >&6
3831          GNU_LD=          GNU_LD=
3832  fi  fi
3833  rm -f foo.c foo.o foo map  rm -f foo.c foo.o foo map
3834    
3835   echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking \"for size of gmp limbs\"" >&5
3836  echo "configure:1928: checking "for size of gmp limbs"" >&5  echo $ECHO_N "checking \"for size of gmp limbs\"... $ECHO_C" >&6
3837   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3838    mpsize=0    mpsize=0
3839  else  else
3840    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3841  #line 1933 "configure"  #line $LINENO "configure"
3842  #include "confdefs.h"  /* confdefs.h.  */
3843    _ACEOF
3844    cat confdefs.h >>conftest.$ac_ext
3845    cat >>conftest.$ac_ext <<_ACEOF
3846    /* end confdefs.h.  */
3847  #include <stdio.h>  #include <stdio.h>
3848          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
3849          int main() {          int main() {
# Line 1939  else Line 3852  else
3852          fclose(fp);          fclose(fp);
3853          return 0;          return 0;
3854          }          }
3855  EOF  _ACEOF
3856  if { (eval echo configure:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3857  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3858      (eval $ac_link) 2>&5
3859      ac_status=$?
3860      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3862      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863      (eval $ac_try) 2>&5
3864      ac_status=$?
3865      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866      (exit $ac_status); }; }; then
3867    mpsize=`cat conftest1`    mpsize=`cat conftest1`
3868  else  else
3869    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3870    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
3871    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
3872    mpsize=0  
3873    ( exit $ac_status )
3874    mpsize=0
3875  fi  fi
3876  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3877  fi  fi
   
3878   if test "$mpsize" = "0" ; then   if test "$mpsize" = "0" ; then
3879          echo "Cannot determine mpsize"          echo "Cannot determine mpsize"
3880          exit 1          exit 1
3881   fi   fi
3882   cat >> confdefs.h <<EOF   cat >>confdefs.h <<_ACEOF
3883  #define MP_LIMB_BYTES $mpsize  #define MP_LIMB_BYTES $mpsize
3884  EOF  _ACEOF
3885    
3886   echo "$ac_t""$mpsize" 1>&6   echo "$as_me:$LINENO: result: $mpsize" >&5
3887    echo "${ECHO_T}$mpsize" >&6
3888    
3889   echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking \"_SHORT_LIMB\"" >&5
3890  echo "configure:1967: checking "_SHORT_LIMB"" >&5  echo $ECHO_N "checking \"_SHORT_LIMB\"... $ECHO_C" >&6
3891   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3892    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3893    echo "${ECHO_T}no" >&6
3894  else  else
3895    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3896  #line 1972 "configure"  #line $LINENO "configure"
3897  #include "confdefs.h"  /* confdefs.h.  */
3898    _ACEOF
3899    cat confdefs.h >>conftest.$ac_ext
3900    cat >>conftest.$ac_ext <<_ACEOF
3901    /* end confdefs.h.  */
3902  #include <stdio.h>  #include <stdio.h>
3903          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
3904          int main() {          int main() {
# Line 1979  else Line 3908  else
3908          return 1;          return 1;
3909          #endif          #endif
3910          }          }
3911  EOF  _ACEOF
3912  if { (eval echo configure:1984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3913  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3914    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
3915      ac_status=$?
3916      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3918      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919      (eval $ac_try) 2>&5
3920      ac_status=$?
3921      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922      (exit $ac_status); }; }; then
3923      cat >>confdefs.h <<\_ACEOF
3924  #define __SHORT_LIMB 1  #define __SHORT_LIMB 1
3925  EOF  _ACEOF
3926   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
3927  else  echo "${ECHO_T}yes" >&6
3928    echo "configure: failed program was:" >&5  else
3929    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
3930    rm -fr conftest*  echo "$as_me: failed program was:" >&5
3931    echo "$ac_t""no" 1>&6  sed 's/^/| /' conftest.$ac_ext >&5
3932    
3933    ( exit $ac_status )
3934    echo "$as_me:$LINENO: result: no" >&5
3935    echo "${ECHO_T}no" >&6
3936  fi  fi
3937  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3938  fi  fi
3939     echo "$as_me:$LINENO: checking \"_LONG_LONG_LIMB\"" >&5
3940   echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6  echo $ECHO_N "checking \"_LONG_LONG_LIMB\"... $ECHO_C" >&6
 echo "configure:2000: checking "_LONG_LONG_LIMB"" >&5  
3941   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3942    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3943    echo "${ECHO_T}no" >&6
3944  else  else
3945    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3946  #line 2005 "configure"  #line $LINENO "configure"
3947  #include "confdefs.h"  /* confdefs.h.  */
3948    _ACEOF
3949    cat confdefs.h >>conftest.$ac_ext
3950    cat >>conftest.$ac_ext <<_ACEOF
3951    /* end confdefs.h.  */
3952  #include <stdio.h>  #include <stdio.h>
3953          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
3954          int main() {          int main() {
# Line 2012  else Line 3958  else
3958          return 1;          return 1;
3959          #endif          #endif
3960          }          }
3961  EOF  _ACEOF
3962  if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3963  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3964    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
3965      ac_status=$?
3966      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3968      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969      (eval $ac_try) 2>&5
3970      ac_status=$?
3971      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972      (exit $ac_status); }; }; then
3973      cat >>confdefs.h <<\_ACEOF
3974  #define __LONG_LONG_LIMB 1  #define __LONG_LONG_LIMB 1
3975  EOF  _ACEOF
3976   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
3977  else  echo "${ECHO_T}yes" >&6
3978    echo "configure: failed program was:" >&5  else
3979    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
3980    rm -fr conftest*  echo "$as_me: failed program was:" >&5
3981    echo "$ac_t""no" 1>&6  sed 's/^/| /' conftest.$ac_ext >&5
3982    
3983    ( exit $ac_status )
3984    echo "$as_me:$LINENO: result: no" >&5
3985    echo "${ECHO_T}no" >&6
3986  fi  fi
3987  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3988  fi  fi
3989    
   
3990   GMP=1   GMP=1
3991   cat >> confdefs.h <<\EOF   cat >>confdefs.h <<\_ACEOF
3992  #define GMP 1  #define GMP 1
3993  EOF  _ACEOF
3994    
3995    
3996    
   
   
3997   echo > makedefsafter   echo > makedefsafter
3998   echo "MPFILES=$MPFILES" >> makedefsafter   echo "MPFILES=$MPFILES" >> makedefsafter
3999   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter
# Line 2045  fi Line 4003  fi
4003    
4004  #  #
4005  # X windows  # X windows
4006  #  #
4007    
4008    echo "$as_me:$LINENO: checking for X" >&5
4009    echo $ECHO_N "checking for X... $ECHO_C" >&6
4010    
 # 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:2056: checking for X" >&5  
4011    
4012  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
4013  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
4014    withval="$with_x"    withval="$with_x"
   :  
 fi  
4015    
4016    fi;
4017  # $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.
4018  if test "x$with_x" = xno; then  if test "x$with_x" = xno; then
4019    # The user explicitly disabled X.    # The user explicitly disabled X.
# Line 2069  else Line 4023  else
4023      # Both variables are already set.      # Both variables are already set.
4024      have_x=yes      have_x=yes
4025    else    else
4026  if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then      if test "${ac_cv_have_x+set}" = set; then
4027    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4028  else  else
4029    # 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.
4030  ac_x_includes=NO ac_x_libraries=NO  ac_x_includes=no ac_x_libraries=no
4031  rm -fr conftestdir  rm -fr conftest.dir
4032  if mkdir conftestdir; then  if mkdir conftest.dir; then
4033    cd conftestdir    cd conftest.dir
4034    # 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.
4035    cat > Imakefile <<'EOF'    cat >Imakefile <<'_ACEOF'
4036  acfindx:  acfindx:
4037          @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}"'
4038  EOF  _ACEOF
4039    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4040      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4041      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4042      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4043      for ac_extension in a so sl; do      for ac_extension in a so sl; do
4044        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4045          test -f $ac_im_libdir/libX11.$ac_extension; then           test -f $ac_im_libdir/libX11.$ac_extension; then
4046          ac_im_usrlibdir=$ac_im_libdir; break          ac_im_usrlibdir=$ac_im_libdir; break
4047        fi        fi
4048      done      done
4049      # Screen out bogus values from the imake configuration.  They are      # Screen out bogus values from the imake configuration.  They are
4050      # bogus both because they are the default anyway, and because      # bogus both because they are the default anyway, and because
4051      # using them would break gcc on systems where it needs fixed includes.      # using them would break gcc on systems where it needs fixed includes.
4052      case "$ac_im_incroot" in      case $ac_im_incroot in
4053          /usr/include) ;;          /usr/include) ;;
4054          *) 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;;
4055      esac      esac
4056      case "$ac_im_usrlibdir" in      case $ac_im_usrlibdir in
4057          /usr/lib | /lib) ;;          /usr/lib | /lib) ;;
4058          *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;          *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4059      esac      esac
4060    fi    fi
4061    cd ..    cd ..
4062    rm -fr conftestdir    rm -fr conftest.dir
4063  fi  fi
4064    
4065  if test "$ac_x_includes" = NO; then  # Standard set of common directories for X headers.
4066    # 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.
4067    test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h  ac_x_header_dirs='
4068    /usr/X11/include
4069    /usr/X11R6/include
4070    /usr/X11R5/include
4071    /usr/X11R4/include
4072    
4073    /usr/include/X11
4074    /usr/include/X11R6
4075    /usr/include/X11R5
4076    /usr/include/X11R4
4077    
4078    /usr/local/X11/include
4079    /usr/local/X11R6/include
4080    /usr/local/X11R5/include
4081    /usr/local/X11R4/include
4082    
4083    /usr/local/include/X11
4084    /usr/local/include/X11R6
4085    /usr/local/include/X11R5
4086    /usr/local/include/X11R4
4087    
4088    /usr/X386/include
4089    /usr/x386/include
4090    /usr/XFree86/include/X11
4091    
4092    /usr/include
4093    /usr/local/include
4094    /usr/unsupported/include
4095    /usr/athena/include
4096    /usr/local/x11r5/include
4097    /usr/lpp/Xamples/include
4098    
4099    /usr/openwin/include
4100    /usr/openwin/share/include'
4101    
4102    if test "$ac_x_includes" = no; then
4103      # Guess where to find include files, by looking for Intrinsic.h.
4104    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
4105  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4106  #line 2118 "configure"  #line $LINENO "configure"
4107  #include "confdefs.h"  /* confdefs.h.  */
4108  #include <$x_direct_test_include>  _ACEOF
4109  EOF  cat confdefs.h >>conftest.$ac_ext
4110  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  cat >>conftest.$ac_ext <<_ACEOF
4111  { (eval echo configure:2123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  /* end confdefs.h.  */
4112  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  #include <X11/Intrinsic.h>
4113  if test -z "$ac_err"; then  _ACEOF
4114    rm -rf conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4115      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4116      ac_status=$?
4117      grep -v '^ *+' conftest.er1 >conftest.err
4118      rm -f conftest.er1
4119      cat conftest.err >&5
4120      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121      (exit $ac_status); } >/dev/null; then
4122      if test -s conftest.err; then
4123        ac_cpp_err=$ac_c_preproc_warn_flag
4124      else
4125        ac_cpp_err=
4126      fi
4127    else
4128      ac_cpp_err=yes
4129    fi
4130    if test -z "$ac_cpp_err"; then
4131    # We can compile using X headers with no special include directory.    # We can compile using X headers with no special include directory.
4132  ac_x_includes=  ac_x_includes=
4133  else  else
4134    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
4135    echo "configure: failed program was:" >&5  sed 's/^/| /' conftest.$ac_ext >&5
4136    cat conftest.$ac_ext >&5  
4137    rm -rf conftest*    for ac_dir in $ac_x_header_dirs; do
4138    # Look for the header file in a standard set of common directories.    if test -r "$ac_dir/X11/Intrinsic.h"; then
4139  # Check X11 before X11Rn because it is often a symlink to the current release.      ac_x_includes=$ac_dir
4140    for ac_dir in               \      break
4141      /usr/X11/include          \    fi
4142      /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  
4143  fi  fi
4144  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
4145  fi # $ac_x_includes = NO  fi # $ac_x_includes = no
4146    
4147  if test "$ac_x_libraries" = NO; then  if test "$ac_x_libraries" = no; then
4148    # 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  
   
4149    # See if we find them without any special options.    # See if we find them without any special options.
4150    # Don't add to $LIBS permanently.    # Don't add to $LIBS permanently.
4151    ac_save_LIBS="$LIBS"    ac_save_LIBS=$LIBS
4152    LIBS="-l$x_direct_test_library $LIBS"    LIBS="-lXt $LIBS"
4153  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4154  #line 2192 "configure"  #line $LINENO "configure"
4155  #include "confdefs.h"  /* confdefs.h.  */
4156    _ACEOF
4157  int main() {  cat confdefs.h >>conftest.$ac_ext
4158  ${x_direct_test_function}()  cat >>conftest.$ac_ext <<_ACEOF
4159  ; return 0; }  /* end confdefs.h.  */
4160  EOF  #include <X11/Intrinsic.h>
4161  if { (eval echo configure:2199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  int
4162    rm -rf conftest*  main ()
4163    LIBS="$ac_save_LIBS"  {
4164    XtMalloc (0)
4165      ;
4166      return 0;
4167    }
4168    _ACEOF
4169    rm -f conftest.$ac_objext conftest$ac_exeext
4170    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171      (eval $ac_link) 2>&5
4172      ac_status=$?
4173      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174      (exit $ac_status); } &&
4175             { ac_try='test -s conftest$ac_exeext'
4176      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177      (eval $ac_try) 2>&5
4178      ac_status=$?
4179      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180      (exit $ac_status); }; }; then
4181      LIBS=$ac_save_LIBS
4182  # We can link X programs with no special library path.  # We can link X programs with no special library path.
4183  ac_x_libraries=  ac_x_libraries=
4184  else  else
4185    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4186    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4187    rm -rf conftest*  
4188    LIBS="$ac_save_LIBS"  LIBS=$ac_save_LIBS
4189  # 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 \  
     ; \  
4190  do  do
4191      # Don't even attempt the hair of trying to link an X program!
4192    for ac_extension in a so sl; do    for ac_extension in a so sl; do
4193      if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then      if test -r $ac_dir/libXt.$ac_extension; then
4194        ac_x_libraries=$ac_dir        ac_x_libraries=$ac_dir
4195        break 2        break 2
4196      fi      fi
4197    done    done
4198  done  done
4199  fi  fi
4200  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4201  fi # $ac_x_libraries = NO  fi # $ac_x_libraries = no
4202    
4203  if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then  if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4204    # Didn't find X anywhere.  Cache the known absence of X.    # Didn't find X anywhere.  Cache the known absence of X.
4205    ac_cv_have_x="have_x=no"    ac_cv_have_x="have_x=no"
4206  else  else
# Line 2264  else Line 4209  else
4209                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4210  fi  fi
4211  fi  fi
4212    
4213    fi    fi
4214    eval "$ac_cv_have_x"    eval "$ac_cv_have_x"
4215  fi # $with_x != no  fi # $with_x != no
4216    
4217  if test "$have_x" != yes; then  if test "$have_x" != yes; then
4218    echo "$ac_t""$have_x" 1>&6    echo "$as_me:$LINENO: result: $have_x" >&5
4219    echo "${ECHO_T}$have_x" >&6
4220    no_x=yes    no_x=yes
4221  else  else
4222    # 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 2278  else Line 4225  else
4225    # Update the cache value to reflect the command line values.    # Update the cache value to reflect the command line values.
4226    ac_cv_have_x="have_x=yes \    ac_cv_have_x="have_x=yes \
4227                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4228    echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6    echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4229    echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4230  fi  fi
4231    
4232  if test "$no_x" = yes; then  if test "$no_x" = yes; then
4233    # 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.
4234    cat >> confdefs.h <<\EOF  
4235    cat >>confdefs.h <<\_ACEOF
4236  #define X_DISPLAY_MISSING 1  #define X_DISPLAY_MISSING 1
4237  EOF  _ACEOF
4238    
4239    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4240  else  else
# Line 2298  else Line 4247  else
4247      X_LIBS="$X_LIBS -L$x_libraries"      X_LIBS="$X_LIBS -L$x_libraries"
4248      # 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
4249      # others require no space.  Words are not sufficient . . . .      # others require no space.  Words are not sufficient . . . .
4250      case "`(uname -sr) 2>/dev/null`" in      case `(uname -sr) 2>/dev/null` in
4251      "SunOS 5"*)      "SunOS 5"*)
4252        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
4253  echo "configure:2305: 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
4254        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"        ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4255        cat > conftest.$ac_ext <<EOF        cat >conftest.$ac_ext <<_ACEOF
4256  #line 2308 "configure"  #line $LINENO "configure"
4257  #include "confdefs.h"  /* confdefs.h.  */
4258    _ACEOF
4259    cat confdefs.h >>conftest.$ac_ext
4260    cat >>conftest.$ac_ext <<_ACEOF
4261    /* end confdefs.h.  */
4262    
4263  int main() {  int
4264    main ()
4265    {
4266    
4267  ; return 0; }    ;
4268  EOF    return 0;
4269  if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4270    rm -rf conftest*  _ACEOF
4271    rm -f conftest.$ac_objext conftest$ac_exeext
4272    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4273      (eval $ac_link) 2>&5
4274      ac_status=$?
4275      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276      (exit $ac_status); } &&
4277             { ac_try='test -s conftest$ac_exeext'
4278      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279      (eval $ac_try) 2>&5
4280      ac_status=$?
4281      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282      (exit $ac_status); }; }; then
4283    ac_R_nospace=yes    ac_R_nospace=yes
4284  else  else
4285    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4286    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4287    rm -rf conftest*  
4288    ac_R_nospace=no  ac_R_nospace=no
4289  fi  fi
4290  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4291        if test $ac_R_nospace = yes; then        if test $ac_R_nospace = yes; then
4292          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
4293    echo "${ECHO_T}no" >&6
4294          X_LIBS="$X_LIBS -R$x_libraries"          X_LIBS="$X_LIBS -R$x_libraries"
4295        else        else
4296          LIBS="$ac_xsave_LIBS -R $x_libraries"          LIBS="$ac_xsave_LIBS -R $x_libraries"
4297          cat > conftest.$ac_ext <<EOF          cat >conftest.$ac_ext <<_ACEOF
4298  #line 2331 "configure"  #line $LINENO "configure"
4299  #include "confdefs.h"  /* confdefs.h.  */
4300    _ACEOF
4301    cat confdefs.h >>conftest.$ac_ext
4302    cat >>conftest.$ac_ext <<_ACEOF
4303    /* end confdefs.h.  */
4304    
4305  int main() {  int
4306    main ()
4307    {
4308    
4309  ; return 0; }    ;
4310  EOF    return 0;
4311  if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4312    rm -rf conftest*  _ACEOF
4313    rm -f conftest.$ac_objext conftest$ac_exeext
4314    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4315      (eval $ac_link) 2>&5
4316      ac_status=$?
4317      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318      (exit $ac_status); } &&
4319             { ac_try='test -s conftest$ac_exeext'
4320      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321      (eval $ac_try) 2>&5
4322      ac_status=$?
4323      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324      (exit $ac_status); }; }; then
4325    ac_R_space=yes    ac_R_space=yes
4326  else  else
4327    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4328    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4329    rm -rf conftest*  
4330    ac_R_space=no  ac_R_space=no
4331  fi  fi
4332  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4333          if test $ac_R_space = yes; then          if test $ac_R_space = yes; then
4334            echo "$ac_t""yes" 1>&6            echo "$as_me:$LINENO: result: yes" >&5
4335    echo "${ECHO_T}yes" >&6
4336            X_LIBS="$X_LIBS -R $x_libraries"            X_LIBS="$X_LIBS -R $x_libraries"
4337          else          else
4338            echo "$ac_t""neither works" 1>&6            echo "$as_me:$LINENO: result: neither works" >&5
4339    echo "${ECHO_T}neither works" >&6
4340          fi          fi
4341        fi        fi
4342        LIBS="$ac_xsave_LIBS"        LIBS=$ac_xsave_LIBS
4343      esac      esac
4344    fi    fi
4345    
# Line 2362  rm -f conftest* Line 4350  rm -f conftest*
4350    if test "$ISC" = yes; then    if test "$ISC" = yes; then
4351      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4352    else    else
4353      # 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
4354      # libraries were built with DECnet support.  And karl@cs.umb.edu says      # libraries were built with DECnet support.  And Karl Berry says
4355      # the Alpha needs dnet_stub (dnet does not exist).      # the Alpha needs dnet_stub (dnet does not exist).
4356      echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4357  echo "configure:2370: checking for dnet_ntoa in -ldnet" >&5      cat >conftest.$ac_ext <<_ACEOF
4358  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`  #line $LINENO "configure"
4359  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  /* confdefs.h.  */
4360    echo $ac_n "(cached) $ac_c" 1>&6  _ACEOF
4361  else  cat confdefs.h >>conftest.$ac_ext
4362    ac_save_LIBS="$LIBS"  cat >>conftest.$ac_ext <<_ACEOF
4363  LIBS="-ldnet  $LIBS"  /* end confdefs.h.  */
4364  cat > conftest.$ac_ext <<EOF  
 #line 2378 "configure"  
 #include "confdefs.h"  
4365  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4366    #ifdef __cplusplus
4367    extern "C"
4368    #endif
4369  /* 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
4370      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4371  char dnet_ntoa();  char XOpenDisplay ();
4372    int
4373    main ()
4374    {
4375    XOpenDisplay ();
4376      ;
4377      return 0;
4378    }
4379    _ACEOF
4380    rm -f conftest.$ac_objext conftest$ac_exeext
4381    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4382      (eval $ac_link) 2>&5
4383      ac_status=$?
4384      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385      (exit $ac_status); } &&
4386             { ac_try='test -s conftest$ac_exeext'
4387      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388      (eval $ac_try) 2>&5
4389      ac_status=$?
4390      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391      (exit $ac_status); }; }; then
4392      :
4393    else
4394      echo "$as_me: failed program was:" >&5
4395    sed 's/^/| /' conftest.$ac_ext >&5
4396    
4397  int main() {  echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4398  dnet_ntoa()  echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4399  ; return 0; }  if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4400  EOF    echo $ECHO_N "(cached) $ECHO_C" >&6
4401  if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  else
4402    rm -rf conftest*    ac_check_lib_save_LIBS=$LIBS
4403    eval "ac_cv_lib_$ac_lib_var=yes"  LIBS="-ldnet  $LIBS"
4404  else  cat >conftest.$ac_ext <<_ACEOF
4405    echo "configure: failed program was:" >&5  #line $LINENO "configure"
4406    cat conftest.$ac_ext >&5  /* confdefs.h.  */
4407    rm -rf conftest*  _ACEOF
4408    eval "ac_cv_lib_$ac_lib_var=no"  cat confdefs.h >>conftest.$ac_ext
4409  fi  cat >>conftest.$ac_ext <<_ACEOF
4410  rm -f conftest*  /* end confdefs.h.  */
 LIBS="$ac_save_LIBS"  
4411    
4412  fi  /* Override any gcc2 internal prototype to avoid an error.  */
4413  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
4414    echo "$ac_t""yes" 1>&6  extern "C"
4415    #endif
4416    /* We use char because int might match the return type of a gcc2
4417       builtin and then its argument prototype would still apply.  */
4418    char dnet_ntoa ();
4419    int
4420    main ()
4421    {
4422    dnet_ntoa ();
4423      ;
4424      return 0;
4425    }
4426    _ACEOF
4427    rm -f conftest.$ac_objext conftest$ac_exeext
4428    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4429      (eval $ac_link) 2>&5
4430      ac_status=$?
4431      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432      (exit $ac_status); } &&
4433             { ac_try='test -s conftest$ac_exeext'
4434      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435      (eval $ac_try) 2>&5
4436      ac_status=$?
4437      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438      (exit $ac_status); }; }; then
4439      ac_cv_lib_dnet_dnet_ntoa=yes
4440    else
4441      echo "$as_me: failed program was:" >&5
4442    sed 's/^/| /' conftest.$ac_ext >&5
4443    
4444    ac_cv_lib_dnet_dnet_ntoa=no
4445    fi
4446    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4447    LIBS=$ac_check_lib_save_LIBS
4448    fi
4449    echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4450    echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4451    if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4452    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 else  
   echo "$ac_t""no" 1>&6  
4453  fi  fi
4454    
4455      if test $ac_cv_lib_dnet_dnet_ntoa = no; then      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4456        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
4457  echo "configure:2411: checking for dnet_ntoa in -ldnet_stub" >&5  echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4458  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4459  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  
4460  else  else
4461    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4462  LIBS="-ldnet_stub  $LIBS"  LIBS="-ldnet_stub  $LIBS"
4463  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4464  #line 2419 "configure"  #line $LINENO "configure"
4465  #include "confdefs.h"  /* confdefs.h.  */
4466    _ACEOF
4467    cat confdefs.h >>conftest.$ac_ext
4468    cat >>conftest.$ac_ext <<_ACEOF
4469    /* end confdefs.h.  */
4470    
4471  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4472    #ifdef __cplusplus
4473    extern "C"
4474    #endif
4475  /* 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
4476      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4477  char dnet_ntoa();  char dnet_ntoa ();
4478    int
4479  int main() {  main ()
4480  dnet_ntoa()  {
4481  ; return 0; }  dnet_ntoa ();
4482  EOF    ;
4483  if { (eval echo configure:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
4484    rm -rf conftest*  }
4485    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
4486  else  rm -f conftest.$ac_objext conftest$ac_exeext
4487    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4488    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
4489    rm -rf conftest*    ac_status=$?
4490    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491  fi    (exit $ac_status); } &&
4492  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
4493  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494      (eval $ac_try) 2>&5
4495  fi    ac_status=$?
4496  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
4498      ac_cv_lib_dnet_stub_dnet_ntoa=yes
4499    else
4500      echo "$as_me: failed program was:" >&5
4501    sed 's/^/| /' conftest.$ac_ext >&5
4502    
4503    ac_cv_lib_dnet_stub_dnet_ntoa=no
4504    fi
4505    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4506    LIBS=$ac_check_lib_save_LIBS
4507    fi
4508    echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4509    echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4510    if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4511    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 else  
   echo "$ac_t""no" 1>&6  
4512  fi  fi
4513    
4514      fi      fi
4515    fi
4516    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4517        LIBS="$ac_xsave_LIBS"
4518    
4519      # 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,
4520      # to get the SysV transport functions.      # to get the SysV transport functions.
4521      # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)      # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4522      # needs -lnsl.      # needs -lnsl.
4523      # The nsl library prevents programs from opening the X display      # The nsl library prevents programs from opening the X display
4524      # on Irix 5.2, according to dickey@clark.net.      # on Irix 5.2, according to T.E. Dickey.
4525      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6      # The functions gethostbyname, getservbyname, and inet_addr are
4526  echo "configure:2459: checking for gethostbyname" >&5      # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4527  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then      echo "$as_me:$LINENO: checking for gethostbyname" >&5
4528    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4529  else  if test "${ac_cv_func_gethostbyname+set}" = set; then
4530    cat > conftest.$ac_ext <<EOF    echo $ECHO_N "(cached) $ECHO_C" >&6
4531  #line 2464 "configure"  else
4532  #include "confdefs.h"    cat >conftest.$ac_ext <<_ACEOF
4533    #line $LINENO "configure"
4534    /* confdefs.h.  */
4535    _ACEOF
4536    cat confdefs.h >>conftest.$ac_ext
4537    cat >>conftest.$ac_ext <<_ACEOF
4538    /* end confdefs.h.  */
4539  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4540      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname (); below.  */
4541  #include <assert.h>  #include <assert.h>
4542  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4543    #ifdef __cplusplus
4544    extern "C"
4545    {
4546    #endif
4547  /* 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
4548      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4549  char gethostbyname();  char gethostbyname ();
   
 int main() {  
   
4550  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4551      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4552      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4553  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4554  choke me  choke me
4555  #else  #else
4556  gethostbyname();  char (*f) () = gethostbyname;
4557    #endif
4558    #ifdef __cplusplus
4559    }
4560  #endif  #endif
4561    
4562  ; return 0; }  int
4563  EOF  main ()
4564  if { (eval echo configure:2487: \"$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  
4565    
4566  if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then    ;
4567    echo "$ac_t""yes" 1>&6    return 0;
4568    :  }
4569  else  _ACEOF
4570    echo "$ac_t""no" 1>&6  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_cv_func_gethostbyname=yes
4583    else
4584      echo "$as_me: failed program was:" >&5
4585    sed 's/^/| /' conftest.$ac_ext >&5
4586    
4587    ac_cv_func_gethostbyname=no
4588    fi
4589    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4590  fi  fi
4591    echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4592    echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4593    
4594      if test $ac_cv_func_gethostbyname = no; then      if test $ac_cv_func_gethostbyname = no; then
4595        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4596  echo "configure:2508: checking for gethostbyname in -lnsl" >&5  echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4597  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4598  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  
4599  else  else
4600    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4601  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
4602  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4603  #line 2516 "configure"  #line $LINENO "configure"
4604  #include "confdefs.h"  /* confdefs.h.  */
4605    _ACEOF
4606    cat confdefs.h >>conftest.$ac_ext
4607    cat >>conftest.$ac_ext <<_ACEOF
4608    /* end confdefs.h.  */
4609    
4610  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4611    #ifdef __cplusplus
4612    extern "C"
4613    #endif
4614  /* 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
4615      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4616  char gethostbyname();  char gethostbyname ();
4617    int
4618  int main() {  main ()
4619  gethostbyname()  {
4620  ; return 0; }  gethostbyname ();
4621  EOF    ;
4622  if { (eval echo configure:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
4623    rm -rf conftest*  }
4624    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
4625  else  rm -f conftest.$ac_objext conftest$ac_exeext
4626    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4627    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
4628    rm -rf conftest*    ac_status=$?
4629    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630      (exit $ac_status); } &&
4631             { ac_try='test -s conftest$ac_exeext'
4632      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633      (eval $ac_try) 2>&5
4634      ac_status=$?
4635      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636      (exit $ac_status); }; }; then
4637      ac_cv_lib_nsl_gethostbyname=yes
4638    else
4639      echo "$as_me: failed program was:" >&5
4640    sed 's/^/| /' conftest.$ac_ext >&5
4641    
4642    ac_cv_lib_nsl_gethostbyname=no
4643    fi
4644    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4645    LIBS=$ac_check_lib_save_LIBS
4646    fi
4647    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4648    echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4649    if test $ac_cv_lib_nsl_gethostbyname = yes; then
4650      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4651  fi  fi
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4652    
4653  fi        if test $ac_cv_lib_nsl_gethostbyname = no; then
4654  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then          echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4655    echo "$ac_t""yes" 1>&6  echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4656    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"  if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4657  else    echo $ECHO_N "(cached) $ECHO_C" >&6
4658    echo "$ac_t""no" 1>&6  else
4659      ac_check_lib_save_LIBS=$LIBS
4660    LIBS="-lbsd  $LIBS"
4661    cat >conftest.$ac_ext <<_ACEOF
4662    #line $LINENO "configure"
4663    /* confdefs.h.  */
4664    _ACEOF
4665    cat confdefs.h >>conftest.$ac_ext
4666    cat >>conftest.$ac_ext <<_ACEOF
4667    /* end confdefs.h.  */
4668    
4669    /* Override any gcc2 internal prototype to avoid an error.  */
4670    #ifdef __cplusplus
4671    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 gethostbyname ();
4676    int
4677    main ()
4678    {
4679    gethostbyname ();
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_bsd_gethostbyname=yes
4697    else
4698      echo "$as_me: failed program was:" >&5
4699    sed 's/^/| /' conftest.$ac_ext >&5
4700    
4701    ac_cv_lib_bsd_gethostbyname=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_bsd_gethostbyname" >&5
4707    echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4708    if test $ac_cv_lib_bsd_gethostbyname = yes; then
4709      X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4710  fi  fi
4711    
4712          fi
4713      fi      fi
4714    
4715      # lieder@skyler.mavd.honeywell.com says without -lsocket,      # lieder@skyler.mavd.honeywell.com says without -lsocket,
4716      # socket/setsockopt and other routines are undefined under SCO ODT      # socket/setsockopt and other routines are undefined under SCO ODT
4717      # 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
4718      # on later versions), says simon@lia.di.epfl.ch: it contains      # on later versions), says Simon Leinen: it contains gethostby*
4719      # gethostby* variants that don't use the nameserver (or something).      # variants that don't use the name server (or something).  -lsocket
4720      # -lsocket must be given before -lnsl if both are needed.      # must be given before -lnsl if both are needed.  We assume that
4721      # We assume that if connect needs -lnsl, so does gethostbyname.      # if connect needs -lnsl, so does gethostbyname.
4722      echo $ac_n "checking for connect""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for connect" >&5
4723  echo "configure:2557: checking for connect" >&5  echo $ECHO_N "checking for connect... $ECHO_C" >&6
4724  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if test "${ac_cv_func_connect+set}" = set; then
4725    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4726  else  else
4727    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4728  #line 2562 "configure"  #line $LINENO "configure"
4729  #include "confdefs.h"  /* confdefs.h.  */
4730    _ACEOF
4731    cat confdefs.h >>conftest.$ac_ext
4732    cat >>conftest.$ac_ext <<_ACEOF
4733    /* end confdefs.h.  */
4734  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4735      which can conflict with char connect(); below.  */      which can conflict with char connect (); below.  */
4736  #include <assert.h>  #include <assert.h>
4737  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4738    #ifdef __cplusplus
4739    extern "C"
4740    {
4741    #endif
4742  /* 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
4743      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4744  char connect();  char connect ();
   
 int main() {  
   
4745  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4746      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4747      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4748  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
4749  choke me  choke me
4750  #else  #else
4751  connect();  char (*f) () = connect;
4752    #endif
4753    #ifdef __cplusplus
4754    }
4755  #endif  #endif
4756    
4757  ; return 0; }  int
4758  EOF  main ()
4759  if { (eval echo configure:2585: \"$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  
4760    
4761  if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then    ;
4762    echo "$ac_t""yes" 1>&6    return 0;
4763    :  }
4764  else  _ACEOF
4765    echo "$ac_t""no" 1>&6  rm -f conftest.$ac_objext conftest$ac_exeext
4766    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4767      (eval $ac_link) 2>&5
4768      ac_status=$?
4769      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770      (exit $ac_status); } &&
4771             { ac_try='test -s conftest$ac_exeext'
4772      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773      (eval $ac_try) 2>&5
4774      ac_status=$?
4775      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776      (exit $ac_status); }; }; then
4777      ac_cv_func_connect=yes
4778    else
4779      echo "$as_me: failed program was:" >&5
4780    sed 's/^/| /' conftest.$ac_ext >&5
4781    
4782    ac_cv_func_connect=no
4783    fi
4784    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4785  fi  fi
4786    echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4787    echo "${ECHO_T}$ac_cv_func_connect" >&6
4788    
4789      if test $ac_cv_func_connect = no; then      if test $ac_cv_func_connect = no; then
4790        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4791  echo "configure:2606: checking for connect in -lsocket" >&5  echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4792  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_connect+set}" = set; then
4793  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  
4794  else  else
4795    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4796  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4797  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4798  #line 2614 "configure"  #line $LINENO "configure"
4799  #include "confdefs.h"  /* confdefs.h.  */
4800    _ACEOF
4801    cat confdefs.h >>conftest.$ac_ext
4802    cat >>conftest.$ac_ext <<_ACEOF
4803    /* end confdefs.h.  */
4804    
4805  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4806    #ifdef __cplusplus
4807    extern "C"
4808    #endif
4809  /* 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
4810      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4811  char connect();  char connect ();
4812    int
4813  int main() {  main ()
4814  connect()  {
4815  ; return 0; }  connect ();
4816  EOF    ;
4817  if { (eval echo configure:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
4818    rm -rf conftest*  }
4819    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
4820  else  rm -f conftest.$ac_objext conftest$ac_exeext
4821    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4822    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
4823    rm -rf conftest*    ac_status=$?
4824    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825  fi    (exit $ac_status); } &&
4826  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
4827  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828      (eval $ac_try) 2>&5
4829  fi    ac_status=$?
4830  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
4832      ac_cv_lib_socket_connect=yes
4833    else
4834      echo "$as_me: failed program was:" >&5
4835    sed 's/^/| /' conftest.$ac_ext >&5
4836    
4837    ac_cv_lib_socket_connect=no
4838    fi
4839    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4840    LIBS=$ac_check_lib_save_LIBS
4841    fi
4842    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4843    echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4844    if test $ac_cv_lib_socket_connect = yes; then
4845    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 else  
   echo "$ac_t""no" 1>&6  
4846  fi  fi
4847    
4848      fi      fi
4849    
4850      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.      # Guillermo Gomez says -lposix is necessary on A/UX.
4851      echo $ac_n "checking for remove""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for remove" >&5
4852  echo "configure:2649: checking for remove" >&5  echo $ECHO_N "checking for remove... $ECHO_C" >&6
4853  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then  if test "${ac_cv_func_remove+set}" = set; then
4854    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4855  else  else
4856    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4857  #line 2654 "configure"  #line $LINENO "configure"
4858  #include "confdefs.h"  /* confdefs.h.  */
4859    _ACEOF
4860    cat confdefs.h >>conftest.$ac_ext
4861    cat >>conftest.$ac_ext <<_ACEOF
4862    /* end confdefs.h.  */
4863  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4864      which can conflict with char remove(); below.  */      which can conflict with char remove (); below.  */
4865  #include <assert.h>  #include <assert.h>
4866  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4867    #ifdef __cplusplus
4868    extern "C"
4869    {
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 remove();  char remove ();
   
 int main() {  
   
4874  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4875      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4876      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4877  #if defined (__stub_remove) || defined (__stub___remove)  #if defined (__stub_remove) || defined (__stub___remove)
4878  choke me  choke me
4879  #else  #else
4880  remove();  char (*f) () = remove;
4881    #endif
4882    #ifdef __cplusplus
4883    }
4884  #endif  #endif
4885    
4886  ; return 0; }  int
4887  EOF  main ()
4888  if { (eval echo configure:2677: \"$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  
4889    
4890  if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then    ;
4891    echo "$ac_t""yes" 1>&6    return 0;
4892    :  }
4893  else  _ACEOF
4894    echo "$ac_t""no" 1>&6  rm -f conftest.$ac_objext conftest$ac_exeext
4895    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4896      (eval $ac_link) 2>&5
4897      ac_status=$?
4898      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899      (exit $ac_status); } &&
4900             { ac_try='test -s conftest$ac_exeext'
4901      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902      (eval $ac_try) 2>&5
4903      ac_status=$?
4904      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905      (exit $ac_status); }; }; then
4906      ac_cv_func_remove=yes
4907    else
4908      echo "$as_me: failed program was:" >&5
4909    sed 's/^/| /' conftest.$ac_ext >&5
4910    
4911    ac_cv_func_remove=no
4912    fi
4913    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4914  fi  fi
4915    echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4916    echo "${ECHO_T}$ac_cv_func_remove" >&6
4917    
4918      if test $ac_cv_func_remove = no; then      if test $ac_cv_func_remove = no; then
4919        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4920  echo "configure:2698: checking for remove in -lposix" >&5  echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4921  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_posix_remove+set}" = set; then
4922  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  
4923  else  else
4924    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4925  LIBS="-lposix  $LIBS"  LIBS="-lposix  $LIBS"
4926  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4927  #line 2706 "configure"  #line $LINENO "configure"
4928  #include "confdefs.h"  /* confdefs.h.  */
4929    _ACEOF
4930    cat confdefs.h >>conftest.$ac_ext
4931    cat >>conftest.$ac_ext <<_ACEOF
4932    /* end confdefs.h.  */
4933    
4934  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4935    #ifdef __cplusplus
4936    extern "C"
4937    #endif
4938  /* 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
4939      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4940  char remove();  char remove ();
4941    int
4942  int main() {  main ()
4943  remove()  {
4944  ; return 0; }  remove ();
4945  EOF    ;
4946  if { (eval echo configure:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
4947    rm -rf conftest*  }
4948    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
4949  else  rm -f conftest.$ac_objext conftest$ac_exeext
4950    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4951    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
4952    rm -rf conftest*    ac_status=$?
4953    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954  fi    (exit $ac_status); } &&
4955  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
4956  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957      (eval $ac_try) 2>&5
4958  fi    ac_status=$?
4959  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
4961      ac_cv_lib_posix_remove=yes
4962    else
4963      echo "$as_me: failed program was:" >&5
4964    sed 's/^/| /' conftest.$ac_ext >&5
4965    
4966    ac_cv_lib_posix_remove=no
4967    fi
4968    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4969    LIBS=$ac_check_lib_save_LIBS
4970    fi
4971    echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4972    echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4973    if test $ac_cv_lib_posix_remove = yes; then
4974    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 else  
   echo "$ac_t""no" 1>&6  
4975  fi  fi
4976    
4977      fi      fi
4978    
4979      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4980      echo $ac_n "checking for shmat""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for shmat" >&5
4981  echo "configure:2741: checking for shmat" >&5  echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4982  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then  if test "${ac_cv_func_shmat+set}" = set; then
4983    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4984  else  else
4985    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4986  #line 2746 "configure"  #line $LINENO "configure"
4987  #include "confdefs.h"  /* confdefs.h.  */
4988    _ACEOF
4989    cat confdefs.h >>conftest.$ac_ext
4990    cat >>conftest.$ac_ext <<_ACEOF
4991    /* end confdefs.h.  */
4992  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4993      which can conflict with char shmat(); below.  */      which can conflict with char shmat (); below.  */
4994  #include <assert.h>  #include <assert.h>
4995  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4996    #ifdef __cplusplus
4997    extern "C"
4998    {
4999    #endif
5000  /* 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
5001      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5002  char shmat();  char shmat ();
   
 int main() {  
   
5003  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5004      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5005      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5006  #if defined (__stub_shmat) || defined (__stub___shmat)  #if defined (__stub_shmat) || defined (__stub___shmat)
5007  choke me  choke me
5008  #else  #else
5009  shmat();  char (*f) () = shmat;
5010    #endif
5011    #ifdef __cplusplus
5012    }
5013  #endif  #endif
5014    
5015  ; return 0; }  int
5016  EOF  main ()
5017  if { (eval echo configure:2769: \"$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  
5018    
5019  if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then    ;
5020    echo "$ac_t""yes" 1>&6    return 0;
5021    :  }
5022  else  _ACEOF
5023    echo "$ac_t""no" 1>&6  rm -f conftest.$ac_objext conftest$ac_exeext
5024    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5025      (eval $ac_link) 2>&5
5026      ac_status=$?
5027      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028      (exit $ac_status); } &&
5029             { ac_try='test -s conftest$ac_exeext'
5030      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031      (eval $ac_try) 2>&5
5032      ac_status=$?
5033      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034      (exit $ac_status); }; }; then
5035      ac_cv_func_shmat=yes
5036    else
5037      echo "$as_me: failed program was:" >&5
5038    sed 's/^/| /' conftest.$ac_ext >&5
5039    
5040    ac_cv_func_shmat=no
5041  fi  fi
5042    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5043    fi
5044    echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5045    echo "${ECHO_T}$ac_cv_func_shmat" >&6
5046    
5047      if test $ac_cv_func_shmat = no; then      if test $ac_cv_func_shmat = no; then
5048        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5049  echo "configure:2790: checking for shmat in -lipc" >&5  echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5050  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5051  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  
5052  else  else
5053    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5054  LIBS="-lipc  $LIBS"  LIBS="-lipc  $LIBS"
5055  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5056  #line 2798 "configure"  #line $LINENO "configure"
5057  #include "confdefs.h"  /* confdefs.h.  */
5058    _ACEOF
5059    cat confdefs.h >>conftest.$ac_ext
5060    cat >>conftest.$ac_ext <<_ACEOF
5061    /* end confdefs.h.  */
5062    
5063  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5064    #ifdef __cplusplus
5065    extern "C"
5066    #endif
5067  /* 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
5068      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5069  char shmat();  char shmat ();
5070    int
5071  int main() {  main ()
5072  shmat()  {
5073  ; return 0; }  shmat ();
5074  EOF    ;
5075  if { (eval echo configure:2809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
5076    rm -rf conftest*  }
5077    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
5078  else  rm -f conftest.$ac_objext conftest$ac_exeext
5079    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5080    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
5081    rm -rf conftest*    ac_status=$?
5082    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083  fi    (exit $ac_status); } &&
5084  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
5085  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086      (eval $ac_try) 2>&5
5087  fi    ac_status=$?
5088  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
5090      ac_cv_lib_ipc_shmat=yes
5091    else
5092      echo "$as_me: failed program was:" >&5
5093    sed 's/^/| /' conftest.$ac_ext >&5
5094    
5095    ac_cv_lib_ipc_shmat=no
5096    fi
5097    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5098    LIBS=$ac_check_lib_save_LIBS
5099    fi
5100    echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5101    echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5102    if test $ac_cv_lib_ipc_shmat = yes; then
5103    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 else  
   echo "$ac_t""no" 1>&6  
5104  fi  fi
5105    
5106      fi      fi
5107    fi    fi
5108    
5109    # Check for libraries that X11R6 Xt/Xaw programs need.    # Check for libraries that X11R6 Xt/Xaw programs need.
5110    ac_save_LDFLAGS="$LDFLAGS"    ac_save_LDFLAGS=$LDFLAGS
5111    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5112    # 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
5113    # 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
5114    # 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.
5115    # These have to be linked with before -lX11, unlike the other    # These have to be linked with before -lX11, unlike the other
5116    # libraries we check for below, so use a different variable.    # libraries we check for below, so use a different variable.
5117    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.    # John Interrante, Karl Berry
5118    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5119  echo "configure:2842: checking for IceConnectionNumber in -lICE" >&5  echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5120  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5121  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  
5122  else  else
5123    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5124  LIBS="-lICE $X_EXTRA_LIBS $LIBS"  LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5125  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5126  #line 2850 "configure"  #line $LINENO "configure"
5127  #include "confdefs.h"  /* confdefs.h.  */
5128    _ACEOF
5129    cat confdefs.h >>conftest.$ac_ext
5130    cat >>conftest.$ac_ext <<_ACEOF
5131    /* end confdefs.h.  */
5132    
5133  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5134    #ifdef __cplusplus
5135    extern "C"
5136    #endif
5137  /* 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
5138      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5139  char IceConnectionNumber();  char IceConnectionNumber ();
5140    int
5141  int main() {  main ()
5142  IceConnectionNumber()  {
5143  ; return 0; }  IceConnectionNumber ();
5144  EOF    ;
5145  if { (eval echo configure:2861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
5146    rm -rf conftest*  }
5147    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
5148  else  rm -f conftest.$ac_objext conftest$ac_exeext
5149    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
5151    rm -rf conftest*    ac_status=$?
5152    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153  fi    (exit $ac_status); } &&
5154  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
5155  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156      (eval $ac_try) 2>&5
5157  fi    ac_status=$?
5158  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
5160      ac_cv_lib_ICE_IceConnectionNumber=yes
5161    else
5162      echo "$as_me: failed program was:" >&5
5163    sed 's/^/| /' conftest.$ac_ext >&5
5164    
5165    ac_cv_lib_ICE_IceConnectionNumber=no
5166    fi
5167    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5168    LIBS=$ac_check_lib_save_LIBS
5169    fi
5170    echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5171    echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5172    if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5173    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 else  
   echo "$ac_t""no" 1>&6  
5174  fi  fi
5175    
5176    LDFLAGS="$ac_save_LDFLAGS"    LDFLAGS=$ac_save_LDFLAGS
5177    
5178  fi  fi
5179    
# Line 2887  echo $X_EXTRA_LIBS Line 5183  echo $X_EXTRA_LIBS
5183  echo $X_PRE_LIBS  echo $X_PRE_LIBS
5184    
5185  miss=0  miss=0
5186  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXmu" >&5
5187  echo "configure:2892: checking for main in -lXmu" >&5  echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6
5188  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xmu_main+set}" = set; then
5189  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  
5190  else  else
5191    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5192  LIBS="-lXmu $X_LIBS $LIBS"  LIBS="-lXmu $X_LIBS $LIBS"
5193  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5194  #line 2900 "configure"  #line $LINENO "configure"
5195  #include "confdefs.h"  /* confdefs.h.  */
5196    _ACEOF
5197    cat confdefs.h >>conftest.$ac_ext
5198    cat >>conftest.$ac_ext <<_ACEOF
5199    /* end confdefs.h.  */
5200    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2907: \"$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"  
5201    
5202  fi  int
5203  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
5204    echo "$ac_t""yes" 1>&6  {
5205    main ();
5206      ;
5207      return 0;
5208    }
5209    _ACEOF
5210    rm -f conftest.$ac_objext conftest$ac_exeext
5211    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5212      (eval $ac_link) 2>&5
5213      ac_status=$?
5214      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215      (exit $ac_status); } &&
5216             { ac_try='test -s conftest$ac_exeext'
5217      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218      (eval $ac_try) 2>&5
5219      ac_status=$?
5220      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221      (exit $ac_status); }; }; then
5222      ac_cv_lib_Xmu_main=yes
5223    else
5224      echo "$as_me: failed program was:" >&5
5225    sed 's/^/| /' conftest.$ac_ext >&5
5226    
5227    ac_cv_lib_Xmu_main=no
5228    fi
5229    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5230    LIBS=$ac_check_lib_save_LIBS
5231    fi
5232    echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5
5233    echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6
5234    if test $ac_cv_lib_Xmu_main = yes; then
5235    X_LIBS="$X_LIBS -lXmu"    X_LIBS="$X_LIBS -lXmu"
5236  else  else
5237    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
5238  fi  fi
5239    
5240  echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXt" >&5
5241  echo "configure:2929: checking for main in -lXt" >&5  echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
5242  ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xt_main+set}" = set; then
5243  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  
5244  else  else
5245    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5246  LIBS="-lXt $X_LIBS $LIBS"  LIBS="-lXt $X_LIBS $LIBS"
5247  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5248  #line 2937 "configure"  #line $LINENO "configure"
5249  #include "confdefs.h"  /* confdefs.h.  */
5250    _ACEOF
5251    cat confdefs.h >>conftest.$ac_ext
5252    cat >>conftest.$ac_ext <<_ACEOF
5253    /* end confdefs.h.  */
5254    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2944: \"$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"  
5255    
5256  fi  int
5257  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
5258    echo "$ac_t""yes" 1>&6  {
5259    main ();
5260      ;
5261      return 0;
5262    }
5263    _ACEOF
5264    rm -f conftest.$ac_objext conftest$ac_exeext
5265    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5266      (eval $ac_link) 2>&5
5267      ac_status=$?
5268      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269      (exit $ac_status); } &&
5270             { ac_try='test -s conftest$ac_exeext'
5271      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272      (eval $ac_try) 2>&5
5273      ac_status=$?
5274      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275      (exit $ac_status); }; }; then
5276      ac_cv_lib_Xt_main=yes
5277    else
5278      echo "$as_me: failed program was:" >&5
5279    sed 's/^/| /' conftest.$ac_ext >&5
5280    
5281    ac_cv_lib_Xt_main=no
5282    fi
5283    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5284    LIBS=$ac_check_lib_save_LIBS
5285    fi
5286    echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
5287    echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
5288    if test $ac_cv_lib_Xt_main = yes; then
5289    X_LIBS="$X_LIBS -lXt"    X_LIBS="$X_LIBS -lXt"
5290  else  else
5291    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
5292  fi  fi
5293    
5294  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXext" >&5
5295  echo "configure:2966: checking for main in -lXext" >&5  echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6
5296  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xext_main+set}" = set; then
5297  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  
5298  else  else
5299    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5300  LIBS="-lXext $X_LIBS $LIBS"  LIBS="-lXext $X_LIBS $LIBS"
5301  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5302  #line 2974 "configure"  #line $LINENO "configure"
5303  #include "confdefs.h"  /* confdefs.h.  */
5304    _ACEOF
5305    cat confdefs.h >>conftest.$ac_ext
5306    cat >>conftest.$ac_ext <<_ACEOF
5307    /* end confdefs.h.  */
5308    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2981: \"$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"  
5309    
5310  fi  int
5311  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
5312    echo "$ac_t""yes" 1>&6  {
5313    main ();
5314      ;
5315      return 0;
5316    }
5317    _ACEOF
5318    rm -f conftest.$ac_objext conftest$ac_exeext
5319    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5320      (eval $ac_link) 2>&5
5321      ac_status=$?
5322      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323      (exit $ac_status); } &&
5324             { ac_try='test -s conftest$ac_exeext'
5325      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326      (eval $ac_try) 2>&5
5327      ac_status=$?
5328      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329      (exit $ac_status); }; }; then
5330      ac_cv_lib_Xext_main=yes
5331    else
5332      echo "$as_me: failed program was:" >&5
5333    sed 's/^/| /' conftest.$ac_ext >&5
5334    
5335    ac_cv_lib_Xext_main=no
5336    fi
5337    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5338    LIBS=$ac_check_lib_save_LIBS
5339    fi
5340    echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5
5341    echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6
5342    if test $ac_cv_lib_Xext_main = yes; then
5343    X_LIBS="$X_LIBS -lXext"    X_LIBS="$X_LIBS -lXext"
5344  else  else
5345    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
5346  fi  fi
5347    
5348  echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXaw" >&5
5349  echo "configure:3003: checking for main in -lXaw" >&5  echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6
5350  ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xaw_main+set}" = set; then
5351  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  
5352  else  else
5353    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5354  LIBS="-lXaw $X_LIBS $LIBS"  LIBS="-lXaw $X_LIBS $LIBS"
5355  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5356  #line 3011 "configure"  #line $LINENO "configure"
5357  #include "confdefs.h"  /* confdefs.h.  */
5358    _ACEOF
5359    cat confdefs.h >>conftest.$ac_ext
5360    cat >>conftest.$ac_ext <<_ACEOF
5361    /* end confdefs.h.  */
5362    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3018: \"$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"  
5363    
5364  fi  int
5365  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
5366    echo "$ac_t""yes" 1>&6  {
5367    main ();
5368      ;
5369      return 0;
5370    }
5371    _ACEOF
5372    rm -f conftest.$ac_objext conftest$ac_exeext
5373    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5374      (eval $ac_link) 2>&5
5375      ac_status=$?
5376      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377      (exit $ac_status); } &&
5378             { ac_try='test -s conftest$ac_exeext'
5379      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380      (eval $ac_try) 2>&5
5381      ac_status=$?
5382      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383      (exit $ac_status); }; }; then
5384      ac_cv_lib_Xaw_main=yes
5385    else
5386      echo "$as_me: failed program was:" >&5
5387    sed 's/^/| /' conftest.$ac_ext >&5
5388    
5389    ac_cv_lib_Xaw_main=no
5390    fi
5391    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5392    LIBS=$ac_check_lib_save_LIBS
5393    fi
5394    echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5
5395    echo "${ECHO_T}$ac_cv_lib_Xaw_main" >&6
5396    if test $ac_cv_lib_Xaw_main = yes; then
5397    X_LIBS="$X_LIBS -lXaw"    X_LIBS="$X_LIBS -lXaw"
5398  else  else
5399    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
5400  fi  fi
5401    
5402  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lX11" >&5
5403  echo "configure:3040: checking for main in -lX11" >&5  echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
5404  ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_X11_main+set}" = set; then
5405  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  
5406  else  else
5407    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5408  LIBS="-lX11 $X_LIBS $LIBS"  LIBS="-lX11 $X_LIBS $LIBS"
5409  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5410  #line 3048 "configure"  #line $LINENO "configure"
5411  #include "confdefs.h"  /* confdefs.h.  */
5412    _ACEOF
5413    cat confdefs.h >>conftest.$ac_ext
5414    cat >>conftest.$ac_ext <<_ACEOF
5415    /* end confdefs.h.  */
5416    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3055: \"$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"  
5417    
5418  fi  int
5419  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
5420    echo "$ac_t""yes" 1>&6  {
5421    main ();
5422      ;
5423      return 0;
5424    }
5425    _ACEOF
5426    rm -f conftest.$ac_objext conftest$ac_exeext
5427    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5428      (eval $ac_link) 2>&5
5429      ac_status=$?
5430      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431      (exit $ac_status); } &&
5432             { ac_try='test -s conftest$ac_exeext'
5433      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434      (eval $ac_try) 2>&5
5435      ac_status=$?
5436      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437      (exit $ac_status); }; }; then
5438      ac_cv_lib_X11_main=yes
5439    else
5440      echo "$as_me: failed program was:" >&5
5441    sed 's/^/| /' conftest.$ac_ext >&5
5442    
5443    ac_cv_lib_X11_main=no
5444    fi
5445    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5446    LIBS=$ac_check_lib_save_LIBS
5447    fi
5448    echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
5449    echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
5450    if test $ac_cv_lib_X11_main = yes; then
5451    X_LIBS="$X_LIBS -lX11"    X_LIBS="$X_LIBS -lX11"
5452  else  else
5453    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
5454  fi  fi
5455    
5456    
5457  if test "$miss" = "1" ; then  if test "$miss" = "1" ; then
5458          X_CFLAGS=          X_CFLAGS=
5459          X_LIBS=          X_LIBS=
# Line 3089  fi Line 5470  fi
5470    
5471  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
5472    
5473          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5474  echo "configure:3094: checking for dlopen in -ldl" >&5  echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5475  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5476  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  
5477  else  else
5478    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5479  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
5480  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5481  #line 3102 "configure"  #line $LINENO "configure"
5482  #include "confdefs.h"  /* confdefs.h.  */
5483    _ACEOF
5484    cat confdefs.h >>conftest.$ac_ext
5485    cat >>conftest.$ac_ext <<_ACEOF
5486    /* end confdefs.h.  */
5487    
5488  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5489    #ifdef __cplusplus
5490    extern "C"
5491    #endif
5492  /* 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
5493      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5494  char dlopen();  char dlopen ();
5495    int
5496  int main() {  main ()
5497  dlopen()  {
5498  ; return 0; }  dlopen ();
5499  EOF    ;
5500  if { (eval echo configure:3113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
5501    rm -rf conftest*  }
5502    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
5503  else  rm -f conftest.$ac_objext conftest$ac_exeext
5504    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5505    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
5506    rm -rf conftest*    ac_status=$?
5507    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  fi    (exit $ac_status); } &&
5509  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
5510  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511      (eval $ac_try) 2>&5
5512  fi    ac_status=$?
5513  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
5515      ac_cv_lib_dl_dlopen=yes
5516    else
5517      echo "$as_me: failed program was:" >&5
5518    sed 's/^/| /' conftest.$ac_ext >&5
5519    
5520    ac_cv_lib_dl_dlopen=no
5521    fi
5522    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5523    LIBS=$ac_check_lib_save_LIBS
5524    fi
5525    echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5526    echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5527    if test $ac_cv_lib_dl_dlopen = yes; then
5528    have_dl=1    have_dl=1
5529  else  else
5530    echo "$ac_t""no" 1>&6    have_dl=0
 have_dl=0  
5531  fi  fi
5532    
5533          if test "$have_dl" = "0" ; then          if test "$have_dl" = "0" ; then
# Line 3136  fi Line 5536  fi
5536          fi          fi
5537    
5538          TLIBS="$TLIBS -ldl -rdynamic"          TLIBS="$TLIBS -ldl -rdynamic"
5539          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
5540  #define USE_DLOPEN 1  #define USE_DLOPEN 1
5541  EOF  _ACEOF
5542    
5543  fi  fi
5544    
5545  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
5546          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`          if test "${ac_cv_header_bfd_h+set}" = set; then
5547  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for bfd.h" >&5
5548  echo "configure:3149: checking for bfd.h" >&5  echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
5549  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_bfd_h+set}" = set; then
5550    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5551  else  fi
5552    cat > conftest.$ac_ext <<EOF  echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
5553  #line 3154 "configure"  echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
5554  #include "confdefs.h"  else
5555      # Is the header compilable?
5556    echo "$as_me:$LINENO: checking bfd.h usability" >&5
5557    echo $ECHO_N "checking bfd.h usability... $ECHO_C" >&6
5558    cat >conftest.$ac_ext <<_ACEOF
5559    #line $LINENO "configure"
5560    /* confdefs.h.  */
5561    _ACEOF
5562    cat confdefs.h >>conftest.$ac_ext
5563    cat >>conftest.$ac_ext <<_ACEOF
5564    /* end confdefs.h.  */
5565    $ac_includes_default
5566  #include <bfd.h>  #include <bfd.h>
5567  EOF  _ACEOF
5568  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  rm -f conftest.$ac_objext
5569  { (eval echo configure:3159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5570  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    (eval $ac_compile) 2>&5
5571  if test -z "$ac_err"; then    ac_status=$?
5572    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573    eval "ac_cv_header_$ac_safe=yes"    (exit $ac_status); } &&
5574  else           { ac_try='test -s conftest.$ac_objext'
5575    echo "$ac_err" >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576    echo "configure: failed program was:" >&5    (eval $ac_try) 2>&5
5577    cat conftest.$ac_ext >&5    ac_status=$?
5578    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579    eval "ac_cv_header_$ac_safe=no"    (exit $ac_status); }; }; then
5580  fi    ac_header_compiler=yes
5581  rm -f conftest*  else
5582      echo "$as_me: failed program was:" >&5
5583    sed 's/^/| /' conftest.$ac_ext >&5
5584    
5585    ac_header_compiler=no
5586    fi
5587    rm -f conftest.$ac_objext conftest.$ac_ext
5588    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5589    echo "${ECHO_T}$ac_header_compiler" >&6
5590    
5591    # Is the header present?
5592    echo "$as_me:$LINENO: checking bfd.h presence" >&5
5593    echo $ECHO_N "checking bfd.h presence... $ECHO_C" >&6
5594    cat >conftest.$ac_ext <<_ACEOF
5595    #line $LINENO "configure"
5596    /* confdefs.h.  */
5597    _ACEOF
5598    cat confdefs.h >>conftest.$ac_ext
5599    cat >>conftest.$ac_ext <<_ACEOF
5600    /* end confdefs.h.  */
5601    #include <bfd.h>
5602    _ACEOF
5603    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5604      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5605      ac_status=$?
5606      grep -v '^ *+' conftest.er1 >conftest.err
5607      rm -f conftest.er1
5608      cat conftest.err >&5
5609      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610      (exit $ac_status); } >/dev/null; then
5611      if test -s conftest.err; then
5612        ac_cpp_err=$ac_c_preproc_warn_flag
5613      else
5614        ac_cpp_err=
5615      fi
5616    else
5617      ac_cpp_err=yes
5618  fi  fi
5619  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
5620    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:3176: 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  
5621  else  else
5622    ac_save_LIBS="$LIBS"    echo "$as_me: failed program was:" >&5
5623  LIBS="-lbfd -liberty $LIBS"  sed 's/^/| /' conftest.$ac_ext >&5
 cat > conftest.$ac_ext <<EOF  
 #line 3184 "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();  
5624    
5625  int main() {    ac_header_preproc=no
5626  bfd_init()  fi
5627  ; return 0; }  rm -f conftest.err conftest.$ac_ext
5628  EOF  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5629  if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  echo "${ECHO_T}$ac_header_preproc" >&6
5630    rm -rf conftest*  
5631    eval "ac_cv_lib_$ac_lib_var=yes"  # So?  What about this header?
5632  else  case $ac_header_compiler:$ac_header_preproc in
5633    echo "configure: failed program was:" >&5    yes:no )
5634    cat conftest.$ac_ext >&5      { echo "$as_me:$LINENO: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&5
5635    rm -rf conftest*  echo "$as_me: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5636    eval "ac_cv_lib_$ac_lib_var=no"      { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
5637    echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;}
5638        (
5639          cat <<\_ASBOX
5640    ## ------------------------------------ ##
5641    ## Report this to bug-autoconf@gnu.org. ##
5642    ## ------------------------------------ ##
5643    _ASBOX
5644        ) |
5645          sed "s/^/$as_me: WARNING:     /" >&2
5646        ;;
5647      no:yes )
5648        { echo "$as_me:$LINENO: WARNING: bfd.h: present but cannot be compiled" >&5
5649    echo "$as_me: WARNING: bfd.h: present but cannot be compiled" >&2;}
5650        { echo "$as_me:$LINENO: WARNING: bfd.h: check for missing prerequisite headers?" >&5
5651    echo "$as_me: WARNING: bfd.h: check for missing prerequisite headers?" >&2;}
5652        { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
5653    echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;}
5654        (
5655          cat <<\_ASBOX
5656    ## ------------------------------------ ##
5657    ## Report this to bug-autoconf@gnu.org. ##
5658    ## ------------------------------------ ##
5659    _ASBOX
5660        ) |
5661          sed "s/^/$as_me: WARNING:     /" >&2
5662        ;;
5663    esac
5664    echo "$as_me:$LINENO: checking for bfd.h" >&5
5665    echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
5666    if test "${ac_cv_header_bfd_h+set}" = set; then
5667      echo $ECHO_N "(cached) $ECHO_C" >&6
5668    else
5669      ac_cv_header_bfd_h=$ac_header_preproc
5670  fi  fi
5671  rm -f conftest*  echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
5672  LIBS="$ac_save_LIBS"  echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
5673    
5674  fi  fi
5675  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if test $ac_cv_header_bfd_h = yes; then
5676    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5
5677    echo $ECHO_N "checking for bfd_init in -lbfd... $ECHO_C" >&6
5678    if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then
5679      echo $ECHO_N "(cached) $ECHO_C" >&6
5680    else
5681      ac_check_lib_save_LIBS=$LIBS
5682    LIBS="-lbfd -liberty $LIBS"
5683    cat >conftest.$ac_ext <<_ACEOF
5684    #line $LINENO "configure"
5685    /* confdefs.h.  */
5686    _ACEOF
5687    cat confdefs.h >>conftest.$ac_ext
5688    cat >>conftest.$ac_ext <<_ACEOF
5689    /* end confdefs.h.  */
5690    
5691    /* Override any gcc2 internal prototype to avoid an error.  */
5692    #ifdef __cplusplus
5693    extern "C"
5694    #endif
5695    /* We use char because int might match the return type of a gcc2
5696       builtin and then its argument prototype would still apply.  */
5697    char bfd_init ();
5698    int
5699    main ()
5700    {
5701    bfd_init ();
5702      ;
5703      return 0;
5704    }
5705    _ACEOF
5706    rm -f conftest.$ac_objext conftest$ac_exeext
5707    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5708      (eval $ac_link) 2>&5
5709      ac_status=$?
5710      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711      (exit $ac_status); } &&
5712             { ac_try='test -s conftest$ac_exeext'
5713      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714      (eval $ac_try) 2>&5
5715      ac_status=$?
5716      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717      (exit $ac_status); }; }; then
5718      ac_cv_lib_bfd_bfd_init=yes
5719    else
5720      echo "$as_me: failed program was:" >&5
5721    sed 's/^/| /' conftest.$ac_ext >&5
5722    
5723    ac_cv_lib_bfd_bfd_init=no
5724    fi
5725    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5726    LIBS=$ac_check_lib_save_LIBS
5727    fi
5728    echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_init" >&5
5729    echo "${ECHO_T}$ac_cv_lib_bfd_bfd_init" >&6
5730    if test $ac_cv_lib_bfd_bfd_init = yes; then
5731    #    #
5732                  # Old binutils appear to need CONST defined to const                  # Old binutils appear to need CONST defined to const
5733                  #                  #
5734                          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
5735  echo "configure:3214: checking if need to define CONST for bfd" >&5  echo $ECHO_N "checking if need to define CONST for bfd... $ECHO_C" >&6
5736                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
5737    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$as_me:$LINENO: result: cannot use bfd" >&5
5738    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5739  else  else
5740    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5741  #line 3219 "configure"  #line $LINENO "configure"
5742  #include "confdefs.h"  /* confdefs.h.  */
5743    _ACEOF
5744    cat confdefs.h >>conftest.$ac_ext
5745    cat >>conftest.$ac_ext <<_ACEOF
5746    /* end confdefs.h.  */
5747  #define IN_GCC  #define IN_GCC
5748                                      #include <bfd.h>                                      #include <bfd.h>
5749                                      int main() { symbol_info t; return 0;}                                      int main() { symbol_info t; return 0;}
5750  EOF  _ACEOF
5751  if { (eval echo configure:3225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5752  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5753    echo "$ac_t""no" 1>&6    (eval $ac_link) 2>&5
5754  else    ac_status=$?
5755    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756    cat conftest.$ac_ext >&5    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5757    rm -fr conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758    if test "$cross_compiling" = yes; then    (eval $ac_try) 2>&5
5759    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    ac_status=$?
5760      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761      (exit $ac_status); }; }; then
5762      echo "$as_me:$LINENO: result: no" >&5
5763    echo "${ECHO_T}no" >&6
5764    else
5765      echo "$as_me: program exited with status $ac_status" >&5
5766    echo "$as_me: failed program was:" >&5
5767    sed 's/^/| /' conftest.$ac_ext >&5
5768    
5769    ( exit $ac_status )
5770    if test "$cross_compiling" = yes; then
5771      echo "$as_me:$LINENO: result: cannot use bfd" >&5
5772    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5773  else  else
5774    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5775  #line 3236 "configure"  #line $LINENO "configure"
5776  #include "confdefs.h"  /* confdefs.h.  */
5777    _ACEOF
5778    cat confdefs.h >>conftest.$ac_ext
5779    cat >>conftest.$ac_ext <<_ACEOF
5780    /* end confdefs.h.  */
5781  #define CONST const  #define CONST const
5782                                              #define IN_GCC                                              #define IN_GCC
5783                                              #include <bfd.h>                                              #include <bfd.h>
5784                                              int main() {symbol_info t; return 0;}                                              int main() {symbol_info t; return 0;}
5785  EOF  _ACEOF
5786  if { (eval echo configure:3243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5787  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5788    echo "$ac_t""yes" 1>&6    (eval $ac_link) 2>&5
5789                                          cat >> confdefs.h <<\EOF    ac_status=$?
5790      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5792      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793      (eval $ac_try) 2>&5
5794      ac_status=$?
5795      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796      (exit $ac_status); }; }; then
5797      echo "$as_me:$LINENO: result: yes" >&5
5798    echo "${ECHO_T}yes" >&6
5799                                            cat >>confdefs.h <<\_ACEOF
5800  #define NEED_CONST 1  #define NEED_CONST 1
5801  EOF  _ACEOF
5802    
5803  else  else
5804    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5805    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5806    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
5807    echo "$ac_t""cannot use bfd" 1>&6 exit 1;  
5808    ( exit $ac_status )
5809    echo "$as_me:$LINENO: result: cannot use bfd" >&5
5810    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5811  fi  fi
5812  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5813  fi  fi
   
5814  fi  fi
5815  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5816  fi  fi
5817    
                           
 else  
   echo "$ac_t""no" 1>&6  
5818  fi  fi
5819    
 else  
   echo "$ac_t""no" 1>&6  
5820  fi  fi
5821    
5822    
5823          cat >> confdefs.h <<\EOF  
5824            cat >>confdefs.h <<\_ACEOF
5825  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
5826  EOF  _ACEOF
5827    
5828    
5829  #  #
5830  # BFD boolean syntax  # BFD boolean syntax
5831  #  #
5832    
5833          echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for useable bfd_boolean" >&5
5834  echo "configure:3283: checking for useable bfd_boolean" >&5  echo $ECHO_N "checking for useable bfd_boolean... $ECHO_C" >&6
5835          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
5836    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
5837    echo "${ECHO_T}no" >&6
5838  else  else
5839    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5840  #line 3288 "configure"  #line $LINENO "configure"
5841  #include "confdefs.h"  /* confdefs.h.  */
5842    _ACEOF
5843    cat confdefs.h >>conftest.$ac_ext
5844    cat >>conftest.$ac_ext <<_ACEOF
5845    /* end confdefs.h.  */
5846  #define IN_GCC  #define IN_GCC
5847                      #include <bfd.h>                      #include <bfd.h>
5848                      bfd_boolean foo() {return FALSE;}                      bfd_boolean foo() {return FALSE;}
5849                      int main() {return 0;}                      int main() {return 0;}
5850  EOF  _ACEOF
5851  if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5852  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853    echo "$ac_t""yes" 1>&6    (eval $ac_link) 2>&5
5854                  cat >> confdefs.h <<\EOF    ac_status=$?
5855      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5857      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858      (eval $ac_try) 2>&5
5859      ac_status=$?
5860      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861      (exit $ac_status); }; }; then
5862      echo "$as_me:$LINENO: result: yes" >&5
5863    echo "${ECHO_T}yes" >&6
5864                    cat >>confdefs.h <<\_ACEOF
5865  #define HAVE_BFD_BOOLEAN 1  #define HAVE_BFD_BOOLEAN 1
5866  EOF  _ACEOF
5867    
5868  else  else
5869    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5870    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5871    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
5872    echo "$ac_t""no" 1>&6  
5873    ( exit $ac_status )
5874    echo "$as_me:$LINENO: result: no" >&5
5875    echo "${ECHO_T}no" >&6
5876  fi  fi
5877  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5878  fi  fi
5879    
5880    
   
5881  #  #
5882  # FIXME: Need to workaround mingw before this point -- CM  # FIXME: Need to workaround mingw before this point -- CM
5883  #  #
# Line 3321  fi Line 5890  fi
5890                  else                  else
5891                     echo Guessing path to libbfd.a due to gcc bug                     echo Guessing path to libbfd.a due to gcc bug
5892                     TLIBS="$TLIBS /usr/lib/libbfd.a"                     TLIBS="$TLIBS /usr/lib/libbfd.a"
5893                  fi                    fi
5894                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then
5895                     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 ? "/" : "")}'`"
5896                  else                  else
5897                     echo Guessing path to libiberty.a due to gcc bug                     echo Guessing path to libiberty.a due to gcc bug
5898                     TLIBS="$TLIBS /usr/lib/libiberty.a"                     TLIBS="$TLIBS /usr/lib/libiberty.a"
5899                  fi                    fi
5900          else          else
5901                  TLIBS="$TLIBS -lbfd -liberty"                  TLIBS="$TLIBS -lbfd -liberty"
5902          fi          fi
# Line 3337  if test "$enable_locbfd" = "yes" ; then Line 5906  if test "$enable_locbfd" = "yes" ; then
5906    
5907          # check for gettext.  It is part of glibc, but others          # check for gettext.  It is part of glibc, but others
5908          # need GNU gettext separately.          # need GNU gettext separately.
5909          ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`          if test "${ac_cv_header_libintl_h+set}" = set; then
5910  echo $ac_n "checking for libintl.h""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for libintl.h" >&5
5911  echo "configure:3343: checking for libintl.h" >&5  echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5912  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_libintl_h+set}" = set; then
5913    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5914  else  fi
5915    cat > conftest.$ac_ext <<EOF  echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5916  #line 3348 "configure"  echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5917  #include "confdefs.h"  else
5918      # Is the header compilable?
5919    echo "$as_me:$LINENO: checking libintl.h usability" >&5
5920    echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
5921    cat >conftest.$ac_ext <<_ACEOF
5922    #line $LINENO "configure"
5923    /* confdefs.h.  */
5924    _ACEOF
5925    cat confdefs.h >>conftest.$ac_ext
5926    cat >>conftest.$ac_ext <<_ACEOF
5927    /* end confdefs.h.  */
5928    $ac_includes_default
5929  #include <libintl.h>  #include <libintl.h>
5930  EOF  _ACEOF
5931  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  rm -f conftest.$ac_objext
5932  { (eval echo configure:3353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    (eval $ac_compile) 2>&5
5934  if test -z "$ac_err"; then    ac_status=$?
5935    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936    eval "ac_cv_header_$ac_safe=yes"    (exit $ac_status); } &&
5937  else           { ac_try='test -s conftest.$ac_objext'
5938    echo "$ac_err" >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939    echo "configure: failed program was:" >&5    (eval $ac_try) 2>&5
5940    cat conftest.$ac_ext >&5    ac_status=$?
5941    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942    eval "ac_cv_header_$ac_safe=no"    (exit $ac_status); }; }; then
5943      ac_header_compiler=yes
5944    else
5945      echo "$as_me: failed program was:" >&5
5946    sed 's/^/| /' conftest.$ac_ext >&5
5947    
5948    ac_header_compiler=no
5949    fi
5950    rm -f conftest.$ac_objext conftest.$ac_ext
5951    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5952    echo "${ECHO_T}$ac_header_compiler" >&6
5953    
5954    # Is the header present?
5955    echo "$as_me:$LINENO: checking libintl.h presence" >&5
5956    echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5957    cat >conftest.$ac_ext <<_ACEOF
5958    #line $LINENO "configure"
5959    /* confdefs.h.  */
5960    _ACEOF
5961    cat confdefs.h >>conftest.$ac_ext
5962    cat >>conftest.$ac_ext <<_ACEOF
5963    /* end confdefs.h.  */
5964    #include <libintl.h>
5965    _ACEOF
5966    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5967      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5968      ac_status=$?
5969      grep -v '^ *+' conftest.er1 >conftest.err
5970      rm -f conftest.er1
5971      cat conftest.err >&5
5972      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973      (exit $ac_status); } >/dev/null; then
5974      if test -s conftest.err; then
5975        ac_cpp_err=$ac_c_preproc_warn_flag
5976      else
5977        ac_cpp_err=
5978      fi
5979    else
5980      ac_cpp_err=yes
5981  fi  fi
5982  rm -f conftest*  if test -z "$ac_cpp_err"; then
5983      ac_header_preproc=yes
5984    else
5985      echo "$as_me: failed program was:" >&5
5986    sed 's/^/| /' conftest.$ac_ext >&5
5987    
5988      ac_header_preproc=no
5989    fi
5990    rm -f conftest.err conftest.$ac_ext
5991    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5992    echo "${ECHO_T}$ac_header_preproc" >&6
5993    
5994    # So?  What about this header?
5995    case $ac_header_compiler:$ac_header_preproc in
5996      yes:no )
5997        { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5998    echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5999        { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6000    echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6001        (
6002          cat <<\_ASBOX
6003    ## ------------------------------------ ##
6004    ## Report this to bug-autoconf@gnu.org. ##
6005    ## ------------------------------------ ##
6006    _ASBOX
6007        ) |
6008          sed "s/^/$as_me: WARNING:     /" >&2
6009        ;;
6010      no:yes )
6011        { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6012    echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6013        { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6014    echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6015        { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6016    echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6017        (
6018          cat <<\_ASBOX
6019    ## ------------------------------------ ##
6020    ## Report this to bug-autoconf@gnu.org. ##
6021    ## ------------------------------------ ##
6022    _ASBOX
6023        ) |
6024          sed "s/^/$as_me: WARNING:     /" >&2
6025        ;;
6026    esac
6027    echo "$as_me:$LINENO: checking for libintl.h" >&5
6028    echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6029    if test "${ac_cv_header_libintl_h+set}" = set; then
6030      echo $ECHO_N "(cached) $ECHO_C" >&6
6031    else
6032      ac_cv_header_libintl_h=$ac_header_preproc
6033    fi
6034    echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6035    echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6036    
6037  fi  fi
6038  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  
6039    true    true
6040  else  else
6041    echo "$ac_t""no" 1>&6    { { echo "$as_me:$LINENO: error: libintl.h (gettext) not found" >&5
6042  { echo "configure: error: libintl.h (gettext) not found" 1>&2; exit 1; }  echo "$as_me: error: libintl.h (gettext) not found" >&2;}
6043       { (exit 1); exit 1; }; }
6044  fi  fi
6045    
6046            
6047  echo $ac_n "checking for library containing dgettext""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for library containing dgettext" >&5
6048  echo "configure:3377: checking for library containing dgettext" >&5  echo $ECHO_N "checking for library containing dgettext... $ECHO_C" >&6
6049  if eval "test \"`echo '$''{'ac_cv_search_dgettext'+set}'`\" = set"; then  if test "${ac_cv_search_dgettext+set}" = set; then
6050    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6051  else  else
6052    ac_func_search_save_LIBS="$LIBS"    ac_func_search_save_LIBS=$LIBS
6053  ac_cv_search_dgettext="no"  ac_cv_search_dgettext=no
6054  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6055  #line 3384 "configure"  #line $LINENO "configure"
6056  #include "confdefs.h"  /* confdefs.h.  */
6057    _ACEOF
6058    cat confdefs.h >>conftest.$ac_ext
6059    cat >>conftest.$ac_ext <<_ACEOF
6060    /* end confdefs.h.  */
6061    
6062  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6063    #ifdef __cplusplus
6064    extern "C"
6065    #endif
6066  /* 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
6067      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6068  char dgettext();  char dgettext ();
6069    int
6070  int main() {  main ()
6071  dgettext()  {
6072  ; return 0; }  dgettext ();
6073  EOF    ;
6074  if { (eval echo configure:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
6075    rm -rf conftest*  }
6076    _ACEOF
6077    rm -f conftest.$ac_objext conftest$ac_exeext
6078    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079      (eval $ac_link) 2>&5
6080      ac_status=$?
6081      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082      (exit $ac_status); } &&
6083             { ac_try='test -s conftest$ac_exeext'
6084      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085      (eval $ac_try) 2>&5
6086      ac_status=$?
6087      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088      (exit $ac_status); }; }; then
6089    ac_cv_search_dgettext="none required"    ac_cv_search_dgettext="none required"
6090  else  else
6091    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
6092    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
6093    
6094  fi  fi
6095  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6096  test "$ac_cv_search_dgettext" = "no" && for i in intl; do  if test "$ac_cv_search_dgettext" = no; then
6097  LIBS="-l$i  $ac_func_search_save_LIBS"    for ac_lib in intl; do
6098  cat > conftest.$ac_ext <<EOF      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6099  #line 3406 "configure"      cat >conftest.$ac_ext <<_ACEOF
6100  #include "confdefs.h"  #line $LINENO "configure"
6101    /* confdefs.h.  */
6102    _ACEOF
6103    cat confdefs.h >>conftest.$ac_ext
6104    cat >>conftest.$ac_ext <<_ACEOF
6105    /* end confdefs.h.  */
6106    
6107  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6108    #ifdef __cplusplus
6109    extern "C"
6110    #endif
6111  /* 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
6112      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6113  char dgettext();  char dgettext ();
6114    int
6115  int main() {  main ()
6116  dgettext()  {
6117  ; return 0; }  dgettext ();
6118  EOF    ;
6119  if { (eval echo configure:3417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
6120    rm -rf conftest*  }
6121    ac_cv_search_dgettext="-l$i"  _ACEOF
6122    rm -f conftest.$ac_objext conftest$ac_exeext
6123    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6124      (eval $ac_link) 2>&5
6125      ac_status=$?
6126      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127      (exit $ac_status); } &&
6128             { ac_try='test -s conftest$ac_exeext'
6129      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130      (eval $ac_try) 2>&5
6131      ac_status=$?
6132      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133      (exit $ac_status); }; }; then
6134      ac_cv_search_dgettext="-l$ac_lib"
6135  break  break
6136  else  else
6137    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
6138    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
6139    
6140  fi  fi
6141  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6142  done    done
 LIBS="$ac_func_search_save_LIBS"  
6143  fi  fi
6144    LIBS=$ac_func_search_save_LIBS
6145  echo "$ac_t""$ac_cv_search_dgettext" 1>&6  fi
6146  if test "$ac_cv_search_dgettext" != "no"; then  echo "$as_me:$LINENO: result: $ac_cv_search_dgettext" >&5
6147    echo "${ECHO_T}$ac_cv_search_dgettext" >&6
6148    if test "$ac_cv_search_dgettext" != no; then
6149    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"
6150    true    true
6151  else :  else
6152    { echo "configure: error: gettext library not found" 1>&2; exit 1; }    { { echo "$as_me:$LINENO: error: gettext library not found" >&5
6153    echo "$as_me: error: gettext library not found" >&2;}
6154       { (exit 1); exit 1; }; }
6155  fi  fi
6156    
6157    
6158          echo "#"          echo "#"
6159          echo "#"          echo "#"
6160          echo "# -------------------------"          echo "# -------------------------"
# Line 3441  fi Line 6162  fi
6162          echo "#"          echo "#"
6163          echo "#"          echo "#"
6164          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..
6165  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "
6166          echo "#"          echo "#"
6167          echo "#"          echo "#"
6168          echo "#"          echo "#"
# Line 3455  fi Line 6176  fi
6176          echo "#"          echo "#"
6177          echo "#"          echo "#"
6178          cd binutils/bfd && chmod +x configure && ./configure && cd ../..          cd binutils/bfd && chmod +x configure && ./configure && cd ../..
6179  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "
6180          echo "#"          echo "#"
6181          echo "#"          echo "#"
6182          echo "#"          echo "#"
# Line 3463  fi Line 6184  fi
6184          echo "# ------------------------"          echo "# ------------------------"
6185          echo "#"          echo "#"
6186  #       TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"  #       TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"
6187          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
6188  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
6189  EOF  _ACEOF
6190    
6191          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"
6192            
6193  fi  fi
6194    
6195  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)
# Line 3477  fi Line 6198  fi
6198  # mechanism, in the PAGE macro.  This offset is subtracted from  # mechanism, in the PAGE macro.  This offset is subtracted from
6199  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
6200    
6201  echo $ac_n "checking size of long""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for long" >&5
6202  echo "configure:3482: checking size of long" >&5  echo $ECHO_N "checking for long... $ECHO_C" >&6
6203  if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then  if test "${ac_cv_type_long+set}" = set; then
6204    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6205  else  else
6206      cat >conftest.$ac_ext <<_ACEOF
6207    #line $LINENO "configure"
6208    /* confdefs.h.  */
6209    _ACEOF
6210    cat confdefs.h >>conftest.$ac_ext
6211    cat >>conftest.$ac_ext <<_ACEOF
6212    /* end confdefs.h.  */
6213    $ac_includes_default
6214    int
6215    main ()
6216    {
6217    if ((long *) 0)
6218      return 0;
6219    if (sizeof (long))
6220      return 0;
6221      ;
6222      return 0;
6223    }
6224    _ACEOF
6225    rm -f conftest.$ac_objext
6226    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6227      (eval $ac_compile) 2>&5
6228      ac_status=$?
6229      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230      (exit $ac_status); } &&
6231             { ac_try='test -s conftest.$ac_objext'
6232      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233      (eval $ac_try) 2>&5
6234      ac_status=$?
6235      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236      (exit $ac_status); }; }; then
6237      ac_cv_type_long=yes
6238    else
6239      echo "$as_me: failed program was:" >&5
6240    sed 's/^/| /' conftest.$ac_ext >&5
6241    
6242    ac_cv_type_long=no
6243    fi
6244    rm -f conftest.$ac_objext conftest.$ac_ext
6245    fi
6246    echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6247    echo "${ECHO_T}$ac_cv_type_long" >&6
6248    
6249    echo "$as_me:$LINENO: checking size of long" >&5
6250    echo $ECHO_N "checking size of long... $ECHO_C" >&6
6251    if test "${ac_cv_sizeof_long+set}" = set; then
6252      echo $ECHO_N "(cached) $ECHO_C" >&6
6253    else
6254      if test "$ac_cv_type_long" = yes; then
6255      # The cast to unsigned long works around a bug in the HP C Compiler
6256      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6257      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6258      # This bug is HP SR number 8606223364.
6259    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
6260    ac_cv_sizeof_long=0    # Depending upon the size, compute the lo and hi bounds.
6261    cat >conftest.$ac_ext <<_ACEOF
6262    #line $LINENO "configure"
6263    /* confdefs.h.  */
6264    _ACEOF
6265    cat confdefs.h >>conftest.$ac_ext
6266    cat >>conftest.$ac_ext <<_ACEOF
6267    /* end confdefs.h.  */
6268    $ac_includes_default
6269    int
6270    main ()
6271    {
6272    static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6273    test_array [0] = 0
6274    
6275      ;
6276      return 0;
6277    }
6278    _ACEOF
6279    rm -f conftest.$ac_objext
6280    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281      (eval $ac_compile) 2>&5
6282      ac_status=$?
6283      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284      (exit $ac_status); } &&
6285             { ac_try='test -s conftest.$ac_objext'
6286      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287      (eval $ac_try) 2>&5
6288      ac_status=$?
6289      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290      (exit $ac_status); }; }; then
6291      ac_lo=0 ac_mid=0
6292      while :; do
6293        cat >conftest.$ac_ext <<_ACEOF
6294    #line $LINENO "configure"
6295    /* confdefs.h.  */
6296    _ACEOF
6297    cat confdefs.h >>conftest.$ac_ext
6298    cat >>conftest.$ac_ext <<_ACEOF
6299    /* end confdefs.h.  */
6300    $ac_includes_default
6301    int
6302    main ()
6303    {
6304    static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6305    test_array [0] = 0
6306    
6307      ;
6308      return 0;
6309    }
6310    _ACEOF
6311    rm -f conftest.$ac_objext
6312    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6313      (eval $ac_compile) 2>&5
6314      ac_status=$?
6315      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316      (exit $ac_status); } &&
6317             { ac_try='test -s conftest.$ac_objext'
6318      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319      (eval $ac_try) 2>&5
6320      ac_status=$?
6321      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322      (exit $ac_status); }; }; then
6323      ac_hi=$ac_mid; break
6324    else
6325      echo "$as_me: failed program was:" >&5
6326    sed 's/^/| /' conftest.$ac_ext >&5
6327    
6328    ac_lo=`expr $ac_mid + 1`
6329                        if test $ac_lo -le $ac_mid; then
6330                          ac_lo= ac_hi=
6331                          break
6332                        fi
6333                        ac_mid=`expr 2 '*' $ac_mid + 1`
6334    fi
6335    rm -f conftest.$ac_objext conftest.$ac_ext
6336      done
6337  else  else
6338    cat > conftest.$ac_ext <<EOF    echo "$as_me: failed program was:" >&5
6339  #line 3490 "configure"  sed 's/^/| /' conftest.$ac_ext >&5
6340  #include "confdefs.h"  
6341  #include <stdio.h>  cat >conftest.$ac_ext <<_ACEOF
6342  #include <sys/types.h>  #line $LINENO "configure"
6343  main()  /* confdefs.h.  */
6344    _ACEOF
6345    cat confdefs.h >>conftest.$ac_ext
6346    cat >>conftest.$ac_ext <<_ACEOF
6347    /* end confdefs.h.  */
6348    $ac_includes_default
6349    int
6350    main ()
6351  {  {
6352    FILE *f=fopen("conftestval", "w");  static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6353    if (!f) exit(1);  test_array [0] = 0
6354    fprintf(f, "%d\n", sizeof(long));  
6355    exit(0);    ;
6356      return 0;
6357  }  }
6358  EOF  _ACEOF
6359  if { (eval echo configure:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest.$ac_objext
6360  then  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6361    ac_cv_sizeof_long=`cat conftestval`    (eval $ac_compile) 2>&5
6362  else    ac_status=$?
6363    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364    cat conftest.$ac_ext >&5    (exit $ac_status); } &&
6365    rm -fr conftest*           { ac_try='test -s conftest.$ac_objext'
6366    ac_cv_sizeof_long=0    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367      (eval $ac_try) 2>&5
6368      ac_status=$?
6369      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370      (exit $ac_status); }; }; then
6371      ac_hi=-1 ac_mid=-1
6372      while :; do
6373        cat >conftest.$ac_ext <<_ACEOF
6374    #line $LINENO "configure"
6375    /* confdefs.h.  */
6376    _ACEOF
6377    cat confdefs.h >>conftest.$ac_ext
6378    cat >>conftest.$ac_ext <<_ACEOF
6379    /* end confdefs.h.  */
6380    $ac_includes_default
6381    int
6382    main ()
6383    {
6384    static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6385    test_array [0] = 0
6386    
6387      ;
6388      return 0;
6389    }
6390    _ACEOF
6391    rm -f conftest.$ac_objext
6392    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393      (eval $ac_compile) 2>&5
6394      ac_status=$?
6395      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396      (exit $ac_status); } &&
6397             { ac_try='test -s conftest.$ac_objext'
6398      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399      (eval $ac_try) 2>&5
6400      ac_status=$?
6401      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402      (exit $ac_status); }; }; then
6403      ac_lo=$ac_mid; break
6404    else
6405      echo "$as_me: failed program was:" >&5
6406    sed 's/^/| /' conftest.$ac_ext >&5
6407    
6408    ac_hi=`expr '(' $ac_mid ')' - 1`
6409                           if test $ac_mid -le $ac_hi; then
6410                             ac_lo= ac_hi=
6411                             break
6412                           fi
6413                           ac_mid=`expr 2 '*' $ac_mid`
6414    fi
6415    rm -f conftest.$ac_objext conftest.$ac_ext
6416      done
6417    else
6418      echo "$as_me: failed program was:" >&5
6419    sed 's/^/| /' conftest.$ac_ext >&5
6420    
6421    ac_lo= ac_hi=
6422  fi  fi
6423  rm -fr conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
6424  fi  fi
6425    rm -f conftest.$ac_objext conftest.$ac_ext
6426    # Binary search between lo and hi bounds.
6427    while test "x$ac_lo" != "x$ac_hi"; do
6428      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6429      cat >conftest.$ac_ext <<_ACEOF
6430    #line $LINENO "configure"
6431    /* confdefs.h.  */
6432    _ACEOF
6433    cat confdefs.h >>conftest.$ac_ext
6434    cat >>conftest.$ac_ext <<_ACEOF
6435    /* end confdefs.h.  */
6436    $ac_includes_default
6437    int
6438    main ()
6439    {
6440    static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6441    test_array [0] = 0
6442    
6443      ;
6444      return 0;
6445    }
6446    _ACEOF
6447    rm -f conftest.$ac_objext
6448    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6449      (eval $ac_compile) 2>&5
6450      ac_status=$?
6451      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452      (exit $ac_status); } &&
6453             { ac_try='test -s conftest.$ac_objext'
6454      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455      (eval $ac_try) 2>&5
6456      ac_status=$?
6457      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458      (exit $ac_status); }; }; then
6459      ac_hi=$ac_mid
6460    else
6461      echo "$as_me: failed program was:" >&5
6462    sed 's/^/| /' conftest.$ac_ext >&5
6463    
6464    ac_lo=`expr '(' $ac_mid ')' + 1`
6465  fi  fi
6466  echo "$ac_t""$ac_cv_sizeof_long" 1>&6  rm -f conftest.$ac_objext conftest.$ac_ext
6467  cat >> confdefs.h <<EOF  done
6468    case $ac_lo in
6469    ?*) ac_cv_sizeof_long=$ac_lo;;
6470    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6471    See \`config.log' for more details." >&5
6472    echo "$as_me: error: cannot compute sizeof (long), 77
6473    See \`config.log' for more details." >&2;}
6474       { (exit 1); exit 1; }; } ;;
6475    esac
6476    else
6477      if test "$cross_compiling" = yes; then
6478      { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6479    See \`config.log' for more details." >&5
6480    echo "$as_me: error: cannot run test program while cross compiling
6481    See \`config.log' for more details." >&2;}
6482       { (exit 1); exit 1; }; }
6483    else
6484      cat >conftest.$ac_ext <<_ACEOF
6485    #line $LINENO "configure"
6486    /* confdefs.h.  */
6487    _ACEOF
6488    cat confdefs.h >>conftest.$ac_ext
6489    cat >>conftest.$ac_ext <<_ACEOF
6490    /* end confdefs.h.  */
6491    $ac_includes_default
6492    long longval () { return (long) (sizeof (long)); }
6493    unsigned long ulongval () { return (long) (sizeof (long)); }
6494    #include <stdio.h>
6495    #include <stdlib.h>
6496    int
6497    main ()
6498    {
6499    
6500      FILE *f = fopen ("conftest.val", "w");
6501      if (! f)
6502        exit (1);
6503      if (((long) (sizeof (long))) < 0)
6504        {
6505          long i = longval ();
6506          if (i != ((long) (sizeof (long))))
6507            exit (1);
6508          fprintf (f, "%ld\n", i);
6509        }
6510      else
6511        {
6512          unsigned long i = ulongval ();
6513          if (i != ((long) (sizeof (long))))
6514            exit (1);
6515          fprintf (f, "%lu\n", i);
6516        }
6517      exit (ferror (f) || fclose (f) != 0);
6518    
6519      ;
6520      return 0;
6521    }
6522    _ACEOF
6523    rm -f conftest$ac_exeext
6524    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525      (eval $ac_link) 2>&5
6526      ac_status=$?
6527      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6529      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530      (eval $ac_try) 2>&5
6531      ac_status=$?
6532      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533      (exit $ac_status); }; }; then
6534      ac_cv_sizeof_long=`cat conftest.val`
6535    else
6536      echo "$as_me: program exited with status $ac_status" >&5
6537    echo "$as_me: failed program was:" >&5
6538    sed 's/^/| /' conftest.$ac_ext >&5
6539    
6540    ( exit $ac_status )
6541    { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6542    See \`config.log' for more details." >&5
6543    echo "$as_me: error: cannot compute sizeof (long), 77
6544    See \`config.log' for more details." >&2;}
6545       { (exit 1); exit 1; }; }
6546    fi
6547    rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6548    fi
6549    fi
6550    rm -f conftest.val
6551    else
6552      ac_cv_sizeof_long=0
6553    fi
6554    fi
6555    echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6556    echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6557    cat >>confdefs.h <<_ACEOF
6558  #define SIZEOF_LONG $ac_cv_sizeof_long  #define SIZEOF_LONG $ac_cv_sizeof_long
6559  EOF  _ACEOF
6560    
6561    
6562  echo $ac_n "checking sizeof struct contblock""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking sizeof struct contblock" >&5
6563  echo "configure:3522: checking sizeof struct contblock" >&5  echo $ECHO_N "checking sizeof struct contblock... $ECHO_C" >&6
6564    
6565  # work around MSYS pwd result incompatibility  # work around MSYS pwd result incompatibility
6566  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
6567  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6568    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
6569  else  else
6570    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6571  #line 3530 "configure"  #line $LINENO "configure"
6572  #include "confdefs.h"  /* confdefs.h.  */
6573    _ACEOF
6574    cat confdefs.h >>conftest.$ac_ext
6575    cat >>conftest.$ac_ext <<_ACEOF
6576    /* end confdefs.h.  */
6577  #include <stdio.h>  #include <stdio.h>
6578          #define EXTER          #define EXTER
6579          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 3539  else Line 6585  else
6585          fclose(f);          fclose(f);
6586          return 0;          return 0;
6587          }          }
6588  EOF  _ACEOF
6589  if { (eval echo configure:3544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6590  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6591      (eval $ac_link) 2>&5
6592      ac_status=$?
6593      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6595      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596      (eval $ac_try) 2>&5
6597      ac_status=$?
6598      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599      (exit $ac_status); }; }; then
6600    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
6601  else  else
6602    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6603    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6604    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
6605    echo Cannot find sizeof struct contblock;exit 1  
6606    ( exit $ac_status )
6607    echo Cannot find sizeof struct contblock;exit 1
6608  fi  fi
6609  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6610  fi  fi
   
6611  else  else
6612  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6613    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
6614  else  else
6615    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6616  #line 3561 "configure"  #line $LINENO "configure"
6617  #include "confdefs.h"  /* confdefs.h.  */
6618    _ACEOF
6619    cat confdefs.h >>conftest.$ac_ext
6620    cat >>conftest.$ac_ext <<_ACEOF
6621    /* end confdefs.h.  */
6622  #include <stdio.h>  #include <stdio.h>
6623          #define EXTER          #define EXTER
6624          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 3570  else Line 6630  else
6630          fclose(f);          fclose(f);
6631          return 0;          return 0;
6632          }          }
6633  EOF  _ACEOF
6634  if { (eval echo configure:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6635  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636      (eval $ac_link) 2>&5
6637      ac_status=$?
6638      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6640      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641      (eval $ac_try) 2>&5
6642      ac_status=$?
6643      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644      (exit $ac_status); }; }; then
6645    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
6646  else  else
6647    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6648    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6649    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
6650    echo Cannot find sizeof struct contblock;exit 1  
6651    ( exit $ac_status )
6652    echo Cannot find sizeof struct contblock;exit 1
6653  fi  fi
6654  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6655  fi  fi
   
6656  fi  fi
6657  echo "$ac_t""$sizeof_contblock" 1>&6  echo "$as_me:$LINENO: result: $sizeof_contblock" >&5
6658  cat >> confdefs.h <<EOF  echo "${ECHO_T}$sizeof_contblock" >&6
6659    cat >>confdefs.h <<_ACEOF
6660  #define SIZEOF_CONTBLOCK $sizeof_contblock  #define SIZEOF_CONTBLOCK $sizeof_contblock
6661  EOF  _ACEOF
6662    
6663    
6664    
6665    
6666  for ac_hdr in endian.h  
6667    for ac_header in endian.h
6668  do  do
6669  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6670  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6671  echo "configure:3600: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
6672  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6673    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6674  else    echo $ECHO_N "(cached) $ECHO_C" >&6
6675    cat > conftest.$ac_ext <<EOF  fi
6676  #line 3605 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6677  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6678  #include <$ac_hdr>  else
6679  EOF    # Is the header compilable?
6680  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
6681  { (eval echo configure:3610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6682  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
6683  if test -z "$ac_err"; then  #line $LINENO "configure"
6684    rm -rf conftest*  /* confdefs.h.  */
6685    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
6686  else  cat confdefs.h >>conftest.$ac_ext
6687    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
6688    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
6689    cat conftest.$ac_ext >&5  $ac_includes_default
6690    rm -rf conftest*  #include <$ac_header>
6691    eval "ac_cv_header_$ac_safe=no"  _ACEOF
6692  fi  rm -f conftest.$ac_objext
6693  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6694      (eval $ac_compile) 2>&5
6695      ac_status=$?
6696      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697      (exit $ac_status); } &&
6698             { ac_try='test -s conftest.$ac_objext'
6699      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700      (eval $ac_try) 2>&5
6701      ac_status=$?
6702      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703      (exit $ac_status); }; }; then
6704      ac_header_compiler=yes
6705    else
6706      echo "$as_me: failed program was:" >&5
6707    sed 's/^/| /' conftest.$ac_ext >&5
6708    
6709    ac_header_compiler=no
6710    fi
6711    rm -f conftest.$ac_objext conftest.$ac_ext
6712    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6713    echo "${ECHO_T}$ac_header_compiler" >&6
6714    
6715    # Is the header present?
6716    echo "$as_me:$LINENO: checking $ac_header presence" >&5
6717    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6718    cat >conftest.$ac_ext <<_ACEOF
6719    #line $LINENO "configure"
6720    /* confdefs.h.  */
6721    _ACEOF
6722    cat confdefs.h >>conftest.$ac_ext
6723    cat >>conftest.$ac_ext <<_ACEOF
6724    /* end confdefs.h.  */
6725    #include <$ac_header>
6726    _ACEOF
6727    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6728      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6729      ac_status=$?
6730      grep -v '^ *+' conftest.er1 >conftest.err
6731      rm -f conftest.er1
6732      cat conftest.err >&5
6733      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734      (exit $ac_status); } >/dev/null; then
6735      if test -s conftest.err; then
6736        ac_cpp_err=$ac_c_preproc_warn_flag
6737      else
6738        ac_cpp_err=
6739      fi
6740    else
6741      ac_cpp_err=yes
6742  fi  fi
6743  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
6744    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
6745      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
6746    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
6747  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
6748  EOF  
6749   echo $ac_n "checking "endianness"""... $ac_c" 1>&6    ac_header_preproc=no
6750  echo "configure:3631: checking "endianness"" >&5  fi
6751    rm -f conftest.err conftest.$ac_ext
6752    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6753    echo "${ECHO_T}$ac_header_preproc" >&6
6754    
6755    # So?  What about this header?
6756    case $ac_header_compiler:$ac_header_preproc in
6757      yes:no )
6758        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6759    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6760        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6761    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6762        (
6763          cat <<\_ASBOX
6764    ## ------------------------------------ ##
6765    ## Report this to bug-autoconf@gnu.org. ##
6766    ## ------------------------------------ ##
6767    _ASBOX
6768        ) |
6769          sed "s/^/$as_me: WARNING:     /" >&2
6770        ;;
6771      no:yes )
6772        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6773    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6774        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6775    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6776        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6777    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6778        (
6779          cat <<\_ASBOX
6780    ## ------------------------------------ ##
6781    ## Report this to bug-autoconf@gnu.org. ##
6782    ## ------------------------------------ ##
6783    _ASBOX
6784        ) |
6785          sed "s/^/$as_me: WARNING:     /" >&2
6786        ;;
6787    esac
6788    echo "$as_me:$LINENO: checking for $ac_header" >&5
6789    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6790    if eval "test \"\${$as_ac_Header+set}\" = set"; then
6791      echo $ECHO_N "(cached) $ECHO_C" >&6
6792    else
6793      eval "$as_ac_Header=$ac_header_preproc"
6794    fi
6795    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6796    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6797    
6798    fi
6799    if test `eval echo '${'$as_ac_Header'}'` = yes; then
6800      cat >>confdefs.h <<_ACEOF
6801    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6802    _ACEOF
6803     echo "$as_me:$LINENO: checking \"endianness\"" >&5
6804    echo $ECHO_N "checking \"endianness\"... $ECHO_C" >&6
6805          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
6806    echo "$ac_t""big" 1>&6    echo "$as_me:$LINENO: result: big" >&5
6807    echo "${ECHO_T}big" >&6
6808  else  else
6809    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6810  #line 3636 "configure"  #line $LINENO "configure"
6811  #include "confdefs.h"  /* confdefs.h.  */
6812    _ACEOF
6813    cat confdefs.h >>conftest.$ac_ext
6814    cat >>conftest.$ac_ext <<_ACEOF
6815    /* end confdefs.h.  */
6816  #define __ARMEB__  #define __ARMEB__
6817                  #include <endian.h>                  #include <endian.h>
6818                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
6819  EOF  _ACEOF
6820  if { (eval echo configure:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6821  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6822    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
6823      ac_status=$?
6824      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6826      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827      (eval $ac_try) 2>&5
6828      ac_status=$?
6829      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830      (exit $ac_status); }; }; then
6831      cat >>confdefs.h <<\_ACEOF
6832  #define LITTLE_END 1  #define LITTLE_END 1
6833  EOF  _ACEOF
6834   echo "$ac_t""little" 1>&6   echo "$as_me:$LINENO: result: little" >&5
6835  else  echo "${ECHO_T}little" >&6
6836    echo "configure: failed program was:" >&5  else
6837    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
6838    rm -fr conftest*  echo "$as_me: failed program was:" >&5
6839    echo "$ac_t""big" 1>&6  sed 's/^/| /' conftest.$ac_ext >&5
6840    
6841    ( exit $ac_status )
6842    echo "$as_me:$LINENO: result: big" >&5
6843    echo "${ECHO_T}big" >&6
6844  fi  fi
6845  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6846  fi  fi
   
 else  
   echo "$ac_t""no" 1>&6  
6847  fi  fi
6848    
6849  done  done
6850    
6851    
# Line 3664  done Line 6854  done
6854  # On systems with execshield, brk is randomized.  We need to catch  # On systems with execshield, brk is randomized.  We need to catch
6855  # this and restore the traditional behavior here  # this and restore the traditional behavior here
6856    
6857  echo $ac_n "checking for sbrk""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sbrk" >&5
6858  echo "configure:3669: checking for sbrk" >&5  echo $ECHO_N "checking for sbrk... $ECHO_C" >&6
6859  HAVE_SBRK=""  HAVE_SBRK=""
6860  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6861    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
6862    echo "${ECHO_T}no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6
6863  else  else
6864    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6865  #line 3675 "configure"  #line $LINENO "configure"
6866  #include "confdefs.h"  /* confdefs.h.  */
6867    _ACEOF
6868    cat confdefs.h >>conftest.$ac_ext
6869    cat >>conftest.$ac_ext <<_ACEOF
6870    /* end confdefs.h.  */
6871  #include <unistd.h>  #include <unistd.h>
6872              #include <stdio.h>              #include <stdio.h>
6873              int main() {              int main() {
# Line 3682  else Line 6877  else
6877                  fprintf(f,"%u",sbrk(0));                  fprintf(f,"%u",sbrk(0));
6878                  return 0;                  return 0;
6879                  }                  }
6880  EOF  _ACEOF
6881  if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6882  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883      (eval $ac_link) 2>&5
6884      ac_status=$?
6885      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6887      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888      (eval $ac_try) 2>&5
6889      ac_status=$?
6890      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891      (exit $ac_status); }; }; then
6892    HAVE_SBRK=1    HAVE_SBRK=1
6893                  echo "$ac_t""yes" 1>&6                  echo "$as_me:$LINENO: result: yes" >&5
6894    echo "${ECHO_T}yes" >&6
6895  else  else
6896    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6897    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6898    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
6899    echo "$ac_t""no: WARNING you must be able to emulate sbrk: as on mingw or macosx" 1>&6  
6900    ( exit $ac_status )
6901    echo "$as_me:$LINENO: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5
6902    echo "${ECHO_T}no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6
6903  fi  fi
6904  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6905  fi  fi
6906    
   
6907  if test "$HAVE_SBRK" = "1" ; then  if test "$HAVE_SBRK" = "1" ; then
6908          echo $ac_n "checking for randomized sbrk""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for randomized sbrk" >&5
6909  echo "configure:3703: checking for randomized sbrk" >&5  echo $ECHO_N "checking for randomized sbrk... $ECHO_C" >&6
6910          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
6911    SBRK=0    SBRK=0
6912  else  else
6913    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6914  #line 3708 "configure"  #line $LINENO "configure"
6915  #include "confdefs.h"  /* confdefs.h.  */
6916    _ACEOF
6917    cat confdefs.h >>conftest.$ac_ext
6918    cat >>conftest.$ac_ext <<_ACEOF
6919    /* end confdefs.h.  */
6920  #include <unistd.h>  #include <unistd.h>
6921                      #include <stdio.h>                      #include <stdio.h>
6922                      int main() {                      int main() {
# Line 3715  else Line 6926  else
6926                          fprintf(f,"%u",sbrk(0));                          fprintf(f,"%u",sbrk(0));
6927                          return 0;                          return 0;
6928                          }                          }
6929  EOF  _ACEOF
6930  if { (eval echo configure:3720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6931  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932      (eval $ac_link) 2>&5
6933      ac_status=$?
6934      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6936      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937      (eval $ac_try) 2>&5
6938      ac_status=$?
6939      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940      (exit $ac_status); }; }; then
6941    SBRK=`cat conftest1`    SBRK=`cat conftest1`
6942  else  else
6943    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6944    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6945    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
6946    SBRK=0  
6947    ( exit $ac_status )
6948    SBRK=0
6949  fi  fi
6950  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6951  fi  fi
   
6952          if test "$SBRK" = "0" ; then          if test "$SBRK" = "0" ; then
6953                  echo "$ac_t""cannot trap sbrk" 1>&6                  echo "$as_me:$LINENO: result: cannot trap sbrk" >&5
6954    echo "${ECHO_T}cannot trap sbrk" >&6
6955                  exit 1                  exit 1
6956          fi          fi
6957          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
6958    SBRK1=0    SBRK1=0
6959  else  else
6960    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6961  #line 3740 "configure"  #line $LINENO "configure"
6962  #include "confdefs.h"  /* confdefs.h.  */
6963    _ACEOF
6964    cat confdefs.h >>conftest.$ac_ext
6965    cat >>conftest.$ac_ext <<_ACEOF
6966    /* end confdefs.h.  */
6967  #include <unistd.h>  #include <unistd.h>
6968                      #include <stdio.h>                      #include <stdio.h>
6969                      int main() {                      int main() {
# Line 3747  else Line 6973  else
6973                          fprintf(f,"%u",sbrk(0));                          fprintf(f,"%u",sbrk(0));
6974                          return 0;                          return 0;
6975                          }                          }
6976  EOF  _ACEOF
6977  if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6978  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6979      (eval $ac_link) 2>&5
6980      ac_status=$?
6981      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6983      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984      (eval $ac_try) 2>&5
6985      ac_status=$?
6986      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987      (exit $ac_status); }; }; then
6988    SBRK1=`cat conftest1`    SBRK1=`cat conftest1`
6989  else  else
6990    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6991    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6992    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
6993    SBRK1=0  
6994    ( exit $ac_status )
6995    SBRK1=0
6996  fi  fi
6997  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6998  fi  fi
   
6999          if test "$SBRK1" = "0" ; then          if test "$SBRK1" = "0" ; then
7000                  echo "$ac_t""cannot trap sbrk" 1>&6                  echo "$as_me:$LINENO: result: cannot trap sbrk" >&5
7001    echo "${ECHO_T}cannot trap sbrk" >&6
7002                  exit 1                  exit 1
7003          fi          fi
7004            
7005          if test "$SBRK" != "$SBRK1" ; then          if test "$SBRK" != "$SBRK1" ; then
7006                  echo "$ac_t""yes" 1>&6                  echo "$as_me:$LINENO: result: yes" >&5
7007                  echo $ac_n "checking for randomized brk remedy""... $ac_c" 1>&6  echo "${ECHO_T}yes" >&6
7008  echo "configure:3772: checking for randomized brk remedy" >&5                  echo "$as_me:$LINENO: checking for randomized brk remedy" >&5
7009    echo $ECHO_N "checking for randomized brk remedy... $ECHO_C" >&6
7010                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
7011    SBRK=0    SBRK=0
7012  else  else
7013    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7014  #line 3777 "configure"  #line $LINENO "configure"
7015  #include "confdefs.h"  /* confdefs.h.  */
7016    _ACEOF
7017    cat confdefs.h >>conftest.$ac_ext
7018    cat >>conftest.$ac_ext <<_ACEOF
7019    /* end confdefs.h.  */
7020  #include <syscall.h>  #include <syscall.h>
7021                              #include <linux/personality.h>                              #include <linux/personality.h>
7022                              #include <stdio.h>                              #include <stdio.h>
# Line 3792  else Line 7034  else
7034                                  fprintf(f,"%u",sbrk(0));                                  fprintf(f,"%u",sbrk(0));
7035                                  return 0;                                  return 0;
7036                                  }                                  }
7037  EOF  _ACEOF
7038  if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7039  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040      (eval $ac_link) 2>&5
7041      ac_status=$?
7042      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7044      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045      (eval $ac_try) 2>&5
7046      ac_status=$?
7047      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048      (exit $ac_status); }; }; then
7049    SBRK=`cat conftest1`    SBRK=`cat conftest1`
7050  else  else
7051    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7052    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7053    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
7054    SBRK=0  
7055    ( exit $ac_status )
7056    SBRK=0
7057  fi  fi
7058  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7059  fi  fi
   
7060                  if test "$SBRK" = "0" ; then                  if test "$SBRK" = "0" ; then
7061                          echo "$ac_t""cannot trap sbrk" 1>&6                          echo "$as_me:$LINENO: result: cannot trap sbrk" >&5
7062    echo "${ECHO_T}cannot trap sbrk" >&6
7063                          exit 1                          exit 1
7064                  fi                  fi
7065                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
7066    SBRK1=0    SBRK1=0
7067  else  else
7068    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7069  #line 3817 "configure"  #line $LINENO "configure"
7070  #include "confdefs.h"  /* confdefs.h.  */
7071    _ACEOF
7072    cat confdefs.h >>conftest.$ac_ext
7073    cat >>conftest.$ac_ext <<_ACEOF
7074    /* end confdefs.h.  */
7075  #include <syscall.h>  #include <syscall.h>
7076                              #include <linux/personality.h>                              #include <linux/personality.h>
7077                              #include <stdio.h>                              #include <stdio.h>
# Line 3832  else Line 7089  else
7089                                  fprintf(f,"%u",sbrk(0));                                  fprintf(f,"%u",sbrk(0));
7090                                  return 0;                                  return 0;
7091                                  }                                  }
7092  EOF  _ACEOF
7093  if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7094  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7095      (eval $ac_link) 2>&5
7096      ac_status=$?
7097      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7099      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100      (eval $ac_try) 2>&5
7101      ac_status=$?
7102      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103      (exit $ac_status); }; }; then
7104    SBRK1=`cat conftest1`    SBRK1=`cat conftest1`
7105  else  else
7106    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7107    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7108    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
7109    SBRK1=0  
7110    ( exit $ac_status )
7111    SBRK1=0
7112  fi  fi
7113  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7114  fi  fi
   
7115                  if test "$SBRK1" = "0" ; then                  if test "$SBRK1" = "0" ; then
7116                          echo "$ac_t""cannot trap sbrk" 1>&6                          echo "$as_me:$LINENO: result: cannot trap sbrk" >&5
7117    echo "${ECHO_T}cannot trap sbrk" >&6
7118                          exit 1                          exit 1
7119                  fi                  fi
7120                  if test "$SBRK" = "$SBRK1" ; then                  if test "$SBRK" = "$SBRK1" ; then
7121                          echo "$ac_t""yes" 1>&6                          echo "$as_me:$LINENO: result: yes" >&5
7122                          cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
7123                            cat >>confdefs.h <<\_ACEOF
7124  #define NEED_NONRANDOM_SBRK 1  #define NEED_NONRANDOM_SBRK 1
7125  EOF  _ACEOF
7126    
7127                  else                  else
7128                          echo "$ac_t""no" 1>&6                          echo "$as_me:$LINENO: result: no" >&5
7129    echo "${ECHO_T}no" >&6
7130                          echo "Cannot build with randomized sbrk"                          echo "Cannot build with randomized sbrk"
7131                          exit 1                          exit 1
7132                  fi                  fi
7133          else          else
7134                  echo "$ac_t""no" 1>&6                  echo "$as_me:$LINENO: result: no" >&5
7135    echo "${ECHO_T}no" >&6
7136          fi          fi
7137  fi  fi
7138    
7139    
7140  old_LDFLAGS="$LDFLAGS"  old_LDFLAGS="$LDFLAGS"
7141  LDFLAGS="$TLDFLAGS"  LDFLAGS="$TLDFLAGS"
7142  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"finding DBEGIN\"" >&5
7143  echo "configure:3873: checking "finding DBEGIN"" >&5  echo $ECHO_N "checking \"finding DBEGIN\"... $ECHO_C" >&6
7144  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7145    dbegin=0    dbegin=0
7146  else  else
7147    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7148  #line 3878 "configure"  #line $LINENO "configure"
7149  #include "confdefs.h"  /* confdefs.h.  */
7150    _ACEOF
7151    cat confdefs.h >>conftest.$ac_ext
7152    cat >>conftest.$ac_ext <<_ACEOF
7153    /* end confdefs.h.  */
7154  #include <stdio.h>  #include <stdio.h>
7155              #include <stdlib.h>              #include <stdlib.h>
7156              #ifdef NEED_NONRANDOM_SBRK              #ifdef NEED_NONRANDOM_SBRK
# Line 3896  if (!syscall(SYS_personality,PER_LINUX32 Line 7171  if (!syscall(SYS_personality,PER_LINUX32
7171  if (!syscall(SYS_personality,PER_LINUX))  if (!syscall(SYS_personality,PER_LINUX))
7172  #endif  #endif
7173       execvp(argv[0],argv);       execvp(argv[0],argv);
7174  #endif    #endif
7175    b = (void *) malloc(1000);    b = (void *) malloc(1000);
7176    fp = fopen("conftest1","w");    fp = fopen("conftest1","w");
7177    
# Line 3912  if (!syscall(SYS_personality,PER_LINUX)) Line 7187  if (!syscall(SYS_personality,PER_LINUX))
7187    fclose(fp);    fclose(fp);
7188    return 0;    return 0;
7189  }  }
7190  EOF  _ACEOF
7191  if { (eval echo configure:3917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7192  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7193      (eval $ac_link) 2>&5
7194      ac_status=$?
7195      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7197      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198      (eval $ac_try) 2>&5
7199      ac_status=$?
7200      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201      (exit $ac_status); }; }; then
7202    dbegin=`cat conftest1`    dbegin=`cat conftest1`
7203  else  else
7204    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7205    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7206    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
7207    dbegin=0  
7208    ( exit $ac_status )
7209    dbegin=0
7210  fi  fi
7211  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7212  fi  fi
7213    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
7214  #define DBEGIN $dbegin \  #define DBEGIN $dbegin \
7215  /* where data begins */  /* where data begins */
7216    
7217  EOF  _ACEOF
7218    
7219  echo "$ac_t""got $dbegin" 1>&6  echo "$as_me:$LINENO: result: got $dbegin" >&5
7220    echo "${ECHO_T}got $dbegin" >&6
7221  LDFLAGS="$old_LDFLAGS"  LDFLAGS="$old_LDFLAGS"
7222    
7223    
7224  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"finding CSTACK_ADDRESS\"" >&5
7225  echo "configure:3940: checking "finding CSTACK_ADDRESS"" >&5  echo $ECHO_N "checking \"finding CSTACK_ADDRESS\"... $ECHO_C" >&6
7226  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7227    cstack_address=0    cstack_address=0
7228  else  else
7229    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7230  #line 3945 "configure"  #line $LINENO "configure"
7231  #include "confdefs.h"  /* confdefs.h.  */
7232    _ACEOF
7233    cat confdefs.h >>conftest.$ac_ext
7234    cat >>conftest.$ac_ext <<_ACEOF
7235    /* end confdefs.h.  */
7236  #include <stdio.h>  #include <stdio.h>
7237  main()  main()
7238  {  {
# Line 3952  main() Line 7242  main()
7242    fclose(fp);    fclose(fp);
7243    return 0;    return 0;
7244  }  }
7245  EOF  _ACEOF
7246  if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7247  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7248      (eval $ac_link) 2>&5
7249      ac_status=$?
7250      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7252      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253      (eval $ac_try) 2>&5
7254      ac_status=$?
7255      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256      (exit $ac_status); }; }; then
7257    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
7258  else  else
7259    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7260    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7261    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
7262    cstack_address=0  
7263    ( exit $ac_status )
7264    cstack_address=0
7265  fi  fi
7266  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7267  fi  fi
7268    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
7269  #define CSTACK_ADDRESS $cstack_address \  #define CSTACK_ADDRESS $cstack_address \
7270    
7271  EOF  _ACEOF
7272    
7273  echo "$ac_t""got $cstack_address" 1>&6  echo "$as_me:$LINENO: result: got $cstack_address" >&5
7274    echo "${ECHO_T}got $cstack_address" >&6
7275    
7276    
7277    
7278  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"sizeof long long int\"" >&5
7279  echo "configure:3979: checking "sizeof long long int"" >&5  echo $ECHO_N "checking \"sizeof long long int\"... $ECHO_C" >&6
7280  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7281    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
7282    echo "${ECHO_T}no" >&6
7283    
7284  else  else
7285    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7286  #line 3985 "configure"  #line $LINENO "configure"
7287  #include "confdefs.h"  /* confdefs.h.  */
7288    _ACEOF
7289    cat confdefs.h >>conftest.$ac_ext
7290    cat >>conftest.$ac_ext <<_ACEOF
7291    /* end confdefs.h.  */
7292  #include <stdio.h>  #include <stdio.h>
7293  main()  main()
7294  {  {
# Line 3990  main() Line 7296  main()
7296    return 1;    return 1;
7297  }  }
7298    
7299  EOF  _ACEOF
7300  if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7301  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7302    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7303      ac_status=$?
7304      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7306      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307      (eval $ac_try) 2>&5
7308      ac_status=$?
7309      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310      (exit $ac_status); }; }; then
7311      cat >>confdefs.h <<\_ACEOF
7312  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
7313  EOF  _ACEOF
7314    
7315  echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: yes" >&5
7316    echo "${ECHO_T}yes" >&6
7317  else  else
7318    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7319    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7320    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
7321    echo "$ac_t""no" 1>&6  
7322    ( exit $ac_status )
7323    echo "$as_me:$LINENO: result: no" >&5
7324    echo "${ECHO_T}no" >&6
7325  fi  fi
7326  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7327  fi  fi
7328    
7329    
7330    
   
7331  # readline  # readline
7332  # Check whether --enable-readline or --disable-readline was given.  # Check whether --enable-readline or --disable-readline was given.
7333  if test "${enable_readline+set}" = set; then  if test "${enable_readline+set}" = set; then
7334    enableval="$enable_readline"    enableval="$enable_readline"
7335    :  
7336  else  else
7337    enable_readline="yes"    enable_readline="yes"
7338  fi  fi;
   
7339    
7340  # ansi lisp  # ansi lisp
7341  # Check whether --enable-ansi or --disable-ansi was given.  # Check whether --enable-ansi or --disable-ansi was given.
7342  if test "${enable_ansi+set}" = set; then  if test "${enable_ansi+set}" = set; then
7343    enableval="$enable_ansi"    enableval="$enable_ansi"
7344    :  
7345  else  else
7346    enable_ansi="no"    enable_ansi="no"
7347  fi  fi;
   
7348    
7349  if test "$enable_ansi" = "yes" ; then  if test "$enable_ansi" = "yes" ; then
7350          SYSTEM=ansi_gcl          SYSTEM=ansi_gcl
7351          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
7352  #define ANSI_COMMON_LISP 1  #define ANSI_COMMON_LISP 1
7353  EOF  _ACEOF
7354    
7355          CLSTANDARD=ANSI          CLSTANDARD=ANSI
7356  else  else
# Line 4048  FLISP="saved_$SYSTEM" Line 7364  FLISP="saved_$SYSTEM"
7364    
7365    
7366  # pagewidth  # pagewidth
7367  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for pagewidth" >&5
7368  echo "configure:4053: checking for pagewidth" >&5  echo $ECHO_N "checking for pagewidth... $ECHO_C" >&6
7369  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7370    PAGEWIDTH=0    PAGEWIDTH=0
7371  else  else
7372    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7373  #line 4058 "configure"  #line $LINENO "configure"
7374  #include "confdefs.h"  /* confdefs.h.  */
7375    _ACEOF
7376    cat confdefs.h >>conftest.$ac_ext
7377    cat >>conftest.$ac_ext <<_ACEOF
7378    /* end confdefs.h.  */
7379  #include <stdio.h>  #include <stdio.h>
7380              #include <unistd.h>              #include <unistd.h>
7381  int main() {size_t i=getpagesize(),j;  int main() {size_t i=getpagesize(),j;
7382              FILE *fp=fopen("conftest1","w");              FILE *fp=fopen("conftest1","w");
7383              for (j=0;i>>=1;j++);              for (j=0;i>>=1;j++);
7384              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
7385              return 0;}              return 0;}
7386  EOF  _ACEOF
7387  if { (eval echo configure:4068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7388  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7389      (eval $ac_link) 2>&5
7390      ac_status=$?
7391      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7393      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394      (eval $ac_try) 2>&5
7395      ac_status=$?
7396      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397      (exit $ac_status); }; }; then
7398    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
7399  else  else
7400    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7401    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7402    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
7403    PAGEWIDTH=0  
7404  fi  ( exit $ac_status )
7405  rm -fr conftest*  PAGEWIDTH=0
7406  fi  fi
7407    rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7408  echo "$ac_t""$PAGEWIDTH" 1>&6  fi
7409  cat >> confdefs.h <<EOF  echo "$as_me:$LINENO: result: $PAGEWIDTH" >&5
7410    echo "${ECHO_T}$PAGEWIDTH" >&6
7411    cat >>confdefs.h <<_ACEOF
7412  #define PAGEWIDTH $PAGEWIDTH  #define PAGEWIDTH $PAGEWIDTH
7413  EOF  _ACEOF
7414    
7415    
7416    
# Line 4088  EOF Line 7419  EOF
7419    
7420    
7421  # Check if Posix compliant getcwd exists, if not we'll use getwd.  # Check if Posix compliant getcwd exists, if not we'll use getwd.
7422    
7423  for ac_func in getcwd  for ac_func in getcwd
7424  do  do
7425  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7426  echo "configure:4095: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
7427  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7428    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
7429  else    echo $ECHO_N "(cached) $ECHO_C" >&6
7430    cat > conftest.$ac_ext <<EOF  else
7431  #line 4100 "configure"    cat >conftest.$ac_ext <<_ACEOF
7432  #include "confdefs.h"  #line $LINENO "configure"
7433    /* confdefs.h.  */
7434    _ACEOF
7435    cat confdefs.h >>conftest.$ac_ext
7436    cat >>conftest.$ac_ext <<_ACEOF
7437    /* end confdefs.h.  */
7438  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7439      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
7440  #include <assert.h>  #include <assert.h>
7441  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7442    #ifdef __cplusplus
7443    extern "C"
7444    {
7445    #endif
7446  /* 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
7447      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7448  char $ac_func();  char $ac_func ();
   
 int main() {  
   
7449  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7450      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7451      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7452  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7453  choke me  choke me
7454  #else  #else
7455  $ac_func();  char (*f) () = $ac_func;
7456    #endif
7457    #ifdef __cplusplus
7458    }
7459  #endif  #endif
7460    
7461  ; return 0; }  int
7462  EOF  main ()
7463  if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
7464    rm -rf conftest*  
7465    eval "ac_cv_func_$ac_func=yes"    ;
7466  else    return 0;
7467    echo "configure: failed program was:" >&5  }
7468    cat conftest.$ac_ext >&5  _ACEOF
7469    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
7470    eval "ac_cv_func_$ac_func=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7471  fi    (eval $ac_link) 2>&5
7472  rm -f conftest*    ac_status=$?
7473  fi    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474      (exit $ac_status); } &&
7475             { ac_try='test -s conftest$ac_exeext'
7476      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477      (eval $ac_try) 2>&5
7478      ac_status=$?
7479      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480      (exit $ac_status); }; }; then
7481      eval "$as_ac_var=yes"
7482    else
7483      echo "$as_me: failed program was:" >&5
7484    sed 's/^/| /' conftest.$ac_ext >&5
7485    
7486    eval "$as_ac_var=no"
7487    fi
7488    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7489    fi
7490    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7491    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7492    if test `eval echo '${'$as_ac_var'}'` = yes; then
7493      cat >>confdefs.h <<_ACEOF
7494    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7495    _ACEOF
7496    
 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  
7497  fi  fi
7498  done  done
7499    
7500    
7501  for ac_func in getwd  for ac_func in getwd
7502  do  do
7503  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7504  echo "configure:4150: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
7505  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7506    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
7507  else    echo $ECHO_N "(cached) $ECHO_C" >&6
7508    cat > conftest.$ac_ext <<EOF  else
7509  #line 4155 "configure"    cat >conftest.$ac_ext <<_ACEOF
7510  #include "confdefs.h"  #line $LINENO "configure"
7511    /* confdefs.h.  */
7512    _ACEOF
7513    cat confdefs.h >>conftest.$ac_ext
7514    cat >>conftest.$ac_ext <<_ACEOF
7515    /* end confdefs.h.  */
7516  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7517      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
7518  #include <assert.h>  #include <assert.h>
7519  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7520    #ifdef __cplusplus
7521    extern "C"
7522    {
7523    #endif
7524  /* 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
7525      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7526  char $ac_func();  char $ac_func ();
   
 int main() {  
   
7527  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7528      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7529      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7530  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7531  choke me  choke me
7532  #else  #else
7533  $ac_func();  char (*f) () = $ac_func;
7534    #endif
7535    #ifdef __cplusplus
7536    }
7537  #endif  #endif
7538    
7539  ; return 0; }  int
7540  EOF  main ()
7541  if { (eval echo configure:4178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
7542    rm -rf conftest*  
7543    eval "ac_cv_func_$ac_func=yes"    ;
7544  else    return 0;
7545    echo "configure: failed program was:" >&5  }
7546    cat conftest.$ac_ext >&5  _ACEOF
7547    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
7548    eval "ac_cv_func_$ac_func=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7549  fi    (eval $ac_link) 2>&5
7550  rm -f conftest*    ac_status=$?
7551  fi    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552      (exit $ac_status); } &&
7553             { ac_try='test -s conftest$ac_exeext'
7554      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555      (eval $ac_try) 2>&5
7556      ac_status=$?
7557      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558      (exit $ac_status); }; }; then
7559      eval "$as_ac_var=yes"
7560    else
7561      echo "$as_me: failed program was:" >&5
7562    sed 's/^/| /' conftest.$ac_ext >&5
7563    
7564    eval "$as_ac_var=no"
7565    fi
7566    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7567    fi
7568    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7569    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7570    if test `eval echo '${'$as_ac_var'}'` = yes; then
7571      cat >>confdefs.h <<_ACEOF
7572    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7573    _ACEOF
7574    
 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  
7575  fi  fi
7576  done  done
7577    
7578  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for uname" >&5
7579  echo "configure:4203: checking for uname" >&5  echo $ECHO_N "checking for uname... $ECHO_C" >&6
7580  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if test "${ac_cv_func_uname+set}" = set; then
7581    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7582  else  else
7583    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7584  #line 4208 "configure"  #line $LINENO "configure"
7585  #include "confdefs.h"  /* confdefs.h.  */
7586    _ACEOF
7587    cat confdefs.h >>conftest.$ac_ext
7588    cat >>conftest.$ac_ext <<_ACEOF
7589    /* end confdefs.h.  */
7590  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7591      which can conflict with char uname(); below.  */      which can conflict with char uname (); below.  */
7592  #include <assert.h>  #include <assert.h>
7593  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7594    #ifdef __cplusplus
7595    extern "C"
7596    {
7597    #endif
7598  /* 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
7599      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7600  char uname();  char uname ();
   
 int main() {  
   
7601  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7602      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7603      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7604  #if defined (__stub_uname) || defined (__stub___uname)  #if defined (__stub_uname) || defined (__stub___uname)
7605  choke me  choke me
7606  #else  #else
7607  uname();  char (*f) () = uname;
7608    #endif
7609    #ifdef __cplusplus
7610    }
7611  #endif  #endif
7612    
7613  ; return 0; }  int
7614  EOF  main ()
7615  if { (eval echo configure:4231: \"$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  
7616    
7617  if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then    ;
7618    echo "$ac_t""yes" 1>&6    return 0;
7619    }
7620    _ACEOF
7621    rm -f conftest.$ac_objext conftest$ac_exeext
7622    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7623      (eval $ac_link) 2>&5
7624      ac_status=$?
7625      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626      (exit $ac_status); } &&
7627             { ac_try='test -s conftest$ac_exeext'
7628      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629      (eval $ac_try) 2>&5
7630      ac_status=$?
7631      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632      (exit $ac_status); }; }; then
7633      ac_cv_func_uname=yes
7634    else
7635      echo "$as_me: failed program was:" >&5
7636    sed 's/^/| /' conftest.$ac_ext >&5
7637    
7638    ac_cv_func_uname=no
7639    fi
7640    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7641    fi
7642    echo "$as_me:$LINENO: result: $ac_cv_func_uname" >&5
7643    echo "${ECHO_T}$ac_cv_func_uname" >&6
7644    if test $ac_cv_func_uname = yes; then
7645    :    :
7646  else  else
7647    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
7648  #define NO_UNAME 1  #define NO_UNAME 1
7649  EOF  _ACEOF
7650    
7651  fi  fi
7652    
7653  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday" >&5
7654  echo "configure:4255: checking for gettimeofday" >&5  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7655  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_gettimeofday+set}" = set; then
7656    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7657  else  else
7658    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7659  #line 4260 "configure"  #line $LINENO "configure"
7660  #include "confdefs.h"  /* confdefs.h.  */
7661    _ACEOF
7662    cat confdefs.h >>conftest.$ac_ext
7663    cat >>conftest.$ac_ext <<_ACEOF
7664    /* end confdefs.h.  */
7665  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7666      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.  */
7667  #include <assert.h>  #include <assert.h>
7668  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7669    #ifdef __cplusplus
7670    extern "C"
7671    {
7672    #endif
7673  /* 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
7674      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7675  char gettimeofday();  char gettimeofday ();
   
 int main() {  
   
7676  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7677      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7678      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7679  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7680  choke me  choke me
7681  #else  #else
7682  gettimeofday();  char (*f) () = gettimeofday;
7683    #endif
7684    #ifdef __cplusplus
7685    }
7686  #endif  #endif
7687    
7688  ; return 0; }  int
7689  EOF  main ()
7690  if { (eval echo configure:4283: \"$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  
7691    
7692  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    ;
7693    echo "$ac_t""yes" 1>&6    return 0;
7694    }
7695    _ACEOF
7696    rm -f conftest.$ac_objext conftest$ac_exeext
7697    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7698      (eval $ac_link) 2>&5
7699      ac_status=$?
7700      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701      (exit $ac_status); } &&
7702             { ac_try='test -s conftest$ac_exeext'
7703      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704      (eval $ac_try) 2>&5
7705      ac_status=$?
7706      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707      (exit $ac_status); }; }; then
7708      ac_cv_func_gettimeofday=yes
7709    else
7710      echo "$as_me: failed program was:" >&5
7711    sed 's/^/| /' conftest.$ac_ext >&5
7712    
7713    ac_cv_func_gettimeofday=no
7714    fi
7715    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7716    fi
7717    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7718    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7719    if test $ac_cv_func_gettimeofday = yes; then
7720    :    :
7721  else  else
7722    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
7723  #define NO_GETTOD 1  #define NO_GETTOD 1
7724  EOF  _ACEOF
7725    
7726  fi  fi
7727    
7728    
7729    
7730  for ac_hdr in sys/ioctl.h  
7731    for ac_header in sys/ioctl.h
7732  do  do
7733  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7734  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7735  echo "configure:4312: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7736  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7737    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7738  else    echo $ECHO_N "(cached) $ECHO_C" >&6
7739    cat > conftest.$ac_ext <<EOF  fi
7740  #line 4317 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7741  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7742  #include <$ac_hdr>  else
7743  EOF    # Is the header compilable?
7744  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
7745  { (eval echo configure:4322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7746  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
7747  if test -z "$ac_err"; then  #line $LINENO "configure"
7748    rm -rf conftest*  /* confdefs.h.  */
7749    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
7750  else  cat confdefs.h >>conftest.$ac_ext
7751    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
7752    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
7753    cat conftest.$ac_ext >&5  $ac_includes_default
7754    rm -rf conftest*  #include <$ac_header>
7755    eval "ac_cv_header_$ac_safe=no"  _ACEOF
7756  fi  rm -f conftest.$ac_objext
7757  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7758      (eval $ac_compile) 2>&5
7759      ac_status=$?
7760      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761      (exit $ac_status); } &&
7762             { ac_try='test -s conftest.$ac_objext'
7763      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764      (eval $ac_try) 2>&5
7765      ac_status=$?
7766      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767      (exit $ac_status); }; }; then
7768      ac_header_compiler=yes
7769    else
7770      echo "$as_me: failed program was:" >&5
7771    sed 's/^/| /' conftest.$ac_ext >&5
7772    
7773    ac_header_compiler=no
7774    fi
7775    rm -f conftest.$ac_objext conftest.$ac_ext
7776    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7777    echo "${ECHO_T}$ac_header_compiler" >&6
7778    
7779    # Is the header present?
7780    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7781    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7782    cat >conftest.$ac_ext <<_ACEOF
7783    #line $LINENO "configure"
7784    /* confdefs.h.  */
7785    _ACEOF
7786    cat confdefs.h >>conftest.$ac_ext
7787    cat >>conftest.$ac_ext <<_ACEOF
7788    /* end confdefs.h.  */
7789    #include <$ac_header>
7790    _ACEOF
7791    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7792      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7793      ac_status=$?
7794      grep -v '^ *+' conftest.er1 >conftest.err
7795      rm -f conftest.er1
7796      cat conftest.err >&5
7797      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798      (exit $ac_status); } >/dev/null; then
7799      if test -s conftest.err; then
7800        ac_cpp_err=$ac_c_preproc_warn_flag
7801      else
7802        ac_cpp_err=
7803      fi
7804    else
7805      ac_cpp_err=yes
7806  fi  fi
7807  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
7808    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
7809      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
7810    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
7811  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
7812  EOF  
7813      ac_header_preproc=no
7814    fi
7815    rm -f conftest.err conftest.$ac_ext
7816    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7817    echo "${ECHO_T}$ac_header_preproc" >&6
7818    
7819    # So?  What about this header?
7820    case $ac_header_compiler:$ac_header_preproc in
7821      yes:no )
7822        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7823    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7824        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7825    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7826        (
7827          cat <<\_ASBOX
7828    ## ------------------------------------ ##
7829    ## Report this to bug-autoconf@gnu.org. ##
7830    ## ------------------------------------ ##
7831    _ASBOX
7832        ) |
7833          sed "s/^/$as_me: WARNING:     /" >&2
7834        ;;
7835      no:yes )
7836        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7837    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7838        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7839    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7840        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7841    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7842        (
7843          cat <<\_ASBOX
7844    ## ------------------------------------ ##
7845    ## Report this to bug-autoconf@gnu.org. ##
7846    ## ------------------------------------ ##
7847    _ASBOX
7848        ) |
7849          sed "s/^/$as_me: WARNING:     /" >&2
7850        ;;
7851    esac
7852    echo "$as_me:$LINENO: checking for $ac_header" >&5
7853    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7854    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7855      echo $ECHO_N "(cached) $ECHO_C" >&6
7856  else  else
7857    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
7858    fi
7859    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7860    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7861    
7862    fi
7863    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7864      cat >>confdefs.h <<_ACEOF
7865    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7866    _ACEOF
7867    
7868  fi  fi
7869    
7870  done  done
7871    
7872    
7873  # OpenBSD has elf_abi.h instead of elf.h  # OpenBSD has elf_abi.h instead of elf.h
7874  for ac_hdr in elf.h elf_abi.h  
7875    
7876    for ac_header in elf.h elf_abi.h
7877  do  do
7878  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7879  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7880  echo "configure:4354: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7881  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7882    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7883  else    echo $ECHO_N "(cached) $ECHO_C" >&6
7884    cat > conftest.$ac_ext <<EOF  fi
7885  #line 4359 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7886  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7887  #include <$ac_hdr>  else
7888  EOF    # Is the header compilable?
7889  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
7890  { (eval echo configure:4364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7891  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
7892  if test -z "$ac_err"; then  #line $LINENO "configure"
7893    rm -rf conftest*  /* confdefs.h.  */
7894    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
7895  else  cat confdefs.h >>conftest.$ac_ext
7896    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
7897    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
7898    cat conftest.$ac_ext >&5  $ac_includes_default
7899    rm -rf conftest*  #include <$ac_header>
7900    eval "ac_cv_header_$ac_safe=no"  _ACEOF
7901  fi  rm -f conftest.$ac_objext
7902  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7903      (eval $ac_compile) 2>&5
7904      ac_status=$?
7905      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906      (exit $ac_status); } &&
7907             { ac_try='test -s conftest.$ac_objext'
7908      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909      (eval $ac_try) 2>&5
7910      ac_status=$?
7911      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912      (exit $ac_status); }; }; then
7913      ac_header_compiler=yes
7914    else
7915      echo "$as_me: failed program was:" >&5
7916    sed 's/^/| /' conftest.$ac_ext >&5
7917    
7918    ac_header_compiler=no
7919    fi
7920    rm -f conftest.$ac_objext conftest.$ac_ext
7921    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7922    echo "${ECHO_T}$ac_header_compiler" >&6
7923    
7924    # Is the header present?
7925    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7926    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7927    cat >conftest.$ac_ext <<_ACEOF
7928    #line $LINENO "configure"
7929    /* confdefs.h.  */
7930    _ACEOF
7931    cat confdefs.h >>conftest.$ac_ext
7932    cat >>conftest.$ac_ext <<_ACEOF
7933    /* end confdefs.h.  */
7934    #include <$ac_header>
7935    _ACEOF
7936    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7937      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7938      ac_status=$?
7939      grep -v '^ *+' conftest.er1 >conftest.err
7940      rm -f conftest.er1
7941      cat conftest.err >&5
7942      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943      (exit $ac_status); } >/dev/null; then
7944      if test -s conftest.err; then
7945        ac_cpp_err=$ac_c_preproc_warn_flag
7946      else
7947        ac_cpp_err=
7948      fi
7949    else
7950      ac_cpp_err=yes
7951  fi  fi
7952  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
7953    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  
   cat >> confdefs.h <<EOF  
 #define $ac_tr_hdr 1  
 EOF  
   
7954  else  else
7955    echo "$ac_t""no" 1>&6    echo "$as_me: failed program was:" >&5
7956    sed 's/^/| /' conftest.$ac_ext >&5
7957    
7958      ac_header_preproc=no
7959    fi
7960    rm -f conftest.err conftest.$ac_ext
7961    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7962    echo "${ECHO_T}$ac_header_preproc" >&6
7963    
7964    # So?  What about this header?
7965    case $ac_header_compiler:$ac_header_preproc in
7966      yes:no )
7967        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7968    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7969        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7970    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7971        (
7972          cat <<\_ASBOX
7973    ## ------------------------------------ ##
7974    ## Report this to bug-autoconf@gnu.org. ##
7975    ## ------------------------------------ ##
7976    _ASBOX
7977        ) |
7978          sed "s/^/$as_me: WARNING:     /" >&2
7979        ;;
7980      no:yes )
7981        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7982    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7983        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7984    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7985        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7986    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7987        (
7988          cat <<\_ASBOX
7989    ## ------------------------------------ ##
7990    ## Report this to bug-autoconf@gnu.org. ##
7991    ## ------------------------------------ ##
7992    _ASBOX
7993        ) |
7994          sed "s/^/$as_me: WARNING:     /" >&2
7995        ;;
7996    esac
7997    echo "$as_me:$LINENO: checking for $ac_header" >&5
7998    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7999    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8000      echo $ECHO_N "(cached) $ECHO_C" >&6
8001    else
8002      eval "$as_ac_Header=$ac_header_preproc"
8003    fi
8004    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8005    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8006    
8007    fi
8008    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8009      cat >>confdefs.h <<_ACEOF
8010    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8011    _ACEOF
8012    
8013  fi  fi
8014    
8015  done  done
8016    
8017    
# Line 4399  done Line 8027  done
8027  #          declare it.  #          declare it.
8028  #--------------------------------------------------------------------  #--------------------------------------------------------------------
8029    
8030  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for BSDgettimeofday" >&5
8031  echo "configure:4404: checking for BSDgettimeofday" >&5  echo $ECHO_N "checking for BSDgettimeofday... $ECHO_C" >&6
8032  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_BSDgettimeofday+set}" = set; then
8033    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8034  else  else
8035    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8036  #line 4409 "configure"  #line $LINENO "configure"
8037  #include "confdefs.h"  /* confdefs.h.  */
8038    _ACEOF
8039    cat confdefs.h >>conftest.$ac_ext
8040    cat >>conftest.$ac_ext <<_ACEOF
8041    /* end confdefs.h.  */
8042  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8043      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday (); below.  */
8044  #include <assert.h>  #include <assert.h>
8045  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8046    #ifdef __cplusplus
8047    extern "C"
8048    {
8049    #endif
8050  /* 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
8051      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8052  char BSDgettimeofday();  char BSDgettimeofday ();
   
 int main() {  
   
8053  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8054      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8055      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8056  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
8057  choke me  choke me
8058  #else  #else
8059  BSDgettimeofday();  char (*f) () = BSDgettimeofday;
8060    #endif
8061    #ifdef __cplusplus
8062    }
8063  #endif  #endif
8064    
8065  ; return 0; }  int
8066  EOF  main ()
8067  if { (eval echo configure:4432: \"$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  
8068    
8069  if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then    ;
8070    echo "$ac_t""yes" 1>&6    return 0;
8071    cat >> confdefs.h <<\EOF  }
8072    _ACEOF
8073    rm -f conftest.$ac_objext conftest$ac_exeext
8074    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8075      (eval $ac_link) 2>&5
8076      ac_status=$?
8077      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078      (exit $ac_status); } &&
8079             { ac_try='test -s conftest$ac_exeext'
8080      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081      (eval $ac_try) 2>&5
8082      ac_status=$?
8083      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084      (exit $ac_status); }; }; then
8085      ac_cv_func_BSDgettimeofday=yes
8086    else
8087      echo "$as_me: failed program was:" >&5
8088    sed 's/^/| /' conftest.$ac_ext >&5
8089    
8090    ac_cv_func_BSDgettimeofday=no
8091    fi
8092    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8093    fi
8094    echo "$as_me:$LINENO: result: $ac_cv_func_BSDgettimeofday" >&5
8095    echo "${ECHO_T}$ac_cv_func_BSDgettimeofday" >&6
8096    if test $ac_cv_func_BSDgettimeofday = yes; then
8097      cat >>confdefs.h <<\_ACEOF
8098  #define HAVE_BSDGETTIMEOFDAY 1  #define HAVE_BSDGETTIMEOFDAY 1
8099  EOF  _ACEOF
8100    
8101  else  else
8102    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for gettimeofday" >&5
8103  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
8104  echo "configure:4453: checking for gettimeofday" >&5  if test "${ac_cv_func_gettimeofday+set}" = set; then
8105  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
8106    echo $ac_n "(cached) $ac_c" 1>&6  else
8107  else    cat >conftest.$ac_ext <<_ACEOF
8108    cat > conftest.$ac_ext <<EOF  #line $LINENO "configure"
8109  #line 4458 "configure"  /* confdefs.h.  */
8110  #include "confdefs.h"  _ACEOF
8111    cat confdefs.h >>conftest.$ac_ext
8112    cat >>conftest.$ac_ext <<_ACEOF
8113    /* end confdefs.h.  */
8114  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8115      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.  */
8116  #include <assert.h>  #include <assert.h>
8117  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8118    #ifdef __cplusplus
8119    extern "C"
8120    {
8121    #endif
8122  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
8123      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8124  char gettimeofday();  char gettimeofday ();
   
 int main() {  
   
8125  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8126      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8127      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8128  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
8129  choke me  choke me
8130  #else  #else
8131  gettimeofday();  char (*f) () = gettimeofday;
8132    #endif
8133    #ifdef __cplusplus
8134    }
8135  #endif  #endif
8136    
8137  ; return 0; }  int
8138  EOF  main ()
8139  if { (eval echo configure:4481: \"$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  
8140    
8141  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    ;
8142    echo "$ac_t""yes" 1>&6    return 0;
8143    }
8144    _ACEOF
8145    rm -f conftest.$ac_objext conftest$ac_exeext
8146    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8147      (eval $ac_link) 2>&5
8148      ac_status=$?
8149      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150      (exit $ac_status); } &&
8151             { ac_try='test -s conftest$ac_exeext'
8152      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153      (eval $ac_try) 2>&5
8154      ac_status=$?
8155      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156      (exit $ac_status); }; }; then
8157      ac_cv_func_gettimeofday=yes
8158    else
8159      echo "$as_me: failed program was:" >&5
8160    sed 's/^/| /' conftest.$ac_ext >&5
8161    
8162    ac_cv_func_gettimeofday=no
8163    fi
8164    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8165    fi
8166    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
8167    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
8168    if test $ac_cv_func_gettimeofday = yes; then
8169    :    :
8170  else  else
8171    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
8172  #define NO_GETTOD 1  #define NO_GETTOD 1
8173  EOF  _ACEOF
8174    
8175  fi  fi
8176    
8177  fi  fi
8178    
8179    
8180  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday declaration" >&5
8181  echo "configure:4508: checking for gettimeofday declaration" >&5  echo $ECHO_N "checking for gettimeofday declaration... $ECHO_C" >&6
8182    
8183  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8184  #line 4511 "configure"  #line $LINENO "configure"
8185  #include "confdefs.h"  /* confdefs.h.  */
8186    _ACEOF
8187    cat confdefs.h >>conftest.$ac_ext
8188    cat >>conftest.$ac_ext <<_ACEOF
8189    /* end confdefs.h.  */
8190  #include <sys/time.h>  #include <sys/time.h>
8191  EOF  
8192    _ACEOF
8193  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8194    egrep "gettimeofday" >/dev/null 2>&1; then    $EGREP "gettimeofday" >/dev/null 2>&1; then
8195    rm -rf conftest*    echo "$as_me:$LINENO: result: present" >&5
8196    echo "$ac_t""present" 1>&6  echo "${ECHO_T}present" >&6
8197  else  else
8198    rm -rf conftest*    echo "$as_me:$LINENO: result: missing" >&5
8199    echo "$ac_t""missing" 1>&6  echo "${ECHO_T}missing" >&6
8200                   cat >> confdefs.h <<\EOF                   cat >>confdefs.h <<\_ACEOF
8201  #define GETTOD_NOT_DECLARED 1  #define GETTOD_NOT_DECLARED 1
8202  EOF  _ACEOF
8203    
8204  fi  fi
8205  rm -f conftest*  rm -f conftest*
8206    
8207    
8208    
8209  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sin in -lm" >&5
8210  echo "configure:4532: checking for sin in -lm" >&5  echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8211  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_m_sin+set}" = set; then
8212  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  
8213  else  else
8214    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
8215  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
8216  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8217  #line 4540 "configure"  #line $LINENO "configure"
8218  #include "confdefs.h"  /* confdefs.h.  */
8219    _ACEOF
8220    cat confdefs.h >>conftest.$ac_ext
8221    cat >>conftest.$ac_ext <<_ACEOF
8222    /* end confdefs.h.  */
8223    
8224  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8225    #ifdef __cplusplus
8226    extern "C"
8227    #endif
8228  /* 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
8229      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8230  char sin();  char sin ();
8231    int
8232  int main() {  main ()
8233  sin()  {
8234  ; return 0; }  sin ();
8235  EOF    ;
8236  if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
8237    rm -rf conftest*  }
8238    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
8239  else  rm -f conftest.$ac_objext conftest$ac_exeext
8240    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8241    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
8242    rm -rf conftest*    ac_status=$?
8243    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244  fi    (exit $ac_status); } &&
8245  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
8246  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247      (eval $ac_try) 2>&5
8248  fi    ac_status=$?
8249  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8251      ac_cv_lib_m_sin=yes
8252    else
8253      echo "$as_me: failed program was:" >&5
8254    sed 's/^/| /' conftest.$ac_ext >&5
8255    
8256    ac_cv_lib_m_sin=no
8257    fi
8258    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8259    LIBS=$ac_check_lib_save_LIBS
8260    fi
8261    echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8262    echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8263    if test $ac_cv_lib_m_sin = yes; then
8264    LIBS="${LIBS} -lm"    LIBS="${LIBS} -lm"
8265  else  else
8266    echo "$ac_t""no" 1>&6    true
 true  
8267  fi  fi
8268    
8269  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lmingwex" >&5
8270  echo "configure:4573: checking for main in -lmingwex" >&5  echo $ECHO_N "checking for main in -lmingwex... $ECHO_C" >&6
8271  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_mingwex_main+set}" = set; then
8272  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  
8273  else  else
8274    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
8275  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
8276  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8277  #line 4581 "configure"  #line $LINENO "configure"
8278  #include "confdefs.h"  /* confdefs.h.  */
8279    _ACEOF
8280    cat confdefs.h >>conftest.$ac_ext
8281    cat >>conftest.$ac_ext <<_ACEOF
8282    /* end confdefs.h.  */
8283    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:4588: \"$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"  
8284    
8285  fi  int
8286  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
8287    echo "$ac_t""yes" 1>&6  {
8288    main ();
8289      ;
8290      return 0;
8291    }
8292    _ACEOF
8293    rm -f conftest.$ac_objext conftest$ac_exeext
8294    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295      (eval $ac_link) 2>&5
8296      ac_status=$?
8297      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298      (exit $ac_status); } &&
8299             { ac_try='test -s conftest$ac_exeext'
8300      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301      (eval $ac_try) 2>&5
8302      ac_status=$?
8303      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304      (exit $ac_status); }; }; then
8305      ac_cv_lib_mingwex_main=yes
8306    else
8307      echo "$as_me: failed program was:" >&5
8308    sed 's/^/| /' conftest.$ac_ext >&5
8309    
8310    ac_cv_lib_mingwex_main=no
8311    fi
8312    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8313    LIBS=$ac_check_lib_save_LIBS
8314    fi
8315    echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_main" >&5
8316    echo "${ECHO_T}$ac_cv_lib_mingwex_main" >&6
8317    if test $ac_cv_lib_mingwex_main = yes; then
8318    LIBS="${LIBS} -lmingwex"    LIBS="${LIBS} -lmingwex"
8319  else  else
8320    echo "$ac_t""no" 1>&6    true
 true  
8321  fi  fi
8322    
8323    
8324  EXTRA_LOBJS=  EXTRA_LOBJS=
8325  if test "$try_japi" = "yes" ; then  if test "$try_japi" = "yes" ; then
8326     for ac_hdr in japi.h  
8327    for ac_header in japi.h
8328  do  do
8329  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8330  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8331  echo "configure:4616: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8332  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8333    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8334  else    echo $ECHO_N "(cached) $ECHO_C" >&6
8335    cat > conftest.$ac_ext <<EOF  fi
8336  #line 4621 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8337  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8338  #include <$ac_hdr>  else
8339  EOF    # Is the header compilable?
8340  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
8341  { (eval echo configure:4626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8342  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
8343  if test -z "$ac_err"; then  #line $LINENO "configure"
8344    rm -rf conftest*  /* confdefs.h.  */
8345    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
8346  else  cat confdefs.h >>conftest.$ac_ext
8347    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
8348    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
8349    cat conftest.$ac_ext >&5  $ac_includes_default
8350    rm -rf conftest*  #include <$ac_header>
8351    eval "ac_cv_header_$ac_safe=no"  _ACEOF
8352  fi  rm -f conftest.$ac_objext
8353  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8354      (eval $ac_compile) 2>&5
8355      ac_status=$?
8356      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357      (exit $ac_status); } &&
8358             { ac_try='test -s conftest.$ac_objext'
8359      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360      (eval $ac_try) 2>&5
8361      ac_status=$?
8362      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363      (exit $ac_status); }; }; then
8364      ac_header_compiler=yes
8365    else
8366      echo "$as_me: failed program was:" >&5
8367    sed 's/^/| /' conftest.$ac_ext >&5
8368    
8369    ac_header_compiler=no
8370    fi
8371    rm -f conftest.$ac_objext conftest.$ac_ext
8372    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8373    echo "${ECHO_T}$ac_header_compiler" >&6
8374    
8375    # Is the header present?
8376    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8377    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8378    cat >conftest.$ac_ext <<_ACEOF
8379    #line $LINENO "configure"
8380    /* confdefs.h.  */
8381    _ACEOF
8382    cat confdefs.h >>conftest.$ac_ext
8383    cat >>conftest.$ac_ext <<_ACEOF
8384    /* end confdefs.h.  */
8385    #include <$ac_header>
8386    _ACEOF
8387    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8388      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8389      ac_status=$?
8390      grep -v '^ *+' conftest.er1 >conftest.err
8391      rm -f conftest.er1
8392      cat conftest.err >&5
8393      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394      (exit $ac_status); } >/dev/null; then
8395      if test -s conftest.err; then
8396        ac_cpp_err=$ac_c_preproc_warn_flag
8397      else
8398        ac_cpp_err=
8399      fi
8400    else
8401      ac_cpp_err=yes
8402  fi  fi
8403  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
8404    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
8405      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
8406    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
8407  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
8408  EOF  
8409   cat >> confdefs.h <<\EOF    ac_header_preproc=no
8410    fi
8411    rm -f conftest.err conftest.$ac_ext
8412    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8413    echo "${ECHO_T}$ac_header_preproc" >&6
8414    
8415    # So?  What about this header?
8416    case $ac_header_compiler:$ac_header_preproc in
8417      yes:no )
8418        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8419    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8420        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8421    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8422        (
8423          cat <<\_ASBOX
8424    ## ------------------------------------ ##
8425    ## Report this to bug-autoconf@gnu.org. ##
8426    ## ------------------------------------ ##
8427    _ASBOX
8428        ) |
8429          sed "s/^/$as_me: WARNING:     /" >&2
8430        ;;
8431      no:yes )
8432        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8433    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8434        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8435    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8436        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8437    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8438        (
8439          cat <<\_ASBOX
8440    ## ------------------------------------ ##
8441    ## Report this to bug-autoconf@gnu.org. ##
8442    ## ------------------------------------ ##
8443    _ASBOX
8444        ) |
8445          sed "s/^/$as_me: WARNING:     /" >&2
8446        ;;
8447    esac
8448    echo "$as_me:$LINENO: checking for $ac_header" >&5
8449    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8450    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8451      echo $ECHO_N "(cached) $ECHO_C" >&6
8452    else
8453      eval "$as_ac_Header=$ac_header_preproc"
8454    fi
8455    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8456    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8457    
8458    fi
8459    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8460      cat >>confdefs.h <<_ACEOF
8461    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8462    _ACEOF
8463     cat >>confdefs.h <<\_ACEOF
8464  #define HAVE_JAPI_H 1  #define HAVE_JAPI_H 1
8465  EOF  _ACEOF
8466    
8467                                   EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"                                   EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"
8468                                   LIBS="${LIBS} -ljapi -lwsock32"                                   LIBS="${LIBS} -ljapi -lwsock32"
 else  
   echo "$ac_t""no" 1>&6  
8469  fi  fi
8470    
8471  done  done
8472    
8473  fi  fi
8474  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
8475   if test "$try_xdr" = "yes" ; then   if test "$try_xdr" = "yes" ; then
8476     for ac_hdr in rpc/rpc.h  
8477    for ac_header in rpc/rpc.h
8478  do  do
8479  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8480  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8481  echo "configure:4664: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8482  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8483    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8484  else    echo $ECHO_N "(cached) $ECHO_C" >&6
8485    cat > conftest.$ac_ext <<EOF  fi
8486  #line 4669 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8487  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8488  #include <$ac_hdr>  else
8489  EOF    # Is the header compilable?
8490  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
8491  { (eval echo configure:4674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8492  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
8493  if test -z "$ac_err"; then  #line $LINENO "configure"
8494    rm -rf conftest*  /* confdefs.h.  */
8495    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
8496  else  cat confdefs.h >>conftest.$ac_ext
8497    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
8498    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
8499    cat conftest.$ac_ext >&5  $ac_includes_default
8500    rm -rf conftest*  #include <$ac_header>
8501    eval "ac_cv_header_$ac_safe=no"  _ACEOF
8502  fi  rm -f conftest.$ac_objext
8503  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8504      (eval $ac_compile) 2>&5
8505      ac_status=$?
8506      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507      (exit $ac_status); } &&
8508             { ac_try='test -s conftest.$ac_objext'
8509      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510      (eval $ac_try) 2>&5
8511      ac_status=$?
8512      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513      (exit $ac_status); }; }; then
8514      ac_header_compiler=yes
8515    else
8516      echo "$as_me: failed program was:" >&5
8517    sed 's/^/| /' conftest.$ac_ext >&5
8518    
8519    ac_header_compiler=no
8520    fi
8521    rm -f conftest.$ac_objext conftest.$ac_ext
8522    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8523    echo "${ECHO_T}$ac_header_compiler" >&6
8524    
8525    # Is the header present?
8526    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8527    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8528    cat >conftest.$ac_ext <<_ACEOF
8529    #line $LINENO "configure"
8530    /* confdefs.h.  */
8531    _ACEOF
8532    cat confdefs.h >>conftest.$ac_ext
8533    cat >>conftest.$ac_ext <<_ACEOF
8534    /* end confdefs.h.  */
8535    #include <$ac_header>
8536    _ACEOF
8537    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8538      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8539      ac_status=$?
8540      grep -v '^ *+' conftest.er1 >conftest.err
8541      rm -f conftest.er1
8542      cat conftest.err >&5
8543      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544      (exit $ac_status); } >/dev/null; then
8545      if test -s conftest.err; then
8546        ac_cpp_err=$ac_c_preproc_warn_flag
8547      else
8548        ac_cpp_err=
8549      fi
8550    else
8551      ac_cpp_err=yes
8552  fi  fi
8553  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
8554    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
8555      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
8556    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
8557  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
8558  EOF  
8559   cat >> confdefs.h <<\EOF    ac_header_preproc=no
8560    fi
8561    rm -f conftest.err conftest.$ac_ext
8562    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8563    echo "${ECHO_T}$ac_header_preproc" >&6
8564    
8565    # So?  What about this header?
8566    case $ac_header_compiler:$ac_header_preproc in
8567      yes:no )
8568        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8569    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8570        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8571    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8572        (
8573          cat <<\_ASBOX
8574    ## ------------------------------------ ##
8575    ## Report this to bug-autoconf@gnu.org. ##
8576    ## ------------------------------------ ##
8577    _ASBOX
8578        ) |
8579          sed "s/^/$as_me: WARNING:     /" >&2
8580        ;;
8581      no:yes )
8582        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8583    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8584        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8585    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8586        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8587    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8588        (
8589          cat <<\_ASBOX
8590    ## ------------------------------------ ##
8591    ## Report this to bug-autoconf@gnu.org. ##
8592    ## ------------------------------------ ##
8593    _ASBOX
8594        ) |
8595          sed "s/^/$as_me: WARNING:     /" >&2
8596        ;;
8597    esac
8598    echo "$as_me:$LINENO: checking for $ac_header" >&5
8599    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8600    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8601      echo $ECHO_N "(cached) $ECHO_C" >&6
8602    else
8603      eval "$as_ac_Header=$ac_header_preproc"
8604    fi
8605    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8606    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8607    
8608    fi
8609    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8610      cat >>confdefs.h <<_ACEOF
8611    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8612    _ACEOF
8613     cat >>confdefs.h <<\_ACEOF
8614  #define HAVE_XDR 1  #define HAVE_XDR 1
8615  EOF  _ACEOF
8616    
8617                                   LIBS="${LIBS} -loncrpc"                                   LIBS="${LIBS} -loncrpc"
 else  
   echo "$ac_t""no" 1>&6  
8618  fi  fi
8619    
8620  done  done
8621    
8622   fi   fi
8623  else  else
8624   if test "$try_xdr" = "yes" ; then   if test "$try_xdr" = "yes" ; then
8625     for ac_hdr in rpc/rpc.h  
8626    for ac_header in rpc/rpc.h
8627  do  do
8628  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8629  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8630  echo "configure:4711: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8631  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8632    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8633  else    echo $ECHO_N "(cached) $ECHO_C" >&6
8634    cat > conftest.$ac_ext <<EOF  fi
8635  #line 4716 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8636  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8637  #include <$ac_hdr>  else
8638  EOF    # Is the header compilable?
8639  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
8640  { (eval echo configure:4721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8641  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
8642  if test -z "$ac_err"; then  #line $LINENO "configure"
8643    rm -rf conftest*  /* confdefs.h.  */
8644    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
8645  else  cat confdefs.h >>conftest.$ac_ext
8646    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
8647    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
8648    cat conftest.$ac_ext >&5  $ac_includes_default
8649    rm -rf conftest*  #include <$ac_header>
8650    eval "ac_cv_header_$ac_safe=no"  _ACEOF
8651  fi  rm -f conftest.$ac_objext
8652  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8653      (eval $ac_compile) 2>&5
8654      ac_status=$?
8655      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656      (exit $ac_status); } &&
8657             { ac_try='test -s conftest.$ac_objext'
8658      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659      (eval $ac_try) 2>&5
8660      ac_status=$?
8661      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662      (exit $ac_status); }; }; then
8663      ac_header_compiler=yes
8664    else
8665      echo "$as_me: failed program was:" >&5
8666    sed 's/^/| /' conftest.$ac_ext >&5
8667    
8668    ac_header_compiler=no
8669    fi
8670    rm -f conftest.$ac_objext conftest.$ac_ext
8671    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8672    echo "${ECHO_T}$ac_header_compiler" >&6
8673    
8674    # Is the header present?
8675    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8676    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8677    cat >conftest.$ac_ext <<_ACEOF
8678    #line $LINENO "configure"
8679    /* confdefs.h.  */
8680    _ACEOF
8681    cat confdefs.h >>conftest.$ac_ext
8682    cat >>conftest.$ac_ext <<_ACEOF
8683    /* end confdefs.h.  */
8684    #include <$ac_header>
8685    _ACEOF
8686    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8687      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8688      ac_status=$?
8689      grep -v '^ *+' conftest.er1 >conftest.err
8690      rm -f conftest.er1
8691      cat conftest.err >&5
8692      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693      (exit $ac_status); } >/dev/null; then
8694      if test -s conftest.err; then
8695        ac_cpp_err=$ac_c_preproc_warn_flag
8696      else
8697        ac_cpp_err=
8698      fi
8699    else
8700      ac_cpp_err=yes
8701  fi  fi
8702  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
8703    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
8704      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
8705    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
8706  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
8707  EOF  
8708   cat >> confdefs.h <<\EOF    ac_header_preproc=no
8709    fi
8710    rm -f conftest.err conftest.$ac_ext
8711    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8712    echo "${ECHO_T}$ac_header_preproc" >&6
8713    
8714    # So?  What about this header?
8715    case $ac_header_compiler:$ac_header_preproc in
8716      yes:no )
8717        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8718    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8719        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8720    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8721        (
8722          cat <<\_ASBOX
8723    ## ------------------------------------ ##
8724    ## Report this to bug-autoconf@gnu.org. ##
8725    ## ------------------------------------ ##
8726    _ASBOX
8727        ) |
8728          sed "s/^/$as_me: WARNING:     /" >&2
8729        ;;
8730      no:yes )
8731        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8732    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8733        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8734    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8735        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8736    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8737        (
8738          cat <<\_ASBOX
8739    ## ------------------------------------ ##
8740    ## Report this to bug-autoconf@gnu.org. ##
8741    ## ------------------------------------ ##
8742    _ASBOX
8743        ) |
8744          sed "s/^/$as_me: WARNING:     /" >&2
8745        ;;
8746    esac
8747    echo "$as_me:$LINENO: checking for $ac_header" >&5
8748    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8749    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8750      echo $ECHO_N "(cached) $ECHO_C" >&6
8751    else
8752      eval "$as_ac_Header=$ac_header_preproc"
8753    fi
8754    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8755    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8756    
8757    fi
8758    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8759      cat >>confdefs.h <<_ACEOF
8760    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8761    _ACEOF
8762     cat >>confdefs.h <<\_ACEOF
8763  #define HAVE_XDR 1  #define HAVE_XDR 1
8764  EOF  _ACEOF
8765    
8766                                   LIBS="${LIBS} -lrpc"                                   LIBS="${LIBS} -lrpc"
 else  
   echo "$ac_t""no" 1>&6  
8767  fi  fi
8768    
8769  done  done
8770    
8771   fi   fi
8772  fi  fi
8773    
8774  # Should really find a way to check for prototypes, but this  # Should really find a way to check for prototypes, but this
8775  # basically works for now.  CM  # basically works for now.  CM
8776  #  #
8777  for ac_hdr in math.h  
8778    for ac_header in math.h
8779  do  do
8780  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8781  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8782  echo "configure:4761: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8783  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8784    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8785  else    echo $ECHO_N "(cached) $ECHO_C" >&6
8786    cat > conftest.$ac_ext <<EOF  fi
8787  #line 4766 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8788  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8789  #include <$ac_hdr>  else
8790  EOF    # Is the header compilable?
8791  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
8792  { (eval echo configure:4771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8793  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
8794  if test -z "$ac_err"; then  #line $LINENO "configure"
8795    rm -rf conftest*  /* confdefs.h.  */
8796    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
8797  else  cat confdefs.h >>conftest.$ac_ext
8798    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
8799    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
8800    cat conftest.$ac_ext >&5  $ac_includes_default
8801    rm -rf conftest*  #include <$ac_header>
8802    eval "ac_cv_header_$ac_safe=no"  _ACEOF
8803  fi  rm -f conftest.$ac_objext
8804  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8805      (eval $ac_compile) 2>&5
8806      ac_status=$?
8807      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808      (exit $ac_status); } &&
8809             { ac_try='test -s conftest.$ac_objext'
8810      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811      (eval $ac_try) 2>&5
8812      ac_status=$?
8813      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814      (exit $ac_status); }; }; then
8815      ac_header_compiler=yes
8816    else
8817      echo "$as_me: failed program was:" >&5
8818    sed 's/^/| /' conftest.$ac_ext >&5
8819    
8820    ac_header_compiler=no
8821    fi
8822    rm -f conftest.$ac_objext conftest.$ac_ext
8823    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8824    echo "${ECHO_T}$ac_header_compiler" >&6
8825    
8826    # Is the header present?
8827    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8828    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8829    cat >conftest.$ac_ext <<_ACEOF
8830    #line $LINENO "configure"
8831    /* confdefs.h.  */
8832    _ACEOF
8833    cat confdefs.h >>conftest.$ac_ext
8834    cat >>conftest.$ac_ext <<_ACEOF
8835    /* end confdefs.h.  */
8836    #include <$ac_header>
8837    _ACEOF
8838    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8839      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8840      ac_status=$?
8841      grep -v '^ *+' conftest.er1 >conftest.err
8842      rm -f conftest.er1
8843      cat conftest.err >&5
8844      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845      (exit $ac_status); } >/dev/null; then
8846      if test -s conftest.err; then
8847        ac_cpp_err=$ac_c_preproc_warn_flag
8848      else
8849        ac_cpp_err=
8850      fi
8851    else
8852      ac_cpp_err=yes
8853  fi  fi
8854  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
8855    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
8856      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
8857    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
8858  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
8859  EOF  
8860   cat >> confdefs.h <<\EOF    ac_header_preproc=no
8861    fi
8862    rm -f conftest.err conftest.$ac_ext
8863    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8864    echo "${ECHO_T}$ac_header_preproc" >&6
8865    
8866    # So?  What about this header?
8867    case $ac_header_compiler:$ac_header_preproc in
8868      yes:no )
8869        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8870    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8871        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8872    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8873        (
8874          cat <<\_ASBOX
8875    ## ------------------------------------ ##
8876    ## Report this to bug-autoconf@gnu.org. ##
8877    ## ------------------------------------ ##
8878    _ASBOX
8879        ) |
8880          sed "s/^/$as_me: WARNING:     /" >&2
8881        ;;
8882      no:yes )
8883        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8884    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8885        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8886    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8887        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8888    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8889        (
8890          cat <<\_ASBOX
8891    ## ------------------------------------ ##
8892    ## Report this to bug-autoconf@gnu.org. ##
8893    ## ------------------------------------ ##
8894    _ASBOX
8895        ) |
8896          sed "s/^/$as_me: WARNING:     /" >&2
8897        ;;
8898    esac
8899    echo "$as_me:$LINENO: checking for $ac_header" >&5
8900    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8901    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8902      echo $ECHO_N "(cached) $ECHO_C" >&6
8903    else
8904      eval "$as_ac_Header=$ac_header_preproc"
8905    fi
8906    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8907    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8908    
8909    fi
8910    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8911      cat >>confdefs.h <<_ACEOF
8912    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8913    _ACEOF
8914     cat >>confdefs.h <<\_ACEOF
8915  #define HAVE_MATH_H 1  #define HAVE_MATH_H 1
8916  EOF  _ACEOF
8917    
 else  
   echo "$ac_t""no" 1>&6  
8918  fi  fi
8919    
8920  done  done
8921    
8922    
8923  #  #
8924  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM
8925  #  #
8926  for ac_hdr in values.h  
8927    for ac_header in values.h
8928  do  do
8929  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8930  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8931  echo "configure:4808: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8932  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8933    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8934  else    echo $ECHO_N "(cached) $ECHO_C" >&6
8935    cat > conftest.$ac_ext <<EOF  fi
8936  #line 4813 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8937  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8938  #include <$ac_hdr>  else
8939  EOF    # Is the header compilable?
8940  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
8941  { (eval echo configure:4818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8942  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
8943  if test -z "$ac_err"; then  #line $LINENO "configure"
8944    rm -rf conftest*  /* confdefs.h.  */
8945    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
8946  else  cat confdefs.h >>conftest.$ac_ext
8947    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
8948    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
8949    cat conftest.$ac_ext >&5  $ac_includes_default
8950    rm -rf conftest*  #include <$ac_header>
8951    eval "ac_cv_header_$ac_safe=no"  _ACEOF
8952  fi  rm -f conftest.$ac_objext
8953  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8954      (eval $ac_compile) 2>&5
8955      ac_status=$?
8956      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957      (exit $ac_status); } &&
8958             { ac_try='test -s conftest.$ac_objext'
8959      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960      (eval $ac_try) 2>&5
8961      ac_status=$?
8962      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963      (exit $ac_status); }; }; then
8964      ac_header_compiler=yes
8965    else
8966      echo "$as_me: failed program was:" >&5
8967    sed 's/^/| /' conftest.$ac_ext >&5
8968    
8969    ac_header_compiler=no
8970    fi
8971    rm -f conftest.$ac_objext conftest.$ac_ext
8972    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8973    echo "${ECHO_T}$ac_header_compiler" >&6
8974    
8975    # Is the header present?
8976    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8977    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8978    cat >conftest.$ac_ext <<_ACEOF
8979    #line $LINENO "configure"
8980    /* confdefs.h.  */
8981    _ACEOF
8982    cat confdefs.h >>conftest.$ac_ext
8983    cat >>conftest.$ac_ext <<_ACEOF
8984    /* end confdefs.h.  */
8985    #include <$ac_header>
8986    _ACEOF
8987    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8988      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8989      ac_status=$?
8990      grep -v '^ *+' conftest.er1 >conftest.err
8991      rm -f conftest.er1
8992      cat conftest.err >&5
8993      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994      (exit $ac_status); } >/dev/null; then
8995      if test -s conftest.err; then
8996        ac_cpp_err=$ac_c_preproc_warn_flag
8997      else
8998        ac_cpp_err=
8999      fi
9000    else
9001      ac_cpp_err=yes
9002  fi  fi
9003  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
9004    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
9005      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
9006    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
9007  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
9008  EOF  
9009   cat >> confdefs.h <<\EOF    ac_header_preproc=no
9010    fi
9011    rm -f conftest.err conftest.$ac_ext
9012    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9013    echo "${ECHO_T}$ac_header_preproc" >&6
9014    
9015    # So?  What about this header?
9016    case $ac_header_compiler:$ac_header_preproc in
9017      yes:no )
9018        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9019    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9020        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9021    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9022        (
9023          cat <<\_ASBOX
9024    ## ------------------------------------ ##
9025    ## Report this to bug-autoconf@gnu.org. ##
9026    ## ------------------------------------ ##
9027    _ASBOX
9028        ) |
9029          sed "s/^/$as_me: WARNING:     /" >&2
9030        ;;
9031      no:yes )
9032        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9033    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9034        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9035    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9036        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9037    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9038        (
9039          cat <<\_ASBOX
9040    ## ------------------------------------ ##
9041    ## Report this to bug-autoconf@gnu.org. ##
9042    ## ------------------------------------ ##
9043    _ASBOX
9044        ) |
9045          sed "s/^/$as_me: WARNING:     /" >&2
9046        ;;
9047    esac
9048    echo "$as_me:$LINENO: checking for $ac_header" >&5
9049    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9050    if eval "test \"\${$as_ac_Header+set}\" = set"; then
9051      echo $ECHO_N "(cached) $ECHO_C" >&6
9052    else
9053      eval "$as_ac_Header=$ac_header_preproc"
9054    fi
9055    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9056    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9057    
9058    fi
9059    if test `eval echo '${'$as_ac_Header'}'` = yes; then
9060      cat >>confdefs.h <<_ACEOF
9061    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9062    _ACEOF
9063     cat >>confdefs.h <<\_ACEOF
9064  #define HAVE_VALUES_H 1  #define HAVE_VALUES_H 1
9065  EOF  _ACEOF
9066    
 else  
   echo "$ac_t""no" 1>&6  
9067  fi  fi
9068    
9069  done  done
9070    
9071    
9072  #  #
9073  # 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
9074  #  #
9075  for ac_hdr in float.h  
9076    for ac_header in float.h
9077  do  do
9078  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9079  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9080  echo "configure:4855: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
9081  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9082    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9083  else    echo $ECHO_N "(cached) $ECHO_C" >&6
9084    cat > conftest.$ac_ext <<EOF  fi
9085  #line 4860 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9086  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9087  #include <$ac_hdr>  else
9088  EOF    # Is the header compilable?
9089  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
9090  { (eval echo configure:4865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9091  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
9092  if test -z "$ac_err"; then  #line $LINENO "configure"
9093    rm -rf conftest*  /* confdefs.h.  */
9094    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
9095  else  cat confdefs.h >>conftest.$ac_ext
9096    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
9097    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
9098    cat conftest.$ac_ext >&5  $ac_includes_default
9099    rm -rf conftest*  #include <$ac_header>
9100    eval "ac_cv_header_$ac_safe=no"  _ACEOF
9101  fi  rm -f conftest.$ac_objext
9102  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103      (eval $ac_compile) 2>&5
9104      ac_status=$?
9105      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106      (exit $ac_status); } &&
9107             { ac_try='test -s conftest.$ac_objext'
9108      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109      (eval $ac_try) 2>&5
9110      ac_status=$?
9111      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112      (exit $ac_status); }; }; then
9113      ac_header_compiler=yes
9114    else
9115      echo "$as_me: failed program was:" >&5
9116    sed 's/^/| /' conftest.$ac_ext >&5
9117    
9118    ac_header_compiler=no
9119    fi
9120    rm -f conftest.$ac_objext conftest.$ac_ext
9121    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9122    echo "${ECHO_T}$ac_header_compiler" >&6
9123    
9124    # Is the header present?
9125    echo "$as_me:$LINENO: checking $ac_header presence" >&5
9126    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9127    cat >conftest.$ac_ext <<_ACEOF
9128    #line $LINENO "configure"
9129    /* confdefs.h.  */
9130    _ACEOF
9131    cat confdefs.h >>conftest.$ac_ext
9132    cat >>conftest.$ac_ext <<_ACEOF
9133    /* end confdefs.h.  */
9134    #include <$ac_header>
9135    _ACEOF
9136    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9137      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9138      ac_status=$?
9139      grep -v '^ *+' conftest.er1 >conftest.err
9140      rm -f conftest.er1
9141      cat conftest.err >&5
9142      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143      (exit $ac_status); } >/dev/null; then
9144      if test -s conftest.err; then
9145        ac_cpp_err=$ac_c_preproc_warn_flag
9146      else
9147        ac_cpp_err=
9148      fi
9149    else
9150      ac_cpp_err=yes
9151  fi  fi
9152  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
9153    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
9154      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
9155    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
9156  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
9157  EOF  
9158   cat >> confdefs.h <<\EOF    ac_header_preproc=no
9159    fi
9160    rm -f conftest.err conftest.$ac_ext
9161    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9162    echo "${ECHO_T}$ac_header_preproc" >&6
9163    
9164    # So?  What about this header?
9165    case $ac_header_compiler:$ac_header_preproc in
9166      yes:no )
9167        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9168    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9169        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9170    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9171        (
9172          cat <<\_ASBOX
9173    ## ------------------------------------ ##
9174    ## Report this to bug-autoconf@gnu.org. ##
9175    ## ------------------------------------ ##
9176    _ASBOX
9177        ) |
9178          sed "s/^/$as_me: WARNING:     /" >&2
9179        ;;
9180      no:yes )
9181        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9182    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9183        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9184    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9185        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9186    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9187        (
9188          cat <<\_ASBOX
9189    ## ------------------------------------ ##
9190    ## Report this to bug-autoconf@gnu.org. ##
9191    ## ------------------------------------ ##
9192    _ASBOX
9193        ) |
9194          sed "s/^/$as_me: WARNING:     /" >&2
9195        ;;
9196    esac
9197    echo "$as_me:$LINENO: checking for $ac_header" >&5
9198    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9199    if eval "test \"\${$as_ac_Header+set}\" = set"; then
9200      echo $ECHO_N "(cached) $ECHO_C" >&6
9201    else
9202      eval "$as_ac_Header=$ac_header_preproc"
9203    fi
9204    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9205    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9206    
9207    fi
9208    if test `eval echo '${'$as_ac_Header'}'` = yes; then
9209      cat >>confdefs.h <<_ACEOF
9210    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9211    _ACEOF
9212     cat >>confdefs.h <<\_ACEOF
9213  #define HAVE_FLOAT_H 1  #define HAVE_FLOAT_H 1
9214  EOF  _ACEOF
9215    
 else  
   echo "$ac_t""no" 1>&6  
9216  fi  fi
9217    
9218  done  done
9219    
9220    
# Line 4896  done Line 9223  done
9223  # a more comprehensive later, i.e. checking that the fpclass  # a more comprehensive later, i.e. checking that the fpclass
9224  # test makes sense.  CM  # test makes sense.  CM
9225  #  #
9226  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for isnormal" >&5
9227  echo "configure:4901: checking for isnormal" >&5  echo $ECHO_N "checking for isnormal... $ECHO_C" >&6
9228  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9229    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$as_me:$LINENO: result: no" >&5
9230    echo "${ECHO_T}no" >&6
9231  else  else
9232    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9233  #line 4906 "configure"  #line $LINENO "configure"
9234  #include "confdefs.h"  /* confdefs.h.  */
9235    _ACEOF
9236    cat confdefs.h >>conftest.$ac_ext
9237    cat >>conftest.$ac_ext <<_ACEOF
9238    /* end confdefs.h.  */
9239  #define _GNU_SOURCE  #define _GNU_SOURCE
9240              #include <math.h>              #include <math.h>
9241              int main() {              int main() {
9242                  float f;                  float f;
9243                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
9244                  }                  }
9245  EOF  _ACEOF
9246  if { (eval echo configure:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9247  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
9249      ac_status=$?
9250      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9252      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253      (eval $ac_try) 2>&5
9254      ac_status=$?
9255      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256      (exit $ac_status); }; }; then
9257      cat >>confdefs.h <<\_ACEOF
9258  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
9259  EOF  _ACEOF
9260   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
9261  else  echo "${ECHO_T}yes" >&6
9262    echo "configure: failed program was:" >&5  else
9263    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
9264    rm -fr conftest*  echo "$as_me: failed program was:" >&5
9265    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6  sed 's/^/| /' conftest.$ac_ext >&5
9266  echo "configure:4926: checking for fpclass in ieeefp.h" >&5  
9267    ( exit $ac_status )
9268    echo "$as_me:$LINENO: checking for fpclass in ieeefp.h" >&5
9269    echo $ECHO_N "checking for fpclass in ieeefp.h... $ECHO_C" >&6
9270                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
9271    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
9272    echo "${ECHO_T}no" >&6
9273  else  else
9274    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9275  #line 4931 "configure"  #line $LINENO "configure"
9276  #include "confdefs.h"  /* confdefs.h.  */
9277    _ACEOF
9278    cat confdefs.h >>conftest.$ac_ext
9279    cat >>conftest.$ac_ext <<_ACEOF
9280    /* end confdefs.h.  */
9281  #include <ieeefp.h>  #include <ieeefp.h>
9282                              int main() {                              int main() {
9283                                  float f;                                  float f;
9284                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
9285                                  }                                  }
9286  EOF  _ACEOF
9287  if { (eval echo configure:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9288  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9289    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
9290      ac_status=$?
9291      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9293      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294      (eval $ac_try) 2>&5
9295      ac_status=$?
9296      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297      (exit $ac_status); }; }; then
9298      cat >>confdefs.h <<\_ACEOF
9299  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
9300  EOF  _ACEOF
9301   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
9302    echo "${ECHO_T}yes" >&6
9303  else  else
9304    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9305    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9306    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9307    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6  
9308    ( exit $ac_status )
9309    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
9310    echo "${ECHO_T}no" >&6
9311  fi  fi
9312  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9313  fi  fi
9314    
           
9315  fi  fi
9316  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9317  fi  fi
9318    
9319    echo "$as_me:$LINENO: checking for isfinite" >&5
9320  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ECHO_N "checking for isfinite... $ECHO_C" >&6
 echo "configure:4961: checking for isfinite" >&5  
9321  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9322    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$as_me:$LINENO: result: no" >&5
9323    echo "${ECHO_T}no" >&6
9324  else  else
9325    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9326  #line 4966 "configure"  #line $LINENO "configure"
9327  #include "confdefs.h"  /* confdefs.h.  */
9328    _ACEOF
9329    cat confdefs.h >>conftest.$ac_ext
9330    cat >>conftest.$ac_ext <<_ACEOF
9331    /* end confdefs.h.  */
9332  #define _GNU_SOURCE  #define _GNU_SOURCE
9333              #include <math.h>              #include <math.h>
9334              int main() {              int main() {
9335                  float f;                  float f;
9336                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
9337                  }                  }
9338  EOF  _ACEOF
9339  if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9340  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9341    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
9342      ac_status=$?
9343      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9345      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346      (eval $ac_try) 2>&5
9347      ac_status=$?
9348      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349      (exit $ac_status); }; }; then
9350      cat >>confdefs.h <<\_ACEOF
9351  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
9352  EOF  _ACEOF
9353   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
9354  else  echo "${ECHO_T}yes" >&6
9355    echo "configure: failed program was:" >&5  else
9356    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
9357    rm -fr conftest*  echo "$as_me: failed program was:" >&5
9358    echo $ac_n "checking for finite()""... $ac_c" 1>&6  sed 's/^/| /' conftest.$ac_ext >&5
9359  echo "configure:4986: checking for finite()" >&5  
9360    ( exit $ac_status )
9361    echo "$as_me:$LINENO: checking for finite()" >&5
9362    echo $ECHO_N "checking for finite()... $ECHO_C" >&6
9363                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
9364    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
9365    echo "${ECHO_T}no" >&6
9366  else  else
9367    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9368  #line 4991 "configure"  #line $LINENO "configure"
9369  #include "confdefs.h"  /* confdefs.h.  */
9370    _ACEOF
9371    cat confdefs.h >>conftest.$ac_ext
9372    cat >>conftest.$ac_ext <<_ACEOF
9373    /* end confdefs.h.  */
9374  #include <math.h>  #include <math.h>
9375                              #include <ieeefp.h>                              #include <ieeefp.h>
9376                              int main() {                              int main() {
9377                                  float f;                                  float f;
9378                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
9379                                  }                                  }
9380  EOF  _ACEOF
9381  if { (eval echo configure:5000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9382  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
9384      ac_status=$?
9385      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9387      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388      (eval $ac_try) 2>&5
9389      ac_status=$?
9390      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391      (exit $ac_status); }; }; then
9392      cat >>confdefs.h <<\_ACEOF
9393  #define HAVE_FINITE 1  #define HAVE_FINITE 1
9394  EOF  _ACEOF
9395   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
9396    echo "${ECHO_T}yes" >&6
9397  else  else
9398    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9399    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9400    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9401    HAVE_FINITE=0 echo "$ac_t""no" 1>&6  
9402    ( exit $ac_status )
9403    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
9404    echo "${ECHO_T}no" >&6
9405  fi  fi
9406  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9407  fi  fi
9408    
           
9409  fi  fi
9410  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9411  fi  fi
9412    
9413    
9414    
   
9415  #--------------------------------------------------------------------  #--------------------------------------------------------------------
9416  #       Check for the existence of the -lsocket and -lnsl libraries.  #       Check for the existence of the -lsocket and -lnsl libraries.
9417  #       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 5036  fi Line 9429  fi
9429  #          To get around this problem, check for both libraries together  #          To get around this problem, check for both libraries together
9430  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
9431  #--------------------------------------------------------------------  #--------------------------------------------------------------------
9432  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sockets" >&5
9433  echo "configure:5041: checking for sockets" >&5  echo $ECHO_N "checking for sockets... $ECHO_C" >&6
9434  tcl_checkBoth=0  tcl_checkBoth=0
9435  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for connect" >&5
9436  echo "configure:5044: checking for connect" >&5  echo $ECHO_N "checking for connect... $ECHO_C" >&6
9437  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if test "${ac_cv_func_connect+set}" = set; then
9438    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9439  else  else
9440    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9441  #line 5049 "configure"  #line $LINENO "configure"
9442  #include "confdefs.h"  /* confdefs.h.  */
9443    _ACEOF
9444    cat confdefs.h >>conftest.$ac_ext
9445    cat >>conftest.$ac_ext <<_ACEOF
9446    /* end confdefs.h.  */
9447  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
9448      which can conflict with char connect(); below.  */      which can conflict with char connect (); below.  */
9449  #include <assert.h>  #include <assert.h>
9450  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
9451    #ifdef __cplusplus
9452    extern "C"
9453    {
9454    #endif
9455  /* 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
9456      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
9457  char connect();  char connect ();
   
 int main() {  
   
9458  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
9459      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
9460      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
9461  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
9462  choke me  choke me
9463  #else  #else
9464  connect();  char (*f) () = connect;
9465    #endif
9466    #ifdef __cplusplus
9467    }
9468  #endif  #endif
9469    
9470  ; return 0; }  int
9471  EOF  main ()
9472  if { (eval echo configure:5072: \"$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  
9473    
9474  if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then    ;
9475    echo "$ac_t""yes" 1>&6    return 0;
9476    }
9477    _ACEOF
9478    rm -f conftest.$ac_objext conftest$ac_exeext
9479    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9480      (eval $ac_link) 2>&5
9481      ac_status=$?
9482      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483      (exit $ac_status); } &&
9484             { ac_try='test -s conftest$ac_exeext'
9485      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486      (eval $ac_try) 2>&5
9487      ac_status=$?
9488      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489      (exit $ac_status); }; }; then
9490      ac_cv_func_connect=yes
9491    else
9492      echo "$as_me: failed program was:" >&5
9493    sed 's/^/| /' conftest.$ac_ext >&5
9494    
9495    ac_cv_func_connect=no
9496    fi
9497    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9498    fi
9499    echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9500    echo "${ECHO_T}$ac_cv_func_connect" >&6
9501    if test $ac_cv_func_connect = yes; then
9502    tcl_checkSocket=0    tcl_checkSocket=0
9503  else  else
9504    echo "$ac_t""no" 1>&6    tcl_checkSocket=1
 tcl_checkSocket=1  
9505  fi  fi
9506    
9507  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
9508      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for main in -lsocket" >&5
9509  echo "configure:5094: checking for main in -lsocket" >&5  echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
9510  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_main+set}" = set; then
9511  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  
9512  else  else
9513    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
9514  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
9515  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
9516  #line 5102 "configure"  #line $LINENO "configure"
9517  #include "confdefs.h"  /* confdefs.h.  */
9518    _ACEOF
9519    cat confdefs.h >>conftest.$ac_ext
9520    cat >>conftest.$ac_ext <<_ACEOF
9521    /* end confdefs.h.  */
9522    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:5109: \"$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"  
9523    
9524  fi  int
9525  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
9526    echo "$ac_t""yes" 1>&6  {
9527    main ();
9528      ;
9529      return 0;
9530    }
9531    _ACEOF
9532    rm -f conftest.$ac_objext conftest$ac_exeext
9533    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9534      (eval $ac_link) 2>&5
9535      ac_status=$?
9536      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537      (exit $ac_status); } &&
9538             { ac_try='test -s conftest$ac_exeext'
9539      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540      (eval $ac_try) 2>&5
9541      ac_status=$?
9542      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543      (exit $ac_status); }; }; then
9544      ac_cv_lib_socket_main=yes
9545    else
9546      echo "$as_me: failed program was:" >&5
9547    sed 's/^/| /' conftest.$ac_ext >&5
9548    
9549    ac_cv_lib_socket_main=no
9550    fi
9551    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9552    LIBS=$ac_check_lib_save_LIBS
9553    fi
9554    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
9555    echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
9556    if test $ac_cv_lib_socket_main = yes; then
9557    TLIBS="$TLIBS -lsocket"    TLIBS="$TLIBS -lsocket"
9558  else  else
9559    echo "$ac_t""no" 1>&6    tcl_checkBoth=1
 tcl_checkBoth=1  
9560  fi  fi
9561    
9562  fi  fi
# Line 5132  fi Line 9565  fi
9565  if test "$tcl_checkBoth" = 1; then  if test "$tcl_checkBoth" = 1; then
9566      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
9567      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
9568      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for accept" >&5
9569  echo "configure:5137: checking for accept" >&5  echo $ECHO_N "checking for accept... $ECHO_C" >&6
9570  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if test "${ac_cv_func_accept+set}" = set; then
9571    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9572  else  else
9573    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9574  #line 5142 "configure"  #line $LINENO "configure"
9575  #include "confdefs.h"  /* confdefs.h.  */
9576    _ACEOF
9577    cat confdefs.h >>conftest.$ac_ext
9578    cat >>conftest.$ac_ext <<_ACEOF
9579    /* end confdefs.h.  */
9580  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
9581      which can conflict with char accept(); below.  */      which can conflict with char accept (); below.  */
9582  #include <assert.h>  #include <assert.h>
9583  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
9584    #ifdef __cplusplus
9585    extern "C"
9586    {
9587    #endif
9588  /* 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
9589      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
9590  char accept();  char accept ();
   
 int main() {  
   
9591  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
9592      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
9593      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
9594  #if defined (__stub_accept) || defined (__stub___accept)  #if defined (__stub_accept) || defined (__stub___accept)
9595  choke me  choke me
9596  #else  #else
9597  accept();  char (*f) () = accept;
9598    #endif
9599    #ifdef __cplusplus
9600    }
9601  #endif  #endif
9602    
9603  ; return 0; }  int
9604  EOF  main ()
9605  if { (eval echo configure:5165: \"$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  
9606    
9607  if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then    ;
9608    echo "$ac_t""yes" 1>&6    return 0;
9609    }
9610    _ACEOF
9611    rm -f conftest.$ac_objext conftest$ac_exeext
9612    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9613      (eval $ac_link) 2>&5
9614      ac_status=$?
9615      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616      (exit $ac_status); } &&
9617             { ac_try='test -s conftest$ac_exeext'
9618      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619      (eval $ac_try) 2>&5
9620      ac_status=$?
9621      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622      (exit $ac_status); }; }; then
9623      ac_cv_func_accept=yes
9624    else
9625      echo "$as_me: failed program was:" >&5
9626    sed 's/^/| /' conftest.$ac_ext >&5
9627    
9628    ac_cv_func_accept=no
9629    fi
9630    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9631    fi
9632    echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
9633    echo "${ECHO_T}$ac_cv_func_accept" >&6
9634    if test $ac_cv_func_accept = yes; then
9635    tcl_checkNsl=0    tcl_checkNsl=0
9636  else  else
9637    echo "$ac_t""no" 1>&6    TLIBS=$tk_oldLibs
 TLIBS=$tk_oldLibs  
9638  fi  fi
9639    
9640  fi  fi
9641  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gethostbyname" >&5
9642  echo "configure:5187: checking for gethostbyname" >&5  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9643  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if test "${ac_cv_func_gethostbyname+set}" = set; then
9644    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9645  else  else
9646    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9647  #line 5192 "configure"  #line $LINENO "configure"
9648  #include "confdefs.h"  /* confdefs.h.  */
9649    _ACEOF
9650    cat confdefs.h >>conftest.$ac_ext
9651    cat >>conftest.$ac_ext <<_ACEOF
9652    /* end confdefs.h.  */
9653  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
9654      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname (); below.  */
9655  #include <assert.h>  #include <assert.h>
9656  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
9657    #ifdef __cplusplus
9658    extern "C"
9659    {
9660    #endif
9661  /* 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
9662      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
9663  char gethostbyname();  char gethostbyname ();
   
 int main() {  
   
9664  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
9665      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
9666      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
9667  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9668  choke me  choke me
9669  #else  #else
9670  gethostbyname();  char (*f) () = gethostbyname;
9671    #endif
9672    #ifdef __cplusplus
9673    }
9674  #endif  #endif
9675    
9676  ; return 0; }  int
9677  EOF  main ()
9678  if { (eval echo configure:5215: \"$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  
9679    
9680  if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then    ;
9681    echo "$ac_t""yes" 1>&6    return 0;
9682    }
9683    _ACEOF
9684    rm -f conftest.$ac_objext conftest$ac_exeext
9685    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686      (eval $ac_link) 2>&5
9687      ac_status=$?
9688      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689      (exit $ac_status); } &&
9690             { ac_try='test -s conftest$ac_exeext'
9691      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692      (eval $ac_try) 2>&5
9693      ac_status=$?
9694      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695      (exit $ac_status); }; }; then
9696      ac_cv_func_gethostbyname=yes
9697    else
9698      echo "$as_me: failed program was:" >&5
9699    sed 's/^/| /' conftest.$ac_ext >&5
9700    
9701    ac_cv_func_gethostbyname=no
9702    fi
9703    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9704    fi
9705    echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9706    echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9707    if test $ac_cv_func_gethostbyname = yes; then
9708    :    :
9709  else  else
9710    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for main in -lnsl" >&5
9711  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
9712  echo "configure:5233: checking for main in -lnsl" >&5  if test "${ac_cv_lib_nsl_main+set}" = set; then
9713  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  
9714  else  else
9715    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
9716  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
9717  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
9718  #line 5241 "configure"  #line $LINENO "configure"
9719  #include "confdefs.h"  /* confdefs.h.  */
9720    _ACEOF
9721    cat confdefs.h >>conftest.$ac_ext
9722    cat >>conftest.$ac_ext <<_ACEOF
9723    /* end confdefs.h.  */
9724    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:5248: \"$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"  
9725    
9726  fi  int
9727  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
9728    echo "$ac_t""yes" 1>&6  {
9729    main ();
9730      ;
9731      return 0;
9732    }
9733    _ACEOF
9734    rm -f conftest.$ac_objext conftest$ac_exeext
9735    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9736      (eval $ac_link) 2>&5
9737      ac_status=$?
9738      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739      (exit $ac_status); } &&
9740             { ac_try='test -s conftest$ac_exeext'
9741      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742      (eval $ac_try) 2>&5
9743      ac_status=$?
9744      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745      (exit $ac_status); }; }; then
9746      ac_cv_lib_nsl_main=yes
9747    else
9748      echo "$as_me: failed program was:" >&5
9749    sed 's/^/| /' conftest.$ac_ext >&5
9750    
9751    ac_cv_lib_nsl_main=no
9752    fi
9753    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9754    LIBS=$ac_check_lib_save_LIBS
9755    fi
9756    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
9757    echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
9758    if test $ac_cv_lib_nsl_main = yes; then
9759    TLIBS="$TLIBS -lnsl"    TLIBS="$TLIBS -lnsl"
 else  
   echo "$ac_t""no" 1>&6  
9760  fi  fi
9761    
9762  fi  fi
# Line 5270  fi Line 9765  fi
9765  RL_OBJS=""  RL_OBJS=""
9766  RL_LIB=""  RL_LIB=""
9767  if test "$enable_readline" = "yes" ; then  if test "$enable_readline" = "yes" ; then
9768          for ac_hdr in readline/readline.h  
9769    for ac_header in readline/readline.h
9770  do  do
9771  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9772  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9773  echo "configure:5278: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
9774  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9775    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9776  else    echo $ECHO_N "(cached) $ECHO_C" >&6
9777    cat > conftest.$ac_ext <<EOF  fi
9778  #line 5283 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9779  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9780  #include <$ac_hdr>  else
9781  EOF    # Is the header compilable?
9782  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
9783  { (eval echo configure:5288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9784  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
9785  if test -z "$ac_err"; then  #line $LINENO "configure"
9786    rm -rf conftest*  /* confdefs.h.  */
9787    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
9788  else  cat confdefs.h >>conftest.$ac_ext
9789    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
9790    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
9791    cat conftest.$ac_ext >&5  $ac_includes_default
9792    rm -rf conftest*  #include <$ac_header>
9793    eval "ac_cv_header_$ac_safe=no"  _ACEOF
9794  fi  rm -f conftest.$ac_objext
9795  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9796      (eval $ac_compile) 2>&5
9797      ac_status=$?
9798      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799      (exit $ac_status); } &&
9800             { ac_try='test -s conftest.$ac_objext'
9801      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802      (eval $ac_try) 2>&5
9803      ac_status=$?
9804      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805      (exit $ac_status); }; }; then
9806      ac_header_compiler=yes
9807    else
9808      echo "$as_me: failed program was:" >&5
9809    sed 's/^/| /' conftest.$ac_ext >&5
9810    
9811    ac_header_compiler=no
9812    fi
9813    rm -f conftest.$ac_objext conftest.$ac_ext
9814    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9815    echo "${ECHO_T}$ac_header_compiler" >&6
9816    
9817    # Is the header present?
9818    echo "$as_me:$LINENO: checking $ac_header presence" >&5
9819    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9820    cat >conftest.$ac_ext <<_ACEOF
9821    #line $LINENO "configure"
9822    /* confdefs.h.  */
9823    _ACEOF
9824    cat confdefs.h >>conftest.$ac_ext
9825    cat >>conftest.$ac_ext <<_ACEOF
9826    /* end confdefs.h.  */
9827    #include <$ac_header>
9828    _ACEOF
9829    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9830      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9831      ac_status=$?
9832      grep -v '^ *+' conftest.er1 >conftest.err
9833      rm -f conftest.er1
9834      cat conftest.err >&5
9835      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836      (exit $ac_status); } >/dev/null; then
9837      if test -s conftest.err; then
9838        ac_cpp_err=$ac_c_preproc_warn_flag
9839      else
9840        ac_cpp_err=
9841      fi
9842    else
9843      ac_cpp_err=yes
9844  fi  fi
9845  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
9846    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
9847      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
9848    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
9849  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
9850  EOF  
9851   echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6    ac_header_preproc=no
9852  echo "configure:5309: checking for main in -lreadline" >&5  fi
9853  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  rm -f conftest.err conftest.$ac_ext
9854  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9855    echo $ac_n "(cached) $ac_c" 1>&6  echo "${ECHO_T}$ac_header_preproc" >&6
9856    
9857    # So?  What about this header?
9858    case $ac_header_compiler:$ac_header_preproc in
9859      yes:no )
9860        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9861    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9862        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9863    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9864        (
9865          cat <<\_ASBOX
9866    ## ------------------------------------ ##
9867    ## Report this to bug-autoconf@gnu.org. ##
9868    ## ------------------------------------ ##
9869    _ASBOX
9870        ) |
9871          sed "s/^/$as_me: WARNING:     /" >&2
9872        ;;
9873      no:yes )
9874        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9875    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9876        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9877    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9878        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9879    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9880        (
9881          cat <<\_ASBOX
9882    ## ------------------------------------ ##
9883    ## Report this to bug-autoconf@gnu.org. ##
9884    ## ------------------------------------ ##
9885    _ASBOX
9886        ) |
9887          sed "s/^/$as_me: WARNING:     /" >&2
9888        ;;
9889    esac
9890    echo "$as_me:$LINENO: checking for $ac_header" >&5
9891    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9892    if eval "test \"\${$as_ac_Header+set}\" = set"; then
9893      echo $ECHO_N "(cached) $ECHO_C" >&6
9894    else
9895      eval "$as_ac_Header=$ac_header_preproc"
9896    fi
9897    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9898    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9899    
9900    fi
9901    if test `eval echo '${'$as_ac_Header'}'` = yes; then
9902      cat >>confdefs.h <<_ACEOF
9903    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9904    _ACEOF
9905     echo "$as_me:$LINENO: checking for main in -lreadline" >&5
9906    echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
9907    if test "${ac_cv_lib_readline_main+set}" = set; then
9908      echo $ECHO_N "(cached) $ECHO_C" >&6
9909  else  else
9910    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
9911  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
9912  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
9913  #line 5317 "configure"  #line $LINENO "configure"
9914  #include "confdefs.h"  /* confdefs.h.  */
9915    _ACEOF
9916    cat confdefs.h >>conftest.$ac_ext
9917    cat >>conftest.$ac_ext <<_ACEOF
9918    /* end confdefs.h.  */
9919    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:5324: \"$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"  
9920    
9921  fi  int
9922  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
9923    echo "$ac_t""yes" 1>&6  {
9924    cat >> confdefs.h <<\EOF  main ();
9925      ;
9926      return 0;
9927    }
9928    _ACEOF
9929    rm -f conftest.$ac_objext conftest$ac_exeext
9930    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9931      (eval $ac_link) 2>&5
9932      ac_status=$?
9933      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934      (exit $ac_status); } &&
9935             { ac_try='test -s conftest$ac_exeext'
9936      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937      (eval $ac_try) 2>&5
9938      ac_status=$?
9939      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940      (exit $ac_status); }; }; then
9941      ac_cv_lib_readline_main=yes
9942    else
9943      echo "$as_me: failed program was:" >&5
9944    sed 's/^/| /' conftest.$ac_ext >&5
9945    
9946    ac_cv_lib_readline_main=no
9947    fi
9948    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9949    LIBS=$ac_check_lib_save_LIBS
9950    fi
9951    echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
9952    echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
9953    if test $ac_cv_lib_readline_main = yes; then
9954      cat >>confdefs.h <<\_ACEOF
9955  #define HAVE_READLINE 1  #define HAVE_READLINE 1
9956  EOF  _ACEOF
9957    
9958                          TLIBS="$TLIBS -lreadline -lncurses"                          TLIBS="$TLIBS -lreadline -lncurses"
9959                          RL_OBJS=gcl_readline.o                          RL_OBJS=gcl_readline.o
9960  # Readline support now initialized automatically when compiled in, this lisp  # Readline support now initialized automatically when compiled in, this lisp
9961  # object no longer needed -- 20040102 CM  # object no longer needed -- 20040102 CM
9962  #                       RL_LIB=lsp/gcl_readline.o  #                       RL_LIB=lsp/gcl_readline.o
9963                            
 else  
   echo "$ac_t""no" 1>&6  
9964  fi  fi
9965    
 else  
   echo "$ac_t""no" 1>&6  
9966  fi  fi
9967    
9968  done  done
9969    
9970    
9971  # These tests discover differences between readline 4.1 and 4.3  # These tests discover differences between readline 4.1 and 4.3
9972          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
9973  echo "configure:5361: checking for rl_completion_matches in -lreadline" >&5  echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
9974  ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
9975  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  
9976  else  else
9977    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
9978  LIBS="-lreadline  $LIBS"  LIBS="-lreadline  $LIBS"
9979  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
9980  #line 5369 "configure"  #line $LINENO "configure"
9981  #include "confdefs.h"  /* confdefs.h.  */
9982    _ACEOF
9983    cat confdefs.h >>conftest.$ac_ext
9984    cat >>conftest.$ac_ext <<_ACEOF
9985    /* end confdefs.h.  */
9986    
9987  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
9988    #ifdef __cplusplus
9989    extern "C"
9990    #endif
9991  /* 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
9992      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
9993  char rl_completion_matches();  char rl_completion_matches ();
9994    int
9995  int main() {  main ()
9996  rl_completion_matches()  {
9997  ; return 0; }  rl_completion_matches ();
9998  EOF    ;
9999  if { (eval echo configure:5380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
10000    rm -rf conftest*  }
10001    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
10002  else  rm -f conftest.$ac_objext conftest$ac_exeext
10003    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
10005    rm -rf conftest*    ac_status=$?
10006    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007  fi    (exit $ac_status); } &&
10008  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
10009  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010      (eval $ac_try) 2>&5
10011  fi    ac_status=$?
10012  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
10014    cat >> confdefs.h <<\EOF    ac_cv_lib_readline_rl_completion_matches=yes
10015    else
10016      echo "$as_me: failed program was:" >&5
10017    sed 's/^/| /' conftest.$ac_ext >&5
10018    
10019    ac_cv_lib_readline_rl_completion_matches=no
10020    fi
10021    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10022    LIBS=$ac_check_lib_save_LIBS
10023    fi
10024    echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
10025    echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
10026    if test $ac_cv_lib_readline_rl_completion_matches = yes; then
10027      cat >>confdefs.h <<\_ACEOF
10028  #define HAVE_DECL_RL_COMPLETION_MATCHES 1  #define HAVE_DECL_RL_COMPLETION_MATCHES 1
10029  EOF  _ACEOF
10030    
10031                          cat >> confdefs.h <<\EOF                          cat >>confdefs.h <<\_ACEOF
10032  #define HAVE_RL_COMPENTRY_FUNC_T 1  #define HAVE_RL_COMPENTRY_FUNC_T 1
10033  EOF  _ACEOF
10034    
 else  
   echo "$ac_t""no" 1>&6  
10035  fi  fi
10036    
10037  fi  fi
# Line 5408  fi Line 10039  fi
10039    
10040    
10041    
10042  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
10043  echo "configure:5413: checking For network code for nsocket.c" >&5  echo $ECHO_N "checking For network code for nsocket.c... $ECHO_C" >&6
10044  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
10045  #line 5415 "configure"  #line $LINENO "configure"
10046  #include "confdefs.h"  /* confdefs.h.  */
10047    _ACEOF
10048    cat confdefs.h >>conftest.$ac_ext
10049    cat >>conftest.$ac_ext <<_ACEOF
10050    /* end confdefs.h.  */
10051    
10052  #include <sys/time.h>  #include <sys/time.h>
10053  #include <sys/types.h>  #include <sys/types.h>
# Line 5422  cat > conftest.$ac_ext <<EOF Line 10057  cat > conftest.$ac_ext <<EOF
10057  #include <fcntl.h>  #include <fcntl.h>
10058  #include <stdio.h>  #include <stdio.h>
10059    
10060  /************* for the sockets ******************/  /************* for the sockets ******************/
10061  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */
10062  #ifndef NO_UNAME  #ifndef NO_UNAME
10063  #   include <sys/utsname.h>     /* uname system call. */  #   include <sys/utsname.h>     /* uname system call. */
# Line 5431  cat > conftest.$ac_ext <<EOF Line 10066  cat > conftest.$ac_ext <<EOF
10066  #include <arpa/inet.h>          /* inet_ntoa() */  #include <arpa/inet.h>          /* inet_ntoa() */
10067  #include <netdb.h>              /* gethostbyname() */  #include <netdb.h>              /* gethostbyname() */
10068    
10069  int main() {  int
10070    main ()
10071    {
10072   connect(0,(struct sockaddr *)0,0);   connect(0,(struct sockaddr *)0,0);
10073      gethostbyname("jil");      gethostbyname("jil");
10074      socket(AF_INET, SOCK_STREAM, 0);      socket(AF_INET, SOCK_STREAM, 0);
10075            
10076  ; return 0; }    ;
10077  EOF    return 0;
10078  if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
10079    rm -rf conftest*  _ACEOF
10080    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext conftest$ac_exeext
10081    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082      (eval $ac_link) 2>&5
10083      ac_status=$?
10084      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085      (exit $ac_status); } &&
10086             { ac_try='test -s conftest$ac_exeext'
10087      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088      (eval $ac_try) 2>&5
10089      ac_status=$?
10090      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091      (exit $ac_status); }; }; then
10092      cat >>confdefs.h <<\_ACEOF
10093  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
10094  EOF  _ACEOF
10095    
10096   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
10097    echo "${ECHO_T}yes" >&6
10098  else  else
10099    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
10100    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
10101    rm -rf conftest*  
10102    echo "$ac_t""no" 1>&6  echo "$as_me:$LINENO: result: no" >&5
10103    echo "${ECHO_T}no" >&6
10104  fi  fi
10105  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10106    
10107    
10108  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for listen using fcntl" >&5
10109  echo "configure:5459: checking check for listen using fcntl" >&5  echo $ECHO_N "checking check for listen using fcntl... $ECHO_C" >&6
10110  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
10111  #line 5461 "configure"  #line $LINENO "configure"
10112  #include "confdefs.h"  /* confdefs.h.  */
10113    _ACEOF
10114    cat confdefs.h >>conftest.$ac_ext
10115    cat >>conftest.$ac_ext <<_ACEOF
10116    /* end confdefs.h.  */
10117  #include <stdio.h>  #include <stdio.h>
10118  #include <fcntl.h>  #include <fcntl.h>
10119    
10120  int main() {  int
10121    main ()
10122    {
10123  FILE *fp=fopen("configure.in","r");  FILE *fp=fopen("configure.in","r");
10124    int orig;    int orig;
10125    orig = fcntl(fileno(fp), F_GETFL);    orig = fcntl(fileno(fp), F_GETFL);
10126    if (! (orig & O_NONBLOCK )) return 0;    if (! (orig & O_NONBLOCK )) return 0;
10127    
10128  ; return 0; }    ;
10129  EOF    return 0;
10130  if { (eval echo configure:5474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
10131    rm -rf conftest*  _ACEOF
10132    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
10133    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10134      (eval $ac_compile) 2>&5
10135      ac_status=$?
10136      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137      (exit $ac_status); } &&
10138             { ac_try='test -s conftest.$ac_objext'
10139      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140      (eval $ac_try) 2>&5
10141      ac_status=$?
10142      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143      (exit $ac_status); }; }; then
10144      cat >>confdefs.h <<\_ACEOF
10145  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
10146  EOF  _ACEOF
10147    
10148   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
10149    echo "${ECHO_T}yes" >&6
10150  else  else
10151    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
10152    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
10153    rm -rf conftest*  
10154    echo "$ac_t""no" 1>&6  echo "$as_me:$LINENO: result: no" >&5
10155    echo "${ECHO_T}no" >&6
10156  fi  fi
10157  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
10158    
10159    
10160    
10161    
10162  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for profil" >&5
10163  echo "configure:5493: checking for profil" >&5  echo $ECHO_N "checking for profil... $ECHO_C" >&6
10164  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if test "${ac_cv_func_profil+set}" = set; then
10165    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10166  else  else
10167    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10168  #line 5498 "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  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10175      which can conflict with char profil(); below.  */      which can conflict with char profil (); below.  */
10176  #include <assert.h>  #include <assert.h>
10177  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
10178    #ifdef __cplusplus
10179    extern "C"
10180    {
10181    #endif
10182  /* 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
10183      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
10184  char profil();  char profil ();
   
 int main() {  
   
10185  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
10186      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
10187      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
10188  #if defined (__stub_profil) || defined (__stub___profil)  #if defined (__stub_profil) || defined (__stub___profil)
10189  choke me  choke me
10190  #else  #else
10191  profil();  char (*f) () = profil;
10192    #endif
10193    #ifdef __cplusplus
10194    }
10195  #endif  #endif
10196    
10197  ; return 0; }  int
10198  EOF  main ()
10199  if { (eval echo configure:5521: \"$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  
10200    
10201  if eval "test \"`echo '$ac_cv_func_'profil`\" = yes"; then    ;
10202    echo "$ac_t""yes" 1>&6    return 0;
10203    }
10204    _ACEOF
10205    rm -f conftest.$ac_objext conftest$ac_exeext
10206    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10207      (eval $ac_link) 2>&5
10208      ac_status=$?
10209      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210      (exit $ac_status); } &&
10211             { ac_try='test -s conftest$ac_exeext'
10212      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213      (eval $ac_try) 2>&5
10214      ac_status=$?
10215      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216      (exit $ac_status); }; }; then
10217      ac_cv_func_profil=yes
10218    else
10219      echo "$as_me: failed program was:" >&5
10220    sed 's/^/| /' conftest.$ac_ext >&5
10221    
10222    ac_cv_func_profil=no
10223    fi
10224    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10225    fi
10226    echo "$as_me:$LINENO: result: $ac_cv_func_profil" >&5
10227    echo "${ECHO_T}$ac_cv_func_profil" >&6
10228    if test $ac_cv_func_profil = yes; then
10229    :    :
10230  else  else
10231    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
10232  #define NO_PROFILE 1  #define NO_PROFILE 1
10233  EOF  _ACEOF
10234    
10235  fi  fi
10236    
10237    
10238  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for setenv" >&5
10239  echo "configure:5546: checking for setenv" >&5  echo $ECHO_N "checking for setenv... $ECHO_C" >&6
10240  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if test "${ac_cv_func_setenv+set}" = set; then
10241    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10242  else  else
10243    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10244  #line 5551 "configure"  #line $LINENO "configure"
10245  #include "confdefs.h"  /* confdefs.h.  */
10246    _ACEOF
10247    cat confdefs.h >>conftest.$ac_ext
10248    cat >>conftest.$ac_ext <<_ACEOF
10249    /* end confdefs.h.  */
10250  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10251      which can conflict with char setenv(); below.  */      which can conflict with char setenv (); below.  */
10252  #include <assert.h>  #include <assert.h>
10253  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
10254    #ifdef __cplusplus
10255    extern "C"
10256    {
10257    #endif
10258  /* 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
10259      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
10260  char setenv();  char setenv ();
   
 int main() {  
   
10261  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
10262      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
10263      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
10264  #if defined (__stub_setenv) || defined (__stub___setenv)  #if defined (__stub_setenv) || defined (__stub___setenv)
10265  choke me  choke me
10266  #else  #else
10267  setenv();  char (*f) () = setenv;
10268    #endif
10269    #ifdef __cplusplus
10270    }
10271  #endif  #endif
10272    
10273  ; return 0; }  int
10274  EOF  main ()
10275  if { (eval echo configure:5574: \"$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  
10276    
10277  if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then    ;
10278    echo "$ac_t""yes" 1>&6    return 0;
10279    cat >> confdefs.h <<\EOF  }
10280    _ACEOF
10281    rm -f conftest.$ac_objext conftest$ac_exeext
10282    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283      (eval $ac_link) 2>&5
10284      ac_status=$?
10285      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286      (exit $ac_status); } &&
10287             { ac_try='test -s conftest$ac_exeext'
10288      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289      (eval $ac_try) 2>&5
10290      ac_status=$?
10291      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292      (exit $ac_status); }; }; then
10293      ac_cv_func_setenv=yes
10294    else
10295      echo "$as_me: failed program was:" >&5
10296    sed 's/^/| /' conftest.$ac_ext >&5
10297    
10298    ac_cv_func_setenv=no
10299    fi
10300    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10301    fi
10302    echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
10303    echo "${ECHO_T}$ac_cv_func_setenv" >&6
10304    if test $ac_cv_func_setenv = yes; then
10305      cat >>confdefs.h <<\_ACEOF
10306  #define HAVE_SETENV 1  #define HAVE_SETENV 1
10307  EOF  _ACEOF
10308    
10309  else  else
10310    echo "$ac_t""no" 1>&6    no_setenv=1
 no_setenv=1  
10311  fi  fi
10312    
10313    
10314  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
10315  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for putenv" >&5
10316  echo "configure:5600: checking for putenv" >&5  echo $ECHO_N "checking for putenv... $ECHO_C" >&6
10317  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if test "${ac_cv_func_putenv+set}" = set; then
10318    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10319  else  else
10320    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10321  #line 5605 "configure"  #line $LINENO "configure"
10322  #include "confdefs.h"  /* confdefs.h.  */
10323    _ACEOF
10324    cat confdefs.h >>conftest.$ac_ext
10325    cat >>conftest.$ac_ext <<_ACEOF
10326    /* end confdefs.h.  */
10327  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10328      which can conflict with char putenv(); below.  */      which can conflict with char putenv (); below.  */
10329  #include <assert.h>  #include <assert.h>
10330  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
10331    #ifdef __cplusplus
10332    extern "C"
10333    {
10334    #endif
10335  /* 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
10336      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
10337  char putenv();  char putenv ();
   
 int main() {  
   
10338  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
10339      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
10340      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
10341  #if defined (__stub_putenv) || defined (__stub___putenv)  #if defined (__stub_putenv) || defined (__stub___putenv)
10342  choke me  choke me
10343  #else  #else
10344  putenv();  char (*f) () = putenv;
10345    #endif
10346    #ifdef __cplusplus
10347    }
10348  #endif  #endif
10349    
10350  ; return 0; }  int
10351  EOF  main ()
10352  if { (eval echo configure:5628: \"$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  
10353    
10354  if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then    ;
10355    echo "$ac_t""yes" 1>&6    return 0;
10356    cat >> confdefs.h <<\EOF  }
10357    _ACEOF
10358    rm -f conftest.$ac_objext conftest$ac_exeext
10359    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10360      (eval $ac_link) 2>&5
10361      ac_status=$?
10362      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363      (exit $ac_status); } &&
10364             { ac_try='test -s conftest$ac_exeext'
10365      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366      (eval $ac_try) 2>&5
10367      ac_status=$?
10368      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369      (exit $ac_status); }; }; then
10370      ac_cv_func_putenv=yes
10371    else
10372      echo "$as_me: failed program was:" >&5
10373    sed 's/^/| /' conftest.$ac_ext >&5
10374    
10375    ac_cv_func_putenv=no
10376    fi
10377    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10378    fi
10379    echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
10380    echo "${ECHO_T}$ac_cv_func_putenv" >&6
10381    if test $ac_cv_func_putenv = yes; then
10382      cat >>confdefs.h <<\_ACEOF
10383  #define HAVE_PUTENV 1  #define HAVE_PUTENV 1
10384  EOF  _ACEOF
10385    
 else  
   echo "$ac_t""no" 1>&6  
10386  fi  fi
10387    
10388    
10389  fi  fi
10390    
10391  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for _cleanup" >&5
10392  echo "configure:5654: checking for _cleanup" >&5  echo $ECHO_N "checking for _cleanup... $ECHO_C" >&6
10393  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if test "${ac_cv_func__cleanup+set}" = set; then
10394    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10395  else  else
10396    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10397  #line 5659 "configure"  #line $LINENO "configure"
10398  #include "confdefs.h"  /* confdefs.h.  */
10399    _ACEOF
10400    cat confdefs.h >>conftest.$ac_ext
10401    cat >>conftest.$ac_ext <<_ACEOF
10402    /* end confdefs.h.  */
10403  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10404      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup (); below.  */
10405  #include <assert.h>  #include <assert.h>
10406  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
10407    #ifdef __cplusplus
10408    extern "C"
10409    {
10410    #endif
10411  /* 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
10412      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
10413  char _cleanup();  char _cleanup ();
   
 int main() {  
   
10414  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
10415      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
10416      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
10417  #if defined (__stub__cleanup) || defined (__stub____cleanup)  #if defined (__stub__cleanup) || defined (__stub____cleanup)
10418  choke me  choke me
10419  #else  #else
10420  _cleanup();  char (*f) () = _cleanup;
10421    #endif
10422    #ifdef __cplusplus
10423    }
10424  #endif  #endif
10425    
10426  ; return 0; }  int
10427  EOF  main ()
10428  if { (eval echo configure:5682: \"$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  
10429    
10430  if eval "test \"`echo '$ac_cv_func_'_cleanup`\" = yes"; then    ;
10431    echo "$ac_t""yes" 1>&6    return 0;
10432    cat >> confdefs.h <<\EOF  }
10433    _ACEOF
10434    rm -f conftest.$ac_objext conftest$ac_exeext
10435    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10436      (eval $ac_link) 2>&5
10437      ac_status=$?
10438      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439      (exit $ac_status); } &&
10440             { ac_try='test -s conftest$ac_exeext'
10441      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442      (eval $ac_try) 2>&5
10443      ac_status=$?
10444      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445      (exit $ac_status); }; }; then
10446      ac_cv_func__cleanup=yes
10447    else
10448      echo "$as_me: failed program was:" >&5
10449    sed 's/^/| /' conftest.$ac_ext >&5
10450    
10451    ac_cv_func__cleanup=no
10452    fi
10453    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10454    fi
10455    echo "$as_me:$LINENO: result: $ac_cv_func__cleanup" >&5
10456    echo "${ECHO_T}$ac_cv_func__cleanup" >&6
10457    if test $ac_cv_func__cleanup = yes; then
10458      cat >>confdefs.h <<\_ACEOF
10459  #define USE_CLEANUP 1  #define USE_CLEANUP 1
10460  EOF  _ACEOF
10461    
 else  
   echo "$ac_t""no" 1>&6  
10462  fi  fi
10463    
10464    
10465  gcl_ok=no  gcl_ok=no
10466    
10467  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
10468  #line 5708 "configure"  #line $LINENO "configure"
10469  #include "confdefs.h"  /* confdefs.h.  */
10470    _ACEOF
10471    cat confdefs.h >>conftest.$ac_ext
10472    cat >>conftest.$ac_ext <<_ACEOF
10473    /* end confdefs.h.  */
10474  #include <ctype.h>  #include <ctype.h>
10475  EOF  
10476    _ACEOF
10477  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10478    egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then    $EGREP "LITTLE_ENDIAN" >/dev/null 2>&1; then
   rm -rf conftest*  
10479    gcl_ok=yes    gcl_ok=yes
10480  else  else
   rm -rf conftest*  
10481    gcl_ok=noo    gcl_ok=noo
10482  fi  fi
10483  rm -f conftest*  rm -f conftest*
10484    
10485  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
10486  cat >> confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
10487  #define ENDIAN_ALREADY_DEFINED 1  #define ENDIAN_ALREADY_DEFINED 1
10488  EOF  _ACEOF
10489    
10490  fi  fi
10491    
# Line 5731  fi Line 10495  fi
10495    
10496    
10497  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
10498  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
10499  echo "configure:5736: 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
10500    
10501  case $system in  case $system in
10502         OSF*)         OSF*)
10503          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
10504  #define USE_FIONBIO 1  #define USE_FIONBIO 1
10505  EOF  _ACEOF
10506    
10507          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
10508    echo "${ECHO_T}FIONBIO" >&6
10509          ;;          ;;
10510      SunOS-4*)      SunOS-4*)
10511          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
10512  #define USE_FIONBIO 1  #define USE_FIONBIO 1
10513  EOF  _ACEOF
10514    
10515          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
10516    echo "${ECHO_T}FIONBIO" >&6
10517          ;;          ;;
10518      ULTRIX-4.*)      ULTRIX-4.*)
10519          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
10520  #define USE_FIONBIO 1  #define USE_FIONBIO 1
10521  EOF  _ACEOF
10522    
10523          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
10524    echo "${ECHO_T}FIONBIO" >&6
10525          ;;          ;;
10526      *)      *)
10527          echo "$ac_t""O_NONBLOCK" 1>&6          echo "$as_me:$LINENO: result: O_NONBLOCK" >&5
10528    echo "${ECHO_T}O_NONBLOCK" >&6
10529          ;;          ;;
10530  esac  esac
10531    
10532    
10533  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SV_ONSTACK" >&5
10534  echo "configure:5767: checking check for SV_ONSTACK" >&5  echo $ECHO_N "checking check for SV_ONSTACK... $ECHO_C" >&6
10535  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
10536  #line 5769 "configure"  #line $LINENO "configure"
10537  #include "confdefs.h"  /* confdefs.h.  */
10538    _ACEOF
10539    cat confdefs.h >>conftest.$ac_ext
10540    cat >>conftest.$ac_ext <<_ACEOF
10541    /* end confdefs.h.  */
10542  #include <signal.h>  #include <signal.h>
10543  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
10544    
10545  int main() {  int
10546    main ()
10547    {
10548    
10549  ; return 0; }    ;
10550  EOF    return 0;
10551  if { (eval echo configure:5778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
10552    rm -rf conftest*  _ACEOF
10553    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
10554    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10555      (eval $ac_compile) 2>&5
10556      ac_status=$?
10557      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558      (exit $ac_status); } &&
10559             { ac_try='test -s conftest.$ac_objext'
10560      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561      (eval $ac_try) 2>&5
10562      ac_status=$?
10563      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564      (exit $ac_status); }; }; then
10565      cat >>confdefs.h <<\_ACEOF
10566  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
10567  EOF  _ACEOF
10568    
10569    
10570   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
10571    echo "${ECHO_T}yes" >&6
10572  else  else
10573    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
10574    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
10575    rm -rf conftest*  
10576    echo "$ac_t""no" 1>&6  echo "$as_me:$LINENO: result: no" >&5
10577    echo "${ECHO_T}no" >&6
10578  fi  fi
10579  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
10580    
10581  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGSYS" >&5
10582  echo "configure:5795: checking check for SIGSYS" >&5  echo $ECHO_N "checking check for SIGSYS... $ECHO_C" >&6
10583  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
10584  #line 5797 "configure"  #line $LINENO "configure"
10585  #include "confdefs.h"  /* confdefs.h.  */
10586    _ACEOF
10587    cat confdefs.h >>conftest.$ac_ext
10588    cat >>conftest.$ac_ext <<_ACEOF
10589    /* end confdefs.h.  */
10590  #include <signal.h>  #include <signal.h>
10591  int joe=SIGSYS;  int joe=SIGSYS;
10592    
10593  int main() {  int
10594    main ()
10595    {
10596    
10597  ; return 0; }    ;
10598  EOF    return 0;
10599  if { (eval echo configure:5806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
10600    rm -rf conftest*  _ACEOF
10601    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
10602    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10603      (eval $ac_compile) 2>&5
10604      ac_status=$?
10605      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606      (exit $ac_status); } &&
10607             { ac_try='test -s conftest.$ac_objext'
10608      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609      (eval $ac_try) 2>&5
10610      ac_status=$?
10611      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612      (exit $ac_status); }; }; then
10613      cat >>confdefs.h <<\_ACEOF
10614  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
10615  EOF  _ACEOF
10616    
10617    
10618     echo "$as_me:$LINENO: result: yes" >&5
10619   echo "$ac_t""yes" 1>&6  echo "${ECHO_T}yes" >&6
10620  else  else
10621    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
10622    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
10623    rm -rf conftest*  
10624    echo "$ac_t""no" 1>&6  echo "$as_me:$LINENO: result: no" >&5
10625    echo "${ECHO_T}no" >&6
10626  fi  fi
10627  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
10628    
10629    
10630  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGEMT" >&5
10631  echo "configure:5824: checking check for SIGEMT" >&5  echo $ECHO_N "checking check for SIGEMT... $ECHO_C" >&6
10632  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
10633  #line 5826 "configure"  #line $LINENO "configure"
10634  #include "confdefs.h"  /* confdefs.h.  */
10635    _ACEOF
10636    cat confdefs.h >>conftest.$ac_ext
10637    cat >>conftest.$ac_ext <<_ACEOF
10638    /* end confdefs.h.  */
10639  #include <signal.h>  #include <signal.h>
10640  int joe=SIGEMT;  int joe=SIGEMT;
10641    
10642  int main() {  int
10643    main ()
10644    {
10645    
10646  ; return 0; }    ;
10647  EOF    return 0;
10648  if { (eval echo configure:5835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
10649    rm -rf conftest*  _ACEOF
10650    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
10651    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10652      (eval $ac_compile) 2>&5
10653      ac_status=$?
10654      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655      (exit $ac_status); } &&
10656             { ac_try='test -s conftest.$ac_objext'
10657      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658      (eval $ac_try) 2>&5
10659      ac_status=$?
10660      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661      (exit $ac_status); }; }; then
10662      cat >>confdefs.h <<\_ACEOF
10663  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
10664  EOF  _ACEOF
10665    
10666    
10667   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
10668    echo "${ECHO_T}yes" >&6
10669  else  else
10670    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
10671    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
10672    rm -rf conftest*  
10673    echo "$ac_t""no" 1>&6  echo "$as_me:$LINENO: result: no" >&5
10674    echo "${ECHO_T}no" >&6
10675  fi  fi
10676  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
10677    
10678    
10679    
10680    
10681  #if test $use = "386-linux" ; then  #if test $use = "386-linux" ; then
10682          for ac_hdr in asm/sigcontext.h  
10683    for ac_header in asm/sigcontext.h
10684  do  do
10685  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10686  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
10687  echo "configure:5859: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
10688  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10689    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
10690  else    echo $ECHO_N "(cached) $ECHO_C" >&6
10691    cat > conftest.$ac_ext <<EOF  fi
10692  #line 5864 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10693  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10694  #include <$ac_hdr>  else
10695  EOF    # Is the header compilable?
10696  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
10697  { (eval echo configure:5869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10698  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
10699  if test -z "$ac_err"; then  #line $LINENO "configure"
10700    rm -rf conftest*  /* confdefs.h.  */
10701    eval "ac_cv_header_$ac_safe=yes"  _ACEOF
10702  else  cat confdefs.h >>conftest.$ac_ext
10703    echo "$ac_err" >&5  cat >>conftest.$ac_ext <<_ACEOF
10704    echo "configure: failed program was:" >&5  /* end confdefs.h.  */
10705    cat conftest.$ac_ext >&5  $ac_includes_default
10706    rm -rf conftest*  #include <$ac_header>
10707    eval "ac_cv_header_$ac_safe=no"  _ACEOF
10708  fi  rm -f conftest.$ac_objext
10709  rm -f conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710      (eval $ac_compile) 2>&5
10711      ac_status=$?
10712      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713      (exit $ac_status); } &&
10714             { ac_try='test -s conftest.$ac_objext'
10715      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716      (eval $ac_try) 2>&5
10717      ac_status=$?
10718      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719      (exit $ac_status); }; }; then
10720      ac_header_compiler=yes
10721    else
10722      echo "$as_me: failed program was:" >&5
10723    sed 's/^/| /' conftest.$ac_ext >&5
10724    
10725    ac_header_compiler=no
10726    fi
10727    rm -f conftest.$ac_objext conftest.$ac_ext
10728    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10729    echo "${ECHO_T}$ac_header_compiler" >&6
10730    
10731    # Is the header present?
10732    echo "$as_me:$LINENO: checking $ac_header presence" >&5
10733    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10734    cat >conftest.$ac_ext <<_ACEOF
10735    #line $LINENO "configure"
10736    /* confdefs.h.  */
10737    _ACEOF
10738    cat confdefs.h >>conftest.$ac_ext
10739    cat >>conftest.$ac_ext <<_ACEOF
10740    /* end confdefs.h.  */
10741    #include <$ac_header>
10742    _ACEOF
10743    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10744      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10745      ac_status=$?
10746      grep -v '^ *+' conftest.er1 >conftest.err
10747      rm -f conftest.er1
10748      cat conftest.err >&5
10749      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750      (exit $ac_status); } >/dev/null; then
10751      if test -s conftest.err; then
10752        ac_cpp_err=$ac_c_preproc_warn_flag
10753      else
10754        ac_cpp_err=
10755      fi
10756    else
10757      ac_cpp_err=yes
10758  fi  fi
10759  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
10760    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
10761      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
10762    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
10763  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
10764  EOF  
10765      ac_header_preproc=no
10766    fi
10767    rm -f conftest.err conftest.$ac_ext
10768    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10769    echo "${ECHO_T}$ac_header_preproc" >&6
10770    
10771    # So?  What about this header?
10772    case $ac_header_compiler:$ac_header_preproc in
10773      yes:no )
10774        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10775    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10776        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10777    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10778        (
10779          cat <<\_ASBOX
10780    ## ------------------------------------ ##
10781    ## Report this to bug-autoconf@gnu.org. ##
10782    ## ------------------------------------ ##
10783    _ASBOX
10784        ) |
10785          sed "s/^/$as_me: WARNING:     /" >&2
10786        ;;
10787      no:yes )
10788        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10789    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10790        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10791    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10792        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10793    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10794        (
10795          cat <<\_ASBOX
10796    ## ------------------------------------ ##
10797    ## Report this to bug-autoconf@gnu.org. ##
10798    ## ------------------------------------ ##
10799    _ASBOX
10800        ) |
10801          sed "s/^/$as_me: WARNING:     /" >&2
10802        ;;
10803    esac
10804    echo "$as_me:$LINENO: checking for $ac_header" >&5
10805    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10806    if eval "test \"\${$as_ac_Header+set}\" = set"; then
10807      echo $ECHO_N "(cached) $ECHO_C" >&6
10808  else  else
10809    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
10810    fi
10811    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10812    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10813    
10814  fi  fi
10815    if test `eval echo '${'$as_ac_Header'}'` = yes; then
10816      cat >>confdefs.h <<_ACEOF
10817    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10818    _ACEOF
10819    
10820    fi
10821    
10822  done  done
10823    
10824          for ac_hdr in asm/signal.h  
10825    for ac_header in asm/signal.h
10826  do  do
10827  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10828  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
10829  echo "configure:5899: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
10830  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10831    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
10832      echo $ECHO_N "(cached) $ECHO_C" >&6
10833    fi
10834    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10835    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10836    else
10837      # Is the header compilable?
10838    echo "$as_me:$LINENO: checking $ac_header usability" >&5
10839    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10840    cat >conftest.$ac_ext <<_ACEOF
10841    #line $LINENO "configure"
10842    /* confdefs.h.  */
10843    _ACEOF
10844    cat confdefs.h >>conftest.$ac_ext
10845    cat >>conftest.$ac_ext <<_ACEOF
10846    /* end confdefs.h.  */
10847    $ac_includes_default
10848    #include <$ac_header>
10849    _ACEOF
10850    rm -f conftest.$ac_objext
10851    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10852      (eval $ac_compile) 2>&5
10853      ac_status=$?
10854      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855      (exit $ac_status); } &&
10856             { ac_try='test -s conftest.$ac_objext'
10857      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858      (eval $ac_try) 2>&5
10859      ac_status=$?
10860      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861      (exit $ac_status); }; }; then
10862      ac_header_compiler=yes
10863    else
10864      echo "$as_me: failed program was:" >&5
10865    sed 's/^/| /' conftest.$ac_ext >&5
10866    
10867    ac_header_compiler=no
10868    fi
10869    rm -f conftest.$ac_objext conftest.$ac_ext
10870    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10871    echo "${ECHO_T}$ac_header_compiler" >&6
10872    
10873    # Is the header present?
10874    echo "$as_me:$LINENO: checking $ac_header presence" >&5
10875    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10876    cat >conftest.$ac_ext <<_ACEOF
10877    #line $LINENO "configure"
10878    /* confdefs.h.  */
10879    _ACEOF
10880    cat confdefs.h >>conftest.$ac_ext
10881    cat >>conftest.$ac_ext <<_ACEOF
10882    /* end confdefs.h.  */
10883    #include <$ac_header>
10884    _ACEOF
10885    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10886      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10887      ac_status=$?
10888      grep -v '^ *+' conftest.er1 >conftest.err
10889      rm -f conftest.er1
10890      cat conftest.err >&5
10891      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892      (exit $ac_status); } >/dev/null; then
10893      if test -s conftest.err; then
10894        ac_cpp_err=$ac_c_preproc_warn_flag
10895      else
10896        ac_cpp_err=
10897      fi
10898  else  else
10899    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
 #line 5904 "configure"  
 #include "confdefs.h"  
 #include <$ac_hdr>  
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:5909: \"$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*  
10900  fi  fi
10901  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
10902    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
10903      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
10904    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
10905  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
10906  EOF  
10907      ac_header_preproc=no
10908    fi
10909    rm -f conftest.err conftest.$ac_ext
10910    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10911    echo "${ECHO_T}$ac_header_preproc" >&6
10912    
10913    # So?  What about this header?
10914    case $ac_header_compiler:$ac_header_preproc in
10915      yes:no )
10916        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10917    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10918        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10919    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10920        (
10921          cat <<\_ASBOX
10922    ## ------------------------------------ ##
10923    ## Report this to bug-autoconf@gnu.org. ##
10924    ## ------------------------------------ ##
10925    _ASBOX
10926        ) |
10927          sed "s/^/$as_me: WARNING:     /" >&2
10928        ;;
10929      no:yes )
10930        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10931    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10932        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10933    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10934        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10935    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10936        (
10937          cat <<\_ASBOX
10938    ## ------------------------------------ ##
10939    ## Report this to bug-autoconf@gnu.org. ##
10940    ## ------------------------------------ ##
10941    _ASBOX
10942        ) |
10943          sed "s/^/$as_me: WARNING:     /" >&2
10944        ;;
10945    esac
10946    echo "$as_me:$LINENO: checking for $ac_header" >&5
10947    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10948    if eval "test \"\${$as_ac_Header+set}\" = set"; then
10949      echo $ECHO_N "(cached) $ECHO_C" >&6
10950  else  else
10951    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
10952    fi
10953    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10954    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10955    
10956    fi
10957    if test `eval echo '${'$as_ac_Header'}'` = yes; then
10958      cat >>confdefs.h <<_ACEOF
10959    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10960    _ACEOF
10961    
10962  fi  fi
10963    
10964  done  done
10965    
10966          echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for sigcontext..." >&5
10967  echo "configure:5936: checking for sigcontext..." >&5  echo $ECHO_N "checking for sigcontext...... $ECHO_C" >&6
10968          cat > conftest.$ac_ext <<EOF          cat >conftest.$ac_ext <<_ACEOF
10969  #line 5938 "configure"  #line $LINENO "configure"
10970  #include "confdefs.h"  /* confdefs.h.  */
10971    _ACEOF
10972    cat confdefs.h >>conftest.$ac_ext
10973    cat >>conftest.$ac_ext <<_ACEOF
10974    /* end confdefs.h.  */
10975  #include <signal.h>  #include <signal.h>
10976          
10977  int main() {  int
10978    main ()
10979    {
10980    
10981          struct sigcontext foo;          struct sigcontext foo;
10982          
10983  ; return 0; }    ;
10984  EOF    return 0;
10985  if { (eval echo configure:5948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
10986    rm -rf conftest*  _ACEOF
10987      rm -f conftest.$ac_objext
10988    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10989      (eval $ac_compile) 2>&5
10990      ac_status=$?
10991      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992      (exit $ac_status); } &&
10993             { ac_try='test -s conftest.$ac_objext'
10994      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995      (eval $ac_try) 2>&5
10996      ac_status=$?
10997      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998      (exit $ac_status); }; }; then
10999    
11000          sigcontext_works=1;          sigcontext_works=1;
11001          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
11002  #define SIGNAL_H_HAS_SIGCONTEXT 1  #define SIGNAL_H_HAS_SIGCONTEXT 1
11003  EOF  _ACEOF
11004    
11005            echo "$as_me:$LINENO: result: sigcontext in signal.h" >&5
11006    echo "${ECHO_T}sigcontext in signal.h" >&6
11007    
         echo "$ac_t""sigcontext in signal.h" 1>&6  
         
11008  else  else
11009    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
11010    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
11011    rm -rf conftest*  
11012    sigcontext_works=0;  sigcontext_works=0;
11013           echo "$ac_t""sigcontext NOT in signal.h" 1>&6           echo "$as_me:$LINENO: result: sigcontext NOT in signal.h" >&5
11014          echo "${ECHO_T}sigcontext NOT in signal.h" >&6
11015    
11016  fi  fi
11017  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
11018         if test "$sigcontext_works" = 0 ; then         if test "$sigcontext_works" = 0 ; then
11019         echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6         echo "$as_me:$LINENO: checking for sigcontext..." >&5
11020  echo "configure:5969: checking for sigcontext..." >&5  echo $ECHO_N "checking for sigcontext...... $ECHO_C" >&6
11021         cat > conftest.$ac_ext <<EOF         cat >conftest.$ac_ext <<_ACEOF
11022  #line 5971 "configure"  #line $LINENO "configure"
11023  #include "confdefs.h"  /* confdefs.h.  */
11024    _ACEOF
11025    cat confdefs.h >>conftest.$ac_ext
11026    cat >>conftest.$ac_ext <<_ACEOF
11027    /* end confdefs.h.  */
11028  #include <signal.h>  #include <signal.h>
11029               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H
11030               #include <asm/sigcontext.h>               #include <asm/sigcontext.h>
11031               #endif               #endif
11032               #ifdef HAVE_ASM_SIGNAL_H                         #ifdef HAVE_ASM_SIGNAL_H
11033               #include <asm/signal.h>               #include <asm/signal.h>
11034               #endif               #endif
11035              
11036  int main() {  int
11037    main ()
11038    {
11039    
11040          struct sigcontext foo;          struct sigcontext foo;
11041            
11042  ; return 0; }    ;
11043  EOF    return 0;
11044  if { (eval echo configure:5987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
11045    rm -rf conftest*  _ACEOF
11046      rm -f conftest.$ac_objext
11047          cat >> confdefs.h <<\EOF  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11048      (eval $ac_compile) 2>&5
11049      ac_status=$?
11050      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051      (exit $ac_status); } &&
11052             { ac_try='test -s conftest.$ac_objext'
11053      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054      (eval $ac_try) 2>&5
11055      ac_status=$?
11056      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057      (exit $ac_status); }; }; then
11058    
11059            cat >>confdefs.h <<\_ACEOF
11060  #define HAVE_SIGCONTEXT 1  #define HAVE_SIGCONTEXT 1
11061  EOF  _ACEOF
11062    
11063            echo "$as_me:$LINENO: result: sigcontext in asm files" >&5
11064    echo "${ECHO_T}sigcontext in asm files" >&6
11065    
         echo "$ac_t""sigcontext in asm files" 1>&6  
           
11066  else  else
11067    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
11068    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
11069    rm -rf conftest*  
11070      
11071          echo "$ac_t""no sigcontext found" 1>&6          echo "$as_me:$LINENO: result: no sigcontext found" >&5
11072        echo "${ECHO_T}no sigcontext found" >&6
11073    
11074  fi  fi
11075  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
11076    
11077    
11078         fi         fi
11079  #       echo 'foo() {}' > conftest1.c  #       echo 'foo() {}' > conftest1.c
11080  #       $CC -S conftest1.c  #       $CC -S conftest1.c
11081  #       use_underscore=0          #       use_underscore=0
11082  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi
11083  #       if test $use_underscore = 0 ; then  #       if test $use_underscore = 0 ; then
11084  #            MPI_FILE=mpi-386_no_under.o  #            MPI_FILE=mpi-386_no_under.o
# Line 6024  rm -f conftest* Line 11096  rm -f conftest*
11096    
11097  # 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.
11098  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
11099  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
11100  echo "configure:6029: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11101  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if test "${ac_cv_path_EMACS+set}" = set; then
11102    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
11103  else  else
11104    case "$EMACS" in    case $EMACS in
11105    /*)    [\\/]* | ?:[\\/]*)
11106    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.
11107    ;;    ;;
   ?:/*)                    
   ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.  
   ;;  
11108    *)    *)
11109    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110    ac_dummy="$PATH"  for as_dir in $PATH
11111    for ac_dir in $ac_dummy; do  do
11112      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
11113      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
11114        ac_cv_path_EMACS="$ac_dir/$ac_word"    for ac_exec_ext in '' $ac_executable_extensions; do
11115        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11116      fi      ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext"
11117    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11118    IFS="$ac_save_ifs"      break 2
11119      fi
11120    done
11121    done
11122    
11123    ;;    ;;
11124  esac  esac
11125  fi  fi
11126  EMACS="$ac_cv_path_EMACS"  EMACS=$ac_cv_path_EMACS
11127    
11128  if test -n "$EMACS"; then  if test -n "$EMACS"; then
11129    echo "$ac_t""$EMACS" 1>&6    echo "$as_me:$LINENO: result: $EMACS" >&5
11130    echo "${ECHO_T}$EMACS" >&6
11131  else  else
11132    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
11133    echo "${ECHO_T}no" >&6
11134  fi  fi
11135    
11136    
# Line 6072  cat >> conftest.el <<EOF Line 11148  cat >> conftest.el <<EOF
11148    (message ans))    (message ans))
11149  EOF  EOF
11150    
11151  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs site lisp directory" >&5
11152  echo "configure:6077: checking emacs site lisp directory" >&5  echo $ECHO_N "checking emacs site lisp directory... $ECHO_C" >&6
11153  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then
11154          if [ "$EMACS" != "" ] ; then          if [ "$EMACS" != "" ] ; then
11155                  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 6081  if [ "$EMACS_SITE_LISP" = "unknown" ] ; Line 11157  if [ "$EMACS_SITE_LISP" = "unknown" ] ;
11157                  EMACS_SITE_LISP=""                  EMACS_SITE_LISP=""
11158          fi          fi
11159  fi  fi
11160  echo "$ac_t""$EMACS_SITE_LISP" 1>&6  echo "$as_me:$LINENO: result: $EMACS_SITE_LISP" >&5
11161    echo "${ECHO_T}$EMACS_SITE_LISP" >&6
11162    
11163    
11164  # check for where the emacs site lisp default.el is  # check for where the emacs site lisp default.el is
# Line 6096  cat >> conftest.el <<EOF Line 11173  cat >> conftest.el <<EOF
11173    (message ans))    (message ans))
11174  EOF  EOF
11175    
11176  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs default.el" >&5
11177  echo "configure:6101: checking emacs default.el" >&5  echo $ECHO_N "checking emacs default.el... $ECHO_C" >&6
11178  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
11179          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 `
11180  else  else
# Line 6108  if  test -f "${EMACS_DEFAULT_EL}"  ; the Line 11185  if  test -f "${EMACS_DEFAULT_EL}"  ; the
11185       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el
11186    fi    fi
11187  fi  fi
11188  echo "$ac_t""$EMACS_DEFAULT_EL" 1>&6  echo "$as_me:$LINENO: result: $EMACS_DEFAULT_EL" >&5
11189    echo "${ECHO_T}$EMACS_DEFAULT_EL" >&6
11190    
11191    
11192    
# Line 6119  cat >> conftest.el <<EOF Line 11197  cat >> conftest.el <<EOF
11197  (let ((ans "") file (tem Info-default-directory-list))  (let ((ans "") file (tem Info-default-directory-list))
11198   (while tem   (while tem
11199     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))
11200            (setq ans (file-name-as-directory (car tem)))                    (setq ans (file-name-as-directory (car tem)))
11201            (setq tem nil) ))            (setq tem nil) ))
11202     (setq tem (cdr tem)))     (setq tem (cdr tem)))
11203    (message ans))    (message ans))
11204  EOF  EOF
11205    
11206  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs info/dir" >&5
11207  echo "configure:6130: checking emacs info/dir" >&5  echo $ECHO_N "checking emacs info/dir... $ECHO_C" >&6
11208  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
11209      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
11210  else  else
# Line 6140  if test -f /usr/share/info/dir ; then Line 11218  if test -f /usr/share/info/dir ; then
11218  else true;  else true;
11219  fi  fi
11220  fi  fi
11221  echo "$ac_t""$INFO_DIR" 1>&6  echo "$as_me:$LINENO: result: $INFO_DIR" >&5
11222    echo "${ECHO_T}$INFO_DIR" >&6
11223    
11224    
11225  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for tcl/tk" >&5
11226  echo "configure:6148: checking for tcl/tk" >&5  echo $ECHO_N "checking for tcl/tk... $ECHO_C" >&6
11227    
11228    
11229  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 6154  cat >> conftest.tcl <<EOF Line 11233  cat >> conftest.tcl <<EOF
11233  set dir [set tcl_library]  set dir [set tcl_library]
11234  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
11235        puts  [set dir]        puts  [set dir]
11236        exit              exit
11237    }    }
11238  set dir [file dirname [set tcl_library]]  set dir [file dirname [set tcl_library]]
11239  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
# Line 6166  EOF Line 11245  EOF
11245    
11246  # 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.
11247  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
11248  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
11249  echo "configure:6171: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11250  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if test "${ac_cv_prog_TCLSH+set}" = set; then
11251    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
11252  else  else
11253    if test -n "$TCLSH"; then    if test -n "$TCLSH"; then
11254    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
11255  else  else
11256    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257    ac_dummy="$PATH"  for as_dir in $PATH
11258    for ac_dir in $ac_dummy; do  do
11259      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
11260      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
11261        ac_cv_prog_TCLSH="tclsh"    for ac_exec_ext in '' $ac_executable_extensions; do
11262        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263      fi      ac_cv_prog_TCLSH="tclsh"
11264    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11265    IFS="$ac_save_ifs"      break 2
11266      fi
11267    done
11268    done
11269    
11270    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"
11271  fi  fi
11272  fi  fi
11273  TCLSH="$ac_cv_prog_TCLSH"  TCLSH=$ac_cv_prog_TCLSH
11274  if test -n "$TCLSH"; then  if test -n "$TCLSH"; then
11275    echo "$ac_t""$TCLSH" 1>&6    echo "$as_me:$LINENO: result: $TCLSH" >&5
11276    echo "${ECHO_T}$TCLSH" >&6
11277  else  else
11278    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
11279    echo "${ECHO_T}no" >&6
11280  fi  fi
11281    
11282  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})
# Line 6257  if test -f ${TK_CONFIG_PREFIX}/../includ Line 11342  if test -f ${TK_CONFIG_PREFIX}/../includ
11342    else    else
11343    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then
11344      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
11345    fi        fi
11346  fi  fi
11347  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then
11348    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include
# Line 6266  if test -f ${TCL_CONFIG_PREFIX}/../inclu Line 11351  if test -f ${TCL_CONFIG_PREFIX}/../inclu
11351      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
11352    fi    fi
11353  fi  fi
11354  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -llieee" >&5
11355  echo "configure:6271: checking for main in -llieee" >&5  echo $ECHO_N "checking for main in -llieee... $ECHO_C" >&6
11356  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_lieee_main+set}" = set; then
11357  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  
11358  else  else
11359    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
11360  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
11361  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
11362  #line 6279 "configure"  #line $LINENO "configure"
11363  #include "confdefs.h"  /* confdefs.h.  */
11364    _ACEOF
11365    cat confdefs.h >>conftest.$ac_ext
11366    cat >>conftest.$ac_ext <<_ACEOF
11367    /* end confdefs.h.  */
11368    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:6286: \"$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"  
11369    
11370  fi  int
11371  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
11372    echo "$ac_t""yes" 1>&6  {
11373    main ();
11374      ;
11375      return 0;
11376    }
11377    _ACEOF
11378    rm -f conftest.$ac_objext conftest$ac_exeext
11379    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11380      (eval $ac_link) 2>&5
11381      ac_status=$?
11382      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383      (exit $ac_status); } &&
11384             { ac_try='test -s conftest$ac_exeext'
11385      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386      (eval $ac_try) 2>&5
11387      ac_status=$?
11388      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389      (exit $ac_status); }; }; then
11390      ac_cv_lib_lieee_main=yes
11391    else
11392      echo "$as_me: failed program was:" >&5
11393    sed 's/^/| /' conftest.$ac_ext >&5
11394    
11395    ac_cv_lib_lieee_main=no
11396    fi
11397    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11398    LIBS=$ac_check_lib_save_LIBS
11399    fi
11400    echo "$as_me:$LINENO: result: $ac_cv_lib_lieee_main" >&5
11401    echo "${ECHO_T}$ac_cv_lib_lieee_main" >&6
11402    if test $ac_cv_lib_lieee_main = yes; then
11403    have_ieee=1    have_ieee=1
11404  else  else
11405    echo "$ac_t""no" 1>&6    have_ieee=0
 have_ieee=0  
11406  fi  fi
11407    
11408  if test "$have_ieee" = "0" ; then  if test "$have_ieee" = "0" ; then
# Line 6331  fi Line 11433  fi
11433    
11434    
11435  if test -d "${TK_CONFIG_PREFIX}" ; then  if test -d "${TK_CONFIG_PREFIX}" ; then
11436  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
11437    echo "${ECHO_T}using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" >&6
11438  else  else
11439  echo "$ac_t""not found" 1>&6  echo "$as_me:$LINENO: result: not found" >&5
11440    echo "${ECHO_T}not found" >&6
11441  fi  fi
11442    
11443  NOTIFY=$enable_notify  NOTIFY=$enable_notify
11444    
11445    
11446          
11447    
11448    
11449  # for sgbc the mprotect capabilities.  # for sgbc the mprotect capabilities.
11450    
11451  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
11452    
11453  echo $ac_n "checking alloca""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking alloca" >&5
11454  echo "configure:6351: checking alloca" >&5  echo $ECHO_N "checking alloca... $ECHO_C" >&6
11455  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
11456    gcl_ok=no    gcl_ok=no
11457  else  else
11458    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
11459  #line 6356 "configure"  #line $LINENO "configure"
11460  #include "confdefs.h"  /* confdefs.h.  */
11461    _ACEOF
11462    cat confdefs.h >>conftest.$ac_ext
11463    cat >>conftest.$ac_ext <<_ACEOF
11464    /* end confdefs.h.  */
11465  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
11466  EOF  _ACEOF
11467  if { (eval echo configure:6360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
11468  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11469      (eval $ac_link) 2>&5
11470      ac_status=$?
11471      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11473      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474      (eval $ac_try) 2>&5
11475      ac_status=$?
11476      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477      (exit $ac_status); }; }; then
11478    :    :
11479  else  else
11480    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
11481    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
11482    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
11483    gcl_ok=yes  
11484    ( exit $ac_status )
11485    gcl_ok=yes
11486  fi  fi
11487  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11488  fi  fi
   
11489  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
11490      echo "$ac_t""yes" 1>&6      echo "$as_me:$LINENO: result: yes" >&5
11491      cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
11492        cat >>confdefs.h <<\_ACEOF
11493  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
11494  EOF  _ACEOF
11495    
11496  else  else
11497    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
11498    gcl_ok=no    gcl_ok=no
11499  else  else
11500    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
11501  #line 6383 "configure"  #line $LINENO "configure"
11502  #include "confdefs.h"  /* confdefs.h.  */
11503    _ACEOF
11504    cat confdefs.h >>conftest.$ac_ext
11505    cat >>conftest.$ac_ext <<_ACEOF
11506    /* end confdefs.h.  */
11507  #include <alloca.h>  #include <alloca.h>
11508    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
11509  EOF  _ACEOF
11510  if { (eval echo configure:6388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
11511  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11512      (eval $ac_link) 2>&5
11513      ac_status=$?
11514      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11516      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517      (eval $ac_try) 2>&5
11518      ac_status=$?
11519      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520      (exit $ac_status); }; }; then
11521    :    :
11522  else  else
11523    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
11524    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
11525    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
11526    gcl_ok=yes  
11527    ( exit $ac_status )
11528    gcl_ok=yes
11529  fi  fi
11530  rm -fr conftest*  rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11531  fi  fi
   
11532   if test $gcl_ok = yes ; then   if test $gcl_ok = yes ; then
11533      echo "$ac_t""yes" 1>&6      echo "$as_me:$LINENO: result: yes" >&5
11534      cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
11535        cat >>confdefs.h <<\_ACEOF
11536  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
11537  EOF  _ACEOF
11538    
11539      cat >> confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
11540  #define NEED_ALLOCA_H 1  #define NEED_ALLOCA_H 1
11541  EOF  _ACEOF
11542    
11543   fi   fi
11544  fi  fi
11545  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
11546    echo "${ECHO_T}no" >&6 ; fi
11547    
11548    
11549    
# Line 6424  if test $gcl_ok = no ; then     echo "$a Line 11559  if test $gcl_ok = no ; then     echo "$a
11559  # dlopen etc  # dlopen etc
11560  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)
11561  # 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
11562  #  #
11563    
11564  # what machine this is, and include then a machine specific hdr.  # what machine this is, and include then a machine specific hdr.
11565  # and machine specific defs.  # and machine specific defs.
# Line 6444  if test $gcl_ok = no ; then     echo "$a Line 11579  if test $gcl_ok = no ; then     echo "$a
11579    
11580  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
11581  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
11582  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
11583  echo "configure:6449: checking Checking for buggy gcc version from redhat" >&5  echo $ECHO_N "checking Checking for buggy gcc version from redhat... $ECHO_C" >&6
11584  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
11585     then     then
11586          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1
11587          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
11588  #define BROKEN_O4_OPT 1  #define BROKEN_O4_OPT 1
11589  EOF  _ACEOF
11590    
11591    
           
11592          echo ODIR_DEBUG=-O >> makedefsafter          echo ODIR_DEBUG=-O >> makedefsafter
11593          echo >> makedefsafter          echo >> makedefsafter
11594          echo "$ac_t""yes .. turning off -O4" 1>&6          echo "$as_me:$LINENO: result: yes .. turning off -O4" >&5
11595    echo "${ECHO_T}yes .. turning off -O4" >&6
11596     else     else
11597          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
11598  fi  echo "${ECHO_T}no" >&6
11599    fi
11600    
11601  LIBS="$LDFLAGS $TLDFLAGS $LIBS $TLIBS"  LIBS="$LDFLAGS $TLDFLAGS $LIBS $TLIBS"
11602    
# Line 6480  O2FLAGS=$TO2FLAGS Line 11617  O2FLAGS=$TO2FLAGS
11617    
11618  if test -f h/$use.defs  ; then  if test -f h/$use.defs  ; then
11619    
11620      
11621    trap '' 1 2 15                                            ac_config_files="$ac_config_files makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp"
11622  cat > confcache <<\EOF  cat >confcache <<\_ACEOF
11623  # This file is a shell script that caches the results of configure  # This file is a shell script that caches the results of configure
11624  # tests run on this system so they can be shared between configure  # tests run on this system so they can be shared between configure
11625  # scripts and configure runs.  It is not useful on other systems.  # scripts and configure runs, see configure's option --config-cache.
11626  # 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
11627    # want to keep, you may remove or edit it.
11628  #  #
11629  # By default, configure uses ./config.cache as the cache file,  # config.status only pays attention to the cache file if you give it
11630  # 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.  
11631  #  #
11632  EOF  # `ac_cv_env_foo' variables (set or unset) will be overridden when
11633    # loading this file, other *unset* `ac_cv_foo' will be assigned the
11634    # following values.
11635    
11636    _ACEOF
11637    
11638  # The following way of writing the cache mishandles newlines in values,  # The following way of writing the cache mishandles newlines in values,
11639  # but we know of no workaround that is simple, portable, and efficient.  # but we know of no workaround that is simple, portable, and efficient.
11640  # So, don't put newlines in cache variables' values.  # So, don't put newlines in cache variables' values.
11641  # Ultrix sh set writes to stderr and can't be redirected directly,  # Ultrix sh set writes to stderr and can't be redirected directly,
11642  # 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.
11643  (set) 2>&1 |  {
11644    case `(ac_space=' '; set | grep ac_space) 2>&1` in    (set) 2>&1 |
11645    *ac_space=\ *)      case `(ac_space=' '; set | grep ac_space) 2>&1` in
11646      # `set' does not quote correctly, so add quotes (double-quote substitution      *ac_space=\ *)
11647      # turns \\\\ into \\, and sed turns \\ into \).        # `set' does not quote correctly, so add quotes (double-quote
11648      sed -n \        # substitution turns \\\\ into \\, and sed turns \\ into \).
11649        -e "s/'/'\\\\''/g" \        sed -n \
11650        -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"          "s/'/'\\\\''/g;
11651      ;;            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11652    *)        ;;
11653      # `set' quotes correctly as required by POSIX, so do not add quotes.      *)
11654      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.
11655      ;;        sed -n \
11656    esac >> confcache          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11657  if cmp -s $cache_file confcache; then        ;;
11658    :      esac;
11659  else  } |
11660      sed '
11661         t clear
11662         : clear
11663         s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11664         t end
11665         /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11666         : end' >>confcache
11667    if diff $cache_file confcache >/dev/null 2>&1; then :; else
11668    if test -w $cache_file; then    if test -w $cache_file; then
11669      echo "updating cache $cache_file"      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11670      cat confcache > $cache_file      cat confcache >$cache_file
11671    else    else
11672      echo "not updating unwritable cache $cache_file"      echo "not updating unwritable cache $cache_file"
11673    fi    fi
11674  fi  fi
11675  rm -f confcache  rm -f confcache
11676    
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
11677  test "x$prefix" = xNONE && prefix=$ac_default_prefix  test "x$prefix" = xNONE && prefix=$ac_default_prefix
11678  # Let make expand exec_prefix.  # Let make expand exec_prefix.
11679  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11680    
11681  # Any assignment to VPATH causes Sun make to only execute  # VPATH may cause trouble with some makes, so we remove $(srcdir),
11682  # the first set of double-colon rules, so remove it if not needed.  # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11683  # 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
11684    # (actually we leave an empty line to preserve line numbers).
11685  if test "x$srcdir" = x.; then  if test "x$srcdir" = x.; then
11686    ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'    ac_vpsub='/^[         ]*VPATH[        ]*=/{
11687    s/:*\$(srcdir):*/:/;
11688    s/:*\${srcdir}:*/:/;
11689    s/:*@srcdir@:*/:/;
11690    s/^\([^=]*=[    ]*\):*/\1/;
11691    s/:*$//;
11692    s/^[^=]*=[      ]*$//;
11693    }'
11694  fi  fi
11695    
 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15  
   
11696  DEFS=-DHAVE_CONFIG_H  DEFS=-DHAVE_CONFIG_H
11697    
11698  # Without the "./", some shells look in PATH for config.status.  ac_libobjs=
11699  : ${CONFIG_STATUS=./config.status}  ac_ltlibobjs=
11700    for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11701      # 1. Remove the extension, and $U if already installed.
11702      ac_i=`echo "$ac_i" |
11703             sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11704      # 2. Add them.
11705      ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11706      ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11707    done
11708    LIBOBJS=$ac_libobjs
11709    
11710  echo creating $CONFIG_STATUS  LTLIBOBJS=$ac_ltlibobjs
11711  rm -f $CONFIG_STATUS  
11712  cat > $CONFIG_STATUS <<EOF  
11713  #! /bin/sh  
11714  # Generated automatically by configure.  : ${CONFIG_STATUS=./config.status}
11715    ac_clean_files_save=$ac_clean_files
11716    ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11717    { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11718    echo "$as_me: creating $CONFIG_STATUS" >&6;}
11719    cat >$CONFIG_STATUS <<_ACEOF
11720    #! $SHELL
11721    # Generated by $as_me.
11722  # 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  
 #  
11723  # Compiler output produced by configure, useful for debugging  # Compiler output produced by configure, useful for debugging
11724  # configure, is in ./config.log if it exists.  # configure, is in config.log if it exists.
11725    
11726  ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"  debug=false
11727  for ac_option  ac_cs_recheck=false
11728    ac_cs_silent=false
11729    SHELL=\${CONFIG_SHELL-$SHELL}
11730    _ACEOF
11731    
11732    cat >>$CONFIG_STATUS <<\_ACEOF
11733    ## --------------------- ##
11734    ## M4sh Initialization.  ##
11735    ## --------------------- ##
11736    
11737    # Be Bourne compatible
11738    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11739      emulate sh
11740      NULLCMD=:
11741      # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11742      # is contrary to our usage.  Disable this feature.
11743      alias -g '${1+"$@"}'='"$@"'
11744    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11745      set -o posix
11746    fi
11747    
11748    # Support unset when possible.
11749    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11750      as_unset=unset
11751    else
11752      as_unset=false
11753    fi
11754    
11755    
11756    # Work around bugs in pre-3.0 UWIN ksh.
11757    $as_unset ENV MAIL MAILPATH
11758    PS1='$ '
11759    PS2='> '
11760    PS4='+ '
11761    
11762    # NLS nuisances.
11763    for as_var in \
11764      LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11765      LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11766      LC_TELEPHONE LC_TIME
11767    do
11768      if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11769        eval $as_var=C; export $as_var
11770      else
11771        $as_unset $as_var
11772      fi
11773    done
11774    
11775    # Required to use basename.
11776    if expr a : '\(a\)' >/dev/null 2>&1; then
11777      as_expr=expr
11778    else
11779      as_expr=false
11780    fi
11781    
11782    if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11783      as_basename=basename
11784    else
11785      as_basename=false
11786    fi
11787    
11788    
11789    # Name of the executable.
11790    as_me=`$as_basename "$0" ||
11791    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11792             X"$0" : 'X\(//\)$' \| \
11793             X"$0" : 'X\(/\)$' \| \
11794             .     : '\(.\)' 2>/dev/null ||
11795    echo X/"$0" |
11796        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11797              /^X\/\(\/\/\)$/{ s//\1/; q; }
11798              /^X\/\(\/\).*/{ s//\1/; q; }
11799              s/.*/./; q'`
11800    
11801    
11802    # PATH needs CR, and LINENO needs CR and PATH.
11803    # Avoid depending upon Character Ranges.
11804    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11805    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11806    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11807    as_cr_digits='0123456789'
11808    as_cr_alnum=$as_cr_Letters$as_cr_digits
11809    
11810    # The user is always right.
11811    if test "${PATH_SEPARATOR+set}" != set; then
11812      echo "#! /bin/sh" >conf$$.sh
11813      echo  "exit 0"   >>conf$$.sh
11814      chmod +x conf$$.sh
11815      if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11816        PATH_SEPARATOR=';'
11817      else
11818        PATH_SEPARATOR=:
11819      fi
11820      rm -f conf$$.sh
11821    fi
11822    
11823    
11824      as_lineno_1=$LINENO
11825      as_lineno_2=$LINENO
11826      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11827      test "x$as_lineno_1" != "x$as_lineno_2" &&
11828      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11829      # Find who we are.  Look in the path if we contain no path at all
11830      # relative or not.
11831      case $0 in
11832        *[\\/]* ) as_myself=$0 ;;
11833        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834    for as_dir in $PATH
11835    do
11836      IFS=$as_save_IFS
11837      test -z "$as_dir" && as_dir=.
11838      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11839    done
11840    
11841           ;;
11842      esac
11843      # We did not find ourselves, most probably we were run as `sh COMMAND'
11844      # in which case we are not to be found in the path.
11845      if test "x$as_myself" = x; then
11846        as_myself=$0
11847      fi
11848      if test ! -f "$as_myself"; then
11849        { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11850    echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11851       { (exit 1); exit 1; }; }
11852      fi
11853      case $CONFIG_SHELL in
11854      '')
11855        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11857    do
11858      IFS=$as_save_IFS
11859      test -z "$as_dir" && as_dir=.
11860      for as_base in sh bash ksh sh5; do
11861             case $as_dir in
11862             /*)
11863               if ("$as_dir/$as_base" -c '
11864      as_lineno_1=$LINENO
11865      as_lineno_2=$LINENO
11866      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11867      test "x$as_lineno_1" != "x$as_lineno_2" &&
11868      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11869                 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11870                 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11871                 CONFIG_SHELL=$as_dir/$as_base
11872                 export CONFIG_SHELL
11873                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11874               fi;;
11875             esac
11876           done
11877    done
11878    ;;
11879      esac
11880    
11881      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11882      # uniformly replaced by the line number.  The first 'sed' inserts a
11883      # line-number line before each line; the second 'sed' does the real
11884      # work.  The second script uses 'N' to pair each line-number line
11885      # with the numbered line, and appends trailing '-' during
11886      # substitution so that $LINENO is not a special case at line end.
11887      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11888      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11889      sed '=' <$as_myself |
11890        sed '
11891          N
11892          s,$,-,
11893          : loop
11894          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11895          t loop
11896          s,-$,,
11897          s,^['$as_cr_digits']*\n,,
11898        ' >$as_me.lineno &&
11899      chmod +x $as_me.lineno ||
11900        { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11901    echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11902       { (exit 1); exit 1; }; }
11903    
11904      # Don't try to exec as it changes $[0], causing all sort of problems
11905      # (the dirname of $[0] is not the place where we might find the
11906      # original and so on.  Autoconf is especially sensible to this).
11907      . ./$as_me.lineno
11908      # Exit status is that of the last command.
11909      exit
11910    }
11911    
11912    
11913    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11914      *c*,-n*) ECHO_N= ECHO_C='
11915    ' ECHO_T='      ' ;;
11916      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11917      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11918    esac
11919    
11920    if expr a : '\(a\)' >/dev/null 2>&1; then
11921      as_expr=expr
11922    else
11923      as_expr=false
11924    fi
11925    
11926    rm -f conf$$ conf$$.exe conf$$.file
11927    echo >conf$$.file
11928    if ln -s conf$$.file conf$$ 2>/dev/null; then
11929      # We could just check for DJGPP; but this test a) works b) is more generic
11930      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11931      if test -f conf$$.exe; then
11932        # Don't use ln at all; we don't have any links
11933        as_ln_s='cp -p'
11934      else
11935        as_ln_s='ln -s'
11936      fi
11937    elif ln conf$$.file conf$$ 2>/dev/null; then
11938      as_ln_s=ln
11939    else
11940      as_ln_s='cp -p'
11941    fi
11942    rm -f conf$$ conf$$.exe conf$$.file
11943    
11944    if mkdir -p . 2>/dev/null; then
11945      as_mkdir_p=:
11946    else
11947      as_mkdir_p=false
11948    fi
11949    
11950    as_executable_p="test -f"
11951    
11952    # Sed expression to map a string onto a valid CPP name.
11953    as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11954    
11955    # Sed expression to map a string onto a valid variable name.
11956    as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11957    
11958    
11959    # IFS
11960    # We need space, tab and new line, in precisely that order.
11961    as_nl='
11962    '
11963    IFS="   $as_nl"
11964    
11965    # CDPATH.
11966    $as_unset CDPATH
11967    
11968    exec 6>&1
11969    
11970    # Open the log real soon, to keep \$[0] and so on meaningful, and to
11971    # report actual input values of CONFIG_FILES etc. instead of their
11972    # values after options handling.  Logging --version etc. is OK.
11973    exec 5>>config.log
11974    {
11975      echo
11976      sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11977    ## Running $as_me. ##
11978    _ASBOX
11979    } >&5
11980    cat >&5 <<_CSEOF
11981    
11982    This file was extended by $as_me, which was
11983    generated by GNU Autoconf 2.56.  Invocation command line was
11984    
11985      CONFIG_FILES    = $CONFIG_FILES
11986      CONFIG_HEADERS  = $CONFIG_HEADERS
11987      CONFIG_LINKS    = $CONFIG_LINKS
11988      CONFIG_COMMANDS = $CONFIG_COMMANDS
11989      $ $0 $@
11990    
11991    _CSEOF
11992    echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11993    echo >&5
11994    _ACEOF
11995    
11996    # Files that config.status was made for.
11997    if test -n "$ac_config_files"; then
11998      echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11999    fi
12000    
12001    if test -n "$ac_config_headers"; then
12002      echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12003    fi
12004    
12005    if test -n "$ac_config_links"; then
12006      echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12007    fi
12008    
12009    if test -n "$ac_config_commands"; then
12010      echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12011    fi
12012    
12013    cat >>$CONFIG_STATUS <<\_ACEOF
12014    
12015    ac_cs_usage="\
12016    \`$as_me' instantiates files from templates according to the
12017    current configuration.
12018    
12019    Usage: $0 [OPTIONS] [FILE]...
12020    
12021      -h, --help       print this help, then exit
12022      -V, --version    print version number, then exit
12023      -q, --quiet      do not print progress messages
12024      -d, --debug      don't remove temporary files
12025          --recheck    update $as_me by reconfiguring in the same conditions
12026      --file=FILE[:TEMPLATE]
12027                       instantiate the configuration file FILE
12028      --header=FILE[:TEMPLATE]
12029                       instantiate the configuration header FILE
12030    
12031    Configuration files:
12032    $config_files
12033    
12034    Configuration headers:
12035    $config_headers
12036    
12037    Report bugs to <bug-autoconf@gnu.org>."
12038    _ACEOF
12039    
12040    cat >>$CONFIG_STATUS <<_ACEOF
12041    ac_cs_version="\\
12042    config.status
12043    configured by $0, generated by GNU Autoconf 2.56,
12044      with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12045    
12046    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12047    Free Software Foundation, Inc.
12048    This config.status script is free software; the Free Software Foundation
12049    gives unlimited permission to copy, distribute and modify it."
12050    srcdir=$srcdir
12051    _ACEOF
12052    
12053    cat >>$CONFIG_STATUS <<\_ACEOF
12054    # If no file are specified by the user, then we need to provide default
12055    # value.  By we need to know if files were specified by the user.
12056    ac_need_defaults=:
12057    while test $# != 0
12058  do  do
12059    case "\$ac_option" in    case $1 in
12060      --*=*)
12061        ac_option=`expr "x$1" : 'x\([^=]*\)='`
12062        ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12063        ac_shift=:
12064        ;;
12065      -*)
12066        ac_option=$1
12067        ac_optarg=$2
12068        ac_shift=shift
12069        ;;
12070      *) # This is not an option, so the user has probably given explicit
12071         # arguments.
12072         ac_option=$1
12073         ac_need_defaults=false;;
12074      esac
12075    
12076      case $ac_option in
12077      # Handling of the options.
12078    _ACEOF
12079    cat >>$CONFIG_STATUS <<\_ACEOF
12080    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12081      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"      ac_cs_recheck=: ;;
12082      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;    --version | --vers* | -V )
12083    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)      echo "$ac_cs_version"; exit 0 ;;
12084      echo "$CONFIG_STATUS generated by autoconf version 2.13"    --he | --h)
12085      exit 0 ;;      # Conflict between --help and --header
12086    -help | --help | --hel | --he | --h)      { { echo "$as_me:$LINENO: error: ambiguous option: $1
12087      echo "\$ac_cs_usage"; exit 0 ;;  Try \`$0 --help' for more information." >&5
12088    *) echo "\$ac_cs_usage"; exit 1 ;;  echo "$as_me: error: ambiguous option: $1
12089    Try \`$0 --help' for more information." >&2;}
12090       { (exit 1); exit 1; }; };;
12091      --help | --hel | -h )
12092        echo "$ac_cs_usage"; exit 0 ;;
12093      --debug | --d* | -d )
12094        debug=: ;;
12095      --file | --fil | --fi | --f )
12096        $ac_shift
12097        CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12098        ac_need_defaults=false;;
12099      --header | --heade | --head | --hea )
12100        $ac_shift
12101        CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12102        ac_need_defaults=false;;
12103      -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12104      | -silent | --silent | --silen | --sile | --sil | --si | --s)
12105        ac_cs_silent=: ;;
12106    
12107      # This is an error.
12108      -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12109    Try \`$0 --help' for more information." >&5
12110    echo "$as_me: error: unrecognized option: $1
12111    Try \`$0 --help' for more information." >&2;}
12112       { (exit 1); exit 1; }; } ;;
12113    
12114      *) ac_config_targets="$ac_config_targets $1" ;;
12115    
12116    esac    esac
12117      shift
12118  done  done
12119    
12120  ac_given_srcdir=$srcdir  ac_configure_extra_args=
12121    
12122  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
12123  EOF    exec 6>/dev/null
12124  cat >> $CONFIG_STATUS <<EOF    ac_configure_extra_args="$ac_configure_extra_args --silent"
12125    fi
12126    
12127  # Protect against being on the right side of a sed subst in config.status.  _ACEOF
12128  sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;  cat >>$CONFIG_STATUS <<_ACEOF
12129   s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF  if \$ac_cs_recheck; then
12130  $ac_vpsub    echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12131  $extrasub    exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12132  s%@SHELL@%$SHELL%g  fi
12133  s%@CFLAGS@%$CFLAGS%g  
12134  s%@CPPFLAGS@%$CPPFLAGS%g  _ACEOF
12135  s%@CXXFLAGS@%$CXXFLAGS%g  
12136  s%@FFLAGS@%$FFLAGS%g  
12137  s%@DEFS@%$DEFS%g  
12138  s%@LDFLAGS@%$LDFLAGS%g  
12139  s%@LIBS@%$LIBS%g  
12140  s%@exec_prefix@%$exec_prefix%g  cat >>$CONFIG_STATUS <<\_ACEOF
12141  s%@prefix@%$prefix%g  for ac_config_target in $ac_config_targets
12142  s%@program_transform_name@%$program_transform_name%g  do
12143  s%@bindir@%$bindir%g    case "$ac_config_target" in
12144  s%@sbindir@%$sbindir%g    # Handling of arguments.
12145  s%@libexecdir@%$libexecdir%g    "makedefc" ) CONFIG_FILES="$CONFIG_FILES makedefc" ;;
12146  s%@datadir@%$datadir%g    "windows/gcl.iss" ) CONFIG_FILES="$CONFIG_FILES windows/gcl.iss" ;;
12147  s%@sysconfdir@%$sysconfdir%g    "windows/sysdir.bat" ) CONFIG_FILES="$CONFIG_FILES windows/sysdir.bat" ;;
12148  s%@sharedstatedir@%$sharedstatedir%g    "windows/install.lsp" ) CONFIG_FILES="$CONFIG_FILES windows/install.lsp" ;;
12149  s%@localstatedir@%$localstatedir%g    "h/gclincl.h" ) CONFIG_HEADERS="$CONFIG_HEADERS h/gclincl.h" ;;
12150  s%@libdir@%$libdir%g    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12151  s%@includedir@%$includedir%g  echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12152  s%@oldincludedir@%$oldincludedir%g     { (exit 1); exit 1; }; };;
12153  s%@infodir@%$infodir%g    esac
12154  s%@mandir@%$mandir%g  done
12155  s%@VERSION@%$VERSION%g  
12156  s%@host@%$host%g  # If the user did not use the arguments to specify the items to instantiate,
12157  s%@host_alias@%$host_alias%g  # then the envvar interface is used.  Set only those that are not.
12158  s%@host_cpu@%$host_cpu%g  # We use the long form for the default assignment because of an extremely
12159  s%@host_vendor@%$host_vendor%g  # bizarre bug on SunOS 4.1.3.
12160  s%@host_os@%$host_os%g  if $ac_need_defaults; then
12161  s%@PROCESSOR_FLAGS@%$PROCESSOR_FLAGS%g    test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12162  s%@CC@%$CC%g    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12163  s%@CPP@%$CPP%g  fi
12164  s%@AWK@%$AWK%g  
12165  s%@MAKEINFO@%$MAKEINFO%g  # Have a temporary directory for convenience.  Make it in the build tree
12166  s%@GMP@%$GMP%g  # simply because there is no reason to put it here, and in addition,
12167  s%@GMPDIR@%$GMPDIR%g  # creating and moving files from /tmp can sometimes cause problems.
12168  s%@X_CFLAGS@%$X_CFLAGS%g  # Create a temporary directory, and hook for its removal unless debugging.
12169  s%@X_PRE_LIBS@%$X_PRE_LIBS%g  $debug ||
12170  s%@X_LIBS@%$X_LIBS%g  {
12171  s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g    trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12172  s%@BUILD_BFD@%$BUILD_BFD%g    trap '{ (exit 1); exit 1; }' 1 2 13 15
12173  s%@LITTLE_END@%$LITTLE_END%g  }
12174  s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g  
12175  s%@FLISP@%$FLISP%g  # Create a (secure) tmp directory for tmp files.
12176  s%@SYSTEM@%$SYSTEM%g  
12177  s%@CLSTANDARD@%$CLSTANDARD%g  {
12178  s%@PAGEWIDTH@%$PAGEWIDTH%g    tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12179  s%@RL_OBJS@%$RL_OBJS%g    test -n "$tmp" && test -d "$tmp"
12180  s%@RL_LIB@%$RL_LIB%g  }  ||
12181  s%@NO_PROFILE@%$NO_PROFILE%g  {
12182  s%@HAVE_SETENV@%$HAVE_SETENV%g    tmp=./confstat$$-$RANDOM
12183  s%@HAVE_PUTENV@%$HAVE_PUTENV%g    (umask 077 && mkdir $tmp)
12184  s%@USE_CLEANUP@%$USE_CLEANUP%g  } ||
12185  s%@ENDIAN_ALREADY_DEFINED@%$ENDIAN_ALREADY_DEFINED%g  {
12186  s%@HAVE_SV_ONSTACK@%$HAVE_SV_ONSTACK%g     echo "$me: cannot create a temporary directory in ." >&2
12187  s%@HAVE_SIGSYS@%$HAVE_SIGSYS%g     { (exit 1); exit 1; }
12188  s%@HAVE_SIGEMT@%$HAVE_SIGEMT%g  }
12189  s%@EMACS@%$EMACS%g  
12190  s%@EMACS_SITE_LISP@%$EMACS_SITE_LISP%g  _ACEOF
12191  s%@EMACS_DEFAULT_EL@%$EMACS_DEFAULT_EL%g  
12192  s%@INFO_DIR@%$INFO_DIR%g  cat >>$CONFIG_STATUS <<_ACEOF
 s%@TCLSH@%$TCLSH%g  
 s%@TK_CONFIG_PREFIX@%$TK_CONFIG_PREFIX%g  
 s%@TK_LIBRARY@%$TK_LIBRARY%g  
 s%@TCL_LIBRARY@%$TCL_LIBRARY%g  
 s%@TK_XINCLUDES@%$TK_XINCLUDES%g  
 s%@TK_INCLUDE@%$TK_INCLUDE%g  
 s%@TCL_INCLUDE@%$TCL_INCLUDE%g  
 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g  
 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g  
 s%@TK_XLIBSW@%$TK_XLIBSW%g  
 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g  
 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g  
 s%@TCL_LIBS@%$TCL_LIBS%g  
 s%@NOTIFY@%$NOTIFY%g  
 s%@BROKEN_O4_OPT@%$BROKEN_O4_OPT%g  
 s%@FINAL_CFLAGS@%$FINAL_CFLAGS%g  
 s%@NIFLAGS@%$NIFLAGS%g  
 s%@O3FLAGS@%$O3FLAGS%g  
 s%@O2FLAGS@%$O2FLAGS%g  
 s%@EXTRA_LOBJS@%$EXTRA_LOBJS%g  
 s%@LEADING_UNDERSCORE@%$LEADING_UNDERSCORE%g  
 s%@GNU_LD@%$GNU_LD%g  
 s%@use@%$use%g  
12193    
12194    #
12195    # CONFIG_FILES section.
12196    #
12197    
12198    # No need to generate the scripts if there are no CONFIG_FILES.
12199    # This happens for instance when ./config.status config.h
12200    if test -n "\$CONFIG_FILES"; then
12201      # Protect against being on the right side of a sed subst in config.status.
12202      sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12203       s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12204    s,@SHELL@,$SHELL,;t t
12205    s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12206    s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12207    s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12208    s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12209    s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12210    s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12211    s,@exec_prefix@,$exec_prefix,;t t
12212    s,@prefix@,$prefix,;t t
12213    s,@program_transform_name@,$program_transform_name,;t t
12214    s,@bindir@,$bindir,;t t
12215    s,@sbindir@,$sbindir,;t t
12216    s,@libexecdir@,$libexecdir,;t t
12217    s,@datadir@,$datadir,;t t
12218    s,@sysconfdir@,$sysconfdir,;t t
12219    s,@sharedstatedir@,$sharedstatedir,;t t
12220    s,@localstatedir@,$localstatedir,;t t
12221    s,@libdir@,$libdir,;t t
12222    s,@includedir@,$includedir,;t t
12223    s,@oldincludedir@,$oldincludedir,;t t
12224    s,@infodir@,$infodir,;t t
12225    s,@mandir@,$mandir,;t t
12226    s,@build_alias@,$build_alias,;t t
12227    s,@host_alias@,$host_alias,;t t
12228    s,@target_alias@,$target_alias,;t t
12229    s,@DEFS@,$DEFS,;t t
12230    s,@ECHO_C@,$ECHO_C,;t t
12231    s,@ECHO_N@,$ECHO_N,;t t
12232    s,@ECHO_T@,$ECHO_T,;t t
12233    s,@LIBS@,$LIBS,;t t
12234    s,@VERSION@,$VERSION,;t t
12235    s,@build@,$build,;t t
12236    s,@build_cpu@,$build_cpu,;t t
12237    s,@build_vendor@,$build_vendor,;t t
12238    s,@build_os@,$build_os,;t t
12239    s,@host@,$host,;t t
12240    s,@host_cpu@,$host_cpu,;t t
12241    s,@host_vendor@,$host_vendor,;t t
12242    s,@host_os@,$host_os,;t t
12243    s,@PROCESSOR_FLAGS@,$PROCESSOR_FLAGS,;t t
12244    s,@CC@,$CC,;t t
12245    s,@CFLAGS@,$CFLAGS,;t t
12246    s,@LDFLAGS@,$LDFLAGS,;t t
12247    s,@CPPFLAGS@,$CPPFLAGS,;t t
12248    s,@ac_ct_CC@,$ac_ct_CC,;t t
12249    s,@EXEEXT@,$EXEEXT,;t t
12250    s,@OBJEXT@,$OBJEXT,;t t
12251    s,@CPP@,$CPP,;t t
12252    s,@AWK@,$AWK,;t t
12253    s,@MAKEINFO@,$MAKEINFO,;t t
12254    s,@EGREP@,$EGREP,;t t
12255    s,@GMP@,$GMP,;t t
12256    s,@GMPDIR@,$GMPDIR,;t t
12257    s,@X_CFLAGS@,$X_CFLAGS,;t t
12258    s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12259    s,@X_LIBS@,$X_LIBS,;t t
12260    s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12261    s,@BUILD_BFD@,$BUILD_BFD,;t t
12262    s,@LITTLE_END@,$LITTLE_END,;t t
12263    s,@HAVE_LONG_LONG@,$HAVE_LONG_LONG,;t t
12264    s,@FLISP@,$FLISP,;t t
12265    s,@SYSTEM@,$SYSTEM,;t t
12266    s,@CLSTANDARD@,$CLSTANDARD,;t t
12267    s,@PAGEWIDTH@,$PAGEWIDTH,;t t
12268    s,@RL_OBJS@,$RL_OBJS,;t t
12269    s,@RL_LIB@,$RL_LIB,;t t
12270    s,@NO_PROFILE@,$NO_PROFILE,;t t
12271    s,@HAVE_SETENV@,$HAVE_SETENV,;t t
12272    s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t
12273    s,@USE_CLEANUP@,$USE_CLEANUP,;t t
12274    s,@ENDIAN_ALREADY_DEFINED@,$ENDIAN_ALREADY_DEFINED,;t t
12275    s,@HAVE_SV_ONSTACK@,$HAVE_SV_ONSTACK,;t t
12276    s,@HAVE_SIGSYS@,$HAVE_SIGSYS,;t t
12277    s,@HAVE_SIGEMT@,$HAVE_SIGEMT,;t t
12278    s,@EMACS@,$EMACS,;t t
12279    s,@EMACS_SITE_LISP@,$EMACS_SITE_LISP,;t t
12280    s,@EMACS_DEFAULT_EL@,$EMACS_DEFAULT_EL,;t t
12281    s,@INFO_DIR@,$INFO_DIR,;t t
12282    s,@TCLSH@,$TCLSH,;t t
12283    s,@TK_CONFIG_PREFIX@,$TK_CONFIG_PREFIX,;t t
12284    s,@TK_LIBRARY@,$TK_LIBRARY,;t t
12285    s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
12286    s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
12287    s,@TK_INCLUDE@,$TK_INCLUDE,;t t
12288    s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
12289    s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
12290    s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
12291    s,@TK_XLIBSW@,$TK_XLIBSW,;t t
12292    s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
12293    s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
12294    s,@TCL_LIBS@,$TCL_LIBS,;t t
12295    s,@NOTIFY@,$NOTIFY,;t t
12296    s,@BROKEN_O4_OPT@,$BROKEN_O4_OPT,;t t
12297    s,@FINAL_CFLAGS@,$FINAL_CFLAGS,;t t
12298    s,@NIFLAGS@,$NIFLAGS,;t t
12299    s,@O3FLAGS@,$O3FLAGS,;t t
12300    s,@O2FLAGS@,$O2FLAGS,;t t
12301    s,@EXTRA_LOBJS@,$EXTRA_LOBJS,;t t
12302    s,@LEADING_UNDERSCORE@,$LEADING_UNDERSCORE,;t t
12303    s,@GNU_LD@,$GNU_LD,;t t
12304    s,@use@,$use,;t t
12305    s,@LIBOBJS@,$LIBOBJS,;t t
12306    s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12307  CEOF  CEOF
 EOF  
12308    
12309  cat >> $CONFIG_STATUS <<\EOF  _ACEOF
12310    
12311  # Split the substitutions into bite-sized pieces for seds with    cat >>$CONFIG_STATUS <<\_ACEOF
12312  # small command number limits, like on Digital OSF/1 and HP-UX.    # Split the substitutions into bite-sized pieces for seds with
12313  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.
12314  ac_file=1 # Number of current file.    ac_max_sed_lines=48
12315  ac_beg=1 # First line for current file.    ac_sed_frag=1 # Number of current file.
12316  ac_end=$ac_max_sed_cmds # Line after last line for current file.    ac_beg=1 # First line for current file.
12317  ac_more_lines=:    ac_end=$ac_max_sed_lines # Line after last line for current file.
12318  ac_sed_cmds=""    ac_more_lines=:
12319  while $ac_more_lines; do    ac_sed_cmds=
12320    if test $ac_beg -gt 1; then    while $ac_more_lines; do
12321      sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file      if test $ac_beg -gt 1; then
12322    else        sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12323      sed "${ac_end}q" conftest.subs > conftest.s$ac_file      else
12324    fi        sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12325    if test ! -s conftest.s$ac_file; then      fi
12326      ac_more_lines=false      if test ! -s $tmp/subs.frag; then
12327      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"  
12328      else      else
12329        ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"        # The purpose of the label and of the branching condition is to
12330          # speed up the sed processing (if there are no `@' at all, there
12331          # is no need to browse any of the substitutions).
12332          # These are the two extra sed commands mentioned above.
12333          (echo ':t
12334      /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12335          if test -z "$ac_sed_cmds"; then
12336            ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12337          else
12338            ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12339          fi
12340          ac_sed_frag=`expr $ac_sed_frag + 1`
12341          ac_beg=$ac_end
12342          ac_end=`expr $ac_end + $ac_max_sed_lines`
12343      fi      fi
12344      ac_file=`expr $ac_file + 1`    done
12345      ac_beg=$ac_end    if test -z "$ac_sed_cmds"; then
12346      ac_end=`expr $ac_end + $ac_max_sed_cmds`      ac_sed_cmds=cat
12347    fi    fi
12348  done  fi # test -n "$CONFIG_FILES"
 if test -z "$ac_sed_cmds"; then  
   ac_sed_cmds=cat  
 fi  
 EOF  
   
 cat >> $CONFIG_STATUS <<EOF  
12349    
12350  CONFIG_FILES=\${CONFIG_FILES-"makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp "}  _ACEOF
12351  EOF  cat >>$CONFIG_STATUS <<\_ACEOF
12352  cat >> $CONFIG_STATUS <<\EOF  for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then  
12353    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12354    case "$ac_file" in    case $ac_file in
12355    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
12356         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
12357    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12358            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12359      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12360            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12361      * )   ac_file_in=$ac_file.in ;;
12362    esac    esac
12363    
12364    # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12365      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12366    # Remove last slash and all that follows it.  Not all systems have dirname.  $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12367    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`           X"$ac_file" : 'X\(//\)[^/]' \| \
12368    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then           X"$ac_file" : 'X\(//\)$' \| \
12369      # The file is in a subdirectory.           X"$ac_file" : 'X\(/\)' \| \
12370      test ! -d "$ac_dir" && mkdir "$ac_dir"           .     : '\(.\)' 2>/dev/null ||
12371      ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"  echo X"$ac_file" |
12372      # A "../" for each directory in $ac_dir_suffix.      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12373      ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12374    else            /^X\(\/\/\)$/{ s//\1/; q; }
12375      ac_dir_suffix= ac_dots=            /^X\(\/\).*/{ s//\1/; q; }
12376    fi            s/.*/./; q'`
12377      { if $as_mkdir_p; then
12378    case "$ac_given_srcdir" in      mkdir -p "$ac_dir"
12379    .)  srcdir=.    else
12380        if test -z "$ac_dots"; then top_srcdir=.      as_dir="$ac_dir"
12381        else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;      as_dirs=
12382    /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;      while test ! -d "$as_dir"; do
12383          as_dirs="$as_dir $as_dirs"
12384          as_dir=`(dirname "$as_dir") 2>/dev/null ||
12385    $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12386             X"$as_dir" : 'X\(//\)[^/]' \| \
12387             X"$as_dir" : 'X\(//\)$' \| \
12388             X"$as_dir" : 'X\(/\)' \| \
12389             .     : '\(.\)' 2>/dev/null ||
12390    echo X"$as_dir" |
12391        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12392              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12393              /^X\(\/\/\)$/{ s//\1/; q; }
12394              /^X\(\/\).*/{ s//\1/; q; }
12395              s/.*/./; q'`
12396        done
12397        test ! -n "$as_dirs" || mkdir $as_dirs
12398      fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12399    echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12400       { (exit 1); exit 1; }; }; }
12401    
12402      ac_builddir=.
12403    
12404    if test "$ac_dir" != .; then
12405      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12406      # A "../" for each directory in $ac_dir_suffix.
12407      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12408    else
12409      ac_dir_suffix= ac_top_builddir=
12410    fi
12411    
12412    case $srcdir in
12413      .)  # No --srcdir option.  We are building in place.
12414        ac_srcdir=.
12415        if test -z "$ac_top_builddir"; then
12416           ac_top_srcdir=.
12417        else
12418           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12419        fi ;;
12420      [\\/]* | ?:[\\/]* )  # Absolute path.
12421        ac_srcdir=$srcdir$ac_dir_suffix;
12422        ac_top_srcdir=$srcdir ;;
12423    *) # Relative path.    *) # Relative path.
12424      srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12425      top_srcdir="$ac_dots$ac_given_srcdir" ;;      ac_top_srcdir=$ac_top_builddir$srcdir ;;
12426    esac  esac
12427    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12428    # absolute.
12429    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12430    ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12431    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12432    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12433    
12434    
   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  
12435    
12436    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
12437    sed -e "$ac_comsub      { echo "$as_me:$LINENO: creating $ac_file" >&5
12438  s%@configure_input@%$configure_input%g  echo "$as_me: creating $ac_file" >&6;}
12439  s%@srcdir@%$srcdir%g      rm -f "$ac_file"
12440  s%@top_srcdir@%$top_srcdir%g    fi
12441  " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file    # Let's still pretend it is `configure' which instantiates (i.e., don't
12442  fi; done    # use $as_me), people would be surprised to read:
12443  rm -f conftest.s*    #    /* config.h.  Generated by config.status.  */
12444      if test x"$ac_file" = x-; then
12445        configure_input=
12446      else
12447        configure_input="$ac_file.  "
12448      fi
12449      configure_input=$configure_input"Generated from `echo $ac_file_in |
12450                                         sed 's,.*/,,'` by configure."
12451    
12452      # First look for the input files in the build tree, otherwise in the
12453      # src tree.
12454      ac_file_inputs=`IFS=:
12455        for f in $ac_file_in; do
12456          case $f in
12457          -) echo $tmp/stdin ;;
12458          [\\/$]*)
12459             # Absolute (can't be DOS-style, as IFS=:)
12460             test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12461    echo "$as_me: error: cannot find input file: $f" >&2;}
12462       { (exit 1); exit 1; }; }
12463             echo $f;;
12464          *) # Relative
12465             if test -f "$f"; then
12466               # Build tree
12467               echo $f
12468             elif test -f "$srcdir/$f"; then
12469               # Source tree
12470               echo $srcdir/$f
12471             else
12472               # /dev/null tree
12473               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12474    echo "$as_me: error: cannot find input file: $f" >&2;}
12475       { (exit 1); exit 1; }; }
12476             fi;;
12477          esac
12478        done` || { (exit 1); exit 1; }
12479    _ACEOF
12480    cat >>$CONFIG_STATUS <<_ACEOF
12481      sed "$ac_vpsub
12482    $extrasub
12483    _ACEOF
12484    cat >>$CONFIG_STATUS <<\_ACEOF
12485    :t
12486    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12487    s,@configure_input@,$configure_input,;t t
12488    s,@srcdir@,$ac_srcdir,;t t
12489    s,@abs_srcdir@,$ac_abs_srcdir,;t t
12490    s,@top_srcdir@,$ac_top_srcdir,;t t
12491    s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12492    s,@builddir@,$ac_builddir,;t t
12493    s,@abs_builddir@,$ac_abs_builddir,;t t
12494    s,@top_builddir@,$ac_top_builddir,;t t
12495    s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12496    " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12497      rm -f $tmp/stdin
12498      if test x"$ac_file" != x-; then
12499        mv $tmp/out $ac_file
12500      else
12501        cat $tmp/out
12502        rm -f $tmp/out
12503      fi
12504    
12505    done
12506    _ACEOF
12507    cat >>$CONFIG_STATUS <<\_ACEOF
12508    
12509    #
12510    # CONFIG_HEADER section.
12511    #
12512    
12513  # 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
12514  # 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.
12515  #  #
12516  # ac_d sets the value in "#define NAME VALUE" lines.  # ac_d sets the value in "#define NAME VALUE" lines.
12517  ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'  ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12518  ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'  ac_dB='[        ].*$,\1#\2'
12519  ac_dC='\3'  ac_dC=' '
12520  ac_dD='%g'  ac_dD=',;t'
12521  # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".  # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12522  ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12523  ac_uB='\([      ]\)%\1#\2define\3'  ac_uB='$,\1#\2define\3'
12524  ac_uC=' '  ac_uC=' '
12525  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'  
12526    
12527  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  
12528    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12529    case "$ac_file" in    case $ac_file in
12530    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
12531         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
12532    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12533            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12534      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12535            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12536      * )   ac_file_in=$ac_file.in ;;
12537    esac    esac
12538    
12539    echo creating $ac_file    test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12540    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  
   
 EOF  
12541    
12542  # Transform confdefs.h into a sed script conftest.vals that substitutes    # First look for the input files in the build tree, otherwise in the
12543  # the proper values into config.h.in to produce config.h.  And first:    # src tree.
12544  # Protect against being on the right side of a sed subst in config.status.    ac_file_inputs=`IFS=:
12545  # Protect against being in an unquoted here document in config.status.      for f in $ac_file_in; do
12546  rm -f conftest.vals        case $f in
12547  cat > conftest.hdr <<\EOF        -) echo $tmp/stdin ;;
12548  s/[\\&%]/\\&/g        [\\/$]*)
12549  s%[\\$`]%\\&%g           # Absolute (can't be DOS-style, as IFS=:)
12550  s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp           test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12551  s%ac_d%ac_u%gp  echo "$as_me: error: cannot find input file: $f" >&2;}
12552  s%ac_u%ac_e%gp     { (exit 1); exit 1; }; }
12553  EOF           echo $f;;
12554  sed -n -f conftest.hdr confdefs.h > conftest.vals        *) # Relative
12555  rm -f conftest.hdr           if test -f "$f"; then
12556               # Build tree
12557               echo $f
12558             elif test -f "$srcdir/$f"; then
12559               # Source tree
12560               echo $srcdir/$f
12561             else
12562               # /dev/null tree
12563               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12564    echo "$as_me: error: cannot find input file: $f" >&2;}
12565       { (exit 1); exit 1; }; }
12566             fi;;
12567          esac
12568        done` || { (exit 1); exit 1; }
12569      # Remove the trailing spaces.
12570      sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12571    
12572    _ACEOF
12573    
12574    # Transform confdefs.h into two sed scripts, `conftest.defines' and
12575    # `conftest.undefs', that substitutes the proper values into
12576    # config.h.in to produce config.h.  The first handles `#define'
12577    # templates, and the second `#undef' templates.
12578    # And first: Protect against being on the right side of a sed subst in
12579    # config.status.  Protect against being in an unquoted here document
12580    # in config.status.
12581    rm -f conftest.defines conftest.undefs
12582    # Using a here document instead of a string reduces the quoting nightmare.
12583    # Putting comments in sed scripts is not portable.
12584    #
12585    # `end' is used to avoid that the second main sed command (meant for
12586    # 0-ary CPP macros) applies to n-ary macro definitions.
12587    # See the Autoconf documentation for `clear'.
12588    cat >confdef2sed.sed <<\_ACEOF
12589    s/[\\&,]/\\&/g
12590    s,[\\$`],\\&,g
12591    t clear
12592    : clear
12593    s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12594    t end
12595    s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12596    : end
12597    _ACEOF
12598    # If some macros were called several times there might be several times
12599    # the same #defines, which is useless.  Nevertheless, we may not want to
12600    # sort them, since we want the *last* AC-DEFINE to be honored.
12601    uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12602    sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12603    rm -f confdef2sed.sed
12604    
12605  # This sed command replaces #undef with comments.  This is necessary, for  # This sed command replaces #undef with comments.  This is necessary, for
12606  # example, in the case of _POSIX_SOURCE, which is predefined and required  # example, in the case of _POSIX_SOURCE, which is predefined and required
12607  # on some systems where configure will not decide to define it.  # on some systems where configure will not decide to define it.
12608  cat >> conftest.vals <<\EOF  cat >>conftest.undefs <<\_ACEOF
12609  s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%  s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12610  EOF  _ACEOF
12611    
12612  # Break up conftest.vals because some shells have a limit on  # Break up conftest.defines because some shells have a limit on the size
12613  # the size of here documents, and old seds have small limits too.  # of here documents, and old seds have small limits too (100 cmds).
12614    echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12615    echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12616    echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12617    echo '  :' >>$CONFIG_STATUS
12618  rm -f conftest.tail  rm -f conftest.tail
12619  while :  while grep . conftest.defines >/dev/null
12620  do  do
12621    ac_lines=`grep -c . conftest.vals`    # Write a limited-size here document to $tmp/defines.sed.
12622    # grep -c gives empty output for an empty file on some AIX systems.    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12623    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi    # Speed up: don't consider the non `#define' lines.
12624    # Write a limited-size here document to conftest.frag.    echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12625    echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS    # Work around the forget-to-reset-the-flag bug.
12626    sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS    echo 't clr' >>$CONFIG_STATUS
12627      echo ': clr' >>$CONFIG_STATUS
12628      sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12629    echo 'CEOF    echo 'CEOF
12630    sed -f conftest.frag conftest.in > conftest.out    sed -f $tmp/defines.sed $tmp/in >$tmp/out
12631    rm -f conftest.in    rm -f $tmp/in
12632    mv conftest.out conftest.in    mv $tmp/out $tmp/in
12633  ' >> $CONFIG_STATUS  ' >>$CONFIG_STATUS
12634    sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail    sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12635    rm -f conftest.vals    rm -f conftest.defines
12636    mv conftest.tail conftest.vals    mv conftest.tail conftest.defines
12637  done  done
12638  rm -f conftest.vals  rm -f conftest.defines
12639    echo '  fi # grep' >>$CONFIG_STATUS
12640  cat >> $CONFIG_STATUS <<\EOF  echo >>$CONFIG_STATUS
12641    rm -f conftest.frag conftest.h  
12642    echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h  # Break up conftest.undefs because some shells have a limit on the size
12643    cat conftest.in >> conftest.h  # of here documents, and old seds have small limits too (100 cmds).
12644    rm -f conftest.in  echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12645    if cmp -s $ac_file conftest.h 2>/dev/null; then  rm -f conftest.tail
12646      echo "$ac_file is unchanged"  while grep . conftest.undefs >/dev/null
12647      rm -f conftest.h  do
12648    else    # Write a limited-size here document to $tmp/undefs.sed.
12649      # Remove last slash and all that follows it.  Not all systems have dirname.    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12650        ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`    # Speed up: don't consider the non `#undef'
12651        if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then    echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12652        # The file is in a subdirectory.    # Work around the forget-to-reset-the-flag bug.
12653        test ! -d "$ac_dir" && mkdir "$ac_dir"    echo 't clr' >>$CONFIG_STATUS
12654      fi    echo ': clr' >>$CONFIG_STATUS
12655      rm -f $ac_file    sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12656      mv conftest.h $ac_file    echo 'CEOF
12657      sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12658      rm -f $tmp/in
12659      mv $tmp/out $tmp/in
12660    ' >>$CONFIG_STATUS
12661      sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12662      rm -f conftest.undefs
12663      mv conftest.tail conftest.undefs
12664    done
12665    rm -f conftest.undefs
12666    
12667    cat >>$CONFIG_STATUS <<\_ACEOF
12668      # Let's still pretend it is `configure' which instantiates (i.e., don't
12669      # use $as_me), people would be surprised to read:
12670      #    /* config.h.  Generated by config.status.  */
12671      if test x"$ac_file" = x-; then
12672        echo "/* Generated by configure.  */" >$tmp/config.h
12673      else
12674        echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12675    fi    fi
12676  fi; done    cat $tmp/in >>$tmp/config.h
12677      rm -f $tmp/in
12678      if test x"$ac_file" != x-; then
12679        if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12680          { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12681    echo "$as_me: $ac_file is unchanged" >&6;}
12682        else
12683          ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12684    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12685             X"$ac_file" : 'X\(//\)[^/]' \| \
12686             X"$ac_file" : 'X\(//\)$' \| \
12687             X"$ac_file" : 'X\(/\)' \| \
12688             .     : '\(.\)' 2>/dev/null ||
12689    echo X"$ac_file" |
12690        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12691              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12692              /^X\(\/\/\)$/{ s//\1/; q; }
12693              /^X\(\/\).*/{ s//\1/; q; }
12694              s/.*/./; q'`
12695          { if $as_mkdir_p; then
12696        mkdir -p "$ac_dir"
12697      else
12698        as_dir="$ac_dir"
12699        as_dirs=
12700        while test ! -d "$as_dir"; do
12701          as_dirs="$as_dir $as_dirs"
12702          as_dir=`(dirname "$as_dir") 2>/dev/null ||
12703    $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12704             X"$as_dir" : 'X\(//\)[^/]' \| \
12705             X"$as_dir" : 'X\(//\)$' \| \
12706             X"$as_dir" : 'X\(/\)' \| \
12707             .     : '\(.\)' 2>/dev/null ||
12708    echo X"$as_dir" |
12709        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12710              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12711              /^X\(\/\/\)$/{ s//\1/; q; }
12712              /^X\(\/\).*/{ s//\1/; q; }
12713              s/.*/./; q'`
12714        done
12715        test ! -n "$as_dirs" || mkdir $as_dirs
12716      fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12717    echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12718       { (exit 1); exit 1; }; }; }
12719    
12720  EOF        rm -f $ac_file
12721  cat >> $CONFIG_STATUS <<EOF        mv $tmp/config.h $ac_file
12722        fi
12723      else
12724        cat $tmp/config.h
12725        rm -f $tmp/config.h
12726      fi
12727    done
12728    _ACEOF
12729    
12730  EOF  cat >>$CONFIG_STATUS <<\_ACEOF
 cat >> $CONFIG_STATUS <<\EOF  
12731    
12732  exit 0  { (exit 0); exit 0; }
12733  EOF  _ACEOF
12734  chmod +x $CONFIG_STATUS  chmod +x $CONFIG_STATUS
12735  rm -fr confdefs* $ac_clean_files  ac_clean_files=$ac_clean_files_save
12736  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1  
12737    
12738    # configure is writing to config.log, and then calls config.status.
12739    # config.status does its own redirection, appending to config.log.
12740    # Unfortunately, on DOS this fails, as config.log is still kept open
12741    # by configure, so config.status won't be able to write to it; its
12742    # output is simply discarded.  So we exec the FD to /dev/null,
12743    # effectively closing config.log, so it can be properly (re)opened and
12744    # appended to by config.status.  When coming back to configure, we
12745    # need to make the FD available again.
12746    if test "$no_create" != yes; then
12747      ac_cs_success=:
12748      ac_config_status_args=
12749      test "$silent" = yes &&
12750        ac_config_status_args="$ac_config_status_args --quiet"
12751      exec 5>/dev/null
12752      $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12753      exec 5>>config.log
12754      # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12755      # would make configure fail if this is the last instruction.
12756      $ac_cs_success || { (exit 1); exit 1; }
12757    fi
12758    
12759    echo makedefc    echo makedefc
12760    cat makedefc    cat makedefc

Legend:
Removed from v.1.107.4.1.2.2.2.48.2.3.2.1.4.2  
changed lines
  Added in v.1.107.4.1.2.2.2.48.2.3.2.1.4.2.2.1

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