/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

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

revision 1.204 by camm, Sun Nov 6 18:07:32 2005 UTC revision 1.205 by gene, Tue Nov 8 09:17:29 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.59.
 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.  
4  #  #
5    # Copyright (C) 2003 Free Software Foundation, Inc.
6  # This configure script is free software; the Free Software Foundation  # This configure script is free software; the Free Software Foundation
7  # gives unlimited permission to copy, distribute and modify it.  # gives unlimited permission to copy, distribute and modify it.
8    ## --------------------- ##
9    ## M4sh Initialization.  ##
10    ## --------------------- ##
11    
12    # Be Bourne compatible
13    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14      emulate sh
15      NULLCMD=:
16      # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17      # is contrary to our usage.  Disable this feature.
18      alias -g '${1+"$@"}'='"$@"'
19    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20      set -o posix
21    fi
22    DUALCASE=1; export DUALCASE # for MKS sh
23    
24    # Support unset when possible.
25    if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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  # Defaults:  if mkdir -p . 2>/dev/null; then
219  ac_help=    as_mkdir_p=:
220    else
221      test -d ./-p && rmdir ./-p
222      as_mkdir_p=false
223    fi
224    
225    as_executable_p="test -f"
226    
227    # Sed expression to map a string onto a valid CPP name.
228    as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229    
230    # Sed expression to map a string onto a valid variable name.
231    as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232    
233    
234    # IFS
235    # We need space, tab and new line, in precisely that order.
236    as_nl='
237    '
238    IFS="   $as_nl"
239    
240    # CDPATH.
241    $as_unset CDPATH
242    
243    
244    # Name of the host.
245    # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246    # so uname gets run too.
247    ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248    
249    exec 6>&1
250    
251    #
252    # Initializations.
253    #
254  ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
255  # Any additions from configure.in:  ac_config_libobj_dir=.
256  ac_help="$ac_help  cross_compiling=no
257   --enable-holediv=XXXX  will specify that 1/XXXX of the core  subdirs=
258                           should be used as the hole between the  MFLAGS=
259                           heap and relocatable memory area"  MAKEFLAGS=
260  ac_help="$ac_help  SHELL=${CONFIG_SHELL-/bin/sh}
261   --enable-vssize=XXXX   will compile in a value stack of size XXX"  
262  ac_help="$ac_help  # Maximum number of lines to put in a shell here document.
263   --enable-bdssize=XXXX  will compile in a binding stack of size XXX"  # This variable seems obsolete.  It should probably be removed, and
264  ac_help="$ac_help  # only ac_max_sed_lines should be used.
265   --enable-ihssize=XXXX  will compile in a invocation history stack of size XXX"  : ${ac_max_here_lines=38}
266  ac_help="$ac_help  
267   --enable-frssize=XXXX  will compile in a frame stack of size XXX"  # Identity of this package.
268  ac_help="$ac_help  PACKAGE_NAME=
269   --enable-cssize=XXXX produces executables with a C stack of size XXX"  PACKAGE_TARNAME=
270  ac_help="$ac_help  PACKAGE_VERSION=
271   --enable-machine=XXXX  will force the use of one of the definitions  PACKAGE_STRING=
272                           in h/XXXX.defs"  PACKAGE_BUGREPORT=
273  ac_help="$ac_help  
274   --enable-immfix        will enable an immediate fixnum table  # Factoring default headers for most tests.
275                           above the C stack"  ac_includes_default="\
276  ac_help="$ac_help  #include <stdio.h>
277   --enable-notify=no     will disable the automatic notification of  #if HAVE_SYS_TYPES_H
278                           gcl maintainers of successful builds/problems"  # include <sys/types.h>
279  ac_help="$ac_help  #endif
280   --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX  #if HAVE_SYS_STAT_H
281                           as place to look for tkConfig.sh and tclConfig.sh "  # include <sys/stat.h>
282  ac_help="$ac_help  #endif
283   --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX  #if STDC_HEADERS
284                           as place to look for tclConfig.sh and tclConfig.sh "  # include <stdlib.h>
285  ac_help="$ac_help  # include <stddef.h>
286   --enable-infodir=XXXX  will force the use of a INFO_DIR=XXXXX  #else
287                           as place to look for info "  # if HAVE_STDLIB_H
288  ac_help="$ac_help  #  include <stdlib.h>
289   --enable-emacsdir=XXXX will manually specify the location for elisp files "  # endif
290  ac_help="$ac_help  #endif
291   --enable-common-binary=yes forces use of lowest common denominator  #if HAVE_STRING_H
292                           instruction sets, (default is =yes)"  # if !STDC_HEADERS && HAVE_MEMORY_H
293  ac_help="$ac_help  #  include <memory.h>
294   --enable-japi=yes      will compile in support for the JAPI graphical  # endif
295                           interface if present on your system"  # include <string.h>
296  ac_help="$ac_help  #endif
297   --enable-xdr=yes       will compile in support for XDR"  #if HAVE_STRINGS_H
298  ac_help="$ac_help  # include <strings.h>
299   --enable-dlopen        uses dlopen for loading objects, which can  #endif
300                           then not be retained  in saved images "  #if HAVE_INTTYPES_H
301  ac_help="$ac_help  # include <inttypes.h>
302   --enable-statsysbfd    uses a static sytem bfd library for loading  #else
303                           and relocationing object files "  # if HAVE_STDINT_H
304  ac_help="$ac_help  #  include <stdint.h>
305   --enable-dynsysbfd     uses a dynamic shared sytem bfd library for  # endif
306                           loading and relocationing object files "  #endif
307  ac_help="$ac_help  #if HAVE_UNISTD_H
308   --enable-locbfd        uses a static bfd library built from this  # include <unistd.h>
309                           source tree for loading and relocationing object files "  #endif"
310  ac_help="$ac_help  
311   --enable-custreloc     uses custom gcl code if available for loading  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 PAGEWIDTH HAVE_LONG_LONG PARGCLDIR FLISP SYSTEM CLSTANDARD 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 TCL_STUB_LIBS NOTIFY BROKEN_O4_OPT FINAL_CFLAGS NIFLAGS O3FLAGS O2FLAGS EXTRA_LOBJS LEADING_UNDERSCORE GNU_LD LD_STACK_FLAGS use LIBOBJS LTLIBOBJS'
312                           and relocationing object files "  ac_subst_files=''
 ac_help="$ac_help  
  --enable-debug         builds gcl with -g in CFLAGS to enable running  
                          under gdb "  
 ac_help="$ac_help  
  --enable-gprof         builds gcl with -pg in CFLAGS to enable profiling  
                          with gprof "  
 ac_help="$ac_help  
  --enable-static        will link your GCL against static as opposed to  
                          shared system libraries "  
 ac_help="$ac_help  
  --enable-pic           builds gcl with -fPIC in CFLAGS "  
 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-maxpage=XXXX  will compile in a page table of size XXX  
                          (eg '--enable-maxpage=64*1024' would produce  
                          64K pages allowing 256 MB if pages are 4K each)"  
 ac_help="$ac_help  
   --enable-readline     enables command line completion via the  
                          readline library "  
 ac_help="$ac_help  
   --enable-pargcl       enables ParGCL, including MPI subset  
                          (see pargcl/doc/)"  
 ac_help="$ac_help  
   --with-mpicc=PATH       define path to mpicc (default is built-in MPI subset)"  
 ac_help="$ac_help  
   --enable-ansi         builds a large gcl aiming for ansi compliance,  
                          --disable-ansi builds the smaller  
                          traditional CLtL1 image"  
313    
314  # Initialize some variables set by options.  # Initialize some variables set by options.
315    ac_init_help=
316    ac_init_version=false
317  # The variables have the same names as the options, with  # The variables have the same names as the options, with
318  # dashes changed to underlines.  # dashes changed to underlines.
319  build=NONE  cache_file=/dev/null
 cache_file=./config.cache  
320  exec_prefix=NONE  exec_prefix=NONE
 host=NONE  
321  no_create=  no_create=
 nonopt=NONE  
322  no_recursion=  no_recursion=
323  prefix=NONE  prefix=NONE
324  program_prefix=NONE  program_prefix=NONE
# Line 119  program_transform_name=s,x,x, Line 327  program_transform_name=s,x,x,
327  silent=  silent=
328  site=  site=
329  srcdir=  srcdir=
 target=NONE  
330  verbose=  verbose=
331  x_includes=NONE  x_includes=NONE
332  x_libraries=NONE  x_libraries=NONE
333    
334    # Installation directory options.
335    # These are left unexpanded so users can "make install exec_prefix=/foo"
336    # and all the variables that are supposed to be based on exec_prefix
337    # by default will actually change.
338    # Use braces instead of parens because sh, perl, etc. also accept them.
339  bindir='${exec_prefix}/bin'  bindir='${exec_prefix}/bin'
340  sbindir='${exec_prefix}/sbin'  sbindir='${exec_prefix}/sbin'
341  libexecdir='${exec_prefix}/libexec'  libexecdir='${exec_prefix}/libexec'
# Line 136  oldincludedir='/usr/include' Line 349  oldincludedir='/usr/include'
349  infodir='${prefix}/info'  infodir='${prefix}/info'
350  mandir='${prefix}/man'  mandir='${prefix}/man'
351    
 # 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  
   
352  ac_prev=  ac_prev=
353  for ac_option  for ac_option
354  do  do
   
355    # If the previous option needs an argument, assign it.    # If the previous option needs an argument, assign it.
356    if test -n "$ac_prev"; then    if test -n "$ac_prev"; then
357      eval "$ac_prev=\$ac_option"      eval "$ac_prev=\$ac_option"
# Line 154  do Line 359  do
359      continue      continue
360    fi    fi
361    
362    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  
363    
364    # Accept the important Cygnus configure options, so we can diagnose typos.    # Accept the important Cygnus configure options, so we can diagnose typos.
365    
366    case "$ac_option" in    case $ac_option in
367    
368    -bindir | --bindir | --bindi | --bind | --bin | --bi)    -bindir | --bindir | --bindi | --bind | --bin | --bi)
369      ac_prev=bindir ;;      ac_prev=bindir ;;
370    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371      bindir="$ac_optarg" ;;      bindir=$ac_optarg ;;
372    
373    -build | --build | --buil | --bui | --bu)    -build | --build | --buil | --bui | --bu)
374      ac_prev=build ;;      ac_prev=build_alias ;;
375    -build=* | --build=* | --buil=* | --bui=* | --bu=*)    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376      build="$ac_optarg" ;;      build_alias=$ac_optarg ;;
377    
378    -cache-file | --cache-file | --cache-fil | --cache-fi \    -cache-file | --cache-file | --cache-fil | --cache-fi \
379    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380      ac_prev=cache_file ;;      ac_prev=cache_file ;;
381    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383      cache_file="$ac_optarg" ;;      cache_file=$ac_optarg ;;
384    
385      --config-cache | -C)
386        cache_file=config.cache ;;
387    
388    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389      ac_prev=datadir ;;      ac_prev=datadir ;;
390    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391    | --da=*)    | --da=*)
392      datadir="$ac_optarg" ;;      datadir=$ac_optarg ;;
393    
394    -disable-* | --disable-*)    -disable-* | --disable-*)
395      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
397      if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399      fi     { (exit 1); exit 1; }; }
400      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401      eval "enable_${ac_feature}=no" ;;      eval "enable_$ac_feature=no" ;;
402    
403    -enable-* | --enable-*)    -enable-* | --enable-*)
404      ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
406      if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408      fi     { (exit 1); exit 1; }; }
409      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410      case "$ac_option" in      case $ac_option in
411        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
413      esac      esac
414      eval "enable_${ac_feature}='$ac_optarg'" ;;      eval "enable_$ac_feature='$ac_optarg'" ;;
415    
416    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 215  do Line 420  do
420    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422    | --exec=* | --exe=* | --ex=*)    | --exec=* | --exe=* | --ex=*)
423      exec_prefix="$ac_optarg" ;;      exec_prefix=$ac_optarg ;;
424    
425    -gas | --gas | --ga | --g)    -gas | --gas | --ga | --g)
426      # Obsolete; use --with-gas.      # Obsolete; use --with-gas.
427      with_gas=yes ;;      with_gas=yes ;;
428    
429    -help | --help | --hel | --he)    -help | --help | --hel | --he | -h)
430      # Omit some internal or obsolete options to make the list less imposing.      ac_init_help=long ;;
431      # 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*)
432      cat << EOF      ac_init_help=recursive ;;
433  Usage: configure [options] [host]    -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434  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 ;;  
435    
436    -host | --host | --hos | --ho)    -host | --host | --hos | --ho)
437      ac_prev=host ;;      ac_prev=host_alias ;;
438    -host=* | --host=* | --hos=* | --ho=*)    -host=* | --host=* | --hos=* | --ho=*)
439      host="$ac_optarg" ;;      host_alias=$ac_optarg ;;
440    
441    -includedir | --includedir | --includedi | --included | --include \    -includedir | --includedir | --includedi | --included | --include \
442    | --includ | --inclu | --incl | --inc)    | --includ | --inclu | --incl | --inc)
443      ac_prev=includedir ;;      ac_prev=includedir ;;
444    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445    | --includ=* | --inclu=* | --incl=* | --inc=*)    | --includ=* | --inclu=* | --incl=* | --inc=*)
446      includedir="$ac_optarg" ;;      includedir=$ac_optarg ;;
447    
448    -infodir | --infodir | --infodi | --infod | --info | --inf)    -infodir | --infodir | --infodi | --infod | --info | --inf)
449      ac_prev=infodir ;;      ac_prev=infodir ;;
450    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451      infodir="$ac_optarg" ;;      infodir=$ac_optarg ;;
452    
453    -libdir | --libdir | --libdi | --libd)    -libdir | --libdir | --libdi | --libd)
454      ac_prev=libdir ;;      ac_prev=libdir ;;
455    -libdir=* | --libdir=* | --libdi=* | --libd=*)    -libdir=* | --libdir=* | --libdi=* | --libd=*)
456      libdir="$ac_optarg" ;;      libdir=$ac_optarg ;;
457    
458    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459    | --libexe | --libex | --libe)    | --libexe | --libex | --libe)
460      ac_prev=libexecdir ;;      ac_prev=libexecdir ;;
461    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462    | --libexe=* | --libex=* | --libe=*)    | --libexe=* | --libex=* | --libe=*)
463      libexecdir="$ac_optarg" ;;      libexecdir=$ac_optarg ;;
464    
465    -localstatedir | --localstatedir | --localstatedi | --localstated \    -localstatedir | --localstatedir | --localstatedi | --localstated \
466    | --localstate | --localstat | --localsta | --localst \    | --localstate | --localstat | --localsta | --localst \
# Line 312  EOF Line 469  EOF
469    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470    | --localstate=* | --localstat=* | --localsta=* | --localst=* \    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472      localstatedir="$ac_optarg" ;;      localstatedir=$ac_optarg ;;
473    
474    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475      ac_prev=mandir ;;      ac_prev=mandir ;;
476    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477      mandir="$ac_optarg" ;;      mandir=$ac_optarg ;;
478    
479    -nfp | --nfp | --nf)    -nfp | --nfp | --nf)
480      # Obsolete; use --without-fp.      # Obsolete; use --without-fp.
481      with_fp=no ;;      with_fp=no ;;
482    
483    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484    | --no-cr | --no-c)    | --no-cr | --no-c | -n)
485      no_create=yes ;;      no_create=yes ;;
486    
487    -no-recursion | --no-recursion | --no-recursio | --no-recursi \    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 338  EOF Line 495  EOF
495    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498      oldincludedir="$ac_optarg" ;;      oldincludedir=$ac_optarg ;;
499    
500    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501      ac_prev=prefix ;;      ac_prev=prefix ;;
502    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503      prefix="$ac_optarg" ;;      prefix=$ac_optarg ;;
504    
505    -program-prefix | --program-prefix | --program-prefi | --program-pref \    -program-prefix | --program-prefix | --program-prefi | --program-pref \
506    | --program-pre | --program-pr | --program-p)    | --program-pre | --program-pr | --program-p)
507      ac_prev=program_prefix ;;      ac_prev=program_prefix ;;
508    -program-prefix=* | --program-prefix=* | --program-prefi=* \    -program-prefix=* | --program-prefix=* | --program-prefi=* \
509    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510      program_prefix="$ac_optarg" ;;      program_prefix=$ac_optarg ;;
511    
512    -program-suffix | --program-suffix | --program-suffi | --program-suff \    -program-suffix | --program-suffix | --program-suffi | --program-suff \
513    | --program-suf | --program-su | --program-s)    | --program-suf | --program-su | --program-s)
514      ac_prev=program_suffix ;;      ac_prev=program_suffix ;;
515    -program-suffix=* | --program-suffix=* | --program-suffi=* \    -program-suffix=* | --program-suffix=* | --program-suffi=* \
516    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517      program_suffix="$ac_optarg" ;;      program_suffix=$ac_optarg ;;
518    
519    -program-transform-name | --program-transform-name \    -program-transform-name | --program-transform-name \
520    | --program-transform-nam | --program-transform-na \    | --program-transform-nam | --program-transform-na \
# Line 374  EOF Line 531  EOF
531    | --program-transfo=* | --program-transf=* \    | --program-transfo=* | --program-transf=* \
532    | --program-trans=* | --program-tran=* \    | --program-trans=* | --program-tran=* \
533    | --progr-tra=* | --program-tr=* | --program-t=*)    | --progr-tra=* | --program-tr=* | --program-t=*)
534      program_transform_name="$ac_optarg" ;;      program_transform_name=$ac_optarg ;;
535    
536    -q | -quiet | --quiet | --quie | --qui | --qu | --q \    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537    | -silent | --silent | --silen | --sile | --sil)    | -silent | --silent | --silen | --sile | --sil)
# Line 384  EOF Line 541  EOF
541      ac_prev=sbindir ;;      ac_prev=sbindir ;;
542    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543    | --sbi=* | --sb=*)    | --sbi=* | --sb=*)
544      sbindir="$ac_optarg" ;;      sbindir=$ac_optarg ;;
545    
546    -sharedstatedir | --sharedstatedir | --sharedstatedi \    -sharedstatedir | --sharedstatedir | --sharedstatedi \
547    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
# Line 395  EOF Line 552  EOF
552    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554    | --sha=* | --sh=*)    | --sha=* | --sh=*)
555      sharedstatedir="$ac_optarg" ;;      sharedstatedir=$ac_optarg ;;
556    
557    -site | --site | --sit)    -site | --site | --sit)
558      ac_prev=site ;;      ac_prev=site ;;
559    -site=* | --site=* | --sit=*)    -site=* | --site=* | --sit=*)
560      site="$ac_optarg" ;;      site=$ac_optarg ;;
561    
562    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563      ac_prev=srcdir ;;      ac_prev=srcdir ;;
564    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565      srcdir="$ac_optarg" ;;      srcdir=$ac_optarg ;;
566    
567    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568    | --syscon | --sysco | --sysc | --sys | --sy)    | --syscon | --sysco | --sysc | --sys | --sy)
569      ac_prev=sysconfdir ;;      ac_prev=sysconfdir ;;
570    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572      sysconfdir="$ac_optarg" ;;      sysconfdir=$ac_optarg ;;
573    
574    -target | --target | --targe | --targ | --tar | --ta | --t)    -target | --target | --targe | --targ | --tar | --ta | --t)
575      ac_prev=target ;;      ac_prev=target_alias ;;
576    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577      target="$ac_optarg" ;;      target_alias=$ac_optarg ;;
578    
579    -v | -verbose | --verbose | --verbos | --verbo | --verb)    -v | -verbose | --verbose | --verbos | --verbo | --verb)
580      verbose=yes ;;      verbose=yes ;;
581    
582    -version | --version | --versio | --versi | --vers)    -version | --version | --versio | --versi | --vers | -V)
583      echo "configure generated by autoconf version 2.13"      ac_init_version=: ;;
     exit 0 ;;  
584    
585    -with-* | --with-*)    -with-* | --with-*)
586      ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
588      if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
590      fi     { (exit 1); exit 1; }; }
591      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
592      case "$ac_option" in      case $ac_option in
593        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
595      esac      esac
596      eval "with_${ac_package}='$ac_optarg'" ;;      eval "with_$ac_package='$ac_optarg'" ;;
597    
598    -without-* | --without-*)    -without-* | --without-*)
599      ac_package=`echo $ac_option|sed -e 's/-*without-//'`      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
601      if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
603      fi     { (exit 1); exit 1; }; }
604      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package | sed 's/-/_/g'`
605      eval "with_${ac_package}=no" ;;      eval "with_$ac_package=no" ;;
606    
607    --x)    --x)
608      # Obsolete; use --with-x.      # Obsolete; use --with-x.
# Line 457  EOF Line 613  EOF
613      ac_prev=x_includes ;;      ac_prev=x_includes ;;
614    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616      x_includes="$ac_optarg" ;;      x_includes=$ac_optarg ;;
617    
618    -x-libraries | --x-libraries | --x-librarie | --x-librari \    -x-libraries | --x-libraries | --x-librarie | --x-librari \
619    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620      ac_prev=x_libraries ;;      ac_prev=x_libraries ;;
621    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623      x_libraries="$ac_optarg" ;;      x_libraries=$ac_optarg ;;
624    
625    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }    -*) { echo "$as_me: error: unrecognized option: $ac_option
626    Try \`$0 --help' for more information." >&2
627       { (exit 1); exit 1; }; }
628      ;;      ;;
629    
630      *=*)
631        ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632        # Reject names that are not valid shell variable names.
633        expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634          { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635       { (exit 1); exit 1; }; }
636        ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637        eval "$ac_envvar='$ac_optarg'"
638        export $ac_envvar ;;
639    
640    *)    *)
641      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then      # FIXME: should be removed in autoconf 3.0.
642        echo "configure: warning: $ac_option: invalid host type" 1>&2      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643      fi      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644      if test "x$nonopt" != xNONE; then        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645        { 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"  
646      ;;      ;;
647    
648    esac    esac
649  done  done
650    
651  if test -n "$ac_prev"; then  if test -n "$ac_prev"; then
652    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653      { echo "$as_me: error: missing argument to $ac_option" >&2
654       { (exit 1); exit 1; }; }
655  fi  fi
656    
657  trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  # Be sure to have absolute paths.
658    for ac_var in exec_prefix prefix
659  # File descriptor usage:  do
660  # 0 standard input    eval ac_val=$`echo $ac_var`
661  # 1 file creation    case $ac_val in
662  # 2 errors and warnings      [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663  # 3 some systems may open it to /dev/tty      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664  # 4 used on the Kubota Titan     { (exit 1); exit 1; }; };;
665  # 6 checking for... messages and results    esac
666  # 5 compiler messages saved in config.log  done
 if test "$silent" = yes; then  
   exec 6>/dev/null  
 else  
   exec 6>&1  
 fi  
 exec 5>./config.log  
   
 echo "\  
 This file contains any messages produced by compilers while  
 running configure, to aid debugging if configure makes a mistake.  
 " 1>&5  
667    
668  # Strip out --no-create and --no-recursion so they do not pile up.  # Be sure to have absolute paths.
669  # Also quote any args containing shell metacharacters.  for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670  ac_configure_args=                localstatedir libdir includedir oldincludedir infodir mandir
 for ac_arg  
671  do  do
672    case "$ac_arg" in    eval ac_val=$`echo $ac_var`
673    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    case $ac_val in
674    | --no-cr | --no-c) ;;      [\\/$]* | ?:[\\/]* ) ;;
675    -no-recursion | --no-recursion | --no-recursio | --no-recursi \      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    | --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" ;;  
677    esac    esac
678  done  done
679    
680  # NLS nuisances.  # There might be people who depend on the old broken behavior: `$host'
681  # Only set these to C if already set.  These must not be set unconditionally  # used to hold the argument of --host etc.
682  # because not all systems understand e.g. LANG=C (notably SCO).  # FIXME: To remove some day.
683  # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!  build=$build_alias
684  # Non-C LC_CTYPE values break the ctype check.  host=$host_alias
685  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi  target=$target_alias
686  if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi  
687  if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi  # FIXME: To remove some day.
688  if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi  if test "x$host_alias" != x; then
689      if test "x$build_alias" = x; then
690        cross_compiling=maybe
691        echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692        If a cross compiler is detected then cross compile mode will be used." >&2
693      elif test "x$build_alias" != "x$host_alias"; then
694        cross_compiling=yes
695      fi
696    fi
697    
698  # confdefs.h avoids OS command line length limits that DEFS can exceed.  ac_tool_prefix=
699  rm -rf conftest* confdefs.h  test -n "$host_alias" && ac_tool_prefix=$host_alias-
700  # AIX cpp loses on an empty file, so make sure it contains at least a newline.  
701  echo > confdefs.h  test "$silent" = yes && exec 6>/dev/null
702    
 # 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=  
703    
704  # Find the source files, if location was not specified.  # Find the source files, if location was not specified.
705  if test -z "$srcdir"; then  if test -z "$srcdir"; then
706    ac_srcdir_defaulted=yes    ac_srcdir_defaulted=yes
707    # Try the directory containing this script, then its parent.    # Try the directory containing this script, then its parent.
708    ac_prog=$0    ac_confdir=`(dirname "$0") 2>/dev/null ||
709    ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`  $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.           X"$0" : 'X\(//\)[^/]' \| \
711             X"$0" : 'X\(//\)$' \| \
712             X"$0" : 'X\(/\)' \| \
713             .     : '\(.\)' 2>/dev/null ||
714    echo X"$0" |
715        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717              /^X\(\/\/\)$/{ s//\1/; q; }
718              /^X\(\/\).*/{ s//\1/; q; }
719              s/.*/./; q'`
720    srcdir=$ac_confdir    srcdir=$ac_confdir
721    if test ! -r $srcdir/$ac_unique_file; then    if test ! -r $srcdir/$ac_unique_file; then
722      srcdir=..      srcdir=..
# Line 559  else Line 726  else
726  fi  fi
727  if test ! -r $srcdir/$ac_unique_file; then  if test ! -r $srcdir/$ac_unique_file; then
728    if test "$ac_srcdir_defaulted" = yes; then    if test "$ac_srcdir_defaulted" = yes; then
729      { 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
730       { (exit 1); exit 1; }; }
731    else    else
732      { 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
733       { (exit 1); exit 1; }; }
734    fi    fi
735  fi  fi
736  srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`  (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737      { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738       { (exit 1); exit 1; }; }
739    srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740    ac_env_build_alias_set=${build_alias+set}
741    ac_env_build_alias_value=$build_alias
742    ac_cv_env_build_alias_set=${build_alias+set}
743    ac_cv_env_build_alias_value=$build_alias
744    ac_env_host_alias_set=${host_alias+set}
745    ac_env_host_alias_value=$host_alias
746    ac_cv_env_host_alias_set=${host_alias+set}
747    ac_cv_env_host_alias_value=$host_alias
748    ac_env_target_alias_set=${target_alias+set}
749    ac_env_target_alias_value=$target_alias
750    ac_cv_env_target_alias_set=${target_alias+set}
751    ac_cv_env_target_alias_value=$target_alias
752    ac_env_CC_set=${CC+set}
753    ac_env_CC_value=$CC
754    ac_cv_env_CC_set=${CC+set}
755    ac_cv_env_CC_value=$CC
756    ac_env_CFLAGS_set=${CFLAGS+set}
757    ac_env_CFLAGS_value=$CFLAGS
758    ac_cv_env_CFLAGS_set=${CFLAGS+set}
759    ac_cv_env_CFLAGS_value=$CFLAGS
760    ac_env_LDFLAGS_set=${LDFLAGS+set}
761    ac_env_LDFLAGS_value=$LDFLAGS
762    ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763    ac_cv_env_LDFLAGS_value=$LDFLAGS
764    ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765    ac_env_CPPFLAGS_value=$CPPFLAGS
766    ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767    ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768    ac_env_CPP_set=${CPP+set}
769    ac_env_CPP_value=$CPP
770    ac_cv_env_CPP_set=${CPP+set}
771    ac_cv_env_CPP_value=$CPP
772    
773    #
774    # Report the --help message.
775    #
776    if test "$ac_init_help" = "long"; then
777      # Omit some internal or obsolete options to make the list less imposing.
778      # This message is too long to be a string in the A/UX 3.1 sh.
779      cat <<_ACEOF
780    \`configure' configures this package to adapt to many kinds of systems.
781    
782    Usage: $0 [OPTION]... [VAR=VALUE]...
783    
784    To assign environment variables (e.g., CC, CFLAGS...), specify them as
785    VAR=VALUE.  See below for descriptions of some of the useful variables.
786    
787    Defaults for the options are specified in brackets.
788    
789    Configuration:
790      -h, --help              display this help and exit
791          --help=short        display options specific to this package
792          --help=recursive    display the short help of all the included packages
793      -V, --version           display version information and exit
794      -q, --quiet, --silent   do not print \`checking...' messages
795          --cache-file=FILE   cache test results in FILE [disabled]
796      -C, --config-cache      alias for \`--cache-file=config.cache'
797      -n, --no-create         do not create output files
798          --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799    
800    _ACEOF
801    
802      cat <<_ACEOF
803    Installation directories:
804      --prefix=PREFIX         install architecture-independent files in PREFIX
805                              [$ac_default_prefix]
806      --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                              [PREFIX]
808    
809    By default, \`make install' will install all the files in
810    \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811    an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812    for instance \`--prefix=\$HOME'.
813    
814    For better control, use the options below.
815    
816    Fine tuning of the installation directories:
817      --bindir=DIR           user executables [EPREFIX/bin]
818      --sbindir=DIR          system admin executables [EPREFIX/sbin]
819      --libexecdir=DIR       program executables [EPREFIX/libexec]
820      --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821      --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822      --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823      --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824      --libdir=DIR           object code libraries [EPREFIX/lib]
825      --includedir=DIR       C header files [PREFIX/include]
826      --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827      --infodir=DIR          info documentation [PREFIX/info]
828      --mandir=DIR           man documentation [PREFIX/man]
829    _ACEOF
830    
831      cat <<\_ACEOF
832    
833    X features:
834      --x-includes=DIR    X include files are in DIR
835      --x-libraries=DIR   X library files are in DIR
836    
837    System types:
838      --build=BUILD     configure for building on BUILD [guessed]
839      --host=HOST       cross-compile to build programs to run on HOST [BUILD]
840    _ACEOF
841    fi
842    
843    if test -n "$ac_init_help"; then
844    
845      cat <<\_ACEOF
846    
847    Optional Features:
848      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
849      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
850     --enable-holediv=XXXX  will specify that 1/XXXX of the core
851                             should be used as the hole between the
852                             heap and relocatable memory area
853     --enable-vssize=XXXX   will compile in a value stack of size XXX
854     --enable-bdssize=XXXX  will compile in a binding stack of size XXX
855     --enable-ihssize=XXXX  will compile in a invocation history stack of size XXX
856     --enable-frssize=XXXX  will compile in a frame stack of size XXX
857     --enable-cssize=XXXX produces executables with a C stack of size XXX
858     --enable-machine=XXXX  will force the use of one of the definitions
859                             in h/XXXX.defs
860     --enable-immfix        will enable an immediate fixnum table
861                             above the C stack
862     --enable-notify=no     will disable the automatic notification of
863                             gcl maintainers of successful builds/problems
864     --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX
865                             as place to look for tkConfig.sh and tclConfig.sh
866     --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX
867                             as place to look for tclConfig.sh and tclConfig.sh
868     --enable-infodir=XXXX  will force the use of a INFO_DIR=XXXXX
869                             as place to look for info
870     --enable-emacsdir=XXXX will manually specify the location for elisp files
871     --enable-common-binary=yes forces use of lowest common denominator
872                             instruction sets, (default is =yes)
873     --enable-japi=yes      will compile in support for the JAPI graphical
874                             interface if present on your system
875     --enable-xdr=yes       will compile in support for XDR
876     --enable-dlopen        uses dlopen for loading objects, which can
877                             then not be retained  in saved images
878     --enable-statsysbfd    uses a static sytem bfd library for loading
879                             and relocationing object files
880     --enable-dynsysbfd     uses a dynamic shared sytem bfd library for
881                             loading and relocationing object files
882     --enable-locbfd        uses a static bfd library built from this
883                             source tree for loading and relocationing object files
884     --enable-custreloc     uses custom gcl code if available for loading
885                             and relocationing object files
886     --enable-debug         builds gcl with -g in CFLAGS to enable running
887                             under gdb
888     --enable-gprof         builds gcl with -pg in CFLAGS to enable profiling
889                             with gprof
890     --enable-static        will link your GCL against static as opposed to
891                             shared system libraries
892     --enable-pic           builds gcl with -fPIC in CFLAGS
893     --enable-dynsysgmp     will link against the system libgmp3 overriding
894                             certain functions with patched versions from the
895                             local source
896     --enable-maxpage=XXXX  will compile in a page table of size XXX
897                             (eg '--enable-maxpage=64*1024' would produce
898                             64K pages allowing 256 MB if pages are 4K each)
899     --enable-readline      enables command line completion via the
900                             readline library
901     --enable-pargcl        enables ParGCL (for parallel computing),
902                             including subset of MPI (see pargcl/doc/)
903     --enable-ansi          builds a large gcl aiming for ansi compliance,
904                             --disable-ansi builds the smaller
905                             traditional CLtL1 image
906    
907    Optional Packages:
908      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
909      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
910      --with-x                use the X Window System
911      --with-mpicc=PATH       define path to mpicc (default is built-in MPI subset)
912    
913    Some influential environment variables:
914      CC          C compiler command
915      CFLAGS      C compiler flags
916      LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
917                  nonstandard directory <lib dir>
918      CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
919                  headers in a nonstandard directory <include dir>
920      CPP         C preprocessor
921    
922    Use these variables to override the choices made by `configure' or to help
923    it to find libraries and programs with nonstandard names/locations.
924    
925    _ACEOF
926    fi
927    
928    if test "$ac_init_help" = "recursive"; then
929      # If there are subdirs, report their specific --help.
930      ac_popdir=`pwd`
931      for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
932        test -d $ac_dir || continue
933        ac_builddir=.
934    
935    if test "$ac_dir" != .; then
936      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
937      # A "../" for each directory in $ac_dir_suffix.
938      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
939    else
940      ac_dir_suffix= ac_top_builddir=
941    fi
942    
943    case $srcdir in
944      .)  # No --srcdir option.  We are building in place.
945        ac_srcdir=.
946        if test -z "$ac_top_builddir"; then
947           ac_top_srcdir=.
948        else
949           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
950        fi ;;
951      [\\/]* | ?:[\\/]* )  # Absolute path.
952        ac_srcdir=$srcdir$ac_dir_suffix;
953        ac_top_srcdir=$srcdir ;;
954      *) # Relative path.
955        ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
956        ac_top_srcdir=$ac_top_builddir$srcdir ;;
957    esac
958    
959    # Do not use `cd foo && pwd` to compute absolute paths, because
960    # the directories may not exist.
961    case `pwd` in
962    .) ac_abs_builddir="$ac_dir";;
963    *)
964      case "$ac_dir" in
965      .) ac_abs_builddir=`pwd`;;
966      [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
967      *) ac_abs_builddir=`pwd`/"$ac_dir";;
968      esac;;
969    esac
970    case $ac_abs_builddir in
971    .) ac_abs_top_builddir=${ac_top_builddir}.;;
972    *)
973      case ${ac_top_builddir}. in
974      .) ac_abs_top_builddir=$ac_abs_builddir;;
975      [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
976      *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
977      esac;;
978    esac
979    case $ac_abs_builddir in
980    .) ac_abs_srcdir=$ac_srcdir;;
981    *)
982      case $ac_srcdir in
983      .) ac_abs_srcdir=$ac_abs_builddir;;
984      [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
985      *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
986      esac;;
987    esac
988    case $ac_abs_builddir in
989    .) ac_abs_top_srcdir=$ac_top_srcdir;;
990    *)
991      case $ac_top_srcdir in
992      .) ac_abs_top_srcdir=$ac_abs_builddir;;
993      [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
994      *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
995      esac;;
996    esac
997    
998        cd $ac_dir
999        # Check for guested configure; otherwise get Cygnus style configure.
1000        if test -f $ac_srcdir/configure.gnu; then
1001          echo
1002          $SHELL $ac_srcdir/configure.gnu  --help=recursive
1003        elif test -f $ac_srcdir/configure; then
1004          echo
1005          $SHELL $ac_srcdir/configure  --help=recursive
1006        elif test -f $ac_srcdir/configure.ac ||
1007               test -f $ac_srcdir/configure.in; then
1008          echo
1009          $ac_configure --help
1010        else
1011          echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1012        fi
1013        cd "$ac_popdir"
1014      done
1015    fi
1016    
1017    test -n "$ac_init_help" && exit 0
1018    if $ac_init_version; then
1019      cat <<\_ACEOF
1020    
1021    Copyright (C) 2003 Free Software Foundation, Inc.
1022    This configure script is free software; the Free Software Foundation
1023    gives unlimited permission to copy, distribute and modify it.
1024    _ACEOF
1025      exit 0
1026    fi
1027    exec 5>config.log
1028    cat >&5 <<_ACEOF
1029    This file contains any messages produced by compilers while
1030    running configure, to aid debugging if configure makes a mistake.
1031    
1032    It was created by $as_me, which was
1033    generated by GNU Autoconf 2.59.  Invocation command line was
1034    
1035      $ $0 $@
1036    
1037    _ACEOF
1038    {
1039    cat <<_ASUNAME
1040    ## --------- ##
1041    ## Platform. ##
1042    ## --------- ##
1043    
1044    hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1045    uname -m = `(uname -m) 2>/dev/null || echo unknown`
1046    uname -r = `(uname -r) 2>/dev/null || echo unknown`
1047    uname -s = `(uname -s) 2>/dev/null || echo unknown`
1048    uname -v = `(uname -v) 2>/dev/null || echo unknown`
1049    
1050    /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1051    /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1052    
1053    /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1054    /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1055    /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1056    hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1057    /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1058    /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1059    /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1060    
1061    _ASUNAME
1062    
1063    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1064    for as_dir in $PATH
1065    do
1066      IFS=$as_save_IFS
1067      test -z "$as_dir" && as_dir=.
1068      echo "PATH: $as_dir"
1069    done
1070    
1071    } >&5
1072    
1073    cat >&5 <<_ACEOF
1074    
1075    
1076    ## ----------- ##
1077    ## Core tests. ##
1078    ## ----------- ##
1079    
1080    _ACEOF
1081    
1082    
1083    # Keep a trace of the command line.
1084    # Strip out --no-create and --no-recursion so they do not pile up.
1085    # Strip out --silent because we don't want to record it for future runs.
1086    # Also quote any args containing shell meta-characters.
1087    # Make two passes to allow for proper duplicate-argument suppression.
1088    ac_configure_args=
1089    ac_configure_args0=
1090    ac_configure_args1=
1091    ac_sep=
1092    ac_must_keep_next=false
1093    for ac_pass in 1 2
1094    do
1095      for ac_arg
1096      do
1097        case $ac_arg in
1098        -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1099        -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100        | -silent | --silent | --silen | --sile | --sil)
1101          continue ;;
1102        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1103          ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1104        esac
1105        case $ac_pass in
1106        1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1107        2)
1108          ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1109          if test $ac_must_keep_next = true; then
1110            ac_must_keep_next=false # Got value, back to normal.
1111          else
1112            case $ac_arg in
1113              *=* | --config-cache | -C | -disable-* | --disable-* \
1114              | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1115              | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1116              | -with-* | --with-* | -without-* | --without-* | --x)
1117                case "$ac_configure_args0 " in
1118                  "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1119                esac
1120                ;;
1121              -* ) ac_must_keep_next=true ;;
1122            esac
1123          fi
1124          ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1125          # Get rid of the leading space.
1126          ac_sep=" "
1127          ;;
1128        esac
1129      done
1130    done
1131    $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1132    $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1133    
1134    # When interrupted or exit'd, cleanup temporary files, and complete
1135    # config.log.  We remove comments because anyway the quotes in there
1136    # would cause problems or look ugly.
1137    # WARNING: Be sure not to use single quotes in there, as some shells,
1138    # such as our DU 5.0 friend, will then `close' the trap.
1139    trap 'exit_status=$?
1140      # Save into config.log some information that might help in debugging.
1141      {
1142        echo
1143    
1144        cat <<\_ASBOX
1145    ## ---------------- ##
1146    ## Cache variables. ##
1147    ## ---------------- ##
1148    _ASBOX
1149        echo
1150        # The following way of writing the cache mishandles newlines in values,
1151    {
1152      (set) 2>&1 |
1153        case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1154        *ac_space=\ *)
1155          sed -n \
1156            "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1157              s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1158          ;;
1159        *)
1160          sed -n \
1161            "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1162          ;;
1163        esac;
1164    }
1165        echo
1166    
1167        cat <<\_ASBOX
1168    ## ----------------- ##
1169    ## Output variables. ##
1170    ## ----------------- ##
1171    _ASBOX
1172        echo
1173        for ac_var in $ac_subst_vars
1174        do
1175          eval ac_val=$`echo $ac_var`
1176          echo "$ac_var='"'"'$ac_val'"'"'"
1177        done | sort
1178        echo
1179    
1180        if test -n "$ac_subst_files"; then
1181          cat <<\_ASBOX
1182    ## ------------- ##
1183    ## Output files. ##
1184    ## ------------- ##
1185    _ASBOX
1186          echo
1187          for ac_var in $ac_subst_files
1188          do
1189            eval ac_val=$`echo $ac_var`
1190            echo "$ac_var='"'"'$ac_val'"'"'"
1191          done | sort
1192          echo
1193        fi
1194    
1195        if test -s confdefs.h; then
1196          cat <<\_ASBOX
1197    ## ----------- ##
1198    ## confdefs.h. ##
1199    ## ----------- ##
1200    _ASBOX
1201          echo
1202          sed "/^$/d" confdefs.h | sort
1203          echo
1204        fi
1205        test "$ac_signal" != 0 &&
1206          echo "$as_me: caught signal $ac_signal"
1207        echo "$as_me: exit $exit_status"
1208      } >&5
1209      rm -f core *.core &&
1210      rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1211        exit $exit_status
1212         ' 0
1213    for ac_signal in 1 2 13 15; do
1214      trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1215    done
1216    ac_signal=0
1217    
1218    # confdefs.h avoids OS command line length limits that DEFS can exceed.
1219    rm -rf conftest* confdefs.h
1220    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1221    echo >confdefs.h
1222    
1223    # Predefined preprocessor variables.
1224    
1225    cat >>confdefs.h <<_ACEOF
1226    #define PACKAGE_NAME "$PACKAGE_NAME"
1227    _ACEOF
1228    
1229    
1230    cat >>confdefs.h <<_ACEOF
1231    #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1232    _ACEOF
1233    
1234    
1235    cat >>confdefs.h <<_ACEOF
1236    #define PACKAGE_VERSION "$PACKAGE_VERSION"
1237    _ACEOF
1238    
1239    
1240    cat >>confdefs.h <<_ACEOF
1241    #define PACKAGE_STRING "$PACKAGE_STRING"
1242    _ACEOF
1243    
1244    
1245    cat >>confdefs.h <<_ACEOF
1246    #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1247    _ACEOF
1248    
1249    
1250    # Let the site file select an alternate cache file if it wants to.
1251  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
1252  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
1253    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 576  if test -z "$CONFIG_SITE"; then Line 1258  if test -z "$CONFIG_SITE"; then
1258  fi  fi
1259  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
1260    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
1261      echo "loading site script $ac_site_file"      { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1262    echo "$as_me: loading site script $ac_site_file" >&6;}
1263        sed 's/^/| /' "$ac_site_file" >&5
1264      . "$ac_site_file"      . "$ac_site_file"
1265    fi    fi
1266  done  done
1267    
1268  if test -r "$cache_file"; then  if test -r "$cache_file"; then
1269    echo "loading cache $cache_file"    # Some versions of bash will fail to source /dev/null (special
1270    . $cache_file    # files actually), so we avoid doing that.
1271      if test -f "$cache_file"; then
1272        { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1273    echo "$as_me: loading cache $cache_file" >&6;}
1274        case $cache_file in
1275          [\\/]* | ?:[\\/]* ) . $cache_file;;
1276          *)                      . ./$cache_file;;
1277        esac
1278      fi
1279  else  else
1280    echo "creating cache $cache_file"    { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1281    > $cache_file  echo "$as_me: creating cache $cache_file" >&6;}
1282      >$cache_file
1283    fi
1284    
1285    # Check that the precious variables saved in the cache have kept the same
1286    # value.
1287    ac_cache_corrupted=false
1288    for ac_var in `(set) 2>&1 |
1289                   sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1290      eval ac_old_set=\$ac_cv_env_${ac_var}_set
1291      eval ac_new_set=\$ac_env_${ac_var}_set
1292      eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1293      eval ac_new_val="\$ac_env_${ac_var}_value"
1294      case $ac_old_set,$ac_new_set in
1295        set,)
1296          { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1297    echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1298          ac_cache_corrupted=: ;;
1299        ,set)
1300          { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1301    echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1302          ac_cache_corrupted=: ;;
1303        ,);;
1304        *)
1305          if test "x$ac_old_val" != "x$ac_new_val"; then
1306            { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1307    echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1308            { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1309    echo "$as_me:   former value:  $ac_old_val" >&2;}
1310            { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1311    echo "$as_me:   current value: $ac_new_val" >&2;}
1312            ac_cache_corrupted=:
1313          fi;;
1314      esac
1315      # Pass precious variables to config.status.
1316      if test "$ac_new_set" = set; then
1317        case $ac_new_val in
1318        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1319          ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1320        *) ac_arg=$ac_var=$ac_new_val ;;
1321        esac
1322        case " $ac_configure_args " in
1323          *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1324          *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1325        esac
1326      fi
1327    done
1328    if $ac_cache_corrupted; then
1329      { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1330    echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1331      { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1332    echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1333       { (exit 1); exit 1; }; }
1334  fi  fi
1335    
1336  ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
1337  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
1338  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1339  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'
1340  cross_compiling=$ac_cv_prog_cc_cross  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1341    
1342  ac_exeext=  
1343  ac_objext=o  
1344  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  
1345    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  
1346    if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then  
1347      ac_n= ac_c='  
1348  ' ac_t='        '  
   else  
     ac_n=-n ac_c= ac_t=  
   fi  
 else  
   ac_n= ac_c='\c' ac_t=  
 fi  
1349    
1350    
1351    
1352    
1353    
1354    
1355    
1356    
1357    
1358    
1359    
1360              ac_config_headers="$ac_config_headers h/gclincl.h"
1361    
1362    
1363  VERSION=`cat majvers`.`cat minvers`  VERSION=`cat majvers`.`cat minvers`
1364    
1365    
# Line 625  VERSION=`cat majvers`.`cat minvers` Line 1372  VERSION=`cat majvers`.`cat minvers`
1372  # Check whether --enable-holediv or --disable-holediv was given.  # Check whether --enable-holediv or --disable-holediv was given.
1373  if test "${enable_holediv+set}" = set; then  if test "${enable_holediv+set}" = set; then
1374    enableval="$enable_holediv"    enableval="$enable_holediv"
1375    :  
1376  else  else
1377    enable_holediv=4    enable_holediv=4
1378  fi  fi;
1379    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
1380  #define HOLEDIV $enable_holediv  #define HOLEDIV $enable_holediv
1381  EOF  _ACEOF
1382    
1383    
1384    
1385  # Check whether --enable-vssize or --disable-vssize was given.  # Check whether --enable-vssize or --disable-vssize was given.
1386  if test "${enable_vssize+set}" = set; then  if test "${enable_vssize+set}" = set; then
1387    enableval="$enable_vssize"    enableval="$enable_vssize"
1388    :  
1389  else  else
1390    enable_vssize=131072    enable_vssize=131072
1391  fi  fi;
1392    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
1393  #define VSSIZE $enable_vssize  #define VSSIZE $enable_vssize
1394  EOF  _ACEOF
1395    
1396    
1397    
1398  # Check whether --enable-bdssize or --disable-bdssize was given.  # Check whether --enable-bdssize or --disable-bdssize was given.
1399  if test "${enable_bdssize+set}" = set; then  if test "${enable_bdssize+set}" = set; then
1400    enableval="$enable_bdssize"    enableval="$enable_bdssize"
1401    :  
1402  else  else
1403    enable_bdssize=2048    enable_bdssize=2048
1404  fi  fi;
1405    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
1406  #define BDSSIZE $enable_bdssize  #define BDSSIZE $enable_bdssize
1407  EOF  _ACEOF
1408    
1409    
1410    
1411  # Check whether --enable-ihssize or --disable-ihssize was given.  # Check whether --enable-ihssize or --disable-ihssize was given.
1412  if test "${enable_ihssize+set}" = set; then  if test "${enable_ihssize+set}" = set; then
1413    enableval="$enable_ihssize"    enableval="$enable_ihssize"
1414    :  
1415  else  else
1416    enable_ihssize=4096    enable_ihssize=4096
1417  fi  fi;
1418    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
1419  #define IHSSIZE $enable_ihssize  #define IHSSIZE $enable_ihssize
1420  EOF  _ACEOF
1421    
1422    
1423  # Check whether --enable-frssize or --disable-frssize was given.  # Check whether --enable-frssize or --disable-frssize was given.
1424  if test "${enable_frssize+set}" = set; then  if test "${enable_frssize+set}" = set; then
1425    enableval="$enable_frssize"    enableval="$enable_frssize"
1426    :  
1427  else  else
1428    enable_frssize=4096    enable_frssize=4096
1429  fi  fi;
1430    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
1431  #define FRSSIZE $enable_frssize  #define FRSSIZE $enable_frssize
1432  EOF  _ACEOF
1433    
1434    
1435  # Check whether --enable-cssize or --disable-cssize was given.  # Check whether --enable-cssize or --disable-cssize was given.
1436  if test "${enable_cssize+set}" = set; then  if test "${enable_cssize+set}" = set; then
1437    enableval="$enable_cssize"    enableval="$enable_cssize"
1438    :  
1439  else  else
1440    enable_cssize=-1    enable_cssize=-1
1441  fi  fi; #AC_DEFINE_UNQUOTED(CSSIZE,$enable_cssize)
1442  #AC_DEFINE_UNQUOTED(CSSIZE,$enable_cssize)  
     
1443  # Check whether --enable-machine or --disable-machine was given.  # Check whether --enable-machine or --disable-machine was given.
1444  if test "${enable_machine+set}" = set; then  if test "${enable_machine+set}" = set; then
1445    enableval="$enable_machine"    enableval="$enable_machine"
1446    enable_machine=$enableval    enable_machine=$enableval
1447  else  else
1448    enable_machine=""    enable_machine=""
1449  fi  fi;
   
1450    
1451  # Check whether --enable-immfix or --disable-immfix was given.  # Check whether --enable-immfix or --disable-immfix was given.
1452  if test "${enable_immfix+set}" = set; then  if test "${enable_immfix+set}" = set; then
1453    enableval="$enable_immfix"    enableval="$enable_immfix"
1454    :  
1455  else  else
1456    enable_immfix=yes    enable_immfix=yes
1457  fi  fi;
   
1458    
1459  #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)] ,
1460  #[use_gmp=$enableval],[use_gmp="yes"])  #[use_gmp=$enableval],[use_gmp="yes"])
# Line 728  if test "${enable_notify+set}" = set; th Line 1467  if test "${enable_notify+set}" = set; th
1467    enable_notify=$enableval    enable_notify=$enableval
1468  else  else
1469    enable_notify="yes"    enable_notify="yes"
1470  fi  fi;
   
1471    
1472  # Check whether --enable-tkconfig or --disable-tkconfig was given.  # Check whether --enable-tkconfig or --disable-tkconfig was given.
1473  if test "${enable_tkconfig+set}" = set; then  if test "${enable_tkconfig+set}" = set; then
# Line 737  if test "${enable_tkconfig+set}" = set; Line 1475  if test "${enable_tkconfig+set}" = set;
1475    TK_CONFIG_PREFIX=$enableval    TK_CONFIG_PREFIX=$enableval
1476  else  else
1477    TK_CONFIG_PREFIX="unknown"    TK_CONFIG_PREFIX="unknown"
1478  fi  fi;
   
1479    
1480    
1481  # Check whether --enable-tclconfig or --disable-tclconfig was given.  # Check whether --enable-tclconfig or --disable-tclconfig was given.
# Line 747  if test "${enable_tclconfig+set}" = set; Line 1484  if test "${enable_tclconfig+set}" = set;
1484    TCL_CONFIG_PREFIX=$enableval    TCL_CONFIG_PREFIX=$enableval
1485  else  else
1486    TCL_CONFIG_PREFIX="unknown"    TCL_CONFIG_PREFIX="unknown"
1487  fi  fi;
   
1488    
1489  # Check whether --enable-infodir or --disable-infodir was given.  # Check whether --enable-infodir or --disable-infodir was given.
1490  if test "${enable_infodir+set}" = set; then  if test "${enable_infodir+set}" = set; then
# Line 756  if test "${enable_infodir+set}" = set; t Line 1492  if test "${enable_infodir+set}" = set; t
1492    INFO_DIR=$enableval    INFO_DIR=$enableval
1493  else  else
1494    INFO_DIR="unknown"    INFO_DIR="unknown"
1495  fi  fi;
   
1496  INFO_DIR=`eval echo $INFO_DIR/`  INFO_DIR=`eval echo $INFO_DIR/`
1497    
1498  # Check whether --enable-emacsdir or --disable-emacsdir was given.  # Check whether --enable-emacsdir or --disable-emacsdir was given.
# Line 766  if test "${enable_emacsdir+set}" = set; Line 1501  if test "${enable_emacsdir+set}" = set;
1501    EMACS_SITE_LISP=$enableval    EMACS_SITE_LISP=$enableval
1502  else  else
1503    EMACS_SITE_LISP="unknown"    EMACS_SITE_LISP="unknown"
1504  fi  fi;
   
1505  EMACS_SITE_LISP=`eval echo $EMACS_SITE_LISP`  EMACS_SITE_LISP=`eval echo $EMACS_SITE_LISP`
1506    
1507  # Check whether --enable-common-binary or --disable-common-binary was given.  # Check whether --enable-common-binary or --disable-common-binary was given.
# Line 776  if test "${enable_common_binary+set}" = Line 1510  if test "${enable_common_binary+set}" =
1510    use_common_binary=$enableval    use_common_binary=$enableval
1511  else  else
1512    use_common_binary="yes"    use_common_binary="yes"
1513  fi  fi;
   
1514    
1515  # Check whether --enable-japi or --disable-japi was given.  # Check whether --enable-japi or --disable-japi was given.
1516  if test "${enable_japi+set}" = set; then  if test "${enable_japi+set}" = set; then
# Line 785  if test "${enable_japi+set}" = set; then Line 1518  if test "${enable_japi+set}" = set; then
1518    try_japi=$enableval    try_japi=$enableval
1519  else  else
1520    try_japi="no"    try_japi="no"
1521  fi  fi;
   
1522    
1523  # Check whether --enable-xdr or --disable-xdr was given.  # Check whether --enable-xdr or --disable-xdr was given.
1524  if test "${enable_xdr+set}" = set; then  if test "${enable_xdr+set}" = set; then
# Line 794  if test "${enable_xdr+set}" = set; then Line 1526  if test "${enable_xdr+set}" = set; then
1526    try_xdr=$enableval    try_xdr=$enableval
1527  else  else
1528    try_xdr="no"    try_xdr="no"
1529  fi  fi;
   
1530    
1531  #  #
1532  # Host information  # Host information
1533  #  #
1534    
1535    
# Line 812  for ac_dir in $srcdir $srcdir/.. $srcdir Line 1543  for ac_dir in $srcdir $srcdir/.. $srcdir
1543      ac_aux_dir=$ac_dir      ac_aux_dir=$ac_dir
1544      ac_install_sh="$ac_aux_dir/install.sh -c"      ac_install_sh="$ac_aux_dir/install.sh -c"
1545      break      break
1546      elif test -f $ac_dir/shtool; then
1547        ac_aux_dir=$ac_dir
1548        ac_install_sh="$ac_aux_dir/shtool install -c"
1549        break
1550    fi    fi
1551  done  done
1552  if test -z "$ac_aux_dir"; then  if test -z "$ac_aux_dir"; then
1553    { 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
1554  fi  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1555  ac_config_guess=$ac_aux_dir/config.guess     { (exit 1); exit 1; }; }
1556  ac_config_sub=$ac_aux_dir/config.sub  fi
1557  ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.  ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558    ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559    ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560    
1561  # Make sure we can run config.sub.  # Make sure we can run config.sub.
1562  if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :  $ac_config_sub sun4 >/dev/null 2>&1 ||
1563  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
1564  fi  echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1565       { (exit 1); exit 1; }; }
1566    
1567    echo "$as_me:$LINENO: checking build system type" >&5
1568    echo $ECHO_N "checking build system type... $ECHO_C" >&6
1569    if test "${ac_cv_build+set}" = set; then
1570      echo $ECHO_N "(cached) $ECHO_C" >&6
1571    else
1572      ac_cv_build_alias=$build_alias
1573    test -z "$ac_cv_build_alias" &&
1574      ac_cv_build_alias=`$ac_config_guess`
1575    test -z "$ac_cv_build_alias" &&
1576      { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1577    echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1578       { (exit 1); exit 1; }; }
1579    ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1580      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1581    echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1582       { (exit 1); exit 1; }; }
1583    
1584    fi
1585    echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1586    echo "${ECHO_T}$ac_cv_build" >&6
1587    build=$ac_cv_build
1588    build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589    build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590    build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591    
1592    
1593    echo "$as_me:$LINENO: checking host system type" >&5
1594    echo $ECHO_N "checking host system type... $ECHO_C" >&6
1595    if test "${ac_cv_host+set}" = set; then
1596      echo $ECHO_N "(cached) $ECHO_C" >&6
1597    else
1598      ac_cv_host_alias=$host_alias
1599    test -z "$ac_cv_host_alias" &&
1600      ac_cv_host_alias=$ac_cv_build_alias
1601    ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1602      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1603    echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1604       { (exit 1); exit 1; }; }
1605    
1606    fi
1607    echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1608    echo "${ECHO_T}$ac_cv_host" >&6
1609    host=$ac_cv_host
1610    host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1611    host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1612    host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1613    
 echo $ac_n "checking host system type""... $ac_c" 1>&6  
 echo "configure:832: checking host system type" >&5  
   
 host_alias=$host  
 case "$host_alias" in  
 NONE)  
   case $nonopt in  
   NONE)  
     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :  
     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }  
     fi ;;  
   *) host_alias=$nonopt ;;  
   esac ;;  
 esac  
   
 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`  
 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  
 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  
 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  
 echo "$ac_t""$host" 1>&6  
1614    
1615  canonical=$host  canonical=$host
1616  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]}'`
1617  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]}'`
1618  cat >> confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
1619  #define HOST_CPU "`echo $host_cpu | awk '{print toupper($0)}'`"  #define HOST_CPU "`echo $host_cpu | awk '{print toupper($0)}'`"
1620  EOF  _ACEOF
1621    
1622  cat >> confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
1623  #define HOST_KERNEL "`echo $my_host_kernel | awk '{print toupper($0)}'`"  #define HOST_KERNEL "`echo $my_host_kernel | awk '{print toupper($0)}'`"
1624  EOF  _ACEOF
1625    
1626  if test "$my_host_system" != "" ; then  if test "$my_host_system" != "" ; then
1627          cat >> confdefs.h <<EOF          cat >>confdefs.h <<_ACEOF
1628  #define HOST_SYSTEM "`echo $my_host_system | awk '{print toupper($0)}'`"  #define HOST_SYSTEM "`echo $my_host_system | awk '{print toupper($0)}'`"
1629  EOF  _ACEOF
1630    
1631  fi  fi
1632  echo "$ac_t""host=$host" 1>&6  echo "$as_me:$LINENO: result: host=$host" >&5
1633    echo "${ECHO_T}host=$host" >&6
1634    
1635  PROCESSOR_FLAGS=${PROCESSOR_FLAGS:-""}  PROCESSOR_FLAGS=${PROCESSOR_FLAGS:-""}
1636  LD_STACK_FLAGS=""  LD_STACK_FLAGS=""
# Line 919  case $canonical in Line 1684  case $canonical in
1684    
1685       powerpc-*-darwin*)       powerpc-*-darwin*)
1686          use=powerpc-macosx;;          use=powerpc-macosx;;
1687        
1688       alpha-dec-osf)       alpha-dec-osf)
1689       use=alpha-osf1;;       use=alpha-osf1;;
1690    
# Line 950  case $canonical in Line 1715  case $canonical in
1715             IRIX3*)             IRIX3*)
1716              use=sgi4d;;              use=sgi4d;;
1717         esac ;;         esac ;;
1718    
1719    
1720       m68k-apple-aux*)       m68k-apple-aux*)
1721       use=mac2;;       use=mac2;;
# Line 1041  case $canonical in Line 1806  case $canonical in
1806          # 'ld -Z' means disable W^X          # 'ld -Z' means disable W^X
1807          TLDFLAGS="$TLDFLAGS -Z"          TLDFLAGS="$TLDFLAGS -Z"
1808          use=FreeBSD;;          use=FreeBSD;;
1809      
1810  esac  esac
1811    
1812    
# Line 1057  def_custreloc="no" Line 1822  def_custreloc="no"
1822  def_locbfd="no"  def_locbfd="no"
1823  def_pic="no";  def_pic="no";
1824  def_static="no";  def_static="no";
1825  case $use in  case $use in
1826       *linux)       *linux)
1827          ln -snf linux.defs h/$use.defs;          ln -snf linux.defs h/$use.defs;
1828          case $use in          case $use in
# Line 1067  case $use in Line 1832  case $use in
1832  #               mips*)  #               mips*)
1833  #                       def_dlopen="yes" ; def_statsysbfd="no" ;;  #                       def_dlopen="yes" ; def_statsysbfd="no" ;;
1834  # 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
1835  # on these architectures -- CM                    # on these architectures -- CM
1836                  ia64*)                  ia64*)
1837                          def_dlopen="yes" ; def_statsysbfd="no" ;;                          def_dlopen="yes" ; def_statsysbfd="no" ;;
1838                  hppa*)                  hppa*)
# Line 1082  esac Line 1847  esac
1847  # Check whether --enable-dlopen or --disable-dlopen was given.  # Check whether --enable-dlopen or --disable-dlopen was given.
1848  if test "${enable_dlopen+set}" = set; then  if test "${enable_dlopen+set}" = set; then
1849    enableval="$enable_dlopen"    enableval="$enable_dlopen"
1850    :  
1851  else  else
1852    enable_dlopen="$def_dlopen"    enable_dlopen="$def_dlopen"
1853  fi  fi;
   
1854  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.
1855  if test "${enable_statsysbfd+set}" = set; then  if test "${enable_statsysbfd+set}" = set; then
1856    enableval="$enable_statsysbfd"    enableval="$enable_statsysbfd"
1857    :  
1858  else  else
1859    enable_statsysbfd="$def_statsysbfd"    enable_statsysbfd="$def_statsysbfd"
1860  fi  fi;
   
1861  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.
1862  if test "${enable_dynsysbfd+set}" = set; then  if test "${enable_dynsysbfd+set}" = set; then
1863    enableval="$enable_dynsysbfd"    enableval="$enable_dynsysbfd"
1864    :  
1865  else  else
1866    enable_dynsysbfd="no"    enable_dynsysbfd="no"
1867  fi  fi;
   
1868  # Check whether --enable-locbfd or --disable-locbfd was given.  # Check whether --enable-locbfd or --disable-locbfd was given.
1869  if test "${enable_locbfd+set}" = set; then  if test "${enable_locbfd+set}" = set; then
1870    enableval="$enable_locbfd"    enableval="$enable_locbfd"
1871    :  
1872  else  else
1873    enable_locbfd="$def_locbfd"    enable_locbfd="$def_locbfd"
1874  fi  fi;
   
1875  # Check whether --enable-custreloc or --disable-custreloc was given.  # Check whether --enable-custreloc or --disable-custreloc was given.
1876  if test "${enable_custreloc+set}" = set; then  if test "${enable_custreloc+set}" = set; then
1877    enableval="$enable_custreloc"    enableval="$enable_custreloc"
1878    :  
1879  else  else
1880    enable_custreloc="$def_custreloc"    enable_custreloc="$def_custreloc"
1881  fi  fi;
   
1882  # Check whether --enable-debug or --disable-debug was given.  # Check whether --enable-debug or --disable-debug was given.
1883  if test "${enable_debug+set}" = set; then  if test "${enable_debug+set}" = set; then
1884    enableval="$enable_debug"    enableval="$enable_debug"
1885    :  
1886  else  else
1887    enable_debug="$def_debug"    enable_debug="$def_debug"
1888  fi  fi;
   
1889  # Check whether --enable-gprof or --disable-gprof was given.  # Check whether --enable-gprof or --disable-gprof was given.
1890  if test "${enable_gprof+set}" = set; then  if test "${enable_gprof+set}" = set; then
1891    enableval="$enable_gprof"    enableval="$enable_gprof"
1892    :  
1893  else  else
1894    enable_gprof="no"    enable_gprof="no"
1895  fi  fi;
   
1896  # Check whether --enable-static or --disable-static was given.  # Check whether --enable-static or --disable-static was given.
1897  if test "${enable_static+set}" = set; then  if test "${enable_static+set}" = set; then
1898    enableval="$enable_static"    enableval="$enable_static"
1899    enable_static=$enableval    enable_static=$enableval
1900  else  else
1901    enable_static="$def_static"    enable_static="$def_static"
1902  fi  fi;
   
1903  # Check whether --enable-pic or --disable-pic was given.  # Check whether --enable-pic or --disable-pic was given.
1904  if test "${enable_pic+set}" = set; then  if test "${enable_pic+set}" = set; then
1905    enableval="$enable_pic"    enableval="$enable_pic"
1906    :  
1907  else  else
1908    enable_pic="$def_pic"    enable_pic="$def_pic"
1909  fi  fi;
   
1910    
1911  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.
1912  if test "${enable_dynsysgmp+set}" = set; then  if test "${enable_dynsysgmp+set}" = set; then
1913    enableval="$enable_dynsysgmp"    enableval="$enable_dynsysgmp"
1914    :  
1915  else  else
1916    enable_dynsysgmp="yes"    enable_dynsysgmp="yes"
1917  fi  fi;
   
1918    
1919  load_opt="0"  load_opt="0"
1920  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
# Line 1204  fi Line 1959  fi
1959  TLIBS=""  TLIBS=""
1960  if test "$enable_static" = "yes" ; then  if test "$enable_static" = "yes" ; then
1961     TLIBS="-static -Wl,-zmuldefs $TLIBS";     TLIBS="-static -Wl,-zmuldefs $TLIBS";
1962     cat >> confdefs.h <<\EOF     cat >>confdefs.h <<\_ACEOF
1963  #define STATIC_LINKING 1  #define STATIC_LINKING 1
1964  EOF  _ACEOF
1965    
1966  fi  fi
1967    
# Line 1214  fi Line 1969  fi
1969  ##  ##
1970  #if test "$use" = "unknown" ; then  #if test "$use" = "unknown" ; then
1971  #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"`
1972  #echo got canonical=$canonical, but was not recognized.  #echo got canonical=$canonical, but was not recognized.
1973  #echo Unable to guess type to use.  Try one of  #echo Unable to guess type to use.  Try one of
1974  #exit(1)  #exit(1)
1975  #fi  #fi
1976    
1977  echo "$ac_t""use=$use" 1>&6      echo "$as_me:$LINENO: result: use=$use" >&5
1978    echo "${ECHO_T}use=$use" >&6
1979    
1980    
1981  #  #
# Line 1235  if test "$LDFLAGS" = "" ; then Line 1991  if test "$LDFLAGS" = "" ; then
1991          LDFLAGS=" "          LDFLAGS=" "
1992  fi  fi
1993    
1994  # Extract the first word of "gcc", so it can be a program name with args.  ac_ext=c
1995    ac_cpp='$CPP $CPPFLAGS'
1996    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999    if test -n "$ac_tool_prefix"; then
2000      # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2001    set dummy ${ac_tool_prefix}gcc; ac_word=$2
2002    echo "$as_me:$LINENO: checking for $ac_word" >&5
2003    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004    if test "${ac_cv_prog_CC+set}" = set; then
2005      echo $ECHO_N "(cached) $ECHO_C" >&6
2006    else
2007      if test -n "$CC"; then
2008      ac_cv_prog_CC="$CC" # Let the user override the test.
2009    else
2010    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011    for as_dir in $PATH
2012    do
2013      IFS=$as_save_IFS
2014      test -z "$as_dir" && as_dir=.
2015      for ac_exec_ext in '' $ac_executable_extensions; do
2016      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017        ac_cv_prog_CC="${ac_tool_prefix}gcc"
2018        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019        break 2
2020      fi
2021    done
2022    done
2023    
2024    fi
2025    fi
2026    CC=$ac_cv_prog_CC
2027    if test -n "$CC"; then
2028      echo "$as_me:$LINENO: result: $CC" >&5
2029    echo "${ECHO_T}$CC" >&6
2030    else
2031      echo "$as_me:$LINENO: result: no" >&5
2032    echo "${ECHO_T}no" >&6
2033    fi
2034    
2035    fi
2036    if test -z "$ac_cv_prog_CC"; then
2037      ac_ct_CC=$CC
2038      # Extract the first word of "gcc", so it can be a program name with args.
2039  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
2040  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
2041  echo "configure:1242: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2043    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2044    else
2045      if test -n "$ac_ct_CC"; then
2046      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2047    else
2048    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049    for as_dir in $PATH
2050    do
2051      IFS=$as_save_IFS
2052      test -z "$as_dir" && as_dir=.
2053      for ac_exec_ext in '' $ac_executable_extensions; do
2054      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055        ac_cv_prog_ac_ct_CC="gcc"
2056        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057        break 2
2058      fi
2059    done
2060    done
2061    
2062    fi
2063    fi
2064    ac_ct_CC=$ac_cv_prog_ac_ct_CC
2065    if test -n "$ac_ct_CC"; then
2066      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2067    echo "${ECHO_T}$ac_ct_CC" >&6
2068    else
2069      echo "$as_me:$LINENO: result: no" >&5
2070    echo "${ECHO_T}no" >&6
2071    fi
2072    
2073      CC=$ac_ct_CC
2074    else
2075      CC="$ac_cv_prog_CC"
2076    fi
2077    
2078    if test -z "$CC"; then
2079      if test -n "$ac_tool_prefix"; then
2080      # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2081    set dummy ${ac_tool_prefix}cc; ac_word=$2
2082    echo "$as_me:$LINENO: checking for $ac_word" >&5
2083    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084    if test "${ac_cv_prog_CC+set}" = set; then
2085      echo $ECHO_N "(cached) $ECHO_C" >&6
2086  else  else
2087    if test -n "$CC"; then    if test -n "$CC"; then
2088    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
2089  else  else
2090    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091    ac_dummy="$PATH"  for as_dir in $PATH
2092    for ac_dir in $ac_dummy; do  do
2093      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2094      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2095        ac_cv_prog_CC="gcc"    for ac_exec_ext in '' $ac_executable_extensions; do
2096        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097      fi      ac_cv_prog_CC="${ac_tool_prefix}cc"
2098    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099    IFS="$ac_save_ifs"      break 2
2100      fi
2101    done
2102    done
2103    
2104  fi  fi
2105  fi  fi
2106  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
2107  if test -n "$CC"; then  if test -n "$CC"; then
2108    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
2109    echo "${ECHO_T}$CC" >&6
2110    else
2111      echo "$as_me:$LINENO: result: no" >&5
2112    echo "${ECHO_T}no" >&6
2113    fi
2114    
2115    fi
2116    if test -z "$ac_cv_prog_CC"; then
2117      ac_ct_CC=$CC
2118      # Extract the first word of "cc", so it can be a program name with args.
2119    set dummy cc; ac_word=$2
2120    echo "$as_me:$LINENO: checking for $ac_word" >&5
2121    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2122    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2123      echo $ECHO_N "(cached) $ECHO_C" >&6
2124  else  else
2125    echo "$ac_t""no" 1>&6    if test -n "$ac_ct_CC"; then
2126      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2127    else
2128    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129    for as_dir in $PATH
2130    do
2131      IFS=$as_save_IFS
2132      test -z "$as_dir" && as_dir=.
2133      for ac_exec_ext in '' $ac_executable_extensions; do
2134      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2135        ac_cv_prog_ac_ct_CC="cc"
2136        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137        break 2
2138      fi
2139    done
2140    done
2141    
2142    fi
2143    fi
2144    ac_ct_CC=$ac_cv_prog_ac_ct_CC
2145    if test -n "$ac_ct_CC"; then
2146      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2147    echo "${ECHO_T}$ac_ct_CC" >&6
2148    else
2149      echo "$as_me:$LINENO: result: no" >&5
2150    echo "${ECHO_T}no" >&6
2151  fi  fi
2152    
2153      CC=$ac_ct_CC
2154    else
2155      CC="$ac_cv_prog_CC"
2156    fi
2157    
2158    fi
2159  if test -z "$CC"; then  if test -z "$CC"; then
2160    # 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.
2161  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
2162  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
2163  echo "configure:1272: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_CC+set}" = set; then
2165    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2166  else  else
2167    if test -n "$CC"; then    if test -n "$CC"; then
2168    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
2169  else  else
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
2170    ac_prog_rejected=no    ac_prog_rejected=no
2171    ac_dummy="$PATH"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172    for ac_dir in $ac_dummy; do  for as_dir in $PATH
2173      test -z "$ac_dir" && ac_dir=.  do
2174      if test -f $ac_dir/$ac_word; then    IFS=$as_save_IFS
2175        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then    test -z "$as_dir" && as_dir=.
2176          ac_prog_rejected=yes    for ac_exec_ext in '' $ac_executable_extensions; do
2177          continue    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178        fi      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2179        ac_cv_prog_CC="cc"         ac_prog_rejected=yes
2180        break         continue
2181      fi       fi
2182    done      ac_cv_prog_CC="cc"
2183    IFS="$ac_save_ifs"      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184        break 2
2185      fi
2186    done
2187    done
2188    
2189  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
2190    # 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.
2191    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
2192    shift    shift
2193    if test $# -gt 0; then    if test $# != 0; then
2194      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
2195      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
2196      # 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.
2197      shift      shift
2198      set dummy "$ac_dir/$ac_word" "$@"      ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
     shift  
     ac_cv_prog_CC="$@"  
2199    fi    fi
2200  fi  fi
2201  fi  fi
2202  fi  fi
2203  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
2204  if test -n "$CC"; then  if test -n "$CC"; then
2205    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
2206    echo "${ECHO_T}$CC" >&6
2207  else  else
2208    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2209    echo "${ECHO_T}no" >&6
2210  fi  fi
2211    
2212    if test -z "$CC"; then  fi
2213      case "`uname -s`" in  if test -z "$CC"; then
2214      *win32* | *WIN32*)    if test -n "$ac_tool_prefix"; then
2215        # Extract the first word of "cl", so it can be a program name with args.    for ac_prog in cl
2216  set dummy cl; ac_word=$2    do
2217  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.
2218  echo "configure:1323: checking for $ac_word" >&5  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2219  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo "$as_me:$LINENO: checking for $ac_word" >&5
2220    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221    if test "${ac_cv_prog_CC+set}" = set; then
2222      echo $ECHO_N "(cached) $ECHO_C" >&6
2223  else  else
2224    if test -n "$CC"; then    if test -n "$CC"; then
2225    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
2226  else  else
2227    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228    ac_dummy="$PATH"  for as_dir in $PATH
2229    for ac_dir in $ac_dummy; do  do
2230      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2231      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2232        ac_cv_prog_CC="cl"    for ac_exec_ext in '' $ac_executable_extensions; do
2233        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234      fi      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2235    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236    IFS="$ac_save_ifs"      break 2
2237      fi
2238    done
2239    done
2240    
2241  fi  fi
2242  fi  fi
2243  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
2244  if test -n "$CC"; then  if test -n "$CC"; then
2245    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
2246    echo "${ECHO_T}$CC" >&6
2247  else  else
2248    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2249    echo "${ECHO_T}no" >&6
2250  fi  fi
2251   ;;  
2252      esac      test -n "$CC" && break
2253      done
2254    fi
2255    if test -z "$CC"; then
2256      ac_ct_CC=$CC
2257      for ac_prog in cl
2258    do
2259      # Extract the first word of "$ac_prog", so it can be a program name with args.
2260    set dummy $ac_prog; ac_word=$2
2261    echo "$as_me:$LINENO: checking for $ac_word" >&5
2262    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264      echo $ECHO_N "(cached) $ECHO_C" >&6
2265    else
2266      if test -n "$ac_ct_CC"; then
2267      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2268    else
2269    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270    for as_dir in $PATH
2271    do
2272      IFS=$as_save_IFS
2273      test -z "$as_dir" && as_dir=.
2274      for ac_exec_ext in '' $ac_executable_extensions; do
2275      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276        ac_cv_prog_ac_ct_CC="$ac_prog"
2277        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278        break 2
2279    fi    fi
2280    test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }  done
2281    done
2282    
2283    fi
2284    fi
2285    ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286    if test -n "$ac_ct_CC"; then
2287      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288    echo "${ECHO_T}$ac_ct_CC" >&6
2289    else
2290      echo "$as_me:$LINENO: result: no" >&5
2291    echo "${ECHO_T}no" >&6
2292    fi
2293    
2294      test -n "$ac_ct_CC" && break
2295    done
2296    
2297      CC=$ac_ct_CC
2298  fi  fi
2299    
2300  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  fi
 echo "configure:1355: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  
2301    
 ac_ext=c  
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
 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  
2302    
2303  cat > conftest.$ac_ext << EOF  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2304    See \`config.log' for more details." >&5
2305    echo "$as_me: error: no acceptable C compiler found in \$PATH
2306    See \`config.log' for more details." >&2;}
2307       { (exit 1); exit 1; }; }
2308    
2309    # Provide some information about the compiler.
2310    echo "$as_me:$LINENO:" \
2311         "checking for C compiler version" >&5
2312    ac_compiler=`set X $ac_compile; echo $2`
2313    { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2314      (eval $ac_compiler --version </dev/null >&5) 2>&5
2315      ac_status=$?
2316      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317      (exit $ac_status); }
2318    { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2319      (eval $ac_compiler -v </dev/null >&5) 2>&5
2320      ac_status=$?
2321      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322      (exit $ac_status); }
2323    { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2324      (eval $ac_compiler -V </dev/null >&5) 2>&5
2325      ac_status=$?
2326      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327      (exit $ac_status); }
2328    
2329    cat >conftest.$ac_ext <<_ACEOF
2330    /* confdefs.h.  */
2331    _ACEOF
2332    cat confdefs.h >>conftest.$ac_ext
2333    cat >>conftest.$ac_ext <<_ACEOF
2334    /* end confdefs.h.  */
2335    
2336  #line 1366 "configure"  int
2337  #include "confdefs.h"  main ()
2338    {
2339    
2340  main(){return(0);}    ;
2341  EOF    return 0;
2342  if { (eval echo configure:1371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
2343    ac_cv_prog_cc_works=yes  _ACEOF
2344    # If we can't run a trivial program, we are probably using a cross compiler.  ac_clean_files_save=$ac_clean_files
2345    if (./conftest; exit) 2>/dev/null; then  ac_clean_files="$ac_clean_files a.out a.exe b.out"
2346      ac_cv_prog_cc_cross=no  # Try to create an executable without -o first, disregard a.out.
2347    # It will help us diagnose broken compilers, and finding out an intuition
2348    # of exeext.
2349    echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2350    echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2351    ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2352    if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2353      (eval $ac_link_default) 2>&5
2354      ac_status=$?
2355      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356      (exit $ac_status); }; then
2357      # Find the output, starting from the most likely.  This scheme is
2358    # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2359    # resort.
2360    
2361    # Be careful to initialize this variable, since it used to be cached.
2362    # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2363    ac_cv_exeext=
2364    # b.out is created by i960 compilers.
2365    for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2366    do
2367      test -f "$ac_file" || continue
2368      case $ac_file in
2369        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2370            ;;
2371        conftest.$ac_ext )
2372            # This is the source file.
2373            ;;
2374        [ab].out )
2375            # We found the default executable, but exeext='' is most
2376            # certainly right.
2377            break;;
2378        *.* )
2379            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2380            # FIXME: I believe we export ac_cv_exeext for Libtool,
2381            # but it would be cool to find out if it's true.  Does anybody
2382            # maintain Libtool? --akim.
2383            export ac_cv_exeext
2384            break;;
2385        * )
2386            break;;
2387      esac
2388    done
2389    else
2390      echo "$as_me: failed program was:" >&5
2391    sed 's/^/| /' conftest.$ac_ext >&5
2392    
2393    { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2394    See \`config.log' for more details." >&5
2395    echo "$as_me: error: C compiler cannot create executables
2396    See \`config.log' for more details." >&2;}
2397       { (exit 77); exit 77; }; }
2398    fi
2399    
2400    ac_exeext=$ac_cv_exeext
2401    echo "$as_me:$LINENO: result: $ac_file" >&5
2402    echo "${ECHO_T}$ac_file" >&6
2403    
2404    # Check the compiler produces executables we can run.  If not, either
2405    # the compiler is broken, or we cross compile.
2406    echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2407    echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2408    # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2409    # If not cross compiling, check that we can run a simple program.
2410    if test "$cross_compiling" != yes; then
2411      if { ac_try='./$ac_file'
2412      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413      (eval $ac_try) 2>&5
2414      ac_status=$?
2415      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416      (exit $ac_status); }; }; then
2417        cross_compiling=no
2418    else    else
2419      ac_cv_prog_cc_cross=yes      if test "$cross_compiling" = maybe; then
2420            cross_compiling=yes
2421        else
2422            { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2423    If you meant to cross compile, use \`--host'.
2424    See \`config.log' for more details." >&5
2425    echo "$as_me: error: cannot run C compiled programs.
2426    If you meant to cross compile, use \`--host'.
2427    See \`config.log' for more details." >&2;}
2428       { (exit 1); exit 1; }; }
2429        fi
2430    fi    fi
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   ac_cv_prog_cc_works=no  
2431  fi  fi
2432  rm -fr conftest*  echo "$as_me:$LINENO: result: yes" >&5
2433  ac_ext=c  echo "${ECHO_T}yes" >&6
2434  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
2435  ac_cpp='$CPP $CPPFLAGS'  rm -f a.out a.exe conftest$ac_cv_exeext b.out
2436  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_clean_files=$ac_clean_files_save
2437  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
2438  cross_compiling=$ac_cv_prog_cc_cross  # the compiler is broken, or we cross compile.
2439    echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2440  echo "$ac_t""$ac_cv_prog_cc_works" 1>&6  echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2441  if test $ac_cv_prog_cc_works = no; then  echo "$as_me:$LINENO: result: $cross_compiling" >&5
2442    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }  echo "${ECHO_T}$cross_compiling" >&6
2443  fi  
2444  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
2445  echo "configure:1397: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2446  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447  cross_compiling=$ac_cv_prog_cc_cross    (eval $ac_link) 2>&5
2448      ac_status=$?
2449  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  echo "configure:1402: checking whether we are using GNU C" >&5    (exit $ac_status); }; then
2451  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then    # If both `conftest.exe' and `conftest' are `present' (well, observable)
2452    echo $ac_n "(cached) $ac_c" 1>&6  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2453  else  # work properly (i.e., refer to `conftest.exe'), while it won't with
2454    cat > conftest.c <<EOF  # `rm'.
2455  #ifdef __GNUC__  for ac_file in conftest.exe conftest conftest.*; do
2456    yes;    test -f "$ac_file" || continue
2457  #endif    case $ac_file in
2458  EOF      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2459  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2460    ac_cv_prog_gcc=yes            export ac_cv_exeext
2461              break;;
2462        * ) break;;
2463      esac
2464    done
2465  else  else
2466    ac_cv_prog_gcc=no    { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2467  fi  See \`config.log' for more details." >&5
2468  fi  echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2469    See \`config.log' for more details." >&2;}
2470       { (exit 1); exit 1; }; }
2471    fi
2472    
2473    rm -f conftest$ac_cv_exeext
2474    echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2475    echo "${ECHO_T}$ac_cv_exeext" >&6
2476    
2477    rm -f conftest.$ac_ext
2478    EXEEXT=$ac_cv_exeext
2479    ac_exeext=$EXEEXT
2480    echo "$as_me:$LINENO: checking for suffix of object files" >&5
2481    echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2482    if test "${ac_cv_objext+set}" = set; then
2483      echo $ECHO_N "(cached) $ECHO_C" >&6
2484    else
2485      cat >conftest.$ac_ext <<_ACEOF
2486    /* confdefs.h.  */
2487    _ACEOF
2488    cat confdefs.h >>conftest.$ac_ext
2489    cat >>conftest.$ac_ext <<_ACEOF
2490    /* end confdefs.h.  */
2491    
2492  echo "$ac_t""$ac_cv_prog_gcc" 1>&6  int
2493    main ()
2494    {
2495    
2496  if test $ac_cv_prog_gcc = yes; then    ;
2497    GCC=yes    return 0;
2498    }
2499    _ACEOF
2500    rm -f conftest.o conftest.obj
2501    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502      (eval $ac_compile) 2>&5
2503      ac_status=$?
2504      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505      (exit $ac_status); }; then
2506      for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2507      case $ac_file in
2508        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2509        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2510           break;;
2511      esac
2512    done
2513  else  else
2514    GCC=    echo "$as_me: failed program was:" >&5
2515  fi  sed 's/^/| /' conftest.$ac_ext >&5
2516    
2517  ac_test_CFLAGS="${CFLAGS+set}"  { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2518  ac_save_CFLAGS="$CFLAGS"  See \`config.log' for more details." >&5
2519  CFLAGS=  echo "$as_me: error: cannot compute suffix of object files: cannot compile
2520  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  See \`config.log' for more details." >&2;}
2521  echo "configure:1430: checking whether ${CC-cc} accepts -g" >&5     { (exit 1); exit 1; }; }
2522  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  fi
2523    echo $ac_n "(cached) $ac_c" 1>&6  
2524  else  rm -f conftest.$ac_cv_objext conftest.$ac_ext
2525    echo 'void f(){}' > conftest.c  fi
2526  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2527    echo "${ECHO_T}$ac_cv_objext" >&6
2528    OBJEXT=$ac_cv_objext
2529    ac_objext=$OBJEXT
2530    echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2531    echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2532    if test "${ac_cv_c_compiler_gnu+set}" = set; then
2533      echo $ECHO_N "(cached) $ECHO_C" >&6
2534    else
2535      cat >conftest.$ac_ext <<_ACEOF
2536    /* confdefs.h.  */
2537    _ACEOF
2538    cat confdefs.h >>conftest.$ac_ext
2539    cat >>conftest.$ac_ext <<_ACEOF
2540    /* end confdefs.h.  */
2541    
2542    int
2543    main ()
2544    {
2545    #ifndef __GNUC__
2546           choke me
2547    #endif
2548    
2549      ;
2550      return 0;
2551    }
2552    _ACEOF
2553    rm -f conftest.$ac_objext
2554    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555      (eval $ac_compile) 2>conftest.er1
2556      ac_status=$?
2557      grep -v '^ *+' conftest.er1 >conftest.err
2558      rm -f conftest.er1
2559      cat conftest.err >&5
2560      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561      (exit $ac_status); } &&
2562             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2563      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564      (eval $ac_try) 2>&5
2565      ac_status=$?
2566      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567      (exit $ac_status); }; } &&
2568             { ac_try='test -s conftest.$ac_objext'
2569      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570      (eval $ac_try) 2>&5
2571      ac_status=$?
2572      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573      (exit $ac_status); }; }; then
2574      ac_compiler_gnu=yes
2575    else
2576      echo "$as_me: failed program was:" >&5
2577    sed 's/^/| /' conftest.$ac_ext >&5
2578    
2579    ac_compiler_gnu=no
2580    fi
2581    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2582    ac_cv_c_compiler_gnu=$ac_compiler_gnu
2583    
2584    fi
2585    echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2586    echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2587    GCC=`test $ac_compiler_gnu = yes && echo yes`
2588    ac_test_CFLAGS=${CFLAGS+set}
2589    ac_save_CFLAGS=$CFLAGS
2590    CFLAGS="-g"
2591    echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2592    echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2593    if test "${ac_cv_prog_cc_g+set}" = set; then
2594      echo $ECHO_N "(cached) $ECHO_C" >&6
2595    else
2596      cat >conftest.$ac_ext <<_ACEOF
2597    /* confdefs.h.  */
2598    _ACEOF
2599    cat confdefs.h >>conftest.$ac_ext
2600    cat >>conftest.$ac_ext <<_ACEOF
2601    /* end confdefs.h.  */
2602    
2603    int
2604    main ()
2605    {
2606    
2607      ;
2608      return 0;
2609    }
2610    _ACEOF
2611    rm -f conftest.$ac_objext
2612    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613      (eval $ac_compile) 2>conftest.er1
2614      ac_status=$?
2615      grep -v '^ *+' conftest.er1 >conftest.err
2616      rm -f conftest.er1
2617      cat conftest.err >&5
2618      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619      (exit $ac_status); } &&
2620             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2621      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622      (eval $ac_try) 2>&5
2623      ac_status=$?
2624      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625      (exit $ac_status); }; } &&
2626             { ac_try='test -s conftest.$ac_objext'
2627      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628      (eval $ac_try) 2>&5
2629      ac_status=$?
2630      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631      (exit $ac_status); }; }; then
2632    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
2633  else  else
2634    ac_cv_prog_cc_g=no    echo "$as_me: failed program was:" >&5
2635  fi  sed 's/^/| /' conftest.$ac_ext >&5
 rm -f conftest*  
2636    
2637    ac_cv_prog_cc_g=no
2638  fi  fi
2639    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2640  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6  fi
2641    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2642    echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2643  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
2644    CFLAGS="$ac_save_CFLAGS"    CFLAGS=$ac_save_CFLAGS
2645  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
2646    if test "$GCC" = yes; then    if test "$GCC" = yes; then
2647      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 1456  else Line 2655  else
2655      CFLAGS=      CFLAGS=
2656    fi    fi
2657  fi  fi
2658    echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2659    echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2660    if test "${ac_cv_prog_cc_stdc+set}" = set; then
2661      echo $ECHO_N "(cached) $ECHO_C" >&6
2662    else
2663      ac_cv_prog_cc_stdc=no
2664    ac_save_CC=$CC
2665    cat >conftest.$ac_ext <<_ACEOF
2666    /* confdefs.h.  */
2667    _ACEOF
2668    cat confdefs.h >>conftest.$ac_ext
2669    cat >>conftest.$ac_ext <<_ACEOF
2670    /* end confdefs.h.  */
2671    #include <stdarg.h>
2672    #include <stdio.h>
2673    #include <sys/types.h>
2674    #include <sys/stat.h>
2675    /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2676    struct buf { int x; };
2677    FILE * (*rcsopen) (struct buf *, struct stat *, int);
2678    static char *e (p, i)
2679         char **p;
2680         int i;
2681    {
2682      return p[i];
2683    }
2684    static char *f (char * (*g) (char **, int), char **p, ...)
2685    {
2686      char *s;
2687      va_list v;
2688      va_start (v,p);
2689      s = g (p, va_arg (v,int));
2690      va_end (v);
2691      return s;
2692    }
2693    
2694    /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2695       function prototypes and stuff, but not '\xHH' hex character constants.
2696       These don't provoke an error unfortunately, instead are silently treated
2697       as 'x'.  The following induces an error, until -std1 is added to get
2698       proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2699       array size at least.  It's necessary to write '\x00'==0 to get something
2700       that's true only with -std1.  */
2701    int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2702    
2703    int test (int i, double x);
2704    struct s1 {int (*f) (int a);};
2705    struct s2 {int (*f) (double a);};
2706    int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2707    int argc;
2708    char **argv;
2709    int
2710    main ()
2711    {
2712    return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2713      ;
2714      return 0;
2715    }
2716    _ACEOF
2717    # Don't try gcc -ansi; that turns off useful extensions and
2718    # breaks some systems' header files.
2719    # AIX                   -qlanglvl=ansi
2720    # Ultrix and OSF/1      -std1
2721    # HP-UX 10.20 and later -Ae
2722    # HP-UX older versions  -Aa -D_HPUX_SOURCE
2723    # SVR4                  -Xc -D__EXTENSIONS__
2724    for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725    do
2726      CC="$ac_save_CC $ac_arg"
2727      rm -f conftest.$ac_objext
2728    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729      (eval $ac_compile) 2>conftest.er1
2730      ac_status=$?
2731      grep -v '^ *+' conftest.er1 >conftest.err
2732      rm -f conftest.er1
2733      cat conftest.err >&5
2734      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735      (exit $ac_status); } &&
2736             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2737      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738      (eval $ac_try) 2>&5
2739      ac_status=$?
2740      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741      (exit $ac_status); }; } &&
2742             { ac_try='test -s conftest.$ac_objext'
2743      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744      (eval $ac_try) 2>&5
2745      ac_status=$?
2746      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747      (exit $ac_status); }; }; then
2748      ac_cv_prog_cc_stdc=$ac_arg
2749    break
2750    else
2751      echo "$as_me: failed program was:" >&5
2752    sed 's/^/| /' conftest.$ac_ext >&5
2753    
2754    fi
2755    rm -f conftest.err conftest.$ac_objext
2756    done
2757    rm -f conftest.$ac_ext conftest.$ac_objext
2758    CC=$ac_save_CC
2759    
2760    fi
2761    
2762    case "x$ac_cv_prog_cc_stdc" in
2763      x|xno)
2764        echo "$as_me:$LINENO: result: none needed" >&5
2765    echo "${ECHO_T}none needed" >&6 ;;
2766      *)
2767        echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2768    echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2769        CC="$CC $ac_cv_prog_cc_stdc" ;;
2770    esac
2771    
2772    # Some people use a C++ compiler to compile C.  Since we use `exit',
2773    # in C++ we need to declare it.  In case someone uses the same compiler
2774    # for both compiling C and C++ we need to have the C++ compiler decide
2775    # the declaration of exit, since it's the most demanding environment.
2776    cat >conftest.$ac_ext <<_ACEOF
2777    #ifndef __cplusplus
2778      choke me
2779    #endif
2780    _ACEOF
2781    rm -f conftest.$ac_objext
2782    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783      (eval $ac_compile) 2>conftest.er1
2784      ac_status=$?
2785      grep -v '^ *+' conftest.er1 >conftest.err
2786      rm -f conftest.er1
2787      cat conftest.err >&5
2788      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789      (exit $ac_status); } &&
2790             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2791      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792      (eval $ac_try) 2>&5
2793      ac_status=$?
2794      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795      (exit $ac_status); }; } &&
2796             { ac_try='test -s conftest.$ac_objext'
2797      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798      (eval $ac_try) 2>&5
2799      ac_status=$?
2800      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801      (exit $ac_status); }; }; then
2802      for ac_declaration in \
2803       '' \
2804       'extern "C" void std::exit (int) throw (); using std::exit;' \
2805       'extern "C" void std::exit (int); using std::exit;' \
2806       'extern "C" void exit (int) throw ();' \
2807       'extern "C" void exit (int);' \
2808       'void exit (int);'
2809    do
2810      cat >conftest.$ac_ext <<_ACEOF
2811    /* confdefs.h.  */
2812    _ACEOF
2813    cat confdefs.h >>conftest.$ac_ext
2814    cat >>conftest.$ac_ext <<_ACEOF
2815    /* end confdefs.h.  */
2816    $ac_declaration
2817    #include <stdlib.h>
2818    int
2819    main ()
2820    {
2821    exit (42);
2822      ;
2823      return 0;
2824    }
2825    _ACEOF
2826    rm -f conftest.$ac_objext
2827    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828      (eval $ac_compile) 2>conftest.er1
2829      ac_status=$?
2830      grep -v '^ *+' conftest.er1 >conftest.err
2831      rm -f conftest.er1
2832      cat conftest.err >&5
2833      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834      (exit $ac_status); } &&
2835             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2836      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837      (eval $ac_try) 2>&5
2838      ac_status=$?
2839      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840      (exit $ac_status); }; } &&
2841             { ac_try='test -s conftest.$ac_objext'
2842      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843      (eval $ac_try) 2>&5
2844      ac_status=$?
2845      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846      (exit $ac_status); }; }; then
2847      :
2848    else
2849      echo "$as_me: failed program was:" >&5
2850    sed 's/^/| /' conftest.$ac_ext >&5
2851    
2852    continue
2853    fi
2854    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855      cat >conftest.$ac_ext <<_ACEOF
2856    /* confdefs.h.  */
2857    _ACEOF
2858    cat confdefs.h >>conftest.$ac_ext
2859    cat >>conftest.$ac_ext <<_ACEOF
2860    /* end confdefs.h.  */
2861    $ac_declaration
2862    int
2863    main ()
2864    {
2865    exit (42);
2866      ;
2867      return 0;
2868    }
2869    _ACEOF
2870    rm -f conftest.$ac_objext
2871    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872      (eval $ac_compile) 2>conftest.er1
2873      ac_status=$?
2874      grep -v '^ *+' conftest.er1 >conftest.err
2875      rm -f conftest.er1
2876      cat conftest.err >&5
2877      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878      (exit $ac_status); } &&
2879             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2880      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881      (eval $ac_try) 2>&5
2882      ac_status=$?
2883      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884      (exit $ac_status); }; } &&
2885             { ac_try='test -s conftest.$ac_objext'
2886      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887      (eval $ac_try) 2>&5
2888      ac_status=$?
2889      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890      (exit $ac_status); }; }; then
2891      break
2892    else
2893      echo "$as_me: failed program was:" >&5
2894    sed 's/^/| /' conftest.$ac_ext >&5
2895    
2896    fi
2897    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2898    done
2899    rm -f conftest*
2900    if test -n "$ac_declaration"; then
2901      echo '#ifdef __cplusplus' >>confdefs.h
2902      echo $ac_declaration      >>confdefs.h
2903      echo '#endif'             >>confdefs.h
2904    fi
2905    
2906    else
2907      echo "$as_me: failed program was:" >&5
2908    sed 's/^/| /' conftest.$ac_ext >&5
2909    
2910  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  fi
2911  echo "configure:1462: checking how to run the C preprocessor" >&5  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2912    ac_ext=c
2913    ac_cpp='$CPP $CPPFLAGS'
2914    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917    
2918    ac_ext=c
2919    ac_cpp='$CPP $CPPFLAGS'
2920    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923    echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2924    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2925  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
2926  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
2927    CPP=    CPP=
2928  fi  fi
2929  if test -z "$CPP"; then  if test -z "$CPP"; then
2930  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then    if test "${ac_cv_prog_CPP+set}" = set; then
2931    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2932  else  else
2933      # This must be in double quotes, not single quotes, because CPP may get        # Double quotes because CPP needs to be expanded
2934    # substituted into the Makefile and "${CC-cc}" will confuse make.      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2935    CPP="${CC-cc} -E"      do
2936          ac_preproc_ok=false
2937    for ac_c_preproc_warn_flag in '' yes
2938    do
2939      # Use a header file that comes with gcc, so configuring glibc
2940      # with a fresh cross-compiler works.
2941      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2942      # <limits.h> exists even on freestanding compilers.
2943    # 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,
2944    # not just through cpp.    # not just through cpp. "Syntax error" is here to catch this case.
2945    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2946  #line 1477 "configure"  /* confdefs.h.  */
2947  #include "confdefs.h"  _ACEOF
2948  #include <assert.h>  cat confdefs.h >>conftest.$ac_ext
2949  Syntax Error  cat >>conftest.$ac_ext <<_ACEOF
2950  EOF  /* end confdefs.h.  */
2951  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  #ifdef __STDC__
2952  { (eval echo configure:1483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  # include <limits.h>
2953  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  #else
2954  if test -z "$ac_err"; then  # include <assert.h>
2955    :  #endif
2956                         Syntax error
2957    _ACEOF
2958    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2959      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2960      ac_status=$?
2961      grep -v '^ *+' conftest.er1 >conftest.err
2962      rm -f conftest.er1
2963      cat conftest.err >&5
2964      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965      (exit $ac_status); } >/dev/null; then
2966      if test -s conftest.err; then
2967        ac_cpp_err=$ac_c_preproc_warn_flag
2968        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2969      else
2970        ac_cpp_err=
2971      fi
2972  else  else
2973    echo "$ac_err" >&5    ac_cpp_err=yes
2974    echo "configure: failed program was:" >&5  fi
2975    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 1494 "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:1500: \"$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  
2976    :    :
2977  else  else
2978    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
2979    echo "configure: failed program was:" >&5  sed 's/^/| /' conftest.$ac_ext >&5
2980    cat conftest.$ac_ext >&5  
2981    rm -rf conftest*    # Broken: fails on valid input.
2982    CPP="${CC-cc} -nologo -E"  continue
2983    cat > conftest.$ac_ext <<EOF  fi
2984  #line 1511 "configure"  rm -f conftest.err conftest.$ac_ext
2985  #include "confdefs.h"  
2986  #include <assert.h>    # OK, works on sane cases.  Now check whether non-existent headers
2987  Syntax Error    # can be detected and how.
2988  EOF    cat >conftest.$ac_ext <<_ACEOF
2989  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  /* confdefs.h.  */
2990  { (eval echo configure:1517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  _ACEOF
2991  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat confdefs.h >>conftest.$ac_ext
2992  if test -z "$ac_err"; then  cat >>conftest.$ac_ext <<_ACEOF
2993    :  /* end confdefs.h.  */
2994    #include <ac_nonexistent.h>
2995    _ACEOF
2996    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2997      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2998      ac_status=$?
2999      grep -v '^ *+' conftest.er1 >conftest.err
3000      rm -f conftest.er1
3001      cat conftest.err >&5
3002      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003      (exit $ac_status); } >/dev/null; then
3004      if test -s conftest.err; then
3005        ac_cpp_err=$ac_c_preproc_warn_flag
3006        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3007      else
3008        ac_cpp_err=
3009      fi
3010  else  else
3011    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  
3012  fi  fi
3013  rm -f conftest*  if test -z "$ac_cpp_err"; then
3014      # Broken: success on invalid input.
3015    continue
3016    else
3017      echo "$as_me: failed program was:" >&5
3018    sed 's/^/| /' conftest.$ac_ext >&5
3019    
3020      # Passes both tests.
3021    ac_preproc_ok=:
3022    break
3023  fi  fi
3024  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
3025    
3026    done
3027    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3028    rm -f conftest.err conftest.$ac_ext
3029    if $ac_preproc_ok; then
3030      break
3031  fi  fi
3032  rm -f conftest*  
3033    ac_cv_prog_CPP="$CPP"      done
3034        ac_cv_prog_CPP=$CPP
3035    
3036    fi
3037      CPP=$ac_cv_prog_CPP
3038    else
3039      ac_cv_prog_CPP=$CPP
3040    fi
3041    echo "$as_me:$LINENO: result: $CPP" >&5
3042    echo "${ECHO_T}$CPP" >&6
3043    ac_preproc_ok=false
3044    for ac_c_preproc_warn_flag in '' yes
3045    do
3046      # Use a header file that comes with gcc, so configuring glibc
3047      # with a fresh cross-compiler works.
3048      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3049      # <limits.h> exists even on freestanding compilers.
3050      # On the NeXT, cc -E runs the code through the compiler's parser,
3051      # not just through cpp. "Syntax error" is here to catch this case.
3052      cat >conftest.$ac_ext <<_ACEOF
3053    /* confdefs.h.  */
3054    _ACEOF
3055    cat confdefs.h >>conftest.$ac_ext
3056    cat >>conftest.$ac_ext <<_ACEOF
3057    /* end confdefs.h.  */
3058    #ifdef __STDC__
3059    # include <limits.h>
3060    #else
3061    # include <assert.h>
3062    #endif
3063                         Syntax error
3064    _ACEOF
3065    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3066      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3067      ac_status=$?
3068      grep -v '^ *+' conftest.er1 >conftest.err
3069      rm -f conftest.er1
3070      cat conftest.err >&5
3071      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072      (exit $ac_status); } >/dev/null; then
3073      if test -s conftest.err; then
3074        ac_cpp_err=$ac_c_preproc_warn_flag
3075        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3076      else
3077        ac_cpp_err=
3078      fi
3079    else
3080      ac_cpp_err=yes
3081    fi
3082    if test -z "$ac_cpp_err"; then
3083      :
3084    else
3085      echo "$as_me: failed program was:" >&5
3086    sed 's/^/| /' conftest.$ac_ext >&5
3087    
3088      # Broken: fails on valid input.
3089    continue
3090    fi
3091    rm -f conftest.err conftest.$ac_ext
3092    
3093      # OK, works on sane cases.  Now check whether non-existent headers
3094      # can be detected and how.
3095      cat >conftest.$ac_ext <<_ACEOF
3096    /* confdefs.h.  */
3097    _ACEOF
3098    cat confdefs.h >>conftest.$ac_ext
3099    cat >>conftest.$ac_ext <<_ACEOF
3100    /* end confdefs.h.  */
3101    #include <ac_nonexistent.h>
3102    _ACEOF
3103    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3104      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3105      ac_status=$?
3106      grep -v '^ *+' conftest.er1 >conftest.err
3107      rm -f conftest.er1
3108      cat conftest.err >&5
3109      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110      (exit $ac_status); } >/dev/null; then
3111      if test -s conftest.err; then
3112        ac_cpp_err=$ac_c_preproc_warn_flag
3113        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3114      else
3115        ac_cpp_err=
3116      fi
3117    else
3118      ac_cpp_err=yes
3119  fi  fi
3120    CPP="$ac_cv_prog_CPP"  if test -z "$ac_cpp_err"; then
3121      # Broken: success on invalid input.
3122    continue
3123  else  else
3124    ac_cv_prog_CPP="$CPP"    echo "$as_me: failed program was:" >&5
3125    sed 's/^/| /' conftest.$ac_ext >&5
3126    
3127      # Passes both tests.
3128    ac_preproc_ok=:
3129    break
3130    fi
3131    rm -f conftest.err conftest.$ac_ext
3132    
3133    done
3134    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3135    rm -f conftest.err conftest.$ac_ext
3136    if $ac_preproc_ok; then
3137      :
3138    else
3139      { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3140    See \`config.log' for more details." >&5
3141    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3142    See \`config.log' for more details." >&2;}
3143       { (exit 1); exit 1; }; }
3144  fi  fi
3145  echo "$ac_t""$CPP" 1>&6  
3146    ac_ext=c
3147    ac_cpp='$CPP $CPPFLAGS'
3148    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150    ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151    
3152    
3153    
# Line 1583  esac Line 3195  esac
3195    
3196  for ac_prog in gawk nawk awk  for ac_prog in gawk nawk awk
3197  do  do
3198  # 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.
3199  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
3200  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
3201  echo "configure:1590: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  if test "${ac_cv_prog_AWK+set}" = set; then
3203    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3204  else  else
3205    if test -n "$AWK"; then    if test -n "$AWK"; then
3206    ac_cv_prog_AWK="$AWK" # Let the user override the test.    ac_cv_prog_AWK="$AWK" # Let the user override the test.
3207  else  else
3208    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209    ac_dummy="$PATH"  for as_dir in $PATH
3210    for ac_dir in $ac_dummy; do  do
3211      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
3212      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
3213        ac_cv_prog_AWK="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
3214        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215      fi      ac_cv_prog_AWK="$ac_prog"
3216    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217    IFS="$ac_save_ifs"      break 2
3218      fi
3219    done
3220    done
3221    
3222  fi  fi
3223  fi  fi
3224  AWK="$ac_cv_prog_AWK"  AWK=$ac_cv_prog_AWK
3225  if test -n "$AWK"; then  if test -n "$AWK"; then
3226    echo "$ac_t""$AWK" 1>&6    echo "$as_me:$LINENO: result: $AWK" >&5
3227    echo "${ECHO_T}$AWK" >&6
3228  else  else
3229    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3230    echo "${ECHO_T}no" >&6
3231  fi  fi
3232    
3233  test -n "$AWK" && break    test -n "$AWK" && break
3234  done  done
3235  test -n "$AWK" || AWK=""""  test -n "$AWK" || AWK=""""
3236    
# Line 1621  if test "$enable_gprof" = "yes" ; then Line 3239  if test "$enable_gprof" = "yes" ; then
3239          TCFLAGS="$TCFLAGS -pg"          TCFLAGS="$TCFLAGS -pg"
3240          TLIBS="$TLIBS -pg"          TLIBS="$TLIBS -pg"
3241          TFPFLAG=""          TFPFLAG=""
3242          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
3243  #define GCL_GPROF 1  #define GCL_GPROF 1
3244  EOF  _ACEOF
3245    
3246          echo $ac_n "checking for text start""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for text start" >&5
3247  echo "configure:1630: checking for text start" >&5  echo $ECHO_N "checking for text start... $ECHO_C" >&6
3248          echo 'int main () {return(0);}' >foo.c          echo 'int main () {return(0);}' >foo.c
3249          $CC foo.c -o foo          $CC foo.c -o foo
3250          GCL_GPROF_START=`nm foo | $AWK  '/  *T  *__*start$/ {print $NF}'`          GCL_GPROF_START=`nm foo | $AWK  '/  *T  *__*start$/ {print $NF}'`
3251          rm -f foo.c foo          rm -f foo.c foo
3252          echo "$ac_t""$GCL_GPROF_START" 1>&6          echo "$as_me:$LINENO: result: $GCL_GPROF_START" >&5
3253          cat >> confdefs.h <<EOF  echo "${ECHO_T}$GCL_GPROF_START" >&6
3254            cat >>confdefs.h <<_ACEOF
3255  #define GCL_GPROF_START $GCL_GPROF_START  #define GCL_GPROF_START $GCL_GPROF_START
3256  EOF  _ACEOF
3257    
3258          case "$use" in            case "$use" in
3259            arm*)            arm*)
3260          #FIXME report and remove this when done          #FIXME report and remove this when done
3261                  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
3262    echo "${ECHO_T}Reducing optimization on profiling arm build to workaround gcc bug" >&6
3263                  enable_debug=yes;;                  enable_debug=yes;;
3264          esac          esac
3265  fi  fi
# Line 1662  fi Line 3282  fi
3282    
3283  # 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
3284  TONIFLAGS=""  TONIFLAGS=""
3285  case $use in  case $use in
3286       *linux)       *linux)
3287          case $use in          case $use in
3288  #               amd64*) # stack-boundary option does not work  #               amd64*) # stack-boundary option does not work
3289  #                       TCFLAGS="$TCFLAGS -m64 -mpreferred-stack-boundary=8";;    #                       TCFLAGS="$TCFLAGS -m64 -mpreferred-stack-boundary=8";;
3290  #               386*)  #               386*)
3291  #                       TCFLAGS="$TCFLAGS -mpreferred-stack-boundary=2";;    #                       TCFLAGS="$TCFLAGS -mpreferred-stack-boundary=2";;
3292  #               amd64*)  #               amd64*)
3293  #                       TCFLAGS="$TCFLAGS -mpreferred-stack-boundary=3";;    #                       TCFLAGS="$TCFLAGS -mpreferred-stack-boundary=3";;
3294                  alpha*)                  alpha*)
3295                          TCFLAGS="$TCFLAGS -mieee";;                          TCFLAGS="$TCFLAGS -mieee";;
3296  #               m68k*)  #               m68k*)
# Line 1681  case $use in Line 3301  case $use in
3301                          if test "$enable_debug" != "yes" ; then TO2FLAGS="-O" ; fi                          if test "$enable_debug" != "yes" ; then TO2FLAGS="-O" ; fi
3302                          ;;                          ;;
3303                  arm*)                  arm*)
3304                          TCFLAGS="$TCFLAGS -mlong-calls -fdollars-in-identifiers ";;                              TCFLAGS="$TCFLAGS -mlong-calls -fdollars-in-identifiers ";;
3305                  powerpc*)                  powerpc*)
3306                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then
3307                             echo Reducing optimization for buggy gcc-3.2                             echo Reducing optimization for buggy gcc-3.2
3308                             if test "$enable_debug" != "yes" ; then TONIFLAGS="-O $TFPFLAG" ; fi                             if test "$enable_debug" != "yes" ; then TONIFLAGS="-O $TFPFLAG" ; fi
# Line 1707  fi Line 3327  fi
3327    
3328  for ac_prog in makeinfo  for ac_prog in makeinfo
3329  do  do
3330  # 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.
3331  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
3332  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
3333  echo "configure:1714: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then  if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3335    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3336  else  else
3337    if test -n "$MAKEINFO"; then    if test -n "$MAKEINFO"; then
3338    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3339  else  else
3340    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341    ac_dummy="$PATH"  for as_dir in $PATH
3342    for ac_dir in $ac_dummy; do  do
3343      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
3344      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
3345        ac_cv_prog_MAKEINFO="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
3346        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347      fi      ac_cv_prog_MAKEINFO="$ac_prog"
3348    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349    IFS="$ac_save_ifs"      break 2
3350      fi
3351    done
3352    done
3353    
3354  fi  fi
3355  fi  fi
3356  MAKEINFO="$ac_cv_prog_MAKEINFO"  MAKEINFO=$ac_cv_prog_MAKEINFO
3357  if test -n "$MAKEINFO"; then  if test -n "$MAKEINFO"; then
3358    echo "$ac_t""$MAKEINFO" 1>&6    echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3359    echo "${ECHO_T}$MAKEINFO" >&6
3360  else  else
3361    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3362    echo "${ECHO_T}no" >&6
3363  fi  fi
3364    
3365  test -n "$MAKEINFO" && break    test -n "$MAKEINFO" && break
3366  done  done
3367  test -n "$MAKEINFO" || MAKEINFO=""false""  test -n "$MAKEINFO" || MAKEINFO=""false""
3368    
3369    
3370    
3371  echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5
3372  echo "configure:1747: checking system version (for dynamic loading)" >&5  echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6
3373  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
3374    
3375  if test -f /usr/lib/NextStep/software_version; then  if test -f /usr/lib/NextStep/software_version; then
# Line 1751  if test -f /usr/lib/NextStep/software_ve Line 3377  if test -f /usr/lib/NextStep/software_ve
3377  else  else
3378      system=`uname -s`-`uname -r`      system=`uname -s`-`uname -r`
3379      if test "$?" -ne 0 ; then      if test "$?" -ne 0 ; then
3380          echo "$ac_t""unknown (can't find uname command)" 1>&6          echo "$as_me:$LINENO: result: unknown (can't find uname command)" >&5
3381    echo "${ECHO_T}unknown (can't find uname command)" >&6
3382          system=unknown          system=unknown
3383      else      else
3384          # Special check for weird MP-RAS system (uname returns weird          # Special check for weird MP-RAS system (uname returns weird
3385          # results, and the version is kept in special file).          # results, and the version is kept in special file).
3386        
3387          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
3388              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`
3389          fi          fi
3390          if test "`uname -s`" = "AIX" ; then          if test "`uname -s`" = "AIX" ; then
3391              system=AIX-`uname -v`.`uname -r`              system=AIX-`uname -v`.`uname -r`
3392          fi          fi
3393          echo "$ac_t""$system" 1>&6          echo "$as_me:$LINENO: result: $system" >&5
3394    echo "${ECHO_T}$system" >&6
3395      fi      fi
3396  fi  fi
3397    
3398  # sysconf  # sysconf
3399    
3400  ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'`  
3401  echo $ac_n "checking for unistd.h""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for egrep" >&5
3402  echo "configure:1775: checking for unistd.h" >&5  echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3403  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_prog_egrep+set}" = set; then
3404    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3405  else  else
3406    cat > conftest.$ac_ext <<EOF    if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3407  #line 1780 "configure"      then ac_cv_prog_egrep='grep -E'
3408  #include "confdefs.h"      else ac_cv_prog_egrep='egrep'
3409  #include <unistd.h>      fi
3410  EOF  fi
3411  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3412  { (eval echo configure:1785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3413  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`   EGREP=$ac_cv_prog_egrep
3414  if test -z "$ac_err"; then  
3415    rm -rf conftest*  
3416    eval "ac_cv_header_$ac_safe=yes"  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3417  else  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3418    echo "$ac_err" >&5  if test "${ac_cv_header_stdc+set}" = set; then
3419    echo "configure: failed program was:" >&5    echo $ECHO_N "(cached) $ECHO_C" >&6
3420    cat conftest.$ac_ext >&5  else
3421    rm -rf conftest*    cat >conftest.$ac_ext <<_ACEOF
3422    eval "ac_cv_header_$ac_safe=no"  /* confdefs.h.  */
3423    _ACEOF
3424    cat confdefs.h >>conftest.$ac_ext
3425    cat >>conftest.$ac_ext <<_ACEOF
3426    /* end confdefs.h.  */
3427    #include <stdlib.h>
3428    #include <stdarg.h>
3429    #include <string.h>
3430    #include <float.h>
3431    
3432    int
3433    main ()
3434    {
3435    
3436      ;
3437      return 0;
3438    }
3439    _ACEOF
3440    rm -f conftest.$ac_objext
3441    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3442      (eval $ac_compile) 2>conftest.er1
3443      ac_status=$?
3444      grep -v '^ *+' conftest.er1 >conftest.err
3445      rm -f conftest.er1
3446      cat conftest.err >&5
3447      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448      (exit $ac_status); } &&
3449             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3450      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451      (eval $ac_try) 2>&5
3452      ac_status=$?
3453      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454      (exit $ac_status); }; } &&
3455             { ac_try='test -s conftest.$ac_objext'
3456      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457      (eval $ac_try) 2>&5
3458      ac_status=$?
3459      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460      (exit $ac_status); }; }; then
3461      ac_cv_header_stdc=yes
3462    else
3463      echo "$as_me: failed program was:" >&5
3464    sed 's/^/| /' conftest.$ac_ext >&5
3465    
3466    ac_cv_header_stdc=no
3467    fi
3468    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3469    
3470    if test $ac_cv_header_stdc = yes; then
3471      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3472      cat >conftest.$ac_ext <<_ACEOF
3473    /* confdefs.h.  */
3474    _ACEOF
3475    cat confdefs.h >>conftest.$ac_ext
3476    cat >>conftest.$ac_ext <<_ACEOF
3477    /* end confdefs.h.  */
3478    #include <string.h>
3479    
3480    _ACEOF
3481    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3482      $EGREP "memchr" >/dev/null 2>&1; then
3483      :
3484    else
3485      ac_cv_header_stdc=no
3486  fi  fi
3487  rm -f conftest*  rm -f conftest*
3488    
3489  fi  fi
 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   echo $ac_n "checking for sysconf in -lc""... $ac_c" 1>&6  
 echo "configure:1802: checking for sysconf in -lc" >&5  
 ac_lib_var=`echo c'_'sysconf | sed 'y%./+-%__p_%'`  
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   ac_save_LIBS="$LIBS"  
 LIBS="-lc  $LIBS"  
 cat > conftest.$ac_ext <<EOF  
 #line 1810 "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 sysconf();  
3490    
3491  int main() {  if test $ac_cv_header_stdc = yes; then
3492  sysconf()    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3493  ; return 0; }    cat >conftest.$ac_ext <<_ACEOF
3494  EOF  /* confdefs.h.  */
3495  if { (eval echo configure:1821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  _ACEOF
3496    rm -rf conftest*  cat confdefs.h >>conftest.$ac_ext
3497    eval "ac_cv_lib_$ac_lib_var=yes"  cat >>conftest.$ac_ext <<_ACEOF
3498  else  /* end confdefs.h.  */
3499    echo "configure: failed program was:" >&5  #include <stdlib.h>
3500    cat conftest.$ac_ext >&5  
3501    rm -rf conftest*  _ACEOF
3502    eval "ac_cv_lib_$ac_lib_var=no"  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3503      $EGREP "free" >/dev/null 2>&1; then
3504      :
3505    else
3506      ac_cv_header_stdc=no
3507  fi  fi
3508  rm -f conftest*  rm -f conftest*
 LIBS="$ac_save_LIBS"  
3509    
3510  fi  fi
3511  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
3512    echo "$ac_t""yes" 1>&6  if test $ac_cv_header_stdc = yes; then
3513    echo $ac_n "checking "for _SC_CLK_TCK"""... $ac_c" 1>&6    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3514  echo "configure:1837: checking "for _SC_CLK_TCK"" >&5    if test "$cross_compiling" = yes; then
3515                  if test "$cross_compiling" = yes; then    :
3516    else
3517      cat >conftest.$ac_ext <<_ACEOF
3518    /* confdefs.h.  */
3519    _ACEOF
3520    cat confdefs.h >>conftest.$ac_ext
3521    cat >>conftest.$ac_ext <<_ACEOF
3522    /* end confdefs.h.  */
3523    #include <ctype.h>
3524    #if ((' ' & 0x0FF) == 0x020)
3525    # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3526    # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3527    #else
3528    # define ISLOWER(c) \
3529                       (('a' <= (c) && (c) <= 'i') \
3530                         || ('j' <= (c) && (c) <= 'r') \
3531                         || ('s' <= (c) && (c) <= 'z'))
3532    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3533    #endif
3534    
3535    #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3536    int
3537    main ()
3538    {
3539      int i;
3540      for (i = 0; i < 256; i++)
3541        if (XOR (islower (i), ISLOWER (i))
3542            || toupper (i) != TOUPPER (i))
3543          exit(2);
3544      exit (0);
3545    }
3546    _ACEOF
3547    rm -f conftest$ac_exeext
3548    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3549      (eval $ac_link) 2>&5
3550      ac_status=$?
3551      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3553      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554      (eval $ac_try) 2>&5
3555      ac_status=$?
3556      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557      (exit $ac_status); }; }; then
3558      :
3559    else
3560      echo "$as_me: program exited with status $ac_status" >&5
3561    echo "$as_me: failed program was:" >&5
3562    sed 's/^/| /' conftest.$ac_ext >&5
3563    
3564    ( exit $ac_status )
3565    ac_cv_header_stdc=no
3566    fi
3567    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3568    fi
3569    fi
3570    fi
3571    echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3572    echo "${ECHO_T}$ac_cv_header_stdc" >&6
3573    if test $ac_cv_header_stdc = yes; then
3574    
3575    cat >>confdefs.h <<\_ACEOF
3576    #define STDC_HEADERS 1
3577    _ACEOF
3578    
3579    fi
3580    
3581    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3582    
3583    
3584    
3585    
3586    
3587    
3588    
3589    
3590    
3591    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3592                      inttypes.h stdint.h unistd.h
3593    do
3594    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3595    echo "$as_me:$LINENO: checking for $ac_header" >&5
3596    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3597    if eval "test \"\${$as_ac_Header+set}\" = set"; then
3598      echo $ECHO_N "(cached) $ECHO_C" >&6
3599    else
3600      cat >conftest.$ac_ext <<_ACEOF
3601    /* confdefs.h.  */
3602    _ACEOF
3603    cat confdefs.h >>conftest.$ac_ext
3604    cat >>conftest.$ac_ext <<_ACEOF
3605    /* end confdefs.h.  */
3606    $ac_includes_default
3607    
3608    #include <$ac_header>
3609    _ACEOF
3610    rm -f conftest.$ac_objext
3611    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612      (eval $ac_compile) 2>conftest.er1
3613      ac_status=$?
3614      grep -v '^ *+' conftest.er1 >conftest.err
3615      rm -f conftest.er1
3616      cat conftest.err >&5
3617      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618      (exit $ac_status); } &&
3619             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3620      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621      (eval $ac_try) 2>&5
3622      ac_status=$?
3623      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624      (exit $ac_status); }; } &&
3625             { ac_try='test -s conftest.$ac_objext'
3626      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627      (eval $ac_try) 2>&5
3628      ac_status=$?
3629      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630      (exit $ac_status); }; }; then
3631      eval "$as_ac_Header=yes"
3632    else
3633      echo "$as_me: failed program was:" >&5
3634    sed 's/^/| /' conftest.$ac_ext >&5
3635    
3636    eval "$as_ac_Header=no"
3637    fi
3638    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3639    fi
3640    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3641    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3642    if test `eval echo '${'$as_ac_Header'}'` = yes; then
3643      cat >>confdefs.h <<_ACEOF
3644    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3645    _ACEOF
3646    
3647    fi
3648    
3649    done
3650    
3651    
3652    if test "${ac_cv_header_unistd_h+set}" = set; then
3653      echo "$as_me:$LINENO: checking for unistd.h" >&5
3654    echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
3655    if test "${ac_cv_header_unistd_h+set}" = set; then
3656      echo $ECHO_N "(cached) $ECHO_C" >&6
3657    fi
3658    echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
3659    echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
3660    else
3661      # Is the header compilable?
3662    echo "$as_me:$LINENO: checking unistd.h usability" >&5
3663    echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
3664    cat >conftest.$ac_ext <<_ACEOF
3665    /* confdefs.h.  */
3666    _ACEOF
3667    cat confdefs.h >>conftest.$ac_ext
3668    cat >>conftest.$ac_ext <<_ACEOF
3669    /* end confdefs.h.  */
3670    $ac_includes_default
3671    #include <unistd.h>
3672    _ACEOF
3673    rm -f conftest.$ac_objext
3674    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675      (eval $ac_compile) 2>conftest.er1
3676      ac_status=$?
3677      grep -v '^ *+' conftest.er1 >conftest.err
3678      rm -f conftest.er1
3679      cat conftest.err >&5
3680      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681      (exit $ac_status); } &&
3682             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3683      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684      (eval $ac_try) 2>&5
3685      ac_status=$?
3686      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687      (exit $ac_status); }; } &&
3688             { ac_try='test -s conftest.$ac_objext'
3689      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690      (eval $ac_try) 2>&5
3691      ac_status=$?
3692      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693      (exit $ac_status); }; }; then
3694      ac_header_compiler=yes
3695    else
3696      echo "$as_me: failed program was:" >&5
3697    sed 's/^/| /' conftest.$ac_ext >&5
3698    
3699    ac_header_compiler=no
3700    fi
3701    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3703    echo "${ECHO_T}$ac_header_compiler" >&6
3704    
3705    # Is the header present?
3706    echo "$as_me:$LINENO: checking unistd.h presence" >&5
3707    echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
3708    cat >conftest.$ac_ext <<_ACEOF
3709    /* confdefs.h.  */
3710    _ACEOF
3711    cat confdefs.h >>conftest.$ac_ext
3712    cat >>conftest.$ac_ext <<_ACEOF
3713    /* end confdefs.h.  */
3714    #include <unistd.h>
3715    _ACEOF
3716    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3717      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3718      ac_status=$?
3719      grep -v '^ *+' conftest.er1 >conftest.err
3720      rm -f conftest.er1
3721      cat conftest.err >&5
3722      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723      (exit $ac_status); } >/dev/null; then
3724      if test -s conftest.err; then
3725        ac_cpp_err=$ac_c_preproc_warn_flag
3726        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3727      else
3728        ac_cpp_err=
3729      fi
3730    else
3731      ac_cpp_err=yes
3732    fi
3733    if test -z "$ac_cpp_err"; then
3734      ac_header_preproc=yes
3735    else
3736      echo "$as_me: failed program was:" >&5
3737    sed 's/^/| /' conftest.$ac_ext >&5
3738    
3739      ac_header_preproc=no
3740    fi
3741    rm -f conftest.err conftest.$ac_ext
3742    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3743    echo "${ECHO_T}$ac_header_preproc" >&6
3744    
3745    # So?  What about this header?
3746    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3747      yes:no: )
3748        { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
3749    echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3750        { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
3751    echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
3752        ac_header_preproc=yes
3753        ;;
3754      no:yes:* )
3755        { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
3756    echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
3757        { echo "$as_me:$LINENO: WARNING: unistd.h:     check for missing prerequisite headers?" >&5
3758    echo "$as_me: WARNING: unistd.h:     check for missing prerequisite headers?" >&2;}
3759        { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
3760    echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
3761        { echo "$as_me:$LINENO: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&5
3762    echo "$as_me: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3763        { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
3764    echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
3765        { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
3766    echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
3767        (
3768          cat <<\_ASBOX
3769    ## ------------------------------------------ ##
3770    ## Report this to the AC_PACKAGE_NAME lists.  ##
3771    ## ------------------------------------------ ##
3772    _ASBOX
3773        ) |
3774          sed "s/^/$as_me: WARNING:     /" >&2
3775        ;;
3776    esac
3777    echo "$as_me:$LINENO: checking for unistd.h" >&5
3778    echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
3779    if test "${ac_cv_header_unistd_h+set}" = set; then
3780      echo $ECHO_N "(cached) $ECHO_C" >&6
3781    else
3782      ac_cv_header_unistd_h=$ac_header_preproc
3783    fi
3784    echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
3785    echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
3786    
3787    fi
3788    if test $ac_cv_header_unistd_h = yes; then
3789      echo "$as_me:$LINENO: checking for sysconf in -lc" >&5
3790    echo $ECHO_N "checking for sysconf in -lc... $ECHO_C" >&6
3791    if test "${ac_cv_lib_c_sysconf+set}" = set; then
3792      echo $ECHO_N "(cached) $ECHO_C" >&6
3793    else
3794      ac_check_lib_save_LIBS=$LIBS
3795    LIBS="-lc  $LIBS"
3796    cat >conftest.$ac_ext <<_ACEOF
3797    /* confdefs.h.  */
3798    _ACEOF
3799    cat confdefs.h >>conftest.$ac_ext
3800    cat >>conftest.$ac_ext <<_ACEOF
3801    /* end confdefs.h.  */
3802    
3803    /* Override any gcc2 internal prototype to avoid an error.  */
3804    #ifdef __cplusplus
3805    extern "C"
3806    #endif
3807    /* We use char because int might match the return type of a gcc2
3808       builtin and then its argument prototype would still apply.  */
3809    char sysconf ();
3810    int
3811    main ()
3812    {
3813    sysconf ();
3814      ;
3815      return 0;
3816    }
3817    _ACEOF
3818    rm -f conftest.$ac_objext conftest$ac_exeext
3819    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3820      (eval $ac_link) 2>conftest.er1
3821      ac_status=$?
3822      grep -v '^ *+' conftest.er1 >conftest.err
3823      rm -f conftest.er1
3824      cat conftest.err >&5
3825      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826      (exit $ac_status); } &&
3827             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3828      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829      (eval $ac_try) 2>&5
3830      ac_status=$?
3831      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832      (exit $ac_status); }; } &&
3833             { ac_try='test -s conftest$ac_exeext'
3834      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835      (eval $ac_try) 2>&5
3836      ac_status=$?
3837      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838      (exit $ac_status); }; }; then
3839      ac_cv_lib_c_sysconf=yes
3840    else
3841      echo "$as_me: failed program was:" >&5
3842    sed 's/^/| /' conftest.$ac_ext >&5
3843    
3844    ac_cv_lib_c_sysconf=no
3845    fi
3846    rm -f conftest.err conftest.$ac_objext \
3847          conftest$ac_exeext conftest.$ac_ext
3848    LIBS=$ac_check_lib_save_LIBS
3849    fi
3850    echo "$as_me:$LINENO: result: $ac_cv_lib_c_sysconf" >&5
3851    echo "${ECHO_T}$ac_cv_lib_c_sysconf" >&6
3852    if test $ac_cv_lib_c_sysconf = yes; then
3853      echo "$as_me:$LINENO: checking \"for _SC_CLK_TCK\"" >&5
3854    echo $ECHO_N "checking \"for _SC_CLK_TCK\"... $ECHO_C" >&6
3855    
3856    if test "$cross_compiling" = yes; then
3857    hz=0    hz=0
3858  else  else
3859    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3860  #line 1842 "configure"  /* confdefs.h.  */
3861  #include "confdefs.h"  _ACEOF
3862    cat confdefs.h >>conftest.$ac_ext
3863    cat >>conftest.$ac_ext <<_ACEOF
3864    /* end confdefs.h.  */
3865  #include <unistd.h>  #include <unistd.h>
3866                              #include <stdio.h>                              #include <stdio.h>
3867                              int                              int
# Line 1849  else Line 3871  else
3871                                  fclose(fp);                                  fclose(fp);
3872                                  return 0;                                  return 0;
3873                              }                              }
3874  EOF  _ACEOF
3875  if { (eval echo configure:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3876  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3877      (eval $ac_link) 2>&5
3878      ac_status=$?
3879      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3881      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882      (eval $ac_try) 2>&5
3883      ac_status=$?
3884      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885      (exit $ac_status); }; }; then
3886    hz=`cat conftest1`    hz=`cat conftest1`
3887                              cat >> confdefs.h <<EOF                              cat >>confdefs.h <<_ACEOF
3888  #define HZ $hz  #define HZ $hz
3889  EOF  _ACEOF
3890    
3891    
                               
3892  else  else
3893    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3894    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
3895    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
3896    hz=0  
3897    ( exit $ac_status )
3898    hz=0
3899  fi  fi
3900  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3901  fi  fi
3902                    echo "$as_me:$LINENO: result: $hz" >&5
3903                  echo "$ac_t""$hz" 1>&6  echo "${ECHO_T}$hz" >&6
 else  
   echo "$ac_t""no" 1>&6  
3904  fi  fi
3905    
 else  
   echo "$ac_t""no" 1>&6  
3906  fi  fi
3907    
3908    
3909    
3910    
3911  #MY_SUBDIRS=  #MY_SUBDIRS=
3912    
3913  #  #
# Line 1892  if test $use_gmp = yes ; then Line 3922  if test $use_gmp = yes ; then
3922   GMPDIR=gmp3   GMPDIR=gmp3
3923   PATCHED_SYMBOLS=""   PATCHED_SYMBOLS=""
3924   if test "$enable_dynsysgmp" = "yes" ; then   if test "$enable_dynsysgmp" = "yes" ; then
3925          ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`          if test "${ac_cv_header_gmp_h+set}" = set; then
3926  echo $ac_n "checking for gmp.h""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for gmp.h" >&5
3927  echo "configure:1898: checking for gmp.h" >&5  echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
3928  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_gmp_h+set}" = set; then
3929    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3930  else  fi
3931    cat > conftest.$ac_ext <<EOF  echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
3932  #line 1903 "configure"  echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
3933  #include "confdefs.h"  else
3934      # Is the header compilable?
3935    echo "$as_me:$LINENO: checking gmp.h usability" >&5
3936    echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6
3937    cat >conftest.$ac_ext <<_ACEOF
3938    /* confdefs.h.  */
3939    _ACEOF
3940    cat confdefs.h >>conftest.$ac_ext
3941    cat >>conftest.$ac_ext <<_ACEOF
3942    /* end confdefs.h.  */
3943    $ac_includes_default
3944  #include <gmp.h>  #include <gmp.h>
3945  EOF  _ACEOF
3946  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  rm -f conftest.$ac_objext
3947  { (eval echo configure:1908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3948  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    (eval $ac_compile) 2>conftest.er1
3949  if test -z "$ac_err"; then    ac_status=$?
3950    rm -rf conftest*    grep -v '^ *+' conftest.er1 >conftest.err
3951    eval "ac_cv_header_$ac_safe=yes"    rm -f conftest.er1
3952  else    cat conftest.err >&5
3953    echo "$ac_err" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954    echo "configure: failed program was:" >&5    (exit $ac_status); } &&
3955    cat conftest.$ac_ext >&5           { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3956    rm -rf conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957    eval "ac_cv_header_$ac_safe=no"    (eval $ac_try) 2>&5
3958  fi    ac_status=$?
3959  rm -f conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960      (exit $ac_status); }; } &&
3961             { ac_try='test -s conftest.$ac_objext'
3962      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963      (eval $ac_try) 2>&5
3964      ac_status=$?
3965      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966      (exit $ac_status); }; }; then
3967      ac_header_compiler=yes
3968    else
3969      echo "$as_me: failed program was:" >&5
3970    sed 's/^/| /' conftest.$ac_ext >&5
3971    
3972    ac_header_compiler=no
3973    fi
3974    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3975    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3976    echo "${ECHO_T}$ac_header_compiler" >&6
3977    
3978    # Is the header present?
3979    echo "$as_me:$LINENO: checking gmp.h presence" >&5
3980    echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6
3981    cat >conftest.$ac_ext <<_ACEOF
3982    /* confdefs.h.  */
3983    _ACEOF
3984    cat confdefs.h >>conftest.$ac_ext
3985    cat >>conftest.$ac_ext <<_ACEOF
3986    /* end confdefs.h.  */
3987    #include <gmp.h>
3988    _ACEOF
3989    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3990      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3991      ac_status=$?
3992      grep -v '^ *+' conftest.er1 >conftest.err
3993      rm -f conftest.er1
3994      cat conftest.err >&5
3995      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996      (exit $ac_status); } >/dev/null; then
3997      if test -s conftest.err; then
3998        ac_cpp_err=$ac_c_preproc_warn_flag
3999        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4000      else
4001        ac_cpp_err=
4002      fi
4003    else
4004      ac_cpp_err=yes
4005  fi  fi
4006  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
4007    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
   echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6  
 echo "configure:1925: 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  
4008  else  else
4009    ac_save_LIBS="$LIBS"    echo "$as_me: failed program was:" >&5
4010  LIBS="-lgmp  $LIBS"  sed 's/^/| /' conftest.$ac_ext >&5
 cat > conftest.$ac_ext <<EOF  
 #line 1933 "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();  
4011    
4012  int main() {    ac_header_preproc=no
4013  __gmpz_init()  fi
4014  ; return 0; }  rm -f conftest.err conftest.$ac_ext
4015  EOF  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4016  if { (eval echo configure:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  echo "${ECHO_T}$ac_header_preproc" >&6
4017    rm -rf conftest*  
4018    eval "ac_cv_lib_$ac_lib_var=yes"  # So?  What about this header?
4019  else  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4020    echo "configure: failed program was:" >&5    yes:no: )
4021    cat conftest.$ac_ext >&5      { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
4022    rm -rf conftest*  echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4023    eval "ac_cv_lib_$ac_lib_var=no"      { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the compiler's result" >&5
4024    echo "$as_me: WARNING: gmp.h: proceeding with the compiler's result" >&2;}
4025        ac_header_preproc=yes
4026        ;;
4027      no:yes:* )
4028        { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
4029    echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
4030        { echo "$as_me:$LINENO: WARNING: gmp.h:     check for missing prerequisite headers?" >&5
4031    echo "$as_me: WARNING: gmp.h:     check for missing prerequisite headers?" >&2;}
4032        { echo "$as_me:$LINENO: WARNING: gmp.h: see the Autoconf documentation" >&5
4033    echo "$as_me: WARNING: gmp.h: see the Autoconf documentation" >&2;}
4034        { echo "$as_me:$LINENO: WARNING: gmp.h:     section \"Present But Cannot Be Compiled\"" >&5
4035    echo "$as_me: WARNING: gmp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4036        { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
4037    echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}
4038        { echo "$as_me:$LINENO: WARNING: gmp.h: in the future, the compiler will take precedence" >&5
4039    echo "$as_me: WARNING: gmp.h: in the future, the compiler will take precedence" >&2;}
4040        (
4041          cat <<\_ASBOX
4042    ## ------------------------------------------ ##
4043    ## Report this to the AC_PACKAGE_NAME lists.  ##
4044    ## ------------------------------------------ ##
4045    _ASBOX
4046        ) |
4047          sed "s/^/$as_me: WARNING:     /" >&2
4048        ;;
4049    esac
4050    echo "$as_me:$LINENO: checking for gmp.h" >&5
4051    echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
4052    if test "${ac_cv_header_gmp_h+set}" = set; then
4053      echo $ECHO_N "(cached) $ECHO_C" >&6
4054    else
4055      ac_cv_header_gmp_h=$ac_header_preproc
4056  fi  fi
4057  rm -f conftest*  echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
4058  LIBS="$ac_save_LIBS"  echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
4059    
4060  fi  fi
4061  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if test $ac_cv_header_gmp_h = yes; then
4062    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
4063    echo $ac_n "checking "for external gmp version"""... $ac_c" 1>&6  echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6
4064  echo "configure:1960: checking "for external gmp version"" >&5  if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
4065      echo $ECHO_N "(cached) $ECHO_C" >&6
4066    else
4067      ac_check_lib_save_LIBS=$LIBS
4068    LIBS="-lgmp  $LIBS"
4069    cat >conftest.$ac_ext <<_ACEOF
4070    /* confdefs.h.  */
4071    _ACEOF
4072    cat confdefs.h >>conftest.$ac_ext
4073    cat >>conftest.$ac_ext <<_ACEOF
4074    /* end confdefs.h.  */
4075    
4076    /* Override any gcc2 internal prototype to avoid an error.  */
4077    #ifdef __cplusplus
4078    extern "C"
4079    #endif
4080    /* We use char because int might match the return type of a gcc2
4081       builtin and then its argument prototype would still apply.  */
4082    char __gmpz_init ();
4083    int
4084    main ()
4085    {
4086    __gmpz_init ();
4087      ;
4088      return 0;
4089    }
4090    _ACEOF
4091    rm -f conftest.$ac_objext conftest$ac_exeext
4092    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4093      (eval $ac_link) 2>conftest.er1
4094      ac_status=$?
4095      grep -v '^ *+' conftest.er1 >conftest.err
4096      rm -f conftest.er1
4097      cat conftest.err >&5
4098      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099      (exit $ac_status); } &&
4100             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4101      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102      (eval $ac_try) 2>&5
4103      ac_status=$?
4104      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105      (exit $ac_status); }; } &&
4106             { ac_try='test -s conftest$ac_exeext'
4107      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108      (eval $ac_try) 2>&5
4109      ac_status=$?
4110      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111      (exit $ac_status); }; }; then
4112      ac_cv_lib_gmp___gmpz_init=yes
4113    else
4114      echo "$as_me: failed program was:" >&5
4115    sed 's/^/| /' conftest.$ac_ext >&5
4116    
4117    ac_cv_lib_gmp___gmpz_init=no
4118    fi
4119    rm -f conftest.err conftest.$ac_objext \
4120          conftest$ac_exeext conftest.$ac_ext
4121    LIBS=$ac_check_lib_save_LIBS
4122    fi
4123    echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
4124    echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6
4125    if test $ac_cv_lib_gmp___gmpz_init = yes; then
4126      echo "$as_me:$LINENO: checking \"for external gmp version\"" >&5
4127    echo $ECHO_N "checking \"for external gmp version\"... $ECHO_C" >&6
4128                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
4129    echo "Cannot use dynamic gmp lib"    echo "Cannot use dynamic gmp lib"
4130  else  else
4131    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4132  #line 1965 "configure"  /* confdefs.h.  */
4133  #include "confdefs.h"  _ACEOF
4134    cat confdefs.h >>conftest.$ac_ext
4135    cat >>conftest.$ac_ext <<_ACEOF
4136    /* end confdefs.h.  */
4137  #include <gmp.h>  #include <gmp.h>
4138                                      int main() {                                      int main() {
4139                                      #if __GNU_MP_VERSION == 4                                      #if __GNU_MP_VERSION == 4
# Line 1971  else Line 4142  else
4142                                          return -1;                                          return -1;
4143                                      #endif                                      #endif
4144                                      }                                      }
4145  EOF  _ACEOF
4146  if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
4147  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4148    echo "$ac_t""ok" 1>&6;    (eval $ac_link) 2>&5
4149      ac_status=$?
4150      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4152      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153      (eval $ac_try) 2>&5
4154      ac_status=$?
4155      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156      (exit $ac_status); }; }; then
4157      echo "$as_me:$LINENO: result: ok" >&5
4158    echo "${ECHO_T}ok" >&6;
4159  #                               MPFILES=$GMPDIR/mpn/mul_n.o  #                               MPFILES=$GMPDIR/mpn/mul_n.o
4160  #                               PATCHED_SYMBOLS=__gmpn_toom3_mul_n  #                               PATCHED_SYMBOLS=__gmpn_toom3_mul_n
4161                                  MPFILES=                                  MPFILES=
# Line 1989  then Line 4170  then
4170                                  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 '"'`
4171                                  rm -f foo.c                                  rm -f foo.c
4172  else  else
4173    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
4174    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
4175    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
4176    echo "Cannot use dynamic gmp lib"  
4177    ( exit $ac_status )
4178    echo "Cannot use dynamic gmp lib"
4179  fi  fi
4180  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4181  fi  fi
   
4182  else  else
4183    echo "$ac_t""no" 1>&6    echo "Cannot use dynamic gmp lib"
 echo "Cannot use dynamic gmp lib"  
4184  fi  fi
4185    
4186  else  else
4187    echo "$ac_t""no" 1>&6    echo "Cannot use dynamic gmp lib"
 echo "Cannot use dynamic gmp lib"  
4188  fi  fi
4189    
4190    
4191  fi  fi
4192    
4193  NEED_LOCAL_GMP=''  NEED_LOCAL_GMP=''
4194  if test "$MP_INCLUDE" = "" ; then                        if test "$MP_INCLUDE" = "" ; then
4195          NEED_LOCAL_GMP=1;          NEED_LOCAL_GMP=1;
4196  fi  fi
4197  if test "$PATCHED_SYMBOLS" != "" ; then                  if test "$PATCHED_SYMBOLS" != "" ; then
4198          NEED_LOCAL_GMP=1;          NEED_LOCAL_GMP=1;
4199  fi  fi
4200    
4201  if test "$NEED_LOCAL_GMP" != "" ; then                    if test "$NEED_LOCAL_GMP" != "" ; then
4202    
4203           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
4204  echo "configure:2024: 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
4205           echo           echo
4206           echo "#"           echo "#"
4207           echo "#"           echo "#"
# Line 2034  echo "configure:2024: checking use_gmp=y Line 4215  echo "configure:2024: checking use_gmp=y
4215           else           else
4216             cd $GMPDIR && ./configure && cd ..             cd $GMPDIR && ./configure && cd ..
4217           fi           fi
4218          #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"          #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"
4219    
4220           echo "#"           echo "#"
4221           echo "#"           echo "#"
# Line 2051  echo "configure:2024: checking use_gmp=y Line 4232  echo "configure:2024: checking use_gmp=y
4232    
4233  fi  fi
4234    
4235  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
4236  echo "configure:2056: checking "for leading underscore in object symbols"" >&5  echo $ECHO_N "checking \"for leading underscore in object symbols\"... $ECHO_C" >&6
4237  cat>foo.c <<EOFF  cat>foo.c <<EOFF
4238  #include <math.h>  #include <math.h>
4239  #include <stdio.h>  #include <stdio.h>
# Line 2061  EOFF Line 4242  EOFF
4242  $CC -c foo.c -o foo.o  $CC -c foo.c -o foo.o
4243  if nm foo.o |grep " U " | grep "_cos" >/dev/null ; then  if nm foo.o |grep " U " | grep "_cos" >/dev/null ; then
4244          LEADING_UNDERSCORE=1          LEADING_UNDERSCORE=1
4245          echo "$ac_t"""yes"" 1>&6          echo "$as_me:$LINENO: result: \"yes\"" >&5
4246    echo "${ECHO_T}\"yes\"" >&6
4247  else  else
4248          LEADING_UNDERSCORE=""          LEADING_UNDERSCORE=""
4249          echo "$ac_t"""no"" 1>&6          echo "$as_me:$LINENO: result: \"no\"" >&5
4250    echo "${ECHO_T}\"no\"" >&6
4251  fi  fi
4252  echo $ac_n "checking "for GNU ld option -Map"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"for GNU ld option -Map\"" >&5
4253  echo "configure:2071: checking "for GNU ld option -Map"" >&5  echo $ECHO_N "checking \"for GNU ld option -Map\"... $ECHO_C" >&6
4254  touch map  touch map
4255  $CC -o foo  -Wl,-Map  map foo.o >/dev/null 2>&1  $CC -o foo  -Wl,-Map  map foo.o >/dev/null 2>&1
4256  if test `cat map | wc -l` != "0" ; then  if test `cat map | wc -l` != "0" ; then
4257          echo "$ac_t"""yes"" 1>&6          echo "$as_me:$LINENO: result: \"yes\"" >&5
4258          cat >> confdefs.h <<\EOF  echo "${ECHO_T}\"yes\"" >&6
4259            cat >>confdefs.h <<\_ACEOF
4260  #define HAVE_GNU_LD 1  #define HAVE_GNU_LD 1
4261  EOF  _ACEOF
4262    
4263          GNU_LD=1          GNU_LD=1
4264  else  else
4265          echo "$ac_t"""no"" 1>&6          echo "$as_me:$LINENO: result: \"no\"" >&5
4266    echo "${ECHO_T}\"no\"" >&6
4267          GNU_LD=          GNU_LD=
4268  fi  fi
4269  rm -f foo.c foo.o foo map  rm -f foo.c foo.o foo map
4270    
4271   echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking \"for size of gmp limbs\"" >&5
4272  echo "configure:2088: checking "for size of gmp limbs"" >&5  echo $ECHO_N "checking \"for size of gmp limbs\"... $ECHO_C" >&6
4273   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
4274    mpsize=0    mpsize=0
4275  else  else
4276    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4277  #line 2093 "configure"  /* confdefs.h.  */
4278  #include "confdefs.h"  _ACEOF
4279    cat confdefs.h >>conftest.$ac_ext
4280    cat >>conftest.$ac_ext <<_ACEOF
4281    /* end confdefs.h.  */
4282  #include <stdio.h>  #include <stdio.h>
4283          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
4284          int main() {          int main() {
# Line 2099  else Line 4287  else
4287          fclose(fp);          fclose(fp);
4288          return 0;          return 0;
4289          }          }
4290  EOF  _ACEOF
4291  if { (eval echo configure:2104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
4292  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4293      (eval $ac_link) 2>&5
4294      ac_status=$?
4295      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4297      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298      (eval $ac_try) 2>&5
4299      ac_status=$?
4300      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301      (exit $ac_status); }; }; then
4302    mpsize=`cat conftest1`    mpsize=`cat conftest1`
4303  else  else
4304    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
4305    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
4306    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
4307    mpsize=0  
4308    ( exit $ac_status )
4309    mpsize=0
4310  fi  fi
4311  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4312  fi  fi
   
4313   if test "$mpsize" = "0" ; then   if test "$mpsize" = "0" ; then
4314          echo "Cannot determine mpsize"          echo "Cannot determine mpsize"
4315          exit 1          exit 1
4316   fi   fi
4317   cat >> confdefs.h <<EOF   cat >>confdefs.h <<_ACEOF
4318  #define MP_LIMB_BYTES $mpsize  #define MP_LIMB_BYTES $mpsize
4319  EOF  _ACEOF
4320    
4321   echo "$ac_t""$mpsize" 1>&6   echo "$as_me:$LINENO: result: $mpsize" >&5
4322    echo "${ECHO_T}$mpsize" >&6
4323    
4324   echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking \"_SHORT_LIMB\"" >&5
4325  echo "configure:2127: checking "_SHORT_LIMB"" >&5  echo $ECHO_N "checking \"_SHORT_LIMB\"... $ECHO_C" >&6
4326   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
4327    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
4328    echo "${ECHO_T}no" >&6
4329  else  else
4330    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4331  #line 2132 "configure"  /* confdefs.h.  */
4332  #include "confdefs.h"  _ACEOF
4333    cat confdefs.h >>conftest.$ac_ext
4334    cat >>conftest.$ac_ext <<_ACEOF
4335    /* end confdefs.h.  */
4336  #include <stdio.h>  #include <stdio.h>
4337          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
4338          int main() {          int main() {
# Line 2139  else Line 4342  else
4342          return 1;          return 1;
4343          #endif          #endif
4344          }          }
4345  EOF  _ACEOF
4346  if { (eval echo configure:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
4347  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4348    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
4349      ac_status=$?
4350      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4352      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353      (eval $ac_try) 2>&5
4354      ac_status=$?
4355      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356      (exit $ac_status); }; }; then
4357      cat >>confdefs.h <<\_ACEOF
4358  #define __SHORT_LIMB 1  #define __SHORT_LIMB 1
4359  EOF  _ACEOF
4360   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
4361  else  echo "${ECHO_T}yes" >&6
4362    echo "configure: failed program was:" >&5  else
4363    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
4364    rm -fr conftest*  echo "$as_me: failed program was:" >&5
4365    echo "$ac_t""no" 1>&6  sed 's/^/| /' conftest.$ac_ext >&5
4366    
4367    ( exit $ac_status )
4368    echo "$as_me:$LINENO: result: no" >&5
4369    echo "${ECHO_T}no" >&6
4370  fi  fi
4371  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4372  fi  fi
4373     echo "$as_me:$LINENO: checking \"_LONG_LONG_LIMB\"" >&5
4374   echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6  echo $ECHO_N "checking \"_LONG_LONG_LIMB\"... $ECHO_C" >&6
 echo "configure:2160: checking "_LONG_LONG_LIMB"" >&5  
4375   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
4376    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
4377    echo "${ECHO_T}no" >&6
4378  else  else
4379    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4380  #line 2165 "configure"  /* confdefs.h.  */
4381  #include "confdefs.h"  _ACEOF
4382    cat confdefs.h >>conftest.$ac_ext
4383    cat >>conftest.$ac_ext <<_ACEOF
4384    /* end confdefs.h.  */
4385  #include <stdio.h>  #include <stdio.h>
4386          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
4387          int main() {          int main() {
# Line 2172  else Line 4391  else
4391          return 1;          return 1;
4392          #endif          #endif
4393          }          }
4394  EOF  _ACEOF
4395  if { (eval echo configure:2177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
4396  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4397    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
4398      ac_status=$?
4399      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4401      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402      (eval $ac_try) 2>&5
4403      ac_status=$?
4404      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405      (exit $ac_status); }; }; then
4406      cat >>confdefs.h <<\_ACEOF
4407  #define __LONG_LONG_LIMB 1  #define __LONG_LONG_LIMB 1
4408  EOF  _ACEOF
4409   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
4410  else  echo "${ECHO_T}yes" >&6
4411    echo "configure: failed program was:" >&5  else
4412    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
4413    rm -fr conftest*  echo "$as_me: failed program was:" >&5
4414    echo "$ac_t""no" 1>&6  sed 's/^/| /' conftest.$ac_ext >&5
4415    
4416    ( exit $ac_status )
4417    echo "$as_me:$LINENO: result: no" >&5
4418    echo "${ECHO_T}no" >&6
4419  fi  fi
4420  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4421  fi  fi
4422    
   
4423   GMP=1   GMP=1
4424   cat >> confdefs.h <<\EOF   cat >>confdefs.h <<\_ACEOF
4425  #define GMP 1  #define GMP 1
4426  EOF  _ACEOF
4427    
4428    
4429    
   
   
4430   echo > makedefsafter   echo > makedefsafter
4431   echo "MPFILES=$MPFILES" >> makedefsafter   echo "MPFILES=$MPFILES" >> makedefsafter
4432   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter
# Line 2205  fi Line 4436  fi
4436    
4437  #  #
4438  # X windows  # X windows
4439  #  #
4440    
4441    
4442  # If we find X, set shell vars x_includes and x_libraries to the  if test "x$ac_path_x_has_been_run" != xyes; then
4443  # paths, otherwise set no_x=yes.    echo "$as_me:$LINENO: checking for X" >&5
4444  # Uses ac_ vars as temps to allow command line to override cache and checks.  echo $ECHO_N "checking for X... $ECHO_C" >&6
4445  # --without-x overrides everything else, but does not touch the cache.  
4446  echo $ac_n "checking for X""... $ac_c" 1>&6  ac_path_x_has_been_run=yes
 echo "configure:2216: checking for X" >&5  
4447    
4448  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
4449  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
4450    withval="$with_x"    withval="$with_x"
   :  
 fi  
4451    
4452    fi;
4453  # $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.
4454  if test "x$with_x" = xno; then  if test "x$with_x" = xno; then
4455    # The user explicitly disabled X.    # The user explicitly disabled X.
# Line 2229  else Line 4459  else
4459      # Both variables are already set.      # Both variables are already set.
4460      have_x=yes      have_x=yes
4461    else    else
4462  if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then      if test "${ac_cv_have_x+set}" = set; then
4463    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4464  else  else
4465    # 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.
4466  ac_x_includes=NO ac_x_libraries=NO  ac_x_includes=no ac_x_libraries=no
4467  rm -fr conftestdir  rm -fr conftest.dir
4468  if mkdir conftestdir; then  if mkdir conftest.dir; then
4469    cd conftestdir    cd conftest.dir
4470    # 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.
4471    cat > Imakefile <<'EOF'    cat >Imakefile <<'_ACEOF'
4472  acfindx:  acfindx:
4473          @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}"'
4474  EOF  _ACEOF
4475    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4476      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4477      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4478      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4479      for ac_extension in a so sl; do      for ac_extension in a so sl; do
4480        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4481          test -f $ac_im_libdir/libX11.$ac_extension; then           test -f $ac_im_libdir/libX11.$ac_extension; then
4482          ac_im_usrlibdir=$ac_im_libdir; break          ac_im_usrlibdir=$ac_im_libdir; break
4483        fi        fi
4484      done      done
4485      # Screen out bogus values from the imake configuration.  They are      # Screen out bogus values from the imake configuration.  They are
4486      # bogus both because they are the default anyway, and because      # bogus both because they are the default anyway, and because
4487      # using them would break gcc on systems where it needs fixed includes.      # using them would break gcc on systems where it needs fixed includes.
4488      case "$ac_im_incroot" in      case $ac_im_incroot in
4489          /usr/include) ;;          /usr/include) ;;
4490          *) 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;;
4491      esac      esac
4492      case "$ac_im_usrlibdir" in      case $ac_im_usrlibdir in
4493          /usr/lib | /lib) ;;          /usr/lib | /lib) ;;
4494          *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;          *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4495      esac      esac
4496    fi    fi
4497    cd ..    cd ..
4498    rm -fr conftestdir    rm -fr conftest.dir
4499  fi  fi
4500    
4501  if test "$ac_x_includes" = NO; then  # Standard set of common directories for X headers.
4502    # 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.
4503    test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h  ac_x_header_dirs='
4504    /usr/X11/include
4505    /usr/X11R6/include
4506    /usr/X11R5/include
4507    /usr/X11R4/include
4508    
4509    /usr/include/X11
4510    /usr/include/X11R6
4511    /usr/include/X11R5
4512    /usr/include/X11R4
4513    
4514    /usr/local/X11/include
4515    /usr/local/X11R6/include
4516    /usr/local/X11R5/include
4517    /usr/local/X11R4/include
4518    
4519    /usr/local/include/X11
4520    /usr/local/include/X11R6
4521    /usr/local/include/X11R5
4522    /usr/local/include/X11R4
4523    
4524    /usr/X386/include
4525    /usr/x386/include
4526    /usr/XFree86/include/X11
4527    
4528    /usr/include
4529    /usr/local/include
4530    /usr/unsupported/include
4531    /usr/athena/include
4532    /usr/local/x11r5/include
4533    /usr/lpp/Xamples/include
4534    
4535    /usr/openwin/include
4536    /usr/openwin/share/include'
4537    
4538    if test "$ac_x_includes" = no; then
4539      # Guess where to find include files, by looking for a specified header file.
4540    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
4541  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4542  #line 2278 "configure"  /* confdefs.h.  */
4543  #include "confdefs.h"  _ACEOF
4544  #include <$x_direct_test_include>  cat confdefs.h >>conftest.$ac_ext
4545  EOF  cat >>conftest.$ac_ext <<_ACEOF
4546  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  /* end confdefs.h.  */
4547  { (eval echo configure:2283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  #include <X11/Xlib.h>
4548  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  _ACEOF
4549  if test -z "$ac_err"; then  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4550    rm -rf conftest*    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4551      ac_status=$?
4552      grep -v '^ *+' conftest.er1 >conftest.err
4553      rm -f conftest.er1
4554      cat conftest.err >&5
4555      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556      (exit $ac_status); } >/dev/null; then
4557      if test -s conftest.err; then
4558        ac_cpp_err=$ac_c_preproc_warn_flag
4559        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4560      else
4561        ac_cpp_err=
4562      fi
4563    else
4564      ac_cpp_err=yes
4565    fi
4566    if test -z "$ac_cpp_err"; then
4567    # We can compile using X headers with no special include directory.    # We can compile using X headers with no special include directory.
4568  ac_x_includes=  ac_x_includes=
4569  else  else
4570    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
4571    echo "configure: failed program was:" >&5  sed 's/^/| /' conftest.$ac_ext >&5
4572    cat conftest.$ac_ext >&5  
4573    rm -rf conftest*    for ac_dir in $ac_x_header_dirs; do
4574    # Look for the header file in a standard set of common directories.    if test -r "$ac_dir/X11/Xlib.h"; then
4575  # Check X11 before X11Rn because it is often a symlink to the current release.      ac_x_includes=$ac_dir
4576    for ac_dir in               \      break
4577      /usr/X11/include          \    fi
4578      /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  
4579  fi  fi
4580  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
4581  fi # $ac_x_includes = NO  fi # $ac_x_includes = no
4582    
4583  if test "$ac_x_libraries" = NO; then  if test "$ac_x_libraries" = no; then
4584    # 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  
   
4585    # See if we find them without any special options.    # See if we find them without any special options.
4586    # Don't add to $LIBS permanently.    # Don't add to $LIBS permanently.
4587    ac_save_LIBS="$LIBS"    ac_save_LIBS=$LIBS
4588    LIBS="-l$x_direct_test_library $LIBS"    LIBS="-lX11 $LIBS"
4589  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4590  #line 2352 "configure"  /* confdefs.h.  */
4591  #include "confdefs.h"  _ACEOF
4592    cat confdefs.h >>conftest.$ac_ext
4593  int main() {  cat >>conftest.$ac_ext <<_ACEOF
4594  ${x_direct_test_function}()  /* end confdefs.h.  */
4595  ; return 0; }  #include <X11/Xlib.h>
4596  EOF  int
4597  if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  main ()
4598    rm -rf conftest*  {
4599    LIBS="$ac_save_LIBS"  XrmInitialize ()
4600      ;
4601      return 0;
4602    }
4603    _ACEOF
4604    rm -f conftest.$ac_objext conftest$ac_exeext
4605    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4606      (eval $ac_link) 2>conftest.er1
4607      ac_status=$?
4608      grep -v '^ *+' conftest.er1 >conftest.err
4609      rm -f conftest.er1
4610      cat conftest.err >&5
4611      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612      (exit $ac_status); } &&
4613             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4614      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615      (eval $ac_try) 2>&5
4616      ac_status=$?
4617      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618      (exit $ac_status); }; } &&
4619             { ac_try='test -s conftest$ac_exeext'
4620      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621      (eval $ac_try) 2>&5
4622      ac_status=$?
4623      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624      (exit $ac_status); }; }; then
4625      LIBS=$ac_save_LIBS
4626  # We can link X programs with no special library path.  # We can link X programs with no special library path.
4627  ac_x_libraries=  ac_x_libraries=
4628  else  else
4629    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4630    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4631    rm -rf conftest*  
4632    LIBS="$ac_save_LIBS"  LIBS=$ac_save_LIBS
4633  # 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 \  
     ; \  
4634  do  do
4635      # Don't even attempt the hair of trying to link an X program!
4636    for ac_extension in a so sl; do    for ac_extension in a so sl; do
4637      if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then      if test -r $ac_dir/libX11.$ac_extension; then
4638        ac_x_libraries=$ac_dir        ac_x_libraries=$ac_dir
4639        break 2        break 2
4640      fi      fi
4641    done    done
4642  done  done
4643  fi  fi
4644  rm -f conftest*  rm -f conftest.err conftest.$ac_objext \
4645  fi # $ac_x_libraries = NO        conftest$ac_exeext conftest.$ac_ext
4646    fi # $ac_x_libraries = no
4647    
4648  if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then  if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4649    # Didn't find X anywhere.  Cache the known absence of X.    # Didn't find X anywhere.  Cache the known absence of X.
4650    ac_cv_have_x="have_x=no"    ac_cv_have_x="have_x=no"
4651  else  else
4652    # Record where we found X for the cache.    # Record where we found X for the cache.
4653    ac_cv_have_x="have_x=yes \    ac_cv_have_x="have_x=yes \
4654                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4655  fi  fi
4656  fi  fi
4657    
4658    fi    fi
4659    eval "$ac_cv_have_x"    eval "$ac_cv_have_x"
4660  fi # $with_x != no  fi # $with_x != no
4661    
4662  if test "$have_x" != yes; then  if test "$have_x" != yes; then
4663    echo "$ac_t""$have_x" 1>&6    echo "$as_me:$LINENO: result: $have_x" >&5
4664    echo "${ECHO_T}$have_x" >&6
4665    no_x=yes    no_x=yes
4666  else  else
4667    # 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 2438  else Line 4670  else
4670    # Update the cache value to reflect the command line values.    # Update the cache value to reflect the command line values.
4671    ac_cv_have_x="have_x=yes \    ac_cv_have_x="have_x=yes \
4672                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4673    echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6    # It might be that x_includes is empty (headers are found in the
4674      # standard search path. Then output the corresponding message
4675      ac_out_x_includes=$x_includes
4676      test "x$x_includes" = x && ac_out_x_includes="in standard search path"
4677      echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
4678    echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
4679  fi  fi
4680    
4681    fi
4682  if test "$no_x" = yes; then  if test "$no_x" = yes; then
4683    # 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.
4684    cat >> confdefs.h <<\EOF  
4685    cat >>confdefs.h <<\_ACEOF
4686  #define X_DISPLAY_MISSING 1  #define X_DISPLAY_MISSING 1
4687  EOF  _ACEOF
4688    
4689    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4690  else  else
# Line 2458  else Line 4697  else
4697      X_LIBS="$X_LIBS -L$x_libraries"      X_LIBS="$X_LIBS -L$x_libraries"
4698      # 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
4699      # others require no space.  Words are not sufficient . . . .      # others require no space.  Words are not sufficient . . . .
4700      case "`(uname -sr) 2>/dev/null`" in      case `(uname -sr) 2>/dev/null` in
4701      "SunOS 5"*)      "SunOS 5"*)
4702        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
4703  echo "configure:2465: 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
4704        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"        ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4705        cat > conftest.$ac_ext <<EOF        cat >conftest.$ac_ext <<_ACEOF
4706  #line 2468 "configure"  /* confdefs.h.  */
4707  #include "confdefs.h"  _ACEOF
4708    cat confdefs.h >>conftest.$ac_ext
4709    cat >>conftest.$ac_ext <<_ACEOF
4710    /* end confdefs.h.  */
4711    
4712  int main() {  int
4713    main ()
4714    {
4715    
4716  ; return 0; }    ;
4717  EOF    return 0;
4718  if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4719    rm -rf conftest*  _ACEOF
4720    rm -f conftest.$ac_objext conftest$ac_exeext
4721    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722      (eval $ac_link) 2>conftest.er1
4723      ac_status=$?
4724      grep -v '^ *+' conftest.er1 >conftest.err
4725      rm -f conftest.er1
4726      cat conftest.err >&5
4727      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728      (exit $ac_status); } &&
4729             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4730      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731      (eval $ac_try) 2>&5
4732      ac_status=$?
4733      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734      (exit $ac_status); }; } &&
4735             { ac_try='test -s conftest$ac_exeext'
4736      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737      (eval $ac_try) 2>&5
4738      ac_status=$?
4739      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740      (exit $ac_status); }; }; then
4741    ac_R_nospace=yes    ac_R_nospace=yes
4742  else  else
4743    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4744    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4745    rm -rf conftest*  
4746    ac_R_nospace=no  ac_R_nospace=no
4747  fi  fi
4748  rm -f conftest*  rm -f conftest.err conftest.$ac_objext \
4749          conftest$ac_exeext conftest.$ac_ext
4750        if test $ac_R_nospace = yes; then        if test $ac_R_nospace = yes; then
4751          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
4752    echo "${ECHO_T}no" >&6
4753          X_LIBS="$X_LIBS -R$x_libraries"          X_LIBS="$X_LIBS -R$x_libraries"
4754        else        else
4755          LIBS="$ac_xsave_LIBS -R $x_libraries"          LIBS="$ac_xsave_LIBS -R $x_libraries"
4756          cat > conftest.$ac_ext <<EOF          cat >conftest.$ac_ext <<_ACEOF
4757  #line 2491 "configure"  /* confdefs.h.  */
4758  #include "confdefs.h"  _ACEOF
4759    cat confdefs.h >>conftest.$ac_ext
4760    cat >>conftest.$ac_ext <<_ACEOF
4761    /* end confdefs.h.  */
4762    
4763  int main() {  int
4764    main ()
4765    {
4766    
4767  ; return 0; }    ;
4768  EOF    return 0;
4769  if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4770    rm -rf conftest*  _ACEOF
4771    rm -f conftest.$ac_objext conftest$ac_exeext
4772    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4773      (eval $ac_link) 2>conftest.er1
4774      ac_status=$?
4775      grep -v '^ *+' conftest.er1 >conftest.err
4776      rm -f conftest.er1
4777      cat conftest.err >&5
4778      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779      (exit $ac_status); } &&
4780             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4781      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782      (eval $ac_try) 2>&5
4783      ac_status=$?
4784      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785      (exit $ac_status); }; } &&
4786             { ac_try='test -s conftest$ac_exeext'
4787      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788      (eval $ac_try) 2>&5
4789      ac_status=$?
4790      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791      (exit $ac_status); }; }; then
4792    ac_R_space=yes    ac_R_space=yes
4793  else  else
4794    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4795    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4796    rm -rf conftest*  
4797    ac_R_space=no  ac_R_space=no
4798  fi  fi
4799  rm -f conftest*  rm -f conftest.err conftest.$ac_objext \
4800          conftest$ac_exeext conftest.$ac_ext
4801          if test $ac_R_space = yes; then          if test $ac_R_space = yes; then
4802            echo "$ac_t""yes" 1>&6            echo "$as_me:$LINENO: result: yes" >&5
4803    echo "${ECHO_T}yes" >&6
4804            X_LIBS="$X_LIBS -R $x_libraries"            X_LIBS="$X_LIBS -R $x_libraries"
4805          else          else
4806            echo "$ac_t""neither works" 1>&6            echo "$as_me:$LINENO: result: neither works" >&5
4807    echo "${ECHO_T}neither works" >&6
4808          fi          fi
4809        fi        fi
4810        LIBS="$ac_xsave_LIBS"        LIBS=$ac_xsave_LIBS
4811      esac      esac
4812    fi    fi
4813    
# Line 2522  rm -f conftest* Line 4818  rm -f conftest*
4818    if test "$ISC" = yes; then    if test "$ISC" = yes; then
4819      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4820    else    else
4821      # 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
4822      # libraries were built with DECnet support.  And karl@cs.umb.edu says      # libraries were built with DECnet support.  And Karl Berry says
4823      # the Alpha needs dnet_stub (dnet does not exist).      # the Alpha needs dnet_stub (dnet does not exist).
4824      echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4825  echo "configure:2530: checking for dnet_ntoa in -ldnet" >&5      cat >conftest.$ac_ext <<_ACEOF
4826  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`  /* confdefs.h.  */
4827  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  _ACEOF
4828    echo $ac_n "(cached) $ac_c" 1>&6  cat confdefs.h >>conftest.$ac_ext
4829  else  cat >>conftest.$ac_ext <<_ACEOF
4830    ac_save_LIBS="$LIBS"  /* end confdefs.h.  */
4831  LIBS="-ldnet  $LIBS"  
 cat > conftest.$ac_ext <<EOF  
 #line 2538 "configure"  
 #include "confdefs.h"  
4832  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4833    #ifdef __cplusplus
4834    extern "C"
4835    #endif
4836  /* 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
4837      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4838  char dnet_ntoa();  char XOpenDisplay ();
4839    int
4840    main ()
4841    {
4842    XOpenDisplay ();
4843      ;
4844      return 0;
4845    }
4846    _ACEOF
4847    rm -f conftest.$ac_objext conftest$ac_exeext
4848    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4849      (eval $ac_link) 2>conftest.er1
4850      ac_status=$?
4851      grep -v '^ *+' conftest.er1 >conftest.err
4852      rm -f conftest.er1
4853      cat conftest.err >&5
4854      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855      (exit $ac_status); } &&
4856             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4857      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858      (eval $ac_try) 2>&5
4859      ac_status=$?
4860      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861      (exit $ac_status); }; } &&
4862             { ac_try='test -s conftest$ac_exeext'
4863      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864      (eval $ac_try) 2>&5
4865      ac_status=$?
4866      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867      (exit $ac_status); }; }; then
4868      :
4869    else
4870      echo "$as_me: failed program was:" >&5
4871    sed 's/^/| /' conftest.$ac_ext >&5
4872    
4873  int main() {  echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4874  dnet_ntoa()  echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4875  ; return 0; }  if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4876  EOF    echo $ECHO_N "(cached) $ECHO_C" >&6
4877  if { (eval echo configure:2549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  else
4878    rm -rf conftest*    ac_check_lib_save_LIBS=$LIBS
4879    eval "ac_cv_lib_$ac_lib_var=yes"  LIBS="-ldnet  $LIBS"
4880  else  cat >conftest.$ac_ext <<_ACEOF
4881    echo "configure: failed program was:" >&5  /* confdefs.h.  */
4882    cat conftest.$ac_ext >&5  _ACEOF
4883    rm -rf conftest*  cat confdefs.h >>conftest.$ac_ext
4884    eval "ac_cv_lib_$ac_lib_var=no"  cat >>conftest.$ac_ext <<_ACEOF
4885  fi  /* end confdefs.h.  */
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4886    
4887  fi  /* Override any gcc2 internal prototype to avoid an error.  */
4888  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
4889    echo "$ac_t""yes" 1>&6  extern "C"
4890    #endif
4891    /* We use char because int might match the return type of a gcc2
4892       builtin and then its argument prototype would still apply.  */
4893    char dnet_ntoa ();
4894    int
4895    main ()
4896    {
4897    dnet_ntoa ();
4898      ;
4899      return 0;
4900    }
4901    _ACEOF
4902    rm -f conftest.$ac_objext conftest$ac_exeext
4903    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4904      (eval $ac_link) 2>conftest.er1
4905      ac_status=$?
4906      grep -v '^ *+' conftest.er1 >conftest.err
4907      rm -f conftest.er1
4908      cat conftest.err >&5
4909      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910      (exit $ac_status); } &&
4911             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4912      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913      (eval $ac_try) 2>&5
4914      ac_status=$?
4915      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916      (exit $ac_status); }; } &&
4917             { ac_try='test -s conftest$ac_exeext'
4918      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919      (eval $ac_try) 2>&5
4920      ac_status=$?
4921      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922      (exit $ac_status); }; }; then
4923      ac_cv_lib_dnet_dnet_ntoa=yes
4924    else
4925      echo "$as_me: failed program was:" >&5
4926    sed 's/^/| /' conftest.$ac_ext >&5
4927    
4928    ac_cv_lib_dnet_dnet_ntoa=no
4929    fi
4930    rm -f conftest.err conftest.$ac_objext \
4931          conftest$ac_exeext conftest.$ac_ext
4932    LIBS=$ac_check_lib_save_LIBS
4933    fi
4934    echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4935    echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4936    if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4937    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 else  
   echo "$ac_t""no" 1>&6  
4938  fi  fi
4939    
4940      if test $ac_cv_lib_dnet_dnet_ntoa = no; then      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4941        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
4942  echo "configure:2571: checking for dnet_ntoa in -ldnet_stub" >&5  echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4943  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4944  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  
4945  else  else
4946    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4947  LIBS="-ldnet_stub  $LIBS"  LIBS="-ldnet_stub  $LIBS"
4948  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4949  #line 2579 "configure"  /* confdefs.h.  */
4950  #include "confdefs.h"  _ACEOF
4951    cat confdefs.h >>conftest.$ac_ext
4952    cat >>conftest.$ac_ext <<_ACEOF
4953    /* end confdefs.h.  */
4954    
4955  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4956    #ifdef __cplusplus
4957    extern "C"
4958    #endif
4959  /* 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
4960      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4961  char dnet_ntoa();  char dnet_ntoa ();
4962    int
4963  int main() {  main ()
4964  dnet_ntoa()  {
4965  ; return 0; }  dnet_ntoa ();
4966  EOF    ;
4967  if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
4968    rm -rf conftest*  }
4969    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
4970  else  rm -f conftest.$ac_objext conftest$ac_exeext
4971    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972    cat conftest.$ac_ext >&5    (eval $ac_link) 2>conftest.er1
4973    rm -rf conftest*    ac_status=$?
4974    eval "ac_cv_lib_$ac_lib_var=no"    grep -v '^ *+' conftest.er1 >conftest.err
4975  fi    rm -f conftest.er1
4976  rm -f conftest*    cat conftest.err >&5
4977  LIBS="$ac_save_LIBS"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978      (exit $ac_status); } &&
4979  fi           { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4980  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981    echo "$ac_t""yes" 1>&6    (eval $ac_try) 2>&5
4982      ac_status=$?
4983      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984      (exit $ac_status); }; } &&
4985             { ac_try='test -s conftest$ac_exeext'
4986      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987      (eval $ac_try) 2>&5
4988      ac_status=$?
4989      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990      (exit $ac_status); }; }; then
4991      ac_cv_lib_dnet_stub_dnet_ntoa=yes
4992    else
4993      echo "$as_me: failed program was:" >&5
4994    sed 's/^/| /' conftest.$ac_ext >&5
4995    
4996    ac_cv_lib_dnet_stub_dnet_ntoa=no
4997    fi
4998    rm -f conftest.err conftest.$ac_objext \
4999          conftest$ac_exeext conftest.$ac_ext
5000    LIBS=$ac_check_lib_save_LIBS
5001    fi
5002    echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5003    echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5004    if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5005    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 else  
   echo "$ac_t""no" 1>&6  
5006  fi  fi
5007    
5008      fi      fi
5009    fi
5010    rm -f conftest.err conftest.$ac_objext \
5011          conftest$ac_exeext conftest.$ac_ext
5012        LIBS="$ac_xsave_LIBS"
5013    
5014      # 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,
5015      # to get the SysV transport functions.      # to get the SysV transport functions.
5016      # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)      # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5017      # needs -lnsl.      # needs -lnsl.
5018      # The nsl library prevents programs from opening the X display      # The nsl library prevents programs from opening the X display
5019      # on Irix 5.2, according to dickey@clark.net.      # on Irix 5.2, according to T.E. Dickey.
5020      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6      # The functions gethostbyname, getservbyname, and inet_addr are
5021  echo "configure:2619: checking for gethostbyname" >&5      # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5022  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then      echo "$as_me:$LINENO: checking for gethostbyname" >&5
5023    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5024  else  if test "${ac_cv_func_gethostbyname+set}" = set; then
5025    cat > conftest.$ac_ext <<EOF    echo $ECHO_N "(cached) $ECHO_C" >&6
5026  #line 2624 "configure"  else
5027  #include "confdefs.h"    cat >conftest.$ac_ext <<_ACEOF
5028    /* confdefs.h.  */
5029    _ACEOF
5030    cat confdefs.h >>conftest.$ac_ext
5031    cat >>conftest.$ac_ext <<_ACEOF
5032    /* end confdefs.h.  */
5033    /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5034       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5035    #define gethostbyname innocuous_gethostbyname
5036    
5037  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5038      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname (); below.
5039  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char gethostbyname();  
5041    
5042  int main() {  #ifdef __STDC__
5043    # include <limits.h>
5044    #else
5045    # include <assert.h>
5046    #endif
5047    
5048    #undef gethostbyname
5049    
5050    /* Override any gcc2 internal prototype to avoid an error.  */
5051    #ifdef __cplusplus
5052    extern "C"
5053    {
5054    #endif
5055    /* We use char because int might match the return type of a gcc2
5056       builtin and then its argument prototype would still apply.  */
5057    char gethostbyname ();
5058  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5059      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5060      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5061  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5062  choke me  choke me
5063  #else  #else
5064  gethostbyname();  char (*f) () = gethostbyname;
5065    #endif
5066    #ifdef __cplusplus
5067    }
5068  #endif  #endif
5069    
5070  ; return 0; }  int
5071  EOF  main ()
5072  if { (eval echo configure:2647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
5073    rm -rf conftest*  return f != gethostbyname;
5074    eval "ac_cv_func_gethostbyname=yes"    ;
5075  else    return 0;
5076    echo "configure: failed program was:" >&5  }
5077    cat conftest.$ac_ext >&5  _ACEOF
5078    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
5079    eval "ac_cv_func_gethostbyname=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5080  fi    (eval $ac_link) 2>conftest.er1
5081  rm -f conftest*    ac_status=$?
5082  fi    grep -v '^ *+' conftest.er1 >conftest.err
5083      rm -f conftest.er1
5084      cat conftest.err >&5
5085      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086      (exit $ac_status); } &&
5087             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5088      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089      (eval $ac_try) 2>&5
5090      ac_status=$?
5091      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092      (exit $ac_status); }; } &&
5093             { ac_try='test -s conftest$ac_exeext'
5094      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095      (eval $ac_try) 2>&5
5096      ac_status=$?
5097      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098      (exit $ac_status); }; }; then
5099      ac_cv_func_gethostbyname=yes
5100    else
5101      echo "$as_me: failed program was:" >&5
5102    sed 's/^/| /' conftest.$ac_ext >&5
5103    
5104  if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then  ac_cv_func_gethostbyname=no
5105    echo "$ac_t""yes" 1>&6  fi
5106    :  rm -f conftest.err conftest.$ac_objext \
5107  else        conftest$ac_exeext conftest.$ac_ext
   echo "$ac_t""no" 1>&6  
5108  fi  fi
5109    echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5110    echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5111    
5112      if test $ac_cv_func_gethostbyname = no; then      if test $ac_cv_func_gethostbyname = no; then
5113        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5114  echo "configure:2668: checking for gethostbyname in -lnsl" >&5  echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5115  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5116  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  
5117  else  else
5118    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5119  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
5120  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5121  #line 2676 "configure"  /* confdefs.h.  */
5122  #include "confdefs.h"  _ACEOF
5123    cat confdefs.h >>conftest.$ac_ext
5124    cat >>conftest.$ac_ext <<_ACEOF
5125    /* end confdefs.h.  */
5126    
5127  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5128    #ifdef __cplusplus
5129    extern "C"
5130    #endif
5131  /* 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
5132      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5133  char gethostbyname();  char gethostbyname ();
5134    int
5135  int main() {  main ()
5136  gethostbyname()  {
5137  ; return 0; }  gethostbyname ();
5138  EOF    ;
5139  if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
5140    rm -rf conftest*  }
5141    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
5142  else  rm -f conftest.$ac_objext conftest$ac_exeext
5143    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5144    cat conftest.$ac_ext >&5    (eval $ac_link) 2>conftest.er1
5145    rm -rf conftest*    ac_status=$?
5146    eval "ac_cv_lib_$ac_lib_var=no"    grep -v '^ *+' conftest.er1 >conftest.err
5147      rm -f conftest.er1
5148      cat conftest.err >&5
5149      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150      (exit $ac_status); } &&
5151             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5152      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153      (eval $ac_try) 2>&5
5154      ac_status=$?
5155      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156      (exit $ac_status); }; } &&
5157             { ac_try='test -s conftest$ac_exeext'
5158      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159      (eval $ac_try) 2>&5
5160      ac_status=$?
5161      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162      (exit $ac_status); }; }; then
5163      ac_cv_lib_nsl_gethostbyname=yes
5164    else
5165      echo "$as_me: failed program was:" >&5
5166    sed 's/^/| /' conftest.$ac_ext >&5
5167    
5168    ac_cv_lib_nsl_gethostbyname=no
5169    fi
5170    rm -f conftest.err conftest.$ac_objext \
5171          conftest$ac_exeext conftest.$ac_ext
5172    LIBS=$ac_check_lib_save_LIBS
5173    fi
5174    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5175    echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5176    if test $ac_cv_lib_nsl_gethostbyname = yes; then
5177      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5178  fi  fi
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
5179    
5180  fi        if test $ac_cv_lib_nsl_gethostbyname = no; then
5181  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then          echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5182    echo "$ac_t""yes" 1>&6  echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5183    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"  if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5184  else    echo $ECHO_N "(cached) $ECHO_C" >&6
5185    echo "$ac_t""no" 1>&6  else
5186      ac_check_lib_save_LIBS=$LIBS
5187    LIBS="-lbsd  $LIBS"
5188    cat >conftest.$ac_ext <<_ACEOF
5189    /* confdefs.h.  */
5190    _ACEOF
5191    cat confdefs.h >>conftest.$ac_ext
5192    cat >>conftest.$ac_ext <<_ACEOF
5193    /* end confdefs.h.  */
5194    
5195    /* Override any gcc2 internal prototype to avoid an error.  */
5196    #ifdef __cplusplus
5197    extern "C"
5198    #endif
5199    /* We use char because int might match the return type of a gcc2
5200       builtin and then its argument prototype would still apply.  */
5201    char gethostbyname ();
5202    int
5203    main ()
5204    {
5205    gethostbyname ();
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>conftest.er1
5213      ac_status=$?
5214      grep -v '^ *+' conftest.er1 >conftest.err
5215      rm -f conftest.er1
5216      cat conftest.err >&5
5217      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218      (exit $ac_status); } &&
5219             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5220      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221      (eval $ac_try) 2>&5
5222      ac_status=$?
5223      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224      (exit $ac_status); }; } &&
5225             { ac_try='test -s conftest$ac_exeext'
5226      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227      (eval $ac_try) 2>&5
5228      ac_status=$?
5229      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230      (exit $ac_status); }; }; then
5231      ac_cv_lib_bsd_gethostbyname=yes
5232    else
5233      echo "$as_me: failed program was:" >&5
5234    sed 's/^/| /' conftest.$ac_ext >&5
5235    
5236    ac_cv_lib_bsd_gethostbyname=no
5237    fi
5238    rm -f conftest.err conftest.$ac_objext \
5239          conftest$ac_exeext conftest.$ac_ext
5240    LIBS=$ac_check_lib_save_LIBS
5241    fi
5242    echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5243    echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5244    if test $ac_cv_lib_bsd_gethostbyname = yes; then
5245      X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5246  fi  fi
5247    
5248          fi
5249      fi      fi
5250    
5251      # lieder@skyler.mavd.honeywell.com says without -lsocket,      # lieder@skyler.mavd.honeywell.com says without -lsocket,
5252      # socket/setsockopt and other routines are undefined under SCO ODT      # socket/setsockopt and other routines are undefined under SCO ODT
5253      # 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
5254      # on later versions), says simon@lia.di.epfl.ch: it contains      # on later versions), says Simon Leinen: it contains gethostby*
5255      # gethostby* variants that don't use the nameserver (or something).      # variants that don't use the name server (or something).  -lsocket
5256      # -lsocket must be given before -lnsl if both are needed.      # must be given before -lnsl if both are needed.  We assume that
5257      # We assume that if connect needs -lnsl, so does gethostbyname.      # if connect needs -lnsl, so does gethostbyname.
5258      echo $ac_n "checking for connect""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for connect" >&5
5259  echo "configure:2717: checking for connect" >&5  echo $ECHO_N "checking for connect... $ECHO_C" >&6
5260  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if test "${ac_cv_func_connect+set}" = set; then
5261    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5262  else  else
5263    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5264  #line 2722 "configure"  /* confdefs.h.  */
5265  #include "confdefs.h"  _ACEOF
5266    cat confdefs.h >>conftest.$ac_ext
5267    cat >>conftest.$ac_ext <<_ACEOF
5268    /* end confdefs.h.  */
5269    /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5270       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5271    #define connect innocuous_connect
5272    
5273  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5274      which can conflict with char connect(); below.  */      which can conflict with char connect (); below.
5275  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5276  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char connect();  
5277    
5278  int main() {  #ifdef __STDC__
5279    # include <limits.h>
5280    #else
5281    # include <assert.h>
5282    #endif
5283    
5284    #undef connect
5285    
5286    /* Override any gcc2 internal prototype to avoid an error.  */
5287    #ifdef __cplusplus
5288    extern "C"
5289    {
5290    #endif
5291    /* We use char because int might match the return type of a gcc2
5292       builtin and then its argument prototype would still apply.  */
5293    char connect ();
5294  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5295      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5296      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5297  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
5298  choke me  choke me
5299  #else  #else
5300  connect();  char (*f) () = connect;
5301    #endif
5302    #ifdef __cplusplus
5303    }
5304  #endif  #endif
5305    
5306  ; return 0; }  int
5307  EOF  main ()
5308  if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
5309    rm -rf conftest*  return f != connect;
5310    eval "ac_cv_func_connect=yes"    ;
5311  else    return 0;
5312    echo "configure: failed program was:" >&5  }
5313    cat conftest.$ac_ext >&5  _ACEOF
5314    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
5315    eval "ac_cv_func_connect=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5316  fi    (eval $ac_link) 2>conftest.er1
5317  rm -f conftest*    ac_status=$?
5318  fi    grep -v '^ *+' conftest.er1 >conftest.err
5319      rm -f conftest.er1
5320      cat conftest.err >&5
5321      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322      (exit $ac_status); } &&
5323             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5324      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325      (eval $ac_try) 2>&5
5326      ac_status=$?
5327      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328      (exit $ac_status); }; } &&
5329             { ac_try='test -s conftest$ac_exeext'
5330      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331      (eval $ac_try) 2>&5
5332      ac_status=$?
5333      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334      (exit $ac_status); }; }; then
5335      ac_cv_func_connect=yes
5336    else
5337      echo "$as_me: failed program was:" >&5
5338    sed 's/^/| /' conftest.$ac_ext >&5
5339    
5340  if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then  ac_cv_func_connect=no
   echo "$ac_t""yes" 1>&6  
   :  
 else  
   echo "$ac_t""no" 1>&6  
5341  fi  fi
5342    rm -f conftest.err conftest.$ac_objext \
5343          conftest$ac_exeext conftest.$ac_ext
5344    fi
5345    echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5346    echo "${ECHO_T}$ac_cv_func_connect" >&6
5347    
5348      if test $ac_cv_func_connect = no; then      if test $ac_cv_func_connect = no; then
5349        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5350  echo "configure:2766: checking for connect in -lsocket" >&5  echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5351  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_connect+set}" = set; then
5352  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  
5353  else  else
5354    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5355  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5356  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5357  #line 2774 "configure"  /* confdefs.h.  */
5358  #include "confdefs.h"  _ACEOF
5359    cat confdefs.h >>conftest.$ac_ext
5360    cat >>conftest.$ac_ext <<_ACEOF
5361    /* end confdefs.h.  */
5362    
5363  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5364    #ifdef __cplusplus
5365    extern "C"
5366    #endif
5367  /* 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
5368      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5369  char connect();  char connect ();
5370    int
5371  int main() {  main ()
5372  connect()  {
5373  ; return 0; }  connect ();
5374  EOF    ;
5375  if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
5376    rm -rf conftest*  }
5377    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
5378  else  rm -f conftest.$ac_objext conftest$ac_exeext
5379    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5380    cat conftest.$ac_ext >&5    (eval $ac_link) 2>conftest.er1
5381    rm -rf conftest*    ac_status=$?
5382    eval "ac_cv_lib_$ac_lib_var=no"    grep -v '^ *+' conftest.er1 >conftest.err
5383  fi    rm -f conftest.er1
5384  rm -f conftest*    cat conftest.err >&5
5385  LIBS="$ac_save_LIBS"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386      (exit $ac_status); } &&
5387  fi           { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5388  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389    echo "$ac_t""yes" 1>&6    (eval $ac_try) 2>&5
5390      ac_status=$?
5391      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392      (exit $ac_status); }; } &&
5393             { ac_try='test -s conftest$ac_exeext'
5394      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395      (eval $ac_try) 2>&5
5396      ac_status=$?
5397      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398      (exit $ac_status); }; }; then
5399      ac_cv_lib_socket_connect=yes
5400    else
5401      echo "$as_me: failed program was:" >&5
5402    sed 's/^/| /' conftest.$ac_ext >&5
5403    
5404    ac_cv_lib_socket_connect=no
5405    fi
5406    rm -f conftest.err conftest.$ac_objext \
5407          conftest$ac_exeext conftest.$ac_ext
5408    LIBS=$ac_check_lib_save_LIBS
5409    fi
5410    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5411    echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5412    if test $ac_cv_lib_socket_connect = yes; then
5413    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 else  
   echo "$ac_t""no" 1>&6  
5414  fi  fi
5415    
5416      fi      fi
5417    
5418      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.      # Guillermo Gomez says -lposix is necessary on A/UX.
5419      echo $ac_n "checking for remove""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for remove" >&5
5420  echo "configure:2809: checking for remove" >&5  echo $ECHO_N "checking for remove... $ECHO_C" >&6
5421  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then  if test "${ac_cv_func_remove+set}" = set; then
5422    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5423  else  else
5424    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5425  #line 2814 "configure"  /* confdefs.h.  */
5426  #include "confdefs.h"  _ACEOF
5427    cat confdefs.h >>conftest.$ac_ext
5428    cat >>conftest.$ac_ext <<_ACEOF
5429    /* end confdefs.h.  */
5430    /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5431       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5432    #define remove innocuous_remove
5433    
5434  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5435      which can conflict with char remove(); below.  */      which can conflict with char remove (); below.
5436  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5437  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char remove();  
5438    
5439  int main() {  #ifdef __STDC__
5440    # include <limits.h>
5441    #else
5442    # include <assert.h>
5443    #endif
5444    
5445    #undef remove
5446    
5447    /* Override any gcc2 internal prototype to avoid an error.  */
5448    #ifdef __cplusplus
5449    extern "C"
5450    {
5451    #endif
5452    /* We use char because int might match the return type of a gcc2
5453       builtin and then its argument prototype would still apply.  */
5454    char remove ();
5455  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5456      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5457      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5458  #if defined (__stub_remove) || defined (__stub___remove)  #if defined (__stub_remove) || defined (__stub___remove)
5459  choke me  choke me
5460  #else  #else
5461  remove();  char (*f) () = remove;
5462    #endif
5463    #ifdef __cplusplus
5464    }
5465  #endif  #endif
5466    
5467  ; return 0; }  int
5468  EOF  main ()
5469  if { (eval echo configure:2837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
5470    rm -rf conftest*  return f != remove;
5471    eval "ac_cv_func_remove=yes"    ;
5472  else    return 0;
5473    echo "configure: failed program was:" >&5  }
5474    cat conftest.$ac_ext >&5  _ACEOF
5475    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
5476    eval "ac_cv_func_remove=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5477  fi    (eval $ac_link) 2>conftest.er1
5478  rm -f conftest*    ac_status=$?
5479  fi    grep -v '^ *+' conftest.er1 >conftest.err
5480      rm -f conftest.er1
5481      cat conftest.err >&5
5482      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483      (exit $ac_status); } &&
5484             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5485      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486      (eval $ac_try) 2>&5
5487      ac_status=$?
5488      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489      (exit $ac_status); }; } &&
5490             { ac_try='test -s conftest$ac_exeext'
5491      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492      (eval $ac_try) 2>&5
5493      ac_status=$?
5494      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495      (exit $ac_status); }; }; then
5496      ac_cv_func_remove=yes
5497    else
5498      echo "$as_me: failed program was:" >&5
5499    sed 's/^/| /' conftest.$ac_ext >&5
5500    
5501  if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then  ac_cv_func_remove=no
   echo "$ac_t""yes" 1>&6  
   :  
 else  
   echo "$ac_t""no" 1>&6  
5502  fi  fi
5503    rm -f conftest.err conftest.$ac_objext \
5504          conftest$ac_exeext conftest.$ac_ext
5505    fi
5506    echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5507    echo "${ECHO_T}$ac_cv_func_remove" >&6
5508    
5509      if test $ac_cv_func_remove = no; then      if test $ac_cv_func_remove = no; then
5510        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5511  echo "configure:2858: checking for remove in -lposix" >&5  echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5512  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_posix_remove+set}" = set; then
5513  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  
5514  else  else
5515    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5516  LIBS="-lposix  $LIBS"  LIBS="-lposix  $LIBS"
5517  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5518  #line 2866 "configure"  /* confdefs.h.  */
5519  #include "confdefs.h"  _ACEOF
5520    cat confdefs.h >>conftest.$ac_ext
5521    cat >>conftest.$ac_ext <<_ACEOF
5522    /* end confdefs.h.  */
5523    
5524  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5525    #ifdef __cplusplus
5526    extern "C"
5527    #endif
5528  /* 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
5529      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5530  char remove();  char remove ();
5531    int
5532  int main() {  main ()
5533  remove()  {
5534  ; return 0; }  remove ();
5535  EOF    ;
5536  if { (eval echo configure:2877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
5537    rm -rf conftest*  }
5538    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
5539  else  rm -f conftest.$ac_objext conftest$ac_exeext
5540    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5541    cat conftest.$ac_ext >&5    (eval $ac_link) 2>conftest.er1
5542    rm -rf conftest*    ac_status=$?
5543    eval "ac_cv_lib_$ac_lib_var=no"    grep -v '^ *+' conftest.er1 >conftest.err
5544  fi    rm -f conftest.er1
5545  rm -f conftest*    cat conftest.err >&5
5546  LIBS="$ac_save_LIBS"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547      (exit $ac_status); } &&
5548  fi           { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5549  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550    echo "$ac_t""yes" 1>&6    (eval $ac_try) 2>&5
5551      ac_status=$?
5552      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553      (exit $ac_status); }; } &&
5554             { ac_try='test -s conftest$ac_exeext'
5555      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556      (eval $ac_try) 2>&5
5557      ac_status=$?
5558      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559      (exit $ac_status); }; }; then
5560      ac_cv_lib_posix_remove=yes
5561    else
5562      echo "$as_me: failed program was:" >&5
5563    sed 's/^/| /' conftest.$ac_ext >&5
5564    
5565    ac_cv_lib_posix_remove=no
5566    fi
5567    rm -f conftest.err conftest.$ac_objext \
5568          conftest$ac_exeext conftest.$ac_ext
5569    LIBS=$ac_check_lib_save_LIBS
5570    fi
5571    echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5572    echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5573    if test $ac_cv_lib_posix_remove = yes; then
5574    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 else  
   echo "$ac_t""no" 1>&6  
5575  fi  fi
5576    
5577      fi      fi
5578    
5579      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5580      echo $ac_n "checking for shmat""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for shmat" >&5
5581  echo "configure:2901: checking for shmat" >&5  echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5582  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then  if test "${ac_cv_func_shmat+set}" = set; then
5583    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5584  else  else
5585    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5586  #line 2906 "configure"  /* confdefs.h.  */
5587  #include "confdefs.h"  _ACEOF
5588    cat confdefs.h >>conftest.$ac_ext
5589    cat >>conftest.$ac_ext <<_ACEOF
5590    /* end confdefs.h.  */
5591    /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5592       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5593    #define shmat innocuous_shmat
5594    
5595  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5596      which can conflict with char shmat(); below.  */      which can conflict with char shmat (); below.
5597  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5598  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char shmat();  
5599    
5600  int main() {  #ifdef __STDC__
5601    # include <limits.h>
5602    #else
5603    # include <assert.h>
5604    #endif
5605    
5606    #undef shmat
5607    
5608    /* Override any gcc2 internal prototype to avoid an error.  */
5609    #ifdef __cplusplus
5610    extern "C"
5611    {
5612    #endif
5613    /* We use char because int might match the return type of a gcc2
5614       builtin and then its argument prototype would still apply.  */
5615    char shmat ();
5616  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5617      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5618      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5619  #if defined (__stub_shmat) || defined (__stub___shmat)  #if defined (__stub_shmat) || defined (__stub___shmat)
5620  choke me  choke me
5621  #else  #else
5622  shmat();  char (*f) () = shmat;
5623    #endif
5624    #ifdef __cplusplus
5625    }
5626  #endif  #endif
5627    
5628  ; return 0; }  int
5629  EOF  main ()
5630  if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
5631    rm -rf conftest*  return f != shmat;
5632    eval "ac_cv_func_shmat=yes"    ;
5633  else    return 0;
5634    echo "configure: failed program was:" >&5  }
5635    cat conftest.$ac_ext >&5  _ACEOF
5636    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
5637    eval "ac_cv_func_shmat=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5638  fi    (eval $ac_link) 2>conftest.er1
5639  rm -f conftest*    ac_status=$?
5640  fi    grep -v '^ *+' conftest.er1 >conftest.err
5641      rm -f conftest.er1
5642      cat conftest.err >&5
5643      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644      (exit $ac_status); } &&
5645             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5646      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647      (eval $ac_try) 2>&5
5648      ac_status=$?
5649      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650      (exit $ac_status); }; } &&
5651             { ac_try='test -s conftest$ac_exeext'
5652      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653      (eval $ac_try) 2>&5
5654      ac_status=$?
5655      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656      (exit $ac_status); }; }; then
5657      ac_cv_func_shmat=yes
5658    else
5659      echo "$as_me: failed program was:" >&5
5660    sed 's/^/| /' conftest.$ac_ext >&5
5661    
5662  if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then  ac_cv_func_shmat=no
5663    echo "$ac_t""yes" 1>&6  fi
5664    :  rm -f conftest.err conftest.$ac_objext \
5665  else        conftest$ac_exeext conftest.$ac_ext
   echo "$ac_t""no" 1>&6  
5666  fi  fi
5667    echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5668    echo "${ECHO_T}$ac_cv_func_shmat" >&6
5669    
5670      if test $ac_cv_func_shmat = no; then      if test $ac_cv_func_shmat = no; then
5671        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5672  echo "configure:2950: checking for shmat in -lipc" >&5  echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5673  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5674  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  
5675  else  else
5676    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5677  LIBS="-lipc  $LIBS"  LIBS="-lipc  $LIBS"
5678  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5679  #line 2958 "configure"  /* confdefs.h.  */
5680  #include "confdefs.h"  _ACEOF
5681    cat confdefs.h >>conftest.$ac_ext
5682    cat >>conftest.$ac_ext <<_ACEOF
5683    /* end confdefs.h.  */
5684    
5685  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5686    #ifdef __cplusplus
5687    extern "C"
5688    #endif
5689  /* 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
5690      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5691  char shmat();  char shmat ();
5692    int
5693  int main() {  main ()
5694  shmat()  {
5695  ; return 0; }  shmat ();
5696  EOF    ;
5697  if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
5698    rm -rf conftest*  }
5699    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
5700  else  rm -f conftest.$ac_objext conftest$ac_exeext
5701    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5702    cat conftest.$ac_ext >&5    (eval $ac_link) 2>conftest.er1
5703    rm -rf conftest*    ac_status=$?
5704    eval "ac_cv_lib_$ac_lib_var=no"    grep -v '^ *+' conftest.er1 >conftest.err
5705  fi    rm -f conftest.er1
5706  rm -f conftest*    cat conftest.err >&5
5707  LIBS="$ac_save_LIBS"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708      (exit $ac_status); } &&
5709  fi           { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5710  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711    echo "$ac_t""yes" 1>&6    (eval $ac_try) 2>&5
5712      ac_status=$?
5713      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714      (exit $ac_status); }; } &&
5715             { ac_try='test -s conftest$ac_exeext'
5716      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717      (eval $ac_try) 2>&5
5718      ac_status=$?
5719      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720      (exit $ac_status); }; }; then
5721      ac_cv_lib_ipc_shmat=yes
5722    else
5723      echo "$as_me: failed program was:" >&5
5724    sed 's/^/| /' conftest.$ac_ext >&5
5725    
5726    ac_cv_lib_ipc_shmat=no
5727    fi
5728    rm -f conftest.err conftest.$ac_objext \
5729          conftest$ac_exeext conftest.$ac_ext
5730    LIBS=$ac_check_lib_save_LIBS
5731    fi
5732    echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5733    echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5734    if test $ac_cv_lib_ipc_shmat = yes; then
5735    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 else  
   echo "$ac_t""no" 1>&6  
5736  fi  fi
5737    
5738      fi      fi
5739    fi    fi
5740    
5741    # Check for libraries that X11R6 Xt/Xaw programs need.    # Check for libraries that X11R6 Xt/Xaw programs need.
5742    ac_save_LDFLAGS="$LDFLAGS"    ac_save_LDFLAGS=$LDFLAGS
5743    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5744    # 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
5745    # 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
5746    # 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.
5747    # These have to be linked with before -lX11, unlike the other    # These have to be linked with before -lX11, unlike the other
5748    # libraries we check for below, so use a different variable.    # libraries we check for below, so use a different variable.
5749    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.    # John Interrante, Karl Berry
5750    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5751  echo "configure:3002: checking for IceConnectionNumber in -lICE" >&5  echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5752  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5753  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  
5754  else  else
5755    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5756  LIBS="-lICE $X_EXTRA_LIBS $LIBS"  LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5757  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5758  #line 3010 "configure"  /* confdefs.h.  */
5759  #include "confdefs.h"  _ACEOF
5760    cat confdefs.h >>conftest.$ac_ext
5761    cat >>conftest.$ac_ext <<_ACEOF
5762    /* end confdefs.h.  */
5763    
5764  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5765    #ifdef __cplusplus
5766    extern "C"
5767    #endif
5768  /* 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
5769      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5770  char IceConnectionNumber();  char IceConnectionNumber ();
5771    int
5772  int main() {  main ()
5773  IceConnectionNumber()  {
5774  ; return 0; }  IceConnectionNumber ();
5775  EOF    ;
5776  if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
5777    rm -rf conftest*  }
5778    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
5779  else  rm -f conftest.$ac_objext conftest$ac_exeext
5780    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781    cat conftest.$ac_ext >&5    (eval $ac_link) 2>conftest.er1
5782    rm -rf conftest*    ac_status=$?
5783    eval "ac_cv_lib_$ac_lib_var=no"    grep -v '^ *+' conftest.er1 >conftest.err
5784  fi    rm -f conftest.er1
5785  rm -f conftest*    cat conftest.err >&5
5786  LIBS="$ac_save_LIBS"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787      (exit $ac_status); } &&
5788  fi           { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5789  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790    echo "$ac_t""yes" 1>&6    (eval $ac_try) 2>&5
5791      ac_status=$?
5792      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793      (exit $ac_status); }; } &&
5794             { ac_try='test -s conftest$ac_exeext'
5795      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796      (eval $ac_try) 2>&5
5797      ac_status=$?
5798      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799      (exit $ac_status); }; }; then
5800      ac_cv_lib_ICE_IceConnectionNumber=yes
5801    else
5802      echo "$as_me: failed program was:" >&5
5803    sed 's/^/| /' conftest.$ac_ext >&5
5804    
5805    ac_cv_lib_ICE_IceConnectionNumber=no
5806    fi
5807    rm -f conftest.err conftest.$ac_objext \
5808          conftest$ac_exeext conftest.$ac_ext
5809    LIBS=$ac_check_lib_save_LIBS
5810    fi
5811    echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5812    echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5813    if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5814    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 else  
   echo "$ac_t""no" 1>&6  
5815  fi  fi
5816    
5817    LDFLAGS="$ac_save_LDFLAGS"    LDFLAGS=$ac_save_LDFLAGS
5818    
5819  fi  fi
5820    
# Line 3047  fi Line 5824  fi
5824  #echo $X_PRE_LIBS  #echo $X_PRE_LIBS
5825    
5826  miss=0  miss=0
5827  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXmu" >&5
5828  echo "configure:3052: checking for main in -lXmu" >&5  echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6
5829  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xmu_main+set}" = set; then
5830  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  
5831  else  else
5832    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5833  LIBS="-lXmu $X_LIBS $LIBS"  LIBS="-lXmu $X_LIBS $LIBS"
5834  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5835  #line 3060 "configure"  /* confdefs.h.  */
5836  #include "confdefs.h"  _ACEOF
5837    cat confdefs.h >>conftest.$ac_ext
5838    cat >>conftest.$ac_ext <<_ACEOF
5839    /* end confdefs.h.  */
5840    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
5841    
5842  fi  int
5843  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
5844    echo "$ac_t""yes" 1>&6  {
5845    main ();
5846      ;
5847      return 0;
5848    }
5849    _ACEOF
5850    rm -f conftest.$ac_objext conftest$ac_exeext
5851    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5852      (eval $ac_link) 2>conftest.er1
5853      ac_status=$?
5854      grep -v '^ *+' conftest.er1 >conftest.err
5855      rm -f conftest.er1
5856      cat conftest.err >&5
5857      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858      (exit $ac_status); } &&
5859             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5860      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861      (eval $ac_try) 2>&5
5862      ac_status=$?
5863      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864      (exit $ac_status); }; } &&
5865             { ac_try='test -s conftest$ac_exeext'
5866      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867      (eval $ac_try) 2>&5
5868      ac_status=$?
5869      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870      (exit $ac_status); }; }; then
5871      ac_cv_lib_Xmu_main=yes
5872    else
5873      echo "$as_me: failed program was:" >&5
5874    sed 's/^/| /' conftest.$ac_ext >&5
5875    
5876    ac_cv_lib_Xmu_main=no
5877    fi
5878    rm -f conftest.err conftest.$ac_objext \
5879          conftest$ac_exeext conftest.$ac_ext
5880    LIBS=$ac_check_lib_save_LIBS
5881    fi
5882    echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5
5883    echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6
5884    if test $ac_cv_lib_Xmu_main = yes; then
5885    X_LIBS="$X_LIBS -lXmu"    X_LIBS="$X_LIBS -lXmu"
5886  else  else
5887    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
5888  fi  fi
5889    
5890  echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXt" >&5
5891  echo "configure:3089: checking for main in -lXt" >&5  echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
5892  ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xt_main+set}" = set; then
5893  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  
5894  else  else
5895    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5896  LIBS="-lXt $X_LIBS $LIBS"  LIBS="-lXt $X_LIBS $LIBS"
5897  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5898  #line 3097 "configure"  /* confdefs.h.  */
5899  #include "confdefs.h"  _ACEOF
5900    cat confdefs.h >>conftest.$ac_ext
5901    cat >>conftest.$ac_ext <<_ACEOF
5902    /* end confdefs.h.  */
5903    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
5904    
5905  fi  int
5906  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
5907    echo "$ac_t""yes" 1>&6  {
5908    main ();
5909      ;
5910      return 0;
5911    }
5912    _ACEOF
5913    rm -f conftest.$ac_objext conftest$ac_exeext
5914    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5915      (eval $ac_link) 2>conftest.er1
5916      ac_status=$?
5917      grep -v '^ *+' conftest.er1 >conftest.err
5918      rm -f conftest.er1
5919      cat conftest.err >&5
5920      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921      (exit $ac_status); } &&
5922             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5923      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924      (eval $ac_try) 2>&5
5925      ac_status=$?
5926      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927      (exit $ac_status); }; } &&
5928             { ac_try='test -s conftest$ac_exeext'
5929      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930      (eval $ac_try) 2>&5
5931      ac_status=$?
5932      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933      (exit $ac_status); }; }; then
5934      ac_cv_lib_Xt_main=yes
5935    else
5936      echo "$as_me: failed program was:" >&5
5937    sed 's/^/| /' conftest.$ac_ext >&5
5938    
5939    ac_cv_lib_Xt_main=no
5940    fi
5941    rm -f conftest.err conftest.$ac_objext \
5942          conftest$ac_exeext conftest.$ac_ext
5943    LIBS=$ac_check_lib_save_LIBS
5944    fi
5945    echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
5946    echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
5947    if test $ac_cv_lib_Xt_main = yes; then
5948    X_LIBS="$X_LIBS -lXt"    X_LIBS="$X_LIBS -lXt"
5949  else  else
5950    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
5951  fi  fi
5952    
5953  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXext" >&5
5954  echo "configure:3126: checking for main in -lXext" >&5  echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6
5955  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xext_main+set}" = set; then
5956  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  
5957  else  else
5958    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5959  LIBS="-lXext $X_LIBS $LIBS"  LIBS="-lXext $X_LIBS $LIBS"
5960  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5961  #line 3134 "configure"  /* confdefs.h.  */
5962  #include "confdefs.h"  _ACEOF
5963    cat confdefs.h >>conftest.$ac_ext
5964    cat >>conftest.$ac_ext <<_ACEOF
5965    /* end confdefs.h.  */
5966    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
5967    
5968  fi  int
5969  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
5970    echo "$ac_t""yes" 1>&6  {
5971    main ();
5972      ;
5973      return 0;
5974    }
5975    _ACEOF
5976    rm -f conftest.$ac_objext conftest$ac_exeext
5977    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5978      (eval $ac_link) 2>conftest.er1
5979      ac_status=$?
5980      grep -v '^ *+' conftest.er1 >conftest.err
5981      rm -f conftest.er1
5982      cat conftest.err >&5
5983      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984      (exit $ac_status); } &&
5985             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5986      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987      (eval $ac_try) 2>&5
5988      ac_status=$?
5989      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990      (exit $ac_status); }; } &&
5991             { ac_try='test -s conftest$ac_exeext'
5992      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993      (eval $ac_try) 2>&5
5994      ac_status=$?
5995      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996      (exit $ac_status); }; }; then
5997      ac_cv_lib_Xext_main=yes
5998    else
5999      echo "$as_me: failed program was:" >&5
6000    sed 's/^/| /' conftest.$ac_ext >&5
6001    
6002    ac_cv_lib_Xext_main=no
6003    fi
6004    rm -f conftest.err conftest.$ac_objext \
6005          conftest$ac_exeext conftest.$ac_ext
6006    LIBS=$ac_check_lib_save_LIBS
6007    fi
6008    echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5
6009    echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6
6010    if test $ac_cv_lib_Xext_main = yes; then
6011    X_LIBS="$X_LIBS -lXext"    X_LIBS="$X_LIBS -lXext"
6012  else  else
6013    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
6014  fi  fi
6015    
6016  echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXaw" >&5
6017  echo "configure:3163: checking for main in -lXaw" >&5  echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6
6018  ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xaw_main+set}" = set; then
6019  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  
6020  else  else
6021    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
6022  LIBS="-lXaw $X_LIBS $LIBS"  LIBS="-lXaw $X_LIBS $LIBS"
6023  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6024  #line 3171 "configure"  /* confdefs.h.  */
6025  #include "confdefs.h"  _ACEOF
6026    cat confdefs.h >>conftest.$ac_ext
6027    cat >>conftest.$ac_ext <<_ACEOF
6028    /* end confdefs.h.  */
6029    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
6030    
6031  fi  int
6032  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
6033    echo "$ac_t""yes" 1>&6  {
6034    main ();
6035      ;
6036      return 0;
6037    }
6038    _ACEOF
6039    rm -f conftest.$ac_objext conftest$ac_exeext
6040    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6041      (eval $ac_link) 2>conftest.er1
6042      ac_status=$?
6043      grep -v '^ *+' conftest.er1 >conftest.err
6044      rm -f conftest.er1
6045      cat conftest.err >&5
6046      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047      (exit $ac_status); } &&
6048             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6049      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050      (eval $ac_try) 2>&5
6051      ac_status=$?
6052      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053      (exit $ac_status); }; } &&
6054             { ac_try='test -s conftest$ac_exeext'
6055      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056      (eval $ac_try) 2>&5
6057      ac_status=$?
6058      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059      (exit $ac_status); }; }; then
6060      ac_cv_lib_Xaw_main=yes
6061    else
6062      echo "$as_me: failed program was:" >&5
6063    sed 's/^/| /' conftest.$ac_ext >&5
6064    
6065    ac_cv_lib_Xaw_main=no
6066    fi
6067    rm -f conftest.err conftest.$ac_objext \
6068          conftest$ac_exeext conftest.$ac_ext
6069    LIBS=$ac_check_lib_save_LIBS
6070    fi
6071    echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5
6072    echo "${ECHO_T}$ac_cv_lib_Xaw_main" >&6
6073    if test $ac_cv_lib_Xaw_main = yes; then
6074    X_LIBS="$X_LIBS -lXaw"    X_LIBS="$X_LIBS -lXaw"
6075  else  else
6076    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
6077  fi  fi
6078    
6079  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lX11" >&5
6080  echo "configure:3200: checking for main in -lX11" >&5  echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
6081  ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_X11_main+set}" = set; then
6082  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  
6083  else  else
6084    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
6085  LIBS="-lX11 $X_LIBS $LIBS"  LIBS="-lX11 $X_LIBS $LIBS"
6086  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6087  #line 3208 "configure"  /* confdefs.h.  */
6088  #include "confdefs.h"  _ACEOF
6089    cat confdefs.h >>conftest.$ac_ext
6090    cat >>conftest.$ac_ext <<_ACEOF
6091    /* end confdefs.h.  */
6092    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3215: \"$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"  
6093    
6094  fi  int
6095  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
6096    echo "$ac_t""yes" 1>&6  {
6097    main ();
6098      ;
6099      return 0;
6100    }
6101    _ACEOF
6102    rm -f conftest.$ac_objext conftest$ac_exeext
6103    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104      (eval $ac_link) 2>conftest.er1
6105      ac_status=$?
6106      grep -v '^ *+' conftest.er1 >conftest.err
6107      rm -f conftest.er1
6108      cat conftest.err >&5
6109      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110      (exit $ac_status); } &&
6111             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6112      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113      (eval $ac_try) 2>&5
6114      ac_status=$?
6115      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116      (exit $ac_status); }; } &&
6117             { ac_try='test -s conftest$ac_exeext'
6118      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119      (eval $ac_try) 2>&5
6120      ac_status=$?
6121      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122      (exit $ac_status); }; }; then
6123      ac_cv_lib_X11_main=yes
6124    else
6125      echo "$as_me: failed program was:" >&5
6126    sed 's/^/| /' conftest.$ac_ext >&5
6127    
6128    ac_cv_lib_X11_main=no
6129    fi
6130    rm -f conftest.err conftest.$ac_objext \
6131          conftest$ac_exeext conftest.$ac_ext
6132    LIBS=$ac_check_lib_save_LIBS
6133    fi
6134    echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
6135    echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
6136    if test $ac_cv_lib_X11_main = yes; then
6137    X_LIBS="$X_LIBS -lX11"    X_LIBS="$X_LIBS -lX11"
6138  else  else
6139    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
6140  fi  fi
6141    
6142    
6143  echo $ac_n "checking can compile xgcl""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking can compile xgcl" >&5
6144  echo "configure:3238: checking can compile xgcl" >&5  echo $ECHO_N "checking can compile xgcl... $ECHO_C" >&6
6145  if test "$miss" = "1" ; then  if test "$miss" = "1" ; then
6146          X_CFLAGS=          X_CFLAGS=
6147          X_LIBS=          X_LIBS=
6148          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
6149    echo "${ECHO_T}no" >&6
6150  else  else
6151          echo "$ac_t""yes" 1>&6          echo "$as_me:$LINENO: result: yes" >&5
6152    echo "${ECHO_T}yes" >&6
6153  fi  fi
6154    
6155    
# Line 3253  fi Line 6162  fi
6162    
6163  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
6164    
6165          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6166  echo "configure:3258: checking for dlopen in -ldl" >&5  echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6167  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6168  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  
6169  else  else
6170    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
6171  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
6172  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6173  #line 3266 "configure"  /* confdefs.h.  */
6174  #include "confdefs.h"  _ACEOF
6175    cat confdefs.h >>conftest.$ac_ext
6176    cat >>conftest.$ac_ext <<_ACEOF
6177    /* end confdefs.h.  */
6178    
6179  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6180    #ifdef __cplusplus
6181    extern "C"
6182    #endif
6183  /* 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
6184      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6185  char dlopen();  char dlopen ();
6186    int
6187  int main() {  main ()
6188  dlopen()  {
6189  ; return 0; }  dlopen ();
6190  EOF    ;
6191  if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
6192    rm -rf conftest*  }
6193    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
6194  else  rm -f conftest.$ac_objext conftest$ac_exeext
6195    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6196    cat conftest.$ac_ext >&5    (eval $ac_link) 2>conftest.er1
6197    rm -rf conftest*    ac_status=$?
6198    eval "ac_cv_lib_$ac_lib_var=no"    grep -v '^ *+' conftest.er1 >conftest.err
6199  fi    rm -f conftest.er1
6200  rm -f conftest*    cat conftest.err >&5
6201  LIBS="$ac_save_LIBS"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202      (exit $ac_status); } &&
6203  fi           { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6204  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205    echo "$ac_t""yes" 1>&6    (eval $ac_try) 2>&5
6206      ac_status=$?
6207      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208      (exit $ac_status); }; } &&
6209             { ac_try='test -s conftest$ac_exeext'
6210      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211      (eval $ac_try) 2>&5
6212      ac_status=$?
6213      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214      (exit $ac_status); }; }; then
6215      ac_cv_lib_dl_dlopen=yes
6216    else
6217      echo "$as_me: failed program was:" >&5
6218    sed 's/^/| /' conftest.$ac_ext >&5
6219    
6220    ac_cv_lib_dl_dlopen=no
6221    fi
6222    rm -f conftest.err conftest.$ac_objext \
6223          conftest$ac_exeext conftest.$ac_ext
6224    LIBS=$ac_check_lib_save_LIBS
6225    fi
6226    echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6227    echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6228    if test $ac_cv_lib_dl_dlopen = yes; then
6229    have_dl=1    have_dl=1
6230  else  else
6231    echo "$ac_t""no" 1>&6    have_dl=0
 have_dl=0  
6232  fi  fi
6233    
6234          if test "$have_dl" = "0" ; then          if test "$have_dl" = "0" ; then
# Line 3300  fi Line 6237  fi
6237          fi          fi
6238    
6239          TLIBS="$TLIBS -ldl -rdynamic"          TLIBS="$TLIBS -ldl -rdynamic"
6240          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
6241  #define USE_DLOPEN 1  #define USE_DLOPEN 1
6242  EOF  _ACEOF
6243    
6244  fi  fi
6245    
6246  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
6247          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`          if test "${ac_cv_header_bfd_h+set}" = set; then
6248  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for bfd.h" >&5
6249  echo "configure:3313: checking for bfd.h" >&5  echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
6250  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_bfd_h+set}" = set; then
6251    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6252  else  fi
6253    cat > conftest.$ac_ext <<EOF  echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
6254  #line 3318 "configure"  echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
6255  #include "confdefs.h"  else
6256      # Is the header compilable?
6257    echo "$as_me:$LINENO: checking bfd.h usability" >&5
6258    echo $ECHO_N "checking bfd.h usability... $ECHO_C" >&6
6259    cat >conftest.$ac_ext <<_ACEOF
6260    /* confdefs.h.  */
6261    _ACEOF
6262    cat confdefs.h >>conftest.$ac_ext
6263    cat >>conftest.$ac_ext <<_ACEOF
6264    /* end confdefs.h.  */
6265    $ac_includes_default
6266  #include <bfd.h>  #include <bfd.h>
6267  EOF  _ACEOF
6268  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  rm -f conftest.$ac_objext
6269  { (eval echo configure:3323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6270  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    (eval $ac_compile) 2>conftest.er1
6271  if test -z "$ac_err"; then    ac_status=$?
6272    rm -rf conftest*    grep -v '^ *+' conftest.er1 >conftest.err
6273    eval "ac_cv_header_$ac_safe=yes"    rm -f conftest.er1
6274  else    cat conftest.err >&5
6275    echo "$ac_err" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276    echo "configure: failed program was:" >&5    (exit $ac_status); } &&
6277    cat conftest.$ac_ext >&5           { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6278    rm -rf conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279    eval "ac_cv_header_$ac_safe=no"    (eval $ac_try) 2>&5
6280  fi    ac_status=$?
6281  rm -f conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282      (exit $ac_status); }; } &&
6283             { ac_try='test -s conftest.$ac_objext'
6284      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285      (eval $ac_try) 2>&5
6286      ac_status=$?
6287      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288      (exit $ac_status); }; }; then
6289      ac_header_compiler=yes
6290    else
6291      echo "$as_me: failed program was:" >&5
6292    sed 's/^/| /' conftest.$ac_ext >&5
6293    
6294    ac_header_compiler=no
6295    fi
6296    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6297    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6298    echo "${ECHO_T}$ac_header_compiler" >&6
6299    
6300    # Is the header present?
6301    echo "$as_me:$LINENO: checking bfd.h presence" >&5
6302    echo $ECHO_N "checking bfd.h presence... $ECHO_C" >&6
6303    cat >conftest.$ac_ext <<_ACEOF
6304    /* confdefs.h.  */
6305    _ACEOF
6306    cat confdefs.h >>conftest.$ac_ext
6307    cat >>conftest.$ac_ext <<_ACEOF
6308    /* end confdefs.h.  */
6309    #include <bfd.h>
6310    _ACEOF
6311    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6312      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6313      ac_status=$?
6314      grep -v '^ *+' conftest.er1 >conftest.err
6315      rm -f conftest.er1
6316      cat conftest.err >&5
6317      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318      (exit $ac_status); } >/dev/null; then
6319      if test -s conftest.err; then
6320        ac_cpp_err=$ac_c_preproc_warn_flag
6321        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6322      else
6323        ac_cpp_err=
6324      fi
6325    else
6326      ac_cpp_err=yes
6327  fi  fi
6328  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
6329    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:3340: 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  
6330  else  else
6331    ac_save_LIBS="$LIBS"    echo "$as_me: failed program was:" >&5
6332  LIBS="-lbfd -liberty $LIBS"  sed 's/^/| /' conftest.$ac_ext >&5
 cat > conftest.$ac_ext <<EOF  
 #line 3348 "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();  
6333    
6334  int main() {    ac_header_preproc=no
6335  bfd_init()  fi
6336  ; return 0; }  rm -f conftest.err conftest.$ac_ext
6337  EOF  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6338  if { (eval echo configure:3359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  echo "${ECHO_T}$ac_header_preproc" >&6
6339    rm -rf conftest*  
6340    eval "ac_cv_lib_$ac_lib_var=yes"  # So?  What about this header?
6341  else  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6342    echo "configure: failed program was:" >&5    yes:no: )
6343    cat conftest.$ac_ext >&5      { echo "$as_me:$LINENO: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6344    rm -rf conftest*  echo "$as_me: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6345    eval "ac_cv_lib_$ac_lib_var=no"      { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the compiler's result" >&5
6346    echo "$as_me: WARNING: bfd.h: proceeding with the compiler's result" >&2;}
6347        ac_header_preproc=yes
6348        ;;
6349      no:yes:* )
6350        { echo "$as_me:$LINENO: WARNING: bfd.h: present but cannot be compiled" >&5
6351    echo "$as_me: WARNING: bfd.h: present but cannot be compiled" >&2;}
6352        { echo "$as_me:$LINENO: WARNING: bfd.h:     check for missing prerequisite headers?" >&5
6353    echo "$as_me: WARNING: bfd.h:     check for missing prerequisite headers?" >&2;}
6354        { echo "$as_me:$LINENO: WARNING: bfd.h: see the Autoconf documentation" >&5
6355    echo "$as_me: WARNING: bfd.h: see the Autoconf documentation" >&2;}
6356        { echo "$as_me:$LINENO: WARNING: bfd.h:     section \"Present But Cannot Be Compiled\"" >&5
6357    echo "$as_me: WARNING: bfd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6358        { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
6359    echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;}
6360        { echo "$as_me:$LINENO: WARNING: bfd.h: in the future, the compiler will take precedence" >&5
6361    echo "$as_me: WARNING: bfd.h: in the future, the compiler will take precedence" >&2;}
6362        (
6363          cat <<\_ASBOX
6364    ## ------------------------------------------ ##
6365    ## Report this to the AC_PACKAGE_NAME lists.  ##
6366    ## ------------------------------------------ ##
6367    _ASBOX
6368        ) |
6369          sed "s/^/$as_me: WARNING:     /" >&2
6370        ;;
6371    esac
6372    echo "$as_me:$LINENO: checking for bfd.h" >&5
6373    echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
6374    if test "${ac_cv_header_bfd_h+set}" = set; then
6375      echo $ECHO_N "(cached) $ECHO_C" >&6
6376    else
6377      ac_cv_header_bfd_h=$ac_header_preproc
6378  fi  fi
6379  rm -f conftest*  echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
6380  LIBS="$ac_save_LIBS"  echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
6381    
6382  fi  fi
6383  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if test $ac_cv_header_bfd_h = yes; then
6384    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5
6385    echo $ECHO_N "checking for bfd_init in -lbfd... $ECHO_C" >&6
6386    if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then
6387      echo $ECHO_N "(cached) $ECHO_C" >&6
6388    else
6389      ac_check_lib_save_LIBS=$LIBS
6390    LIBS="-lbfd -liberty $LIBS"
6391    cat >conftest.$ac_ext <<_ACEOF
6392    /* confdefs.h.  */
6393    _ACEOF
6394    cat confdefs.h >>conftest.$ac_ext
6395    cat >>conftest.$ac_ext <<_ACEOF
6396    /* end confdefs.h.  */
6397    
6398    /* Override any gcc2 internal prototype to avoid an error.  */
6399    #ifdef __cplusplus
6400    extern "C"
6401    #endif
6402    /* We use char because int might match the return type of a gcc2
6403       builtin and then its argument prototype would still apply.  */
6404    char bfd_init ();
6405    int
6406    main ()
6407    {
6408    bfd_init ();
6409      ;
6410      return 0;
6411    }
6412    _ACEOF
6413    rm -f conftest.$ac_objext conftest$ac_exeext
6414    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6415      (eval $ac_link) 2>conftest.er1
6416      ac_status=$?
6417      grep -v '^ *+' conftest.er1 >conftest.err
6418      rm -f conftest.er1
6419      cat conftest.err >&5
6420      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421      (exit $ac_status); } &&
6422             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6423      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424      (eval $ac_try) 2>&5
6425      ac_status=$?
6426      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427      (exit $ac_status); }; } &&
6428             { ac_try='test -s conftest$ac_exeext'
6429      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430      (eval $ac_try) 2>&5
6431      ac_status=$?
6432      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433      (exit $ac_status); }; }; then
6434      ac_cv_lib_bfd_bfd_init=yes
6435    else
6436      echo "$as_me: failed program was:" >&5
6437    sed 's/^/| /' conftest.$ac_ext >&5
6438    
6439    ac_cv_lib_bfd_bfd_init=no
6440    fi
6441    rm -f conftest.err conftest.$ac_objext \
6442          conftest$ac_exeext conftest.$ac_ext
6443    LIBS=$ac_check_lib_save_LIBS
6444    fi
6445    echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_init" >&5
6446    echo "${ECHO_T}$ac_cv_lib_bfd_bfd_init" >&6
6447    if test $ac_cv_lib_bfd_bfd_init = yes; then
6448    #    #
6449                  # Old binutils appear to need CONST defined to const                  # Old binutils appear to need CONST defined to const
6450                  #                  #
6451                          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
6452  echo "configure:3378: checking if need to define CONST for bfd" >&5  echo $ECHO_N "checking if need to define CONST for bfd... $ECHO_C" >&6
6453                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
6454    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$as_me:$LINENO: result: cannot use bfd" >&5
6455    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
6456  else  else
6457    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6458  #line 3383 "configure"  /* confdefs.h.  */
6459  #include "confdefs.h"  _ACEOF
6460    cat confdefs.h >>conftest.$ac_ext
6461    cat >>conftest.$ac_ext <<_ACEOF
6462    /* end confdefs.h.  */
6463  #define IN_GCC  #define IN_GCC
6464                                      #include <bfd.h>                                      #include <bfd.h>
6465                                      int main() { symbol_info t; return 0;}                                      int main() { symbol_info t; return 0;}
6466  EOF  _ACEOF
6467  if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6468  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6469    echo "$ac_t""no" 1>&6    (eval $ac_link) 2>&5
6470  else    ac_status=$?
6471    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472    cat conftest.$ac_ext >&5    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6473    rm -fr conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474    if test "$cross_compiling" = yes; then    (eval $ac_try) 2>&5
6475    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    ac_status=$?
6476      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477      (exit $ac_status); }; }; then
6478      echo "$as_me:$LINENO: result: no" >&5
6479    echo "${ECHO_T}no" >&6
6480    else
6481      echo "$as_me: program exited with status $ac_status" >&5
6482    echo "$as_me: failed program was:" >&5
6483    sed 's/^/| /' conftest.$ac_ext >&5
6484    
6485    ( exit $ac_status )
6486    if test "$cross_compiling" = yes; then
6487      echo "$as_me:$LINENO: result: cannot use bfd" >&5
6488    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
6489  else  else
6490    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6491  #line 3400 "configure"  /* confdefs.h.  */
6492  #include "confdefs.h"  _ACEOF
6493    cat confdefs.h >>conftest.$ac_ext
6494    cat >>conftest.$ac_ext <<_ACEOF
6495    /* end confdefs.h.  */
6496  #define CONST const  #define CONST const
6497                                              #define IN_GCC                                              #define IN_GCC
6498                                              #include <bfd.h>                                              #include <bfd.h>
6499                                              int main() {symbol_info t; return 0;}                                              int main() {symbol_info t; return 0;}
6500  EOF  _ACEOF
6501  if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6502  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6503    echo "$ac_t""yes" 1>&6    (eval $ac_link) 2>&5
6504                                          cat >> confdefs.h <<\EOF    ac_status=$?
6505      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6507      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508      (eval $ac_try) 2>&5
6509      ac_status=$?
6510      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511      (exit $ac_status); }; }; then
6512      echo "$as_me:$LINENO: result: yes" >&5
6513    echo "${ECHO_T}yes" >&6
6514                                            cat >>confdefs.h <<\_ACEOF
6515  #define NEED_CONST 1  #define NEED_CONST 1
6516  EOF  _ACEOF
6517    
6518  else  else
6519    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6520    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6521    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
6522    echo "$ac_t""cannot use bfd" 1>&6 exit 1;  
6523    ( exit $ac_status )
6524    echo "$as_me:$LINENO: result: cannot use bfd" >&5
6525    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
6526  fi  fi
6527  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6528  fi  fi
   
6529  fi  fi
6530  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6531  fi  fi
6532    
                           
 else  
   echo "$ac_t""no" 1>&6  
6533  fi  fi
6534    
 else  
   echo "$ac_t""no" 1>&6  
6535  fi  fi
6536    
6537    
6538          cat >> confdefs.h <<\EOF  
6539            cat >>confdefs.h <<\_ACEOF
6540  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
6541  EOF  _ACEOF
6542    
6543    
6544  #  #
6545  # BFD boolean syntax  # BFD boolean syntax
6546  #  #
6547    
6548          echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for useable bfd_boolean" >&5
6549  echo "configure:3447: checking for useable bfd_boolean" >&5  echo $ECHO_N "checking for useable bfd_boolean... $ECHO_C" >&6
6550          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
6551    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
6552    echo "${ECHO_T}no" >&6
6553  else  else
6554    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6555  #line 3452 "configure"  /* confdefs.h.  */
6556  #include "confdefs.h"  _ACEOF
6557    cat confdefs.h >>conftest.$ac_ext
6558    cat >>conftest.$ac_ext <<_ACEOF
6559    /* end confdefs.h.  */
6560  #define IN_GCC  #define IN_GCC
6561                      #include <bfd.h>                      #include <bfd.h>
6562                      bfd_boolean foo() {return FALSE;}                      bfd_boolean foo() {return FALSE;}
6563                      int main() {return 0;}                      int main() {return 0;}
6564  EOF  _ACEOF
6565  if { (eval echo configure:3459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6566  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6567    echo "$ac_t""yes" 1>&6    (eval $ac_link) 2>&5
6568                  cat >> confdefs.h <<\EOF    ac_status=$?
6569      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6571      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572      (eval $ac_try) 2>&5
6573      ac_status=$?
6574      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575      (exit $ac_status); }; }; then
6576      echo "$as_me:$LINENO: result: yes" >&5
6577    echo "${ECHO_T}yes" >&6
6578                    cat >>confdefs.h <<\_ACEOF
6579  #define HAVE_BFD_BOOLEAN 1  #define HAVE_BFD_BOOLEAN 1
6580  EOF  _ACEOF
6581    
6582  else  else
6583    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6584    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6585    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
6586    echo "$ac_t""no" 1>&6  
6587    ( exit $ac_status )
6588    echo "$as_me:$LINENO: result: no" >&5
6589    echo "${ECHO_T}no" >&6
6590  fi  fi
6591  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6592  fi  fi
6593    
6594    
   
6595  #  #
6596  # FIXME: Need to workaround mingw before this point -- CM  # FIXME: Need to workaround mingw before this point -- CM
6597  #  #
# Line 3485  fi Line 6604  fi
6604                  else                  else
6605                     echo Guessing path to libbfd.a due to gcc bug                     echo Guessing path to libbfd.a due to gcc bug
6606                     TLIBS="$TLIBS /usr/lib/libbfd.a"                     TLIBS="$TLIBS /usr/lib/libbfd.a"
6607                  fi                    fi
6608                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then
6609                     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 ? "/" : "")}'`"
6610                  else                  else
6611                     echo Guessing path to libiberty.a due to gcc bug                     echo Guessing path to libiberty.a due to gcc bug
6612                     TLIBS="$TLIBS /usr/lib/libiberty.a"                     TLIBS="$TLIBS /usr/lib/libiberty.a"
6613                  fi                    fi
6614          else          else
6615                  TLIBS="$TLIBS -lbfd -liberty"                  TLIBS="$TLIBS -lbfd -liberty"
6616          fi          fi
# Line 3501  if test "$enable_locbfd" = "yes" ; then Line 6620  if test "$enable_locbfd" = "yes" ; then
6620    
6621          # check for gettext.  It is part of glibc, but others          # check for gettext.  It is part of glibc, but others
6622          # need GNU gettext separately.          # need GNU gettext separately.
6623          ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`          if test "${ac_cv_header_libintl_h+set}" = set; then
6624  echo $ac_n "checking for libintl.h""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for libintl.h" >&5
6625  echo "configure:3507: checking for libintl.h" >&5  echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6626  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_libintl_h+set}" = set; then
6627    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6628  else  fi
6629    cat > conftest.$ac_ext <<EOF  echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6630  #line 3512 "configure"  echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6631  #include "confdefs.h"  else
6632      # Is the header compilable?
6633    echo "$as_me:$LINENO: checking libintl.h usability" >&5
6634    echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
6635    cat >conftest.$ac_ext <<_ACEOF
6636    /* confdefs.h.  */
6637    _ACEOF
6638    cat confdefs.h >>conftest.$ac_ext
6639    cat >>conftest.$ac_ext <<_ACEOF
6640    /* end confdefs.h.  */
6641    $ac_includes_default
6642  #include <libintl.h>  #include <libintl.h>
6643  EOF  _ACEOF
6644  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  rm -f conftest.$ac_objext
6645  { (eval echo configure:3517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    (eval $ac_compile) 2>conftest.er1
6647  if test -z "$ac_err"; then    ac_status=$?
6648    rm -rf conftest*    grep -v '^ *+' conftest.er1 >conftest.err
6649    eval "ac_cv_header_$ac_safe=yes"    rm -f conftest.er1
6650  else    cat conftest.err >&5
6651    echo "$ac_err" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652    echo "configure: failed program was:" >&5    (exit $ac_status); } &&
6653    cat conftest.$ac_ext >&5           { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6654    rm -rf conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655    eval "ac_cv_header_$ac_safe=no"    (eval $ac_try) 2>&5
6656      ac_status=$?
6657      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658      (exit $ac_status); }; } &&
6659             { ac_try='test -s conftest.$ac_objext'
6660      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661      (eval $ac_try) 2>&5
6662      ac_status=$?
6663      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664      (exit $ac_status); }; }; then
6665      ac_header_compiler=yes
6666    else
6667      echo "$as_me: failed program was:" >&5
6668    sed 's/^/| /' conftest.$ac_ext >&5
6669    
6670    ac_header_compiler=no
6671    fi
6672    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6673    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6674    echo "${ECHO_T}$ac_header_compiler" >&6
6675    
6676    # Is the header present?
6677    echo "$as_me:$LINENO: checking libintl.h presence" >&5
6678    echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
6679    cat >conftest.$ac_ext <<_ACEOF
6680    /* confdefs.h.  */
6681    _ACEOF
6682    cat confdefs.h >>conftest.$ac_ext
6683    cat >>conftest.$ac_ext <<_ACEOF
6684    /* end confdefs.h.  */
6685    #include <libintl.h>
6686    _ACEOF
6687    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6688      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6689      ac_status=$?
6690      grep -v '^ *+' conftest.er1 >conftest.err
6691      rm -f conftest.er1
6692      cat conftest.err >&5
6693      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694      (exit $ac_status); } >/dev/null; then
6695      if test -s conftest.err; then
6696        ac_cpp_err=$ac_c_preproc_warn_flag
6697        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6698      else
6699        ac_cpp_err=
6700      fi
6701    else
6702      ac_cpp_err=yes
6703  fi  fi
6704  rm -f conftest*  if test -z "$ac_cpp_err"; then
6705      ac_header_preproc=yes
6706    else
6707      echo "$as_me: failed program was:" >&5
6708    sed 's/^/| /' conftest.$ac_ext >&5
6709    
6710      ac_header_preproc=no
6711    fi
6712    rm -f conftest.err conftest.$ac_ext
6713    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6714    echo "${ECHO_T}$ac_header_preproc" >&6
6715    
6716    # So?  What about this header?
6717    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6718      yes:no: )
6719        { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6720    echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6721        { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6722    echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6723        ac_header_preproc=yes
6724        ;;
6725      no:yes:* )
6726        { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6727    echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6728        { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
6729    echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
6730        { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6731    echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6732        { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
6733    echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6734        { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6735    echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6736        { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6737    echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6738        (
6739          cat <<\_ASBOX
6740    ## ------------------------------------------ ##
6741    ## Report this to the AC_PACKAGE_NAME lists.  ##
6742    ## ------------------------------------------ ##
6743    _ASBOX
6744        ) |
6745          sed "s/^/$as_me: WARNING:     /" >&2
6746        ;;
6747    esac
6748    echo "$as_me:$LINENO: checking for libintl.h" >&5
6749    echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6750    if test "${ac_cv_header_libintl_h+set}" = set; then
6751      echo $ECHO_N "(cached) $ECHO_C" >&6
6752    else
6753      ac_cv_header_libintl_h=$ac_header_preproc
6754  fi  fi
6755  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6756    echo "$ac_t""yes" 1>&6  echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6757    
6758    fi
6759    if test $ac_cv_header_libintl_h = yes; then
6760    true    true
6761  else  else
6762    echo "$ac_t""no" 1>&6    { { echo "$as_me:$LINENO: error: libintl.h (gettext) not found" >&5
6763  { echo "configure: error: libintl.h (gettext) not found" 1>&2; exit 1; }  echo "$as_me: error: libintl.h (gettext) not found" >&2;}
6764       { (exit 1); exit 1; }; }
6765  fi  fi
6766    
6767            
6768  echo $ac_n "checking for library containing dgettext""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for library containing dgettext" >&5
6769  echo "configure:3541: checking for library containing dgettext" >&5  echo $ECHO_N "checking for library containing dgettext... $ECHO_C" >&6
6770  if eval "test \"`echo '$''{'ac_cv_search_dgettext'+set}'`\" = set"; then  if test "${ac_cv_search_dgettext+set}" = set; then
6771    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6772  else  else
6773    ac_func_search_save_LIBS="$LIBS"    ac_func_search_save_LIBS=$LIBS
6774  ac_cv_search_dgettext="no"  ac_cv_search_dgettext=no
6775  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6776  #line 3548 "configure"  /* confdefs.h.  */
6777  #include "confdefs.h"  _ACEOF
6778    cat confdefs.h >>conftest.$ac_ext
6779    cat >>conftest.$ac_ext <<_ACEOF
6780    /* end confdefs.h.  */
6781    
6782  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6783    #ifdef __cplusplus
6784    extern "C"
6785    #endif
6786  /* 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
6787      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6788  char dgettext();  char dgettext ();
6789    int
6790  int main() {  main ()
6791  dgettext()  {
6792  ; return 0; }  dgettext ();
6793  EOF    ;
6794  if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
6795    rm -rf conftest*  }
6796    _ACEOF
6797    rm -f conftest.$ac_objext conftest$ac_exeext
6798    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6799      (eval $ac_link) 2>conftest.er1
6800      ac_status=$?
6801      grep -v '^ *+' conftest.er1 >conftest.err
6802      rm -f conftest.er1
6803      cat conftest.err >&5
6804      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805      (exit $ac_status); } &&
6806             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6807      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808      (eval $ac_try) 2>&5
6809      ac_status=$?
6810      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811      (exit $ac_status); }; } &&
6812             { ac_try='test -s conftest$ac_exeext'
6813      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814      (eval $ac_try) 2>&5
6815      ac_status=$?
6816      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817      (exit $ac_status); }; }; then
6818    ac_cv_search_dgettext="none required"    ac_cv_search_dgettext="none required"
6819  else  else
6820    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
6821    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
6822    
6823  fi  fi
6824  rm -f conftest*  rm -f conftest.err conftest.$ac_objext \
6825  test "$ac_cv_search_dgettext" = "no" && for i in intl; do        conftest$ac_exeext conftest.$ac_ext
6826  LIBS="-l$i  $ac_func_search_save_LIBS"  if test "$ac_cv_search_dgettext" = no; then
6827  cat > conftest.$ac_ext <<EOF    for ac_lib in intl; do
6828  #line 3570 "configure"      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6829  #include "confdefs.h"      cat >conftest.$ac_ext <<_ACEOF
6830    /* confdefs.h.  */
6831    _ACEOF
6832    cat confdefs.h >>conftest.$ac_ext
6833    cat >>conftest.$ac_ext <<_ACEOF
6834    /* end confdefs.h.  */
6835    
6836  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6837    #ifdef __cplusplus
6838    extern "C"
6839    #endif
6840  /* 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
6841      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6842  char dgettext();  char dgettext ();
6843    int
6844  int main() {  main ()
6845  dgettext()  {
6846  ; return 0; }  dgettext ();
6847  EOF    ;
6848  if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
6849    rm -rf conftest*  }
6850    ac_cv_search_dgettext="-l$i"  _ACEOF
6851    rm -f conftest.$ac_objext conftest$ac_exeext
6852    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853      (eval $ac_link) 2>conftest.er1
6854      ac_status=$?
6855      grep -v '^ *+' conftest.er1 >conftest.err
6856      rm -f conftest.er1
6857      cat conftest.err >&5
6858      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859      (exit $ac_status); } &&
6860             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6861      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862      (eval $ac_try) 2>&5
6863      ac_status=$?
6864      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865      (exit $ac_status); }; } &&
6866             { ac_try='test -s conftest$ac_exeext'
6867      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868      (eval $ac_try) 2>&5
6869      ac_status=$?
6870      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871      (exit $ac_status); }; }; then
6872      ac_cv_search_dgettext="-l$ac_lib"
6873  break  break
6874  else  else
6875    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
6876    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
6877    
6878  fi  fi
6879  rm -f conftest*  rm -f conftest.err conftest.$ac_objext \
6880  done        conftest$ac_exeext conftest.$ac_ext
6881  LIBS="$ac_func_search_save_LIBS"    done
6882  fi  fi
6883    LIBS=$ac_func_search_save_LIBS
6884  echo "$ac_t""$ac_cv_search_dgettext" 1>&6  fi
6885  if test "$ac_cv_search_dgettext" != "no"; then  echo "$as_me:$LINENO: result: $ac_cv_search_dgettext" >&5
6886    echo "${ECHO_T}$ac_cv_search_dgettext" >&6
6887    if test "$ac_cv_search_dgettext" != no; then
6888    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"
6889    true    true
6890  else :  else
6891    { echo "configure: error: gettext library not found" 1>&2; exit 1; }    { { echo "$as_me:$LINENO: error: gettext library not found" >&5
6892    echo "$as_me: error: gettext library not found" >&2;}
6893       { (exit 1); exit 1; }; }
6894  fi  fi
6895    
6896    
6897          echo "#"          echo "#"
6898          echo "#"          echo "#"
6899          echo "# -------------------------"          echo "# -------------------------"
# Line 3605  fi Line 6901  fi
6901          echo "#"          echo "#"
6902          echo "#"          echo "#"
6903          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..
6904  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "
6905          echo "#"          echo "#"
6906          echo "#"          echo "#"
6907          echo "#"          echo "#"
# Line 3619  fi Line 6915  fi
6915          echo "#"          echo "#"
6916          echo "#"          echo "#"
6917          cd binutils/bfd && chmod +x configure && ./configure && cd ../..          cd binutils/bfd && chmod +x configure && ./configure && cd ../..
6918  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "
6919          echo "#"          echo "#"
6920          echo "#"          echo "#"
6921          echo "#"          echo "#"
# Line 3627  fi Line 6923  fi
6923          echo "# ------------------------"          echo "# ------------------------"
6924          echo "#"          echo "#"
6925  #       TLIBS="$TLIBS ./binutils/bfd/libbfd.a ./binutils/libiberty/libiberty.a"  #       TLIBS="$TLIBS ./binutils/bfd/libbfd.a ./binutils/libiberty/libiberty.a"
6926          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
6927  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
6928  EOF  _ACEOF
6929    
6930          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"
6931            
6932  fi  fi
6933    
6934  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)
# Line 3641  fi Line 6937  fi
6937  # mechanism, in the PAGE macro.  This offset is subtracted from  # mechanism, in the PAGE macro.  This offset is subtracted from
6938  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
6939    
6940  echo $ac_n "checking size of long""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for long" >&5
6941  echo "configure:3646: checking size of long" >&5  echo $ECHO_N "checking for long... $ECHO_C" >&6
6942  if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then  if test "${ac_cv_type_long+set}" = set; then
6943    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6944  else  else
6945      cat >conftest.$ac_ext <<_ACEOF
6946    /* confdefs.h.  */
6947    _ACEOF
6948    cat confdefs.h >>conftest.$ac_ext
6949    cat >>conftest.$ac_ext <<_ACEOF
6950    /* end confdefs.h.  */
6951    $ac_includes_default
6952    int
6953    main ()
6954    {
6955    if ((long *) 0)
6956      return 0;
6957    if (sizeof (long))
6958      return 0;
6959      ;
6960      return 0;
6961    }
6962    _ACEOF
6963    rm -f conftest.$ac_objext
6964    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6965      (eval $ac_compile) 2>conftest.er1
6966      ac_status=$?
6967      grep -v '^ *+' conftest.er1 >conftest.err
6968      rm -f conftest.er1
6969      cat conftest.err >&5
6970      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971      (exit $ac_status); } &&
6972             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6973      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974      (eval $ac_try) 2>&5
6975      ac_status=$?
6976      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977      (exit $ac_status); }; } &&
6978             { ac_try='test -s conftest.$ac_objext'
6979      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980      (eval $ac_try) 2>&5
6981      ac_status=$?
6982      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983      (exit $ac_status); }; }; then
6984      ac_cv_type_long=yes
6985    else
6986      echo "$as_me: failed program was:" >&5
6987    sed 's/^/| /' conftest.$ac_ext >&5
6988    
6989    ac_cv_type_long=no
6990    fi
6991    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6992    fi
6993    echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6994    echo "${ECHO_T}$ac_cv_type_long" >&6
6995    
6996    echo "$as_me:$LINENO: checking size of long" >&5
6997    echo $ECHO_N "checking size of long... $ECHO_C" >&6
6998    if test "${ac_cv_sizeof_long+set}" = set; then
6999      echo $ECHO_N "(cached) $ECHO_C" >&6
7000    else
7001      if test "$ac_cv_type_long" = yes; then
7002      # The cast to unsigned long works around a bug in the HP C Compiler
7003      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7004      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7005      # This bug is HP SR number 8606223364.
7006    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
7007    ac_cv_sizeof_long=0    # Depending upon the size, compute the lo and hi bounds.
7008    cat >conftest.$ac_ext <<_ACEOF
7009    /* confdefs.h.  */
7010    _ACEOF
7011    cat confdefs.h >>conftest.$ac_ext
7012    cat >>conftest.$ac_ext <<_ACEOF
7013    /* end confdefs.h.  */
7014    $ac_includes_default
7015    int
7016    main ()
7017    {
7018    static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7019    test_array [0] = 0
7020    
7021      ;
7022      return 0;
7023    }
7024    _ACEOF
7025    rm -f conftest.$ac_objext
7026    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027      (eval $ac_compile) 2>conftest.er1
7028      ac_status=$?
7029      grep -v '^ *+' conftest.er1 >conftest.err
7030      rm -f conftest.er1
7031      cat conftest.err >&5
7032      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033      (exit $ac_status); } &&
7034             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7035      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036      (eval $ac_try) 2>&5
7037      ac_status=$?
7038      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039      (exit $ac_status); }; } &&
7040             { ac_try='test -s conftest.$ac_objext'
7041      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042      (eval $ac_try) 2>&5
7043      ac_status=$?
7044      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045      (exit $ac_status); }; }; then
7046      ac_lo=0 ac_mid=0
7047      while :; do
7048        cat >conftest.$ac_ext <<_ACEOF
7049    /* confdefs.h.  */
7050    _ACEOF
7051    cat confdefs.h >>conftest.$ac_ext
7052    cat >>conftest.$ac_ext <<_ACEOF
7053    /* end confdefs.h.  */
7054    $ac_includes_default
7055    int
7056    main ()
7057    {
7058    static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7059    test_array [0] = 0
7060    
7061      ;
7062      return 0;
7063    }
7064    _ACEOF
7065    rm -f conftest.$ac_objext
7066    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067      (eval $ac_compile) 2>conftest.er1
7068      ac_status=$?
7069      grep -v '^ *+' conftest.er1 >conftest.err
7070      rm -f conftest.er1
7071      cat conftest.err >&5
7072      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073      (exit $ac_status); } &&
7074             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7075      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076      (eval $ac_try) 2>&5
7077      ac_status=$?
7078      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079      (exit $ac_status); }; } &&
7080             { ac_try='test -s conftest.$ac_objext'
7081      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082      (eval $ac_try) 2>&5
7083      ac_status=$?
7084      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085      (exit $ac_status); }; }; then
7086      ac_hi=$ac_mid; break
7087    else
7088      echo "$as_me: failed program was:" >&5
7089    sed 's/^/| /' conftest.$ac_ext >&5
7090    
7091    ac_lo=`expr $ac_mid + 1`
7092                        if test $ac_lo -le $ac_mid; then
7093                          ac_lo= ac_hi=
7094                          break
7095                        fi
7096                        ac_mid=`expr 2 '*' $ac_mid + 1`
7097    fi
7098    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7099      done
7100    else
7101      echo "$as_me: failed program was:" >&5
7102    sed 's/^/| /' conftest.$ac_ext >&5
7103    
7104    cat >conftest.$ac_ext <<_ACEOF
7105    /* confdefs.h.  */
7106    _ACEOF
7107    cat confdefs.h >>conftest.$ac_ext
7108    cat >>conftest.$ac_ext <<_ACEOF
7109    /* end confdefs.h.  */
7110    $ac_includes_default
7111    int
7112    main ()
7113    {
7114    static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7115    test_array [0] = 0
7116    
7117      ;
7118      return 0;
7119    }
7120    _ACEOF
7121    rm -f conftest.$ac_objext
7122    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7123      (eval $ac_compile) 2>conftest.er1
7124      ac_status=$?
7125      grep -v '^ *+' conftest.er1 >conftest.err
7126      rm -f conftest.er1
7127      cat conftest.err >&5
7128      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129      (exit $ac_status); } &&
7130             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7131      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132      (eval $ac_try) 2>&5
7133      ac_status=$?
7134      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135      (exit $ac_status); }; } &&
7136             { ac_try='test -s conftest.$ac_objext'
7137      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138      (eval $ac_try) 2>&5
7139      ac_status=$?
7140      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141      (exit $ac_status); }; }; then
7142      ac_hi=-1 ac_mid=-1
7143      while :; do
7144        cat >conftest.$ac_ext <<_ACEOF
7145    /* confdefs.h.  */
7146    _ACEOF
7147    cat confdefs.h >>conftest.$ac_ext
7148    cat >>conftest.$ac_ext <<_ACEOF
7149    /* end confdefs.h.  */
7150    $ac_includes_default
7151    int
7152    main ()
7153    {
7154    static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7155    test_array [0] = 0
7156    
7157      ;
7158      return 0;
7159    }
7160    _ACEOF
7161    rm -f conftest.$ac_objext
7162    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163      (eval $ac_compile) 2>conftest.er1
7164      ac_status=$?
7165      grep -v '^ *+' conftest.er1 >conftest.err
7166      rm -f conftest.er1
7167      cat conftest.err >&5
7168      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169      (exit $ac_status); } &&
7170             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7171      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172      (eval $ac_try) 2>&5
7173      ac_status=$?
7174      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175      (exit $ac_status); }; } &&
7176             { ac_try='test -s conftest.$ac_objext'
7177      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178      (eval $ac_try) 2>&5
7179      ac_status=$?
7180      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181      (exit $ac_status); }; }; then
7182      ac_lo=$ac_mid; break
7183    else
7184      echo "$as_me: failed program was:" >&5
7185    sed 's/^/| /' conftest.$ac_ext >&5
7186    
7187    ac_hi=`expr '(' $ac_mid ')' - 1`
7188                           if test $ac_mid -le $ac_hi; then
7189                             ac_lo= ac_hi=
7190                             break
7191                           fi
7192                           ac_mid=`expr 2 '*' $ac_mid`
7193    fi
7194    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7195      done
7196    else
7197      echo "$as_me: failed program was:" >&5
7198    sed 's/^/| /' conftest.$ac_ext >&5
7199    
7200    ac_lo= ac_hi=
7201    fi
7202    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7203    fi
7204    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7205    # Binary search between lo and hi bounds.
7206    while test "x$ac_lo" != "x$ac_hi"; do
7207      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7208      cat >conftest.$ac_ext <<_ACEOF
7209    /* confdefs.h.  */
7210    _ACEOF
7211    cat confdefs.h >>conftest.$ac_ext
7212    cat >>conftest.$ac_ext <<_ACEOF
7213    /* end confdefs.h.  */
7214    $ac_includes_default
7215    int
7216    main ()
7217    {
7218    static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7219    test_array [0] = 0
7220    
7221      ;
7222      return 0;
7223    }
7224    _ACEOF
7225    rm -f conftest.$ac_objext
7226    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227      (eval $ac_compile) 2>conftest.er1
7228      ac_status=$?
7229      grep -v '^ *+' conftest.er1 >conftest.err
7230      rm -f conftest.er1
7231      cat conftest.err >&5
7232      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233      (exit $ac_status); } &&
7234             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7235      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236      (eval $ac_try) 2>&5
7237      ac_status=$?
7238      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239      (exit $ac_status); }; } &&
7240             { ac_try='test -s conftest.$ac_objext'
7241      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242      (eval $ac_try) 2>&5
7243      ac_status=$?
7244      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245      (exit $ac_status); }; }; then
7246      ac_hi=$ac_mid
7247    else
7248      echo "$as_me: failed program was:" >&5
7249    sed 's/^/| /' conftest.$ac_ext >&5
7250    
7251    ac_lo=`expr '(' $ac_mid ')' + 1`
7252    fi
7253    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7254    done
7255    case $ac_lo in
7256    ?*) ac_cv_sizeof_long=$ac_lo;;
7257    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7258    See \`config.log' for more details." >&5
7259    echo "$as_me: error: cannot compute sizeof (long), 77
7260    See \`config.log' for more details." >&2;}
7261       { (exit 1); exit 1; }; } ;;
7262    esac
7263  else  else
7264    cat > conftest.$ac_ext <<EOF    if test "$cross_compiling" = yes; then
7265  #line 3654 "configure"    { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7266  #include "confdefs.h"  echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7267       { (exit 1); exit 1; }; }
7268    else
7269      cat >conftest.$ac_ext <<_ACEOF
7270    /* confdefs.h.  */
7271    _ACEOF
7272    cat confdefs.h >>conftest.$ac_ext
7273    cat >>conftest.$ac_ext <<_ACEOF
7274    /* end confdefs.h.  */
7275    $ac_includes_default
7276    long longval () { return (long) (sizeof (long)); }
7277    unsigned long ulongval () { return (long) (sizeof (long)); }
7278  #include <stdio.h>  #include <stdio.h>
7279  #include <sys/types.h>  #include <stdlib.h>
7280  main()  int
7281    main ()
7282  {  {
7283    FILE *f=fopen("conftestval", "w");  
7284    if (!f) exit(1);    FILE *f = fopen ("conftest.val", "w");
7285    fprintf(f, "%d\n", sizeof(long));    if (! f)
7286    exit(0);      exit (1);
7287      if (((long) (sizeof (long))) < 0)
7288        {
7289          long i = longval ();
7290          if (i != ((long) (sizeof (long))))
7291            exit (1);
7292          fprintf (f, "%ld\n", i);
7293        }
7294      else
7295        {
7296          unsigned long i = ulongval ();
7297          if (i != ((long) (sizeof (long))))
7298            exit (1);
7299          fprintf (f, "%lu\n", i);
7300        }
7301      exit (ferror (f) || fclose (f) != 0);
7302    
7303      ;
7304      return 0;
7305  }  }
7306  EOF  _ACEOF
7307  if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7308  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7309    ac_cv_sizeof_long=`cat conftestval`    (eval $ac_link) 2>&5
7310  else    ac_status=$?
7311    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312    cat conftest.$ac_ext >&5    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7313    rm -fr conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314      (eval $ac_try) 2>&5
7315      ac_status=$?
7316      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317      (exit $ac_status); }; }; then
7318      ac_cv_sizeof_long=`cat conftest.val`
7319    else
7320      echo "$as_me: program exited with status $ac_status" >&5
7321    echo "$as_me: failed program was:" >&5
7322    sed 's/^/| /' conftest.$ac_ext >&5
7323    
7324    ( exit $ac_status )
7325    { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7326    See \`config.log' for more details." >&5
7327    echo "$as_me: error: cannot compute sizeof (long), 77
7328    See \`config.log' for more details." >&2;}
7329       { (exit 1); exit 1; }; }
7330    fi
7331    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7332    fi
7333    fi
7334    rm -f conftest.val
7335    else
7336    ac_cv_sizeof_long=0    ac_cv_sizeof_long=0
7337  fi  fi
 rm -fr conftest*  
7338  fi  fi
7339    echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7340    echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7341    cat >>confdefs.h <<_ACEOF
7342    #define SIZEOF_LONG $ac_cv_sizeof_long
7343    _ACEOF
7344    
7345    
7346    echo "$as_me:$LINENO: checking for int" >&5
7347    echo $ECHO_N "checking for int... $ECHO_C" >&6
7348    if test "${ac_cv_type_int+set}" = set; then
7349      echo $ECHO_N "(cached) $ECHO_C" >&6
7350    else
7351      cat >conftest.$ac_ext <<_ACEOF
7352    /* confdefs.h.  */
7353    _ACEOF
7354    cat confdefs.h >>conftest.$ac_ext
7355    cat >>conftest.$ac_ext <<_ACEOF
7356    /* end confdefs.h.  */
7357    $ac_includes_default
7358    int
7359    main ()
7360    {
7361    if ((int *) 0)
7362      return 0;
7363    if (sizeof (int))
7364      return 0;
7365      ;
7366      return 0;
7367    }
7368    _ACEOF
7369    rm -f conftest.$ac_objext
7370    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371      (eval $ac_compile) 2>conftest.er1
7372      ac_status=$?
7373      grep -v '^ *+' conftest.er1 >conftest.err
7374      rm -f conftest.er1
7375      cat conftest.err >&5
7376      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377      (exit $ac_status); } &&
7378             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7379      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380      (eval $ac_try) 2>&5
7381      ac_status=$?
7382      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383      (exit $ac_status); }; } &&
7384             { ac_try='test -s conftest.$ac_objext'
7385      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386      (eval $ac_try) 2>&5
7387      ac_status=$?
7388      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389      (exit $ac_status); }; }; then
7390      ac_cv_type_int=yes
7391    else
7392      echo "$as_me: failed program was:" >&5
7393    sed 's/^/| /' conftest.$ac_ext >&5
7394    
7395    ac_cv_type_int=no
7396    fi
7397    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7398    fi
7399    echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7400    echo "${ECHO_T}$ac_cv_type_int" >&6
7401    
7402    echo "$as_me:$LINENO: checking size of int" >&5
7403    echo $ECHO_N "checking size of int... $ECHO_C" >&6
7404    if test "${ac_cv_sizeof_int+set}" = set; then
7405      echo $ECHO_N "(cached) $ECHO_C" >&6
7406    else
7407      if test "$ac_cv_type_int" = yes; then
7408      # The cast to unsigned long works around a bug in the HP C Compiler
7409      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7410      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7411      # This bug is HP SR number 8606223364.
7412      if test "$cross_compiling" = yes; then
7413      # Depending upon the size, compute the lo and hi bounds.
7414    cat >conftest.$ac_ext <<_ACEOF
7415    /* confdefs.h.  */
7416    _ACEOF
7417    cat confdefs.h >>conftest.$ac_ext
7418    cat >>conftest.$ac_ext <<_ACEOF
7419    /* end confdefs.h.  */
7420    $ac_includes_default
7421    int
7422    main ()
7423    {
7424    static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7425    test_array [0] = 0
7426    
7427      ;
7428      return 0;
7429    }
7430    _ACEOF
7431    rm -f conftest.$ac_objext
7432    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7433      (eval $ac_compile) 2>conftest.er1
7434      ac_status=$?
7435      grep -v '^ *+' conftest.er1 >conftest.err
7436      rm -f conftest.er1
7437      cat conftest.err >&5
7438      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439      (exit $ac_status); } &&
7440             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7441      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442      (eval $ac_try) 2>&5
7443      ac_status=$?
7444      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445      (exit $ac_status); }; } &&
7446             { ac_try='test -s conftest.$ac_objext'
7447      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448      (eval $ac_try) 2>&5
7449      ac_status=$?
7450      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451      (exit $ac_status); }; }; then
7452      ac_lo=0 ac_mid=0
7453      while :; do
7454        cat >conftest.$ac_ext <<_ACEOF
7455    /* confdefs.h.  */
7456    _ACEOF
7457    cat confdefs.h >>conftest.$ac_ext
7458    cat >>conftest.$ac_ext <<_ACEOF
7459    /* end confdefs.h.  */
7460    $ac_includes_default
7461    int
7462    main ()
7463    {
7464    static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7465    test_array [0] = 0
7466    
7467      ;
7468      return 0;
7469    }
7470    _ACEOF
7471    rm -f conftest.$ac_objext
7472    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7473      (eval $ac_compile) 2>conftest.er1
7474      ac_status=$?
7475      grep -v '^ *+' conftest.er1 >conftest.err
7476      rm -f conftest.er1
7477      cat conftest.err >&5
7478      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479      (exit $ac_status); } &&
7480             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7481      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482      (eval $ac_try) 2>&5
7483      ac_status=$?
7484      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485      (exit $ac_status); }; } &&
7486             { ac_try='test -s conftest.$ac_objext'
7487      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488      (eval $ac_try) 2>&5
7489      ac_status=$?
7490      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491      (exit $ac_status); }; }; then
7492      ac_hi=$ac_mid; break
7493    else
7494      echo "$as_me: failed program was:" >&5
7495    sed 's/^/| /' conftest.$ac_ext >&5
7496    
7497    ac_lo=`expr $ac_mid + 1`
7498                        if test $ac_lo -le $ac_mid; then
7499                          ac_lo= ac_hi=
7500                          break
7501                        fi
7502                        ac_mid=`expr 2 '*' $ac_mid + 1`
7503  fi  fi
7504  echo "$ac_t""$ac_cv_sizeof_long" 1>&6  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7505  cat >> confdefs.h <<EOF    done
7506  #define SIZEOF_LONG $ac_cv_sizeof_long  else
7507  EOF    echo "$as_me: failed program was:" >&5
7508    sed 's/^/| /' conftest.$ac_ext >&5
7509    
7510    cat >conftest.$ac_ext <<_ACEOF
7511    /* confdefs.h.  */
7512    _ACEOF
7513    cat confdefs.h >>conftest.$ac_ext
7514    cat >>conftest.$ac_ext <<_ACEOF
7515    /* end confdefs.h.  */
7516    $ac_includes_default
7517    int
7518    main ()
7519    {
7520    static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7521    test_array [0] = 0
7522    
7523      ;
7524      return 0;
7525    }
7526    _ACEOF
7527    rm -f conftest.$ac_objext
7528    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7529      (eval $ac_compile) 2>conftest.er1
7530      ac_status=$?
7531      grep -v '^ *+' conftest.er1 >conftest.err
7532      rm -f conftest.er1
7533      cat conftest.err >&5
7534      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535      (exit $ac_status); } &&
7536             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7537      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538      (eval $ac_try) 2>&5
7539      ac_status=$?
7540      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541      (exit $ac_status); }; } &&
7542             { ac_try='test -s conftest.$ac_objext'
7543      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544      (eval $ac_try) 2>&5
7545      ac_status=$?
7546      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547      (exit $ac_status); }; }; then
7548      ac_hi=-1 ac_mid=-1
7549      while :; do
7550        cat >conftest.$ac_ext <<_ACEOF
7551    /* confdefs.h.  */
7552    _ACEOF
7553    cat confdefs.h >>conftest.$ac_ext
7554    cat >>conftest.$ac_ext <<_ACEOF
7555    /* end confdefs.h.  */
7556    $ac_includes_default
7557    int
7558    main ()
7559    {
7560    static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7561    test_array [0] = 0
7562    
7563  echo $ac_n "checking size of int""... $ac_c" 1>&6    ;
7564  echo "configure:3686: checking size of int" >&5    return 0;
7565  if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then  }
7566    echo $ac_n "(cached) $ac_c" 1>&6  _ACEOF
7567    rm -f conftest.$ac_objext
7568    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7569      (eval $ac_compile) 2>conftest.er1
7570      ac_status=$?
7571      grep -v '^ *+' conftest.er1 >conftest.err
7572      rm -f conftest.er1
7573      cat conftest.err >&5
7574      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575      (exit $ac_status); } &&
7576             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7577      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578      (eval $ac_try) 2>&5
7579      ac_status=$?
7580      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581      (exit $ac_status); }; } &&
7582             { ac_try='test -s conftest.$ac_objext'
7583      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584      (eval $ac_try) 2>&5
7585      ac_status=$?
7586      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587      (exit $ac_status); }; }; then
7588      ac_lo=$ac_mid; break
7589    else
7590      echo "$as_me: failed program was:" >&5
7591    sed 's/^/| /' conftest.$ac_ext >&5
7592    
7593    ac_hi=`expr '(' $ac_mid ')' - 1`
7594                           if test $ac_mid -le $ac_hi; then
7595                             ac_lo= ac_hi=
7596                             break
7597                           fi
7598                           ac_mid=`expr 2 '*' $ac_mid`
7599    fi
7600    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7601      done
7602  else  else
7603    if test "$cross_compiling" = yes; then    echo "$as_me: failed program was:" >&5
7604    ac_cv_sizeof_int=0  sed 's/^/| /' conftest.$ac_ext >&5
7605    
7606    ac_lo= ac_hi=
7607    fi
7608    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7609    fi
7610    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7611    # Binary search between lo and hi bounds.
7612    while test "x$ac_lo" != "x$ac_hi"; do
7613      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7614      cat >conftest.$ac_ext <<_ACEOF
7615    /* confdefs.h.  */
7616    _ACEOF
7617    cat confdefs.h >>conftest.$ac_ext
7618    cat >>conftest.$ac_ext <<_ACEOF
7619    /* end confdefs.h.  */
7620    $ac_includes_default
7621    int
7622    main ()
7623    {
7624    static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7625    test_array [0] = 0
7626    
7627      ;
7628      return 0;
7629    }
7630    _ACEOF
7631    rm -f conftest.$ac_objext
7632    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7633      (eval $ac_compile) 2>conftest.er1
7634      ac_status=$?
7635      grep -v '^ *+' conftest.er1 >conftest.err
7636      rm -f conftest.er1
7637      cat conftest.err >&5
7638      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639      (exit $ac_status); } &&
7640             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7641      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642      (eval $ac_try) 2>&5
7643      ac_status=$?
7644      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645      (exit $ac_status); }; } &&
7646             { ac_try='test -s conftest.$ac_objext'
7647      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648      (eval $ac_try) 2>&5
7649      ac_status=$?
7650      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651      (exit $ac_status); }; }; then
7652      ac_hi=$ac_mid
7653  else  else
7654    cat > conftest.$ac_ext <<EOF    echo "$as_me: failed program was:" >&5
7655  #line 3694 "configure"  sed 's/^/| /' conftest.$ac_ext >&5
7656  #include "confdefs.h"  
7657    ac_lo=`expr '(' $ac_mid ')' + 1`
7658    fi
7659    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7660    done
7661    case $ac_lo in
7662    ?*) ac_cv_sizeof_int=$ac_lo;;
7663    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7664    See \`config.log' for more details." >&5
7665    echo "$as_me: error: cannot compute sizeof (int), 77
7666    See \`config.log' for more details." >&2;}
7667       { (exit 1); exit 1; }; } ;;
7668    esac
7669    else
7670      if test "$cross_compiling" = yes; then
7671      { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7672    echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7673       { (exit 1); exit 1; }; }
7674    else
7675      cat >conftest.$ac_ext <<_ACEOF
7676    /* confdefs.h.  */
7677    _ACEOF
7678    cat confdefs.h >>conftest.$ac_ext
7679    cat >>conftest.$ac_ext <<_ACEOF
7680    /* end confdefs.h.  */
7681    $ac_includes_default
7682    long longval () { return (long) (sizeof (int)); }
7683    unsigned long ulongval () { return (long) (sizeof (int)); }
7684  #include <stdio.h>  #include <stdio.h>
7685  #include <sys/types.h>  #include <stdlib.h>
7686  main()  int
7687    main ()
7688  {  {
7689    FILE *f=fopen("conftestval", "w");  
7690    if (!f) exit(1);    FILE *f = fopen ("conftest.val", "w");
7691    fprintf(f, "%d\n", sizeof(int));    if (! f)
7692    exit(0);      exit (1);
7693      if (((long) (sizeof (int))) < 0)
7694        {
7695          long i = longval ();
7696          if (i != ((long) (sizeof (int))))
7697            exit (1);
7698          fprintf (f, "%ld\n", i);
7699        }
7700      else
7701        {
7702          unsigned long i = ulongval ();
7703          if (i != ((long) (sizeof (int))))
7704            exit (1);
7705          fprintf (f, "%lu\n", i);
7706        }
7707      exit (ferror (f) || fclose (f) != 0);
7708    
7709      ;
7710      return 0;
7711  }  }
7712  EOF  _ACEOF
7713  if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7714  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7715    ac_cv_sizeof_int=`cat conftestval`    (eval $ac_link) 2>&5
7716  else    ac_status=$?
7717    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718    cat conftest.$ac_ext >&5    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7719    rm -fr conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720      (eval $ac_try) 2>&5
7721      ac_status=$?
7722      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723      (exit $ac_status); }; }; then
7724      ac_cv_sizeof_int=`cat conftest.val`
7725    else
7726      echo "$as_me: program exited with status $ac_status" >&5
7727    echo "$as_me: failed program was:" >&5
7728    sed 's/^/| /' conftest.$ac_ext >&5
7729    
7730    ( exit $ac_status )
7731    { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7732    See \`config.log' for more details." >&5
7733    echo "$as_me: error: cannot compute sizeof (int), 77
7734    See \`config.log' for more details." >&2;}
7735       { (exit 1); exit 1; }; }
7736    fi
7737    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7738    fi
7739    fi
7740    rm -f conftest.val
7741    else
7742    ac_cv_sizeof_int=0    ac_cv_sizeof_int=0
7743  fi  fi
 rm -fr conftest*  
7744  fi  fi
7745    echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7746    echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7747    cat >>confdefs.h <<_ACEOF
7748    #define SIZEOF_INT $ac_cv_sizeof_int
7749    _ACEOF
7750    
7751    
7752    echo "$as_me:$LINENO: checking for short" >&5
7753    echo $ECHO_N "checking for short... $ECHO_C" >&6
7754    if test "${ac_cv_type_short+set}" = set; then
7755      echo $ECHO_N "(cached) $ECHO_C" >&6
7756    else
7757      cat >conftest.$ac_ext <<_ACEOF
7758    /* confdefs.h.  */
7759    _ACEOF
7760    cat confdefs.h >>conftest.$ac_ext
7761    cat >>conftest.$ac_ext <<_ACEOF
7762    /* end confdefs.h.  */
7763    $ac_includes_default
7764    int
7765    main ()
7766    {
7767    if ((short *) 0)
7768      return 0;
7769    if (sizeof (short))
7770      return 0;
7771      ;
7772      return 0;
7773    }
7774    _ACEOF
7775    rm -f conftest.$ac_objext
7776    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7777      (eval $ac_compile) 2>conftest.er1
7778      ac_status=$?
7779      grep -v '^ *+' conftest.er1 >conftest.err
7780      rm -f conftest.er1
7781      cat conftest.err >&5
7782      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783      (exit $ac_status); } &&
7784             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7785      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786      (eval $ac_try) 2>&5
7787      ac_status=$?
7788      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789      (exit $ac_status); }; } &&
7790             { ac_try='test -s conftest.$ac_objext'
7791      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792      (eval $ac_try) 2>&5
7793      ac_status=$?
7794      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795      (exit $ac_status); }; }; then
7796      ac_cv_type_short=yes
7797    else
7798      echo "$as_me: failed program was:" >&5
7799    sed 's/^/| /' conftest.$ac_ext >&5
7800    
7801    ac_cv_type_short=no
7802    fi
7803    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7804    fi
7805    echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7806    echo "${ECHO_T}$ac_cv_type_short" >&6
7807    
7808    echo "$as_me:$LINENO: checking size of short" >&5
7809    echo $ECHO_N "checking size of short... $ECHO_C" >&6
7810    if test "${ac_cv_sizeof_short+set}" = set; then
7811      echo $ECHO_N "(cached) $ECHO_C" >&6
7812    else
7813      if test "$ac_cv_type_short" = yes; then
7814      # The cast to unsigned long works around a bug in the HP C Compiler
7815      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7816      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7817      # This bug is HP SR number 8606223364.
7818      if test "$cross_compiling" = yes; then
7819      # Depending upon the size, compute the lo and hi bounds.
7820    cat >conftest.$ac_ext <<_ACEOF
7821    /* confdefs.h.  */
7822    _ACEOF
7823    cat confdefs.h >>conftest.$ac_ext
7824    cat >>conftest.$ac_ext <<_ACEOF
7825    /* end confdefs.h.  */
7826    $ac_includes_default
7827    int
7828    main ()
7829    {
7830    static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7831    test_array [0] = 0
7832    
7833      ;
7834      return 0;
7835    }
7836    _ACEOF
7837    rm -f conftest.$ac_objext
7838    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7839      (eval $ac_compile) 2>conftest.er1
7840      ac_status=$?
7841      grep -v '^ *+' conftest.er1 >conftest.err
7842      rm -f conftest.er1
7843      cat conftest.err >&5
7844      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845      (exit $ac_status); } &&
7846             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7847      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848      (eval $ac_try) 2>&5
7849      ac_status=$?
7850      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851      (exit $ac_status); }; } &&
7852             { ac_try='test -s conftest.$ac_objext'
7853      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854      (eval $ac_try) 2>&5
7855      ac_status=$?
7856      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857      (exit $ac_status); }; }; then
7858      ac_lo=0 ac_mid=0
7859      while :; do
7860        cat >conftest.$ac_ext <<_ACEOF
7861    /* confdefs.h.  */
7862    _ACEOF
7863    cat confdefs.h >>conftest.$ac_ext
7864    cat >>conftest.$ac_ext <<_ACEOF
7865    /* end confdefs.h.  */
7866    $ac_includes_default
7867    int
7868    main ()
7869    {
7870    static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7871    test_array [0] = 0
7872    
7873      ;
7874      return 0;
7875    }
7876    _ACEOF
7877    rm -f conftest.$ac_objext
7878    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7879      (eval $ac_compile) 2>conftest.er1
7880      ac_status=$?
7881      grep -v '^ *+' conftest.er1 >conftest.err
7882      rm -f conftest.er1
7883      cat conftest.err >&5
7884      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885      (exit $ac_status); } &&
7886             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7887      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888      (eval $ac_try) 2>&5
7889      ac_status=$?
7890      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891      (exit $ac_status); }; } &&
7892             { ac_try='test -s conftest.$ac_objext'
7893      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894      (eval $ac_try) 2>&5
7895      ac_status=$?
7896      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897      (exit $ac_status); }; }; then
7898      ac_hi=$ac_mid; break
7899    else
7900      echo "$as_me: failed program was:" >&5
7901    sed 's/^/| /' conftest.$ac_ext >&5
7902    
7903    ac_lo=`expr $ac_mid + 1`
7904                        if test $ac_lo -le $ac_mid; then
7905                          ac_lo= ac_hi=
7906                          break
7907                        fi
7908                        ac_mid=`expr 2 '*' $ac_mid + 1`
7909  fi  fi
7910  echo "$ac_t""$ac_cv_sizeof_int" 1>&6  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7911  cat >> confdefs.h <<EOF    done
7912  #define SIZEOF_INT $ac_cv_sizeof_int  else
7913  EOF    echo "$as_me: failed program was:" >&5
7914    sed 's/^/| /' conftest.$ac_ext >&5
7915    
7916    cat >conftest.$ac_ext <<_ACEOF
7917    /* confdefs.h.  */
7918    _ACEOF
7919    cat confdefs.h >>conftest.$ac_ext
7920    cat >>conftest.$ac_ext <<_ACEOF
7921    /* end confdefs.h.  */
7922    $ac_includes_default
7923    int
7924    main ()
7925    {
7926    static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7927    test_array [0] = 0
7928    
7929  echo $ac_n "checking size of short""... $ac_c" 1>&6    ;
7930  echo "configure:3726: checking size of short" >&5    return 0;
7931  if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then  }
7932    echo $ac_n "(cached) $ac_c" 1>&6  _ACEOF
7933    rm -f conftest.$ac_objext
7934    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7935      (eval $ac_compile) 2>conftest.er1
7936      ac_status=$?
7937      grep -v '^ *+' conftest.er1 >conftest.err
7938      rm -f conftest.er1
7939      cat conftest.err >&5
7940      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941      (exit $ac_status); } &&
7942             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7943      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944      (eval $ac_try) 2>&5
7945      ac_status=$?
7946      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947      (exit $ac_status); }; } &&
7948             { ac_try='test -s conftest.$ac_objext'
7949      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950      (eval $ac_try) 2>&5
7951      ac_status=$?
7952      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953      (exit $ac_status); }; }; then
7954      ac_hi=-1 ac_mid=-1
7955      while :; do
7956        cat >conftest.$ac_ext <<_ACEOF
7957    /* confdefs.h.  */
7958    _ACEOF
7959    cat confdefs.h >>conftest.$ac_ext
7960    cat >>conftest.$ac_ext <<_ACEOF
7961    /* end confdefs.h.  */
7962    $ac_includes_default
7963    int
7964    main ()
7965    {
7966    static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7967    test_array [0] = 0
7968    
7969      ;
7970      return 0;
7971    }
7972    _ACEOF
7973    rm -f conftest.$ac_objext
7974    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7975      (eval $ac_compile) 2>conftest.er1
7976      ac_status=$?
7977      grep -v '^ *+' conftest.er1 >conftest.err
7978      rm -f conftest.er1
7979      cat conftest.err >&5
7980      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981      (exit $ac_status); } &&
7982             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7983      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984      (eval $ac_try) 2>&5
7985      ac_status=$?
7986      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987      (exit $ac_status); }; } &&
7988             { ac_try='test -s conftest.$ac_objext'
7989      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990      (eval $ac_try) 2>&5
7991      ac_status=$?
7992      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993      (exit $ac_status); }; }; then
7994      ac_lo=$ac_mid; break
7995    else
7996      echo "$as_me: failed program was:" >&5
7997    sed 's/^/| /' conftest.$ac_ext >&5
7998    
7999    ac_hi=`expr '(' $ac_mid ')' - 1`
8000                           if test $ac_mid -le $ac_hi; then
8001                             ac_lo= ac_hi=
8002                             break
8003                           fi
8004                           ac_mid=`expr 2 '*' $ac_mid`
8005    fi
8006    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8007      done
8008  else  else
8009    if test "$cross_compiling" = yes; then    echo "$as_me: failed program was:" >&5
8010    ac_cv_sizeof_short=0  sed 's/^/| /' conftest.$ac_ext >&5
8011    
8012    ac_lo= ac_hi=
8013    fi
8014    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8015    fi
8016    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8017    # Binary search between lo and hi bounds.
8018    while test "x$ac_lo" != "x$ac_hi"; do
8019      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8020      cat >conftest.$ac_ext <<_ACEOF
8021    /* confdefs.h.  */
8022    _ACEOF
8023    cat confdefs.h >>conftest.$ac_ext
8024    cat >>conftest.$ac_ext <<_ACEOF
8025    /* end confdefs.h.  */
8026    $ac_includes_default
8027    int
8028    main ()
8029    {
8030    static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8031    test_array [0] = 0
8032    
8033      ;
8034      return 0;
8035    }
8036    _ACEOF
8037    rm -f conftest.$ac_objext
8038    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8039      (eval $ac_compile) 2>conftest.er1
8040      ac_status=$?
8041      grep -v '^ *+' conftest.er1 >conftest.err
8042      rm -f conftest.er1
8043      cat conftest.err >&5
8044      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045      (exit $ac_status); } &&
8046             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8047      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048      (eval $ac_try) 2>&5
8049      ac_status=$?
8050      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051      (exit $ac_status); }; } &&
8052             { ac_try='test -s conftest.$ac_objext'
8053      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054      (eval $ac_try) 2>&5
8055      ac_status=$?
8056      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057      (exit $ac_status); }; }; then
8058      ac_hi=$ac_mid
8059    else
8060      echo "$as_me: failed program was:" >&5
8061    sed 's/^/| /' conftest.$ac_ext >&5
8062    
8063    ac_lo=`expr '(' $ac_mid ')' + 1`
8064    fi
8065    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8066    done
8067    case $ac_lo in
8068    ?*) ac_cv_sizeof_short=$ac_lo;;
8069    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8070    See \`config.log' for more details." >&5
8071    echo "$as_me: error: cannot compute sizeof (short), 77
8072    See \`config.log' for more details." >&2;}
8073       { (exit 1); exit 1; }; } ;;
8074    esac
8075  else  else
8076    cat > conftest.$ac_ext <<EOF    if test "$cross_compiling" = yes; then
8077  #line 3734 "configure"    { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8078  #include "confdefs.h"  echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8079       { (exit 1); exit 1; }; }
8080    else
8081      cat >conftest.$ac_ext <<_ACEOF
8082    /* confdefs.h.  */
8083    _ACEOF
8084    cat confdefs.h >>conftest.$ac_ext
8085    cat >>conftest.$ac_ext <<_ACEOF
8086    /* end confdefs.h.  */
8087    $ac_includes_default
8088    long longval () { return (long) (sizeof (short)); }
8089    unsigned long ulongval () { return (long) (sizeof (short)); }
8090  #include <stdio.h>  #include <stdio.h>
8091  #include <sys/types.h>  #include <stdlib.h>
8092  main()  int
8093    main ()
8094  {  {
8095    FILE *f=fopen("conftestval", "w");  
8096    if (!f) exit(1);    FILE *f = fopen ("conftest.val", "w");
8097    fprintf(f, "%d\n", sizeof(short));    if (! f)
8098    exit(0);      exit (1);
8099      if (((long) (sizeof (short))) < 0)
8100        {
8101          long i = longval ();
8102          if (i != ((long) (sizeof (short))))
8103            exit (1);
8104          fprintf (f, "%ld\n", i);
8105        }
8106      else
8107        {
8108          unsigned long i = ulongval ();
8109          if (i != ((long) (sizeof (short))))
8110            exit (1);
8111          fprintf (f, "%lu\n", i);
8112        }
8113      exit (ferror (f) || fclose (f) != 0);
8114    
8115      ;
8116      return 0;
8117  }  }
8118  EOF  _ACEOF
8119  if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
8120  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121    ac_cv_sizeof_short=`cat conftestval`    (eval $ac_link) 2>&5
8122  else    ac_status=$?
8123    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124    cat conftest.$ac_ext >&5    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8125    rm -fr conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126      (eval $ac_try) 2>&5
8127      ac_status=$?
8128      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129      (exit $ac_status); }; }; then
8130      ac_cv_sizeof_short=`cat conftest.val`
8131    else
8132      echo "$as_me: program exited with status $ac_status" >&5
8133    echo "$as_me: failed program was:" >&5
8134    sed 's/^/| /' conftest.$ac_ext >&5
8135    
8136    ( exit $ac_status )
8137    { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8138    See \`config.log' for more details." >&5
8139    echo "$as_me: error: cannot compute sizeof (short), 77
8140    See \`config.log' for more details." >&2;}
8141       { (exit 1); exit 1; }; }
8142    fi
8143    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8144    fi
8145    fi
8146    rm -f conftest.val
8147    else
8148    ac_cv_sizeof_short=0    ac_cv_sizeof_short=0
8149  fi  fi
 rm -fr conftest*  
8150  fi  fi
8151    echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8152    echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8153    cat >>confdefs.h <<_ACEOF
8154    #define SIZEOF_SHORT $ac_cv_sizeof_short
8155    _ACEOF
8156    
8157    
8158    echo "$as_me:$LINENO: checking for char" >&5
8159    echo $ECHO_N "checking for char... $ECHO_C" >&6
8160    if test "${ac_cv_type_char+set}" = set; then
8161      echo $ECHO_N "(cached) $ECHO_C" >&6
8162    else
8163      cat >conftest.$ac_ext <<_ACEOF
8164    /* confdefs.h.  */
8165    _ACEOF
8166    cat confdefs.h >>conftest.$ac_ext
8167    cat >>conftest.$ac_ext <<_ACEOF
8168    /* end confdefs.h.  */
8169    $ac_includes_default
8170    int
8171    main ()
8172    {
8173    if ((char *) 0)
8174      return 0;
8175    if (sizeof (char))
8176      return 0;
8177      ;
8178      return 0;
8179    }
8180    _ACEOF
8181    rm -f conftest.$ac_objext
8182    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183      (eval $ac_compile) 2>conftest.er1
8184      ac_status=$?
8185      grep -v '^ *+' conftest.er1 >conftest.err
8186      rm -f conftest.er1
8187      cat conftest.err >&5
8188      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189      (exit $ac_status); } &&
8190             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8191      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192      (eval $ac_try) 2>&5
8193      ac_status=$?
8194      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195      (exit $ac_status); }; } &&
8196             { ac_try='test -s conftest.$ac_objext'
8197      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198      (eval $ac_try) 2>&5
8199      ac_status=$?
8200      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201      (exit $ac_status); }; }; then
8202      ac_cv_type_char=yes
8203    else
8204      echo "$as_me: failed program was:" >&5
8205    sed 's/^/| /' conftest.$ac_ext >&5
8206    
8207    ac_cv_type_char=no
8208    fi
8209    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8210    fi
8211    echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
8212    echo "${ECHO_T}$ac_cv_type_char" >&6
8213    
8214    echo "$as_me:$LINENO: checking size of char" >&5
8215    echo $ECHO_N "checking size of char... $ECHO_C" >&6
8216    if test "${ac_cv_sizeof_char+set}" = set; then
8217      echo $ECHO_N "(cached) $ECHO_C" >&6
8218    else
8219      if test "$ac_cv_type_char" = yes; then
8220      # The cast to unsigned long works around a bug in the HP C Compiler
8221      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8222      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8223      # This bug is HP SR number 8606223364.
8224      if test "$cross_compiling" = yes; then
8225      # Depending upon the size, compute the lo and hi bounds.
8226    cat >conftest.$ac_ext <<_ACEOF
8227    /* confdefs.h.  */
8228    _ACEOF
8229    cat confdefs.h >>conftest.$ac_ext
8230    cat >>conftest.$ac_ext <<_ACEOF
8231    /* end confdefs.h.  */
8232    $ac_includes_default
8233    int
8234    main ()
8235    {
8236    static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
8237    test_array [0] = 0
8238    
8239      ;
8240      return 0;
8241    }
8242    _ACEOF
8243    rm -f conftest.$ac_objext
8244    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8245      (eval $ac_compile) 2>conftest.er1
8246      ac_status=$?
8247      grep -v '^ *+' conftest.er1 >conftest.err
8248      rm -f conftest.er1
8249      cat conftest.err >&5
8250      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251      (exit $ac_status); } &&
8252             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8253      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254      (eval $ac_try) 2>&5
8255      ac_status=$?
8256      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257      (exit $ac_status); }; } &&
8258             { ac_try='test -s conftest.$ac_objext'
8259      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260      (eval $ac_try) 2>&5
8261      ac_status=$?
8262      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263      (exit $ac_status); }; }; then
8264      ac_lo=0 ac_mid=0
8265      while :; do
8266        cat >conftest.$ac_ext <<_ACEOF
8267    /* confdefs.h.  */
8268    _ACEOF
8269    cat confdefs.h >>conftest.$ac_ext
8270    cat >>conftest.$ac_ext <<_ACEOF
8271    /* end confdefs.h.  */
8272    $ac_includes_default
8273    int
8274    main ()
8275    {
8276    static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8277    test_array [0] = 0
8278    
8279      ;
8280      return 0;
8281    }
8282    _ACEOF
8283    rm -f conftest.$ac_objext
8284    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8285      (eval $ac_compile) 2>conftest.er1
8286      ac_status=$?
8287      grep -v '^ *+' conftest.er1 >conftest.err
8288      rm -f conftest.er1
8289      cat conftest.err >&5
8290      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291      (exit $ac_status); } &&
8292             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8293      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294      (eval $ac_try) 2>&5
8295      ac_status=$?
8296      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297      (exit $ac_status); }; } &&
8298             { ac_try='test -s conftest.$ac_objext'
8299      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300      (eval $ac_try) 2>&5
8301      ac_status=$?
8302      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303      (exit $ac_status); }; }; then
8304      ac_hi=$ac_mid; break
8305    else
8306      echo "$as_me: failed program was:" >&5
8307    sed 's/^/| /' conftest.$ac_ext >&5
8308    
8309    ac_lo=`expr $ac_mid + 1`
8310                        if test $ac_lo -le $ac_mid; then
8311                          ac_lo= ac_hi=
8312                          break
8313                        fi
8314                        ac_mid=`expr 2 '*' $ac_mid + 1`
8315  fi  fi
8316  echo "$ac_t""$ac_cv_sizeof_short" 1>&6  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8317  cat >> confdefs.h <<EOF    done
8318  #define SIZEOF_SHORT $ac_cv_sizeof_short  else
8319  EOF    echo "$as_me: failed program was:" >&5
8320    sed 's/^/| /' conftest.$ac_ext >&5
8321    
8322    cat >conftest.$ac_ext <<_ACEOF
8323    /* confdefs.h.  */
8324    _ACEOF
8325    cat confdefs.h >>conftest.$ac_ext
8326    cat >>conftest.$ac_ext <<_ACEOF
8327    /* end confdefs.h.  */
8328    $ac_includes_default
8329    int
8330    main ()
8331    {
8332    static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
8333    test_array [0] = 0
8334    
8335      ;
8336      return 0;
8337    }
8338    _ACEOF
8339    rm -f conftest.$ac_objext
8340    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8341      (eval $ac_compile) 2>conftest.er1
8342      ac_status=$?
8343      grep -v '^ *+' conftest.er1 >conftest.err
8344      rm -f conftest.er1
8345      cat conftest.err >&5
8346      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347      (exit $ac_status); } &&
8348             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8349      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350      (eval $ac_try) 2>&5
8351      ac_status=$?
8352      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353      (exit $ac_status); }; } &&
8354             { ac_try='test -s conftest.$ac_objext'
8355      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356      (eval $ac_try) 2>&5
8357      ac_status=$?
8358      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359      (exit $ac_status); }; }; then
8360      ac_hi=-1 ac_mid=-1
8361      while :; do
8362        cat >conftest.$ac_ext <<_ACEOF
8363    /* confdefs.h.  */
8364    _ACEOF
8365    cat confdefs.h >>conftest.$ac_ext
8366    cat >>conftest.$ac_ext <<_ACEOF
8367    /* end confdefs.h.  */
8368    $ac_includes_default
8369    int
8370    main ()
8371    {
8372    static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
8373    test_array [0] = 0
8374    
8375  echo $ac_n "checking size of char""... $ac_c" 1>&6    ;
8376  echo "configure:3766: checking size of char" >&5    return 0;
8377  if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then  }
8378    echo $ac_n "(cached) $ac_c" 1>&6  _ACEOF
8379    rm -f conftest.$ac_objext
8380    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8381      (eval $ac_compile) 2>conftest.er1
8382      ac_status=$?
8383      grep -v '^ *+' conftest.er1 >conftest.err
8384      rm -f conftest.er1
8385      cat conftest.err >&5
8386      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387      (exit $ac_status); } &&
8388             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8389      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390      (eval $ac_try) 2>&5
8391      ac_status=$?
8392      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393      (exit $ac_status); }; } &&
8394             { ac_try='test -s conftest.$ac_objext'
8395      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396      (eval $ac_try) 2>&5
8397      ac_status=$?
8398      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399      (exit $ac_status); }; }; then
8400      ac_lo=$ac_mid; break
8401    else
8402      echo "$as_me: failed program was:" >&5
8403    sed 's/^/| /' conftest.$ac_ext >&5
8404    
8405    ac_hi=`expr '(' $ac_mid ')' - 1`
8406                           if test $ac_mid -le $ac_hi; then
8407                             ac_lo= ac_hi=
8408                             break
8409                           fi
8410                           ac_mid=`expr 2 '*' $ac_mid`
8411    fi
8412    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8413      done
8414  else  else
8415    if test "$cross_compiling" = yes; then    echo "$as_me: failed program was:" >&5
8416    ac_cv_sizeof_char=0  sed 's/^/| /' conftest.$ac_ext >&5
8417    
8418    ac_lo= ac_hi=
8419    fi
8420    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8421    fi
8422    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8423    # Binary search between lo and hi bounds.
8424    while test "x$ac_lo" != "x$ac_hi"; do
8425      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8426      cat >conftest.$ac_ext <<_ACEOF
8427    /* confdefs.h.  */
8428    _ACEOF
8429    cat confdefs.h >>conftest.$ac_ext
8430    cat >>conftest.$ac_ext <<_ACEOF
8431    /* end confdefs.h.  */
8432    $ac_includes_default
8433    int
8434    main ()
8435    {
8436    static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8437    test_array [0] = 0
8438    
8439      ;
8440      return 0;
8441    }
8442    _ACEOF
8443    rm -f conftest.$ac_objext
8444    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8445      (eval $ac_compile) 2>conftest.er1
8446      ac_status=$?
8447      grep -v '^ *+' conftest.er1 >conftest.err
8448      rm -f conftest.er1
8449      cat conftest.err >&5
8450      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451      (exit $ac_status); } &&
8452             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8453      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454      (eval $ac_try) 2>&5
8455      ac_status=$?
8456      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457      (exit $ac_status); }; } &&
8458             { ac_try='test -s conftest.$ac_objext'
8459      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460      (eval $ac_try) 2>&5
8461      ac_status=$?
8462      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463      (exit $ac_status); }; }; then
8464      ac_hi=$ac_mid
8465  else  else
8466    cat > conftest.$ac_ext <<EOF    echo "$as_me: failed program was:" >&5
8467  #line 3774 "configure"  sed 's/^/| /' conftest.$ac_ext >&5
8468  #include "confdefs.h"  
8469    ac_lo=`expr '(' $ac_mid ')' + 1`
8470    fi
8471    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8472    done
8473    case $ac_lo in
8474    ?*) ac_cv_sizeof_char=$ac_lo;;
8475    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8476    See \`config.log' for more details." >&5
8477    echo "$as_me: error: cannot compute sizeof (char), 77
8478    See \`config.log' for more details." >&2;}
8479       { (exit 1); exit 1; }; } ;;
8480    esac
8481    else
8482      if test "$cross_compiling" = yes; then
8483      { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8484    echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8485       { (exit 1); exit 1; }; }
8486    else
8487      cat >conftest.$ac_ext <<_ACEOF
8488    /* confdefs.h.  */
8489    _ACEOF
8490    cat confdefs.h >>conftest.$ac_ext
8491    cat >>conftest.$ac_ext <<_ACEOF
8492    /* end confdefs.h.  */
8493    $ac_includes_default
8494    long longval () { return (long) (sizeof (char)); }
8495    unsigned long ulongval () { return (long) (sizeof (char)); }
8496  #include <stdio.h>  #include <stdio.h>
8497  #include <sys/types.h>  #include <stdlib.h>
8498  main()  int
8499    main ()
8500  {  {
8501    FILE *f=fopen("conftestval", "w");  
8502    if (!f) exit(1);    FILE *f = fopen ("conftest.val", "w");
8503    fprintf(f, "%d\n", sizeof(char));    if (! f)
8504    exit(0);      exit (1);
8505      if (((long) (sizeof (char))) < 0)
8506        {
8507          long i = longval ();
8508          if (i != ((long) (sizeof (char))))
8509            exit (1);
8510          fprintf (f, "%ld\n", i);
8511        }
8512      else
8513        {
8514          unsigned long i = ulongval ();
8515          if (i != ((long) (sizeof (char))))
8516            exit (1);
8517          fprintf (f, "%lu\n", i);
8518        }
8519      exit (ferror (f) || fclose (f) != 0);
8520    
8521      ;
8522      return 0;
8523  }  }
8524  EOF  _ACEOF
8525  if { (eval echo configure:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
8526  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527    ac_cv_sizeof_char=`cat conftestval`    (eval $ac_link) 2>&5
8528  else    ac_status=$?
8529    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530    cat conftest.$ac_ext >&5    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8531    rm -fr conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532    ac_cv_sizeof_char=0    (eval $ac_try) 2>&5
8533      ac_status=$?
8534      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535      (exit $ac_status); }; }; then
8536      ac_cv_sizeof_char=`cat conftest.val`
8537    else
8538      echo "$as_me: program exited with status $ac_status" >&5
8539    echo "$as_me: failed program was:" >&5
8540    sed 's/^/| /' conftest.$ac_ext >&5
8541    
8542    ( exit $ac_status )
8543    { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8544    See \`config.log' for more details." >&5
8545    echo "$as_me: error: cannot compute sizeof (char), 77
8546    See \`config.log' for more details." >&2;}
8547       { (exit 1); exit 1; }; }
8548  fi  fi
8549  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8550    fi
8551    fi
8552    rm -f conftest.val
8553    else
8554      ac_cv_sizeof_char=0
8555  fi  fi
   
8556  fi  fi
8557  echo "$ac_t""$ac_cv_sizeof_char" 1>&6  echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8558  cat >> confdefs.h <<EOF  echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8559    cat >>confdefs.h <<_ACEOF
8560  #define SIZEOF_CHAR $ac_cv_sizeof_char  #define SIZEOF_CHAR $ac_cv_sizeof_char
8561  EOF  _ACEOF
8562    
8563    
8564    
8565  echo $ac_n "checking for number of bits in char""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for number of bits in char" >&5
8566  echo "configure:3807: checking for number of bits in char" >&5  echo $ECHO_N "checking for number of bits in char... $ECHO_C" >&6
8567  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
8568    echo Cannot find char_size;exit 1    echo Cannot find char_size;exit 1
8569  else  else
8570    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8571  #line 3812 "configure"  /* confdefs.h.  */
8572  #include "confdefs.h"  _ACEOF
8573    cat confdefs.h >>conftest.$ac_ext
8574    cat >>conftest.$ac_ext <<_ACEOF
8575    /* end confdefs.h.  */
8576  #include <stdio.h>  #include <stdio.h>
8577  int main() {  int main() {
8578  FILE *fp=fopen("conftest1","w");  FILE *fp=fopen("conftest1","w");
# Line 3819  for (i=0,c=1;c;c<<=1,i++); Line 8582  for (i=0,c=1;c;c<<=1,i++);
8582  fprintf(fp,"%d",i);  fprintf(fp,"%d",i);
8583  return 0;  return 0;
8584  }  }
8585  EOF  _ACEOF
8586  if { (eval echo configure:3824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
8587  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8588      (eval $ac_link) 2>&5
8589      ac_status=$?
8590      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8592      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593      (eval $ac_try) 2>&5
8594      ac_status=$?
8595      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596      (exit $ac_status); }; }; then
8597    char_size=`cat conftest1`    char_size=`cat conftest1`
8598  else  else
8599    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
8600    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
8601    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
8602    echo Cannot find char_size;exit 1  
8603  fi  ( exit $ac_status )
8604  rm -fr conftest*  echo Cannot find char_size;exit 1
8605  fi  fi
8606    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8607  echo "$ac_t""$char_size" 1>&6  fi
8608  cat >> confdefs.h <<EOF  echo "$as_me:$LINENO: result: $char_size" >&5
8609    echo "${ECHO_T}$char_size" >&6
8610    cat >>confdefs.h <<_ACEOF
8611  #define CHAR_SIZE $char_size  #define CHAR_SIZE $char_size
8612  EOF  _ACEOF
8613    
8614    
8615  for ac_hdr in endian.h  
8616    for ac_header in endian.h
8617  do  do
8618  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8619  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8620  echo "configure:3846: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8621  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8622    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8623  else    echo $ECHO_N "(cached) $ECHO_C" >&6
8624    cat > conftest.$ac_ext <<EOF  fi
8625  #line 3851 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8626  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8627  #include <$ac_hdr>  else
8628  EOF    # Is the header compilable?
8629  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
8630  { (eval echo configure:3856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8631  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
8632  if test -z "$ac_err"; then  /* confdefs.h.  */
8633    rm -rf conftest*  _ACEOF
8634    eval "ac_cv_header_$ac_safe=yes"  cat confdefs.h >>conftest.$ac_ext
8635  else  cat >>conftest.$ac_ext <<_ACEOF
8636    echo "$ac_err" >&5  /* end confdefs.h.  */
8637    echo "configure: failed program was:" >&5  $ac_includes_default
8638    cat conftest.$ac_ext >&5  #include <$ac_header>
8639    rm -rf conftest*  _ACEOF
8640    eval "ac_cv_header_$ac_safe=no"  rm -f conftest.$ac_objext
8641  fi  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8642  rm -f conftest*    (eval $ac_compile) 2>conftest.er1
8643      ac_status=$?
8644      grep -v '^ *+' conftest.er1 >conftest.err
8645      rm -f conftest.er1
8646      cat conftest.err >&5
8647      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648      (exit $ac_status); } &&
8649             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8650      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651      (eval $ac_try) 2>&5
8652      ac_status=$?
8653      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654      (exit $ac_status); }; } &&
8655             { ac_try='test -s conftest.$ac_objext'
8656      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657      (eval $ac_try) 2>&5
8658      ac_status=$?
8659      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660      (exit $ac_status); }; }; then
8661      ac_header_compiler=yes
8662    else
8663      echo "$as_me: failed program was:" >&5
8664    sed 's/^/| /' conftest.$ac_ext >&5
8665    
8666    ac_header_compiler=no
8667    fi
8668    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8669    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8670    echo "${ECHO_T}$ac_header_compiler" >&6
8671    
8672    # Is the header present?
8673    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8674    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8675    cat >conftest.$ac_ext <<_ACEOF
8676    /* confdefs.h.  */
8677    _ACEOF
8678    cat confdefs.h >>conftest.$ac_ext
8679    cat >>conftest.$ac_ext <<_ACEOF
8680    /* end confdefs.h.  */
8681    #include <$ac_header>
8682    _ACEOF
8683    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8684      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8685      ac_status=$?
8686      grep -v '^ *+' conftest.er1 >conftest.err
8687      rm -f conftest.er1
8688      cat conftest.err >&5
8689      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690      (exit $ac_status); } >/dev/null; then
8691      if test -s conftest.err; then
8692        ac_cpp_err=$ac_c_preproc_warn_flag
8693        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8694      else
8695        ac_cpp_err=
8696      fi
8697    else
8698      ac_cpp_err=yes
8699  fi  fi
8700  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
8701    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
8702      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
8703    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
8704  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
8705  EOF  
8706   echo $ac_n "checking endianness""... $ac_c" 1>&6    ac_header_preproc=no
8707  echo "configure:3877: checking endianness" >&5  fi
8708    rm -f conftest.err conftest.$ac_ext
8709    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8710    echo "${ECHO_T}$ac_header_preproc" >&6
8711    
8712    # So?  What about this header?
8713    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8714      yes:no: )
8715        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8716    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8717        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8718    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8719        ac_header_preproc=yes
8720        ;;
8721      no:yes:* )
8722        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8723    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8724        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8725    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8726        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8727    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8728        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8729    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8730        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8731    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8732        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8733    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8734        (
8735          cat <<\_ASBOX
8736    ## ------------------------------------------ ##
8737    ## Report this to the AC_PACKAGE_NAME lists.  ##
8738    ## ------------------------------------------ ##
8739    _ASBOX
8740        ) |
8741          sed "s/^/$as_me: WARNING:     /" >&2
8742        ;;
8743    esac
8744    echo "$as_me:$LINENO: checking for $ac_header" >&5
8745    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8746    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8747      echo $ECHO_N "(cached) $ECHO_C" >&6
8748    else
8749      eval "$as_ac_Header=\$ac_header_preproc"
8750    fi
8751    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8752    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8753    
8754    fi
8755    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8756      cat >>confdefs.h <<_ACEOF
8757    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8758    _ACEOF
8759     echo "$as_me:$LINENO: checking endianness" >&5
8760    echo $ECHO_N "checking endianness... $ECHO_C" >&6
8761          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
8762    echo "$ac_t""big" 1>&6    echo "$as_me:$LINENO: result: big" >&5
8763    echo "${ECHO_T}big" >&6
8764  else  else
8765    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8766  #line 3882 "configure"  /* confdefs.h.  */
8767  #include "confdefs.h"  _ACEOF
8768    cat confdefs.h >>conftest.$ac_ext
8769    cat >>conftest.$ac_ext <<_ACEOF
8770    /* end confdefs.h.  */
8771  /*#define __ARMEB__*/  /*#define __ARMEB__*/
8772                  #include <endian.h>                  #include <endian.h>
8773                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
8774  EOF  _ACEOF
8775  if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
8776  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8777    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
8778      ac_status=$?
8779      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8781      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782      (eval $ac_try) 2>&5
8783      ac_status=$?
8784      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785      (exit $ac_status); }; }; then
8786      cat >>confdefs.h <<\_ACEOF
8787  #define LITTLE_END 1  #define LITTLE_END 1
8788  EOF  _ACEOF
8789   echo "$ac_t""little" 1>&6   echo "$as_me:$LINENO: result: little" >&5
8790  else  echo "${ECHO_T}little" >&6
8791    echo "configure: failed program was:" >&5  else
8792    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
8793    rm -fr conftest*  echo "$as_me: failed program was:" >&5
8794    echo "$ac_t""big" 1>&6  sed 's/^/| /' conftest.$ac_ext >&5
8795    
8796    ( exit $ac_status )
8797    echo "$as_me:$LINENO: result: big" >&5
8798    echo "${ECHO_T}big" >&6
8799  fi  fi
8800  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8801  fi  fi
   
 else  
   echo "$ac_t""no" 1>&6  
8802  fi  fi
8803    
8804  done  done
8805    
8806    
# Line 3910  done Line 8809  done
8809  # On systems with execshield, brk is randomized.  We need to catch  # On systems with execshield, brk is randomized.  We need to catch
8810  # this and restore the traditional behavior here  # this and restore the traditional behavior here
8811    
8812  echo $ac_n "checking for sbrk""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sbrk" >&5
8813  echo "configure:3915: checking for sbrk" >&5  echo $ECHO_N "checking for sbrk... $ECHO_C" >&6
8814  HAVE_SBRK=""  HAVE_SBRK=""
8815  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
8816    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
8817    echo "${ECHO_T}no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6
8818  else  else
8819    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8820  #line 3921 "configure"  /* confdefs.h.  */
8821  #include "confdefs.h"  _ACEOF
8822    cat confdefs.h >>conftest.$ac_ext
8823    cat >>conftest.$ac_ext <<_ACEOF
8824    /* end confdefs.h.  */
8825  #include <unistd.h>  #include <unistd.h>
8826              #include <stdio.h>              #include <stdio.h>
8827              int main() {              int main() {
# Line 3928  else Line 8831  else
8831                  fprintf(f,"%u",sbrk(0));                  fprintf(f,"%u",sbrk(0));
8832                  return 0;                  return 0;
8833                  }                  }
8834  EOF  _ACEOF
8835  if { (eval echo configure:3933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
8836  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8837      (eval $ac_link) 2>&5
8838      ac_status=$?
8839      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8841      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842      (eval $ac_try) 2>&5
8843      ac_status=$?
8844      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845      (exit $ac_status); }; }; then
8846    HAVE_SBRK=1    HAVE_SBRK=1
8847                  echo "$ac_t""yes" 1>&6                  echo "$as_me:$LINENO: result: yes" >&5
8848    echo "${ECHO_T}yes" >&6
8849  else  else
8850    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
8851    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
8852    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
8853    echo "$ac_t""no: WARNING you must be able to emulate sbrk: as on mingw or macosx" 1>&6  
8854    ( exit $ac_status )
8855    echo "$as_me:$LINENO: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5
8856    echo "${ECHO_T}no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6
8857  fi  fi
8858  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8859  fi  fi
8860    
   
8861  if test "$HAVE_SBRK" = "1" ; then  if test "$HAVE_SBRK" = "1" ; then
8862          echo $ac_n "checking for randomized sbrk""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for randomized sbrk" >&5
8863  echo "configure:3949: checking for randomized sbrk" >&5  echo $ECHO_N "checking for randomized sbrk... $ECHO_C" >&6
8864          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
8865    SBRK=0    SBRK=0
8866  else  else
8867    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8868  #line 3954 "configure"  /* confdefs.h.  */
8869  #include "confdefs.h"  _ACEOF
8870    cat confdefs.h >>conftest.$ac_ext
8871    cat >>conftest.$ac_ext <<_ACEOF
8872    /* end confdefs.h.  */
8873  #include <unistd.h>  #include <unistd.h>
8874                      #include <stdio.h>                      #include <stdio.h>
8875                      int main() {                      int main() {
# Line 3961  else Line 8879  else
8879                          fprintf(f,"%u",sbrk(0));                          fprintf(f,"%u",sbrk(0));
8880                          return 0;                          return 0;
8881                          }                          }
8882  EOF  _ACEOF
8883  if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
8884  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8885      (eval $ac_link) 2>&5
8886      ac_status=$?
8887      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8889      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890      (eval $ac_try) 2>&5
8891      ac_status=$?
8892      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893      (exit $ac_status); }; }; then
8894    SBRK=`cat conftest1`    SBRK=`cat conftest1`
8895  else  else
8896    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
8897    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
8898    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
8899    SBRK=0  
8900    ( exit $ac_status )
8901    SBRK=0
8902  fi  fi
8903  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8904  fi  fi
   
8905          if test "$SBRK" = "0" ; then          if test "$SBRK" = "0" ; then
8906                  echo "$ac_t""cannot trap sbrk" 1>&6                  echo "$as_me:$LINENO: result: cannot trap sbrk" >&5
8907    echo "${ECHO_T}cannot trap sbrk" >&6
8908                  exit 1                  exit 1
8909          fi          fi
8910          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
8911    SBRK1=0    SBRK1=0
8912  else  else
8913    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8914  #line 3986 "configure"  /* confdefs.h.  */
8915  #include "confdefs.h"  _ACEOF
8916    cat confdefs.h >>conftest.$ac_ext
8917    cat >>conftest.$ac_ext <<_ACEOF
8918    /* end confdefs.h.  */
8919  #include <unistd.h>  #include <unistd.h>
8920                      #include <stdio.h>                      #include <stdio.h>
8921                      int main() {                      int main() {
# Line 3993  else Line 8925  else
8925                          fprintf(f,"%u",sbrk(0));                          fprintf(f,"%u",sbrk(0));
8926                          return 0;                          return 0;
8927                          }                          }
8928  EOF  _ACEOF
8929  if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
8930  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8931      (eval $ac_link) 2>&5
8932      ac_status=$?
8933      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8935      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936      (eval $ac_try) 2>&5
8937      ac_status=$?
8938      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939      (exit $ac_status); }; }; then
8940    SBRK1=`cat conftest1`    SBRK1=`cat conftest1`
8941  else  else
8942    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
8943    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
8944    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
8945    SBRK1=0  
8946    ( exit $ac_status )
8947    SBRK1=0
8948  fi  fi
8949  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8950  fi  fi
   
8951          if test "$SBRK1" = "0" ; then          if test "$SBRK1" = "0" ; then
8952                  echo "$ac_t""cannot trap sbrk" 1>&6                  echo "$as_me:$LINENO: result: cannot trap sbrk" >&5
8953    echo "${ECHO_T}cannot trap sbrk" >&6
8954                  exit 1                  exit 1
8955          fi          fi
8956            
8957          if test "$SBRK" != "$SBRK1" ; then          if test "$SBRK" != "$SBRK1" ; then
8958                  echo "$ac_t""yes" 1>&6                  echo "$as_me:$LINENO: result: yes" >&5
8959    echo "${ECHO_T}yes" >&6
8960  #               AC_CHECK_HEADER(linux/personality.h, true,  #               AC_CHECK_HEADER(linux/personality.h, true,
8961  #                          AC_MSG_ERROR(linux/personality.h not found))  #                          AC_MSG_ERROR(linux/personality.h not found))
8962  #               AC_TRY_RUN([#include <syscall.h>  #               AC_TRY_RUN([#include <syscall.h>
# Line 4036  fi Line 8980  fi
8980  # Many boxes do not have the definition yet  # Many boxes do not have the definition yet
8981  #  #
8982                  ADDR_NO_RANDOMIZE=0x40000                  ADDR_NO_RANDOMIZE=0x40000
8983                  cat >> confdefs.h <<EOF                  cat >>confdefs.h <<_ACEOF
8984  #define ADDR_NO_RANDOMIZE $ADDR_NO_RANDOMIZE  #define ADDR_NO_RANDOMIZE $ADDR_NO_RANDOMIZE
8985  EOF  _ACEOF
8986    
8987                  echo $ac_n "checking for ADDR_NO_RANOMIZE constant""... $ac_c" 1>&6                  echo "$as_me:$LINENO: checking for ADDR_NO_RANOMIZE constant" >&5
8988  echo "configure:4045: checking for ADDR_NO_RANOMIZE constant" >&5  echo $ECHO_N "checking for ADDR_NO_RANOMIZE constant... $ECHO_C" >&6
8989                  echo "$ac_t""$ADDR_NO_RANDOMIZE" 1>&6                  echo "$as_me:$LINENO: result: $ADDR_NO_RANDOMIZE" >&5
8990                  ac_safe=`echo "sys/personality.h" | sed 'y%./+-%__p_%'`  echo "${ECHO_T}$ADDR_NO_RANDOMIZE" >&6
8991  echo $ac_n "checking for sys/personality.h""... $ac_c" 1>&6                  if test "${ac_cv_header_sys_personality_h+set}" = set; then
8992  echo "configure:4049: checking for sys/personality.h" >&5    echo "$as_me:$LINENO: checking for sys/personality.h" >&5
8993  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for sys/personality.h... $ECHO_C" >&6
8994    echo $ac_n "(cached) $ac_c" 1>&6  if test "${ac_cv_header_sys_personality_h+set}" = set; then
8995  else    echo $ECHO_N "(cached) $ECHO_C" >&6
8996    cat > conftest.$ac_ext <<EOF  fi
8997  #line 4054 "configure"  echo "$as_me:$LINENO: result: $ac_cv_header_sys_personality_h" >&5
8998  #include "confdefs.h"  echo "${ECHO_T}$ac_cv_header_sys_personality_h" >&6
8999    else
9000      # Is the header compilable?
9001    echo "$as_me:$LINENO: checking sys/personality.h usability" >&5
9002    echo $ECHO_N "checking sys/personality.h usability... $ECHO_C" >&6
9003    cat >conftest.$ac_ext <<_ACEOF
9004    /* confdefs.h.  */
9005    _ACEOF
9006    cat confdefs.h >>conftest.$ac_ext
9007    cat >>conftest.$ac_ext <<_ACEOF
9008    /* end confdefs.h.  */
9009    $ac_includes_default
9010  #include <sys/personality.h>  #include <sys/personality.h>
9011  EOF  _ACEOF
9012  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  rm -f conftest.$ac_objext
9013  { (eval echo configure:4059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9014  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    (eval $ac_compile) 2>conftest.er1
9015  if test -z "$ac_err"; then    ac_status=$?
9016    rm -rf conftest*    grep -v '^ *+' conftest.er1 >conftest.err
9017    eval "ac_cv_header_$ac_safe=yes"    rm -f conftest.er1
9018  else    cat conftest.err >&5
9019    echo "$ac_err" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020    echo "configure: failed program was:" >&5    (exit $ac_status); } &&
9021    cat conftest.$ac_ext >&5           { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9022    rm -rf conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023    eval "ac_cv_header_$ac_safe=no"    (eval $ac_try) 2>&5
9024      ac_status=$?
9025      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026      (exit $ac_status); }; } &&
9027             { ac_try='test -s conftest.$ac_objext'
9028      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029      (eval $ac_try) 2>&5
9030      ac_status=$?
9031      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032      (exit $ac_status); }; }; then
9033      ac_header_compiler=yes
9034    else
9035      echo "$as_me: failed program was:" >&5
9036    sed 's/^/| /' conftest.$ac_ext >&5
9037    
9038    ac_header_compiler=no
9039    fi
9040    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9041    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9042    echo "${ECHO_T}$ac_header_compiler" >&6
9043    
9044    # Is the header present?
9045    echo "$as_me:$LINENO: checking sys/personality.h presence" >&5
9046    echo $ECHO_N "checking sys/personality.h presence... $ECHO_C" >&6
9047    cat >conftest.$ac_ext <<_ACEOF
9048    /* confdefs.h.  */
9049    _ACEOF
9050    cat confdefs.h >>conftest.$ac_ext
9051    cat >>conftest.$ac_ext <<_ACEOF
9052    /* end confdefs.h.  */
9053    #include <sys/personality.h>
9054    _ACEOF
9055    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9056      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9057      ac_status=$?
9058      grep -v '^ *+' conftest.er1 >conftest.err
9059      rm -f conftest.er1
9060      cat conftest.err >&5
9061      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062      (exit $ac_status); } >/dev/null; then
9063      if test -s conftest.err; then
9064        ac_cpp_err=$ac_c_preproc_warn_flag
9065        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9066      else
9067        ac_cpp_err=
9068      fi
9069    else
9070      ac_cpp_err=yes
9071  fi  fi
9072  rm -f conftest*  if test -z "$ac_cpp_err"; then
9073      ac_header_preproc=yes
9074    else
9075      echo "$as_me: failed program was:" >&5
9076    sed 's/^/| /' conftest.$ac_ext >&5
9077    
9078      ac_header_preproc=no
9079    fi
9080    rm -f conftest.err conftest.$ac_ext
9081    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9082    echo "${ECHO_T}$ac_header_preproc" >&6
9083    
9084    # So?  What about this header?
9085    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9086      yes:no: )
9087        { echo "$as_me:$LINENO: WARNING: sys/personality.h: accepted by the compiler, rejected by the preprocessor!" >&5
9088    echo "$as_me: WARNING: sys/personality.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9089        { echo "$as_me:$LINENO: WARNING: sys/personality.h: proceeding with the compiler's result" >&5
9090    echo "$as_me: WARNING: sys/personality.h: proceeding with the compiler's result" >&2;}
9091        ac_header_preproc=yes
9092        ;;
9093      no:yes:* )
9094        { echo "$as_me:$LINENO: WARNING: sys/personality.h: present but cannot be compiled" >&5
9095    echo "$as_me: WARNING: sys/personality.h: present but cannot be compiled" >&2;}
9096        { echo "$as_me:$LINENO: WARNING: sys/personality.h:     check for missing prerequisite headers?" >&5
9097    echo "$as_me: WARNING: sys/personality.h:     check for missing prerequisite headers?" >&2;}
9098        { echo "$as_me:$LINENO: WARNING: sys/personality.h: see the Autoconf documentation" >&5
9099    echo "$as_me: WARNING: sys/personality.h: see the Autoconf documentation" >&2;}
9100        { echo "$as_me:$LINENO: WARNING: sys/personality.h:     section \"Present But Cannot Be Compiled\"" >&5
9101    echo "$as_me: WARNING: sys/personality.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9102        { echo "$as_me:$LINENO: WARNING: sys/personality.h: proceeding with the preprocessor's result" >&5
9103    echo "$as_me: WARNING: sys/personality.h: proceeding with the preprocessor's result" >&2;}
9104        { echo "$as_me:$LINENO: WARNING: sys/personality.h: in the future, the compiler will take precedence" >&5
9105    echo "$as_me: WARNING: sys/personality.h: in the future, the compiler will take precedence" >&2;}
9106        (
9107          cat <<\_ASBOX
9108    ## ------------------------------------------ ##
9109    ## Report this to the AC_PACKAGE_NAME lists.  ##
9110    ## ------------------------------------------ ##
9111    _ASBOX
9112        ) |
9113          sed "s/^/$as_me: WARNING:     /" >&2
9114        ;;
9115    esac
9116    echo "$as_me:$LINENO: checking for sys/personality.h" >&5
9117    echo $ECHO_N "checking for sys/personality.h... $ECHO_C" >&6
9118    if test "${ac_cv_header_sys_personality_h+set}" = set; then
9119      echo $ECHO_N "(cached) $ECHO_C" >&6
9120    else
9121      ac_cv_header_sys_personality_h=$ac_header_preproc
9122    fi
9123    echo "$as_me:$LINENO: result: $ac_cv_header_sys_personality_h" >&5
9124    echo "${ECHO_T}$ac_cv_header_sys_personality_h" >&6
9125    
9126  fi  fi
9127  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test $ac_cv_header_sys_personality_h = yes; then
   echo "$ac_t""yes" 1>&6  
9128    true    true
9129  else  else
9130    echo "$ac_t""no" 1>&6    { { echo "$as_me:$LINENO: error: sys/personality.h not found" >&5
9131  { echo "configure: error: sys/personality.h not found" 1>&2; exit 1; }  echo "$as_me: error: sys/personality.h not found" >&2;}
9132       { (exit 1); exit 1; }; }
9133  fi  fi
9134    
9135    
9136                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
9137    SBRK=0    SBRK=0
9138  else  else
9139    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9140  #line 4085 "configure"  /* confdefs.h.  */
9141  #include "confdefs.h"  _ACEOF
9142    cat confdefs.h >>conftest.$ac_ext
9143    cat >>conftest.$ac_ext <<_ACEOF
9144    /* end confdefs.h.  */
9145  #include <syscall.h>  #include <syscall.h>
9146                              #include <sys/personality.h>                              #include <sys/personality.h>
9147                              #include <stdio.h>                              #include <stdio.h>
# Line 4100  else Line 9159  else
9159                                  fprintf(f,"%u",sbrk(0));                                  fprintf(f,"%u",sbrk(0));
9160                                  return 0;                                  return 0;
9161                                  }                                  }
9162  EOF  _ACEOF
9163  if { (eval echo configure:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9164  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9165      (eval $ac_link) 2>&5
9166      ac_status=$?
9167      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9169      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170      (eval $ac_try) 2>&5
9171      ac_status=$?
9172      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173      (exit $ac_status); }; }; then
9174    SBRK=`cat conftest1`    SBRK=`cat conftest1`
9175  else  else
9176    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9177    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9178    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9179    SBRK=0  
9180    ( exit $ac_status )
9181    SBRK=0
9182  fi  fi
9183  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9184  fi  fi
   
9185                  if test "$SBRK" = "0" ; then                  if test "$SBRK" = "0" ; then
9186                          echo "$ac_t""cannot trap sbrk" 1>&6                          echo "$as_me:$LINENO: result: cannot trap sbrk" >&5
9187    echo "${ECHO_T}cannot trap sbrk" >&6
9188                          exit 1                          exit 1
9189                  fi                  fi
9190                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
9191    SBRK1=0    SBRK1=0
9192  else  else
9193    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9194  #line 4125 "configure"  /* confdefs.h.  */
9195  #include "confdefs.h"  _ACEOF
9196    cat confdefs.h >>conftest.$ac_ext
9197    cat >>conftest.$ac_ext <<_ACEOF
9198    /* end confdefs.h.  */
9199  #include <syscall.h>  #include <syscall.h>
9200                              #include <sys/personality.h>                              #include <sys/personality.h>
9201                              #include <stdio.h>                              #include <stdio.h>
# Line 4140  else Line 9213  else
9213                                  fprintf(f,"%u",sbrk(0));                                  fprintf(f,"%u",sbrk(0));
9214                                  return 0;                                  return 0;
9215                                  }                                  }
9216  EOF  _ACEOF
9217  if { (eval echo configure:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9218  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219      (eval $ac_link) 2>&5
9220      ac_status=$?
9221      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9223      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224      (eval $ac_try) 2>&5
9225      ac_status=$?
9226      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227      (exit $ac_status); }; }; then
9228    SBRK1=`cat conftest1`    SBRK1=`cat conftest1`
9229  else  else
9230    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9231    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9232    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9233    SBRK1=0  
9234    ( exit $ac_status )
9235    SBRK1=0
9236  fi  fi
9237  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9238  fi  fi
   
9239                  if test "$SBRK1" = "0" ; then                  if test "$SBRK1" = "0" ; then
9240                          echo "$ac_t""cannot trap sbrk" 1>&6                          echo "$as_me:$LINENO: result: cannot trap sbrk" >&5
9241    echo "${ECHO_T}cannot trap sbrk" >&6
9242                          exit 1                          exit 1
9243                  fi                  fi
9244                  echo $ac_n "checking for randomized brk remedy""... $ac_c" 1>&6                  echo "$as_me:$LINENO: checking for randomized brk remedy" >&5
9245  echo "configure:4162: checking for randomized brk remedy" >&5  echo $ECHO_N "checking for randomized brk remedy... $ECHO_C" >&6
9246                  if test "$SBRK" = "$SBRK1" ; then                  if test "$SBRK" = "$SBRK1" ; then
9247                          echo "$ac_t""yes" 1>&6                          echo "$as_me:$LINENO: result: yes" >&5
9248                          cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
9249                            cat >>confdefs.h <<\_ACEOF
9250  #define NEED_NONRANDOM_SBRK 1  #define NEED_NONRANDOM_SBRK 1
9251  EOF  _ACEOF
9252    
9253                  else                  else
9254                          echo "$ac_t""no" 1>&6                          echo "$as_me:$LINENO: result: no" >&5
9255    echo "${ECHO_T}no" >&6
9256                          echo "Cannot build with randomized sbrk"                          echo "Cannot build with randomized sbrk"
9257                          exit 1                          exit 1
9258                  fi                  fi
9259          else          else
9260                  echo "$ac_t""no" 1>&6                  echo "$as_me:$LINENO: result: no" >&5
9261    echo "${ECHO_T}no" >&6
9262          fi          fi
9263  fi  fi
9264    
9265  ####  Memory areas and alignment  ####  Memory areas and alignment
9266    
9267  echo $ac_n "checking for required object alignment""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for required object alignment" >&5
9268  echo "configure:4182: checking for required object alignment" >&5  echo $ECHO_N "checking for required object alignment... $ECHO_C" >&6
9269  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9270    echo Cannot find object alignent;exit -1    echo Cannot find object alignent;exit -1
9271  else  else
9272    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9273  #line 4187 "configure"  /* confdefs.h.  */
9274  #include "confdefs.h"  _ACEOF
9275    cat confdefs.h >>conftest.$ac_ext
9276    cat >>conftest.$ac_ext <<_ACEOF
9277    /* end confdefs.h.  */
9278  #include <stdio.h>  #include <stdio.h>
9279          #define EXTER          #define EXTER
9280          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 4199  else Line 9289  else
9289          fprintf(fp,"%lu\n",i);          fprintf(fp,"%lu\n",i);
9290          fclose(fp);          fclose(fp);
9291          return 0;}          return 0;}
9292  EOF  _ACEOF
9293  if { (eval echo configure:4204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9294  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9295      (eval $ac_link) 2>&5
9296      ac_status=$?
9297      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9299      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300      (eval $ac_try) 2>&5
9301      ac_status=$?
9302      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303      (exit $ac_status); }; }; then
9304    obj_align=`cat conftest1`    obj_align=`cat conftest1`
9305  else  else
9306    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9307    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9308    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9309    echo Cannot find object alignent;exit -1  
9310  fi  ( exit $ac_status )
9311  rm -fr conftest*  echo Cannot find object alignent;exit -1
9312  fi  fi
9313    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9314  echo "$ac_t""$obj_align" 1>&6  fi
9315  cat >> confdefs.h <<EOF  echo "$as_me:$LINENO: result: $obj_align" >&5
9316    echo "${ECHO_T}$obj_align" >&6
9317    cat >>confdefs.h <<_ACEOF
9318  #define OBJ_ALIGNMENT $obj_align  #define OBJ_ALIGNMENT $obj_align
9319  EOF  _ACEOF
9320    
9321    
9322  echo $ac_n "checking for C extension variable alignment""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for C extension variable alignment" >&5
9323  echo "configure:4223: checking for C extension variable alignment" >&5  echo $ECHO_N "checking for C extension variable alignment... $ECHO_C" >&6
9324  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9325    obj_align=    obj_align=
9326  else  else
9327    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9328  #line 4228 "configure"  /* confdefs.h.  */
9329  #include "confdefs.h"  _ACEOF
9330    cat confdefs.h >>conftest.$ac_ext
9331    cat >>conftest.$ac_ext <<_ACEOF
9332    /* end confdefs.h.  */
9333  int main() {  int main() {
9334              char *v __attribute__ ((aligned ($obj_align)));              char *v __attribute__ ((aligned ($obj_align)));
9335              return 0;}              return 0;}
9336  EOF  _ACEOF
9337  if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9338  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9339      (eval $ac_link) 2>&5
9340      ac_status=$?
9341      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9343      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344      (eval $ac_try) 2>&5
9345      ac_status=$?
9346      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347      (exit $ac_status); }; }; then
9348    obj_align="__attribute__ ((aligned ($obj_align)))"    obj_align="__attribute__ ((aligned ($obj_align)))"
9349  else  else
9350    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9351    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9352    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9353    obj_align=  
9354  fi  ( exit $ac_status )
9355  rm -fr conftest*  obj_align=
9356  fi  fi
9357    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9358  echo "$ac_t""$obj_align" 1>&6  fi
9359  cat >> confdefs.h <<EOF  echo "$as_me:$LINENO: result: $obj_align" >&5
9360    echo "${ECHO_T}$obj_align" >&6
9361    cat >>confdefs.h <<_ACEOF
9362  #define OBJ_ALIGN $obj_align  #define OBJ_ALIGN $obj_align
9363  EOF  _ACEOF
9364    
9365    
9366    
9367  echo $ac_n "checking TYPE_BITS macro""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking TYPE_BITS macro" >&5
9368  echo "configure:4254: checking TYPE_BITS macro" >&5  echo $ECHO_N "checking TYPE_BITS macro... $ECHO_C" >&6
9369  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9370    echo Cannot find type_bits;exit 1    echo Cannot find type_bits;exit 1
9371  else  else
9372    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9373  #line 4259 "configure"  /* confdefs.h.  */
9374  #include "confdefs.h"  _ACEOF
9375    cat confdefs.h >>conftest.$ac_ext
9376    cat >>conftest.$ac_ext <<_ACEOF
9377    /* end confdefs.h.  */
9378  #include <stdio.h>  #include <stdio.h>
9379          #define EXTER          #define EXTER
9380          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 4272  else Line 9390  else
9390          fclose(f);          fclose(f);
9391          return 0;          return 0;
9392          }          }
9393  EOF  _ACEOF
9394  if { (eval echo configure:4277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9395  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9396      (eval $ac_link) 2>&5
9397      ac_status=$?
9398      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9400      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401      (eval $ac_try) 2>&5
9402      ac_status=$?
9403      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404      (exit $ac_status); }; }; then
9405    type_bits=`cat conftest1`    type_bits=`cat conftest1`
9406  else  else
9407    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9408    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9409    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9410    echo Cannot find type_bits;exit 1  
9411  fi  ( exit $ac_status )
9412  rm -fr conftest*  echo Cannot find type_bits;exit 1
9413  fi  fi
9414    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9415  echo "$ac_t""$type_bits" 1>&6  fi
9416  cat >> confdefs.h <<EOF  echo "$as_me:$LINENO: result: $type_bits" >&5
9417    echo "${ECHO_T}$type_bits" >&6
9418    cat >>confdefs.h <<_ACEOF
9419  #define TYPE_BITS $type_bits  #define TYPE_BITS $type_bits
9420  EOF  _ACEOF
9421    
9422    
9423  echo $ac_n "checking sizeof struct contblock""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking sizeof struct contblock" >&5
9424  echo "configure:4296: checking sizeof struct contblock" >&5  echo $ECHO_N "checking sizeof struct contblock... $ECHO_C" >&6
9425    
9426  # work around MSYS pwd result incompatibility  # work around MSYS pwd result incompatibility
9427  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
9428  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9429    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
9430  else  else
9431    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9432  #line 4304 "configure"  /* confdefs.h.  */
9433  #include "confdefs.h"  _ACEOF
9434    cat confdefs.h >>conftest.$ac_ext
9435    cat >>conftest.$ac_ext <<_ACEOF
9436    /* end confdefs.h.  */
9437  #include <stdio.h>  #include <stdio.h>
9438          #define EXTER          #define EXTER
9439          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 4313  else Line 9445  else
9445          fclose(f);          fclose(f);
9446          return 0;          return 0;
9447          }          }
9448  EOF  _ACEOF
9449  if { (eval echo configure:4318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9450  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9451      (eval $ac_link) 2>&5
9452      ac_status=$?
9453      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9455      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456      (eval $ac_try) 2>&5
9457      ac_status=$?
9458      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459      (exit $ac_status); }; }; then
9460    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
9461  else  else
9462    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9463    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9464    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9465    echo Cannot find sizeof struct contblock;exit 1  
9466    ( exit $ac_status )
9467    echo Cannot find sizeof struct contblock;exit 1
9468  fi  fi
9469  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9470  fi  fi
   
9471  else  else
9472  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9473    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
9474  else  else
9475    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9476  #line 4335 "configure"  /* confdefs.h.  */
9477  #include "confdefs.h"  _ACEOF
9478    cat confdefs.h >>conftest.$ac_ext
9479    cat >>conftest.$ac_ext <<_ACEOF
9480    /* end confdefs.h.  */
9481  #include <stdio.h>  #include <stdio.h>
9482          #define EXTER          #define EXTER
9483          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 4344  else Line 9489  else
9489          fclose(f);          fclose(f);
9490          return 0;          return 0;
9491          }          }
9492  EOF  _ACEOF
9493  if { (eval echo configure:4349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9494  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9495      (eval $ac_link) 2>&5
9496      ac_status=$?
9497      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9499      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500      (eval $ac_try) 2>&5
9501      ac_status=$?
9502      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503      (exit $ac_status); }; }; then
9504    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
9505  else  else
9506    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9507    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9508    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9509    echo Cannot find sizeof struct contblock;exit 1  
9510    ( exit $ac_status )
9511    echo Cannot find sizeof struct contblock;exit 1
9512  fi  fi
9513  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9514  fi  fi
   
9515  fi  fi
9516  echo "$ac_t""$sizeof_contblock" 1>&6  echo "$as_me:$LINENO: result: $sizeof_contblock" >&5
9517  cat >> confdefs.h <<EOF  echo "${ECHO_T}$sizeof_contblock" >&6
9518    cat >>confdefs.h <<_ACEOF
9519  #define SIZEOF_CONTBLOCK $sizeof_contblock  #define SIZEOF_CONTBLOCK $sizeof_contblock
9520  EOF  _ACEOF
9521    
9522    
9523    
9524  echo $ac_n "checking DBEGIN""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking DBEGIN" >&5
9525  echo "configure:4370: checking DBEGIN" >&5  echo $ECHO_N "checking DBEGIN... $ECHO_C" >&6
9526  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9527    dbegin=0    dbegin=0
9528  else  else
9529    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9530  #line 4375 "configure"  /* confdefs.h.  */
9531  #include "confdefs.h"  _ACEOF
9532    cat confdefs.h >>conftest.$ac_ext
9533    cat >>conftest.$ac_ext <<_ACEOF
9534    /* end confdefs.h.  */
9535  #include <stdio.h>  #include <stdio.h>
9536              #include <stdlib.h>              #include <stdlib.h>
9537              #ifdef NEED_NONRANDOM_SBRK              #ifdef NEED_NONRANDOM_SBRK
# Line 4408  main(int argc,char * argv[]) Line 9567  main(int argc,char * argv[])
9567    fclose(fp);    fclose(fp);
9568    return 0;    return 0;
9569  }  }
9570  EOF  _ACEOF
9571  if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9572  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573      (eval $ac_link) 2>&5
9574      ac_status=$?
9575      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9577      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578      (eval $ac_try) 2>&5
9579      ac_status=$?
9580      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581      (exit $ac_status); }; }; then
9582    dbegin=`cat conftest1`    dbegin=`cat conftest1`
9583  else  else
9584    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9585    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9586    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9587    dbegin=0  
9588    ( exit $ac_status )
9589    dbegin=0
9590  fi  fi
9591  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9592  fi  fi
   
9593  #AC_DEFINE_UNQUOTED(DBEGIN,$dbegin)  #AC_DEFINE_UNQUOTED(DBEGIN,$dbegin)
9594  echo "$ac_t""$dbegin" 1>&6  echo "$as_me:$LINENO: result: $dbegin" >&5
9595    echo "${ECHO_T}$dbegin" >&6
9596    
9597  # pagewidth  # pagewidth
9598  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for pagewidth" >&5
9599  echo "configure:4430: checking for pagewidth" >&5  echo $ECHO_N "checking for pagewidth... $ECHO_C" >&6
9600  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9601    PAGEWIDTH=0    PAGEWIDTH=0
9602  else  else
9603    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9604  #line 4435 "configure"  /* confdefs.h.  */
9605  #include "confdefs.h"  _ACEOF
9606    cat confdefs.h >>conftest.$ac_ext
9607    cat >>conftest.$ac_ext <<_ACEOF
9608    /* end confdefs.h.  */
9609  #include <stdio.h>  #include <stdio.h>
9610              #include <unistd.h>              #include <unistd.h>
9611  int main() {size_t i=getpagesize(),j;  int main() {size_t i=getpagesize(),j;
9612              FILE *fp=fopen("conftest1","w");              FILE *fp=fopen("conftest1","w");
9613              for (j=0;i>>=1;j++);              for (j=0;i>>=1;j++);
9614              if (j<12) {printf("pagewidth %u is too small\n",j);return -1;}              if (j<12) {printf("pagewidth %u is too small\n",j);return -1;}
9615              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
9616              return 0;}              return 0;}
9617  EOF  _ACEOF
9618  if { (eval echo configure:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9619  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9620      (eval $ac_link) 2>&5
9621      ac_status=$?
9622      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9624      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625      (eval $ac_try) 2>&5
9626      ac_status=$?
9627      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628      (exit $ac_status); }; }; then
9629    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
9630  else  else
9631    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9632    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9633    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9634    PAGEWIDTH=0  
9635  fi  ( exit $ac_status )
9636  rm -fr conftest*  PAGEWIDTH=0
9637  fi  fi
9638    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9639  echo "$ac_t""$PAGEWIDTH" 1>&6  fi
9640  cat >> confdefs.h <<EOF  echo "$as_me:$LINENO: result: $PAGEWIDTH" >&5
9641    echo "${ECHO_T}$PAGEWIDTH" >&6
9642    cat >>confdefs.h <<_ACEOF
9643  #define PAGEWIDTH $PAGEWIDTH  #define PAGEWIDTH $PAGEWIDTH
9644  EOF  _ACEOF
9645    
9646    
9647    
9648  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9649    def_maxpage=262144    def_maxpage=262144
9650  else  else
9651    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9652  #line 4469 "configure"  /* confdefs.h.  */
9653  #include "confdefs.h"  _ACEOF
9654    cat confdefs.h >>conftest.$ac_ext
9655    cat >>conftest.$ac_ext <<_ACEOF
9656    /* end confdefs.h.  */
9657  #include <stdio.h>  #include <stdio.h>
9658              #include <unistd.h>              #include <unistd.h>
9659  int main() {FILE *fp=fopen("conftest1","w");  int main() {FILE *fp=fopen("conftest1","w");
9660              fprintf(fp,"%u",262144*($SIZEOF_LONG>>2)/(1<<($PAGEWIDTH-12)));              fprintf(fp,"%u",262144*($SIZEOF_LONG>>2)/(1<<($PAGEWIDTH-12)));
9661              return 0;}              return 0;}
9662  EOF  _ACEOF
9663  if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9664  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9665      (eval $ac_link) 2>&5
9666      ac_status=$?
9667      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9669      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670      (eval $ac_try) 2>&5
9671      ac_status=$?
9672      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673      (exit $ac_status); }; }; then
9674    def_maxpage=`cat conftest1`    def_maxpage=`cat conftest1`
9675  else  else
9676    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9677    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9678    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9679    def_maxpage=262144  
9680    ( exit $ac_status )
9681    def_maxpage=262144
9682  fi  fi
9683  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9684  fi  fi
9685    
   
9686  # Check whether --enable-maxpage or --disable-maxpage was given.  # Check whether --enable-maxpage or --disable-maxpage was given.
9687  if test "${enable_maxpage+set}" = set; then  if test "${enable_maxpage+set}" = set; then
9688    enableval="$enable_maxpage"    enableval="$enable_maxpage"
9689    :  
9690  else  else
9691    enable_maxpage=$def_maxpage    enable_maxpage=$def_maxpage
9692  fi  fi;
   
9693  #AC_DEFINE_UNQUOTED(MAXPAGE,$enable_maxpage)  #AC_DEFINE_UNQUOTED(MAXPAGE,$enable_maxpage)
9694    
9695    
9696  echo $ac_n "checking CSTACK_ADDRESS""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking CSTACK_ADDRESS" >&5
9697  echo "configure:4502: checking CSTACK_ADDRESS" >&5  echo $ECHO_N "checking CSTACK_ADDRESS... $ECHO_C" >&6
9698  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9699    cstack_address=0    cstack_address=0
9700  else  else
9701    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9702  #line 4507 "configure"  /* confdefs.h.  */
9703  #include "confdefs.h"  _ACEOF
9704    cat confdefs.h >>conftest.$ac_ext
9705    cat >>conftest.$ac_ext <<_ACEOF
9706    /* end confdefs.h.  */
9707  #include <stdio.h>  #include <stdio.h>
9708  main()  main()
9709  {  {
# Line 4523  main() Line 9722  main()
9722    fclose(fp);    fclose(fp);
9723    return 0;    return 0;
9724  }  }
9725  EOF  _ACEOF
9726  if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9727  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9728      (eval $ac_link) 2>&5
9729      ac_status=$?
9730      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9732      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733      (eval $ac_try) 2>&5
9734      ac_status=$?
9735      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736      (exit $ac_status); }; }; then
9737    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
9738  else  else
9739    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9740    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9741    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9742    cstack_address=0  
9743    ( exit $ac_status )
9744    cstack_address=0
9745  fi  fi
9746  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9747  fi  fi
9748    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
9749  #define CSTACK_ADDRESS $cstack_address  #define CSTACK_ADDRESS $cstack_address
9750  EOF  _ACEOF
9751    
9752  echo "$ac_t""$cstack_address" 1>&6  echo "$as_me:$LINENO: result: $cstack_address" >&5
9753    echo "${ECHO_T}$cstack_address" >&6
9754    
9755  echo $ac_n "checking NEG_CSTACK_ADDRESS""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking NEG_CSTACK_ADDRESS" >&5
9756  echo "configure:4547: checking NEG_CSTACK_ADDRESS" >&5  echo $ECHO_N "checking NEG_CSTACK_ADDRESS... $ECHO_C" >&6
9757  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9758    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
9759    echo "${ECHO_T}no" >&6
9760  else  else
9761    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9762  #line 4552 "configure"  /* confdefs.h.  */
9763  #include "confdefs.h"  _ACEOF
9764    cat confdefs.h >>conftest.$ac_ext
9765    cat >>conftest.$ac_ext <<_ACEOF
9766    /* end confdefs.h.  */
9767  #include <stdio.h>  #include <stdio.h>
9768  main()  main()
9769  {  {
9770    return (long)$cstack_address<0 ? 0 : -1;    return (long)$cstack_address<0 ? 0 : -1;
9771  }  }
9772  EOF  _ACEOF
9773  if { (eval echo configure:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9774  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775    echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
9776      ac_status=$?
9777      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9779      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780      (eval $ac_try) 2>&5
9781      ac_status=$?
9782      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783      (exit $ac_status); }; }; then
9784      echo "$as_me:$LINENO: result: yes" >&5
9785    echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\_ACEOF
9786  #define NEG_CSTACK_ADDRESS 1  #define NEG_CSTACK_ADDRESS 1
9787  EOF  _ACEOF
9788    
9789  else  else
9790    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9791    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9792    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9793    echo "$ac_t""no" 1>&6  
9794    ( exit $ac_status )
9795    echo "$as_me:$LINENO: result: no" >&5
9796    echo "${ECHO_T}no" >&6
9797  fi  fi
9798  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9799  fi  fi
9800    
9801    
9802    echo "$as_me:$LINENO: checking \"finding CSTACK_ALIGNMENT\"" >&5
9803  echo $ac_n "checking "finding CSTACK_ALIGNMENT"""... $ac_c" 1>&6  echo $ECHO_N "checking \"finding CSTACK_ALIGNMENT\"... $ECHO_C" >&6
 echo "configure:4578: checking "finding CSTACK_ALIGNMENT"" >&5  
9804  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9805    cstack_alignment=0    cstack_alignment=0
9806  else  else
9807    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9808  #line 4583 "configure"  /* confdefs.h.  */
9809  #include "confdefs.h"  _ACEOF
9810    cat confdefs.h >>conftest.$ac_ext
9811    cat >>conftest.$ac_ext <<_ACEOF
9812    /* end confdefs.h.  */
9813  #include <stdio.h>  #include <stdio.h>
9814  main()  main()
9815  {  {
# Line 4595  main() Line 9824  main()
9824    fclose(fp);    fclose(fp);
9825    return 0;    return 0;
9826  }  }
9827  EOF  _ACEOF
9828  if { (eval echo configure:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9829  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830      (eval $ac_link) 2>&5
9831      ac_status=$?
9832      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9834      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835      (eval $ac_try) 2>&5
9836      ac_status=$?
9837      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838      (exit $ac_status); }; }; then
9839    cstack_alignment=`cat conftest1`    cstack_alignment=`cat conftest1`
9840  else  else
9841    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9842    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9843    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9844    cstack_alignment=0  
9845    ( exit $ac_status )
9846    cstack_alignment=0
9847  fi  fi
9848  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9849  fi  fi
9850    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
9851  #define CSTACK_ALIGNMENT $cstack_alignment  #define CSTACK_ALIGNMENT $cstack_alignment
9852  EOF  _ACEOF
9853    
9854  echo "$ac_t""$cstack_alignment" 1>&6  echo "$as_me:$LINENO: result: $cstack_alignment" >&5
9855    echo "${ECHO_T}$cstack_alignment" >&6
9856    
9857  echo $ac_n "checking CSTACK_DIRECTION""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking CSTACK_DIRECTION" >&5
9858  echo "configure:4619: checking CSTACK_DIRECTION" >&5  echo $ECHO_N "checking CSTACK_DIRECTION... $ECHO_C" >&6
9859  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9860    cstack_direction=0    cstack_direction=0
9861  else  else
9862    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9863  #line 4624 "configure"  /* confdefs.h.  */
9864  #include "confdefs.h"  _ACEOF
9865    cat confdefs.h >>conftest.$ac_ext
9866    cat >>conftest.$ac_ext <<_ACEOF
9867    /* end confdefs.h.  */
9868  #include <stdio.h>  #include <stdio.h>
9869  void *  void *
9870  foo(void) {  foo(void) {
# Line 4638  main() Line 9881  main()
9881    fclose(fp);    fclose(fp);
9882    return 0;    return 0;
9883  }  }
9884  EOF  _ACEOF
9885  if { (eval echo configure:4643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9886  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9887      (eval $ac_link) 2>&5
9888      ac_status=$?
9889      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9891      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892      (eval $ac_try) 2>&5
9893      ac_status=$?
9894      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895      (exit $ac_status); }; }; then
9896    cstack_direction=`cat conftest1`    cstack_direction=`cat conftest1`
9897  else  else
9898    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9899    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9900    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9901    cstack_direction=0  
9902    ( exit $ac_status )
9903    cstack_direction=0
9904  fi  fi
9905  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9906  fi  fi
9907    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
9908  #define CSTACK_DIRECTION $cstack_direction  #define CSTACK_DIRECTION $cstack_direction
9909  EOF  _ACEOF
9910    
9911  echo "$ac_t""$cstack_direction" 1>&6  echo "$as_me:$LINENO: result: $cstack_direction" >&5
9912    echo "${ECHO_T}$cstack_direction" >&6
9913    
9914    
9915  echo $ac_n "checking for shared library/C stack ceiling to heap""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for shared library/C stack ceiling to heap" >&5
9916  echo "configure:4663: checking for shared library/C stack ceiling to heap" >&5  echo $ECHO_N "checking for shared library/C stack ceiling to heap... $ECHO_C" >&6
9917  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
9918    heap_ceiling=2000000000    heap_ceiling=2000000000
9919  else  else
# Line 4672  heap_ceiling=`ldd foo | tail -n 1 | awk Line 9926  heap_ceiling=`ldd foo | tail -n 1 | awk
9926  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9927    echo failed;exit 1    echo failed;exit 1
9928  else  else
9929    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9930  #line 4677 "configure"  /* confdefs.h.  */
9931  #include "confdefs.h"  _ACEOF
9932    cat confdefs.h >>conftest.$ac_ext
9933    cat >>conftest.$ac_ext <<_ACEOF
9934    /* end confdefs.h.  */
9935  #include <stdio.h>  #include <stdio.h>
9936  int main() {  int main() {
9937      FILE *fp=fopen("conftest1","w");      FILE *fp=fopen("conftest1","w");
# Line 4683  int main() { Line 9940  int main() {
9940      h=c>d && c<h ? c : h;      h=c>d && c<h ? c : h;
9941      fprintf(fp,"0x%lx",h);      fprintf(fp,"0x%lx",h);
9942      return 0;}      return 0;}
9943  EOF  _ACEOF
9944  if { (eval echo configure:4688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9945  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9946      (eval $ac_link) 2>&5
9947      ac_status=$?
9948      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9950      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951      (eval $ac_try) 2>&5
9952      ac_status=$?
9953      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954      (exit $ac_status); }; }; then
9955    heap_ceiling=`cat conftest1`    heap_ceiling=`cat conftest1`
9956  else  else
9957    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9958    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9959    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
9960    echo failed;exit 1  
9961    ( exit $ac_status )
9962    echo failed;exit 1
9963  fi  fi
9964  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9965  fi  fi
   
9966  fi  fi
9967  fi  fi
9968  echo "$ac_t""$heap_ceiling" 1>&6  echo "$as_me:$LINENO: result: $heap_ceiling" >&5
9969  cat >> confdefs.h <<EOF  echo "${ECHO_T}$heap_ceiling" >&6
9970    cat >>confdefs.h <<_ACEOF
9971  #define SHARED_LIB_HEAP_CEILING $heap_ceiling  #define SHARED_LIB_HEAP_CEILING $heap_ceiling
9972  EOF  _ACEOF
9973    
9974    
9975  ## Don't lower heap start if C stack is below default dbegin, as we're  ## Don't lower heap start if C stack is below default dbegin, as we're
# Line 4710  echo "int main() {return !($heap_ceiling Line 9978  echo "int main() {return !($heap_ceiling
9978  $CC foo.c -o foo  $CC foo.c -o foo
9979  if ./foo ; then  if ./foo ; then
9980    
9981     echo $ac_n "checking "finding default linker script"""... $ac_c" 1>&6     echo "$as_me:$LINENO: checking \"finding default linker script\"" >&5
9982  echo "configure:4715: checking "finding default linker script"" >&5  echo $ECHO_N "checking \"finding default linker script\"... $ECHO_C" >&6
9983     touch unixport/gcl.script     touch unixport/gcl.script
9984     echo "int main() {return 0;}" >foo.c     echo "int main() {return 0;}" >foo.c
9985     $CC -Wl,--verbose foo.c -o foo 2>&1 | \     $CC -Wl,--verbose foo.c -o foo 2>&1 | \
9986         awk '/==================================================/ {i=1-i;next} {if (i) print}' >gcl.script         awk '/==================================================/ {i=1-i;next} {if (i) print}' >gcl.script
9987     rm -rf foo.c foo     rm -rf foo.c foo
9988     if test "`cat gcl.script | wc -l`" != "0" ; then     if test "`cat gcl.script | wc -l`" != "0" ; then
9989        echo "$ac_t""got it" 1>&6        echo "$as_me:$LINENO: result: got it" >&5
9990        echo $ac_n "checking "trying to lower heap start"""... $ac_c" 1>&6  echo "${ECHO_T}got it" >&6
9991  echo "configure:4724: checking "trying to lower heap start"" >&5        echo "$as_me:$LINENO: checking \"trying to lower heap start\"" >&5
9992    echo $ECHO_N "checking \"trying to lower heap start\"... $ECHO_C" >&6
9993        cp gcl.script gcl.script.def        cp gcl.script gcl.script.def
9994        cat gcl.script.def | awk '/SIZEOF_HEADERS/ {gsub("0x...","0x000",$0);} {print}' |  sed 's,\. = 0x10000000;,/*. = 0x10000000;*/,1' >gcl.script        cat gcl.script.def | awk '/SIZEOF_HEADERS/ {gsub("0x...","0x000",$0);} {print}' |  sed 's,\. = 0x10000000;,/*. = 0x10000000;*/,1' >gcl.script
9995        if diff gcl.script.def gcl.script >/dev/null 2>&1 ; then        if diff gcl.script.def gcl.script >/dev/null 2>&1 ; then
9996           echo "$ac_t"""cannot or not needed"" 1>&6           echo "$as_me:$LINENO: result: \"cannot or not needed\"" >&5
9997    echo "${ECHO_T}\"cannot or not needed\"" >&6
9998           rm -f gcl.script gcl.script.def           rm -f gcl.script gcl.script.def
9999        else        else
10000           echo $ac_n "checking "linker script"""... $ac_c" 1>&6           echo "$as_me:$LINENO: checking \"linker script\"" >&5
10001  echo "configure:4732: checking "linker script"" >&5  echo $ECHO_N "checking \"linker script\"... $ECHO_C" >&6
10002           echo "int main() {return 0;}" >foo.c           echo "int main() {return 0;}" >foo.c
10003           if $CC -Wl,-T gcl.script foo.c -o foo >/dev/null 2>&1 && ./foo >/dev/null 2>&1 ; then           if $CC -Wl,-T gcl.script foo.c -o foo >/dev/null 2>&1 && ./foo >/dev/null 2>&1 ; then
10004              echo "$ac_t"""done"" 1>&6              echo "$as_me:$LINENO: result: \"done\"" >&5
10005    echo "${ECHO_T}\"done\"" >&6
10006              rm -f gcl.script.def              rm -f gcl.script.def
10007              LDFLAGS="$LDFLAGS -Wl,-T gcl.script "              LDFLAGS="$LDFLAGS -Wl,-T gcl.script "
10008              cp gcl.script unixport              cp gcl.script unixport
10009           else           else
10010               echo "$ac_t"""failed"" 1>&6               echo "$as_me:$LINENO: result: \"failed\"" >&5
10011    echo "${ECHO_T}\"failed\"" >&6
10012               rm -f gcl.script gcl.script.def               rm -f gcl.script gcl.script.def
10013           fi                 fi
10014           rm -rf foo.c foo           rm -rf foo.c foo
10015        fi        fi
10016     else     else
10017       echo "$ac_t"""none"" 1>&6       echo "$as_me:$LINENO: result: \"none\"" >&5
10018    echo "${ECHO_T}\"none\"" >&6
10019       rm -f gcl.script       rm -f gcl.script
10020     fi     fi
10021    
10022     old_LDFLAGS="$LDFLAGS"     old_LDFLAGS="$LDFLAGS"
10023     LDFLAGS="$LDFLAGS $TLDFLAGS"     LDFLAGS="$LDFLAGS $TLDFLAGS"
10024     echo $ac_n "checking "revised DBEGIN"""... $ac_c" 1>&6     echo "$as_me:$LINENO: checking \"revised DBEGIN\"" >&5
10025  echo "configure:4753: checking "revised DBEGIN"" >&5  echo $ECHO_N "checking \"revised DBEGIN\"... $ECHO_C" >&6
10026     if test "$cross_compiling" = yes; then     if test "$cross_compiling" = yes; then
10027    dbegin=0    dbegin=0
10028  else  else
10029    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10030  #line 4758 "configure"  /* confdefs.h.  */
10031  #include "confdefs.h"  _ACEOF
10032    cat confdefs.h >>conftest.$ac_ext
10033    cat >>conftest.$ac_ext <<_ACEOF
10034    /* end confdefs.h.  */
10035  #include <stdio.h>  #include <stdio.h>
10036                 #include <stdlib.h>                 #include <stdlib.h>
10037                 #ifdef NEED_NONRANDOM_SBRK                 #ifdef NEED_NONRANDOM_SBRK
# Line 4776  else Line 10052  else
10052                   if (!syscall(SYS_personality,PER_LINUX))                   if (!syscall(SYS_personality,PER_LINUX))
10053                   #endif                   #endif
10054                      execvp(argv[0],argv);                      execvp(argv[0],argv);
10055                   #endif                     #endif
10056                   b = (void *) malloc(1000);                   b = (void *) malloc(1000);
10057                   fp = fopen("conftest1","w");                   fp = fopen("conftest1","w");
10058    
# Line 4791  else Line 10067  else
10067                   #endif                   #endif
10068                     fclose(fp);                     fclose(fp);
10069                     return 0;}                     return 0;}
10070  EOF  _ACEOF
10071  if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
10072  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10073      (eval $ac_link) 2>&5
10074      ac_status=$?
10075      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10077      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078      (eval $ac_try) 2>&5
10079      ac_status=$?
10080      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081      (exit $ac_status); }; }; then
10082    dbegin=`cat conftest1`    dbegin=`cat conftest1`
10083  else  else
10084    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
10085    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
10086    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
10087    dbegin=0  
10088    ( exit $ac_status )
10089    dbegin=0
10090  fi  fi
10091  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10092  fi  fi
10093       echo "$as_me:$LINENO: result: $dbegin" >&5
10094     echo "$ac_t""$dbegin" 1>&6  echo "${ECHO_T}$dbegin" >&6
10095     LDFLAGS="$old_LDFLAGS"     LDFLAGS="$old_LDFLAGS"
10096  fi  fi
10097  cat >> confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
10098  #define DBEGIN $dbegin  #define DBEGIN $dbegin
10099  EOF  _ACEOF
10100    
10101  rm -rf foo*  rm -rf foo*
10102    
10103  echo $ac_n "checking for maxpage revision""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for maxpage revision" >&5
10104  echo "configure:4818: checking for maxpage revision" >&5  echo $ECHO_N "checking for maxpage revision... $ECHO_C" >&6
10105  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
10106    tmp_maxpage=0    tmp_maxpage=0
10107  else  else
10108    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10109  #line 4823 "configure"  /* confdefs.h.  */
10110  #include "confdefs.h"  _ACEOF
10111    cat confdefs.h >>conftest.$ac_ext
10112    cat >>conftest.$ac_ext <<_ACEOF
10113    /* end confdefs.h.  */
10114  #include <stdio.h>  #include <stdio.h>
10115  main()  main()
10116  {  {
# Line 4836  main() Line 10126  main()
10126    fclose(fp);    fclose(fp);
10127    return 0;    return 0;
10128  }  }
10129  EOF  _ACEOF
10130  if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
10131  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132      (eval $ac_link) 2>&5
10133      ac_status=$?
10134      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10136      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137      (eval $ac_try) 2>&5
10138      ac_status=$?
10139      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140      (exit $ac_status); }; }; then
10141    tmp_maxpage=`cat conftest1`    tmp_maxpage=`cat conftest1`
10142  else  else
10143    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
10144    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
10145    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
10146    tmp_maxpage=0  
10147    ( exit $ac_status )
10148    tmp_maxpage=0
10149  fi  fi
10150  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10151  fi  fi
   
10152  if test "$tmp_maxpage" != "$enable_maxpage" ; then  if test "$tmp_maxpage" != "$enable_maxpage" ; then
10153     enable_maxpage=$tmp_maxpage     enable_maxpage=$tmp_maxpage
10154     echo "$ac_t""$enable_maxpage" 1>&6     echo "$as_me:$LINENO: result: $enable_maxpage" >&5
10155    echo "${ECHO_T}$enable_maxpage" >&6
10156  else  else
10157     echo "$ac_t""$enable_maxpage is OK" 1>&6     echo "$as_me:$LINENO: result: $enable_maxpage is OK" >&5
10158    echo "${ECHO_T}$enable_maxpage is OK" >&6
10159  fi  fi
10160  cat >> confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
10161  #define MAXPAGE $enable_maxpage  #define MAXPAGE $enable_maxpage
10162  EOF  _ACEOF
10163    
10164    
10165  echo $ac_n "checking for C stack size floor from heap""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for C stack size floor from heap" >&5
10166  echo "configure:4865: checking for C stack size floor from heap" >&5  echo $ECHO_N "checking for C stack size floor from heap... $ECHO_C" >&6
10167  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
10168    tmp_cssize=0    tmp_cssize=0
10169  else  else
10170    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10171  #line 4870 "configure"  /* confdefs.h.  */
10172  #include "confdefs.h"  _ACEOF
10173    cat confdefs.h >>conftest.$ac_ext
10174    cat >>conftest.$ac_ext <<_ACEOF
10175    /* end confdefs.h.  */
10176  #include <stdio.h>  #include <stdio.h>
10177  int  int
10178  main()  main()
# Line 4875  main() Line 10180  main()
10180    char *b;    char *b;
10181    FILE *fp = fopen("conftest1","w");    FILE *fp = fopen("conftest1","w");
10182    unsigned long j,k;    unsigned long j,k;
10183      
10184    j=$cstack_address + $cstack_direction * $enable_cssize;    j=$cstack_address + $cstack_direction * $enable_cssize;
10185    k=($dbegin + ((unsigned long)$enable_maxpage << $PAGEWIDTH));    k=($dbegin + ((unsigned long)$enable_maxpage << $PAGEWIDTH));
10186    j=abs(j-$cstack_address)!=$enable_cssize || (j<k && $dbegin < $cstack_address) ? k : j;    j=abs(j-$cstack_address)!=$enable_cssize || (j<k && $dbegin < $cstack_address) ? k : j;
# Line 4885  main() Line 10190  main()
10190    fclose(fp);    fclose(fp);
10191    return 0;    return 0;
10192  }  }
10193  EOF  _ACEOF
10194  if { (eval echo configure:4890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
10195  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10196      (eval $ac_link) 2>&5
10197      ac_status=$?
10198      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10200      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201      (eval $ac_try) 2>&5
10202      ac_status=$?
10203      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204      (exit $ac_status); }; }; then
10205    tmp_cssize=`cat conftest1`    tmp_cssize=`cat conftest1`
10206  else  else
10207    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
10208    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
10209    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
10210    tmp_cssize=0  
10211    ( exit $ac_status )
10212    tmp_cssize=0
10213  fi  fi
10214  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10215  fi  fi
   
10216  if test "$tmp_cssize" != "$enable_cssize" ; then  if test "$tmp_cssize" != "$enable_cssize" ; then
10217     enable_cssize=$tmp_cssize;     enable_cssize=$tmp_cssize;
10218     echo "$ac_t""$enable_cssize" 1>&6     echo "$as_me:$LINENO: result: $enable_cssize" >&5
10219    echo "${ECHO_T}$enable_cssize" >&6
10220  #   AC_DEFINE_UNQUOTED(CSSIZE,$enable_cssize)  #   AC_DEFINE_UNQUOTED(CSSIZE,$enable_cssize)
10221  else  else
10222     echo "$ac_t""$enable_cssize is OK" 1>&6     echo "$as_me:$LINENO: result: $enable_cssize is OK" >&5
10223    echo "${ECHO_T}$enable_cssize is OK" >&6
10224  fi  fi
10225  #AC_DEFINE_UNQUOTED(CSSIZE,$enable_cssize)  #AC_DEFINE_UNQUOTED(CSSIZE,$enable_cssize)
10226    
10227  echo $ac_n "checking for C stack size limit from fixnum table""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for C stack size limit from fixnum table" >&5
10228  echo "configure:4912: checking for C stack size limit from fixnum table" >&5  echo $ECHO_N "checking for C stack size limit from fixnum table... $ECHO_C" >&6
10229  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
10230    tmp_cssize=0    tmp_cssize=0
10231  else  else
10232    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10233  #line 4917 "configure"  /* confdefs.h.  */
10234  #include "confdefs.h"  _ACEOF
10235    cat confdefs.h >>conftest.$ac_ext
10236    cat >>conftest.$ac_ext <<_ACEOF
10237    /* end confdefs.h.  */
10238  #include <stdio.h>  #include <stdio.h>
10239  int  int
10240  main()  main()
# Line 4922  main() Line 10242  main()
10242    char *b;    char *b;
10243    FILE *fp = fopen("conftest1","w");    FILE *fp = fopen("conftest1","w");
10244    unsigned long j,k;    unsigned long j,k;
10245      
10246    j=$cstack_address + $cstack_direction * $enable_cssize;    j=$cstack_address + $cstack_direction * $enable_cssize;
10247    if ($cstack_direction>0) {    if ($cstack_direction>0) {
10248      k=$cstack_address + ((-(unsigned long)$cstack_address)>>1);      k=$cstack_address + ((-(unsigned long)$cstack_address)>>1);
# Line 4935  main() Line 10255  main()
10255    fclose(fp);    fclose(fp);
10256    return 0;    return 0;
10257  }  }
10258  EOF  _ACEOF
10259  if { (eval echo configure:4940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
10260  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10261      (eval $ac_link) 2>&5
10262      ac_status=$?
10263      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10265      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266      (eval $ac_try) 2>&5
10267      ac_status=$?
10268      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269      (exit $ac_status); }; }; then
10270    tmp_cssize=`cat conftest1`    tmp_cssize=`cat conftest1`
10271  else  else
10272    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
10273    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
10274    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
10275    tmp_cssize=0  
10276    ( exit $ac_status )
10277    tmp_cssize=0
10278  fi  fi
10279  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10280  fi  fi
   
10281  if test "$tmp_cssize" != "$enable_cssize" ; then  if test "$tmp_cssize" != "$enable_cssize" ; then
10282     enable_cssize=$tmp_cssize;     enable_cssize=$tmp_cssize;
10283     echo "$ac_t""$enable_cssize" 1>&6     echo "$as_me:$LINENO: result: $enable_cssize" >&5
10284    echo "${ECHO_T}$enable_cssize" >&6
10285  else  else
10286     echo "$ac_t""$enable_cssize is OK" 1>&6     echo "$as_me:$LINENO: result: $enable_cssize is OK" >&5
10287    echo "${ECHO_T}$enable_cssize is OK" >&6
10288  fi  fi
10289  cat >> confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
10290  #define CSSIZE $enable_cssize  #define CSSIZE $enable_cssize
10291  EOF  _ACEOF
10292    
10293    
10294  mem_top=0  mem_top=0
10295  mem_range=0  mem_range=0
10296  echo $ac_n "checking mem top""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking mem top" >&5
10297  echo "configure:4966: checking mem top" >&5  echo $ECHO_N "checking mem top... $ECHO_C" >&6
10298  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
10299    mem_top=0    mem_top=0
10300  else  else
10301    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10302  #line 4971 "configure"  /* confdefs.h.  */
10303  #include "confdefs.h"  _ACEOF
10304    cat confdefs.h >>conftest.$ac_ext
10305    cat >>conftest.$ac_ext <<_ACEOF
10306    /* end confdefs.h.  */
10307  #include <stdio.h>  #include <stdio.h>
10308  int  int
10309  main()  main()
# Line 4991  main() Line 10326  main()
10326    fprintf(fp,"0x%lx",i);    fprintf(fp,"0x%lx",i);
10327    fclose(fp);    fclose(fp);
10328    return 0;}    return 0;}
10329  EOF  _ACEOF
10330  if { (eval echo configure:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
10331  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10332      (eval $ac_link) 2>&5
10333      ac_status=$?
10334      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10336      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337      (eval $ac_try) 2>&5
10338      ac_status=$?
10339      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340      (exit $ac_status); }; }; then
10341    mem_top=`cat conftest1`    mem_top=`cat conftest1`
10342  else  else
10343    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
10344    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
10345    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
10346    mem_top=0  
10347    ( exit $ac_status )
10348    mem_top=0
10349  fi  fi
10350  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10351  fi  fi
10352    echo "$as_me:$LINENO: result: $mem_top" >&5
10353  echo "$ac_t""$mem_top" 1>&6  echo "${ECHO_T}$mem_top" >&6
10354  if test "$mem_top" != "0" ; then  if test "$mem_top" != "0" ; then
10355     echo $ac_n "checking finding upper mem half range""... $ac_c" 1>&6     echo "$as_me:$LINENO: checking finding upper mem half range" >&5
10356  echo "configure:5011: checking finding upper mem half range" >&5  echo $ECHO_N "checking finding upper mem half range... $ECHO_C" >&6
10357     if test "$cross_compiling" = yes; then     if test "$cross_compiling" = yes; then
10358    mem_range=0    mem_range=0
10359  else  else
10360    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10361  #line 5016 "configure"  /* confdefs.h.  */
10362  #include "confdefs.h"  _ACEOF
10363    cat confdefs.h >>conftest.$ac_ext
10364    cat >>conftest.$ac_ext <<_ACEOF
10365    /* end confdefs.h.  */
10366  #include <stdio.h>  #include <stdio.h>
10367     int     int
10368     main()     main()
# Line 5026  else Line 10375  else
10375       fclose(fp);       fclose(fp);
10376       return 0;       return 0;
10377     }     }
10378  EOF  _ACEOF
10379  if { (eval echo configure:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
10380  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381      (eval $ac_link) 2>&5
10382      ac_status=$?
10383      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10385      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386      (eval $ac_try) 2>&5
10387      ac_status=$?
10388      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389      (exit $ac_status); }; }; then
10390    mem_range=`cat conftest1`    mem_range=`cat conftest1`
10391  else  else
10392    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
10393    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
10394    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
10395    mem_range=0  
10396    ( exit $ac_status )
10397    mem_range=0
10398  fi  fi
10399  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10400  fi  fi
10401       echo "$as_me:$LINENO: result: $mem_range" >&5
10402     echo "$ac_t""$mem_range" 1>&6  echo "${ECHO_T}$mem_range" >&6
10403     if test "$mem_range" != "0" ; then     if test "$mem_range" != "0" ; then
10404          cat >> confdefs.h <<EOF          cat >>confdefs.h <<_ACEOF
10405  #define MEM_TOP $mem_top  #define MEM_TOP $mem_top
10406  EOF  _ACEOF
10407    
10408        cat >> confdefs.h <<EOF        cat >>confdefs.h <<_ACEOF
10409  #define MEM_RANGE $mem_range  #define MEM_RANGE $mem_range
10410  EOF  _ACEOF
10411    
10412     fi     fi
10413  fi  fi
10414    
10415  if test "$enable_immfix" = "yes" ; then  if test "$enable_immfix" = "yes" ; then
10416    if test "$mem_top" != "0" ; then    if test "$mem_top" != "0" ; then
10417       if test "$mem_range" != "0" ; then       if test "$mem_range" != "0" ; then
10418          cat >> confdefs.h <<EOF          cat >>confdefs.h <<_ACEOF
10419  #define IM_FIX_BASE $mem_top  #define IM_FIX_BASE $mem_top
10420  EOF  _ACEOF
10421    
10422          cat >> confdefs.h <<EOF          cat >>confdefs.h <<_ACEOF
10423  #define IM_FIX_LIM $mem_range  #define IM_FIX_LIM $mem_range
10424  EOF  _ACEOF
10425    
10426       fi       fi
10427    fi    fi
10428  fi  fi
10429    
10430    
10431  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"sizeof long long int\"" >&5
10432  echo "configure:5073: checking "sizeof long long int"" >&5  echo $ECHO_N "checking \"sizeof long long int\"... $ECHO_C" >&6
10433  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
10434    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
10435    echo "${ECHO_T}no" >&6
10436    
10437  else  else
10438    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10439  #line 5079 "configure"  /* confdefs.h.  */
10440  #include "confdefs.h"  _ACEOF
10441    cat confdefs.h >>conftest.$ac_ext
10442    cat >>conftest.$ac_ext <<_ACEOF
10443    /* end confdefs.h.  */
10444  #include <stdio.h>  #include <stdio.h>
10445  main()  main()
10446  {  {
# Line 5084  main() Line 10448  main()
10448    return 1;    return 1;
10449  }  }
10450    
10451  EOF  _ACEOF
10452  if { (eval echo configure:5089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
10453  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
10455      ac_status=$?
10456      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10458      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459      (eval $ac_try) 2>&5
10460      ac_status=$?
10461      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462      (exit $ac_status); }; }; then
10463      cat >>confdefs.h <<\_ACEOF
10464  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
10465  EOF  _ACEOF
10466    
10467  echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: yes" >&5
10468    echo "${ECHO_T}yes" >&6
10469  else  else
10470    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
10471    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
10472    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
10473    echo "$ac_t""no" 1>&6  
10474    ( exit $ac_status )
10475    echo "$as_me:$LINENO: result: no" >&5
10476    echo "${ECHO_T}no" >&6
10477  fi  fi
10478  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10479  fi  fi
10480    
10481    
10482    
   
10483  # readline  # readline
10484  # Check whether --enable-readline or --disable-readline was given.  # Check whether --enable-readline or --disable-readline was given.
10485  if test "${enable_readline+set}" = set; then  if test "${enable_readline+set}" = set; then
10486    enableval="$enable_readline"    enableval="$enable_readline"
10487    :  
10488  else  else
10489    enable_readline="yes"    enable_readline="yes"
10490  fi  fi;
   
10491    
10492  if test "$enable_static" = "yes" ; then  if test "$enable_static" = "yes" ; then
10493     echo disabling readline when linking statically     echo disabling readline when linking statically
# Line 5127  fi Line 10502  fi
10502  # Check whether --enable-pargcl or --disable-pargcl was given.  # Check whether --enable-pargcl or --disable-pargcl was given.
10503  if test "${enable_pargcl+set}" = set; then  if test "${enable_pargcl+set}" = set; then
10504    enableval="$enable_pargcl"    enableval="$enable_pargcl"
10505    :  
10506  else  else
10507    enable_pargcl="no"    enable_pargcl="no"
10508  fi  fi;
10509    
10510  # Check whether --with-mpicc or --without-mpicc was given.  # Check whether --with-mpicc or --without-mpicc was given.
10511  if test "${with_mpicc+set}" = set; then  if test "${with_mpicc+set}" = set; then
10512    withval="$with_mpicc"    withval="$with_mpicc"
10513    :  
10514  else  else
10515    with_mpicc=no    with_mpicc=no
10516  fi  fi;
   
10517    
10518  if test "$enable_pargcl" != "no" ; then                  if test "$enable_pargcl" != "no" ; then
10519    
10520           echo $ac_n "checking enable_pargcl=yes, doing configure in pargcl directory""... $ac_c" 1>&6           echo "$as_me:$LINENO: checking enable_pargcl=yes, doing configure in pargcl directory" >&5
10521  echo "configure:5148: checking enable_pargcl=yes, doing configure in pargcl directory" >&5  echo $ECHO_N "checking enable_pargcl=yes, doing configure in pargcl directory... $ECHO_C" >&6
10522           if test -d pargcl; then           if test -d pargcl; then
10523             PARGCLDIR=pargcl             PARGCLDIR=pargcl
10524           fi           fi
# Line 5156  echo "configure:5148: checking enable_pa Line 10530  echo "configure:5148: checking enable_pa
10530           echo "#"           echo "#"
10531           echo "#"           echo "#"
10532    
10533           PARGCL_GCLDIR=${prefix}           PARGCL_GCLDIR=`pwd`
10534           ( cd $PARGCLDIR && ./configure --with-gcl=$PARGCL_GCLDIR/bin/gcl \           ( cd $PARGCLDIR && ./configure --with-gcl=$PARGCL_GCLDIR/bin/gcl \
10535                         --with-gcl-dir=$PARGCL_GCLDIR --with-mpicc=$with_mpicc )                  --with-gcl-build-dir=$PARGCL_GCLDIR --with-mpicc=$with_mpicc )
10536          #MY_SUBDIRS="$MY_SUBDIRS $PARGCLDIR"          #MY_SUBDIRS="$MY_SUBDIRS $PARGCLDIR"
10537    
10538           echo "#"           echo "#"
10539           echo "#"           echo "#"
# Line 5167  echo "configure:5148: checking enable_pa Line 10541  echo "configure:5148: checking enable_pa
10541           echo "# Subconfigure of ParGCL done"           echo "# Subconfigure of ParGCL done"
10542           echo "# ------------------------"           echo "# ------------------------"
10543           echo "#"           echo "#"
10544            
10545    
10546  fi  fi
10547    
# Line 5175  fi Line 10549  fi
10549  # Check whether --enable-ansi or --disable-ansi was given.  # Check whether --enable-ansi or --disable-ansi was given.
10550  if test "${enable_ansi+set}" = set; then  if test "${enable_ansi+set}" = set; then
10551    enableval="$enable_ansi"    enableval="$enable_ansi"
10552    :  
10553  else  else
10554    enable_ansi="no"    enable_ansi="no"
10555  fi  fi;
   
10556    
10557  if test "$enable_ansi" = "yes" ; then  if test "$enable_ansi" = "yes" ; then
10558          SYSTEM=ansi_gcl          SYSTEM=ansi_gcl
10559          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
10560  #define ANSI_COMMON_LISP 1  #define ANSI_COMMON_LISP 1
10561  EOF  _ACEOF
10562    
10563          CLSTANDARD=ANSI          CLSTANDARD=ANSI
10564  else  else
# Line 5199  FLISP="saved_$SYSTEM" Line 10572  FLISP="saved_$SYSTEM"
10572    
10573    
10574  # Check if Posix compliant getcwd exists, if not we'll use getwd.  # Check if Posix compliant getcwd exists, if not we'll use getwd.
10575    
10576  for ac_func in getcwd  for ac_func in getcwd
10577  do  do
10578  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10579  echo "configure:5206: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
10580  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10581    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
10582  else    echo $ECHO_N "(cached) $ECHO_C" >&6
10583    cat > conftest.$ac_ext <<EOF  else
10584  #line 5211 "configure"    cat >conftest.$ac_ext <<_ACEOF
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    /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10591       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10592    #define $ac_func innocuous_$ac_func
10593    
10594  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10595      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.
10596  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10597  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char $ac_func();  
10598    
10599  int main() {  #ifdef __STDC__
10600    # include <limits.h>
10601    #else
10602    # include <assert.h>
10603    #endif
10604    
10605    #undef $ac_func
10606    
10607    /* Override any gcc2 internal prototype to avoid an error.  */
10608    #ifdef __cplusplus
10609    extern "C"
10610    {
10611    #endif
10612    /* We use char because int might match the return type of a gcc2
10613       builtin and then its argument prototype would still apply.  */
10614    char $ac_func ();
10615  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
10616      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
10617      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
10618  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10619  choke me  choke me
10620  #else  #else
10621  $ac_func();  char (*f) () = $ac_func;
10622    #endif
10623    #ifdef __cplusplus
10624    }
10625  #endif  #endif
10626    
10627  ; return 0; }  int
10628  EOF  main ()
10629  if { (eval echo configure:5234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
10630    rm -rf conftest*  return f != $ac_func;
10631    eval "ac_cv_func_$ac_func=yes"    ;
10632  else    return 0;
10633    echo "configure: failed program was:" >&5  }
10634    cat conftest.$ac_ext >&5  _ACEOF
10635    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
10636    eval "ac_cv_func_$ac_func=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637  fi    (eval $ac_link) 2>conftest.er1
10638  rm -f conftest*    ac_status=$?
10639  fi    grep -v '^ *+' conftest.er1 >conftest.err
10640      rm -f conftest.er1
10641      cat conftest.err >&5
10642      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643      (exit $ac_status); } &&
10644             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10645      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646      (eval $ac_try) 2>&5
10647      ac_status=$?
10648      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649      (exit $ac_status); }; } &&
10650             { ac_try='test -s conftest$ac_exeext'
10651      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652      (eval $ac_try) 2>&5
10653      ac_status=$?
10654      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655      (exit $ac_status); }; }; then
10656      eval "$as_ac_var=yes"
10657    else
10658      echo "$as_me: failed program was:" >&5
10659    sed 's/^/| /' conftest.$ac_ext >&5
10660    
10661    eval "$as_ac_var=no"
10662    fi
10663    rm -f conftest.err conftest.$ac_objext \
10664          conftest$ac_exeext conftest.$ac_ext
10665    fi
10666    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10667    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10668    if test `eval echo '${'$as_ac_var'}'` = yes; then
10669      cat >>confdefs.h <<_ACEOF
10670    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10671    _ACEOF
10672    
 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  
10673  fi  fi
10674  done  done
10675    
10676    
10677  for ac_func in getwd  for ac_func in getwd
10678  do  do
10679  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10680  echo "configure:5261: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
10681  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10682    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
10683  else    echo $ECHO_N "(cached) $ECHO_C" >&6
10684    cat > conftest.$ac_ext <<EOF  else
10685  #line 5266 "configure"    cat >conftest.$ac_ext <<_ACEOF
10686  #include "confdefs.h"  /* confdefs.h.  */
10687    _ACEOF
10688    cat confdefs.h >>conftest.$ac_ext
10689    cat >>conftest.$ac_ext <<_ACEOF
10690    /* end confdefs.h.  */
10691    /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10692       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10693    #define $ac_func innocuous_$ac_func
10694    
10695  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10696      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.
10697  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10698  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char $ac_func();  
10699    
10700  int main() {  #ifdef __STDC__
10701    # include <limits.h>
10702    #else
10703    # include <assert.h>
10704    #endif
10705    
10706    #undef $ac_func
10707    
10708    /* Override any gcc2 internal prototype to avoid an error.  */
10709    #ifdef __cplusplus
10710    extern "C"
10711    {
10712    #endif
10713    /* We use char because int might match the return type of a gcc2
10714       builtin and then its argument prototype would still apply.  */
10715    char $ac_func ();
10716  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
10717      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
10718      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
10719  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10720  choke me  choke me
10721  #else  #else
10722  $ac_func();  char (*f) () = $ac_func;
10723    #endif
10724    #ifdef __cplusplus
10725    }
10726  #endif  #endif
10727    
10728  ; return 0; }  int
10729  EOF  main ()
10730  if { (eval echo configure:5289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
10731    rm -rf conftest*  return f != $ac_func;
10732    eval "ac_cv_func_$ac_func=yes"    ;
10733  else    return 0;
10734    echo "configure: failed program was:" >&5  }
10735    cat conftest.$ac_ext >&5  _ACEOF
10736    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
10737    eval "ac_cv_func_$ac_func=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10738  fi    (eval $ac_link) 2>conftest.er1
10739  rm -f conftest*    ac_status=$?
10740  fi    grep -v '^ *+' conftest.er1 >conftest.err
10741      rm -f conftest.er1
10742      cat conftest.err >&5
10743      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744      (exit $ac_status); } &&
10745             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10746      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747      (eval $ac_try) 2>&5
10748      ac_status=$?
10749      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750      (exit $ac_status); }; } &&
10751             { ac_try='test -s conftest$ac_exeext'
10752      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753      (eval $ac_try) 2>&5
10754      ac_status=$?
10755      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756      (exit $ac_status); }; }; then
10757      eval "$as_ac_var=yes"
10758    else
10759      echo "$as_me: failed program was:" >&5
10760    sed 's/^/| /' conftest.$ac_ext >&5
10761    
10762    eval "$as_ac_var=no"
10763    fi
10764    rm -f conftest.err conftest.$ac_objext \
10765          conftest$ac_exeext conftest.$ac_ext
10766    fi
10767    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10768    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10769    if test `eval echo '${'$as_ac_var'}'` = yes; then
10770      cat >>confdefs.h <<_ACEOF
10771    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10772    _ACEOF
10773    
 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  
10774  fi  fi
10775  done  done
10776    
10777  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for uname" >&5
10778  echo "configure:5314: checking for uname" >&5  echo $ECHO_N "checking for uname... $ECHO_C" >&6
10779  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if test "${ac_cv_func_uname+set}" = set; then
10780    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10781  else  else
10782    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10783  #line 5319 "configure"  /* confdefs.h.  */
10784  #include "confdefs.h"  _ACEOF
10785    cat confdefs.h >>conftest.$ac_ext
10786    cat >>conftest.$ac_ext <<_ACEOF
10787    /* end confdefs.h.  */
10788    /* Define uname to an innocuous variant, in case <limits.h> declares uname.
10789       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10790    #define uname innocuous_uname
10791    
10792  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10793      which can conflict with char uname(); below.  */      which can conflict with char uname (); below.
10794  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10795  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char uname();  
10796    
10797  int main() {  #ifdef __STDC__
10798    # include <limits.h>
10799    #else
10800    # include <assert.h>
10801    #endif
10802    
10803    #undef uname
10804    
10805    /* Override any gcc2 internal prototype to avoid an error.  */
10806    #ifdef __cplusplus
10807    extern "C"
10808    {
10809    #endif
10810    /* We use char because int might match the return type of a gcc2
10811       builtin and then its argument prototype would still apply.  */
10812    char uname ();
10813  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
10814      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
10815      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
10816  #if defined (__stub_uname) || defined (__stub___uname)  #if defined (__stub_uname) || defined (__stub___uname)
10817  choke me  choke me
10818  #else  #else
10819  uname();  char (*f) () = uname;
10820    #endif
10821    #ifdef __cplusplus
10822    }
10823  #endif  #endif
10824    
10825  ; return 0; }  int
10826  EOF  main ()
10827  if { (eval echo configure:5342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
10828    rm -rf conftest*  return f != uname;
10829    eval "ac_cv_func_uname=yes"    ;
10830  else    return 0;
10831    echo "configure: failed program was:" >&5  }
10832    cat conftest.$ac_ext >&5  _ACEOF
10833    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
10834    eval "ac_cv_func_uname=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10835  fi    (eval $ac_link) 2>conftest.er1
10836  rm -f conftest*    ac_status=$?
10837  fi    grep -v '^ *+' conftest.er1 >conftest.err
10838      rm -f conftest.er1
10839  if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then    cat conftest.err >&5
10840    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841      (exit $ac_status); } &&
10842             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10843      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844      (eval $ac_try) 2>&5
10845      ac_status=$?
10846      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847      (exit $ac_status); }; } &&
10848             { ac_try='test -s conftest$ac_exeext'
10849      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10850      (eval $ac_try) 2>&5
10851      ac_status=$?
10852      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853      (exit $ac_status); }; }; then
10854      ac_cv_func_uname=yes
10855    else
10856      echo "$as_me: failed program was:" >&5
10857    sed 's/^/| /' conftest.$ac_ext >&5
10858    
10859    ac_cv_func_uname=no
10860    fi
10861    rm -f conftest.err conftest.$ac_objext \
10862          conftest$ac_exeext conftest.$ac_ext
10863    fi
10864    echo "$as_me:$LINENO: result: $ac_cv_func_uname" >&5
10865    echo "${ECHO_T}$ac_cv_func_uname" >&6
10866    if test $ac_cv_func_uname = yes; then
10867    :    :
10868  else  else
10869    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
10870  #define NO_UNAME 1  #define NO_UNAME 1
10871  EOF  _ACEOF
10872    
10873  fi  fi
10874    
10875  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday" >&5
10876  echo "configure:5366: checking for gettimeofday" >&5  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
10877  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_gettimeofday+set}" = set; then
10878    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10879  else  else
10880    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
10881  #line 5371 "configure"  /* confdefs.h.  */
10882  #include "confdefs.h"  _ACEOF
10883    cat confdefs.h >>conftest.$ac_ext
10884    cat >>conftest.$ac_ext <<_ACEOF
10885    /* end confdefs.h.  */
10886    /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
10887       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10888    #define gettimeofday innocuous_gettimeofday
10889    
10890  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10891      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.
10892  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10893  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char gettimeofday();  
10894    
10895  int main() {  #ifdef __STDC__
10896    # include <limits.h>
10897    #else
10898    # include <assert.h>
10899    #endif
10900    
10901    #undef gettimeofday
10902    
10903    /* Override any gcc2 internal prototype to avoid an error.  */
10904    #ifdef __cplusplus
10905    extern "C"
10906    {
10907    #endif
10908    /* We use char because int might match the return type of a gcc2
10909       builtin and then its argument prototype would still apply.  */
10910    char gettimeofday ();
10911  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
10912      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
10913      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
10914  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
10915  choke me  choke me
10916  #else  #else
10917  gettimeofday();  char (*f) () = gettimeofday;
10918    #endif
10919    #ifdef __cplusplus
10920    }
10921  #endif  #endif
10922    
10923  ; return 0; }  int
10924  EOF  main ()
10925  if { (eval echo configure:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
10926    rm -rf conftest*  return f != gettimeofday;
10927    eval "ac_cv_func_gettimeofday=yes"    ;
10928  else    return 0;
10929    echo "configure: failed program was:" >&5  }
10930    cat conftest.$ac_ext >&5  _ACEOF
10931    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
10932    eval "ac_cv_func_gettimeofday=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10933  fi    (eval $ac_link) 2>conftest.er1
10934  rm -f conftest*    ac_status=$?
10935  fi    grep -v '^ *+' conftest.er1 >conftest.err
10936      rm -f conftest.er1
10937  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    cat conftest.err >&5
10938    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939      (exit $ac_status); } &&
10940             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10941      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942      (eval $ac_try) 2>&5
10943      ac_status=$?
10944      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945      (exit $ac_status); }; } &&
10946             { ac_try='test -s conftest$ac_exeext'
10947      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948      (eval $ac_try) 2>&5
10949      ac_status=$?
10950      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951      (exit $ac_status); }; }; then
10952      ac_cv_func_gettimeofday=yes
10953    else
10954      echo "$as_me: failed program was:" >&5
10955    sed 's/^/| /' conftest.$ac_ext >&5
10956    
10957    ac_cv_func_gettimeofday=no
10958    fi
10959    rm -f conftest.err conftest.$ac_objext \
10960          conftest$ac_exeext conftest.$ac_ext
10961    fi
10962    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
10963    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
10964    if test $ac_cv_func_gettimeofday = yes; then
10965    :    :
10966  else  else
10967    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
10968  #define NO_GETTOD 1  #define NO_GETTOD 1
10969  EOF  _ACEOF
10970    
10971  fi  fi
10972    
10973    
10974    
10975  for ac_hdr in sys/ioctl.h  
10976    for ac_header in sys/ioctl.h
10977  do  do
10978  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10979  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
10980  echo "configure:5423: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
10981  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10982    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
10983  else    echo $ECHO_N "(cached) $ECHO_C" >&6
10984    cat > conftest.$ac_ext <<EOF  fi
10985  #line 5428 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10986  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10987  #include <$ac_hdr>  else
10988  EOF    # Is the header compilable?
10989  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
10990  { (eval echo configure:5433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10991  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
10992  if test -z "$ac_err"; then  /* confdefs.h.  */
10993    rm -rf conftest*  _ACEOF
10994    eval "ac_cv_header_$ac_safe=yes"  cat confdefs.h >>conftest.$ac_ext
10995  else  cat >>conftest.$ac_ext <<_ACEOF
10996    echo "$ac_err" >&5  /* end confdefs.h.  */
10997    echo "configure: failed program was:" >&5  $ac_includes_default
10998    cat conftest.$ac_ext >&5  #include <$ac_header>
10999    rm -rf conftest*  _ACEOF
11000    eval "ac_cv_header_$ac_safe=no"  rm -f conftest.$ac_objext
11001  fi  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11002  rm -f conftest*    (eval $ac_compile) 2>conftest.er1
11003      ac_status=$?
11004      grep -v '^ *+' conftest.er1 >conftest.err
11005      rm -f conftest.er1
11006      cat conftest.err >&5
11007      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008      (exit $ac_status); } &&
11009             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11010      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011      (eval $ac_try) 2>&5
11012      ac_status=$?
11013      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014      (exit $ac_status); }; } &&
11015             { ac_try='test -s conftest.$ac_objext'
11016      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017      (eval $ac_try) 2>&5
11018      ac_status=$?
11019      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020      (exit $ac_status); }; }; then
11021      ac_header_compiler=yes
11022    else
11023      echo "$as_me: failed program was:" >&5
11024    sed 's/^/| /' conftest.$ac_ext >&5
11025    
11026    ac_header_compiler=no
11027    fi
11028    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11029    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11030    echo "${ECHO_T}$ac_header_compiler" >&6
11031    
11032    # Is the header present?
11033    echo "$as_me:$LINENO: checking $ac_header presence" >&5
11034    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11035    cat >conftest.$ac_ext <<_ACEOF
11036    /* confdefs.h.  */
11037    _ACEOF
11038    cat confdefs.h >>conftest.$ac_ext
11039    cat >>conftest.$ac_ext <<_ACEOF
11040    /* end confdefs.h.  */
11041    #include <$ac_header>
11042    _ACEOF
11043    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11044      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11045      ac_status=$?
11046      grep -v '^ *+' conftest.er1 >conftest.err
11047      rm -f conftest.er1
11048      cat conftest.err >&5
11049      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050      (exit $ac_status); } >/dev/null; then
11051      if test -s conftest.err; then
11052        ac_cpp_err=$ac_c_preproc_warn_flag
11053        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11054      else
11055        ac_cpp_err=
11056      fi
11057    else
11058      ac_cpp_err=yes
11059  fi  fi
11060  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
11061    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
11062      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
11063    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
11064  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
11065  EOF  
11066      ac_header_preproc=no
11067    fi
11068    rm -f conftest.err conftest.$ac_ext
11069    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11070    echo "${ECHO_T}$ac_header_preproc" >&6
11071    
11072    # So?  What about this header?
11073    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11074      yes:no: )
11075        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11076    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11077        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11078    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11079        ac_header_preproc=yes
11080        ;;
11081      no:yes:* )
11082        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11083    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11084        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11085    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11086        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11087    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11088        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11089    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11090        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11091    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11092        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11093    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11094        (
11095          cat <<\_ASBOX
11096    ## ------------------------------------------ ##
11097    ## Report this to the AC_PACKAGE_NAME lists.  ##
11098    ## ------------------------------------------ ##
11099    _ASBOX
11100        ) |
11101          sed "s/^/$as_me: WARNING:     /" >&2
11102        ;;
11103    esac
11104    echo "$as_me:$LINENO: checking for $ac_header" >&5
11105    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11106    if eval "test \"\${$as_ac_Header+set}\" = set"; then
11107      echo $ECHO_N "(cached) $ECHO_C" >&6
11108  else  else
11109    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=\$ac_header_preproc"
11110  fi  fi
11111    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11112    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11113    
11114    fi
11115    if test `eval echo '${'$as_ac_Header'}'` = yes; then
11116      cat >>confdefs.h <<_ACEOF
11117    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11118    _ACEOF
11119    
11120    fi
11121    
11122  done  done
11123    
11124    
11125  # OpenBSD has elf_abi.h instead of elf.h  # OpenBSD has elf_abi.h instead of elf.h
11126  for ac_hdr in elf.h elf_abi.h  
11127    
11128    for ac_header in elf.h elf_abi.h
11129  do  do
11130  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11131  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
11132  echo "configure:5465: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
11133  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11134    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
11135  else    echo $ECHO_N "(cached) $ECHO_C" >&6
11136    cat > conftest.$ac_ext <<EOF  fi
11137  #line 5470 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11138  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11139  #include <$ac_hdr>  else
11140  EOF    # Is the header compilable?
11141  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
11142  { (eval echo configure:5475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11143  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
11144  if test -z "$ac_err"; then  /* confdefs.h.  */
11145    rm -rf conftest*  _ACEOF
11146    eval "ac_cv_header_$ac_safe=yes"  cat confdefs.h >>conftest.$ac_ext
11147  else  cat >>conftest.$ac_ext <<_ACEOF
11148    echo "$ac_err" >&5  /* end confdefs.h.  */
11149    echo "configure: failed program was:" >&5  $ac_includes_default
11150    cat conftest.$ac_ext >&5  #include <$ac_header>
11151    rm -rf conftest*  _ACEOF
11152    eval "ac_cv_header_$ac_safe=no"  rm -f conftest.$ac_objext
11153  fi  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11154  rm -f conftest*    (eval $ac_compile) 2>conftest.er1
11155      ac_status=$?
11156      grep -v '^ *+' conftest.er1 >conftest.err
11157      rm -f conftest.er1
11158      cat conftest.err >&5
11159      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160      (exit $ac_status); } &&
11161             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11162      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163      (eval $ac_try) 2>&5
11164      ac_status=$?
11165      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166      (exit $ac_status); }; } &&
11167             { ac_try='test -s conftest.$ac_objext'
11168      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169      (eval $ac_try) 2>&5
11170      ac_status=$?
11171      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172      (exit $ac_status); }; }; then
11173      ac_header_compiler=yes
11174    else
11175      echo "$as_me: failed program was:" >&5
11176    sed 's/^/| /' conftest.$ac_ext >&5
11177    
11178    ac_header_compiler=no
11179    fi
11180    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11181    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11182    echo "${ECHO_T}$ac_header_compiler" >&6
11183    
11184    # Is the header present?
11185    echo "$as_me:$LINENO: checking $ac_header presence" >&5
11186    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11187    cat >conftest.$ac_ext <<_ACEOF
11188    /* confdefs.h.  */
11189    _ACEOF
11190    cat confdefs.h >>conftest.$ac_ext
11191    cat >>conftest.$ac_ext <<_ACEOF
11192    /* end confdefs.h.  */
11193    #include <$ac_header>
11194    _ACEOF
11195    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11196      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11197      ac_status=$?
11198      grep -v '^ *+' conftest.er1 >conftest.err
11199      rm -f conftest.er1
11200      cat conftest.err >&5
11201      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202      (exit $ac_status); } >/dev/null; then
11203      if test -s conftest.err; then
11204        ac_cpp_err=$ac_c_preproc_warn_flag
11205        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11206      else
11207        ac_cpp_err=
11208      fi
11209    else
11210      ac_cpp_err=yes
11211  fi  fi
11212  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
11213    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  
   
11214  else  else
11215    echo "$ac_t""no" 1>&6    echo "$as_me: failed program was:" >&5
11216    sed 's/^/| /' conftest.$ac_ext >&5
11217    
11218      ac_header_preproc=no
11219    fi
11220    rm -f conftest.err conftest.$ac_ext
11221    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11222    echo "${ECHO_T}$ac_header_preproc" >&6
11223    
11224    # So?  What about this header?
11225    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11226      yes:no: )
11227        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11228    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11229        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11230    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11231        ac_header_preproc=yes
11232        ;;
11233      no:yes:* )
11234        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11235    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11236        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11237    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11238        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11239    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11240        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11241    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11242        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11243    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11244        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11245    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11246        (
11247          cat <<\_ASBOX
11248    ## ------------------------------------------ ##
11249    ## Report this to the AC_PACKAGE_NAME lists.  ##
11250    ## ------------------------------------------ ##
11251    _ASBOX
11252        ) |
11253          sed "s/^/$as_me: WARNING:     /" >&2
11254        ;;
11255    esac
11256    echo "$as_me:$LINENO: checking for $ac_header" >&5
11257    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11258    if eval "test \"\${$as_ac_Header+set}\" = set"; then
11259      echo $ECHO_N "(cached) $ECHO_C" >&6
11260    else
11261      eval "$as_ac_Header=\$ac_header_preproc"
11262    fi
11263    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11264    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11265    
11266    fi
11267    if test `eval echo '${'$as_ac_Header'}'` = yes; then
11268      cat >>confdefs.h <<_ACEOF
11269    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11270    _ACEOF
11271    
11272  fi  fi
11273    
11274  done  done
11275    
11276    
# Line 5510  done Line 11286  done
11286  #          declare it.  #          declare it.
11287  #--------------------------------------------------------------------  #--------------------------------------------------------------------
11288    
11289  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for BSDgettimeofday" >&5
11290  echo "configure:5515: checking for BSDgettimeofday" >&5  echo $ECHO_N "checking for BSDgettimeofday... $ECHO_C" >&6
11291  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_BSDgettimeofday+set}" = set; then
11292    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
11293  else  else
11294    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
11295  #line 5520 "configure"  /* confdefs.h.  */
11296  #include "confdefs.h"  _ACEOF
11297    cat confdefs.h >>conftest.$ac_ext
11298    cat >>conftest.$ac_ext <<_ACEOF
11299    /* end confdefs.h.  */
11300    /* Define BSDgettimeofday to an innocuous variant, in case <limits.h> declares BSDgettimeofday.
11301       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11302    #define BSDgettimeofday innocuous_BSDgettimeofday
11303    
11304  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
11305      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday (); below.
11306  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11307  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char BSDgettimeofday();  
11308    
11309  int main() {  #ifdef __STDC__
11310    # include <limits.h>
11311    #else
11312    # include <assert.h>
11313    #endif
11314    
11315    #undef BSDgettimeofday
11316    
11317    /* Override any gcc2 internal prototype to avoid an error.  */
11318    #ifdef __cplusplus
11319    extern "C"
11320    {
11321    #endif
11322    /* We use char because int might match the return type of a gcc2
11323       builtin and then its argument prototype would still apply.  */
11324    char BSDgettimeofday ();
11325  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
11326      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
11327      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
11328  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
11329  choke me  choke me
11330  #else  #else
11331  BSDgettimeofday();  char (*f) () = BSDgettimeofday;
11332    #endif
11333    #ifdef __cplusplus
11334    }
11335  #endif  #endif
11336    
11337  ; return 0; }  int
11338  EOF  main ()
11339  if { (eval echo configure:5543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
11340    rm -rf conftest*  return f != BSDgettimeofday;
11341    eval "ac_cv_func_BSDgettimeofday=yes"    ;
11342  else    return 0;
11343    echo "configure: failed program was:" >&5  }
11344    cat conftest.$ac_ext >&5  _ACEOF
11345    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
11346    eval "ac_cv_func_BSDgettimeofday=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11347  fi    (eval $ac_link) 2>conftest.er1
11348  rm -f conftest*    ac_status=$?
11349  fi    grep -v '^ *+' conftest.er1 >conftest.err
11350      rm -f conftest.er1
11351  if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then    cat conftest.err >&5
11352    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353    cat >> confdefs.h <<\EOF    (exit $ac_status); } &&
11354             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11355      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356      (eval $ac_try) 2>&5
11357      ac_status=$?
11358      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359      (exit $ac_status); }; } &&
11360             { ac_try='test -s conftest$ac_exeext'
11361      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362      (eval $ac_try) 2>&5
11363      ac_status=$?
11364      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365      (exit $ac_status); }; }; then
11366      ac_cv_func_BSDgettimeofday=yes
11367    else
11368      echo "$as_me: failed program was:" >&5
11369    sed 's/^/| /' conftest.$ac_ext >&5
11370    
11371    ac_cv_func_BSDgettimeofday=no
11372    fi
11373    rm -f conftest.err conftest.$ac_objext \
11374          conftest$ac_exeext conftest.$ac_ext
11375    fi
11376    echo "$as_me:$LINENO: result: $ac_cv_func_BSDgettimeofday" >&5
11377    echo "${ECHO_T}$ac_cv_func_BSDgettimeofday" >&6
11378    if test $ac_cv_func_BSDgettimeofday = yes; then
11379      cat >>confdefs.h <<\_ACEOF
11380  #define HAVE_BSDGETTIMEOFDAY 1  #define HAVE_BSDGETTIMEOFDAY 1
11381  EOF  _ACEOF
11382    
11383  else  else
11384    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for gettimeofday" >&5
11385  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
11386  echo "configure:5564: checking for gettimeofday" >&5  if test "${ac_cv_func_gettimeofday+set}" = set; then
11387  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
11388    echo $ac_n "(cached) $ac_c" 1>&6  else
11389  else    cat >conftest.$ac_ext <<_ACEOF
11390    cat > conftest.$ac_ext <<EOF  /* confdefs.h.  */
11391  #line 5569 "configure"  _ACEOF
11392  #include "confdefs.h"  cat confdefs.h >>conftest.$ac_ext
11393    cat >>conftest.$ac_ext <<_ACEOF
11394    /* end confdefs.h.  */
11395    /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
11396       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11397    #define gettimeofday innocuous_gettimeofday
11398    
11399  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
11400      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.
11401  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11402  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char gettimeofday();  
11403    
11404  int main() {  #ifdef __STDC__
11405    # include <limits.h>
11406    #else
11407    # include <assert.h>
11408    #endif
11409    
11410    #undef gettimeofday
11411    
11412    /* Override any gcc2 internal prototype to avoid an error.  */
11413    #ifdef __cplusplus
11414    extern "C"
11415    {
11416    #endif
11417    /* We use char because int might match the return type of a gcc2
11418       builtin and then its argument prototype would still apply.  */
11419    char gettimeofday ();
11420  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
11421      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
11422      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
11423  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
11424  choke me  choke me
11425  #else  #else
11426  gettimeofday();  char (*f) () = gettimeofday;
11427    #endif
11428    #ifdef __cplusplus
11429    }
11430  #endif  #endif
11431    
11432  ; return 0; }  int
11433  EOF  main ()
11434  if { (eval echo configure:5592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
11435    rm -rf conftest*  return f != gettimeofday;
11436    eval "ac_cv_func_gettimeofday=yes"    ;
11437  else    return 0;
11438    echo "configure: failed program was:" >&5  }
11439    cat conftest.$ac_ext >&5  _ACEOF
11440    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
11441    eval "ac_cv_func_gettimeofday=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11442  fi    (eval $ac_link) 2>conftest.er1
11443  rm -f conftest*    ac_status=$?
11444  fi    grep -v '^ *+' conftest.er1 >conftest.err
11445      rm -f conftest.er1
11446  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    cat conftest.err >&5
11447    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448      (exit $ac_status); } &&
11449             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11450      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451      (eval $ac_try) 2>&5
11452      ac_status=$?
11453      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454      (exit $ac_status); }; } &&
11455             { ac_try='test -s conftest$ac_exeext'
11456      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457      (eval $ac_try) 2>&5
11458      ac_status=$?
11459      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460      (exit $ac_status); }; }; then
11461      ac_cv_func_gettimeofday=yes
11462    else
11463      echo "$as_me: failed program was:" >&5
11464    sed 's/^/| /' conftest.$ac_ext >&5
11465    
11466    ac_cv_func_gettimeofday=no
11467    fi
11468    rm -f conftest.err conftest.$ac_objext \
11469          conftest$ac_exeext conftest.$ac_ext
11470    fi
11471    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
11472    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
11473    if test $ac_cv_func_gettimeofday = yes; then
11474    :    :
11475  else  else
11476    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
11477  #define NO_GETTOD 1  #define NO_GETTOD 1
11478  EOF  _ACEOF
11479    
11480  fi  fi
11481    
11482  fi  fi
11483    
11484    
11485  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday declaration" >&5
11486  echo "configure:5619: checking for gettimeofday declaration" >&5  echo $ECHO_N "checking for gettimeofday declaration... $ECHO_C" >&6
11487    
11488  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
11489  #line 5622 "configure"  /* confdefs.h.  */
11490  #include "confdefs.h"  _ACEOF
11491    cat confdefs.h >>conftest.$ac_ext
11492    cat >>conftest.$ac_ext <<_ACEOF
11493    /* end confdefs.h.  */
11494  #include <sys/time.h>  #include <sys/time.h>
11495  EOF  
11496    _ACEOF
11497  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11498    egrep "gettimeofday" >/dev/null 2>&1; then    $EGREP "gettimeofday" >/dev/null 2>&1; then
11499    rm -rf conftest*    echo "$as_me:$LINENO: result: present" >&5
11500    echo "$ac_t""present" 1>&6  echo "${ECHO_T}present" >&6
11501  else  else
11502    rm -rf conftest*    echo "$as_me:$LINENO: result: missing" >&5
11503    echo "$ac_t""missing" 1>&6  echo "${ECHO_T}missing" >&6
11504                   cat >> confdefs.h <<\EOF                   cat >>confdefs.h <<\_ACEOF
11505  #define GETTOD_NOT_DECLARED 1  #define GETTOD_NOT_DECLARED 1
11506  EOF  _ACEOF
11507    
11508  fi  fi
11509  rm -f conftest*  rm -f conftest*
11510    
11511    
11512    
11513  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sin in -lm" >&5
11514  echo "configure:5643: checking for sin in -lm" >&5  echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
11515  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_m_sin+set}" = set; then
11516  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  
11517  else  else
11518    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
11519  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
11520  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
11521  #line 5651 "configure"  /* confdefs.h.  */
11522  #include "confdefs.h"  _ACEOF
11523    cat confdefs.h >>conftest.$ac_ext
11524    cat >>conftest.$ac_ext <<_ACEOF
11525    /* end confdefs.h.  */
11526    
11527  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
11528    #ifdef __cplusplus
11529    extern "C"
11530    #endif
11531  /* 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
11532      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
11533  char sin();  char sin ();
11534    int
11535  int main() {  main ()
11536  sin()  {
11537  ; return 0; }  sin ();
11538  EOF    ;
11539  if { (eval echo configure:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
11540    rm -rf conftest*  }
11541    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
11542  else  rm -f conftest.$ac_objext conftest$ac_exeext
11543    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11544    cat conftest.$ac_ext >&5    (eval $ac_link) 2>conftest.er1
11545    rm -rf conftest*    ac_status=$?
11546    eval "ac_cv_lib_$ac_lib_var=no"    grep -v '^ *+' conftest.er1 >conftest.err
11547  fi    rm -f conftest.er1
11548  rm -f conftest*    cat conftest.err >&5
11549  LIBS="$ac_save_LIBS"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550      (exit $ac_status); } &&
11551  fi           { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11552  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553    echo "$ac_t""yes" 1>&6    (eval $ac_try) 2>&5
11554      ac_status=$?
11555      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556      (exit $ac_status); }; } &&
11557             { ac_try='test -s conftest$ac_exeext'
11558      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559      (eval $ac_try) 2>&5
11560      ac_status=$?
11561      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562      (exit $ac_status); }; }; then
11563      ac_cv_lib_m_sin=yes
11564    else
11565      echo "$as_me: failed program was:" >&5
11566    sed 's/^/| /' conftest.$ac_ext >&5
11567    
11568    ac_cv_lib_m_sin=no
11569    fi
11570    rm -f conftest.err conftest.$ac_objext \
11571          conftest$ac_exeext conftest.$ac_ext
11572    LIBS=$ac_check_lib_save_LIBS
11573    fi
11574    echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11575    echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
11576    if test $ac_cv_lib_m_sin = yes; then
11577    LIBS="${LIBS} -lm"    LIBS="${LIBS} -lm"
11578  else  else
11579    echo "$ac_t""no" 1>&6    true
 true  
11580  fi  fi
11581    
11582  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lmingwex" >&5
11583  echo "configure:5684: checking for main in -lmingwex" >&5  echo $ECHO_N "checking for main in -lmingwex... $ECHO_C" >&6
11584  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_mingwex_main+set}" = set; then
11585  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  
11586  else  else
11587    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
11588  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
11589  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
11590  #line 5692 "configure"  /* confdefs.h.  */
11591  #include "confdefs.h"  _ACEOF
11592    cat confdefs.h >>conftest.$ac_ext
11593    cat >>conftest.$ac_ext <<_ACEOF
11594    /* end confdefs.h.  */
11595    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:5699: \"$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"  
11596    
11597  fi  int
11598  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
11599    echo "$ac_t""yes" 1>&6  {
11600    main ();
11601      ;
11602      return 0;
11603    }
11604    _ACEOF
11605    rm -f conftest.$ac_objext conftest$ac_exeext
11606    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607      (eval $ac_link) 2>conftest.er1
11608      ac_status=$?
11609      grep -v '^ *+' conftest.er1 >conftest.err
11610      rm -f conftest.er1
11611      cat conftest.err >&5
11612      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613      (exit $ac_status); } &&
11614             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11615      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616      (eval $ac_try) 2>&5
11617      ac_status=$?
11618      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619      (exit $ac_status); }; } &&
11620             { ac_try='test -s conftest$ac_exeext'
11621      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622      (eval $ac_try) 2>&5
11623      ac_status=$?
11624      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625      (exit $ac_status); }; }; then
11626      ac_cv_lib_mingwex_main=yes
11627    else
11628      echo "$as_me: failed program was:" >&5
11629    sed 's/^/| /' conftest.$ac_ext >&5
11630    
11631    ac_cv_lib_mingwex_main=no
11632    fi
11633    rm -f conftest.err conftest.$ac_objext \
11634          conftest$ac_exeext conftest.$ac_ext
11635    LIBS=$ac_check_lib_save_LIBS
11636    fi
11637    echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_main" >&5
11638    echo "${ECHO_T}$ac_cv_lib_mingwex_main" >&6
11639    if test $ac_cv_lib_mingwex_main = yes; then
11640    LIBS="${LIBS} -lmingwex"    LIBS="${LIBS} -lmingwex"
11641  else  else
11642    echo "$ac_t""no" 1>&6    true
 true  
11643  fi  fi
11644    
11645    
11646  EXTRA_LOBJS=  EXTRA_LOBJS=
11647  if test "$try_japi" = "yes" ; then  if test "$try_japi" = "yes" ; then
11648     for ac_hdr in japi.h  
11649    for ac_header in japi.h
11650  do  do
11651  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11652  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
11653  echo "configure:5727: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
11654  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11655    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
11656  else    echo $ECHO_N "(cached) $ECHO_C" >&6
11657    cat > conftest.$ac_ext <<EOF  fi
11658  #line 5732 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11659  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11660  #include <$ac_hdr>  else
11661  EOF    # Is the header compilable?
11662  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
11663  { (eval echo configure:5737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11664  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
11665  if test -z "$ac_err"; then  /* confdefs.h.  */
11666    rm -rf conftest*  _ACEOF
11667    eval "ac_cv_header_$ac_safe=yes"  cat confdefs.h >>conftest.$ac_ext
11668  else  cat >>conftest.$ac_ext <<_ACEOF
11669    echo "$ac_err" >&5  /* end confdefs.h.  */
11670    echo "configure: failed program was:" >&5  $ac_includes_default
11671    cat conftest.$ac_ext >&5  #include <$ac_header>
11672    rm -rf conftest*  _ACEOF
11673    eval "ac_cv_header_$ac_safe=no"  rm -f conftest.$ac_objext
11674  fi  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11675  rm -f conftest*    (eval $ac_compile) 2>conftest.er1
11676      ac_status=$?
11677      grep -v '^ *+' conftest.er1 >conftest.err
11678      rm -f conftest.er1
11679      cat conftest.err >&5
11680      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681      (exit $ac_status); } &&
11682             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11683      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684      (eval $ac_try) 2>&5
11685      ac_status=$?
11686      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687      (exit $ac_status); }; } &&
11688             { ac_try='test -s conftest.$ac_objext'
11689      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690      (eval $ac_try) 2>&5
11691      ac_status=$?
11692      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693      (exit $ac_status); }; }; then
11694      ac_header_compiler=yes
11695    else
11696      echo "$as_me: failed program was:" >&5
11697    sed 's/^/| /' conftest.$ac_ext >&5
11698    
11699    ac_header_compiler=no
11700    fi
11701    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11702    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11703    echo "${ECHO_T}$ac_header_compiler" >&6
11704    
11705    # Is the header present?
11706    echo "$as_me:$LINENO: checking $ac_header presence" >&5
11707    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11708    cat >conftest.$ac_ext <<_ACEOF
11709    /* confdefs.h.  */
11710    _ACEOF
11711    cat confdefs.h >>conftest.$ac_ext
11712    cat >>conftest.$ac_ext <<_ACEOF
11713    /* end confdefs.h.  */
11714    #include <$ac_header>
11715    _ACEOF
11716    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11717      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11718      ac_status=$?
11719      grep -v '^ *+' conftest.er1 >conftest.err
11720      rm -f conftest.er1
11721      cat conftest.err >&5
11722      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723      (exit $ac_status); } >/dev/null; then
11724      if test -s conftest.err; then
11725        ac_cpp_err=$ac_c_preproc_warn_flag
11726        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11727      else
11728        ac_cpp_err=
11729      fi
11730    else
11731      ac_cpp_err=yes
11732  fi  fi
11733  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
11734    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
11735      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
11736    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
11737  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
11738  EOF  
11739   cat >> confdefs.h <<\EOF    ac_header_preproc=no
11740    fi
11741    rm -f conftest.err conftest.$ac_ext
11742    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743    echo "${ECHO_T}$ac_header_preproc" >&6
11744    
11745    # So?  What about this header?
11746    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11747      yes:no: )
11748        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11749    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11751    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11752        ac_header_preproc=yes
11753        ;;
11754      no:yes:* )
11755        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11756    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11757        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11758    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11759        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11760    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11761        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11762    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11763        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11764    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11765        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11766    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11767        (
11768          cat <<\_ASBOX
11769    ## ------------------------------------------ ##
11770    ## Report this to the AC_PACKAGE_NAME lists.  ##
11771    ## ------------------------------------------ ##
11772    _ASBOX
11773        ) |
11774          sed "s/^/$as_me: WARNING:     /" >&2
11775        ;;
11776    esac
11777    echo "$as_me:$LINENO: checking for $ac_header" >&5
11778    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11779    if eval "test \"\${$as_ac_Header+set}\" = set"; then
11780      echo $ECHO_N "(cached) $ECHO_C" >&6
11781    else
11782      eval "$as_ac_Header=\$ac_header_preproc"
11783    fi
11784    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11785    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11786    
11787    fi
11788    if test `eval echo '${'$as_ac_Header'}'` = yes; then
11789      cat >>confdefs.h <<_ACEOF
11790    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11791    _ACEOF
11792     cat >>confdefs.h <<\_ACEOF
11793  #define HAVE_JAPI_H 1  #define HAVE_JAPI_H 1
11794  EOF  _ACEOF
11795    
11796                                   EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"                                   EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"
11797                                   LIBS="${LIBS} -ljapi -lwsock32"                                   LIBS="${LIBS} -ljapi -lwsock32"
 else  
   echo "$ac_t""no" 1>&6  
11798  fi  fi
11799    
11800  done  done
11801    
11802  fi  fi
11803  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
11804   if test "$try_xdr" = "yes" ; then   if test "$try_xdr" = "yes" ; then
11805     for ac_hdr in rpc/rpc.h  
11806    for ac_header in rpc/rpc.h
11807  do  do
11808  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11809  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
11810  echo "configure:5775: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
11811  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11812    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
11813  else    echo $ECHO_N "(cached) $ECHO_C" >&6
11814    cat > conftest.$ac_ext <<EOF  fi
11815  #line 5780 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11816  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11817  #include <$ac_hdr>  else
11818  EOF    # Is the header compilable?
11819  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
11820  { (eval echo configure:5785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11821  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
11822  if test -z "$ac_err"; then  /* confdefs.h.  */
11823    rm -rf conftest*  _ACEOF
11824    eval "ac_cv_header_$ac_safe=yes"  cat confdefs.h >>conftest.$ac_ext
11825  else  cat >>conftest.$ac_ext <<_ACEOF
11826    echo "$ac_err" >&5  /* end confdefs.h.  */
11827    echo "configure: failed program was:" >&5  $ac_includes_default
11828    cat conftest.$ac_ext >&5  #include <$ac_header>
11829    rm -rf conftest*  _ACEOF
11830    eval "ac_cv_header_$ac_safe=no"  rm -f conftest.$ac_objext
11831  fi  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11832  rm -f conftest*    (eval $ac_compile) 2>conftest.er1
11833      ac_status=$?
11834      grep -v '^ *+' conftest.er1 >conftest.err
11835      rm -f conftest.er1
11836      cat conftest.err >&5
11837      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838      (exit $ac_status); } &&
11839             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11840      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841      (eval $ac_try) 2>&5
11842      ac_status=$?
11843      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844      (exit $ac_status); }; } &&
11845             { ac_try='test -s conftest.$ac_objext'
11846      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847      (eval $ac_try) 2>&5
11848      ac_status=$?
11849      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850      (exit $ac_status); }; }; then
11851      ac_header_compiler=yes
11852    else
11853      echo "$as_me: failed program was:" >&5
11854    sed 's/^/| /' conftest.$ac_ext >&5
11855    
11856    ac_header_compiler=no
11857    fi
11858    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11859    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11860    echo "${ECHO_T}$ac_header_compiler" >&6
11861    
11862    # Is the header present?
11863    echo "$as_me:$LINENO: checking $ac_header presence" >&5
11864    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11865    cat >conftest.$ac_ext <<_ACEOF
11866    /* confdefs.h.  */
11867    _ACEOF
11868    cat confdefs.h >>conftest.$ac_ext
11869    cat >>conftest.$ac_ext <<_ACEOF
11870    /* end confdefs.h.  */
11871    #include <$ac_header>
11872    _ACEOF
11873    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11874      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11875      ac_status=$?
11876      grep -v '^ *+' conftest.er1 >conftest.err
11877      rm -f conftest.er1
11878      cat conftest.err >&5
11879      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880      (exit $ac_status); } >/dev/null; then
11881      if test -s conftest.err; then
11882        ac_cpp_err=$ac_c_preproc_warn_flag
11883        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11884      else
11885        ac_cpp_err=
11886      fi
11887    else
11888      ac_cpp_err=yes
11889  fi  fi
11890  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
11891    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
11892      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
11893    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
11894  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
11895  EOF  
11896   cat >> confdefs.h <<\EOF    ac_header_preproc=no
11897    fi
11898    rm -f conftest.err conftest.$ac_ext
11899    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11900    echo "${ECHO_T}$ac_header_preproc" >&6
11901    
11902    # So?  What about this header?
11903    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11904      yes:no: )
11905        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11906    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11907        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11908    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11909        ac_header_preproc=yes
11910        ;;
11911      no:yes:* )
11912        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11913    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11914        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11915    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11916        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11917    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11918        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11919    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11920        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11921    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11922        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11923    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11924        (
11925          cat <<\_ASBOX
11926    ## ------------------------------------------ ##
11927    ## Report this to the AC_PACKAGE_NAME lists.  ##
11928    ## ------------------------------------------ ##
11929    _ASBOX
11930        ) |
11931          sed "s/^/$as_me: WARNING:     /" >&2
11932        ;;
11933    esac
11934    echo "$as_me:$LINENO: checking for $ac_header" >&5
11935    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11936    if eval "test \"\${$as_ac_Header+set}\" = set"; then
11937      echo $ECHO_N "(cached) $ECHO_C" >&6
11938    else
11939      eval "$as_ac_Header=\$ac_header_preproc"
11940    fi
11941    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11942    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11943    
11944    fi
11945    if test `eval echo '${'$as_ac_Header'}'` = yes; then
11946      cat >>confdefs.h <<_ACEOF
11947    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11948    _ACEOF
11949     cat >>confdefs.h <<\_ACEOF
11950  #define HAVE_XDR 1  #define HAVE_XDR 1
11951  EOF  _ACEOF
11952    
11953                                   LIBS="${LIBS} -loncrpc"                                   LIBS="${LIBS} -loncrpc"
 else  
   echo "$ac_t""no" 1>&6  
11954  fi  fi
11955    
11956  done  done
11957    
11958   fi   fi
11959  else  else
11960   if test "$try_xdr" = "yes" ; then   if test "$try_xdr" = "yes" ; then
11961     for ac_hdr in rpc/rpc.h  
11962    for ac_header in rpc/rpc.h
11963  do  do
11964  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11965  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
11966  echo "configure:5822: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
11967  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11968    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
11969  else    echo $ECHO_N "(cached) $ECHO_C" >&6
11970    cat > conftest.$ac_ext <<EOF  fi
11971  #line 5827 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11972  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11973  #include <$ac_hdr>  else
11974  EOF    # Is the header compilable?
11975  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
11976  { (eval echo configure:5832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11977  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
11978  if test -z "$ac_err"; then  /* confdefs.h.  */
11979    rm -rf conftest*  _ACEOF
11980    eval "ac_cv_header_$ac_safe=yes"  cat confdefs.h >>conftest.$ac_ext
11981  else  cat >>conftest.$ac_ext <<_ACEOF
11982    echo "$ac_err" >&5  /* end confdefs.h.  */
11983    echo "configure: failed program was:" >&5  $ac_includes_default
11984    cat conftest.$ac_ext >&5  #include <$ac_header>
11985    rm -rf conftest*  _ACEOF
11986    eval "ac_cv_header_$ac_safe=no"  rm -f conftest.$ac_objext
11987  fi  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11988  rm -f conftest*    (eval $ac_compile) 2>conftest.er1
11989      ac_status=$?
11990      grep -v '^ *+' conftest.er1 >conftest.err
11991      rm -f conftest.er1
11992      cat conftest.err >&5
11993      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994      (exit $ac_status); } &&
11995             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11996      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997      (eval $ac_try) 2>&5
11998      ac_status=$?
11999      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000      (exit $ac_status); }; } &&
12001             { ac_try='test -s conftest.$ac_objext'
12002      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003      (eval $ac_try) 2>&5
12004      ac_status=$?
12005      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006      (exit $ac_status); }; }; then
12007      ac_header_compiler=yes
12008    else
12009      echo "$as_me: failed program was:" >&5
12010    sed 's/^/| /' conftest.$ac_ext >&5
12011    
12012    ac_header_compiler=no
12013    fi
12014    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12015    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12016    echo "${ECHO_T}$ac_header_compiler" >&6
12017    
12018    # Is the header present?
12019    echo "$as_me:$LINENO: checking $ac_header presence" >&5
12020    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12021    cat >conftest.$ac_ext <<_ACEOF
12022    /* confdefs.h.  */
12023    _ACEOF
12024    cat confdefs.h >>conftest.$ac_ext
12025    cat >>conftest.$ac_ext <<_ACEOF
12026    /* end confdefs.h.  */
12027    #include <$ac_header>
12028    _ACEOF
12029    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12030      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12031      ac_status=$?
12032      grep -v '^ *+' conftest.er1 >conftest.err
12033      rm -f conftest.er1
12034      cat conftest.err >&5
12035      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036      (exit $ac_status); } >/dev/null; then
12037      if test -s conftest.err; then
12038        ac_cpp_err=$ac_c_preproc_warn_flag
12039        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12040      else
12041        ac_cpp_err=
12042      fi
12043    else
12044      ac_cpp_err=yes
12045  fi  fi
12046  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
12047    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
12048      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
12049    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
12050  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
12051  EOF  
12052   cat >> confdefs.h <<\EOF    ac_header_preproc=no
12053    fi
12054    rm -f conftest.err conftest.$ac_ext
12055    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12056    echo "${ECHO_T}$ac_header_preproc" >&6
12057    
12058    # So?  What about this header?
12059    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12060      yes:no: )
12061        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12062    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12063        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12064    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12065        ac_header_preproc=yes
12066        ;;
12067      no:yes:* )
12068        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12069    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12070        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12071    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12072        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12073    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12074        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12075    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12076        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12077    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12078        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12079    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12080        (
12081          cat <<\_ASBOX
12082    ## ------------------------------------------ ##
12083    ## Report this to the AC_PACKAGE_NAME lists.  ##
12084    ## ------------------------------------------ ##
12085    _ASBOX
12086        ) |
12087          sed "s/^/$as_me: WARNING:     /" >&2
12088        ;;
12089    esac
12090    echo "$as_me:$LINENO: checking for $ac_header" >&5
12091    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12092    if eval "test \"\${$as_ac_Header+set}\" = set"; then
12093      echo $ECHO_N "(cached) $ECHO_C" >&6
12094    else
12095      eval "$as_ac_Header=\$ac_header_preproc"
12096    fi
12097    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12098    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12099    
12100    fi
12101    if test `eval echo '${'$as_ac_Header'}'` = yes; then
12102      cat >>confdefs.h <<_ACEOF
12103    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12104    _ACEOF
12105     cat >>confdefs.h <<\_ACEOF
12106  #define HAVE_XDR 1  #define HAVE_XDR 1
12107  EOF  _ACEOF
12108    
12109                                   LIBS="${LIBS} -lrpc"                                   LIBS="${LIBS} -lrpc"
 else  
   echo "$ac_t""no" 1>&6  
12110  fi  fi
12111    
12112  done  done
12113    
12114   fi   fi
12115  fi  fi
12116    
12117  # Should really find a way to check for prototypes, but this  # Should really find a way to check for prototypes, but this
12118  # basically works for now.  CM  # basically works for now.  CM
12119  #  #
12120  for ac_hdr in math.h  
12121    for ac_header in math.h
12122  do  do
12123  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12124  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
12125  echo "configure:5872: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
12126  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12127    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
12128  else    echo $ECHO_N "(cached) $ECHO_C" >&6
12129    cat > conftest.$ac_ext <<EOF  fi
12130  #line 5877 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12131  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12132  #include <$ac_hdr>  else
12133  EOF    # Is the header compilable?
12134  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
12135  { (eval echo configure:5882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12136  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
12137  if test -z "$ac_err"; then  /* confdefs.h.  */
12138    rm -rf conftest*  _ACEOF
12139    eval "ac_cv_header_$ac_safe=yes"  cat confdefs.h >>conftest.$ac_ext
12140  else  cat >>conftest.$ac_ext <<_ACEOF
12141    echo "$ac_err" >&5  /* end confdefs.h.  */
12142    echo "configure: failed program was:" >&5  $ac_includes_default
12143    cat conftest.$ac_ext >&5  #include <$ac_header>
12144    rm -rf conftest*  _ACEOF
12145    eval "ac_cv_header_$ac_safe=no"  rm -f conftest.$ac_objext
12146  fi  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12147  rm -f conftest*    (eval $ac_compile) 2>conftest.er1
12148      ac_status=$?
12149      grep -v '^ *+' conftest.er1 >conftest.err
12150      rm -f conftest.er1
12151      cat conftest.err >&5
12152      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153      (exit $ac_status); } &&
12154             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12155      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156      (eval $ac_try) 2>&5
12157      ac_status=$?
12158      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159      (exit $ac_status); }; } &&
12160             { ac_try='test -s conftest.$ac_objext'
12161      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162      (eval $ac_try) 2>&5
12163      ac_status=$?
12164      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165      (exit $ac_status); }; }; then
12166      ac_header_compiler=yes
12167    else
12168      echo "$as_me: failed program was:" >&5
12169    sed 's/^/| /' conftest.$ac_ext >&5
12170    
12171    ac_header_compiler=no
12172    fi
12173    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12174    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12175    echo "${ECHO_T}$ac_header_compiler" >&6
12176    
12177    # Is the header present?
12178    echo "$as_me:$LINENO: checking $ac_header presence" >&5
12179    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12180    cat >conftest.$ac_ext <<_ACEOF
12181    /* confdefs.h.  */
12182    _ACEOF
12183    cat confdefs.h >>conftest.$ac_ext
12184    cat >>conftest.$ac_ext <<_ACEOF
12185    /* end confdefs.h.  */
12186    #include <$ac_header>
12187    _ACEOF
12188    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12189      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12190      ac_status=$?
12191      grep -v '^ *+' conftest.er1 >conftest.err
12192      rm -f conftest.er1
12193      cat conftest.err >&5
12194      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195      (exit $ac_status); } >/dev/null; then
12196      if test -s conftest.err; then
12197        ac_cpp_err=$ac_c_preproc_warn_flag
12198        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12199      else
12200        ac_cpp_err=
12201      fi
12202    else
12203      ac_cpp_err=yes
12204  fi  fi
12205  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
12206    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
12207      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
12208    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
12209  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
12210  EOF  
12211   cat >> confdefs.h <<\EOF    ac_header_preproc=no
12212    fi
12213    rm -f conftest.err conftest.$ac_ext
12214    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12215    echo "${ECHO_T}$ac_header_preproc" >&6
12216    
12217    # So?  What about this header?
12218    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12219      yes:no: )
12220        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12221    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12222        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12223    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12224        ac_header_preproc=yes
12225        ;;
12226      no:yes:* )
12227        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12228    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12229        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12230    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12231        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12232    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12233        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12234    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12235        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12236    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12237        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12238    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12239        (
12240          cat <<\_ASBOX
12241    ## ------------------------------------------ ##
12242    ## Report this to the AC_PACKAGE_NAME lists.  ##
12243    ## ------------------------------------------ ##
12244    _ASBOX
12245        ) |
12246          sed "s/^/$as_me: WARNING:     /" >&2
12247        ;;
12248    esac
12249    echo "$as_me:$LINENO: checking for $ac_header" >&5
12250    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12251    if eval "test \"\${$as_ac_Header+set}\" = set"; then
12252      echo $ECHO_N "(cached) $ECHO_C" >&6
12253    else
12254      eval "$as_ac_Header=\$ac_header_preproc"
12255    fi
12256    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12257    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12258    
12259    fi
12260    if test `eval echo '${'$as_ac_Header'}'` = yes; then
12261      cat >>confdefs.h <<_ACEOF
12262    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12263    _ACEOF
12264     cat >>confdefs.h <<\_ACEOF
12265  #define HAVE_MATH_H 1  #define HAVE_MATH_H 1
12266  EOF  _ACEOF
12267    
 else  
   echo "$ac_t""no" 1>&6  
12268  fi  fi
12269    
12270  done  done
12271    
12272    
12273  #  #
12274  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM
12275  #  #
12276  for ac_hdr in values.h  
12277    for ac_header in values.h
12278  do  do
12279  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12280  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
12281  echo "configure:5919: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
12282  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12283    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
12284  else    echo $ECHO_N "(cached) $ECHO_C" >&6
12285    cat > conftest.$ac_ext <<EOF  fi
12286  #line 5924 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12287  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12288  #include <$ac_hdr>  else
12289  EOF    # Is the header compilable?
12290  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
12291  { (eval echo configure:5929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12292  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
12293  if test -z "$ac_err"; then  /* confdefs.h.  */
12294    rm -rf conftest*  _ACEOF
12295    eval "ac_cv_header_$ac_safe=yes"  cat confdefs.h >>conftest.$ac_ext
12296  else  cat >>conftest.$ac_ext <<_ACEOF
12297    echo "$ac_err" >&5  /* end confdefs.h.  */
12298    echo "configure: failed program was:" >&5  $ac_includes_default
12299    cat conftest.$ac_ext >&5  #include <$ac_header>
12300    rm -rf conftest*  _ACEOF
12301    eval "ac_cv_header_$ac_safe=no"  rm -f conftest.$ac_objext
12302  fi  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12303  rm -f conftest*    (eval $ac_compile) 2>conftest.er1
12304      ac_status=$?
12305      grep -v '^ *+' conftest.er1 >conftest.err
12306      rm -f conftest.er1
12307      cat conftest.err >&5
12308      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309      (exit $ac_status); } &&
12310             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12311      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312      (eval $ac_try) 2>&5
12313      ac_status=$?
12314      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315      (exit $ac_status); }; } &&
12316             { ac_try='test -s conftest.$ac_objext'
12317      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318      (eval $ac_try) 2>&5
12319      ac_status=$?
12320      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321      (exit $ac_status); }; }; then
12322      ac_header_compiler=yes
12323    else
12324      echo "$as_me: failed program was:" >&5
12325    sed 's/^/| /' conftest.$ac_ext >&5
12326    
12327    ac_header_compiler=no
12328    fi
12329    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12330    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12331    echo "${ECHO_T}$ac_header_compiler" >&6
12332    
12333    # Is the header present?
12334    echo "$as_me:$LINENO: checking $ac_header presence" >&5
12335    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12336    cat >conftest.$ac_ext <<_ACEOF
12337    /* confdefs.h.  */
12338    _ACEOF
12339    cat confdefs.h >>conftest.$ac_ext
12340    cat >>conftest.$ac_ext <<_ACEOF
12341    /* end confdefs.h.  */
12342    #include <$ac_header>
12343    _ACEOF
12344    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12345      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12346      ac_status=$?
12347      grep -v '^ *+' conftest.er1 >conftest.err
12348      rm -f conftest.er1
12349      cat conftest.err >&5
12350      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351      (exit $ac_status); } >/dev/null; then
12352      if test -s conftest.err; then
12353        ac_cpp_err=$ac_c_preproc_warn_flag
12354        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12355      else
12356        ac_cpp_err=
12357      fi
12358    else
12359      ac_cpp_err=yes
12360  fi  fi
12361  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
12362    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
12363      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
12364    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
12365  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
12366  EOF  
12367   cat >> confdefs.h <<\EOF    ac_header_preproc=no
12368    fi
12369    rm -f conftest.err conftest.$ac_ext
12370    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12371    echo "${ECHO_T}$ac_header_preproc" >&6
12372    
12373    # So?  What about this header?
12374    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12375      yes:no: )
12376        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12377    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12378        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12379    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12380        ac_header_preproc=yes
12381        ;;
12382      no:yes:* )
12383        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12384    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12385        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12386    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12387        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12388    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12389        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12390    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12391        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12392    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12393        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12394    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12395        (
12396          cat <<\_ASBOX
12397    ## ------------------------------------------ ##
12398    ## Report this to the AC_PACKAGE_NAME lists.  ##
12399    ## ------------------------------------------ ##
12400    _ASBOX
12401        ) |
12402          sed "s/^/$as_me: WARNING:     /" >&2
12403        ;;
12404    esac
12405    echo "$as_me:$LINENO: checking for $ac_header" >&5
12406    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12407    if eval "test \"\${$as_ac_Header+set}\" = set"; then
12408      echo $ECHO_N "(cached) $ECHO_C" >&6
12409    else
12410      eval "$as_ac_Header=\$ac_header_preproc"
12411    fi
12412    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12413    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12414    
12415    fi
12416    if test `eval echo '${'$as_ac_Header'}'` = yes; then
12417      cat >>confdefs.h <<_ACEOF
12418    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12419    _ACEOF
12420     cat >>confdefs.h <<\_ACEOF
12421  #define HAVE_VALUES_H 1  #define HAVE_VALUES_H 1
12422  EOF  _ACEOF
12423    
 else  
   echo "$ac_t""no" 1>&6  
12424  fi  fi
12425    
12426  done  done
12427    
12428    
12429  #  #
12430  # 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
12431  #  #
12432  for ac_hdr in float.h  
12433    for ac_header in float.h
12434  do  do
12435  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12436  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
12437  echo "configure:5966: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
12438  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12439    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
12440  else    echo $ECHO_N "(cached) $ECHO_C" >&6
12441    cat > conftest.$ac_ext <<EOF  fi
12442  #line 5971 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12443  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12444  #include <$ac_hdr>  else
12445  EOF    # Is the header compilable?
12446  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
12447  { (eval echo configure:5976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12448  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
12449  if test -z "$ac_err"; then  /* confdefs.h.  */
12450    rm -rf conftest*  _ACEOF
12451    eval "ac_cv_header_$ac_safe=yes"  cat confdefs.h >>conftest.$ac_ext
12452  else  cat >>conftest.$ac_ext <<_ACEOF
12453    echo "$ac_err" >&5  /* end confdefs.h.  */
12454    echo "configure: failed program was:" >&5  $ac_includes_default
12455    cat conftest.$ac_ext >&5  #include <$ac_header>
12456    rm -rf conftest*  _ACEOF
12457    eval "ac_cv_header_$ac_safe=no"  rm -f conftest.$ac_objext
12458  fi  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459  rm -f conftest*    (eval $ac_compile) 2>conftest.er1
12460      ac_status=$?
12461      grep -v '^ *+' conftest.er1 >conftest.err
12462      rm -f conftest.er1
12463      cat conftest.err >&5
12464      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465      (exit $ac_status); } &&
12466             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12467      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468      (eval $ac_try) 2>&5
12469      ac_status=$?
12470      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471      (exit $ac_status); }; } &&
12472             { ac_try='test -s conftest.$ac_objext'
12473      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474      (eval $ac_try) 2>&5
12475      ac_status=$?
12476      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477      (exit $ac_status); }; }; then
12478      ac_header_compiler=yes
12479    else
12480      echo "$as_me: failed program was:" >&5
12481    sed 's/^/| /' conftest.$ac_ext >&5
12482    
12483    ac_header_compiler=no
12484    fi
12485    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12486    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12487    echo "${ECHO_T}$ac_header_compiler" >&6
12488    
12489    # Is the header present?
12490    echo "$as_me:$LINENO: checking $ac_header presence" >&5
12491    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12492    cat >conftest.$ac_ext <<_ACEOF
12493    /* confdefs.h.  */
12494    _ACEOF
12495    cat confdefs.h >>conftest.$ac_ext
12496    cat >>conftest.$ac_ext <<_ACEOF
12497    /* end confdefs.h.  */
12498    #include <$ac_header>
12499    _ACEOF
12500    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12501      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12502      ac_status=$?
12503      grep -v '^ *+' conftest.er1 >conftest.err
12504      rm -f conftest.er1
12505      cat conftest.err >&5
12506      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507      (exit $ac_status); } >/dev/null; then
12508      if test -s conftest.err; then
12509        ac_cpp_err=$ac_c_preproc_warn_flag
12510        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12511      else
12512        ac_cpp_err=
12513      fi
12514    else
12515      ac_cpp_err=yes
12516  fi  fi
12517  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
12518    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
12519      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
12520    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
12521  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
12522  EOF  
12523   cat >> confdefs.h <<\EOF    ac_header_preproc=no
12524    fi
12525    rm -f conftest.err conftest.$ac_ext
12526    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12527    echo "${ECHO_T}$ac_header_preproc" >&6
12528    
12529    # So?  What about this header?
12530    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12531      yes:no: )
12532        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12533    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12534        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12535    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12536        ac_header_preproc=yes
12537        ;;
12538      no:yes:* )
12539        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12540    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12541        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12542    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12543        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12544    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12545        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12546    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12547        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12548    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12549        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12550    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12551        (
12552          cat <<\_ASBOX
12553    ## ------------------------------------------ ##
12554    ## Report this to the AC_PACKAGE_NAME lists.  ##
12555    ## ------------------------------------------ ##
12556    _ASBOX
12557        ) |
12558          sed "s/^/$as_me: WARNING:     /" >&2
12559        ;;
12560    esac
12561    echo "$as_me:$LINENO: checking for $ac_header" >&5
12562    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12563    if eval "test \"\${$as_ac_Header+set}\" = set"; then
12564      echo $ECHO_N "(cached) $ECHO_C" >&6
12565    else
12566      eval "$as_ac_Header=\$ac_header_preproc"
12567    fi
12568    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12569    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12570    
12571    fi
12572    if test `eval echo '${'$as_ac_Header'}'` = yes; then
12573      cat >>confdefs.h <<_ACEOF
12574    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12575    _ACEOF
12576     cat >>confdefs.h <<\_ACEOF
12577  #define HAVE_FLOAT_H 1  #define HAVE_FLOAT_H 1
12578  EOF  _ACEOF
12579    
 else  
   echo "$ac_t""no" 1>&6  
12580  fi  fi
12581    
12582  done  done
12583    
12584    
# Line 6007  done Line 12587  done
12587  # a more comprehensive later, i.e. checking that the fpclass  # a more comprehensive later, i.e. checking that the fpclass
12588  # test makes sense.  CM  # test makes sense.  CM
12589  #  #
12590  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for isnormal" >&5
12591  echo "configure:6012: checking for isnormal" >&5  echo $ECHO_N "checking for isnormal... $ECHO_C" >&6
12592  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
12593    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$as_me:$LINENO: result: no" >&5
12594    echo "${ECHO_T}no" >&6
12595  else  else
12596    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
12597  #line 6017 "configure"  /* confdefs.h.  */
12598  #include "confdefs.h"  _ACEOF
12599    cat confdefs.h >>conftest.$ac_ext
12600    cat >>conftest.$ac_ext <<_ACEOF
12601    /* end confdefs.h.  */
12602  #define _GNU_SOURCE 1  #define _GNU_SOURCE 1
12603              #include <math.h>              #include <math.h>
12604              int main() {              int main() {
12605                  float f;                  float f;
12606                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
12607                  }                  }
12608  EOF  _ACEOF
12609  if { (eval echo configure:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
12610  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12611    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
12612      ac_status=$?
12613      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12615      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616      (eval $ac_try) 2>&5
12617      ac_status=$?
12618      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619      (exit $ac_status); }; }; then
12620      cat >>confdefs.h <<\_ACEOF
12621  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
12622  EOF  _ACEOF
12623   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
12624  else  echo "${ECHO_T}yes" >&6
12625    echo "configure: failed program was:" >&5  else
12626    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
12627    rm -fr conftest*  echo "$as_me: failed program was:" >&5
12628    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6  sed 's/^/| /' conftest.$ac_ext >&5
12629  echo "configure:6037: checking for fpclass in ieeefp.h" >&5  
12630    ( exit $ac_status )
12631    echo "$as_me:$LINENO: checking for fpclass in ieeefp.h" >&5
12632    echo $ECHO_N "checking for fpclass in ieeefp.h... $ECHO_C" >&6
12633                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
12634    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
12635    echo "${ECHO_T}no" >&6
12636  else  else
12637    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
12638  #line 6042 "configure"  /* confdefs.h.  */
12639  #include "confdefs.h"  _ACEOF
12640    cat confdefs.h >>conftest.$ac_ext
12641    cat >>conftest.$ac_ext <<_ACEOF
12642    /* end confdefs.h.  */
12643  #include <ieeefp.h>  #include <ieeefp.h>
12644                              int main() {                              int main() {
12645                                  float f;                                  float f;
12646                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
12647                                  }                                  }
12648  EOF  _ACEOF
12649  if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
12650  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12651    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
12652      ac_status=$?
12653      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12655      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656      (eval $ac_try) 2>&5
12657      ac_status=$?
12658      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659      (exit $ac_status); }; }; then
12660      cat >>confdefs.h <<\_ACEOF
12661  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
12662  EOF  _ACEOF
12663   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
12664    echo "${ECHO_T}yes" >&6
12665  else  else
12666    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
12667    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
12668    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
12669    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6  
12670    ( exit $ac_status )
12671    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
12672    echo "${ECHO_T}no" >&6
12673  fi  fi
12674  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12675  fi  fi
12676    
           
12677  fi  fi
12678  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12679  fi  fi
12680    
12681    echo "$as_me:$LINENO: checking for isfinite" >&5
12682  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ECHO_N "checking for isfinite... $ECHO_C" >&6
 echo "configure:6072: checking for isfinite" >&5  
12683  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
12684    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$as_me:$LINENO: result: no" >&5
12685    echo "${ECHO_T}no" >&6
12686  else  else
12687    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
12688  #line 6077 "configure"  /* confdefs.h.  */
12689  #include "confdefs.h"  _ACEOF
12690    cat confdefs.h >>conftest.$ac_ext
12691    cat >>conftest.$ac_ext <<_ACEOF
12692    /* end confdefs.h.  */
12693  #define _GNU_SOURCE 1  #define _GNU_SOURCE 1
12694              #include <math.h>              #include <math.h>
12695              int main() {              int main() {
12696                  float f;                  float f;
12697                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
12698                  }                  }
12699  EOF  _ACEOF
12700  if { (eval echo configure:6086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
12701  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12702    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
12703      ac_status=$?
12704      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12706      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707      (eval $ac_try) 2>&5
12708      ac_status=$?
12709      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710      (exit $ac_status); }; }; then
12711      cat >>confdefs.h <<\_ACEOF
12712  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
12713  EOF  _ACEOF
12714   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
12715  else  echo "${ECHO_T}yes" >&6
12716    echo "configure: failed program was:" >&5  else
12717    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
12718    rm -fr conftest*  echo "$as_me: failed program was:" >&5
12719    echo $ac_n "checking for finite()""... $ac_c" 1>&6  sed 's/^/| /' conftest.$ac_ext >&5
12720  echo "configure:6097: checking for finite()" >&5  
12721    ( exit $ac_status )
12722    echo "$as_me:$LINENO: checking for finite()" >&5
12723    echo $ECHO_N "checking for finite()... $ECHO_C" >&6
12724                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
12725    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
12726    echo "${ECHO_T}no" >&6
12727  else  else
12728    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
12729  #line 6102 "configure"  /* confdefs.h.  */
12730  #include "confdefs.h"  _ACEOF
12731    cat confdefs.h >>conftest.$ac_ext
12732    cat >>conftest.$ac_ext <<_ACEOF
12733    /* end confdefs.h.  */
12734  #include <math.h>  #include <math.h>
12735                              #include <ieeefp.h>                              #include <ieeefp.h>
12736                              int main() {                              int main() {
12737                                  float f;                                  float f;
12738                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
12739                                  }                                  }
12740  EOF  _ACEOF
12741  if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
12742  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12743    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
12744      ac_status=$?
12745      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12747      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748      (eval $ac_try) 2>&5
12749      ac_status=$?
12750      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751      (exit $ac_status); }; }; then
12752      cat >>confdefs.h <<\_ACEOF
12753  #define HAVE_FINITE 1  #define HAVE_FINITE 1
12754  EOF  _ACEOF
12755   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
12756    echo "${ECHO_T}yes" >&6
12757  else  else
12758    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
12759    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
12760    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
12761    HAVE_FINITE=0 echo "$ac_t""no" 1>&6  
12762    ( exit $ac_status )
12763    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
12764    echo "${ECHO_T}no" >&6
12765  fi  fi
12766  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12767  fi  fi
12768    
           
12769  fi  fi
12770  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12771  fi  fi
12772    
12773    
12774    
   
12775  #--------------------------------------------------------------------  #--------------------------------------------------------------------
12776  #       Check for the existence of the -lsocket and -lnsl libraries.  #       Check for the existence of the -lsocket and -lnsl libraries.
12777  #       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 6147  fi Line 12789  fi
12789  #          To get around this problem, check for both libraries together  #          To get around this problem, check for both libraries together
12790  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
12791  #--------------------------------------------------------------------  #--------------------------------------------------------------------
12792  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sockets" >&5
12793  echo "configure:6152: checking for sockets" >&5  echo $ECHO_N "checking for sockets... $ECHO_C" >&6
12794  tcl_checkBoth=0  tcl_checkBoth=0
12795  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for connect" >&5
12796  echo "configure:6155: checking for connect" >&5  echo $ECHO_N "checking for connect... $ECHO_C" >&6
12797  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if test "${ac_cv_func_connect+set}" = set; then
12798    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
12799  else  else
12800    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
12801  #line 6160 "configure"  /* confdefs.h.  */
12802  #include "confdefs.h"  _ACEOF
12803    cat confdefs.h >>conftest.$ac_ext
12804    cat >>conftest.$ac_ext <<_ACEOF
12805    /* end confdefs.h.  */
12806    /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12807       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12808    #define connect innocuous_connect
12809    
12810  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
12811      which can conflict with char connect(); below.  */      which can conflict with char connect (); below.
12812  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12813  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char connect();  
12814    
12815  int main() {  #ifdef __STDC__
12816    # include <limits.h>
12817    #else
12818    # include <assert.h>
12819    #endif
12820    
12821    #undef connect
12822    
12823    /* Override any gcc2 internal prototype to avoid an error.  */
12824    #ifdef __cplusplus
12825    extern "C"
12826    {
12827    #endif
12828    /* We use char because int might match the return type of a gcc2
12829       builtin and then its argument prototype would still apply.  */
12830    char connect ();
12831  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
12832      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
12833      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
12834  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
12835  choke me  choke me
12836  #else  #else
12837  connect();  char (*f) () = connect;
12838    #endif
12839    #ifdef __cplusplus
12840    }
12841  #endif  #endif
12842    
12843  ; return 0; }  int
12844  EOF  main ()
12845  if { (eval echo configure:6183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
12846    rm -rf conftest*  return f != connect;
12847    eval "ac_cv_func_connect=yes"    ;
12848  else    return 0;
12849    echo "configure: failed program was:" >&5  }
12850    cat conftest.$ac_ext >&5  _ACEOF
12851    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
12852    eval "ac_cv_func_connect=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12853  fi    (eval $ac_link) 2>conftest.er1
12854  rm -f conftest*    ac_status=$?
12855  fi    grep -v '^ *+' conftest.er1 >conftest.err
12856      rm -f conftest.er1
12857  if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then    cat conftest.err >&5
12858    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859      (exit $ac_status); } &&
12860             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12861      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862      (eval $ac_try) 2>&5
12863      ac_status=$?
12864      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865      (exit $ac_status); }; } &&
12866             { ac_try='test -s conftest$ac_exeext'
12867      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868      (eval $ac_try) 2>&5
12869      ac_status=$?
12870      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871      (exit $ac_status); }; }; then
12872      ac_cv_func_connect=yes
12873    else
12874      echo "$as_me: failed program was:" >&5
12875    sed 's/^/| /' conftest.$ac_ext >&5
12876    
12877    ac_cv_func_connect=no
12878    fi
12879    rm -f conftest.err conftest.$ac_objext \
12880          conftest$ac_exeext conftest.$ac_ext
12881    fi
12882    echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12883    echo "${ECHO_T}$ac_cv_func_connect" >&6
12884    if test $ac_cv_func_connect = yes; then
12885    tcl_checkSocket=0    tcl_checkSocket=0
12886  else  else
12887    echo "$ac_t""no" 1>&6    tcl_checkSocket=1
 tcl_checkSocket=1  
12888  fi  fi
12889    
12890  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
12891      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12892  echo "configure:6205: checking for main in -lsocket" >&5  echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12893  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_main+set}" = set; then
12894  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  
12895  else  else
12896    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
12897  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
12898  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
12899  #line 6213 "configure"  /* confdefs.h.  */
12900  #include "confdefs.h"  _ACEOF
12901    cat confdefs.h >>conftest.$ac_ext
12902    cat >>conftest.$ac_ext <<_ACEOF
12903    /* end confdefs.h.  */
12904    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:6220: \"$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"  
12905    
12906  fi  int
12907  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
12908    echo "$ac_t""yes" 1>&6  {
12909    main ();
12910      ;
12911      return 0;
12912    }
12913    _ACEOF
12914    rm -f conftest.$ac_objext conftest$ac_exeext
12915    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12916      (eval $ac_link) 2>conftest.er1
12917      ac_status=$?
12918      grep -v '^ *+' conftest.er1 >conftest.err
12919      rm -f conftest.er1
12920      cat conftest.err >&5
12921      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922      (exit $ac_status); } &&
12923             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12924      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925      (eval $ac_try) 2>&5
12926      ac_status=$?
12927      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928      (exit $ac_status); }; } &&
12929             { ac_try='test -s conftest$ac_exeext'
12930      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931      (eval $ac_try) 2>&5
12932      ac_status=$?
12933      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934      (exit $ac_status); }; }; then
12935      ac_cv_lib_socket_main=yes
12936    else
12937      echo "$as_me: failed program was:" >&5
12938    sed 's/^/| /' conftest.$ac_ext >&5
12939    
12940    ac_cv_lib_socket_main=no
12941    fi
12942    rm -f conftest.err conftest.$ac_objext \
12943          conftest$ac_exeext conftest.$ac_ext
12944    LIBS=$ac_check_lib_save_LIBS
12945    fi
12946    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12947    echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12948    if test $ac_cv_lib_socket_main = yes; then
12949    TLIBS="$TLIBS -lsocket"    TLIBS="$TLIBS -lsocket"
12950  else  else
12951    echo "$ac_t""no" 1>&6    tcl_checkBoth=1
 tcl_checkBoth=1  
12952  fi  fi
12953    
12954  fi  fi
# Line 6243  fi Line 12957  fi
12957  if test "$tcl_checkBoth" = 1; then  if test "$tcl_checkBoth" = 1; then
12958      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
12959      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
12960      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for accept" >&5
12961  echo "configure:6248: checking for accept" >&5  echo $ECHO_N "checking for accept... $ECHO_C" >&6
12962  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if test "${ac_cv_func_accept+set}" = set; then
12963    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
12964  else  else
12965    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
12966  #line 6253 "configure"  /* confdefs.h.  */
12967  #include "confdefs.h"  _ACEOF
12968    cat confdefs.h >>conftest.$ac_ext
12969    cat >>conftest.$ac_ext <<_ACEOF
12970    /* end confdefs.h.  */
12971    /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12972       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12973    #define accept innocuous_accept
12974    
12975  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
12976      which can conflict with char accept(); below.  */      which can conflict with char accept (); below.
12977  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12978  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char accept();  
12979    
12980  int main() {  #ifdef __STDC__
12981    # include <limits.h>
12982    #else
12983    # include <assert.h>
12984    #endif
12985    
12986    #undef accept
12987    
12988    /* Override any gcc2 internal prototype to avoid an error.  */
12989    #ifdef __cplusplus
12990    extern "C"
12991    {
12992    #endif
12993    /* We use char because int might match the return type of a gcc2
12994       builtin and then its argument prototype would still apply.  */
12995    char accept ();
12996  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
12997      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
12998      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
12999  #if defined (__stub_accept) || defined (__stub___accept)  #if defined (__stub_accept) || defined (__stub___accept)
13000  choke me  choke me
13001  #else  #else
13002  accept();  char (*f) () = accept;
13003    #endif
13004    #ifdef __cplusplus
13005    }
13006  #endif  #endif
13007    
13008  ; return 0; }  int
13009  EOF  main ()
13010  if { (eval echo configure:6276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
13011    rm -rf conftest*  return f != accept;
13012    eval "ac_cv_func_accept=yes"    ;
13013  else    return 0;
13014    echo "configure: failed program was:" >&5  }
13015    cat conftest.$ac_ext >&5  _ACEOF
13016    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
13017    eval "ac_cv_func_accept=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13018  fi    (eval $ac_link) 2>conftest.er1
13019  rm -f conftest*    ac_status=$?
13020  fi    grep -v '^ *+' conftest.er1 >conftest.err
13021      rm -f conftest.er1
13022  if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then    cat conftest.err >&5
13023    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024      (exit $ac_status); } &&
13025             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13026      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027      (eval $ac_try) 2>&5
13028      ac_status=$?
13029      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030      (exit $ac_status); }; } &&
13031             { ac_try='test -s conftest$ac_exeext'
13032      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033      (eval $ac_try) 2>&5
13034      ac_status=$?
13035      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036      (exit $ac_status); }; }; then
13037      ac_cv_func_accept=yes
13038    else
13039      echo "$as_me: failed program was:" >&5
13040    sed 's/^/| /' conftest.$ac_ext >&5
13041    
13042    ac_cv_func_accept=no
13043    fi
13044    rm -f conftest.err conftest.$ac_objext \
13045          conftest$ac_exeext conftest.$ac_ext
13046    fi
13047    echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13048    echo "${ECHO_T}$ac_cv_func_accept" >&6
13049    if test $ac_cv_func_accept = yes; then
13050    tcl_checkNsl=0    tcl_checkNsl=0
13051  else  else
13052    echo "$ac_t""no" 1>&6    TLIBS=$tk_oldLibs
 TLIBS=$tk_oldLibs  
13053  fi  fi
13054    
13055  fi  fi
13056  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gethostbyname" >&5
13057  echo "configure:6298: checking for gethostbyname" >&5  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13058  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if test "${ac_cv_func_gethostbyname+set}" = set; then
13059    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
13060  else  else
13061    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
13062  #line 6303 "configure"  /* confdefs.h.  */
13063  #include "confdefs.h"  _ACEOF
13064    cat confdefs.h >>conftest.$ac_ext
13065    cat >>conftest.$ac_ext <<_ACEOF
13066    /* end confdefs.h.  */
13067    /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13068       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13069    #define gethostbyname innocuous_gethostbyname
13070    
13071  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
13072      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname (); below.
13073  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13074  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char gethostbyname();  
13075    
13076  int main() {  #ifdef __STDC__
13077    # include <limits.h>
13078    #else
13079    # include <assert.h>
13080    #endif
13081    
13082    #undef gethostbyname
13083    
13084    /* Override any gcc2 internal prototype to avoid an error.  */
13085    #ifdef __cplusplus
13086    extern "C"
13087    {
13088    #endif
13089    /* We use char because int might match the return type of a gcc2
13090       builtin and then its argument prototype would still apply.  */
13091    char gethostbyname ();
13092  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
13093      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
13094      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
13095  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13096  choke me  choke me
13097  #else  #else
13098  gethostbyname();  char (*f) () = gethostbyname;
13099    #endif
13100    #ifdef __cplusplus
13101    }
13102  #endif  #endif
13103    
13104  ; return 0; }  int
13105  EOF  main ()
13106  if { (eval echo configure:6326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
13107    rm -rf conftest*  return f != gethostbyname;
13108    eval "ac_cv_func_gethostbyname=yes"    ;
13109  else    return 0;
13110    echo "configure: failed program was:" >&5  }
13111    cat conftest.$ac_ext >&5  _ACEOF
13112    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
13113    eval "ac_cv_func_gethostbyname=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13114  fi    (eval $ac_link) 2>conftest.er1
13115  rm -f conftest*    ac_status=$?
13116  fi    grep -v '^ *+' conftest.er1 >conftest.err
13117      rm -f conftest.er1
13118  if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then    cat conftest.err >&5
13119    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120      (exit $ac_status); } &&
13121             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13122      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123      (eval $ac_try) 2>&5
13124      ac_status=$?
13125      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126      (exit $ac_status); }; } &&
13127             { ac_try='test -s conftest$ac_exeext'
13128      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129      (eval $ac_try) 2>&5
13130      ac_status=$?
13131      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132      (exit $ac_status); }; }; then
13133      ac_cv_func_gethostbyname=yes
13134    else
13135      echo "$as_me: failed program was:" >&5
13136    sed 's/^/| /' conftest.$ac_ext >&5
13137    
13138    ac_cv_func_gethostbyname=no
13139    fi
13140    rm -f conftest.err conftest.$ac_objext \
13141          conftest$ac_exeext conftest.$ac_ext
13142    fi
13143    echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13144    echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13145    if test $ac_cv_func_gethostbyname = yes; then
13146    :    :
13147  else  else
13148    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13149  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13150  echo "configure:6344: checking for main in -lnsl" >&5  if test "${ac_cv_lib_nsl_main+set}" = set; then
13151  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  
13152  else  else
13153    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
13154  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
13155  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
13156  #line 6352 "configure"  /* confdefs.h.  */
13157  #include "confdefs.h"  _ACEOF
13158    cat confdefs.h >>conftest.$ac_ext
13159    cat >>conftest.$ac_ext <<_ACEOF
13160    /* end confdefs.h.  */
13161    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:6359: \"$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"  
13162    
13163  fi  int
13164  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
13165    echo "$ac_t""yes" 1>&6  {
13166    main ();
13167      ;
13168      return 0;
13169    }
13170    _ACEOF
13171    rm -f conftest.$ac_objext conftest$ac_exeext
13172    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13173      (eval $ac_link) 2>conftest.er1
13174      ac_status=$?
13175      grep -v '^ *+' conftest.er1 >conftest.err
13176      rm -f conftest.er1
13177      cat conftest.err >&5
13178      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179      (exit $ac_status); } &&
13180             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13181      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182      (eval $ac_try) 2>&5
13183      ac_status=$?
13184      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185      (exit $ac_status); }; } &&
13186             { ac_try='test -s conftest$ac_exeext'
13187      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188      (eval $ac_try) 2>&5
13189      ac_status=$?
13190      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191      (exit $ac_status); }; }; then
13192      ac_cv_lib_nsl_main=yes
13193    else
13194      echo "$as_me: failed program was:" >&5
13195    sed 's/^/| /' conftest.$ac_ext >&5
13196    
13197    ac_cv_lib_nsl_main=no
13198    fi
13199    rm -f conftest.err conftest.$ac_objext \
13200          conftest$ac_exeext conftest.$ac_ext
13201    LIBS=$ac_check_lib_save_LIBS
13202    fi
13203    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13204    echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13205    if test $ac_cv_lib_nsl_main = yes; then
13206    TLIBS="$TLIBS -lnsl"    TLIBS="$TLIBS -lnsl"
 else  
   echo "$ac_t""no" 1>&6  
13207  fi  fi
13208    
13209  fi  fi
# Line 6381  fi Line 13212  fi
13212  RL_OJBS=""  RL_OJBS=""
13213  RL_LIB=""  RL_LIB=""
13214  if test "$enable_readline" = "yes" ; then  if test "$enable_readline" = "yes" ; then
13215          for ac_hdr in readline/readline.h  
13216    for ac_header in readline/readline.h
13217  do  do
13218  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13219  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
13220  echo "configure:6389: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
13221  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13222    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
13223  else    echo $ECHO_N "(cached) $ECHO_C" >&6
13224    cat > conftest.$ac_ext <<EOF  fi
13225  #line 6394 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13226  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13227  #include <$ac_hdr>  else
13228  EOF    # Is the header compilable?
13229  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
13230  { (eval echo configure:6399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13231  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
13232  if test -z "$ac_err"; then  /* confdefs.h.  */
13233    rm -rf conftest*  _ACEOF
13234    eval "ac_cv_header_$ac_safe=yes"  cat confdefs.h >>conftest.$ac_ext
13235  else  cat >>conftest.$ac_ext <<_ACEOF
13236    echo "$ac_err" >&5  /* end confdefs.h.  */
13237    echo "configure: failed program was:" >&5  $ac_includes_default
13238    cat conftest.$ac_ext >&5  #include <$ac_header>
13239    rm -rf conftest*  _ACEOF
13240    eval "ac_cv_header_$ac_safe=no"  rm -f conftest.$ac_objext
13241  fi  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13242  rm -f conftest*    (eval $ac_compile) 2>conftest.er1
13243      ac_status=$?
13244      grep -v '^ *+' conftest.er1 >conftest.err
13245      rm -f conftest.er1
13246      cat conftest.err >&5
13247      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248      (exit $ac_status); } &&
13249             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13250      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251      (eval $ac_try) 2>&5
13252      ac_status=$?
13253      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254      (exit $ac_status); }; } &&
13255             { ac_try='test -s conftest.$ac_objext'
13256      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257      (eval $ac_try) 2>&5
13258      ac_status=$?
13259      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260      (exit $ac_status); }; }; then
13261      ac_header_compiler=yes
13262    else
13263      echo "$as_me: failed program was:" >&5
13264    sed 's/^/| /' conftest.$ac_ext >&5
13265    
13266    ac_header_compiler=no
13267    fi
13268    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13269    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13270    echo "${ECHO_T}$ac_header_compiler" >&6
13271    
13272    # Is the header present?
13273    echo "$as_me:$LINENO: checking $ac_header presence" >&5
13274    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13275    cat >conftest.$ac_ext <<_ACEOF
13276    /* confdefs.h.  */
13277    _ACEOF
13278    cat confdefs.h >>conftest.$ac_ext
13279    cat >>conftest.$ac_ext <<_ACEOF
13280    /* end confdefs.h.  */
13281    #include <$ac_header>
13282    _ACEOF
13283    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13284      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13285      ac_status=$?
13286      grep -v '^ *+' conftest.er1 >conftest.err
13287      rm -f conftest.er1
13288      cat conftest.err >&5
13289      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290      (exit $ac_status); } >/dev/null; then
13291      if test -s conftest.err; then
13292        ac_cpp_err=$ac_c_preproc_warn_flag
13293        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13294      else
13295        ac_cpp_err=
13296      fi
13297    else
13298      ac_cpp_err=yes
13299  fi  fi
13300  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
13301    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
13302      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
13303    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
13304  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
13305  EOF  
13306   echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6    ac_header_preproc=no
13307  echo "configure:6420: checking for main in -lreadline" >&5  fi
13308  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  rm -f conftest.err conftest.$ac_ext
13309  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13310    echo $ac_n "(cached) $ac_c" 1>&6  echo "${ECHO_T}$ac_header_preproc" >&6
13311    
13312    # So?  What about this header?
13313    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13314      yes:no: )
13315        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13316    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13317        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13318    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13319        ac_header_preproc=yes
13320        ;;
13321      no:yes:* )
13322        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13323    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13324        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13325    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13326        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13327    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13328        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13329    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13330        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13331    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13332        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13333    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13334        (
13335          cat <<\_ASBOX
13336    ## ------------------------------------------ ##
13337    ## Report this to the AC_PACKAGE_NAME lists.  ##
13338    ## ------------------------------------------ ##
13339    _ASBOX
13340        ) |
13341          sed "s/^/$as_me: WARNING:     /" >&2
13342        ;;
13343    esac
13344    echo "$as_me:$LINENO: checking for $ac_header" >&5
13345    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13346    if eval "test \"\${$as_ac_Header+set}\" = set"; then
13347      echo $ECHO_N "(cached) $ECHO_C" >&6
13348    else
13349      eval "$as_ac_Header=\$ac_header_preproc"
13350    fi
13351    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13352    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13353    
13354    fi
13355    if test `eval echo '${'$as_ac_Header'}'` = yes; then
13356      cat >>confdefs.h <<_ACEOF
13357    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13358    _ACEOF
13359     echo "$as_me:$LINENO: checking for main in -lreadline" >&5
13360    echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
13361    if test "${ac_cv_lib_readline_main+set}" = set; then
13362      echo $ECHO_N "(cached) $ECHO_C" >&6
13363  else  else
13364    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
13365  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
13366  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
13367  #line 6428 "configure"  /* confdefs.h.  */
13368  #include "confdefs.h"  _ACEOF
13369    cat confdefs.h >>conftest.$ac_ext
13370    cat >>conftest.$ac_ext <<_ACEOF
13371    /* end confdefs.h.  */
13372    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:6435: \"$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"  
13373    
13374  fi  int
13375  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
13376    echo "$ac_t""yes" 1>&6  {
13377    cat >> confdefs.h <<\EOF  main ();
13378      ;
13379      return 0;
13380    }
13381    _ACEOF
13382    rm -f conftest.$ac_objext conftest$ac_exeext
13383    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13384      (eval $ac_link) 2>conftest.er1
13385      ac_status=$?
13386      grep -v '^ *+' conftest.er1 >conftest.err
13387      rm -f conftest.er1
13388      cat conftest.err >&5
13389      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390      (exit $ac_status); } &&
13391             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13392      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393      (eval $ac_try) 2>&5
13394      ac_status=$?
13395      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396      (exit $ac_status); }; } &&
13397             { ac_try='test -s conftest$ac_exeext'
13398      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399      (eval $ac_try) 2>&5
13400      ac_status=$?
13401      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402      (exit $ac_status); }; }; then
13403      ac_cv_lib_readline_main=yes
13404    else
13405      echo "$as_me: failed program was:" >&5
13406    sed 's/^/| /' conftest.$ac_ext >&5
13407    
13408    ac_cv_lib_readline_main=no
13409    fi
13410    rm -f conftest.err conftest.$ac_objext \
13411          conftest$ac_exeext conftest.$ac_ext
13412    LIBS=$ac_check_lib_save_LIBS
13413    fi
13414    echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
13415    echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
13416    if test $ac_cv_lib_readline_main = yes; then
13417      cat >>confdefs.h <<\_ACEOF
13418  #define HAVE_READLINE 1  #define HAVE_READLINE 1
13419  EOF  _ACEOF
13420    
13421                          TLIBS="$TLIBS -lreadline -lncurses"                          TLIBS="$TLIBS -lreadline -lncurses"
13422                          RL_OBJS=gcl_readline.o                          RL_OBJS=gcl_readline.o
13423  # Readline support now initialized automatically when compiled in, this lisp  # Readline support now initialized automatically when compiled in, this lisp
13424  # object no longer needed, 20040102 CM  # object no longer needed, 20040102 CM
13425  #                       RL_LIB=mod/gcl_readline.o  #                       RL_LIB=mod/gcl_readline.o
13426                            
 else  
   echo "$ac_t""no" 1>&6  
13427  fi  fi
13428    
 else  
   echo "$ac_t""no" 1>&6  
13429  fi  fi
13430    
13431  done  done
13432    
13433    
13434  # These tests discover differences between readline 4.1 and 4.3  # These tests discover differences between readline 4.1 and 4.3
13435          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
13436  echo "configure:6472: checking for rl_completion_matches in -lreadline" >&5  echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
13437  ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
13438  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  
13439  else  else
13440    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
13441  LIBS="-lreadline  $LIBS"  LIBS="-lreadline  $LIBS"
13442  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
13443  #line 6480 "configure"  /* confdefs.h.  */
13444  #include "confdefs.h"  _ACEOF
13445    cat confdefs.h >>conftest.$ac_ext
13446    cat >>conftest.$ac_ext <<_ACEOF
13447    /* end confdefs.h.  */
13448    
13449  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
13450    #ifdef __cplusplus
13451    extern "C"
13452    #endif
13453  /* 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
13454      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
13455  char rl_completion_matches();  char rl_completion_matches ();
13456    int
13457  int main() {  main ()
13458  rl_completion_matches()  {
13459  ; return 0; }  rl_completion_matches ();
13460  EOF    ;
13461  if { (eval echo configure:6491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
13462    rm -rf conftest*  }
13463    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
13464  else  rm -f conftest.$ac_objext conftest$ac_exeext
13465    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13466    cat conftest.$ac_ext >&5    (eval $ac_link) 2>conftest.er1
13467    rm -rf conftest*    ac_status=$?
13468    eval "ac_cv_lib_$ac_lib_var=no"    grep -v '^ *+' conftest.er1 >conftest.err
13469  fi    rm -f conftest.er1
13470  rm -f conftest*    cat conftest.err >&5
13471  LIBS="$ac_save_LIBS"    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472      (exit $ac_status); } &&
13473  fi           { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13474  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475    echo "$ac_t""yes" 1>&6    (eval $ac_try) 2>&5
13476    cat >> confdefs.h <<\EOF    ac_status=$?
13477      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478      (exit $ac_status); }; } &&
13479             { ac_try='test -s conftest$ac_exeext'
13480      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481      (eval $ac_try) 2>&5
13482      ac_status=$?
13483      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484      (exit $ac_status); }; }; then
13485      ac_cv_lib_readline_rl_completion_matches=yes
13486    else
13487      echo "$as_me: failed program was:" >&5
13488    sed 's/^/| /' conftest.$ac_ext >&5
13489    
13490    ac_cv_lib_readline_rl_completion_matches=no
13491    fi
13492    rm -f conftest.err conftest.$ac_objext \
13493          conftest$ac_exeext conftest.$ac_ext
13494    LIBS=$ac_check_lib_save_LIBS
13495    fi
13496    echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
13497    echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
13498    if test $ac_cv_lib_readline_rl_completion_matches = yes; then
13499      cat >>confdefs.h <<\_ACEOF
13500  #define HAVE_DECL_RL_COMPLETION_MATCHES 1  #define HAVE_DECL_RL_COMPLETION_MATCHES 1
13501  EOF  _ACEOF
13502    
13503                          cat >> confdefs.h <<\EOF                          cat >>confdefs.h <<\_ACEOF
13504  #define HAVE_RL_COMPENTRY_FUNC_T 1  #define HAVE_RL_COMPENTRY_FUNC_T 1
13505  EOF  _ACEOF
13506    
 else  
   echo "$ac_t""no" 1>&6  
13507  fi  fi
13508    
13509  fi  fi
# Line 6519  fi Line 13511  fi
13511    
13512    
13513    
13514  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
13515  echo "configure:6524: checking For network code for nsocket.c" >&5  echo $ECHO_N "checking For network code for nsocket.c... $ECHO_C" >&6
13516  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
13517  #line 6526 "configure"  /* confdefs.h.  */
13518  #include "confdefs.h"  _ACEOF
13519    cat confdefs.h >>conftest.$ac_ext
13520    cat >>conftest.$ac_ext <<_ACEOF
13521    /* end confdefs.h.  */
13522    
13523  #include <sys/time.h>  #include <sys/time.h>
13524  #include <sys/types.h>  #include <sys/types.h>
# Line 6533  cat > conftest.$ac_ext <<EOF Line 13528  cat > conftest.$ac_ext <<EOF
13528  #include <fcntl.h>  #include <fcntl.h>
13529  #include <stdio.h>  #include <stdio.h>
13530    
13531  /************* for the sockets ******************/  /************* for the sockets ******************/
13532  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */
13533  #ifndef NO_UNAME  #ifndef NO_UNAME
13534  #   include <sys/utsname.h>     /* uname system call. */  #   include <sys/utsname.h>     /* uname system call. */
# Line 6542  cat > conftest.$ac_ext <<EOF Line 13537  cat > conftest.$ac_ext <<EOF
13537  #include <arpa/inet.h>          /* inet_ntoa() */  #include <arpa/inet.h>          /* inet_ntoa() */
13538  #include <netdb.h>              /* gethostbyname() */  #include <netdb.h>              /* gethostbyname() */
13539    
13540  int main() {  int
13541    main ()
13542    {
13543   connect(0,(struct sockaddr *)0,0);   connect(0,(struct sockaddr *)0,0);
13544      gethostbyname("jil");      gethostbyname("jil");
13545      socket(AF_INET, SOCK_STREAM, 0);      socket(AF_INET, SOCK_STREAM, 0);
13546            
13547  ; return 0; }    ;
13548  EOF    return 0;
13549  if { (eval echo configure:6553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
13550    rm -rf conftest*  _ACEOF
13551    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext conftest$ac_exeext
13552    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553      (eval $ac_link) 2>conftest.er1
13554      ac_status=$?
13555      grep -v '^ *+' conftest.er1 >conftest.err
13556      rm -f conftest.er1
13557      cat conftest.err >&5
13558      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559      (exit $ac_status); } &&
13560             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13561      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562      (eval $ac_try) 2>&5
13563      ac_status=$?
13564      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565      (exit $ac_status); }; } &&
13566             { ac_try='test -s conftest$ac_exeext'
13567      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568      (eval $ac_try) 2>&5
13569      ac_status=$?
13570      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571      (exit $ac_status); }; }; then
13572      cat >>confdefs.h <<\_ACEOF
13573  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
13574  EOF  _ACEOF
13575    
13576   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
13577    echo "${ECHO_T}yes" >&6
13578  else  else
13579    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
13580    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
13581    rm -rf conftest*  
13582    echo "$ac_t""no" 1>&6  echo "$as_me:$LINENO: result: no" >&5
13583    echo "${ECHO_T}no" >&6
13584  fi  fi
13585  rm -f conftest*  rm -f conftest.err conftest.$ac_objext \
13586          conftest$ac_exeext conftest.$ac_ext
13587    
13588    
13589  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for listen using fcntl" >&5
13590  echo "configure:6570: checking check for listen using fcntl" >&5  echo $ECHO_N "checking check for listen using fcntl... $ECHO_C" >&6
13591  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
13592  #line 6572 "configure"  /* confdefs.h.  */
13593  #include "confdefs.h"  _ACEOF
13594    cat confdefs.h >>conftest.$ac_ext
13595    cat >>conftest.$ac_ext <<_ACEOF
13596    /* end confdefs.h.  */
13597  #include <stdio.h>  #include <stdio.h>
13598  #include <fcntl.h>  #include <fcntl.h>
13599    
13600  int main() {  int
13601    main ()
13602    {
13603  FILE *fp=fopen("configure.in","r");  FILE *fp=fopen("configure.in","r");
13604    int orig;    int orig;
13605    orig = fcntl(fileno(fp), F_GETFL);    orig = fcntl(fileno(fp), F_GETFL);
13606    if (! (orig & O_NONBLOCK )) return 0;    if (! (orig & O_NONBLOCK )) return 0;
13607    
13608  ; return 0; }    ;
13609  EOF    return 0;
13610  if { (eval echo configure:6585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
13611    rm -rf conftest*  _ACEOF
13612    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
13613    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13614      (eval $ac_compile) 2>conftest.er1
13615      ac_status=$?
13616      grep -v '^ *+' conftest.er1 >conftest.err
13617      rm -f conftest.er1
13618      cat conftest.err >&5
13619      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620      (exit $ac_status); } &&
13621             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13622      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623      (eval $ac_try) 2>&5
13624      ac_status=$?
13625      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626      (exit $ac_status); }; } &&
13627             { ac_try='test -s conftest.$ac_objext'
13628      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629      (eval $ac_try) 2>&5
13630      ac_status=$?
13631      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632      (exit $ac_status); }; }; then
13633      cat >>confdefs.h <<\_ACEOF
13634  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
13635  EOF  _ACEOF
13636    
13637   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
13638    echo "${ECHO_T}yes" >&6
13639  else  else
13640    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
13641    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
13642    rm -rf conftest*  
13643    echo "$ac_t""no" 1>&6  echo "$as_me:$LINENO: result: no" >&5
13644    echo "${ECHO_T}no" >&6
13645  fi  fi
13646  rm -f conftest*  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13647    
13648    
13649    
13650    
13651  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for profil" >&5
13652  echo "configure:6604: checking for profil" >&5  echo $ECHO_N "checking for profil... $ECHO_C" >&6
13653  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if test "${ac_cv_func_profil+set}" = set; then
13654    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
13655  else  else
13656    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
13657  #line 6609 "configure"  /* confdefs.h.  */
13658  #include "confdefs.h"  _ACEOF
13659    cat confdefs.h >>conftest.$ac_ext
13660    cat >>conftest.$ac_ext <<_ACEOF
13661    /* end confdefs.h.  */
13662    /* Define profil to an innocuous variant, in case <limits.h> declares profil.
13663       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13664    #define profil innocuous_profil
13665    
13666  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
13667      which can conflict with char profil(); below.  */      which can conflict with char profil (); below.
13668  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13669  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char profil();  
13670    
13671  int main() {  #ifdef __STDC__
13672    # include <limits.h>
13673    #else
13674    # include <assert.h>
13675    #endif
13676    
13677    #undef profil
13678    
13679    /* Override any gcc2 internal prototype to avoid an error.  */
13680    #ifdef __cplusplus
13681    extern "C"
13682    {
13683    #endif
13684    /* We use char because int might match the return type of a gcc2
13685       builtin and then its argument prototype would still apply.  */
13686    char profil ();
13687  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
13688      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
13689      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
13690  #if defined (__stub_profil) || defined (__stub___profil)  #if defined (__stub_profil) || defined (__stub___profil)
13691  choke me  choke me
13692  #else  #else
13693  profil();  char (*f) () = profil;
13694    #endif
13695    #ifdef __cplusplus
13696    }
13697  #endif  #endif
13698    
13699  ; return 0; }  int
13700  EOF  main ()
13701  if { (eval echo configure:6632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
13702    rm -rf conftest*  return f != profil;
13703    eval "ac_cv_func_profil=yes"    ;
13704  else    return 0;
13705    echo "configure: failed program was:" >&5  }
13706    cat conftest.$ac_ext >&5  _ACEOF
13707    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
13708    eval "ac_cv_func_profil=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13709  fi    (eval $ac_link) 2>conftest.er1
13710  rm -f conftest*    ac_status=$?
13711  fi    grep -v '^ *+' conftest.er1 >conftest.err
13712      rm -f conftest.er1
13713  if eval "test \"`echo '$ac_cv_func_'profil`\" = yes"; then    cat conftest.err >&5
13714    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715      (exit $ac_status); } &&
13716             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13717      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718      (eval $ac_try) 2>&5
13719      ac_status=$?
13720      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721      (exit $ac_status); }; } &&
13722             { ac_try='test -s conftest$ac_exeext'
13723      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724      (eval $ac_try) 2>&5
13725      ac_status=$?
13726      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727      (exit $ac_status); }; }; then
13728      ac_cv_func_profil=yes
13729    else
13730      echo "$as_me: failed program was:" >&5
13731    sed 's/^/| /' conftest.$ac_ext >&5
13732    
13733    ac_cv_func_profil=no
13734    fi
13735    rm -f conftest.err conftest.$ac_objext \
13736          conftest$ac_exeext conftest.$ac_ext
13737    fi
13738    echo "$as_me:$LINENO: result: $ac_cv_func_profil" >&5
13739    echo "${ECHO_T}$ac_cv_func_profil" >&6
13740    if test $ac_cv_func_profil = yes; then
13741    :    :
13742  else  else
13743    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
13744  #define NO_PROFILE 1  #define NO_PROFILE 1
13745  EOF  _ACEOF
13746    
13747  fi  fi
13748    
13749    
13750  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for setenv" >&5
13751  echo "configure:6657: checking for setenv" >&5  echo $ECHO_N "checking for setenv... $ECHO_C" >&6
13752  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if test "${ac_cv_func_setenv+set}" = set; then
13753    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
13754  else  else
13755    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
13756  #line 6662 "configure"  /* confdefs.h.  */
13757  #include "confdefs.h"  _ACEOF
13758    cat confdefs.h >>conftest.$ac_ext
13759    cat >>conftest.$ac_ext <<_ACEOF
13760    /* end confdefs.h.  */
13761    /* Define setenv to an innocuous variant, in case <limits.h> declares setenv.
13762       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13763    #define setenv innocuous_setenv
13764    
13765  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
13766      which can conflict with char setenv(); below.  */      which can conflict with char setenv (); below.
13767  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13768  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char setenv();  
13769    
13770  int main() {  #ifdef __STDC__
13771    # include <limits.h>
13772    #else
13773    # include <assert.h>
13774    #endif
13775    
13776    #undef setenv
13777    
13778    /* Override any gcc2 internal prototype to avoid an error.  */
13779    #ifdef __cplusplus
13780    extern "C"
13781    {
13782    #endif
13783    /* We use char because int might match the return type of a gcc2
13784       builtin and then its argument prototype would still apply.  */
13785    char setenv ();
13786  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
13787      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
13788      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
13789  #if defined (__stub_setenv) || defined (__stub___setenv)  #if defined (__stub_setenv) || defined (__stub___setenv)
13790  choke me  choke me
13791  #else  #else
13792  setenv();  char (*f) () = setenv;
13793    #endif
13794    #ifdef __cplusplus
13795    }
13796  #endif  #endif
13797    
13798  ; return 0; }  int
13799  EOF  main ()
13800  if { (eval echo configure:6685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
13801    rm -rf conftest*  return f != setenv;
13802    eval "ac_cv_func_setenv=yes"    ;
13803  else    return 0;
13804    echo "configure: failed program was:" >&5  }
13805    cat conftest.$ac_ext >&5  _ACEOF
13806    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
13807    eval "ac_cv_func_setenv=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13808  fi    (eval $ac_link) 2>conftest.er1
13809  rm -f conftest*    ac_status=$?
13810  fi    grep -v '^ *+' conftest.er1 >conftest.err
13811      rm -f conftest.er1
13812  if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then    cat conftest.err >&5
13813    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814    cat >> confdefs.h <<\EOF    (exit $ac_status); } &&
13815             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13816      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817      (eval $ac_try) 2>&5
13818      ac_status=$?
13819      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820      (exit $ac_status); }; } &&
13821             { ac_try='test -s conftest$ac_exeext'
13822      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823      (eval $ac_try) 2>&5
13824      ac_status=$?
13825      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826      (exit $ac_status); }; }; then
13827      ac_cv_func_setenv=yes
13828    else
13829      echo "$as_me: failed program was:" >&5
13830    sed 's/^/| /' conftest.$ac_ext >&5
13831    
13832    ac_cv_func_setenv=no
13833    fi
13834    rm -f conftest.err conftest.$ac_objext \
13835          conftest$ac_exeext conftest.$ac_ext
13836    fi
13837    echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
13838    echo "${ECHO_T}$ac_cv_func_setenv" >&6
13839    if test $ac_cv_func_setenv = yes; then
13840      cat >>confdefs.h <<\_ACEOF
13841  #define HAVE_SETENV 1  #define HAVE_SETENV 1
13842  EOF  _ACEOF
13843    
13844  else  else
13845    echo "$ac_t""no" 1>&6    no_setenv=1
 no_setenv=1  
13846  fi  fi
13847    
13848    
13849  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
13850  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for putenv" >&5
13851  echo "configure:6711: checking for putenv" >&5  echo $ECHO_N "checking for putenv... $ECHO_C" >&6
13852  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if test "${ac_cv_func_putenv+set}" = set; then
13853    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
13854  else  else
13855    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
13856  #line 6716 "configure"  /* confdefs.h.  */
13857  #include "confdefs.h"  _ACEOF
13858    cat confdefs.h >>conftest.$ac_ext
13859    cat >>conftest.$ac_ext <<_ACEOF
13860    /* end confdefs.h.  */
13861    /* Define putenv to an innocuous variant, in case <limits.h> declares putenv.
13862       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13863    #define putenv innocuous_putenv
13864    
13865  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
13866      which can conflict with char putenv(); below.  */      which can conflict with char putenv (); below.
13867  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13868  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char putenv();  
13869    
13870  int main() {  #ifdef __STDC__
13871    # include <limits.h>
13872    #else
13873    # include <assert.h>
13874    #endif
13875    
13876    #undef putenv
13877    
13878    /* Override any gcc2 internal prototype to avoid an error.  */
13879    #ifdef __cplusplus
13880    extern "C"
13881    {
13882    #endif
13883    /* We use char because int might match the return type of a gcc2
13884       builtin and then its argument prototype would still apply.  */
13885    char putenv ();
13886  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
13887      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
13888      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
13889  #if defined (__stub_putenv) || defined (__stub___putenv)  #if defined (__stub_putenv) || defined (__stub___putenv)
13890  choke me  choke me
13891  #else  #else
13892  putenv();  char (*f) () = putenv;
13893    #endif
13894    #ifdef __cplusplus
13895    }
13896  #endif  #endif
13897    
13898  ; return 0; }  int
13899  EOF  main ()
13900  if { (eval echo configure:6739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
13901    rm -rf conftest*  return f != putenv;
13902    eval "ac_cv_func_putenv=yes"    ;
13903  else    return 0;
13904    echo "configure: failed program was:" >&5  }
13905    cat conftest.$ac_ext >&5  _ACEOF
13906    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
13907    eval "ac_cv_func_putenv=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13908  fi    (eval $ac_link) 2>conftest.er1
13909  rm -f conftest*    ac_status=$?
13910  fi    grep -v '^ *+' conftest.er1 >conftest.err
13911      rm -f conftest.er1
13912  if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then    cat conftest.err >&5
13913    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914    cat >> confdefs.h <<\EOF    (exit $ac_status); } &&
13915             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13916      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917      (eval $ac_try) 2>&5
13918      ac_status=$?
13919      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920      (exit $ac_status); }; } &&
13921             { ac_try='test -s conftest$ac_exeext'
13922      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923      (eval $ac_try) 2>&5
13924      ac_status=$?
13925      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926      (exit $ac_status); }; }; then
13927      ac_cv_func_putenv=yes
13928    else
13929      echo "$as_me: failed program was:" >&5
13930    sed 's/^/| /' conftest.$ac_ext >&5
13931    
13932    ac_cv_func_putenv=no
13933    fi
13934    rm -f conftest.err conftest.$ac_objext \
13935          conftest$ac_exeext conftest.$ac_ext
13936    fi
13937    echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
13938    echo "${ECHO_T}$ac_cv_func_putenv" >&6
13939    if test $ac_cv_func_putenv = yes; then
13940      cat >>confdefs.h <<\_ACEOF
13941  #define HAVE_PUTENV 1  #define HAVE_PUTENV 1
13942  EOF  _ACEOF
13943    
 else  
   echo "$ac_t""no" 1>&6  
13944  fi  fi
13945    
13946    
13947  fi  fi
13948    
13949  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for _cleanup" >&5
13950  echo "configure:6765: checking for _cleanup" >&5  echo $ECHO_N "checking for _cleanup... $ECHO_C" >&6
13951  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if test "${ac_cv_func__cleanup+set}" = set; then
13952    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
13953  else  else
13954    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
13955  #line 6770 "configure"  /* confdefs.h.  */
13956  #include "confdefs.h"  _ACEOF
13957    cat confdefs.h >>conftest.$ac_ext
13958    cat >>conftest.$ac_ext <<_ACEOF
13959    /* end confdefs.h.  */
13960    /* Define _cleanup to an innocuous variant, in case <limits.h> declares _cleanup.
13961       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13962    #define _cleanup innocuous__cleanup
13963    
13964  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
13965      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup (); below.
13966  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13967  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char _cleanup();  
13968    
13969  int main() {  #ifdef __STDC__
13970    # include <limits.h>
13971    #else
13972    # include <assert.h>
13973    #endif
13974    
13975    #undef _cleanup
13976    
13977    /* Override any gcc2 internal prototype to avoid an error.  */
13978    #ifdef __cplusplus
13979    extern "C"
13980    {
13981    #endif
13982    /* We use char because int might match the return type of a gcc2
13983       builtin and then its argument prototype would still apply.  */
13984    char _cleanup ();
13985  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
13986      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
13987      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
13988  #if defined (__stub__cleanup) || defined (__stub____cleanup)  #if defined (__stub__cleanup) || defined (__stub____cleanup)
13989  choke me  choke me
13990  #else  #else
13991  _cleanup();  char (*f) () = _cleanup;
13992    #endif
13993    #ifdef __cplusplus
13994    }
13995  #endif  #endif
13996    
13997  ; return 0; }  int
13998  EOF  main ()
13999  if { (eval echo configure:6793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
14000    rm -rf conftest*  return f != _cleanup;
14001    eval "ac_cv_func__cleanup=yes"    ;
14002  else    return 0;
14003    echo "configure: failed program was:" >&5  }
14004    cat conftest.$ac_ext >&5  _ACEOF
14005    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
14006    eval "ac_cv_func__cleanup=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14007  fi    (eval $ac_link) 2>conftest.er1
14008  rm -f conftest*    ac_status=$?
14009  fi    grep -v '^ *+' conftest.er1 >conftest.err
14010      rm -f conftest.er1
14011  if eval "test \"`echo '$ac_cv_func_'_cleanup`\" = yes"; then    cat conftest.err >&5
14012    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013    cat >> confdefs.h <<\EOF    (exit $ac_status); } &&
14014             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14015      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016      (eval $ac_try) 2>&5
14017      ac_status=$?
14018      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019      (exit $ac_status); }; } &&
14020             { ac_try='test -s conftest$ac_exeext'
14021      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022      (eval $ac_try) 2>&5
14023      ac_status=$?
14024      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025      (exit $ac_status); }; }; then
14026      ac_cv_func__cleanup=yes
14027    else
14028      echo "$as_me: failed program was:" >&5
14029    sed 's/^/| /' conftest.$ac_ext >&5
14030    
14031    ac_cv_func__cleanup=no
14032    fi
14033    rm -f conftest.err conftest.$ac_objext \
14034          conftest$ac_exeext conftest.$ac_ext
14035    fi
14036    echo "$as_me:$LINENO: result: $ac_cv_func__cleanup" >&5
14037    echo "${ECHO_T}$ac_cv_func__cleanup" >&6
14038    if test $ac_cv_func__cleanup = yes; then
14039      cat >>confdefs.h <<\_ACEOF
14040  #define USE_CLEANUP 1  #define USE_CLEANUP 1
14041  EOF  _ACEOF
14042    
 else  
   echo "$ac_t""no" 1>&6  
14043  fi  fi
14044    
14045    
14046  gcl_ok=no  gcl_ok=no
14047    
14048  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
14049  #line 6819 "configure"  /* confdefs.h.  */
14050  #include "confdefs.h"  _ACEOF
14051    cat confdefs.h >>conftest.$ac_ext
14052    cat >>conftest.$ac_ext <<_ACEOF
14053    /* end confdefs.h.  */
14054  #include <ctype.h>  #include <ctype.h>
14055  EOF  
14056    _ACEOF
14057  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14058    egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then    $EGREP "LITTLE_ENDIAN" >/dev/null 2>&1; then
   rm -rf conftest*  
14059    gcl_ok=yes    gcl_ok=yes
14060  else  else
   rm -rf conftest*  
14061    gcl_ok=noo    gcl_ok=noo
14062  fi  fi
14063  rm -f conftest*  rm -f conftest*
14064    
14065  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
14066  cat >> confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
14067  #define ENDIAN_ALREADY_DEFINED 1  #define ENDIAN_ALREADY_DEFINED 1
14068  EOF  _ACEOF
14069    
14070  fi  fi
14071    
# Line 6842  fi Line 14075  fi
14075    
14076    
14077  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
14078  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
14079  echo "configure:6847: 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
14080    
14081  case $system in  case $system in
14082         OSF*)         OSF*)
14083          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
14084  #define USE_FIONBIO 1  #define USE_FIONBIO 1
14085  EOF  _ACEOF
14086    
14087          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
14088    echo "${ECHO_T}FIONBIO" >&6
14089          ;;          ;;
14090      SunOS-4*)      SunOS-4*)
14091          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
14092  #define USE_FIONBIO 1  #define USE_FIONBIO 1
14093  EOF  _ACEOF
14094    
14095          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
14096    echo "${ECHO_T}FIONBIO" >&6
14097          ;;          ;;
14098      ULTRIX-4.*)      ULTRIX-4.*)
14099          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
14100  #define USE_FIONBIO 1  #define USE_FIONBIO 1
14101  EOF  _ACEOF
14102    
14103          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
14104    echo "${ECHO_T}FIONBIO" >&6
14105          ;;          ;;
14106      *)      *)
14107          echo "$ac_t""O_NONBLOCK" 1>&6          echo "$as_me:$LINENO: result: O_NONBLOCK" >&5
14108    echo "${ECHO_T}O_NONBLOCK" >&6
14109          ;;          ;;
14110  esac  esac
14111    
14112    
14113  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SV_ONSTACK" >&5
14114  echo "configure:6878: checking check for SV_ONSTACK" >&5  echo $ECHO_N "checking check for SV_ONSTACK... $ECHO_C" >&6
14115  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
14116  #line 6880 "configure"  /* confdefs.h.  */
14117  #include "confdefs.h"  _ACEOF
14118    cat confdefs.h >>conftest.$ac_ext
14119    cat >>conftest.$ac_ext <<_ACEOF
14120    /* end confdefs.h.  */
14121  #include <signal.h>  #include <signal.h>
14122  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
14123    
14124  int main() {  int
14125    main ()
14126    {
14127    
14128  ; return 0; }    ;
14129  EOF    return 0;
14130  if { (eval echo configure:6889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
14131    rm -rf conftest*  _ACEOF
14132    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
14133    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14134      (eval $ac_compile) 2>conftest.er1
14135      ac_status=$?
14136      grep -v '^ *+' conftest.er1 >conftest.err
14137      rm -f conftest.er1
14138      cat conftest.err >&5
14139      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140      (exit $ac_status); } &&
14141             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14142      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143      (eval $ac_try) 2>&5
14144      ac_status=$?
14145      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146      (exit $ac_status); }; } &&
14147             { ac_try='test -s conftest.$ac_objext'
14148      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149      (eval $ac_try) 2>&5
14150      ac_status=$?
14151      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152      (exit $ac_status); }; }; then
14153      cat >>confdefs.h <<\_ACEOF
14154  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
14155  EOF  _ACEOF
14156    
14157    
14158     echo "$as_me:$LINENO: result: yes" >&5
14159   echo "$ac_t""yes" 1>&6  echo "${ECHO_T}yes" >&6
14160  else  else
14161    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
14162    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
14163    rm -rf conftest*  
14164    echo "$ac_t""no" 1>&6  echo "$as_me:$LINENO: result: no" >&5
14165    echo "${ECHO_T}no" >&6
14166  fi  fi
14167  rm -f conftest*  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14168    
14169  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGSYS" >&5
14170  echo "configure:6906: checking check for SIGSYS" >&5  echo $ECHO_N "checking check for SIGSYS... $ECHO_C" >&6
14171  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
14172  #line 6908 "configure"  /* confdefs.h.  */
14173  #include "confdefs.h"  _ACEOF
14174    cat confdefs.h >>conftest.$ac_ext
14175    cat >>conftest.$ac_ext <<_ACEOF
14176    /* end confdefs.h.  */
14177  #include <signal.h>  #include <signal.h>
14178  int joe=SIGSYS;  int joe=SIGSYS;
14179    
14180  int main() {  int
14181    main ()
14182    {
14183    
14184  ; return 0; }    ;
14185  EOF    return 0;
14186  if { (eval echo configure:6917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
14187    rm -rf conftest*  _ACEOF
14188    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
14189    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14190      (eval $ac_compile) 2>conftest.er1
14191      ac_status=$?
14192      grep -v '^ *+' conftest.er1 >conftest.err
14193      rm -f conftest.er1
14194      cat conftest.err >&5
14195      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196      (exit $ac_status); } &&
14197             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14198      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199      (eval $ac_try) 2>&5
14200      ac_status=$?
14201      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202      (exit $ac_status); }; } &&
14203             { ac_try='test -s conftest.$ac_objext'
14204      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205      (eval $ac_try) 2>&5
14206      ac_status=$?
14207      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208      (exit $ac_status); }; }; then
14209      cat >>confdefs.h <<\_ACEOF
14210  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
14211  EOF  _ACEOF
14212    
14213    
14214     echo "$as_me:$LINENO: result: yes" >&5
14215   echo "$ac_t""yes" 1>&6  echo "${ECHO_T}yes" >&6
14216  else  else
14217    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
14218    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
14219    rm -rf conftest*  
14220    echo "$ac_t""no" 1>&6  echo "$as_me:$LINENO: result: no" >&5
14221    echo "${ECHO_T}no" >&6
14222  fi  fi
14223  rm -f conftest*  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14224    
14225    
14226  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGEMT" >&5
14227  echo "configure:6935: checking check for SIGEMT" >&5  echo $ECHO_N "checking check for SIGEMT... $ECHO_C" >&6
14228  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
14229  #line 6937 "configure"  /* confdefs.h.  */
14230  #include "confdefs.h"  _ACEOF
14231    cat confdefs.h >>conftest.$ac_ext
14232    cat >>conftest.$ac_ext <<_ACEOF
14233    /* end confdefs.h.  */
14234  #include <signal.h>  #include <signal.h>
14235  int joe=SIGEMT;  int joe=SIGEMT;
14236    
14237  int main() {  int
14238    main ()
14239    {
14240    
14241  ; return 0; }    ;
14242  EOF    return 0;
14243  if { (eval echo configure:6946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
14244    rm -rf conftest*  _ACEOF
14245    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
14246    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14247      (eval $ac_compile) 2>conftest.er1
14248      ac_status=$?
14249      grep -v '^ *+' conftest.er1 >conftest.err
14250      rm -f conftest.er1
14251      cat conftest.err >&5
14252      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253      (exit $ac_status); } &&
14254             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14255      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256      (eval $ac_try) 2>&5
14257      ac_status=$?
14258      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259      (exit $ac_status); }; } &&
14260             { ac_try='test -s conftest.$ac_objext'
14261      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262      (eval $ac_try) 2>&5
14263      ac_status=$?
14264      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265      (exit $ac_status); }; }; then
14266      cat >>confdefs.h <<\_ACEOF
14267  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
14268  EOF  _ACEOF
14269    
14270    
14271   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
14272    echo "${ECHO_T}yes" >&6
14273  else  else
14274    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
14275    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
14276    rm -rf conftest*  
14277    echo "$ac_t""no" 1>&6  echo "$as_me:$LINENO: result: no" >&5
14278    echo "${ECHO_T}no" >&6
14279  fi  fi
14280  rm -f conftest*  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14281    
14282    
14283    
14284    
14285  #if test $use = "386-linux" ; then  #if test $use = "386-linux" ; then
14286          for ac_hdr in asm/sigcontext.h  
14287    for ac_header in asm/sigcontext.h
14288  do  do
14289  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14290  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
14291  echo "configure:6970: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
14292  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14293    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
14294  else    echo $ECHO_N "(cached) $ECHO_C" >&6
14295    cat > conftest.$ac_ext <<EOF  fi
14296  #line 6975 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14297  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14298  #include <$ac_hdr>  else
14299  EOF    # Is the header compilable?
14300  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
14301  { (eval echo configure:6980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14302  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
14303  if test -z "$ac_err"; then  /* confdefs.h.  */
14304    rm -rf conftest*  _ACEOF
14305    eval "ac_cv_header_$ac_safe=yes"  cat confdefs.h >>conftest.$ac_ext
14306  else  cat >>conftest.$ac_ext <<_ACEOF
14307    echo "$ac_err" >&5  /* end confdefs.h.  */
14308    echo "configure: failed program was:" >&5  $ac_includes_default
14309    cat conftest.$ac_ext >&5  #include <$ac_header>
14310    rm -rf conftest*  _ACEOF
14311    eval "ac_cv_header_$ac_safe=no"  rm -f conftest.$ac_objext
14312  fi  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14313  rm -f conftest*    (eval $ac_compile) 2>conftest.er1
14314      ac_status=$?
14315      grep -v '^ *+' conftest.er1 >conftest.err
14316      rm -f conftest.er1
14317      cat conftest.err >&5
14318      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319      (exit $ac_status); } &&
14320             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14321      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322      (eval $ac_try) 2>&5
14323      ac_status=$?
14324      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325      (exit $ac_status); }; } &&
14326             { ac_try='test -s conftest.$ac_objext'
14327      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328      (eval $ac_try) 2>&5
14329      ac_status=$?
14330      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331      (exit $ac_status); }; }; then
14332      ac_header_compiler=yes
14333    else
14334      echo "$as_me: failed program was:" >&5
14335    sed 's/^/| /' conftest.$ac_ext >&5
14336    
14337    ac_header_compiler=no
14338    fi
14339    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14340    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14341    echo "${ECHO_T}$ac_header_compiler" >&6
14342    
14343    # Is the header present?
14344    echo "$as_me:$LINENO: checking $ac_header presence" >&5
14345    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14346    cat >conftest.$ac_ext <<_ACEOF
14347    /* confdefs.h.  */
14348    _ACEOF
14349    cat confdefs.h >>conftest.$ac_ext
14350    cat >>conftest.$ac_ext <<_ACEOF
14351    /* end confdefs.h.  */
14352    #include <$ac_header>
14353    _ACEOF
14354    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14355      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14356      ac_status=$?
14357      grep -v '^ *+' conftest.er1 >conftest.err
14358      rm -f conftest.er1
14359      cat conftest.err >&5
14360      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361      (exit $ac_status); } >/dev/null; then
14362      if test -s conftest.err; then
14363        ac_cpp_err=$ac_c_preproc_warn_flag
14364        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14365      else
14366        ac_cpp_err=
14367      fi
14368    else
14369      ac_cpp_err=yes
14370  fi  fi
14371  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
14372    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  
   
14373  else  else
14374    echo "$ac_t""no" 1>&6    echo "$as_me: failed program was:" >&5
14375    sed 's/^/| /' conftest.$ac_ext >&5
14376    
14377      ac_header_preproc=no
14378    fi
14379    rm -f conftest.err conftest.$ac_ext
14380    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14381    echo "${ECHO_T}$ac_header_preproc" >&6
14382    
14383    # So?  What about this header?
14384    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14385      yes:no: )
14386        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14387    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14388        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14389    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14390        ac_header_preproc=yes
14391        ;;
14392      no:yes:* )
14393        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14394    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14395        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14396    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14397        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14398    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14399        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14400    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14401        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14402    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14403        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14404    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14405        (
14406          cat <<\_ASBOX
14407    ## ------------------------------------------ ##
14408    ## Report this to the AC_PACKAGE_NAME lists.  ##
14409    ## ------------------------------------------ ##
14410    _ASBOX
14411        ) |
14412          sed "s/^/$as_me: WARNING:     /" >&2
14413        ;;
14414    esac
14415    echo "$as_me:$LINENO: checking for $ac_header" >&5
14416    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14417    if eval "test \"\${$as_ac_Header+set}\" = set"; then
14418      echo $ECHO_N "(cached) $ECHO_C" >&6
14419    else
14420      eval "$as_ac_Header=\$ac_header_preproc"
14421    fi
14422    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14423    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14424    
14425    fi
14426    if test `eval echo '${'$as_ac_Header'}'` = yes; then
14427      cat >>confdefs.h <<_ACEOF
14428    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14429    _ACEOF
14430    
14431  fi  fi
14432    
14433  done  done
14434    
14435          for ac_hdr in asm/signal.h  
14436    for ac_header in asm/signal.h
14437  do  do
14438  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14439  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
14440  echo "configure:7010: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
14441  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14442    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
14443      echo $ECHO_N "(cached) $ECHO_C" >&6
14444    fi
14445    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14446    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14447    else
14448      # Is the header compilable?
14449    echo "$as_me:$LINENO: checking $ac_header usability" >&5
14450    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14451    cat >conftest.$ac_ext <<_ACEOF
14452    /* confdefs.h.  */
14453    _ACEOF
14454    cat confdefs.h >>conftest.$ac_ext
14455    cat >>conftest.$ac_ext <<_ACEOF
14456    /* end confdefs.h.  */
14457    $ac_includes_default
14458    #include <$ac_header>
14459    _ACEOF
14460    rm -f conftest.$ac_objext
14461    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14462      (eval $ac_compile) 2>conftest.er1
14463      ac_status=$?
14464      grep -v '^ *+' conftest.er1 >conftest.err
14465      rm -f conftest.er1
14466      cat conftest.err >&5
14467      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468      (exit $ac_status); } &&
14469             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14470      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471      (eval $ac_try) 2>&5
14472      ac_status=$?
14473      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474      (exit $ac_status); }; } &&
14475             { ac_try='test -s conftest.$ac_objext'
14476      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477      (eval $ac_try) 2>&5
14478      ac_status=$?
14479      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480      (exit $ac_status); }; }; then
14481      ac_header_compiler=yes
14482    else
14483      echo "$as_me: failed program was:" >&5
14484    sed 's/^/| /' conftest.$ac_ext >&5
14485    
14486    ac_header_compiler=no
14487    fi
14488    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14489    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14490    echo "${ECHO_T}$ac_header_compiler" >&6
14491    
14492    # Is the header present?
14493    echo "$as_me:$LINENO: checking $ac_header presence" >&5
14494    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14495    cat >conftest.$ac_ext <<_ACEOF
14496    /* confdefs.h.  */
14497    _ACEOF
14498    cat confdefs.h >>conftest.$ac_ext
14499    cat >>conftest.$ac_ext <<_ACEOF
14500    /* end confdefs.h.  */
14501    #include <$ac_header>
14502    _ACEOF
14503    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14504      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14505      ac_status=$?
14506      grep -v '^ *+' conftest.er1 >conftest.err
14507      rm -f conftest.er1
14508      cat conftest.err >&5
14509      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510      (exit $ac_status); } >/dev/null; then
14511      if test -s conftest.err; then
14512        ac_cpp_err=$ac_c_preproc_warn_flag
14513        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14514      else
14515        ac_cpp_err=
14516      fi
14517  else  else
14518    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
 #line 7015 "configure"  
 #include "confdefs.h"  
 #include <$ac_hdr>  
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:7020: \"$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"  
14519  fi  fi
14520  rm -f conftest*  if test -z "$ac_cpp_err"; then
14521  fi    ac_header_preproc=yes
14522  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  else
14523    echo "$ac_t""yes" 1>&6    echo "$as_me: failed program was:" >&5
14524      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  sed 's/^/| /' conftest.$ac_ext >&5
14525    cat >> confdefs.h <<EOF  
14526  #define $ac_tr_hdr 1    ac_header_preproc=no
14527  EOF  fi
14528    rm -f conftest.err conftest.$ac_ext
14529    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14530    echo "${ECHO_T}$ac_header_preproc" >&6
14531    
14532    # So?  What about this header?
14533    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14534      yes:no: )
14535        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14536    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14537        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14538    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14539        ac_header_preproc=yes
14540        ;;
14541      no:yes:* )
14542        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14543    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14544        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14545    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14546        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14547    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14548        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14549    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14550        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14551    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14552        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14553    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14554        (
14555          cat <<\_ASBOX
14556    ## ------------------------------------------ ##
14557    ## Report this to the AC_PACKAGE_NAME lists.  ##
14558    ## ------------------------------------------ ##
14559    _ASBOX
14560        ) |
14561          sed "s/^/$as_me: WARNING:     /" >&2
14562        ;;
14563    esac
14564    echo "$as_me:$LINENO: checking for $ac_header" >&5
14565    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14566    if eval "test \"\${$as_ac_Header+set}\" = set"; then
14567      echo $ECHO_N "(cached) $ECHO_C" >&6
14568  else  else
14569    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=\$ac_header_preproc"
14570    fi
14571    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14572    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14573    
14574  fi  fi
14575    if test `eval echo '${'$as_ac_Header'}'` = yes; then
14576      cat >>confdefs.h <<_ACEOF
14577    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14578    _ACEOF
14579    
14580    fi
14581    
14582  done  done
14583    
14584          echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for sigcontext..." >&5
14585  echo "configure:7047: checking for sigcontext..." >&5  echo $ECHO_N "checking for sigcontext...... $ECHO_C" >&6
14586          cat > conftest.$ac_ext <<EOF          cat >conftest.$ac_ext <<_ACEOF
14587  #line 7049 "configure"  /* confdefs.h.  */
14588  #include "confdefs.h"  _ACEOF
14589    cat confdefs.h >>conftest.$ac_ext
14590    cat >>conftest.$ac_ext <<_ACEOF
14591    /* end confdefs.h.  */
14592  #include <signal.h>  #include <signal.h>
14593          
14594  int main() {  int
14595    main ()
14596    {
14597    
14598          struct sigcontext foo;          struct sigcontext foo;
14599          
14600  ; return 0; }    ;
14601  EOF    return 0;
14602  if { (eval echo configure:7059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
14603    rm -rf conftest*  _ACEOF
14604      rm -f conftest.$ac_objext
14605    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14606      (eval $ac_compile) 2>conftest.er1
14607      ac_status=$?
14608      grep -v '^ *+' conftest.er1 >conftest.err
14609      rm -f conftest.er1
14610      cat conftest.err >&5
14611      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612      (exit $ac_status); } &&
14613             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14614      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615      (eval $ac_try) 2>&5
14616      ac_status=$?
14617      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618      (exit $ac_status); }; } &&
14619             { ac_try='test -s conftest.$ac_objext'
14620      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621      (eval $ac_try) 2>&5
14622      ac_status=$?
14623      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624      (exit $ac_status); }; }; then
14625    
14626          sigcontext_works=1;          sigcontext_works=1;
14627          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
14628  #define SIGNAL_H_HAS_SIGCONTEXT 1  #define SIGNAL_H_HAS_SIGCONTEXT 1
14629  EOF  _ACEOF
14630    
14631            echo "$as_me:$LINENO: result: sigcontext in signal.h" >&5
14632    echo "${ECHO_T}sigcontext in signal.h" >&6
14633    
         echo "$ac_t""sigcontext in signal.h" 1>&6  
         
14634  else  else
14635    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
14636    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
14637    rm -rf conftest*  
14638    sigcontext_works=0;  sigcontext_works=0;
14639           echo "$ac_t""sigcontext NOT in signal.h" 1>&6           echo "$as_me:$LINENO: result: sigcontext NOT in signal.h" >&5
14640          echo "${ECHO_T}sigcontext NOT in signal.h" >&6
14641    
14642  fi  fi
14643  rm -f conftest*  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14644         if test "$sigcontext_works" = 0 ; then         if test "$sigcontext_works" = 0 ; then
14645         echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6         echo "$as_me:$LINENO: checking for sigcontext..." >&5
14646  echo "configure:7080: checking for sigcontext..." >&5  echo $ECHO_N "checking for sigcontext...... $ECHO_C" >&6
14647         cat > conftest.$ac_ext <<EOF         cat >conftest.$ac_ext <<_ACEOF
14648  #line 7082 "configure"  /* confdefs.h.  */
14649  #include "confdefs.h"  _ACEOF
14650    cat confdefs.h >>conftest.$ac_ext
14651    cat >>conftest.$ac_ext <<_ACEOF
14652    /* end confdefs.h.  */
14653  #include <signal.h>  #include <signal.h>
14654               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H
14655               #include <asm/sigcontext.h>               #include <asm/sigcontext.h>
14656               #endif               #endif
14657               #ifdef HAVE_ASM_SIGNAL_H                         #ifdef HAVE_ASM_SIGNAL_H
14658               #include <asm/signal.h>               #include <asm/signal.h>
14659               #endif               #endif
14660              
14661  int main() {  int
14662    main ()
14663    {
14664    
14665          struct sigcontext foo;          struct sigcontext foo;
14666            
14667  ; return 0; }    ;
14668  EOF    return 0;
14669  if { (eval echo configure:7098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
14670    rm -rf conftest*  _ACEOF
14671      rm -f conftest.$ac_objext
14672          cat >> confdefs.h <<\EOF  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14673      (eval $ac_compile) 2>conftest.er1
14674      ac_status=$?
14675      grep -v '^ *+' conftest.er1 >conftest.err
14676      rm -f conftest.er1
14677      cat conftest.err >&5
14678      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679      (exit $ac_status); } &&
14680             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14681      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682      (eval $ac_try) 2>&5
14683      ac_status=$?
14684      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685      (exit $ac_status); }; } &&
14686             { ac_try='test -s conftest.$ac_objext'
14687      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688      (eval $ac_try) 2>&5
14689      ac_status=$?
14690      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691      (exit $ac_status); }; }; then
14692    
14693            cat >>confdefs.h <<\_ACEOF
14694  #define HAVE_SIGCONTEXT 1  #define HAVE_SIGCONTEXT 1
14695  EOF  _ACEOF
14696    
14697            echo "$as_me:$LINENO: result: sigcontext in asm files" >&5
14698    echo "${ECHO_T}sigcontext in asm files" >&6
14699    
         echo "$ac_t""sigcontext in asm files" 1>&6  
           
14700  else  else
14701    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
14702    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
14703    rm -rf conftest*  
14704      
14705          echo "$ac_t""no sigcontext found" 1>&6          echo "$as_me:$LINENO: result: no sigcontext found" >&5
14706        echo "${ECHO_T}no sigcontext found" >&6
14707    
14708  fi  fi
14709  rm -f conftest*  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14710    
14711    
14712         fi         fi
14713  #       echo 'foo() {}' > conftest1.c  #       echo 'foo() {}' > conftest1.c
14714  #       $CC -S conftest1.c  #       $CC -S conftest1.c
14715  #       use_underscore=0          #       use_underscore=0
14716  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi
14717  #       if test $use_underscore = 0 ; then  #       if test $use_underscore = 0 ; then
14718  #            MPI_FILE=mpi-386_no_under.o  #            MPI_FILE=mpi-386_no_under.o
# Line 7135  rm -f conftest* Line 14730  rm -f conftest*
14730    
14731  # 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.
14732  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
14733  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
14734  echo "configure:7140: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14735  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if test "${ac_cv_path_EMACS+set}" = set; then
14736    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
14737  else  else
14738    case "$EMACS" in    case $EMACS in
14739    /*)    [\\/]* | ?:[\\/]*)
14740    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.
14741    ;;    ;;
   ?:/*)                    
   ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.  
   ;;  
14742    *)    *)
14743    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14744    ac_dummy="$PATH"  for as_dir in $PATH
14745    for ac_dir in $ac_dummy; do  do
14746      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
14747      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
14748        ac_cv_path_EMACS="$ac_dir/$ac_word"    for ac_exec_ext in '' $ac_executable_extensions; do
14749        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14750      fi      ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext"
14751    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14752    IFS="$ac_save_ifs"      break 2
14753      fi
14754    done
14755    done
14756    
14757    ;;    ;;
14758  esac  esac
14759  fi  fi
14760  EMACS="$ac_cv_path_EMACS"  EMACS=$ac_cv_path_EMACS
14761    
14762  if test -n "$EMACS"; then  if test -n "$EMACS"; then
14763    echo "$ac_t""$EMACS" 1>&6    echo "$as_me:$LINENO: result: $EMACS" >&5
14764    echo "${ECHO_T}$EMACS" >&6
14765  else  else
14766    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
14767    echo "${ECHO_T}no" >&6
14768  fi  fi
14769    
14770    
# Line 7183  cat >> conftest.el <<EOF Line 14782  cat >> conftest.el <<EOF
14782    (message ans))    (message ans))
14783  EOF  EOF
14784    
14785  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs site lisp directory" >&5
14786  echo "configure:7188: checking emacs site lisp directory" >&5  echo $ECHO_N "checking emacs site lisp directory... $ECHO_C" >&6
14787  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then
14788          if [ "$EMACS" != "" ] ; then          if [ "$EMACS" != "" ] ; then
14789                  EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d | sed -e /^Warn/d`                  EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d | sed -e /^Warn/d`
# Line 7192  if [ "$EMACS_SITE_LISP" = "unknown" ] ; Line 14791  if [ "$EMACS_SITE_LISP" = "unknown" ] ;
14791                  EMACS_SITE_LISP=""                  EMACS_SITE_LISP=""
14792          fi          fi
14793  fi  fi
14794  echo "$ac_t""$EMACS_SITE_LISP" 1>&6  echo "$as_me:$LINENO: result: $EMACS_SITE_LISP" >&5
14795    echo "${ECHO_T}$EMACS_SITE_LISP" >&6
14796    
14797    
14798  # check for where the emacs site lisp default.el is  # check for where the emacs site lisp default.el is
# Line 7207  cat >> conftest.el <<EOF Line 14807  cat >> conftest.el <<EOF
14807    (message ans))    (message ans))
14808  EOF  EOF
14809    
14810  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs default.el" >&5
14811  echo "configure:7212: checking emacs default.el" >&5  echo $ECHO_N "checking emacs default.el... $ECHO_C" >&6
14812  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
14813          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 `
14814  else  else
# Line 7219  if  test -f "${EMACS_DEFAULT_EL}"  ; the Line 14819  if  test -f "${EMACS_DEFAULT_EL}"  ; the
14819       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el
14820    fi    fi
14821  fi  fi
14822  echo "$ac_t""$EMACS_DEFAULT_EL" 1>&6  echo "$as_me:$LINENO: result: $EMACS_DEFAULT_EL" >&5
14823    echo "${ECHO_T}$EMACS_DEFAULT_EL" >&6
14824    
14825    
14826    
# Line 7230  cat >> conftest.el <<EOF Line 14831  cat >> conftest.el <<EOF
14831  (let ((ans "") file (tem Info-default-directory-list))  (let ((ans "") file (tem Info-default-directory-list))
14832   (while tem   (while tem
14833     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))
14834            (setq ans (file-name-as-directory (car tem)))                    (setq ans (file-name-as-directory (car tem)))
14835            (setq tem nil) ))            (setq tem nil) ))
14836     (setq tem (cdr tem)))     (setq tem (cdr tem)))
14837    (message ans))    (message ans))
14838  EOF  EOF
14839    
14840  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs info/dir" >&5
14841  echo "configure:7241: checking emacs info/dir" >&5  echo $ECHO_N "checking emacs info/dir... $ECHO_C" >&6
14842  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
14843      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
14844  else  else
# Line 7251  if test -f /usr/share/info/dir ; then Line 14852  if test -f /usr/share/info/dir ; then
14852  else true;  else true;
14853  fi  fi
14854  fi  fi
14855  echo "$ac_t""$INFO_DIR" 1>&6  echo "$as_me:$LINENO: result: $INFO_DIR" >&5
14856    echo "${ECHO_T}$INFO_DIR" >&6
14857    
14858    
14859  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for tcl/tk" >&5
14860  echo "configure:7259: checking for tcl/tk" >&5  echo $ECHO_N "checking for tcl/tk... $ECHO_C" >&6
14861    
14862    
14863  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 7265  cat >> conftest.tcl <<EOF Line 14867  cat >> conftest.tcl <<EOF
14867  set dir [set tcl_library]  set dir [set tcl_library]
14868  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
14869        puts  [set dir]        puts  [set dir]
14870        exit              exit
14871    }    }
14872  set dir [file dirname [set tcl_library]]  set dir [file dirname [set tcl_library]]
14873  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
# Line 7277  EOF Line 14879  EOF
14879    
14880  # 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.
14881  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
14882  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
14883  echo "configure:7282: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14884  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if test "${ac_cv_prog_TCLSH+set}" = set; then
14885    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
14886  else  else
14887    if test -n "$TCLSH"; then    if test -n "$TCLSH"; then
14888    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
14889  else  else
14890    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14891    ac_dummy="$PATH"  for as_dir in $PATH
14892    for ac_dir in $ac_dummy; do  do
14893      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
14894      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
14895        ac_cv_prog_TCLSH="tclsh"    for ac_exec_ext in '' $ac_executable_extensions; do
14896        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14897      fi      ac_cv_prog_TCLSH="tclsh"
14898    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14899    IFS="$ac_save_ifs"      break 2
14900      fi
14901    done
14902    done
14903    
14904    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"
14905  fi  fi
14906  fi  fi
14907  TCLSH="$ac_cv_prog_TCLSH"  TCLSH=$ac_cv_prog_TCLSH
14908  if test -n "$TCLSH"; then  if test -n "$TCLSH"; then
14909    echo "$ac_t""$TCLSH" 1>&6    echo "$as_me:$LINENO: result: $TCLSH" >&5
14910    echo "${ECHO_T}$TCLSH" >&6
14911  else  else
14912    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
14913    echo "${ECHO_T}no" >&6
14914  fi  fi
14915    
14916  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})
# Line 7368  if test -f ${TK_CONFIG_PREFIX}/../includ Line 14976  if test -f ${TK_CONFIG_PREFIX}/../includ
14976    else    else
14977    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then
14978      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
14979    fi        fi
14980  fi  fi
14981  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then
14982    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include
# Line 7382  if test -f ${TK_CONFIG_PREFIX}/../bin/tc Line 14990  if test -f ${TK_CONFIG_PREFIX}/../bin/tc
14990     TCL_LIBS="-L${TK_CONFIG_PREFIX}/../bin -ltk${TCL_VERSION_DOT_FREE} -ltcl${TCL_VERSION_DOT_FREE}"     TCL_LIBS="-L${TK_CONFIG_PREFIX}/../bin -ltk${TCL_VERSION_DOT_FREE} -ltcl${TCL_VERSION_DOT_FREE}"
14991     TCL_STUB_LIBS="-L${TK_CONFIG_PREFIX}/lib -ltkstub${TCL_VERSION_DOT_FREE} -ltclstub${TCL_VERSION_DOT_FREE}"     TCL_STUB_LIBS="-L${TK_CONFIG_PREFIX}/lib -ltkstub${TCL_VERSION_DOT_FREE} -ltclstub${TCL_VERSION_DOT_FREE}"
14992  else  else
14993    echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for main in -llieee" >&5
14994  echo "configure:7387: checking for main in -llieee" >&5  echo $ECHO_N "checking for main in -llieee... $ECHO_C" >&6
14995  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_lieee_main+set}" = set; then
14996  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  
14997  else  else
14998    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
14999  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
15000  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
15001  #line 7395 "configure"  /* confdefs.h.  */
15002  #include "confdefs.h"  _ACEOF
15003    cat confdefs.h >>conftest.$ac_ext
15004    cat >>conftest.$ac_ext <<_ACEOF
15005    /* end confdefs.h.  */
15006    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:7402: \"$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"  
15007    
15008  fi  int
15009  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  main ()
15010    echo "$ac_t""yes" 1>&6  {
15011    main ();
15012      ;
15013      return 0;
15014    }
15015    _ACEOF
15016    rm -f conftest.$ac_objext conftest$ac_exeext
15017    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15018      (eval $ac_link) 2>conftest.er1
15019      ac_status=$?
15020      grep -v '^ *+' conftest.er1 >conftest.err
15021      rm -f conftest.er1
15022      cat conftest.err >&5
15023      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024      (exit $ac_status); } &&
15025             { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15026      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027      (eval $ac_try) 2>&5
15028      ac_status=$?
15029      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030      (exit $ac_status); }; } &&
15031             { ac_try='test -s conftest$ac_exeext'
15032      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033      (eval $ac_try) 2>&5
15034      ac_status=$?
15035      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036      (exit $ac_status); }; }; then
15037      ac_cv_lib_lieee_main=yes
15038    else
15039      echo "$as_me: failed program was:" >&5
15040    sed 's/^/| /' conftest.$ac_ext >&5
15041    
15042    ac_cv_lib_lieee_main=no
15043    fi
15044    rm -f conftest.err conftest.$ac_objext \
15045          conftest$ac_exeext conftest.$ac_ext
15046    LIBS=$ac_check_lib_save_LIBS
15047    fi
15048    echo "$as_me:$LINENO: result: $ac_cv_lib_lieee_main" >&5
15049    echo "${ECHO_T}$ac_cv_lib_lieee_main" >&6
15050    if test $ac_cv_lib_lieee_main = yes; then
15051    have_ieee=1    have_ieee=1
15052  else  else
15053    echo "$ac_t""no" 1>&6    have_ieee=0
 have_ieee=0  
15054  fi  fi
15055    
15056    if test "$have_ieee" = "0" ; then    if test "$have_ieee" = "0" ; then
# Line 7449  fi Line 15083  fi
15083    
15084    
15085  if test -d "${TK_CONFIG_PREFIX}" ; then  if test -d "${TK_CONFIG_PREFIX}" ; then
15086  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
15087    echo "${ECHO_T}using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" >&6
15088  else  else
15089  echo "$ac_t""not found" 1>&6  echo "$as_me:$LINENO: result: not found" >&5
15090    echo "${ECHO_T}not found" >&6
15091  fi  fi
15092    
15093  NOTIFY=$enable_notify  NOTIFY=$enable_notify
15094    
15095    
15096          
15097    
15098    
15099  # for sgbc the mprotect capabilities.  # for sgbc the mprotect capabilities.
# Line 7465  NOTIFY=$enable_notify Line 15101  NOTIFY=$enable_notify
15101  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
15102    
15103  if test "$use" != "mingw" ; then  if test "$use" != "mingw" ; then
15104    echo $ac_n "checking alloca""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking alloca" >&5
15105  echo "configure:7470: checking alloca" >&5  echo $ECHO_N "checking alloca... $ECHO_C" >&6
15106    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
15107    gcl_ok=no    gcl_ok=no
15108  else  else
15109    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
15110  #line 7475 "configure"  /* confdefs.h.  */
15111  #include "confdefs.h"  _ACEOF
15112    cat confdefs.h >>conftest.$ac_ext
15113    cat >>conftest.$ac_ext <<_ACEOF
15114    /* end confdefs.h.  */
15115  #include <stdio.h>  #include <stdio.h>
15116    int main() { exit(alloca(500) != NULL ? 0 : 1);}    int main() { exit(alloca(500) != NULL ? 0 : 1);}
15117  EOF  _ACEOF
15118  if { (eval echo configure:7480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
15119  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15120      (eval $ac_link) 2>&5
15121      ac_status=$?
15122      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15124      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125      (eval $ac_try) 2>&5
15126      ac_status=$?
15127      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128      (exit $ac_status); }; }; then
15129    :    :
15130  else  else
15131    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
15132    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
15133    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
15134    gcl_ok=yes  
15135    ( exit $ac_status )
15136    gcl_ok=yes
15137  fi  fi
15138  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15139  fi  fi
   
15140    if test $gcl_ok = yes ; then    if test $gcl_ok = yes ; then
15141      echo "$ac_t""yes" 1>&6      echo "$as_me:$LINENO: result: yes" >&5
15142      cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
15143        cat >>confdefs.h <<\_ACEOF
15144  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
15145  EOF  _ACEOF
15146    
15147    else    else
15148      if test "$cross_compiling" = yes; then      if test "$cross_compiling" = yes; then
15149    gcl_ok=no    gcl_ok=no
15150  else  else
15151    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
15152  #line 7503 "configure"  /* confdefs.h.  */
15153  #include "confdefs.h"  _ACEOF
15154    cat confdefs.h >>conftest.$ac_ext
15155    cat >>conftest.$ac_ext <<_ACEOF
15156    /* end confdefs.h.  */
15157  #include <alloca.h>  #include <alloca.h>
15158      int main() { exit(alloca(500) != NULL ? 0 : 1)}      int main() { exit(alloca(500) != NULL ? 0 : 1)}
15159  EOF  _ACEOF
15160  if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
15161  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15162      (eval $ac_link) 2>&5
15163      ac_status=$?
15164      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15166      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167      (eval $ac_try) 2>&5
15168      ac_status=$?
15169      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170      (exit $ac_status); }; }; then
15171    :    :
15172  else  else
15173    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
15174    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
15175    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
15176    gcl_ok=yes  
15177    ( exit $ac_status )
15178    gcl_ok=yes
15179  fi  fi
15180  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15181  fi  fi
   
15182      if test $gcl_ok = yes ; then      if test $gcl_ok = yes ; then
15183        echo "$ac_t""yes" 1>&6        echo "$as_me:$LINENO: result: yes" >&5
15184        cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
15185          cat >>confdefs.h <<\_ACEOF
15186  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
15187  EOF  _ACEOF
15188    
15189        cat >> confdefs.h <<\EOF        cat >>confdefs.h <<\_ACEOF
15190  #define NEED_ALLOCA_H 1  #define NEED_ALLOCA_H 1
15191  EOF  _ACEOF
15192    
15193      fi      fi
15194    fi    fi
15195    
15196    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
15197    echo "${ECHO_T}no" >&6 ; fi
15198  fi  fi
15199    
15200    
# Line 7538  fi Line 15203  fi
15203  # dlopen etc  # dlopen etc
15204  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)
15205  # 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
15206  #  #
15207    
15208  # what machine this is, and include then a machine specific hdr.  # what machine this is, and include then a machine specific hdr.
15209  # and machine specific defs.  # and machine specific defs.
# Line 7558  fi Line 15223  fi
15223    
15224  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
15225  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
15226  echo $ac_n "checking for buggy gcc version from redhat""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for buggy gcc version from redhat" >&5
15227  echo "configure:7563: checking for buggy gcc version from redhat" >&5  echo $ECHO_N "checking for buggy gcc version from redhat... $ECHO_C" >&6
15228  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
15229     then     then
15230          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1
15231          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
15232  #define BROKEN_O4_OPT 1  #define BROKEN_O4_OPT 1
15233  EOF  _ACEOF
15234    
15235    
           
15236          echo ODIR_DEBUG=-O >> makedefsafter          echo ODIR_DEBUG=-O >> makedefsafter
15237          echo >> makedefsafter          echo >> makedefsafter
15238          echo "$ac_t""yes .. turning off -O4" 1>&6          echo "$as_me:$LINENO: result: yes .. turning off -O4" >&5
15239    echo "${ECHO_T}yes .. turning off -O4" >&6
15240     else     else
15241          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
15242  fi  echo "${ECHO_T}no" >&6
15243    fi
15244    
15245  LIBS="`echo $LDFLAGS | sed 's,gcl.script,../unixport/gcl.script,g'` $TLDFLAGS $LIBS $TLIBS"  LIBS="`echo $LDFLAGS | sed 's,gcl.script,../unixport/gcl.script,g'` $TLDFLAGS $LIBS $TLIBS"
15246    
# Line 7595  O2FLAGS=$TO2FLAGS Line 15262  O2FLAGS=$TO2FLAGS
15262    
15263  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
15264     LD_STACK_FLAGS="-Wl,--stack=$enable_cssize"     LD_STACK_FLAGS="-Wl,--stack=$enable_cssize"
15265      
15266  fi  fi
15267    
15268  if test -f h/$use.defs  ; then  if test -f h/$use.defs  ; then
15269    
15270      
15271    trap '' 1 2 15                                            ac_config_files="$ac_config_files makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp"
15272  cat > confcache <<\EOF  cat >confcache <<\_ACEOF
15273  # This file is a shell script that caches the results of configure  # This file is a shell script that caches the results of configure
15274  # tests run on this system so they can be shared between configure  # tests run on this system so they can be shared between configure
15275  # scripts and configure runs.  It is not useful on other systems.  # scripts and configure runs, see configure's option --config-cache.
15276  # 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
15277    # want to keep, you may remove or edit it.
15278  #  #
15279  # By default, configure uses ./config.cache as the cache file,  # config.status only pays attention to the cache file if you give it
15280  # 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.  
15281  #  #
15282  EOF  # `ac_cv_env_foo' variables (set or unset) will be overridden when
15283    # loading this file, other *unset* `ac_cv_foo' will be assigned the
15284    # following values.
15285    
15286    _ACEOF
15287    
15288  # The following way of writing the cache mishandles newlines in values,  # The following way of writing the cache mishandles newlines in values,
15289  # but we know of no workaround that is simple, portable, and efficient.  # but we know of no workaround that is simple, portable, and efficient.
15290  # So, don't put newlines in cache variables' values.  # So, don't put newlines in cache variables' values.
15291  # Ultrix sh set writes to stderr and can't be redirected directly,  # Ultrix sh set writes to stderr and can't be redirected directly,
15292  # 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.
15293  (set) 2>&1 |  {
15294    case `(ac_space=' '; set | grep ac_space) 2>&1` in    (set) 2>&1 |
15295    *ac_space=\ *)      case `(ac_space=' '; set | grep ac_space) 2>&1` in
15296      # `set' does not quote correctly, so add quotes (double-quote substitution      *ac_space=\ *)
15297      # turns \\\\ into \\, and sed turns \\ into \).        # `set' does not quote correctly, so add quotes (double-quote
15298      sed -n \        # substitution turns \\\\ into \\, and sed turns \\ into \).
15299        -e "s/'/'\\\\''/g" \        sed -n \
15300        -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"          "s/'/'\\\\''/g;
15301      ;;            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15302    *)        ;;
15303      # `set' quotes correctly as required by POSIX, so do not add quotes.      *)
15304      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.
15305      ;;        sed -n \
15306    esac >> confcache          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15307  if cmp -s $cache_file confcache; then        ;;
15308    :      esac;
15309  else  } |
15310      sed '
15311         t clear
15312         : clear
15313         s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15314         t end
15315         /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15316         : end' >>confcache
15317    if diff $cache_file confcache >/dev/null 2>&1; then :; else
15318    if test -w $cache_file; then    if test -w $cache_file; then
15319      echo "updating cache $cache_file"      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15320      cat confcache > $cache_file      cat confcache >$cache_file
15321    else    else
15322      echo "not updating unwritable cache $cache_file"      echo "not updating unwritable cache $cache_file"
15323    fi    fi
15324  fi  fi
15325  rm -f confcache  rm -f confcache
15326    
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
15327  test "x$prefix" = xNONE && prefix=$ac_default_prefix  test "x$prefix" = xNONE && prefix=$ac_default_prefix
15328  # Let make expand exec_prefix.  # Let make expand exec_prefix.
15329  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15330    
15331  # Any assignment to VPATH causes Sun make to only execute  # VPATH may cause trouble with some makes, so we remove $(srcdir),
15332  # the first set of double-colon rules, so remove it if not needed.  # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15333  # 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
15334    # (actually we leave an empty line to preserve line numbers).
15335  if test "x$srcdir" = x.; then  if test "x$srcdir" = x.; then
15336    ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'    ac_vpsub='/^[  ]*VPATH[        ]*=/{
15337    s/:*\$(srcdir):*/:/;
15338    s/:*\${srcdir}:*/:/;
15339    s/:*@srcdir@:*/:/;
15340    s/^\([^=]*=[     ]*\):*/\1/;
15341    s/:*$//;
15342    s/^[^=]*=[       ]*$//;
15343    }'
15344  fi  fi
15345    
 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15  
   
15346  DEFS=-DHAVE_CONFIG_H  DEFS=-DHAVE_CONFIG_H
15347    
15348  # Without the "./", some shells look in PATH for config.status.  ac_libobjs=
15349  : ${CONFIG_STATUS=./config.status}  ac_ltlibobjs=
15350    for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15351      # 1. Remove the extension, and $U if already installed.
15352      ac_i=`echo "$ac_i" |
15353             sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15354      # 2. Add them.
15355      ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15356      ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15357    done
15358    LIBOBJS=$ac_libobjs
15359    
15360  echo creating $CONFIG_STATUS  LTLIBOBJS=$ac_ltlibobjs
15361  rm -f $CONFIG_STATUS  
15362  cat > $CONFIG_STATUS <<EOF  
15363  #! /bin/sh  
15364  # Generated automatically by configure.  : ${CONFIG_STATUS=./config.status}
15365    ac_clean_files_save=$ac_clean_files
15366    ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15367    { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15368    echo "$as_me: creating $CONFIG_STATUS" >&6;}
15369    cat >$CONFIG_STATUS <<_ACEOF
15370    #! $SHELL
15371    # Generated by $as_me.
15372  # 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  
 #  
15373  # Compiler output produced by configure, useful for debugging  # Compiler output produced by configure, useful for debugging
15374  # configure, is in ./config.log if it exists.  # configure, is in config.log if it exists.
15375    
15376  ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"  debug=false
15377  for ac_option  ac_cs_recheck=false
15378    ac_cs_silent=false
15379    SHELL=\${CONFIG_SHELL-$SHELL}
15380    _ACEOF
15381    
15382    cat >>$CONFIG_STATUS <<\_ACEOF
15383    ## --------------------- ##
15384    ## M4sh Initialization.  ##
15385    ## --------------------- ##
15386    
15387    # Be Bourne compatible
15388    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15389      emulate sh
15390      NULLCMD=:
15391      # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15392      # is contrary to our usage.  Disable this feature.
15393      alias -g '${1+"$@"}'='"$@"'
15394    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15395      set -o posix
15396    fi
15397    DUALCASE=1; export DUALCASE # for MKS sh
15398    
15399    # Support unset when possible.
15400    if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15401      as_unset=unset
15402    else
15403      as_unset=false
15404    fi
15405    
15406    
15407    # Work around bugs in pre-3.0 UWIN ksh.
15408    $as_unset ENV MAIL MAILPATH
15409    PS1='$ '
15410    PS2='> '
15411    PS4='+ '
15412    
15413    # NLS nuisances.
15414    for as_var in \
15415      LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15416      LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15417      LC_TELEPHONE LC_TIME
15418    do
15419      if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15420        eval $as_var=C; export $as_var
15421      else
15422        $as_unset $as_var
15423      fi
15424    done
15425    
15426    # Required to use basename.
15427    if expr a : '\(a\)' >/dev/null 2>&1; then
15428      as_expr=expr
15429    else
15430      as_expr=false
15431    fi
15432    
15433    if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15434      as_basename=basename
15435    else
15436      as_basename=false
15437    fi
15438    
15439    
15440    # Name of the executable.
15441    as_me=`$as_basename "$0" ||
15442    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15443             X"$0" : 'X\(//\)$' \| \
15444             X"$0" : 'X\(/\)$' \| \
15445             .     : '\(.\)' 2>/dev/null ||
15446    echo X/"$0" |
15447        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15448              /^X\/\(\/\/\)$/{ s//\1/; q; }
15449              /^X\/\(\/\).*/{ s//\1/; q; }
15450              s/.*/./; q'`
15451    
15452    
15453    # PATH needs CR, and LINENO needs CR and PATH.
15454    # Avoid depending upon Character Ranges.
15455    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15456    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15457    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15458    as_cr_digits='0123456789'
15459    as_cr_alnum=$as_cr_Letters$as_cr_digits
15460    
15461    # The user is always right.
15462    if test "${PATH_SEPARATOR+set}" != set; then
15463      echo "#! /bin/sh" >conf$$.sh
15464      echo  "exit 0"   >>conf$$.sh
15465      chmod +x conf$$.sh
15466      if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15467        PATH_SEPARATOR=';'
15468      else
15469        PATH_SEPARATOR=:
15470      fi
15471      rm -f conf$$.sh
15472    fi
15473    
15474    
15475      as_lineno_1=$LINENO
15476      as_lineno_2=$LINENO
15477      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15478      test "x$as_lineno_1" != "x$as_lineno_2" &&
15479      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15480      # Find who we are.  Look in the path if we contain no path at all
15481      # relative or not.
15482      case $0 in
15483        *[\\/]* ) as_myself=$0 ;;
15484        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15485    for as_dir in $PATH
15486    do
15487      IFS=$as_save_IFS
15488      test -z "$as_dir" && as_dir=.
15489      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15490    done
15491    
15492           ;;
15493      esac
15494      # We did not find ourselves, most probably we were run as `sh COMMAND'
15495      # in which case we are not to be found in the path.
15496      if test "x$as_myself" = x; then
15497        as_myself=$0
15498      fi
15499      if test ! -f "$as_myself"; then
15500        { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15501    echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15502       { (exit 1); exit 1; }; }
15503      fi
15504      case $CONFIG_SHELL in
15505      '')
15506        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15507    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15508  do  do
15509    case "\$ac_option" in    IFS=$as_save_IFS
15510      test -z "$as_dir" && as_dir=.
15511      for as_base in sh bash ksh sh5; do
15512             case $as_dir in
15513             /*)
15514               if ("$as_dir/$as_base" -c '
15515      as_lineno_1=$LINENO
15516      as_lineno_2=$LINENO
15517      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15518      test "x$as_lineno_1" != "x$as_lineno_2" &&
15519      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15520                 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15521                 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15522                 CONFIG_SHELL=$as_dir/$as_base
15523                 export CONFIG_SHELL
15524                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15525               fi;;
15526             esac
15527           done
15528    done
15529    ;;
15530      esac
15531    
15532      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15533      # uniformly replaced by the line number.  The first 'sed' inserts a
15534      # line-number line before each line; the second 'sed' does the real
15535      # work.  The second script uses 'N' to pair each line-number line
15536      # with the numbered line, and appends trailing '-' during
15537      # substitution so that $LINENO is not a special case at line end.
15538      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15539      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15540      sed '=' <$as_myself |
15541        sed '
15542          N
15543          s,$,-,
15544          : loop
15545          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15546          t loop
15547          s,-$,,
15548          s,^['$as_cr_digits']*\n,,
15549        ' >$as_me.lineno &&
15550      chmod +x $as_me.lineno ||
15551        { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15552    echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15553       { (exit 1); exit 1; }; }
15554    
15555      # Don't try to exec as it changes $[0], causing all sort of problems
15556      # (the dirname of $[0] is not the place where we might find the
15557      # original and so on.  Autoconf is especially sensible to this).
15558      . ./$as_me.lineno
15559      # Exit status is that of the last command.
15560      exit
15561    }
15562    
15563    
15564    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15565      *c*,-n*) ECHO_N= ECHO_C='
15566    ' ECHO_T='      ' ;;
15567      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15568      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15569    esac
15570    
15571    if expr a : '\(a\)' >/dev/null 2>&1; then
15572      as_expr=expr
15573    else
15574      as_expr=false
15575    fi
15576    
15577    rm -f conf$$ conf$$.exe conf$$.file
15578    echo >conf$$.file
15579    if ln -s conf$$.file conf$$ 2>/dev/null; then
15580      # We could just check for DJGPP; but this test a) works b) is more generic
15581      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15582      if test -f conf$$.exe; then
15583        # Don't use ln at all; we don't have any links
15584        as_ln_s='cp -p'
15585      else
15586        as_ln_s='ln -s'
15587      fi
15588    elif ln conf$$.file conf$$ 2>/dev/null; then
15589      as_ln_s=ln
15590    else
15591      as_ln_s='cp -p'
15592    fi
15593    rm -f conf$$ conf$$.exe conf$$.file
15594    
15595    if mkdir -p . 2>/dev/null; then
15596      as_mkdir_p=:
15597    else
15598      test -d ./-p && rmdir ./-p
15599      as_mkdir_p=false
15600    fi
15601    
15602    as_executable_p="test -f"
15603    
15604    # Sed expression to map a string onto a valid CPP name.
15605    as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15606    
15607    # Sed expression to map a string onto a valid variable name.
15608    as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15609    
15610    
15611    # IFS
15612    # We need space, tab and new line, in precisely that order.
15613    as_nl='
15614    '
15615    IFS="   $as_nl"
15616    
15617    # CDPATH.
15618    $as_unset CDPATH
15619    
15620    exec 6>&1
15621    
15622    # Open the log real soon, to keep \$[0] and so on meaningful, and to
15623    # report actual input values of CONFIG_FILES etc. instead of their
15624    # values after options handling.  Logging --version etc. is OK.
15625    exec 5>>config.log
15626    {
15627      echo
15628      sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15629    ## Running $as_me. ##
15630    _ASBOX
15631    } >&5
15632    cat >&5 <<_CSEOF
15633    
15634    This file was extended by $as_me, which was
15635    generated by GNU Autoconf 2.59.  Invocation command line was
15636    
15637      CONFIG_FILES    = $CONFIG_FILES
15638      CONFIG_HEADERS  = $CONFIG_HEADERS
15639      CONFIG_LINKS    = $CONFIG_LINKS
15640      CONFIG_COMMANDS = $CONFIG_COMMANDS
15641      $ $0 $@
15642    
15643    _CSEOF
15644    echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15645    echo >&5
15646    _ACEOF
15647    
15648    # Files that config.status was made for.
15649    if test -n "$ac_config_files"; then
15650      echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15651    fi
15652    
15653    if test -n "$ac_config_headers"; then
15654      echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15655    fi
15656    
15657    if test -n "$ac_config_links"; then
15658      echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15659    fi
15660    
15661    if test -n "$ac_config_commands"; then
15662      echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15663    fi
15664    
15665    cat >>$CONFIG_STATUS <<\_ACEOF
15666    
15667    ac_cs_usage="\
15668    \`$as_me' instantiates files from templates according to the
15669    current configuration.
15670    
15671    Usage: $0 [OPTIONS] [FILE]...
15672    
15673      -h, --help       print this help, then exit
15674      -V, --version    print version number, then exit
15675      -q, --quiet      do not print progress messages
15676      -d, --debug      don't remove temporary files
15677          --recheck    update $as_me by reconfiguring in the same conditions
15678      --file=FILE[:TEMPLATE]
15679                       instantiate the configuration file FILE
15680      --header=FILE[:TEMPLATE]
15681                       instantiate the configuration header FILE
15682    
15683    Configuration files:
15684    $config_files
15685    
15686    Configuration headers:
15687    $config_headers
15688    
15689    Report bugs to <bug-autoconf@gnu.org>."
15690    _ACEOF
15691    
15692    cat >>$CONFIG_STATUS <<_ACEOF
15693    ac_cs_version="\\
15694    config.status
15695    configured by $0, generated by GNU Autoconf 2.59,
15696      with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15697    
15698    Copyright (C) 2003 Free Software Foundation, Inc.
15699    This config.status script is free software; the Free Software Foundation
15700    gives unlimited permission to copy, distribute and modify it."
15701    srcdir=$srcdir
15702    _ACEOF
15703    
15704    cat >>$CONFIG_STATUS <<\_ACEOF
15705    # If no file are specified by the user, then we need to provide default
15706    # value.  By we need to know if files were specified by the user.
15707    ac_need_defaults=:
15708    while test $# != 0
15709    do
15710      case $1 in
15711      --*=*)
15712        ac_option=`expr "x$1" : 'x\([^=]*\)='`
15713        ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15714        ac_shift=:
15715        ;;
15716      -*)
15717        ac_option=$1
15718        ac_optarg=$2
15719        ac_shift=shift
15720        ;;
15721      *) # This is not an option, so the user has probably given explicit
15722         # arguments.
15723         ac_option=$1
15724         ac_need_defaults=false;;
15725      esac
15726    
15727      case $ac_option in
15728      # Handling of the options.
15729    _ACEOF
15730    cat >>$CONFIG_STATUS <<\_ACEOF
15731    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15732      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"      ac_cs_recheck=: ;;
15733      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;    --version | --vers* | -V )
15734    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)      echo "$ac_cs_version"; exit 0 ;;
15735      echo "$CONFIG_STATUS generated by autoconf version 2.13"    --he | --h)
15736      exit 0 ;;      # Conflict between --help and --header
15737    -help | --help | --hel | --he | --h)      { { echo "$as_me:$LINENO: error: ambiguous option: $1
15738      echo "\$ac_cs_usage"; exit 0 ;;  Try \`$0 --help' for more information." >&5
15739    *) echo "\$ac_cs_usage"; exit 1 ;;  echo "$as_me: error: ambiguous option: $1
15740    Try \`$0 --help' for more information." >&2;}
15741       { (exit 1); exit 1; }; };;
15742      --help | --hel | -h )
15743        echo "$ac_cs_usage"; exit 0 ;;
15744      --debug | --d* | -d )
15745        debug=: ;;
15746      --file | --fil | --fi | --f )
15747        $ac_shift
15748        CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15749        ac_need_defaults=false;;
15750      --header | --heade | --head | --hea )
15751        $ac_shift
15752        CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15753        ac_need_defaults=false;;
15754      -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15755      | -silent | --silent | --silen | --sile | --sil | --si | --s)
15756        ac_cs_silent=: ;;
15757    
15758      # This is an error.
15759      -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15760    Try \`$0 --help' for more information." >&5
15761    echo "$as_me: error: unrecognized option: $1
15762    Try \`$0 --help' for more information." >&2;}
15763       { (exit 1); exit 1; }; } ;;
15764    
15765      *) ac_config_targets="$ac_config_targets $1" ;;
15766    
15767      esac
15768      shift
15769    done
15770    
15771    ac_configure_extra_args=
15772    
15773    if $ac_cs_silent; then
15774      exec 6>/dev/null
15775      ac_configure_extra_args="$ac_configure_extra_args --silent"
15776    fi
15777    
15778    _ACEOF
15779    cat >>$CONFIG_STATUS <<_ACEOF
15780    if \$ac_cs_recheck; then
15781      echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15782      exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15783    fi
15784    
15785    _ACEOF
15786    
15787    
15788    
15789    
15790    
15791    cat >>$CONFIG_STATUS <<\_ACEOF
15792    for ac_config_target in $ac_config_targets
15793    do
15794      case "$ac_config_target" in
15795      # Handling of arguments.
15796      "makedefc" ) CONFIG_FILES="$CONFIG_FILES makedefc" ;;
15797      "windows/gcl.iss" ) CONFIG_FILES="$CONFIG_FILES windows/gcl.iss" ;;
15798      "windows/sysdir.bat" ) CONFIG_FILES="$CONFIG_FILES windows/sysdir.bat" ;;
15799      "windows/install.lsp" ) CONFIG_FILES="$CONFIG_FILES windows/install.lsp" ;;
15800      "h/gclincl.h" ) CONFIG_HEADERS="$CONFIG_HEADERS h/gclincl.h" ;;
15801      *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15802    echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15803       { (exit 1); exit 1; }; };;
15804    esac    esac
15805  done  done
15806    
15807  ac_given_srcdir=$srcdir  # If the user did not use the arguments to specify the items to instantiate,
15808    # then the envvar interface is used.  Set only those that are not.
15809    # We use the long form for the default assignment because of an extremely
15810    # bizarre bug on SunOS 4.1.3.
15811    if $ac_need_defaults; then
15812      test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15813      test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15814    fi
15815    
15816  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  # Have a temporary directory for convenience.  Make it in the build tree
15817  EOF  # simply because there is no reason to put it here, and in addition,
15818  cat >> $CONFIG_STATUS <<EOF  # creating and moving files from /tmp can sometimes cause problems.
15819    # Create a temporary directory, and hook for its removal unless debugging.
15820    $debug ||
15821    {
15822      trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15823      trap '{ (exit 1); exit 1; }' 1 2 13 15
15824    }
15825    
15826  # Protect against being on the right side of a sed subst in config.status.  # Create a (secure) tmp directory for tmp files.
 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;  
  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF  
 $ac_vpsub  
 $extrasub  
 s%@SHELL@%$SHELL%g  
 s%@CFLAGS@%$CFLAGS%g  
 s%@CPPFLAGS@%$CPPFLAGS%g  
 s%@CXXFLAGS@%$CXXFLAGS%g  
 s%@FFLAGS@%$FFLAGS%g  
 s%@DEFS@%$DEFS%g  
 s%@LDFLAGS@%$LDFLAGS%g  
 s%@LIBS@%$LIBS%g  
 s%@exec_prefix@%$exec_prefix%g  
 s%@prefix@%$prefix%g  
 s%@program_transform_name@%$program_transform_name%g  
 s%@bindir@%$bindir%g  
 s%@sbindir@%$sbindir%g  
 s%@libexecdir@%$libexecdir%g  
 s%@datadir@%$datadir%g  
 s%@sysconfdir@%$sysconfdir%g  
 s%@sharedstatedir@%$sharedstatedir%g  
 s%@localstatedir@%$localstatedir%g  
 s%@libdir@%$libdir%g  
 s%@includedir@%$includedir%g  
 s%@oldincludedir@%$oldincludedir%g  
 s%@infodir@%$infodir%g  
 s%@mandir@%$mandir%g  
 s%@VERSION@%$VERSION%g  
 s%@host@%$host%g  
 s%@host_alias@%$host_alias%g  
 s%@host_cpu@%$host_cpu%g  
 s%@host_vendor@%$host_vendor%g  
 s%@host_os@%$host_os%g  
 s%@PROCESSOR_FLAGS@%$PROCESSOR_FLAGS%g  
 s%@CC@%$CC%g  
 s%@CPP@%$CPP%g  
 s%@AWK@%$AWK%g  
 s%@MAKEINFO@%$MAKEINFO%g  
 s%@GMP@%$GMP%g  
 s%@GMPDIR@%$GMPDIR%g  
 s%@X_CFLAGS@%$X_CFLAGS%g  
 s%@X_PRE_LIBS@%$X_PRE_LIBS%g  
 s%@X_LIBS@%$X_LIBS%g  
 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g  
 s%@BUILD_BFD@%$BUILD_BFD%g  
 s%@LITTLE_END@%$LITTLE_END%g  
 s%@PAGEWIDTH@%$PAGEWIDTH%g  
 s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g  
 s%@PARGCLDIR@%$PARGCLDIR%g  
 s%@FLISP@%$FLISP%g  
 s%@SYSTEM@%$SYSTEM%g  
 s%@CLSTANDARD@%$CLSTANDARD%g  
 s%@RL_OBJS@%$RL_OBJS%g  
 s%@RL_LIB@%$RL_LIB%g  
 s%@NO_PROFILE@%$NO_PROFILE%g  
 s%@HAVE_SETENV@%$HAVE_SETENV%g  
 s%@HAVE_PUTENV@%$HAVE_PUTENV%g  
 s%@USE_CLEANUP@%$USE_CLEANUP%g  
 s%@ENDIAN_ALREADY_DEFINED@%$ENDIAN_ALREADY_DEFINED%g  
 s%@HAVE_SV_ONSTACK@%$HAVE_SV_ONSTACK%g  
 s%@HAVE_SIGSYS@%$HAVE_SIGSYS%g  
 s%@HAVE_SIGEMT@%$HAVE_SIGEMT%g  
 s%@EMACS@%$EMACS%g  
 s%@EMACS_SITE_LISP@%$EMACS_SITE_LISP%g  
 s%@EMACS_DEFAULT_EL@%$EMACS_DEFAULT_EL%g  
 s%@INFO_DIR@%$INFO_DIR%g  
 s%@TCLSH@%$TCLSH%g  
 s%@TK_CONFIG_PREFIX@%$TK_CONFIG_PREFIX%g  
 s%@TK_LIBRARY@%$TK_LIBRARY%g  
 s%@TCL_LIBRARY@%$TCL_LIBRARY%g  
 s%@TK_XINCLUDES@%$TK_XINCLUDES%g  
 s%@TK_INCLUDE@%$TK_INCLUDE%g  
 s%@TCL_INCLUDE@%$TCL_INCLUDE%g  
 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g  
 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g  
 s%@TK_XLIBSW@%$TK_XLIBSW%g  
 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g  
 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g  
 s%@TCL_LIBS@%$TCL_LIBS%g  
 s%@TCL_STUB_LIBS@%$TCL_STUB_LIBS%g  
 s%@NOTIFY@%$NOTIFY%g  
 s%@BROKEN_O4_OPT@%$BROKEN_O4_OPT%g  
 s%@FINAL_CFLAGS@%$FINAL_CFLAGS%g  
 s%@NIFLAGS@%$NIFLAGS%g  
 s%@O3FLAGS@%$O3FLAGS%g  
 s%@O2FLAGS@%$O2FLAGS%g  
 s%@EXTRA_LOBJS@%$EXTRA_LOBJS%g  
 s%@LEADING_UNDERSCORE@%$LEADING_UNDERSCORE%g  
 s%@GNU_LD@%$GNU_LD%g  
 s%@LD_STACK_FLAGS@%$LD_STACK_FLAGS%g  
 s%@use@%$use%g  
15827    
15828    {
15829      tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15830      test -n "$tmp" && test -d "$tmp"
15831    }  ||
15832    {
15833      tmp=./confstat$$-$RANDOM
15834      (umask 077 && mkdir $tmp)
15835    } ||
15836    {
15837       echo "$me: cannot create a temporary directory in ." >&2
15838       { (exit 1); exit 1; }
15839    }
15840    
15841    _ACEOF
15842    
15843    cat >>$CONFIG_STATUS <<_ACEOF
15844    
15845    #
15846    # CONFIG_FILES section.
15847    #
15848    
15849    # No need to generate the scripts if there are no CONFIG_FILES.
15850    # This happens for instance when ./config.status config.h
15851    if test -n "\$CONFIG_FILES"; then
15852      # Protect against being on the right side of a sed subst in config.status.
15853      sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15854       s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15855    s,@SHELL@,$SHELL,;t t
15856    s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15857    s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15858    s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15859    s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15860    s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15861    s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15862    s,@exec_prefix@,$exec_prefix,;t t
15863    s,@prefix@,$prefix,;t t
15864    s,@program_transform_name@,$program_transform_name,;t t
15865    s,@bindir@,$bindir,;t t
15866    s,@sbindir@,$sbindir,;t t
15867    s,@libexecdir@,$libexecdir,;t t
15868    s,@datadir@,$datadir,;t t
15869    s,@sysconfdir@,$sysconfdir,;t t
15870    s,@sharedstatedir@,$sharedstatedir,;t t
15871    s,@localstatedir@,$localstatedir,;t t
15872    s,@libdir@,$libdir,;t t
15873    s,@includedir@,$includedir,;t t
15874    s,@oldincludedir@,$oldincludedir,;t t
15875    s,@infodir@,$infodir,;t t
15876    s,@mandir@,$mandir,;t t
15877    s,@build_alias@,$build_alias,;t t
15878    s,@host_alias@,$host_alias,;t t
15879    s,@target_alias@,$target_alias,;t t
15880    s,@DEFS@,$DEFS,;t t
15881    s,@ECHO_C@,$ECHO_C,;t t
15882    s,@ECHO_N@,$ECHO_N,;t t
15883    s,@ECHO_T@,$ECHO_T,;t t
15884    s,@LIBS@,$LIBS,;t t
15885    s,@VERSION@,$VERSION,;t t
15886    s,@build@,$build,;t t
15887    s,@build_cpu@,$build_cpu,;t t
15888    s,@build_vendor@,$build_vendor,;t t
15889    s,@build_os@,$build_os,;t t
15890    s,@host@,$host,;t t
15891    s,@host_cpu@,$host_cpu,;t t
15892    s,@host_vendor@,$host_vendor,;t t
15893    s,@host_os@,$host_os,;t t
15894    s,@PROCESSOR_FLAGS@,$PROCESSOR_FLAGS,;t t
15895    s,@CC@,$CC,;t t
15896    s,@CFLAGS@,$CFLAGS,;t t
15897    s,@LDFLAGS@,$LDFLAGS,;t t
15898    s,@CPPFLAGS@,$CPPFLAGS,;t t
15899    s,@ac_ct_CC@,$ac_ct_CC,;t t
15900    s,@EXEEXT@,$EXEEXT,;t t
15901    s,@OBJEXT@,$OBJEXT,;t t
15902    s,@CPP@,$CPP,;t t
15903    s,@AWK@,$AWK,;t t
15904    s,@MAKEINFO@,$MAKEINFO,;t t
15905    s,@EGREP@,$EGREP,;t t
15906    s,@GMP@,$GMP,;t t
15907    s,@GMPDIR@,$GMPDIR,;t t
15908    s,@X_CFLAGS@,$X_CFLAGS,;t t
15909    s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15910    s,@X_LIBS@,$X_LIBS,;t t
15911    s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15912    s,@BUILD_BFD@,$BUILD_BFD,;t t
15913    s,@LITTLE_END@,$LITTLE_END,;t t
15914    s,@PAGEWIDTH@,$PAGEWIDTH,;t t
15915    s,@HAVE_LONG_LONG@,$HAVE_LONG_LONG,;t t
15916    s,@PARGCLDIR@,$PARGCLDIR,;t t
15917    s,@FLISP@,$FLISP,;t t
15918    s,@SYSTEM@,$SYSTEM,;t t
15919    s,@CLSTANDARD@,$CLSTANDARD,;t t
15920    s,@RL_OBJS@,$RL_OBJS,;t t
15921    s,@RL_LIB@,$RL_LIB,;t t
15922    s,@NO_PROFILE@,$NO_PROFILE,;t t
15923    s,@HAVE_SETENV@,$HAVE_SETENV,;t t
15924    s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t
15925    s,@USE_CLEANUP@,$USE_CLEANUP,;t t
15926    s,@ENDIAN_ALREADY_DEFINED@,$ENDIAN_ALREADY_DEFINED,;t t
15927    s,@HAVE_SV_ONSTACK@,$HAVE_SV_ONSTACK,;t t
15928    s,@HAVE_SIGSYS@,$HAVE_SIGSYS,;t t
15929    s,@HAVE_SIGEMT@,$HAVE_SIGEMT,;t t
15930    s,@EMACS@,$EMACS,;t t
15931    s,@EMACS_SITE_LISP@,$EMACS_SITE_LISP,;t t
15932    s,@EMACS_DEFAULT_EL@,$EMACS_DEFAULT_EL,;t t
15933    s,@INFO_DIR@,$INFO_DIR,;t t
15934    s,@TCLSH@,$TCLSH,;t t
15935    s,@TK_CONFIG_PREFIX@,$TK_CONFIG_PREFIX,;t t
15936    s,@TK_LIBRARY@,$TK_LIBRARY,;t t
15937    s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
15938    s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
15939    s,@TK_INCLUDE@,$TK_INCLUDE,;t t
15940    s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
15941    s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
15942    s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
15943    s,@TK_XLIBSW@,$TK_XLIBSW,;t t
15944    s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
15945    s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
15946    s,@TCL_LIBS@,$TCL_LIBS,;t t
15947    s,@TCL_STUB_LIBS@,$TCL_STUB_LIBS,;t t
15948    s,@NOTIFY@,$NOTIFY,;t t
15949    s,@BROKEN_O4_OPT@,$BROKEN_O4_OPT,;t t
15950    s,@FINAL_CFLAGS@,$FINAL_CFLAGS,;t t
15951    s,@NIFLAGS@,$NIFLAGS,;t t
15952    s,@O3FLAGS@,$O3FLAGS,;t t
15953    s,@O2FLAGS@,$O2FLAGS,;t t
15954    s,@EXTRA_LOBJS@,$EXTRA_LOBJS,;t t
15955    s,@LEADING_UNDERSCORE@,$LEADING_UNDERSCORE,;t t
15956    s,@GNU_LD@,$GNU_LD,;t t
15957    s,@LD_STACK_FLAGS@,$LD_STACK_FLAGS,;t t
15958    s,@use@,$use,;t t
15959    s,@LIBOBJS@,$LIBOBJS,;t t
15960    s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15961  CEOF  CEOF
 EOF  
15962    
15963  cat >> $CONFIG_STATUS <<\EOF  _ACEOF
15964    
15965  # Split the substitutions into bite-sized pieces for seds with    cat >>$CONFIG_STATUS <<\_ACEOF
15966  # small command number limits, like on Digital OSF/1 and HP-UX.    # Split the substitutions into bite-sized pieces for seds with
15967  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.
15968  ac_file=1 # Number of current file.    ac_max_sed_lines=48
15969  ac_beg=1 # First line for current file.    ac_sed_frag=1 # Number of current file.
15970  ac_end=$ac_max_sed_cmds # Line after last line for current file.    ac_beg=1 # First line for current file.
15971  ac_more_lines=:    ac_end=$ac_max_sed_lines # Line after last line for current file.
15972  ac_sed_cmds=""    ac_more_lines=:
15973  while $ac_more_lines; do    ac_sed_cmds=
15974    if test $ac_beg -gt 1; then    while $ac_more_lines; do
15975      sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file      if test $ac_beg -gt 1; then
15976    else        sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15977      sed "${ac_end}q" conftest.subs > conftest.s$ac_file      else
15978    fi        sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15979    if test ! -s conftest.s$ac_file; then      fi
15980      ac_more_lines=false      if test ! -s $tmp/subs.frag; then
15981      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"  
15982      else      else
15983        ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"        # The purpose of the label and of the branching condition is to
15984          # speed up the sed processing (if there are no `@' at all, there
15985          # is no need to browse any of the substitutions).
15986          # These are the two extra sed commands mentioned above.
15987          (echo ':t
15988      /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15989          if test -z "$ac_sed_cmds"; then
15990            ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15991          else
15992            ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15993          fi
15994          ac_sed_frag=`expr $ac_sed_frag + 1`
15995          ac_beg=$ac_end
15996          ac_end=`expr $ac_end + $ac_max_sed_lines`
15997      fi      fi
15998      ac_file=`expr $ac_file + 1`    done
15999      ac_beg=$ac_end    if test -z "$ac_sed_cmds"; then
16000      ac_end=`expr $ac_end + $ac_max_sed_cmds`      ac_sed_cmds=cat
16001    fi    fi
16002  done  fi # test -n "$CONFIG_FILES"
 if test -z "$ac_sed_cmds"; then  
   ac_sed_cmds=cat  
 fi  
 EOF  
   
 cat >> $CONFIG_STATUS <<EOF  
16003    
16004  CONFIG_FILES=\${CONFIG_FILES-"makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp"}  _ACEOF
16005  EOF  cat >>$CONFIG_STATUS <<\_ACEOF
16006  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  
16007    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16008    case "$ac_file" in    case $ac_file in
16009    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
16010         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
16011    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16012            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16013      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16014            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16015      * )   ac_file_in=$ac_file.in ;;
16016    esac    esac
16017    
16018    # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16019      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16020    # Remove last slash and all that follows it.  Not all systems have dirname.  $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16021    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`           X"$ac_file" : 'X\(//\)[^/]' \| \
16022    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then           X"$ac_file" : 'X\(//\)$' \| \
16023      # The file is in a subdirectory.           X"$ac_file" : 'X\(/\)' \| \
16024      test ! -d "$ac_dir" && mkdir "$ac_dir"           .     : '\(.\)' 2>/dev/null ||
16025      ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"  echo X"$ac_file" |
16026      # A "../" for each directory in $ac_dir_suffix.      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16027      ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16028    else            /^X\(\/\/\)$/{ s//\1/; q; }
16029      ac_dir_suffix= ac_dots=            /^X\(\/\).*/{ s//\1/; q; }
16030    fi            s/.*/./; q'`
16031      { if $as_mkdir_p; then
16032    case "$ac_given_srcdir" in      mkdir -p "$ac_dir"
16033    .)  srcdir=.    else
16034        if test -z "$ac_dots"; then top_srcdir=.      as_dir="$ac_dir"
16035        else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;      as_dirs=
16036    /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;      while test ! -d "$as_dir"; do
16037          as_dirs="$as_dir $as_dirs"
16038          as_dir=`(dirname "$as_dir") 2>/dev/null ||
16039    $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16040             X"$as_dir" : 'X\(//\)[^/]' \| \
16041             X"$as_dir" : 'X\(//\)$' \| \
16042             X"$as_dir" : 'X\(/\)' \| \
16043             .     : '\(.\)' 2>/dev/null ||
16044    echo X"$as_dir" |
16045        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16046              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16047              /^X\(\/\/\)$/{ s//\1/; q; }
16048              /^X\(\/\).*/{ s//\1/; q; }
16049              s/.*/./; q'`
16050        done
16051        test ! -n "$as_dirs" || mkdir $as_dirs
16052      fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16053    echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16054       { (exit 1); exit 1; }; }; }
16055    
16056      ac_builddir=.
16057    
16058    if test "$ac_dir" != .; then
16059      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16060      # A "../" for each directory in $ac_dir_suffix.
16061      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16062    else
16063      ac_dir_suffix= ac_top_builddir=
16064    fi
16065    
16066    case $srcdir in
16067      .)  # No --srcdir option.  We are building in place.
16068        ac_srcdir=.
16069        if test -z "$ac_top_builddir"; then
16070           ac_top_srcdir=.
16071        else
16072           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16073        fi ;;
16074      [\\/]* | ?:[\\/]* )  # Absolute path.
16075        ac_srcdir=$srcdir$ac_dir_suffix;
16076        ac_top_srcdir=$srcdir ;;
16077    *) # Relative path.    *) # Relative path.
16078      srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16079      top_srcdir="$ac_dots$ac_given_srcdir" ;;      ac_top_srcdir=$ac_top_builddir$srcdir ;;
16080    esac  esac
16081    
16082    # Do not use `cd foo && pwd` to compute absolute paths, because
16083    # the directories may not exist.
16084    case `pwd` in
16085    .) ac_abs_builddir="$ac_dir";;
16086    *)
16087      case "$ac_dir" in
16088      .) ac_abs_builddir=`pwd`;;
16089      [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16090      *) ac_abs_builddir=`pwd`/"$ac_dir";;
16091      esac;;
16092    esac
16093    case $ac_abs_builddir in
16094    .) ac_abs_top_builddir=${ac_top_builddir}.;;
16095    *)
16096      case ${ac_top_builddir}. in
16097      .) ac_abs_top_builddir=$ac_abs_builddir;;
16098      [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16099      *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16100      esac;;
16101    esac
16102    case $ac_abs_builddir in
16103    .) ac_abs_srcdir=$ac_srcdir;;
16104    *)
16105      case $ac_srcdir in
16106      .) ac_abs_srcdir=$ac_abs_builddir;;
16107      [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16108      *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16109      esac;;
16110    esac
16111    case $ac_abs_builddir in
16112    .) ac_abs_top_srcdir=$ac_top_srcdir;;
16113    *)
16114      case $ac_top_srcdir in
16115      .) ac_abs_top_srcdir=$ac_abs_builddir;;
16116      [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16117      *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16118      esac;;
16119    esac
16120    
16121    
   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  
16122    
16123    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`    # Let's still pretend it is `configure' which instantiates (i.e., don't
16124    sed -e "$ac_comsub    # use $as_me), people would be surprised to read:
16125  s%@configure_input@%$configure_input%g    #    /* config.h.  Generated by config.status.  */
16126  s%@srcdir@%$srcdir%g    if test x"$ac_file" = x-; then
16127  s%@top_srcdir@%$top_srcdir%g      configure_input=
16128  " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file    else
16129  fi; done      configure_input="$ac_file.  "
16130  rm -f conftest.s*    fi
16131      configure_input=$configure_input"Generated from `echo $ac_file_in |
16132                                         sed 's,.*/,,'` by configure."
16133    
16134      # First look for the input files in the build tree, otherwise in the
16135      # src tree.
16136      ac_file_inputs=`IFS=:
16137        for f in $ac_file_in; do
16138          case $f in
16139          -) echo $tmp/stdin ;;
16140          [\\/$]*)
16141             # Absolute (can't be DOS-style, as IFS=:)
16142             test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16143    echo "$as_me: error: cannot find input file: $f" >&2;}
16144       { (exit 1); exit 1; }; }
16145             echo "$f";;
16146          *) # Relative
16147             if test -f "$f"; then
16148               # Build tree
16149               echo "$f"
16150             elif test -f "$srcdir/$f"; then
16151               # Source tree
16152               echo "$srcdir/$f"
16153             else
16154               # /dev/null tree
16155               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16156    echo "$as_me: error: cannot find input file: $f" >&2;}
16157       { (exit 1); exit 1; }; }
16158             fi;;
16159          esac
16160        done` || { (exit 1); exit 1; }
16161    
16162      if test x"$ac_file" != x-; then
16163        { echo "$as_me:$LINENO: creating $ac_file" >&5
16164    echo "$as_me: creating $ac_file" >&6;}
16165        rm -f "$ac_file"
16166      fi
16167    _ACEOF
16168    cat >>$CONFIG_STATUS <<_ACEOF
16169      sed "$ac_vpsub
16170    $extrasub
16171    _ACEOF
16172    cat >>$CONFIG_STATUS <<\_ACEOF
16173    :t
16174    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16175    s,@configure_input@,$configure_input,;t t
16176    s,@srcdir@,$ac_srcdir,;t t
16177    s,@abs_srcdir@,$ac_abs_srcdir,;t t
16178    s,@top_srcdir@,$ac_top_srcdir,;t t
16179    s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16180    s,@builddir@,$ac_builddir,;t t
16181    s,@abs_builddir@,$ac_abs_builddir,;t t
16182    s,@top_builddir@,$ac_top_builddir,;t t
16183    s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16184    " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16185      rm -f $tmp/stdin
16186      if test x"$ac_file" != x-; then
16187        mv $tmp/out $ac_file
16188      else
16189        cat $tmp/out
16190        rm -f $tmp/out
16191      fi
16192    
16193    done
16194    _ACEOF
16195    cat >>$CONFIG_STATUS <<\_ACEOF
16196    
16197    #
16198    # CONFIG_HEADER section.
16199    #
16200    
16201  # 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
16202  # 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.
16203  #  #
16204  # ac_d sets the value in "#define NAME VALUE" lines.  # ac_d sets the value in "#define NAME VALUE" lines.
16205  ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'  ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
16206  ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'  ac_dB='[         ].*$,\1#\2'
16207  ac_dC='\3'  ac_dC=' '
16208  ac_dD='%g'  ac_dD=',;t'
16209  # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".  # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16210  ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16211  ac_uB='\([      ]\)%\1#\2define\3'  ac_uB='$,\1#\2define\3'
16212  ac_uC=' '  ac_uC=' '
16213  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'  
16214    
16215  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  
16216    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16217    case "$ac_file" in    case $ac_file in
16218    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
16219         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
16220    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16221            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16222      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16223            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16224      * )   ac_file_in=$ac_file.in ;;
16225    esac    esac
16226    
16227    echo creating $ac_file    test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16228    echo "$as_me: creating $ac_file" >&6;}
16229    
16230    rm -f conftest.frag conftest.in conftest.out    # First look for the input files in the build tree, otherwise in the
16231    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`    # src tree.
16232    cat $ac_file_inputs > conftest.in    ac_file_inputs=`IFS=:
16233        for f in $ac_file_in; do
16234  EOF        case $f in
16235          -) echo $tmp/stdin ;;
16236  # Transform confdefs.h into a sed script conftest.vals that substitutes        [\\/$]*)
16237  # the proper values into config.h.in to produce config.h.  And first:           # Absolute (can't be DOS-style, as IFS=:)
16238  # Protect against being on the right side of a sed subst in config.status.           test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16239  # Protect against being in an unquoted here document in config.status.  echo "$as_me: error: cannot find input file: $f" >&2;}
16240  rm -f conftest.vals     { (exit 1); exit 1; }; }
16241  cat > conftest.hdr <<\EOF           # Do quote $f, to prevent DOS paths from being IFS'd.
16242  s/[\\&%]/\\&/g           echo "$f";;
16243  s%[\\$`]%\\&%g        *) # Relative
16244  s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp           if test -f "$f"; then
16245  s%ac_d%ac_u%gp             # Build tree
16246  s%ac_u%ac_e%gp             echo "$f"
16247  EOF           elif test -f "$srcdir/$f"; then
16248  sed -n -f conftest.hdr confdefs.h > conftest.vals             # Source tree
16249  rm -f conftest.hdr             echo "$srcdir/$f"
16250             else
16251               # /dev/null tree
16252               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16253    echo "$as_me: error: cannot find input file: $f" >&2;}
16254       { (exit 1); exit 1; }; }
16255             fi;;
16256          esac
16257        done` || { (exit 1); exit 1; }
16258      # Remove the trailing spaces.
16259      sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
16260    
16261    _ACEOF
16262    
16263    # Transform confdefs.h into two sed scripts, `conftest.defines' and
16264    # `conftest.undefs', that substitutes the proper values into
16265    # config.h.in to produce config.h.  The first handles `#define'
16266    # templates, and the second `#undef' templates.
16267    # And first: Protect against being on the right side of a sed subst in
16268    # config.status.  Protect against being in an unquoted here document
16269    # in config.status.
16270    rm -f conftest.defines conftest.undefs
16271    # Using a here document instead of a string reduces the quoting nightmare.
16272    # Putting comments in sed scripts is not portable.
16273    #
16274    # `end' is used to avoid that the second main sed command (meant for
16275    # 0-ary CPP macros) applies to n-ary macro definitions.
16276    # See the Autoconf documentation for `clear'.
16277    cat >confdef2sed.sed <<\_ACEOF
16278    s/[\\&,]/\\&/g
16279    s,[\\$`],\\&,g
16280    t clear
16281    : clear
16282    s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16283    t end
16284    s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16285    : end
16286    _ACEOF
16287    # If some macros were called several times there might be several times
16288    # the same #defines, which is useless.  Nevertheless, we may not want to
16289    # sort them, since we want the *last* AC-DEFINE to be honored.
16290    uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16291    sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16292    rm -f confdef2sed.sed
16293    
16294  # This sed command replaces #undef with comments.  This is necessary, for  # This sed command replaces #undef with comments.  This is necessary, for
16295  # example, in the case of _POSIX_SOURCE, which is predefined and required  # example, in the case of _POSIX_SOURCE, which is predefined and required
16296  # on some systems where configure will not decide to define it.  # on some systems where configure will not decide to define it.
16297  cat >> conftest.vals <<\EOF  cat >>conftest.undefs <<\_ACEOF
16298  s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%  s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16299  EOF  _ACEOF
16300    
16301  # Break up conftest.vals because some shells have a limit on  # Break up conftest.defines because some shells have a limit on the size
16302  # the size of here documents, and old seds have small limits too.  # of here documents, and old seds have small limits too (100 cmds).
16303    echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16304    echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16305    echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16306    echo '  :' >>$CONFIG_STATUS
16307  rm -f conftest.tail  rm -f conftest.tail
16308  while :  while grep . conftest.defines >/dev/null
16309  do  do
16310    ac_lines=`grep -c . conftest.vals`    # Write a limited-size here document to $tmp/defines.sed.
16311    # grep -c gives empty output for an empty file on some AIX systems.    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16312    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi    # Speed up: don't consider the non `#define' lines.
16313    # Write a limited-size here document to conftest.frag.    echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
16314    echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS    # Work around the forget-to-reset-the-flag bug.
16315    sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS    echo 't clr' >>$CONFIG_STATUS
16316      echo ': clr' >>$CONFIG_STATUS
16317      sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16318    echo 'CEOF    echo 'CEOF
16319    sed -f conftest.frag conftest.in > conftest.out    sed -f $tmp/defines.sed $tmp/in >$tmp/out
16320    rm -f conftest.in    rm -f $tmp/in
16321    mv conftest.out conftest.in    mv $tmp/out $tmp/in
16322  ' >> $CONFIG_STATUS  ' >>$CONFIG_STATUS
16323    sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail    sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16324    rm -f conftest.vals    rm -f conftest.defines
16325    mv conftest.tail conftest.vals    mv conftest.tail conftest.defines
16326  done  done
16327  rm -f conftest.vals  rm -f conftest.defines
16328    echo '  fi # grep' >>$CONFIG_STATUS
16329  cat >> $CONFIG_STATUS <<\EOF  echo >>$CONFIG_STATUS
16330    rm -f conftest.frag conftest.h  
16331    echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h  # Break up conftest.undefs because some shells have a limit on the size
16332    cat conftest.in >> conftest.h  # of here documents, and old seds have small limits too (100 cmds).
16333    rm -f conftest.in  echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16334    if cmp -s $ac_file conftest.h 2>/dev/null; then  rm -f conftest.tail
16335      echo "$ac_file is unchanged"  while grep . conftest.undefs >/dev/null
16336      rm -f conftest.h  do
16337    else    # Write a limited-size here document to $tmp/undefs.sed.
16338      # Remove last slash and all that follows it.  Not all systems have dirname.    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16339        ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`    # Speed up: don't consider the non `#undef'
16340        if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then    echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16341        # The file is in a subdirectory.    # Work around the forget-to-reset-the-flag bug.
16342        test ! -d "$ac_dir" && mkdir "$ac_dir"    echo 't clr' >>$CONFIG_STATUS
16343      fi    echo ': clr' >>$CONFIG_STATUS
16344      rm -f $ac_file    sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16345      mv conftest.h $ac_file    echo 'CEOF
16346      sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16347      rm -f $tmp/in
16348      mv $tmp/out $tmp/in
16349    ' >>$CONFIG_STATUS
16350      sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16351      rm -f conftest.undefs
16352      mv conftest.tail conftest.undefs
16353    done
16354    rm -f conftest.undefs
16355    
16356    cat >>$CONFIG_STATUS <<\_ACEOF
16357      # Let's still pretend it is `configure' which instantiates (i.e., don't
16358      # use $as_me), people would be surprised to read:
16359      #    /* config.h.  Generated by config.status.  */
16360      if test x"$ac_file" = x-; then
16361        echo "/* Generated by configure.  */" >$tmp/config.h
16362      else
16363        echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16364    fi    fi
16365  fi; done    cat $tmp/in >>$tmp/config.h
16366      rm -f $tmp/in
16367      if test x"$ac_file" != x-; then
16368        if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16369          { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16370    echo "$as_me: $ac_file is unchanged" >&6;}
16371        else
16372          ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16373    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16374             X"$ac_file" : 'X\(//\)[^/]' \| \
16375             X"$ac_file" : 'X\(//\)$' \| \
16376             X"$ac_file" : 'X\(/\)' \| \
16377             .     : '\(.\)' 2>/dev/null ||
16378    echo X"$ac_file" |
16379        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16380              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16381              /^X\(\/\/\)$/{ s//\1/; q; }
16382              /^X\(\/\).*/{ s//\1/; q; }
16383              s/.*/./; q'`
16384          { if $as_mkdir_p; then
16385        mkdir -p "$ac_dir"
16386      else
16387        as_dir="$ac_dir"
16388        as_dirs=
16389        while test ! -d "$as_dir"; do
16390          as_dirs="$as_dir $as_dirs"
16391          as_dir=`(dirname "$as_dir") 2>/dev/null ||
16392    $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16393             X"$as_dir" : 'X\(//\)[^/]' \| \
16394             X"$as_dir" : 'X\(//\)$' \| \
16395             X"$as_dir" : 'X\(/\)' \| \
16396             .     : '\(.\)' 2>/dev/null ||
16397    echo X"$as_dir" |
16398        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16399              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16400              /^X\(\/\/\)$/{ s//\1/; q; }
16401              /^X\(\/\).*/{ s//\1/; q; }
16402              s/.*/./; q'`
16403        done
16404        test ! -n "$as_dirs" || mkdir $as_dirs
16405      fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16406    echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16407       { (exit 1); exit 1; }; }; }
16408    
16409  EOF        rm -f $ac_file
16410  cat >> $CONFIG_STATUS <<EOF        mv $tmp/config.h $ac_file
16411        fi
16412      else
16413        cat $tmp/config.h
16414        rm -f $tmp/config.h
16415      fi
16416    done
16417    _ACEOF
16418    
16419  EOF  cat >>$CONFIG_STATUS <<\_ACEOF
 cat >> $CONFIG_STATUS <<\EOF  
16420    
16421  exit 0  { (exit 0); exit 0; }
16422  EOF  _ACEOF
16423  chmod +x $CONFIG_STATUS  chmod +x $CONFIG_STATUS
16424  rm -fr confdefs* $ac_clean_files  ac_clean_files=$ac_clean_files_save
16425  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1  
16426    
16427    # configure is writing to config.log, and then calls config.status.
16428    # config.status does its own redirection, appending to config.log.
16429    # Unfortunately, on DOS this fails, as config.log is still kept open
16430    # by configure, so config.status won't be able to write to it; its
16431    # output is simply discarded.  So we exec the FD to /dev/null,
16432    # effectively closing config.log, so it can be properly (re)opened and
16433    # appended to by config.status.  When coming back to configure, we
16434    # need to make the FD available again.
16435    if test "$no_create" != yes; then
16436      ac_cs_success=:
16437      ac_config_status_args=
16438      test "$silent" = yes &&
16439        ac_config_status_args="$ac_config_status_args --quiet"
16440      exec 5>/dev/null
16441      $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16442      exec 5>>config.log
16443      # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16444      # would make configure fail if this is the last instruction.
16445      $ac_cs_success || { (exit 1); exit 1; }
16446    fi
16447    
16448    echo makedefc    echo makedefc
16449    cat makedefc    cat makedefc

Legend:
Removed from v.1.204  
changed lines
  Added in v.1.205

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