/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

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

revision 1.171 by mjthomas, Thu May 12 12:40:24 2005 UTC revision 1.172 by camm, Fri Jun 10 15:01:31 2005 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2    
3  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
4  # Generated by GNU Autoconf 2.59.  # Generated automatically using autoconf version 2.13
5    # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6  #  #
 # Copyright (C) 2003 Free Software Foundation, Inc.  
7  # This configure script is free software; the Free Software Foundation  # This configure script is free software; the Free Software Foundation
8  # gives unlimited permission to copy, distribute and modify it.  # gives unlimited permission to copy, distribute and modify it.
 ## --------------------- ##  
 ## M4sh Initialization.  ##  
 ## --------------------- ##  
   
 # Be Bourne compatible  
 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then  
   emulate sh  
   NULLCMD=:  
   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which  
   # is contrary to our usage.  Disable this feature.  
   alias -g '${1+"$@"}'='"$@"'  
 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then  
   set -o posix  
 fi  
 DUALCASE=1; export DUALCASE # for MKS sh  
   
 # Support unset when possible.  
 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then  
   as_unset=unset  
 else  
   as_unset=false  
 fi  
   
   
 # Work around bugs in pre-3.0 UWIN ksh.  
 $as_unset ENV MAIL MAILPATH  
 PS1='$ '  
 PS2='> '  
 PS4='+ '  
   
 # NLS nuisances.  
 for as_var in \  
   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \  
   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \  
   LC_TELEPHONE LC_TIME  
 do  
   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then  
     eval $as_var=C; export $as_var  
   else  
     $as_unset $as_var  
   fi  
 done  
   
 # Required to use basename.  
 if expr a : '\(a\)' >/dev/null 2>&1; then  
   as_expr=expr  
 else  
   as_expr=false  
 fi  
   
 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then  
   as_basename=basename  
 else  
   as_basename=false  
 fi  
   
   
 # Name of the executable.  
 as_me=`$as_basename "$0" ||  
 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \  
          X"$0" : 'X\(//\)$' \| \  
          X"$0" : 'X\(/\)$' \| \  
          .     : '\(.\)' 2>/dev/null ||  
 echo X/"$0" |  
     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }  
           /^X\/\(\/\/\)$/{ s//\1/; q; }  
           /^X\/\(\/\).*/{ s//\1/; q; }  
           s/.*/./; q'`  
   
   
 # PATH needs CR, and LINENO needs CR and PATH.  
 # Avoid depending upon Character Ranges.  
 as_cr_letters='abcdefghijklmnopqrstuvwxyz'  
 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'  
 as_cr_Letters=$as_cr_letters$as_cr_LETTERS  
 as_cr_digits='0123456789'  
 as_cr_alnum=$as_cr_Letters$as_cr_digits  
   
 # The user is always right.  
 if test "${PATH_SEPARATOR+set}" != set; then  
   echo "#! /bin/sh" >conf$$.sh  
   echo  "exit 0"   >>conf$$.sh  
   chmod +x conf$$.sh  
   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then  
     PATH_SEPARATOR=';'  
   else  
     PATH_SEPARATOR=:  
   fi  
   rm -f conf$$.sh  
 fi  
   
   
   as_lineno_1=$LINENO  
   as_lineno_2=$LINENO  
   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`  
   test "x$as_lineno_1" != "x$as_lineno_2" &&  
   test "x$as_lineno_3"  = "x$as_lineno_2"  || {  
   # Find who we are.  Look in the path if we contain no path at all  
   # relative or not.  
   case $0 in  
     *[\\/]* ) as_myself=$0 ;;  
     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break  
 done  
   
        ;;  
   esac  
   # We did not find ourselves, most probably we were run as `sh COMMAND'  
   # in which case we are not to be found in the path.  
   if test "x$as_myself" = x; then  
     as_myself=$0  
   fi  
   if test ! -f "$as_myself"; then  
     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2  
    { (exit 1); exit 1; }; }  
   fi  
   case $CONFIG_SHELL in  
   '')  
     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   for as_base in sh bash ksh sh5; do  
          case $as_dir in  
          /*)  
            if ("$as_dir/$as_base" -c '  
   as_lineno_1=$LINENO  
   as_lineno_2=$LINENO  
   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`  
   test "x$as_lineno_1" != "x$as_lineno_2" &&  
   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then  
              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }  
              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }  
              CONFIG_SHELL=$as_dir/$as_base  
              export CONFIG_SHELL  
              exec "$CONFIG_SHELL" "$0" ${1+"$@"}  
            fi;;  
          esac  
        done  
 done  
 ;;  
   esac  
   
   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO  
   # uniformly replaced by the line number.  The first 'sed' inserts a  
   # line-number line before each line; the second 'sed' does the real  
   # work.  The second script uses 'N' to pair each line-number line  
   # with the numbered line, and appends trailing '-' during  
   # substitution so that $LINENO is not a special case at line end.  
   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the  
   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)  
   sed '=' <$as_myself |  
     sed '  
       N  
       s,$,-,  
       : loop  
       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,  
       t loop  
       s,-$,,  
       s,^['$as_cr_digits']*\n,,  
     ' >$as_me.lineno &&  
   chmod +x $as_me.lineno ||  
     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2  
    { (exit 1); exit 1; }; }  
   
   # Don't try to exec as it changes $[0], causing all sort of problems  
   # (the dirname of $[0] is not the place where we might find the  
   # original and so on.  Autoconf is especially sensible to this).  
   . ./$as_me.lineno  
   # Exit status is that of the last command.  
   exit  
 }  
   
   
 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in  
   *c*,-n*) ECHO_N= ECHO_C='  
 ' ECHO_T='      ' ;;  
   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;  
   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;  
 esac  
   
 if expr a : '\(a\)' >/dev/null 2>&1; then  
   as_expr=expr  
 else  
   as_expr=false  
 fi  
   
 rm -f conf$$ conf$$.exe conf$$.file  
 echo >conf$$.file  
 if ln -s conf$$.file conf$$ 2>/dev/null; then  
   # We could just check for DJGPP; but this test a) works b) is more generic  
   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).  
   if test -f conf$$.exe; then  
     # Don't use ln at all; we don't have any links  
     as_ln_s='cp -p'  
   else  
     as_ln_s='ln -s'  
   fi  
 elif ln conf$$.file conf$$ 2>/dev/null; then  
   as_ln_s=ln  
 else  
   as_ln_s='cp -p'  
 fi  
 rm -f conf$$ conf$$.exe conf$$.file  
   
 if mkdir -p . 2>/dev/null; then  
   as_mkdir_p=:  
 else  
   test -d ./-p && rmdir ./-p  
   as_mkdir_p=false  
 fi  
   
 as_executable_p="test -f"  
   
 # Sed expression to map a string onto a valid CPP name.  
 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"  
   
 # Sed expression to map a string onto a valid variable name.  
 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"  
   
9    
10  # IFS  # Defaults:
11  # We need space, tab and new line, in precisely that order.  ac_help=
 as_nl='  
 '  
 IFS="   $as_nl"  
   
 # CDPATH.  
 $as_unset CDPATH  
   
   
 # Name of the host.  
 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,  
 # so uname gets run too.  
 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`  
   
 exec 6>&1  
   
 #  
 # Initializations.  
 #  
12  ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
13  ac_config_libobj_dir=.  # Any additions from configure.in:
14  cross_compiling=no  ac_help="$ac_help
15  subdirs=   --enable-maxpage=XXXX will compile in a page table of size XXX (eg '--enable-maxpage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each)"
16  MFLAGS=  ac_help="$ac_help
17  MAKEFLAGS=   --enable-holediv=XXXX will specify that 1/XXXX of the core should be used as the hole between the heap and relocatable memory area"
18  SHELL=${CONFIG_SHELL-/bin/sh}  ac_help="$ac_help
19     --enable-vssize=XXXX will compile in a value stack of size XXX"
20  # Maximum number of lines to put in a shell here document.  ac_help="$ac_help
21  # This variable seems obsolete.  It should probably be removed, and   --enable-bdssize=XXXX will compile in a binding stack of size XXX"
22  # only ac_max_sed_lines should be used.  ac_help="$ac_help
23  : ${ac_max_here_lines=38}   --enable-ihssize=XXXX will compile in a invocation history stack of size XXX"
24    ac_help="$ac_help
25  # Identity of this package.   --enable-frssize=XXXX will compile in a frame stack of size XXX"
26  PACKAGE_NAME=  ac_help="$ac_help
27  PACKAGE_TARNAME=   --enable-cssize=XXXX produces executables with a C stack of size XXX"
28  PACKAGE_VERSION=  ac_help="$ac_help
29  PACKAGE_STRING=   --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs "
30  PACKAGE_BUGREPORT=  ac_help="$ac_help
31     --enable-immfix will enable an immediate fixnum table above the C stack"
32  # Factoring default headers for most tests.  ac_help="$ac_help
33  ac_includes_default="\   --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems "
34  #include <stdio.h>  ac_help="$ac_help
35  #if HAVE_SYS_TYPES_H   --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh  "
36  # include <sys/types.h>  ac_help="$ac_help
37  #endif   --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh  "
38  #if HAVE_SYS_STAT_H  ac_help="$ac_help
39  # include <sys/stat.h>   --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info  "
40  #endif  ac_help="$ac_help
41  #if STDC_HEADERS   --enable-emacsdir=XXXX will manually specify the location for elisp files  "
42  # include <stdlib.h>  ac_help="$ac_help
43  # include <stddef.h>   --enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes) "
44  #else  ac_help="$ac_help
45  # if HAVE_STDLIB_H   --enable-japi=yes will compile in support for the JAPI graphical interface if present on your system"
46  #  include <stdlib.h>  ac_help="$ac_help
47  # endif   --enable-xdr=yes will compile in support for XDR"
48  #endif  ac_help="$ac_help
49  #if HAVE_STRING_H   --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images
50  # if !STDC_HEADERS && HAVE_MEMORY_H          "
51  #  include <memory.h>  ac_help="$ac_help
52  # endif   --enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files
53  # include <string.h>          "
54  #endif  ac_help="$ac_help
55  #if HAVE_STRINGS_H   --enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files
56  # include <strings.h>          "
57  #endif  ac_help="$ac_help
58  #if HAVE_INTTYPES_H   --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files
59  # include <inttypes.h>          "
60  #else  ac_help="$ac_help
61  # if HAVE_STDINT_H   --enable-custreloc uses custom gcl code if available for loading  and relocationing object files
62  #  include <stdint.h>          "
63  # endif  ac_help="$ac_help
64  #endif   --enable-debug builds gcl with -g in CFLAGS to enable running under gdb
65  #if HAVE_UNISTD_H          "
66  # include <unistd.h>  ac_help="$ac_help
67  #endif"   --enable-gprof builds gcl with -pg in CFLAGS to enable profiling with gprof
68            "
69  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os PROCESSOR_FLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP AWK MAKEINFO EGREP GMP GMPDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS BUILD_BFD LITTLE_END HAVE_LONG_LONG FLISP SYSTEM CLSTANDARD PAGEWIDTH RL_OBJS RL_LIB NO_PROFILE HAVE_SETENV HAVE_PUTENV USE_CLEANUP ENDIAN_ALREADY_DEFINED HAVE_SV_ONSTACK HAVE_SIGSYS HAVE_SIGEMT EMACS EMACS_SITE_LISP EMACS_DEFAULT_EL INFO_DIR TCLSH TK_CONFIG_PREFIX TK_LIBRARY TCL_LIBRARY TK_XINCLUDES TK_INCLUDE TCL_INCLUDE TK_LIB_SPEC TK_BUILD_LIB_SPEC TK_XLIBSW TCL_LIB_SPEC TCL_DL_LIBS TCL_LIBS TCL_STUB_LIBS NOTIFY BROKEN_O4_OPT FINAL_CFLAGS NIFLAGS O3FLAGS O2FLAGS EXTRA_LOBJS LEADING_UNDERSCORE GNU_LD LD_STACK_FLAGS use LIBOBJS LTLIBOBJS'  ac_help="$ac_help
70  ac_subst_files=''   --enable-static will link your GCL against static as opposed to shared system libraries  "
71    ac_help="$ac_help
72     --enable-pic builds gcl with -fPIC in CFLAGS
73            "
74    ac_help="$ac_help
75     --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source
76            "
77    ac_help="$ac_help
78      --with-x                use the X Window System"
79    ac_help="$ac_help
80    --enable-readine    enables command line completion via the readline library "
81    ac_help="$ac_help
82    --enable-ansi builds a large gcl aiming for ansi compliance,
83                        --disable-ansi builds the smaller traditional CLtL1 image"
84    
85  # Initialize some variables set by options.  # Initialize some variables set by options.
 ac_init_help=  
 ac_init_version=false  
86  # The variables have the same names as the options, with  # The variables have the same names as the options, with
87  # dashes changed to underlines.  # dashes changed to underlines.
88  cache_file=/dev/null  build=NONE
89    cache_file=./config.cache
90  exec_prefix=NONE  exec_prefix=NONE
91    host=NONE
92  no_create=  no_create=
93    nonopt=NONE
94  no_recursion=  no_recursion=
95  prefix=NONE  prefix=NONE
96  program_prefix=NONE  program_prefix=NONE
# Line 327  program_transform_name=s,x,x, Line 99  program_transform_name=s,x,x,
99  silent=  silent=
100  site=  site=
101  srcdir=  srcdir=
102    target=NONE
103  verbose=  verbose=
104  x_includes=NONE  x_includes=NONE
105  x_libraries=NONE  x_libraries=NONE
   
 # Installation directory options.  
 # These are left unexpanded so users can "make install exec_prefix=/foo"  
 # and all the variables that are supposed to be based on exec_prefix  
 # by default will actually change.  
 # Use braces instead of parens because sh, perl, etc. also accept them.  
106  bindir='${exec_prefix}/bin'  bindir='${exec_prefix}/bin'
107  sbindir='${exec_prefix}/sbin'  sbindir='${exec_prefix}/sbin'
108  libexecdir='${exec_prefix}/libexec'  libexecdir='${exec_prefix}/libexec'
# Line 349  oldincludedir='/usr/include' Line 116  oldincludedir='/usr/include'
116  infodir='${prefix}/info'  infodir='${prefix}/info'
117  mandir='${prefix}/man'  mandir='${prefix}/man'
118    
119    # Initialize some other variables.
120    subdirs=
121    MFLAGS= MAKEFLAGS=
122    SHELL=${CONFIG_SHELL-/bin/sh}
123    # Maximum number of lines to put in a shell here document.
124    ac_max_here_lines=12
125    
126  ac_prev=  ac_prev=
127  for ac_option  for ac_option
128  do  do
129    
130    # If the previous option needs an argument, assign it.    # If the previous option needs an argument, assign it.
131    if test -n "$ac_prev"; then    if test -n "$ac_prev"; then
132      eval "$ac_prev=\$ac_option"      eval "$ac_prev=\$ac_option"
# Line 359  do Line 134  do
134      continue      continue
135    fi    fi
136    
137    ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`    case "$ac_option" in
138      -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
139      *) ac_optarg= ;;
140      esac
141    
142    # Accept the important Cygnus configure options, so we can diagnose typos.    # Accept the important Cygnus configure options, so we can diagnose typos.
143    
144    case $ac_option in    case "$ac_option" in
145    
146    -bindir | --bindir | --bindi | --bind | --bin | --bi)    -bindir | --bindir | --bindi | --bind | --bin | --bi)
147      ac_prev=bindir ;;      ac_prev=bindir ;;
148    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
149      bindir=$ac_optarg ;;      bindir="$ac_optarg" ;;
150    
151    -build | --build | --buil | --bui | --bu)    -build | --build | --buil | --bui | --bu)
152      ac_prev=build_alias ;;      ac_prev=build ;;
153    -build=* | --build=* | --buil=* | --bui=* | --bu=*)    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
154      build_alias=$ac_optarg ;;      build="$ac_optarg" ;;
155    
156    -cache-file | --cache-file | --cache-fil | --cache-fi \    -cache-file | --cache-file | --cache-fil | --cache-fi \
157    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
158      ac_prev=cache_file ;;      ac_prev=cache_file ;;
159    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
160    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
161      cache_file=$ac_optarg ;;      cache_file="$ac_optarg" ;;
   
   --config-cache | -C)  
     cache_file=config.cache ;;  
162    
163    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
164      ac_prev=datadir ;;      ac_prev=datadir ;;
165    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
166    | --da=*)    | --da=*)
167      datadir=$ac_optarg ;;      datadir="$ac_optarg" ;;
168    
169    -disable-* | --disable-*)    -disable-* | --disable-*)
170      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
171      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
172      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&      if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
173        { echo "$as_me: error: invalid feature name: $ac_feature" >&2        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174     { (exit 1); exit 1; }; }      fi
175      ac_feature=`echo $ac_feature | sed 's/-/_/g'`      ac_feature=`echo $ac_feature| sed 's/-/_/g'`
176      eval "enable_$ac_feature=no" ;;      eval "enable_${ac_feature}=no" ;;
177    
178    -enable-* | --enable-*)    -enable-* | --enable-*)
179      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`      ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
180      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
181      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&      if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
182        { echo "$as_me: error: invalid feature name: $ac_feature" >&2        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
183     { (exit 1); exit 1; }; }      fi
184      ac_feature=`echo $ac_feature | sed 's/-/_/g'`      ac_feature=`echo $ac_feature| sed 's/-/_/g'`
185      case $ac_option in      case "$ac_option" in
186        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;        *=*) ;;
187        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
188      esac      esac
189      eval "enable_$ac_feature='$ac_optarg'" ;;      eval "enable_${ac_feature}='$ac_optarg'" ;;
190    
191    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
192    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 420  do Line 195  do
195    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
196    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
197    | --exec=* | --exe=* | --ex=*)    | --exec=* | --exe=* | --ex=*)
198      exec_prefix=$ac_optarg ;;      exec_prefix="$ac_optarg" ;;
199    
200    -gas | --gas | --ga | --g)    -gas | --gas | --ga | --g)
201      # Obsolete; use --with-gas.      # Obsolete; use --with-gas.
202      with_gas=yes ;;      with_gas=yes ;;
203    
204    -help | --help | --hel | --he | -h)    -help | --help | --hel | --he)
205      ac_init_help=long ;;      # Omit some internal or obsolete options to make the list less imposing.
206    -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)      # This message is too long to be a string in the A/UX 3.1 sh.
207      ac_init_help=recursive ;;      cat << EOF
208    -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)  Usage: configure [options] [host]
209      ac_init_help=short ;;  Options: [defaults in brackets after descriptions]
210    Configuration:
211      --cache-file=FILE       cache test results in FILE
212      --help                  print this message
213      --no-create             do not create output files
214      --quiet, --silent       do not print \`checking...' messages
215      --version               print the version of autoconf that created configure
216    Directory and file names:
217      --prefix=PREFIX         install architecture-independent files in PREFIX
218                              [$ac_default_prefix]
219      --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
220                              [same as prefix]
221      --bindir=DIR            user executables in DIR [EPREFIX/bin]
222      --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
223      --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
224      --datadir=DIR           read-only architecture-independent data in DIR
225                              [PREFIX/share]
226      --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
227      --sharedstatedir=DIR    modifiable architecture-independent data in DIR
228                              [PREFIX/com]
229      --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
230      --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
231      --includedir=DIR        C header files in DIR [PREFIX/include]
232      --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
233      --infodir=DIR           info documentation in DIR [PREFIX/info]
234      --mandir=DIR            man documentation in DIR [PREFIX/man]
235      --srcdir=DIR            find the sources in DIR [configure dir or ..]
236      --program-prefix=PREFIX prepend PREFIX to installed program names
237      --program-suffix=SUFFIX append SUFFIX to installed program names
238      --program-transform-name=PROGRAM
239                              run sed PROGRAM on installed program names
240    EOF
241        cat << EOF
242    Host type:
243      --build=BUILD           configure for building on BUILD [BUILD=HOST]
244      --host=HOST             configure for HOST [guessed]
245      --target=TARGET         configure for TARGET [TARGET=HOST]
246    Features and packages:
247      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
248      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
249      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
250      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
251      --x-includes=DIR        X include files are in DIR
252      --x-libraries=DIR       X library files are in DIR
253    EOF
254        if test -n "$ac_help"; then
255          echo "--enable and --with options recognized:$ac_help"
256        fi
257        exit 0 ;;
258    
259    -host | --host | --hos | --ho)    -host | --host | --hos | --ho)
260      ac_prev=host_alias ;;      ac_prev=host ;;
261    -host=* | --host=* | --hos=* | --ho=*)    -host=* | --host=* | --hos=* | --ho=*)
262      host_alias=$ac_optarg ;;      host="$ac_optarg" ;;
263    
264    -includedir | --includedir | --includedi | --included | --include \    -includedir | --includedir | --includedi | --included | --include \
265    | --includ | --inclu | --incl | --inc)    | --includ | --inclu | --incl | --inc)
266      ac_prev=includedir ;;      ac_prev=includedir ;;
267    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
268    | --includ=* | --inclu=* | --incl=* | --inc=*)    | --includ=* | --inclu=* | --incl=* | --inc=*)
269      includedir=$ac_optarg ;;      includedir="$ac_optarg" ;;
270    
271    -infodir | --infodir | --infodi | --infod | --info | --inf)    -infodir | --infodir | --infodi | --infod | --info | --inf)
272      ac_prev=infodir ;;      ac_prev=infodir ;;
273    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
274      infodir=$ac_optarg ;;      infodir="$ac_optarg" ;;
275    
276    -libdir | --libdir | --libdi | --libd)    -libdir | --libdir | --libdi | --libd)
277      ac_prev=libdir ;;      ac_prev=libdir ;;
278    -libdir=* | --libdir=* | --libdi=* | --libd=*)    -libdir=* | --libdir=* | --libdi=* | --libd=*)
279      libdir=$ac_optarg ;;      libdir="$ac_optarg" ;;
280    
281    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
282    | --libexe | --libex | --libe)    | --libexe | --libex | --libe)
283      ac_prev=libexecdir ;;      ac_prev=libexecdir ;;
284    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
285    | --libexe=* | --libex=* | --libe=*)    | --libexe=* | --libex=* | --libe=*)
286      libexecdir=$ac_optarg ;;      libexecdir="$ac_optarg" ;;
287    
288    -localstatedir | --localstatedir | --localstatedi | --localstated \    -localstatedir | --localstatedir | --localstatedi | --localstated \
289    | --localstate | --localstat | --localsta | --localst \    | --localstate | --localstat | --localsta | --localst \
# Line 469  do Line 292  do
292    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
293    | --localstate=* | --localstat=* | --localsta=* | --localst=* \    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
294    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
295      localstatedir=$ac_optarg ;;      localstatedir="$ac_optarg" ;;
296    
297    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
298      ac_prev=mandir ;;      ac_prev=mandir ;;
299    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
300      mandir=$ac_optarg ;;      mandir="$ac_optarg" ;;
301    
302    -nfp | --nfp | --nf)    -nfp | --nfp | --nf)
303      # Obsolete; use --without-fp.      # Obsolete; use --without-fp.
304      with_fp=no ;;      with_fp=no ;;
305    
306    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
307    | --no-cr | --no-c | -n)    | --no-cr | --no-c)
308      no_create=yes ;;      no_create=yes ;;
309    
310    -no-recursion | --no-recursion | --no-recursio | --no-recursi \    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 495  do Line 318  do
318    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
319    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
320    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
321      oldincludedir=$ac_optarg ;;      oldincludedir="$ac_optarg" ;;
322    
323    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
324      ac_prev=prefix ;;      ac_prev=prefix ;;
325    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
326      prefix=$ac_optarg ;;      prefix="$ac_optarg" ;;
327    
328    -program-prefix | --program-prefix | --program-prefi | --program-pref \    -program-prefix | --program-prefix | --program-prefi | --program-pref \
329    | --program-pre | --program-pr | --program-p)    | --program-pre | --program-pr | --program-p)
330      ac_prev=program_prefix ;;      ac_prev=program_prefix ;;
331    -program-prefix=* | --program-prefix=* | --program-prefi=* \    -program-prefix=* | --program-prefix=* | --program-prefi=* \
332    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
333      program_prefix=$ac_optarg ;;      program_prefix="$ac_optarg" ;;
334    
335    -program-suffix | --program-suffix | --program-suffi | --program-suff \    -program-suffix | --program-suffix | --program-suffi | --program-suff \
336    | --program-suf | --program-su | --program-s)    | --program-suf | --program-su | --program-s)
337      ac_prev=program_suffix ;;      ac_prev=program_suffix ;;
338    -program-suffix=* | --program-suffix=* | --program-suffi=* \    -program-suffix=* | --program-suffix=* | --program-suffi=* \
339    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
340      program_suffix=$ac_optarg ;;      program_suffix="$ac_optarg" ;;
341    
342    -program-transform-name | --program-transform-name \    -program-transform-name | --program-transform-name \
343    | --program-transform-nam | --program-transform-na \    | --program-transform-nam | --program-transform-na \
# Line 531  do Line 354  do
354    | --program-transfo=* | --program-transf=* \    | --program-transfo=* | --program-transf=* \
355    | --program-trans=* | --program-tran=* \    | --program-trans=* | --program-tran=* \
356    | --progr-tra=* | --program-tr=* | --program-t=*)    | --progr-tra=* | --program-tr=* | --program-t=*)
357      program_transform_name=$ac_optarg ;;      program_transform_name="$ac_optarg" ;;
358    
359    -q | -quiet | --quiet | --quie | --qui | --qu | --q \    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
360    | -silent | --silent | --silen | --sile | --sil)    | -silent | --silent | --silen | --sile | --sil)
# Line 541  do Line 364  do
364      ac_prev=sbindir ;;      ac_prev=sbindir ;;
365    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
366    | --sbi=* | --sb=*)    | --sbi=* | --sb=*)
367      sbindir=$ac_optarg ;;      sbindir="$ac_optarg" ;;
368    
369    -sharedstatedir | --sharedstatedir | --sharedstatedi \    -sharedstatedir | --sharedstatedir | --sharedstatedi \
370    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
# Line 552  do Line 375  do
375    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
376    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
377    | --sha=* | --sh=*)    | --sha=* | --sh=*)
378      sharedstatedir=$ac_optarg ;;      sharedstatedir="$ac_optarg" ;;
379    
380    -site | --site | --sit)    -site | --site | --sit)
381      ac_prev=site ;;      ac_prev=site ;;
382    -site=* | --site=* | --sit=*)    -site=* | --site=* | --sit=*)
383      site=$ac_optarg ;;      site="$ac_optarg" ;;
384    
385    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
386      ac_prev=srcdir ;;      ac_prev=srcdir ;;
387    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
388      srcdir=$ac_optarg ;;      srcdir="$ac_optarg" ;;
389    
390    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
391    | --syscon | --sysco | --sysc | --sys | --sy)    | --syscon | --sysco | --sysc | --sys | --sy)
392      ac_prev=sysconfdir ;;      ac_prev=sysconfdir ;;
393    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
394    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
395      sysconfdir=$ac_optarg ;;      sysconfdir="$ac_optarg" ;;
396    
397    -target | --target | --targe | --targ | --tar | --ta | --t)    -target | --target | --targe | --targ | --tar | --ta | --t)
398      ac_prev=target_alias ;;      ac_prev=target ;;
399    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
400      target_alias=$ac_optarg ;;      target="$ac_optarg" ;;
401    
402    -v | -verbose | --verbose | --verbos | --verbo | --verb)    -v | -verbose | --verbose | --verbos | --verbo | --verb)
403      verbose=yes ;;      verbose=yes ;;
404    
405    -version | --version | --versio | --versi | --vers | -V)    -version | --version | --versio | --versi | --vers)
406      ac_init_version=: ;;      echo "configure generated by autoconf version 2.13"
407        exit 0 ;;
408    
409    -with-* | --with-*)    -with-* | --with-*)
410      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`      ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
411      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
412      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&      if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
413        { echo "$as_me: error: invalid package name: $ac_package" >&2        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414     { (exit 1); exit 1; }; }      fi
415      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
416      case $ac_option in      case "$ac_option" in
417        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;        *=*) ;;
418        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
419      esac      esac
420      eval "with_$ac_package='$ac_optarg'" ;;      eval "with_${ac_package}='$ac_optarg'" ;;
421    
422    -without-* | --without-*)    -without-* | --without-*)
423      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`      ac_package=`echo $ac_option|sed -e 's/-*without-//'`
424      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
425      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&      if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
426        { echo "$as_me: error: invalid package name: $ac_package" >&2        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
427     { (exit 1); exit 1; }; }      fi
428      ac_package=`echo $ac_package | sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
429      eval "with_$ac_package=no" ;;      eval "with_${ac_package}=no" ;;
430    
431    --x)    --x)
432      # Obsolete; use --with-x.      # Obsolete; use --with-x.
# Line 613  do Line 437  do
437      ac_prev=x_includes ;;      ac_prev=x_includes ;;
438    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
439    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
440      x_includes=$ac_optarg ;;      x_includes="$ac_optarg" ;;
441    
442    -x-libraries | --x-libraries | --x-librarie | --x-librari \    -x-libraries | --x-libraries | --x-librarie | --x-librari \
443    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
444      ac_prev=x_libraries ;;      ac_prev=x_libraries ;;
445    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
446    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
447      x_libraries=$ac_optarg ;;      x_libraries="$ac_optarg" ;;
448    
449    -*) { echo "$as_me: error: unrecognized option: $ac_option    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 Try \`$0 --help' for more information." >&2  
    { (exit 1); exit 1; }; }  
450      ;;      ;;
451    
   *=*)  
     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`  
     # Reject names that are not valid shell variable names.  
     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&  
       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2  
    { (exit 1); exit 1; }; }  
     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`  
     eval "$ac_envvar='$ac_optarg'"  
     export $ac_envvar ;;  
   
452    *)    *)
453      # FIXME: should be removed in autoconf 3.0.      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
454      echo "$as_me: WARNING: you should use --build, --host, --target" >&2        echo "configure: warning: $ac_option: invalid host type" 1>&2
455      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&      fi
456        echo "$as_me: WARNING: invalid host type: $ac_option" >&2      if test "x$nonopt" != xNONE; then
457      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}        { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
458        fi
459        nonopt="$ac_option"
460      ;;      ;;
461    
462    esac    esac
463  done  done
464    
465  if test -n "$ac_prev"; then  if test -n "$ac_prev"; then
466    ac_option=--`echo $ac_prev | sed 's/_/-/g'`    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
   { echo "$as_me: error: missing argument to $ac_option" >&2  
    { (exit 1); exit 1; }; }  
467  fi  fi
468    
469  # Be sure to have absolute paths.  trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 for ac_var in exec_prefix prefix  
 do  
   eval ac_val=$`echo $ac_var`  
   case $ac_val in  
     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;  
     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2  
    { (exit 1); exit 1; }; };;  
   esac  
 done  
470    
471  # Be sure to have absolute paths.  # File descriptor usage:
472  for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \  # 0 standard input
473                localstatedir libdir includedir oldincludedir infodir mandir  # 1 file creation
474    # 2 errors and warnings
475    # 3 some systems may open it to /dev/tty
476    # 4 used on the Kubota Titan
477    # 6 checking for... messages and results
478    # 5 compiler messages saved in config.log
479    if test "$silent" = yes; then
480      exec 6>/dev/null
481    else
482      exec 6>&1
483    fi
484    exec 5>./config.log
485    
486    echo "\
487    This file contains any messages produced by compilers while
488    running configure, to aid debugging if configure makes a mistake.
489    " 1>&5
490    
491    # Strip out --no-create and --no-recursion so they do not pile up.
492    # Also quote any args containing shell metacharacters.
493    ac_configure_args=
494    for ac_arg
495  do  do
496    eval ac_val=$`echo $ac_var`    case "$ac_arg" in
497    case $ac_val in    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
498      [\\/$]* | ?:[\\/]* ) ;;    | --no-cr | --no-c) ;;
499      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
500     { (exit 1); exit 1; }; };;    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
501      *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
502      ac_configure_args="$ac_configure_args '$ac_arg'" ;;
503      *) ac_configure_args="$ac_configure_args $ac_arg" ;;
504    esac    esac
505  done  done
506    
507  # There might be people who depend on the old broken behavior: `$host'  # NLS nuisances.
508  # used to hold the argument of --host etc.  # Only set these to C if already set.  These must not be set unconditionally
509  # FIXME: To remove some day.  # because not all systems understand e.g. LANG=C (notably SCO).
510  build=$build_alias  # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
511  host=$host_alias  # Non-C LC_CTYPE values break the ctype check.
512  target=$target_alias  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
513    if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
514  # FIXME: To remove some day.  if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
515  if test "x$host_alias" != x; then  if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
   if test "x$build_alias" = x; then  
     cross_compiling=maybe  
     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.  
     If a cross compiler is detected then cross compile mode will be used." >&2  
   elif test "x$build_alias" != "x$host_alias"; then  
     cross_compiling=yes  
   fi  
 fi  
   
 ac_tool_prefix=  
 test -n "$host_alias" && ac_tool_prefix=$host_alias-  
516    
517  test "$silent" = yes && exec 6>/dev/null  # confdefs.h avoids OS command line length limits that DEFS can exceed.
518    rm -rf conftest* confdefs.h
519    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
520    echo > confdefs.h
521    
522    # A filename unique to this package, relative to the directory that
523    # configure is in, which we can look for to find out if srcdir is correct.
524    ac_unique_file=
525    
526  # Find the source files, if location was not specified.  # Find the source files, if location was not specified.
527  if test -z "$srcdir"; then  if test -z "$srcdir"; then
528    ac_srcdir_defaulted=yes    ac_srcdir_defaulted=yes
529    # Try the directory containing this script, then its parent.    # Try the directory containing this script, then its parent.
530    ac_confdir=`(dirname "$0") 2>/dev/null ||    ac_prog=$0
531  $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \    ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
532           X"$0" : 'X\(//\)[^/]' \| \    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
          X"$0" : 'X\(//\)$' \| \  
          X"$0" : 'X\(/\)' \| \  
          .     : '\(.\)' 2>/dev/null ||  
 echo X"$0" |  
     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }  
           /^X\(\/\/\)[^/].*/{ s//\1/; q; }  
           /^X\(\/\/\)$/{ s//\1/; q; }  
           /^X\(\/\).*/{ s//\1/; q; }  
           s/.*/./; q'`  
533    srcdir=$ac_confdir    srcdir=$ac_confdir
534    if test ! -r $srcdir/$ac_unique_file; then    if test ! -r $srcdir/$ac_unique_file; then
535      srcdir=..      srcdir=..
# Line 726  else Line 539  else
539  fi  fi
540  if test ! -r $srcdir/$ac_unique_file; then  if test ! -r $srcdir/$ac_unique_file; then
541    if test "$ac_srcdir_defaulted" = yes; then    if test "$ac_srcdir_defaulted" = yes; then
542      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2      { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
    { (exit 1); exit 1; }; }  
543    else    else
544      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2      { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
    { (exit 1); exit 1; }; }  
545    fi    fi
546  fi  fi
547  (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||  srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2  
    { (exit 1); exit 1; }; }  
 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`  
 ac_env_build_alias_set=${build_alias+set}  
 ac_env_build_alias_value=$build_alias  
 ac_cv_env_build_alias_set=${build_alias+set}  
 ac_cv_env_build_alias_value=$build_alias  
 ac_env_host_alias_set=${host_alias+set}  
 ac_env_host_alias_value=$host_alias  
 ac_cv_env_host_alias_set=${host_alias+set}  
 ac_cv_env_host_alias_value=$host_alias  
 ac_env_target_alias_set=${target_alias+set}  
 ac_env_target_alias_value=$target_alias  
 ac_cv_env_target_alias_set=${target_alias+set}  
 ac_cv_env_target_alias_value=$target_alias  
 ac_env_CC_set=${CC+set}  
 ac_env_CC_value=$CC  
 ac_cv_env_CC_set=${CC+set}  
 ac_cv_env_CC_value=$CC  
 ac_env_CFLAGS_set=${CFLAGS+set}  
 ac_env_CFLAGS_value=$CFLAGS  
 ac_cv_env_CFLAGS_set=${CFLAGS+set}  
 ac_cv_env_CFLAGS_value=$CFLAGS  
 ac_env_LDFLAGS_set=${LDFLAGS+set}  
 ac_env_LDFLAGS_value=$LDFLAGS  
 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}  
 ac_cv_env_LDFLAGS_value=$LDFLAGS  
 ac_env_CPPFLAGS_set=${CPPFLAGS+set}  
 ac_env_CPPFLAGS_value=$CPPFLAGS  
 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}  
 ac_cv_env_CPPFLAGS_value=$CPPFLAGS  
 ac_env_CPP_set=${CPP+set}  
 ac_env_CPP_value=$CPP  
 ac_cv_env_CPP_set=${CPP+set}  
 ac_cv_env_CPP_value=$CPP  
   
 #  
 # Report the --help message.  
 #  
 if test "$ac_init_help" = "long"; then  
   # Omit some internal or obsolete options to make the list less imposing.  
   # This message is too long to be a string in the A/UX 3.1 sh.  
   cat <<_ACEOF  
 \`configure' configures this package to adapt to many kinds of systems.  
   
 Usage: $0 [OPTION]... [VAR=VALUE]...  
   
 To assign environment variables (e.g., CC, CFLAGS...), specify them as  
 VAR=VALUE.  See below for descriptions of some of the useful variables.  
   
 Defaults for the options are specified in brackets.  
   
 Configuration:  
   -h, --help              display this help and exit  
       --help=short        display options specific to this package  
       --help=recursive    display the short help of all the included packages  
   -V, --version           display version information and exit  
   -q, --quiet, --silent   do not print \`checking...' messages  
       --cache-file=FILE   cache test results in FILE [disabled]  
   -C, --config-cache      alias for \`--cache-file=config.cache'  
   -n, --no-create         do not create output files  
       --srcdir=DIR        find the sources in DIR [configure dir or \`..']  
   
 _ACEOF  
   
   cat <<_ACEOF  
 Installation directories:  
   --prefix=PREFIX         install architecture-independent files in PREFIX  
                           [$ac_default_prefix]  
   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX  
                           [PREFIX]  
   
 By default, \`make install' will install all the files in  
 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify  
 an installation prefix other than \`$ac_default_prefix' using \`--prefix',  
 for instance \`--prefix=\$HOME'.  
   
 For better control, use the options below.  
   
 Fine tuning of the installation directories:  
   --bindir=DIR           user executables [EPREFIX/bin]  
   --sbindir=DIR          system admin executables [EPREFIX/sbin]  
   --libexecdir=DIR       program executables [EPREFIX/libexec]  
   --datadir=DIR          read-only architecture-independent data [PREFIX/share]  
   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]  
   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]  
   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]  
   --libdir=DIR           object code libraries [EPREFIX/lib]  
   --includedir=DIR       C header files [PREFIX/include]  
   --oldincludedir=DIR    C header files for non-gcc [/usr/include]  
   --infodir=DIR          info documentation [PREFIX/info]  
   --mandir=DIR           man documentation [PREFIX/man]  
 _ACEOF  
   
   cat <<\_ACEOF  
   
 X features:  
   --x-includes=DIR    X include files are in DIR  
   --x-libraries=DIR   X library files are in DIR  
   
 System types:  
   --build=BUILD     configure for building on BUILD [guessed]  
   --host=HOST       cross-compile to build programs to run on HOST [BUILD]  
 _ACEOF  
 fi  
   
 if test -n "$ac_init_help"; then  
   
   cat <<\_ACEOF  
   
 Optional Features:  
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)  
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]  
  --enable-maxpage=XXXX will compile in a page table of size XXX (eg '--enable-maxpage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each)  
  --enable-holepage=XXXX will compile in a XXX-sized hole between the heap and relocatable memory area (eg '--enable-holepage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each)  
  --enable-vssize=XXXX will compile in a value stack of size XXX  
  --enable-bdssize=XXXX will compile in a binding stack of size XXX  
  --enable-ihssize=XXXX will compile in a invocation history stack of size XXX  
  --enable-frssize=XXXX will compile in a frame stack of size XXX  
  --enable-cssize=XXXX produces executables with a C stack of size XXX  
  --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs  
  --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems  
  --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh  
  --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh  
  --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info  
  --enable-emacsdir=XXXX will manually specify the location for elisp files  
  --enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes)  
  --enable-japi=yes will compile in support for the JAPI graphical interface if present on your system  
  --enable-xdr=yes will compile in support for XDR  
  --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images  
   
  --enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files  
   
  --enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files  
   
  --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files  
   
  --enable-custreloc uses custom gcl code if available for loading  and relocationing object files  
   
  --enable-debug builds gcl with -g in CFLAGS to enable running under gdb  
   
  --enable-gprof builds gcl with -pg in CFLAGS to enable profiling with gprof  
   
  --enable-static will link your GCL against static as opposed to shared system libraries  
  --enable-pic builds gcl with -fPIC in CFLAGS  
   
  --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source  
   
 --enable-readine    enables command line completion via the readline library  
 --enable-ansi builds a large gcl aiming for ansi compliance,  
                     --disable-ansi builds the smaller traditional CLtL1 image  
   
 Optional Packages:  
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]  
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)  
   --with-x                use the X Window System  
   
 Some influential environment variables:  
   CC          C compiler command  
   CFLAGS      C compiler flags  
   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a  
               nonstandard directory <lib dir>  
   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have  
               headers in a nonstandard directory <include dir>  
   CPP         C preprocessor  
   
 Use these variables to override the choices made by `configure' or to help  
 it to find libraries and programs with nonstandard names/locations.  
   
 _ACEOF  
 fi  
   
 if test "$ac_init_help" = "recursive"; then  
   # If there are subdirs, report their specific --help.  
   ac_popdir=`pwd`  
   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue  
     test -d $ac_dir || continue  
     ac_builddir=.  
   
 if test "$ac_dir" != .; then  
   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`  
   # A "../" for each directory in $ac_dir_suffix.  
   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`  
 else  
   ac_dir_suffix= ac_top_builddir=  
 fi  
   
 case $srcdir in  
   .)  # No --srcdir option.  We are building in place.  
     ac_srcdir=.  
     if test -z "$ac_top_builddir"; then  
        ac_top_srcdir=.  
     else  
        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`  
     fi ;;  
   [\\/]* | ?:[\\/]* )  # Absolute path.  
     ac_srcdir=$srcdir$ac_dir_suffix;  
     ac_top_srcdir=$srcdir ;;  
   *) # Relative path.  
     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix  
     ac_top_srcdir=$ac_top_builddir$srcdir ;;  
 esac  
   
 # Do not use `cd foo && pwd` to compute absolute paths, because  
 # the directories may not exist.  
 case `pwd` in  
 .) ac_abs_builddir="$ac_dir";;  
 *)  
   case "$ac_dir" in  
   .) ac_abs_builddir=`pwd`;;  
   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;  
   *) ac_abs_builddir=`pwd`/"$ac_dir";;  
   esac;;  
 esac  
 case $ac_abs_builddir in  
 .) ac_abs_top_builddir=${ac_top_builddir}.;;  
 *)  
   case ${ac_top_builddir}. in  
   .) ac_abs_top_builddir=$ac_abs_builddir;;  
   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;  
   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;  
   esac;;  
 esac  
 case $ac_abs_builddir in  
 .) ac_abs_srcdir=$ac_srcdir;;  
 *)  
   case $ac_srcdir in  
   .) ac_abs_srcdir=$ac_abs_builddir;;  
   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;  
   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;  
   esac;;  
 esac  
 case $ac_abs_builddir in  
 .) ac_abs_top_srcdir=$ac_top_srcdir;;  
 *)  
   case $ac_top_srcdir in  
   .) ac_abs_top_srcdir=$ac_abs_builddir;;  
   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;  
   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;  
   esac;;  
 esac  
   
     cd $ac_dir  
     # Check for guested configure; otherwise get Cygnus style configure.  
     if test -f $ac_srcdir/configure.gnu; then  
       echo  
       $SHELL $ac_srcdir/configure.gnu  --help=recursive  
     elif test -f $ac_srcdir/configure; then  
       echo  
       $SHELL $ac_srcdir/configure  --help=recursive  
     elif test -f $ac_srcdir/configure.ac ||  
            test -f $ac_srcdir/configure.in; then  
       echo  
       $ac_configure --help  
     else  
       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2  
     fi  
     cd $ac_popdir  
   done  
 fi  
   
 test -n "$ac_init_help" && exit 0  
 if $ac_init_version; then  
   cat <<\_ACEOF  
   
 Copyright (C) 2003 Free Software Foundation, Inc.  
 This configure script is free software; the Free Software Foundation  
 gives unlimited permission to copy, distribute and modify it.  
 _ACEOF  
   exit 0  
 fi  
 exec 5>config.log  
 cat >&5 <<_ACEOF  
 This file contains any messages produced by compilers while  
 running configure, to aid debugging if configure makes a mistake.  
   
 It was created by $as_me, which was  
 generated by GNU Autoconf 2.59.  Invocation command line was  
   
   $ $0 $@  
   
 _ACEOF  
 {  
 cat <<_ASUNAME  
 ## --------- ##  
 ## Platform. ##  
 ## --------- ##  
   
 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`  
 uname -m = `(uname -m) 2>/dev/null || echo unknown`  
 uname -r = `(uname -r) 2>/dev/null || echo unknown`  
 uname -s = `(uname -s) 2>/dev/null || echo unknown`  
 uname -v = `(uname -v) 2>/dev/null || echo unknown`  
   
 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`  
 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`  
   
 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`  
 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`  
 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`  
 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`  
 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`  
 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`  
 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`  
   
 _ASUNAME  
   
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   echo "PATH: $as_dir"  
 done  
   
 } >&5  
   
 cat >&5 <<_ACEOF  
   
   
 ## ----------- ##  
 ## Core tests. ##  
 ## ----------- ##  
   
 _ACEOF  
   
   
 # Keep a trace of the command line.  
 # Strip out --no-create and --no-recursion so they do not pile up.  
 # Strip out --silent because we don't want to record it for future runs.  
 # Also quote any args containing shell meta-characters.  
 # Make two passes to allow for proper duplicate-argument suppression.  
 ac_configure_args=  
 ac_configure_args0=  
 ac_configure_args1=  
 ac_sep=  
 ac_must_keep_next=false  
 for ac_pass in 1 2  
 do  
   for ac_arg  
   do  
     case $ac_arg in  
     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;  
     -q | -quiet | --quiet | --quie | --qui | --qu | --q \  
     | -silent | --silent | --silen | --sile | --sil)  
       continue ;;  
     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)  
       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;  
     esac  
     case $ac_pass in  
     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;  
     2)  
       ac_configure_args1="$ac_configure_args1 '$ac_arg'"  
       if test $ac_must_keep_next = true; then  
         ac_must_keep_next=false # Got value, back to normal.  
       else  
         case $ac_arg in  
           *=* | --config-cache | -C | -disable-* | --disable-* \  
           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \  
           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \  
           | -with-* | --with-* | -without-* | --without-* | --x)  
             case "$ac_configure_args0 " in  
               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;  
             esac  
             ;;  
           -* ) ac_must_keep_next=true ;;  
         esac  
       fi  
       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"  
       # Get rid of the leading space.  
       ac_sep=" "  
       ;;  
     esac  
   done  
 done  
 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }  
 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }  
   
 # When interrupted or exit'd, cleanup temporary files, and complete  
 # config.log.  We remove comments because anyway the quotes in there  
 # would cause problems or look ugly.  
 # WARNING: Be sure not to use single quotes in there, as some shells,  
 # such as our DU 5.0 friend, will then `close' the trap.  
 trap 'exit_status=$?  
   # Save into config.log some information that might help in debugging.  
   {  
     echo  
   
     cat <<\_ASBOX  
 ## ---------------- ##  
 ## Cache variables. ##  
 ## ---------------- ##  
 _ASBOX  
     echo  
     # The following way of writing the cache mishandles newlines in values,  
 {  
   (set) 2>&1 |  
     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in  
     *ac_space=\ *)  
       sed -n \  
         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;  
           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"  
       ;;  
     *)  
       sed -n \  
         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"  
       ;;  
     esac;  
 }  
     echo  
548    
     cat <<\_ASBOX  
 ## ----------------- ##  
 ## Output variables. ##  
 ## ----------------- ##  
 _ASBOX  
     echo  
     for ac_var in $ac_subst_vars  
     do  
       eval ac_val=$`echo $ac_var`  
       echo "$ac_var='"'"'$ac_val'"'"'"  
     done | sort  
     echo  
   
     if test -n "$ac_subst_files"; then  
       cat <<\_ASBOX  
 ## ------------- ##  
 ## Output files. ##  
 ## ------------- ##  
 _ASBOX  
       echo  
       for ac_var in $ac_subst_files  
       do  
         eval ac_val=$`echo $ac_var`  
         echo "$ac_var='"'"'$ac_val'"'"'"  
       done | sort  
       echo  
     fi  
   
     if test -s confdefs.h; then  
       cat <<\_ASBOX  
 ## ----------- ##  
 ## confdefs.h. ##  
 ## ----------- ##  
 _ASBOX  
       echo  
       sed "/^$/d" confdefs.h | sort  
       echo  
     fi  
     test "$ac_signal" != 0 &&  
       echo "$as_me: caught signal $ac_signal"  
     echo "$as_me: exit $exit_status"  
   } >&5  
   rm -f core *.core &&  
   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&  
     exit $exit_status  
      ' 0  
 for ac_signal in 1 2 13 15; do  
   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal  
 done  
 ac_signal=0  
   
 # confdefs.h avoids OS command line length limits that DEFS can exceed.  
 rm -rf conftest* confdefs.h  
 # AIX cpp loses on an empty file, so make sure it contains at least a newline.  
 echo >confdefs.h  
   
 # Predefined preprocessor variables.  
   
 cat >>confdefs.h <<_ACEOF  
 #define PACKAGE_NAME "$PACKAGE_NAME"  
 _ACEOF  
   
   
 cat >>confdefs.h <<_ACEOF  
 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"  
 _ACEOF  
   
   
 cat >>confdefs.h <<_ACEOF  
 #define PACKAGE_VERSION "$PACKAGE_VERSION"  
 _ACEOF  
   
   
 cat >>confdefs.h <<_ACEOF  
 #define PACKAGE_STRING "$PACKAGE_STRING"  
 _ACEOF  
   
   
 cat >>confdefs.h <<_ACEOF  
 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"  
 _ACEOF  
   
   
 # Let the site file select an alternate cache file if it wants to.  
549  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
550  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
551    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 1239  if test -z "$CONFIG_SITE"; then Line 556  if test -z "$CONFIG_SITE"; then
556  fi  fi
557  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
558    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
559      { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5      echo "loading site script $ac_site_file"
 echo "$as_me: loading site script $ac_site_file" >&6;}  
     sed 's/^/| /' "$ac_site_file" >&5  
560      . "$ac_site_file"      . "$ac_site_file"
561    fi    fi
562  done  done
563    
564  if test -r "$cache_file"; then  if test -r "$cache_file"; then
565    # Some versions of bash will fail to source /dev/null (special    echo "loading cache $cache_file"
566    # files actually), so we avoid doing that.    . $cache_file
   if test -f "$cache_file"; then  
     { echo "$as_me:$LINENO: loading cache $cache_file" >&5  
 echo "$as_me: loading cache $cache_file" >&6;}  
     case $cache_file in  
       [\\/]* | ?:[\\/]* ) . $cache_file;;  
       *)                      . ./$cache_file;;  
     esac  
   fi  
567  else  else
568    { echo "$as_me:$LINENO: creating cache $cache_file" >&5    echo "creating cache $cache_file"
569  echo "$as_me: creating cache $cache_file" >&6;}    > $cache_file
   >$cache_file  
 fi  
   
 # Check that the precious variables saved in the cache have kept the same  
 # value.  
 ac_cache_corrupted=false  
 for ac_var in `(set) 2>&1 |  
                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do  
   eval ac_old_set=\$ac_cv_env_${ac_var}_set  
   eval ac_new_set=\$ac_env_${ac_var}_set  
   eval ac_old_val="\$ac_cv_env_${ac_var}_value"  
   eval ac_new_val="\$ac_env_${ac_var}_value"  
   case $ac_old_set,$ac_new_set in  
     set,)  
       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5  
 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}  
       ac_cache_corrupted=: ;;  
     ,set)  
       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5  
 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}  
       ac_cache_corrupted=: ;;  
     ,);;  
     *)  
       if test "x$ac_old_val" != "x$ac_new_val"; then  
         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5  
 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}  
         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5  
 echo "$as_me:   former value:  $ac_old_val" >&2;}  
         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5  
 echo "$as_me:   current value: $ac_new_val" >&2;}  
         ac_cache_corrupted=:  
       fi;;  
   esac  
   # Pass precious variables to config.status.  
   if test "$ac_new_set" = set; then  
     case $ac_new_val in  
     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)  
       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;  
     *) ac_arg=$ac_var=$ac_new_val ;;  
     esac  
     case " $ac_configure_args " in  
       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.  
       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;  
     esac  
   fi  
 done  
 if $ac_cache_corrupted; then  
   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5  
 echo "$as_me: error: changes in the environment can compromise the build" >&2;}  
   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5  
 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}  
    { (exit 1); exit 1; }; }  
570  fi  fi
571    
572  ac_ext=c  ac_ext=c
573    # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
574  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
575  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
576  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
577  ac_compiler_gnu=$ac_cv_c_compiler_gnu  cross_compiling=$ac_cv_prog_cc_cross
578    
579    ac_exeext=
580    ac_objext=o
581    if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
582      # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
583      if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
584        ac_n= ac_c='
585    ' ac_t='        '
586      else
587        ac_n=-n ac_c= ac_t=
588      fi
589    else
590      ac_n= ac_c='\c' ac_t=
591    fi
   
   
   
592    
593    
           ac_config_headers="$ac_config_headers h/gclincl.h"  
594    
595    
596  VERSION=`cat majvers`.`cat minvers`  VERSION=`cat majvers`.`cat minvers`
# Line 1351  VERSION=`cat majvers`.`cat minvers` Line 603  VERSION=`cat majvers`.`cat minvers`
603  #  #
604    
605  help="--enable-maxpage=XXXX will compile in a page table of size XXX (default ${default_maxpage})"  help="--enable-maxpage=XXXX will compile in a page table of size XXX (default ${default_maxpage})"
606    
607  # Check whether --enable-maxpage or --disable-maxpage was given.  # Check whether --enable-maxpage or --disable-maxpage was given.
608  if test "${enable_maxpage+set}" = set; then  if test "${enable_maxpage+set}" = set; then
609    enableval="$enable_maxpage"    enableval="$enable_maxpage"
610    cat >>confdefs.h <<_ACEOF    :
611  #define MAXPAGE $enable_maxpage  else
612  _ACEOF    enable_maxpage=262144
613    fi
614    
615    #AC_DEFINE_UNQUOTED(MAXPAGE,$enable_maxpage)
616    
617    
618    # Check whether --enable-holediv or --disable-holediv was given.
619    if test "${enable_holediv+set}" = set; then
620      enableval="$enable_holediv"
621      :
622    else
623      enable_holediv=4
624    fi
625    
626  fi;  cat >> confdefs.h <<EOF
627    #define HOLEDIV $enable_holediv
628    EOF
629    
 # Check whether --enable-holepage or --disable-holepage was given.  
 if test "${enable_holepage+set}" = set; then  
   enableval="$enable_holepage"  
   cat >>confdefs.h <<_ACEOF  
 #define HOLEPAGE $enable_holepage  
 _ACEOF  
630    
 fi;  
631    
632  # Check whether --enable-vssize or --disable-vssize was given.  # Check whether --enable-vssize or --disable-vssize was given.
633  if test "${enable_vssize+set}" = set; then  if test "${enable_vssize+set}" = set; then
634    enableval="$enable_vssize"    enableval="$enable_vssize"
635    cat >>confdefs.h <<_ACEOF    :
636    else
637      enable_vssize=131072
638    fi
639    
640    cat >> confdefs.h <<EOF
641  #define VSSIZE $enable_vssize  #define VSSIZE $enable_vssize
642  _ACEOF  EOF
643    
644    
 fi;  
645    
646  # Check whether --enable-bdssize or --disable-bdssize was given.  # Check whether --enable-bdssize or --disable-bdssize was given.
647  if test "${enable_bdssize+set}" = set; then  if test "${enable_bdssize+set}" = set; then
648    enableval="$enable_bdssize"    enableval="$enable_bdssize"
649    cat >>confdefs.h <<_ACEOF    :
650    else
651      enable_bdssize=2048
652    fi
653    
654    cat >> confdefs.h <<EOF
655  #define BDSSIZE $enable_bdssize  #define BDSSIZE $enable_bdssize
656  _ACEOF  EOF
657    
658    
 fi;  
659    
660  # Check whether --enable-ihssize or --disable-ihssize was given.  # Check whether --enable-ihssize or --disable-ihssize was given.
661  if test "${enable_ihssize+set}" = set; then  if test "${enable_ihssize+set}" = set; then
662    enableval="$enable_ihssize"    enableval="$enable_ihssize"
663    cat >>confdefs.h <<_ACEOF    :
664    else
665      enable_ihssize=4096
666    fi
667    
668    cat >> confdefs.h <<EOF
669  #define IHSSIZE $enable_ihssize  #define IHSSIZE $enable_ihssize
670  _ACEOF  EOF
671    
 fi;  
672    
673  # Check whether --enable-frssize or --disable-frssize was given.  # Check whether --enable-frssize or --disable-frssize was given.
674  if test "${enable_frssize+set}" = set; then  if test "${enable_frssize+set}" = set; then
675    enableval="$enable_frssize"    enableval="$enable_frssize"
676    cat >>confdefs.h <<_ACEOF    :
677    else
678      enable_frssize=4096
679    fi
680    
681    cat >> confdefs.h <<EOF
682  #define FRSSIZE $enable_frssize  #define FRSSIZE $enable_frssize
683  _ACEOF  EOF
684    
 fi;  
685    
686  # Check whether --enable-cssize or --disable-cssize was given.  # Check whether --enable-cssize or --disable-cssize was given.
687  if test "${enable_cssize+set}" = set; then  if test "${enable_cssize+set}" = set; then
688    enableval="$enable_cssize"    enableval="$enable_cssize"
689    cat >>confdefs.h <<_ACEOF    :
690  #define CSSIZE $enable_cssize  else
691  _ACEOF    enable_cssize=1073741824
692    fi
 fi;  
693    
694    #AC_DEFINE_UNQUOTED(CSSIZE,$enable_cssize)
695      
696  # Check whether --enable-machine or --disable-machine was given.  # Check whether --enable-machine or --disable-machine was given.
697  if test "${enable_machine+set}" = set; then  if test "${enable_machine+set}" = set; then
698    enableval="$enable_machine"    enableval="$enable_machine"
699    enable_machine=$enableval    enable_machine=$enableval
700  else  else
701    enable_machine=""    enable_machine=""
702  fi;  fi
703    
704    
705    # Check whether --enable-immfix or --disable-immfix was given.
706    if test "${enable_immfix+set}" = set; then
707      enableval="$enable_immfix"
708      :
709    else
710      enable_immfix=yes
711    fi
712    
713    
714  #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)] ,
715  #[use_gmp=$enableval],[use_gmp="yes"])  #[use_gmp=$enableval],[use_gmp="yes"])
# Line 1433  if test "${enable_notify+set}" = set; th Line 722  if test "${enable_notify+set}" = set; th
722    enable_notify=$enableval    enable_notify=$enableval
723  else  else
724    enable_notify="yes"    enable_notify="yes"
725  fi;  fi
726    
727    
728  # Check whether --enable-tkconfig or --disable-tkconfig was given.  # Check whether --enable-tkconfig or --disable-tkconfig was given.
729  if test "${enable_tkconfig+set}" = set; then  if test "${enable_tkconfig+set}" = set; then
# Line 1441  if test "${enable_tkconfig+set}" = set; Line 731  if test "${enable_tkconfig+set}" = set;
731    TK_CONFIG_PREFIX=$enableval    TK_CONFIG_PREFIX=$enableval
732  else  else
733    TK_CONFIG_PREFIX="unknown"    TK_CONFIG_PREFIX="unknown"
734  fi;  fi
735    
736    
737    
738  # Check whether --enable-tclconfig or --disable-tclconfig was given.  # Check whether --enable-tclconfig or --disable-tclconfig was given.
# Line 1450  if test "${enable_tclconfig+set}" = set; Line 741  if test "${enable_tclconfig+set}" = set;
741    TCL_CONFIG_PREFIX=$enableval    TCL_CONFIG_PREFIX=$enableval
742  else  else
743    TCL_CONFIG_PREFIX="unknown"    TCL_CONFIG_PREFIX="unknown"
744  fi;  fi
745    
746    
747  # Check whether --enable-infodir or --disable-infodir was given.  # Check whether --enable-infodir or --disable-infodir was given.
748  if test "${enable_infodir+set}" = set; then  if test "${enable_infodir+set}" = set; then
# Line 1458  if test "${enable_infodir+set}" = set; t Line 750  if test "${enable_infodir+set}" = set; t
750    INFO_DIR=$enableval    INFO_DIR=$enableval
751  else  else
752    INFO_DIR="unknown"    INFO_DIR="unknown"
753  fi;  fi
754    
755  INFO_DIR=`eval echo $INFO_DIR/`  INFO_DIR=`eval echo $INFO_DIR/`
756    
757  # Check whether --enable-emacsdir or --disable-emacsdir was given.  # Check whether --enable-emacsdir or --disable-emacsdir was given.
# Line 1467  if test "${enable_emacsdir+set}" = set; Line 760  if test "${enable_emacsdir+set}" = set;
760    EMACS_SITE_LISP=$enableval    EMACS_SITE_LISP=$enableval
761  else  else
762    EMACS_SITE_LISP="unknown"    EMACS_SITE_LISP="unknown"
763  fi;  fi
764    
765  EMACS_SITE_LISP=`eval echo $EMACS_SITE_LISP`  EMACS_SITE_LISP=`eval echo $EMACS_SITE_LISP`
766    
767  # Check whether --enable-common-binary or --disable-common-binary was given.  # Check whether --enable-common-binary or --disable-common-binary was given.
# Line 1476  if test "${enable_common_binary+set}" = Line 770  if test "${enable_common_binary+set}" =
770    use_common_binary=$enableval    use_common_binary=$enableval
771  else  else
772    use_common_binary="yes"    use_common_binary="yes"
773  fi;  fi
774    
775    
776  # Check whether --enable-japi or --disable-japi was given.  # Check whether --enable-japi or --disable-japi was given.
777  if test "${enable_japi+set}" = set; then  if test "${enable_japi+set}" = set; then
# Line 1484  if test "${enable_japi+set}" = set; then Line 779  if test "${enable_japi+set}" = set; then
779    try_japi=$enableval    try_japi=$enableval
780  else  else
781    try_japi="no"    try_japi="no"
782  fi;  fi
783    
784    
785  # Check whether --enable-xdr or --disable-xdr was given.  # Check whether --enable-xdr or --disable-xdr was given.
786  if test "${enable_xdr+set}" = set; then  if test "${enable_xdr+set}" = set; then
# Line 1492  if test "${enable_xdr+set}" = set; then Line 788  if test "${enable_xdr+set}" = set; then
788    try_xdr=$enableval    try_xdr=$enableval
789  else  else
790    try_xdr="no"    try_xdr="no"
791  fi;  fi
792    
793    
794  #  #
795  # Host information  # Host information
796  #  #
797    
798    
# Line 1509  for ac_dir in $srcdir $srcdir/.. $srcdir Line 806  for ac_dir in $srcdir $srcdir/.. $srcdir
806      ac_aux_dir=$ac_dir      ac_aux_dir=$ac_dir
807      ac_install_sh="$ac_aux_dir/install.sh -c"      ac_install_sh="$ac_aux_dir/install.sh -c"
808      break      break
   elif test -f $ac_dir/shtool; then  
     ac_aux_dir=$ac_dir  
     ac_install_sh="$ac_aux_dir/shtool install -c"  
     break  
809    fi    fi
810  done  done
811  if test -z "$ac_aux_dir"; then  if test -z "$ac_aux_dir"; then
812    { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5    { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
813  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}  fi
814     { (exit 1); exit 1; }; }  ac_config_guess=$ac_aux_dir/config.guess
815  fi  ac_config_sub=$ac_aux_dir/config.sub
816  ac_config_guess="$SHELL $ac_aux_dir/config.guess"  ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
817  ac_config_sub="$SHELL $ac_aux_dir/config.sub"  
 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.  
818    
819  # Make sure we can run config.sub.  # Make sure we can run config.sub.
820  $ac_config_sub sun4 >/dev/null 2>&1 ||  if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
821    { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5  else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
822  echo "$as_me: error: cannot run $ac_config_sub" >&2;}  fi
823     { (exit 1); exit 1; }; }  
824    echo $ac_n "checking host system type""... $ac_c" 1>&6
825  echo "$as_me:$LINENO: checking build system type" >&5  echo "configure:826: checking host system type" >&5
826  echo $ECHO_N "checking build system type... $ECHO_C" >&6  
827  if test "${ac_cv_build+set}" = set; then  host_alias=$host
828    echo $ECHO_N "(cached) $ECHO_C" >&6  case "$host_alias" in
829  else  NONE)
830    ac_cv_build_alias=$build_alias    case $nonopt in
831  test -z "$ac_cv_build_alias" &&    NONE)
832    ac_cv_build_alias=`$ac_config_guess`      if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
833  test -z "$ac_cv_build_alias" &&      else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
834    { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5      fi ;;
835  echo "$as_me: error: cannot guess build type; you must specify one" >&2;}    *) host_alias=$nonopt ;;
836     { (exit 1); exit 1; }; }    esac ;;
837  ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||  esac
   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5  
 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}  
    { (exit 1); exit 1; }; }  
   
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_build" >&5  
 echo "${ECHO_T}$ac_cv_build" >&6  
 build=$ac_cv_build  
 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  
 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  
 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  
   
   
 echo "$as_me:$LINENO: checking host system type" >&5  
 echo $ECHO_N "checking host system type... $ECHO_C" >&6  
 if test "${ac_cv_host+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_cv_host_alias=$host_alias  
 test -z "$ac_cv_host_alias" &&  
   ac_cv_host_alias=$ac_cv_build_alias  
 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||  
   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5  
 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}  
    { (exit 1); exit 1; }; }  
   
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_host" >&5  
 echo "${ECHO_T}$ac_cv_host" >&6  
 host=$ac_cv_host  
 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  
 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  
 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  
838    
839    host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
840    host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
841    host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
842    host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
843    echo "$ac_t""$host" 1>&6
844    
845  canonical=$host  canonical=$host
846  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]}'`
847  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]}'`
848  cat >>confdefs.h <<_ACEOF  cat >> confdefs.h <<EOF
849  #define HOST_CPU "`echo $host_cpu | awk '{print toupper($0)}'`"  #define HOST_CPU "`echo $host_cpu | awk '{print toupper($0)}'`"
850  _ACEOF  EOF
851    
852  cat >>confdefs.h <<_ACEOF  cat >> confdefs.h <<EOF
853  #define HOST_KERNEL "`echo $my_host_kernel | awk '{print toupper($0)}'`"  #define HOST_KERNEL "`echo $my_host_kernel | awk '{print toupper($0)}'`"
854  _ACEOF  EOF
855    
856  if test "$my_host_system" != "" ; then  if test "$my_host_system" != "" ; then
857          cat >>confdefs.h <<_ACEOF          cat >> confdefs.h <<EOF
858  #define HOST_SYSTEM "`echo $my_host_system | awk '{print toupper($0)}'`"  #define HOST_SYSTEM "`echo $my_host_system | awk '{print toupper($0)}'`"
859  _ACEOF  EOF
860    
861  fi  fi
862  echo "$as_me:$LINENO: result: host=$host" >&5  echo "$ac_t""host=$host" 1>&6
 echo "${ECHO_T}host=$host" >&6  
863    
864  PROCESSOR_FLAGS=${PROCESSOR_FLAGS:-""}  PROCESSOR_FLAGS=${PROCESSOR_FLAGS:-""}
865  LD_STACK_FLAGS=""  LD_STACK_FLAGS=""
# Line 1650  case $canonical in Line 913  case $canonical in
913    
914       powerpc-*-darwin*)       powerpc-*-darwin*)
915          use=powerpc-macosx;;          use=powerpc-macosx;;
916        
917       alpha-dec-osf)       alpha-dec-osf)
918       use=alpha-osf1;;       use=alpha-osf1;;
919    
# Line 1681  case $canonical in Line 944  case $canonical in
944             IRIX3*)             IRIX3*)
945              use=sgi4d;;              use=sgi4d;;
946         esac ;;         esac ;;
947    
948    
949       m68k-apple-aux*)       m68k-apple-aux*)
950       use=mac2;;       use=mac2;;
# Line 1764  case $canonical in Line 1027  case $canonical in
1027           echo "Linker stack size flags added: $LD_STACK_FLAGS"           echo "Linker stack size flags added: $LD_STACK_FLAGS"
1028         fi         fi
1029         echo "Executable C stack size will be $CSSIZE"         echo "Executable C stack size will be $CSSIZE"
1030         cat >>confdefs.h <<_ACEOF         cat >> confdefs.h <<EOF
1031  #define CSSIZE $enable_cssize  #define CSSIZE $enable_cssize
1032  _ACEOF  EOF
1033    
1034    
1035         use=mingw;;         use=mingw;;
# Line 1781  _ACEOF Line 1044  _ACEOF
1044          # 'ld -Z' means disable W^X          # 'ld -Z' means disable W^X
1045          TLDFLAGS="$TLDFLAGS -Z"          TLDFLAGS="$TLDFLAGS -Z"
1046          use=FreeBSD;;          use=FreeBSD;;
1047      
1048  esac  esac
1049    
1050    
# Line 1798  def_locbfd="no" Line 1061  def_locbfd="no"
1061  def_pic="no";  def_pic="no";
1062  def_static="no";  def_static="no";
1063  def_static="debug";  def_static="debug";
1064  case $use in  case $use in
1065       *linux)       *linux)
1066          ln -snf linux.defs h/$use.defs;          ln -snf linux.defs h/$use.defs;
1067          case $use in          case $use in
# Line 1808  case $use in Line 1071  case $use in
1071  #               mips*)  #               mips*)
1072  #                       def_dlopen="yes" ; def_statsysbfd="no" ;;  #                       def_dlopen="yes" ; def_statsysbfd="no" ;;
1073  # 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
1074  # on these architectures -- CM  # on these architectures -- CM                  
1075                  ia64*)                  ia64*)
1076                          def_dlopen="yes" ; def_statsysbfd="no" ; def_static="no" ;;                          def_dlopen="yes" ; def_statsysbfd="no" ; def_static="no" ;;
1077                  hppa*)                  hppa*)
# Line 1823  esac Line 1086  esac
1086  # Check whether --enable-dlopen or --disable-dlopen was given.  # Check whether --enable-dlopen or --disable-dlopen was given.
1087  if test "${enable_dlopen+set}" = set; then  if test "${enable_dlopen+set}" = set; then
1088    enableval="$enable_dlopen"    enableval="$enable_dlopen"
1089      :
1090  else  else
1091    enable_dlopen="$def_dlopen"    enable_dlopen="$def_dlopen"
1092  fi;  fi
1093    
1094  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.
1095  if test "${enable_statsysbfd+set}" = set; then  if test "${enable_statsysbfd+set}" = set; then
1096    enableval="$enable_statsysbfd"    enableval="$enable_statsysbfd"
1097      :
1098  else  else
1099    enable_statsysbfd="$def_statsysbfd"    enable_statsysbfd="$def_statsysbfd"
1100  fi;  fi
1101    
1102  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.
1103  if test "${enable_dynsysbfd+set}" = set; then  if test "${enable_dynsysbfd+set}" = set; then
1104    enableval="$enable_dynsysbfd"    enableval="$enable_dynsysbfd"
1105      :
1106  else  else
1107    enable_dynsysbfd="no"    enable_dynsysbfd="no"
1108  fi;  fi
1109    
1110  # Check whether --enable-locbfd or --disable-locbfd was given.  # Check whether --enable-locbfd or --disable-locbfd was given.
1111  if test "${enable_locbfd+set}" = set; then  if test "${enable_locbfd+set}" = set; then
1112    enableval="$enable_locbfd"    enableval="$enable_locbfd"
1113      :
1114  else  else
1115    enable_locbfd="$def_locbfd"    enable_locbfd="$def_locbfd"
1116  fi;  fi
1117    
1118  # Check whether --enable-custreloc or --disable-custreloc was given.  # Check whether --enable-custreloc or --disable-custreloc was given.
1119  if test "${enable_custreloc+set}" = set; then  if test "${enable_custreloc+set}" = set; then
1120    enableval="$enable_custreloc"    enableval="$enable_custreloc"
1121      :
1122  else  else
1123    enable_custreloc="$def_custreloc"    enable_custreloc="$def_custreloc"
1124  fi;  fi
1125    
1126  # Check whether --enable-debug or --disable-debug was given.  # Check whether --enable-debug or --disable-debug was given.
1127  if test "${enable_debug+set}" = set; then  if test "${enable_debug+set}" = set; then
1128    enableval="$enable_debug"    enableval="$enable_debug"
1129      :
1130  else  else
1131    enable_debug="$def_debug"    enable_debug="$def_debug"
1132  fi;  fi
1133    
1134  # Check whether --enable-gprof or --disable-gprof was given.  # Check whether --enable-gprof or --disable-gprof was given.
1135  if test "${enable_gprof+set}" = set; then  if test "${enable_gprof+set}" = set; then
1136    enableval="$enable_gprof"    enableval="$enable_gprof"
1137      :
1138  else  else
1139    enable_gprof="no"    enable_gprof="no"
1140  fi;  fi
1141    
1142  # Check whether --enable-static or --disable-static was given.  # Check whether --enable-static or --disable-static was given.
1143  if test "${enable_static+set}" = set; then  if test "${enable_static+set}" = set; then
1144    enableval="$enable_static"    enableval="$enable_static"
1145    enable_static=$enableval    enable_static=$enableval
1146  else  else
1147    enable_static="$def_static"    enable_static="$def_static"
1148  fi;  fi
1149    
1150  # Check whether --enable-pic or --disable-pic was given.  # Check whether --enable-pic or --disable-pic was given.
1151  if test "${enable_pic+set}" = set; then  if test "${enable_pic+set}" = set; then
1152    enableval="$enable_pic"    enableval="$enable_pic"
1153      :
1154  else  else
1155    enable_pic="$def_pic"    enable_pic="$def_pic"
1156  fi;  fi
1157    
1158    
1159  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.
1160  if test "${enable_dynsysgmp+set}" = set; then  if test "${enable_dynsysgmp+set}" = set; then
1161    enableval="$enable_dynsysgmp"    enableval="$enable_dynsysgmp"
1162      :
1163  else  else
1164    enable_dynsysgmp="yes"    enable_dynsysgmp="yes"
1165  fi;  fi
1166    
1167    
1168  load_opt="0"  load_opt="0"
1169  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
# Line 1941  fi Line 1214  fi
1214  ##  ##
1215  #if test "$use" = "unknown" ; then  #if test "$use" = "unknown" ; then
1216  #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"`
1217  #echo got canonical=$canonical, but was not recognized.  #echo got canonical=$canonical, but was not recognized.
1218  #echo Unable to guess type to use.  Try one of  #echo Unable to guess type to use.  Try one of
1219  #exit(1)  #exit(1)
1220  #fi  #fi
1221    
1222  echo "$as_me:$LINENO: result: use=$use" >&5  echo "$ac_t""use=$use" 1>&6    
 echo "${ECHO_T}use=$use" >&6  
1223    
1224    
1225  #  #
# Line 1963  if test "$LDFLAGS" = "" ; then Line 1235  if test "$LDFLAGS" = "" ; then
1235          LDFLAGS=" "          LDFLAGS=" "
1236  fi  fi
1237    
1238  ac_ext=c  # Extract the first word of "gcc", so it can be a program name with args.
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  
 ac_compiler_gnu=$ac_cv_c_compiler_gnu  
 if test -n "$ac_tool_prefix"; then  
   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.  
 set dummy ${ac_tool_prefix}gcc; ac_word=$2  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_CC+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   if test -n "$CC"; then  
   ac_cv_prog_CC="$CC" # Let the user override the test.  
 else  
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   for ac_exec_ext in '' $ac_executable_extensions; do  
   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_prog_CC="${ac_tool_prefix}gcc"  
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
 done  
   
 fi  
 fi  
 CC=$ac_cv_prog_CC  
 if test -n "$CC"; then  
   echo "$as_me:$LINENO: result: $CC" >&5  
 echo "${ECHO_T}$CC" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 fi  
   
 fi  
 if test -z "$ac_cv_prog_CC"; then  
   ac_ct_CC=$CC  
   # Extract the first word of "gcc", so it can be a program name with args.  
1239  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1240  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1241  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1242: checking for $ac_word" >&5
1242  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1243    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  
   if test -n "$ac_ct_CC"; then  
   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.  
 else  
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   for ac_exec_ext in '' $ac_executable_extensions; do  
   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_prog_ac_ct_CC="gcc"  
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
 done  
   
 fi  
 fi  
 ac_ct_CC=$ac_cv_prog_ac_ct_CC  
 if test -n "$ac_ct_CC"; then  
   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5  
 echo "${ECHO_T}$ac_ct_CC" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 fi  
   
   CC=$ac_ct_CC  
 else  
   CC="$ac_cv_prog_CC"  
 fi  
   
 if test -z "$CC"; then  
   if test -n "$ac_tool_prefix"; then  
   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.  
 set dummy ${ac_tool_prefix}cc; ac_word=$2  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_CC+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
1244  else  else
1245    if test -n "$CC"; then    if test -n "$CC"; then
1246    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1247  else  else
1248  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1249  for as_dir in $PATH    ac_dummy="$PATH"
1250  do    for ac_dir in $ac_dummy; do
1251    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1252    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1253    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_CC="gcc"
1254    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1255      ac_cv_prog_CC="${ac_tool_prefix}cc"      fi
1256      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1257      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1258  fi  fi
1259  fi  fi
1260  CC=$ac_cv_prog_CC  CC="$ac_cv_prog_CC"
1261  if test -n "$CC"; then  if test -n "$CC"; then
1262    echo "$as_me:$LINENO: result: $CC" >&5    echo "$ac_t""$CC" 1>&6
 echo "${ECHO_T}$CC" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 fi  
   
 fi  
 if test -z "$ac_cv_prog_CC"; then  
   ac_ct_CC=$CC  
   # Extract the first word of "cc", so it can be a program name with args.  
 set dummy cc; ac_word=$2  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   if test -n "$ac_ct_CC"; then  
   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.  
1263  else  else
1264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    echo "$ac_t""no" 1>&6
 for as_dir in $PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   for ac_exec_ext in '' $ac_executable_extensions; do  
   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_prog_ac_ct_CC="cc"  
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
 done  
   
 fi  
 fi  
 ac_ct_CC=$ac_cv_prog_ac_ct_CC  
 if test -n "$ac_ct_CC"; then  
   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5  
 echo "${ECHO_T}$ac_ct_CC" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
1265  fi  fi
1266    
   CC=$ac_ct_CC  
 else  
   CC="$ac_cv_prog_CC"  
 fi  
   
 fi  
1267  if test -z "$CC"; then  if test -z "$CC"; then
1268    # 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.
1269  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1270  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1271  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1272: checking for $ac_word" >&5
1272  if test "${ac_cv_prog_CC+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1273    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1274  else  else
1275    if test -n "$CC"; then    if test -n "$CC"; then
1276    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1277  else  else
1278      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1279    ac_prog_rejected=no    ac_prog_rejected=no
1280  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    ac_dummy="$PATH"
1281  for as_dir in $PATH    for ac_dir in $ac_dummy; do
1282  do      test -z "$ac_dir" && ac_dir=.
1283    IFS=$as_save_IFS      if test -f $ac_dir/$ac_word; then
1284    test -z "$as_dir" && as_dir=.        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1285    for ac_exec_ext in '' $ac_executable_extensions; do          ac_prog_rejected=yes
1286    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then          continue
1287      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then        fi
1288         ac_prog_rejected=yes        ac_cv_prog_CC="cc"
1289         continue        break
1290       fi      fi
1291      ac_cv_prog_CC="cc"    done
1292      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    IFS="$ac_save_ifs"
     break 2  
   fi  
 done  
 done  
   
1293  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
1294    # 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.
1295    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
1296    shift    shift
1297    if test $# != 0; then    if test $# -gt 0; then
1298      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
1299      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
1300      # 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.
1301      shift      shift
1302      ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"      set dummy "$ac_dir/$ac_word" "$@"
1303        shift
1304        ac_cv_prog_CC="$@"
1305    fi    fi
1306  fi  fi
1307  fi  fi
1308  fi  fi
1309  CC=$ac_cv_prog_CC  CC="$ac_cv_prog_CC"
1310  if test -n "$CC"; then  if test -n "$CC"; then
1311    echo "$as_me:$LINENO: result: $CC" >&5    echo "$ac_t""$CC" 1>&6
 echo "${ECHO_T}$CC" >&6  
1312  else  else
1313    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1314  fi  fi
1315    
1316  fi    if test -z "$CC"; then
1317  if test -z "$CC"; then      case "`uname -s`" in
1318    if test -n "$ac_tool_prefix"; then      *win32* | *WIN32*)
1319    for ac_prog in cl        # Extract the first word of "cl", so it can be a program name with args.
1320    do  set dummy cl; ac_word=$2
1321      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322  set dummy $ac_tool_prefix$ac_prog; ac_word=$2  echo "configure:1323: checking for $ac_word" >&5
1323  echo "$as_me:$LINENO: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1324  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
 if test "${ac_cv_prog_CC+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
1325  else  else
1326    if test -n "$CC"; then    if test -n "$CC"; then
1327    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1328  else  else
1329  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1330  for as_dir in $PATH    ac_dummy="$PATH"
1331  do    for ac_dir in $ac_dummy; do
1332    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1333    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1334    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_CC="cl"
1335    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1336      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"      fi
1337      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1338      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1339  fi  fi
1340  fi  fi
1341  CC=$ac_cv_prog_CC  CC="$ac_cv_prog_CC"
1342  if test -n "$CC"; then  if test -n "$CC"; then
1343    echo "$as_me:$LINENO: result: $CC" >&5    echo "$ac_t""$CC" 1>&6
 echo "${ECHO_T}$CC" >&6  
1344  else  else
1345    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1346  fi  fi
1347     ;;
1348      test -n "$CC" && break      esac
   done  
 fi  
 if test -z "$CC"; then  
   ac_ct_CC=$CC  
   for ac_prog in cl  
 do  
   # Extract the first word of "$ac_prog", so it can be a program name with args.  
 set dummy $ac_prog; ac_word=$2  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   if test -n "$ac_ct_CC"; then  
   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.  
 else  
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   for ac_exec_ext in '' $ac_executable_extensions; do  
   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_prog_ac_ct_CC="$ac_prog"  
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
1349    fi    fi
1350  done    test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 done  
   
1351  fi  fi
 fi  
 ac_ct_CC=$ac_cv_prog_ac_ct_CC  
 if test -n "$ac_ct_CC"; then  
   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5  
 echo "${ECHO_T}$ac_ct_CC" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 fi  
   
   test -n "$ac_ct_CC" && break  
 done  
1352    
1353    CC=$ac_ct_CC  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1354  fi  echo "configure:1355: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
   
 fi  
1355    
1356    ac_ext=c
1357    # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1358    ac_cpp='$CPP $CPPFLAGS'
1359    ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1360    ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1361    cross_compiling=$ac_cv_prog_cc_cross
1362    
1363  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH  cat > conftest.$ac_ext << EOF
 See \`config.log' for more details." >&5  
 echo "$as_me: error: no acceptable C compiler found in \$PATH  
 See \`config.log' for more details." >&2;}  
    { (exit 1); exit 1; }; }  
   
 # Provide some information about the compiler.  
 echo "$as_me:$LINENO:" \  
      "checking for C compiler version" >&5  
 ac_compiler=`set X $ac_compile; echo $2`  
 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5  
   (eval $ac_compiler --version </dev/null >&5) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }  
 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5  
   (eval $ac_compiler -v </dev/null >&5) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }  
 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5  
   (eval $ac_compiler -V </dev/null >&5) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }  
   
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1364    
1365  int  #line 1366 "configure"
1366  main ()  #include "confdefs.h"
 {  
1367    
1368    ;  main(){return(0);}
1369    return 0;  EOF
1370  }  if { (eval echo configure:1371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1371  _ACEOF    ac_cv_prog_cc_works=yes
1372  ac_clean_files_save=$ac_clean_files    # If we can't run a trivial program, we are probably using a cross compiler.
1373  ac_clean_files="$ac_clean_files a.out a.exe b.out"    if (./conftest; exit) 2>/dev/null; then
1374  # Try to create an executable without -o first, disregard a.out.      ac_cv_prog_cc_cross=no
 # It will help us diagnose broken compilers, and finding out an intuition  
 # of exeext.  
 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5  
 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6  
 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`  
 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5  
   (eval $ac_link_default) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
   # Find the output, starting from the most likely.  This scheme is  
 # not robust to junk in `.', hence go to wildcards (a.*) only as a last  
 # resort.  
   
 # Be careful to initialize this variable, since it used to be cached.  
 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.  
 ac_cv_exeext=  
 # b.out is created by i960 compilers.  
 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out  
 do  
   test -f "$ac_file" || continue  
   case $ac_file in  
     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )  
         ;;  
     conftest.$ac_ext )  
         # This is the source file.  
         ;;  
     [ab].out )  
         # We found the default executable, but exeext='' is most  
         # certainly right.  
         break;;  
     *.* )  
         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`  
         # FIXME: I believe we export ac_cv_exeext for Libtool,  
         # but it would be cool to find out if it's true.  Does anybody  
         # maintain Libtool? --akim.  
         export ac_cv_exeext  
         break;;  
     * )  
         break;;  
   esac  
 done  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 { { echo "$as_me:$LINENO: error: C compiler cannot create executables  
 See \`config.log' for more details." >&5  
 echo "$as_me: error: C compiler cannot create executables  
 See \`config.log' for more details." >&2;}  
    { (exit 77); exit 77; }; }  
 fi  
   
 ac_exeext=$ac_cv_exeext  
 echo "$as_me:$LINENO: result: $ac_file" >&5  
 echo "${ECHO_T}$ac_file" >&6  
   
 # Check the compiler produces executables we can run.  If not, either  
 # the compiler is broken, or we cross compile.  
 echo "$as_me:$LINENO: checking whether the C compiler works" >&5  
 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6  
 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0  
 # If not cross compiling, check that we can run a simple program.  
 if test "$cross_compiling" != yes; then  
   if { ac_try='./$ac_file'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
     cross_compiling=no  
1375    else    else
1376      if test "$cross_compiling" = maybe; then      ac_cv_prog_cc_cross=yes
         cross_compiling=yes  
     else  
         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.  
 If you meant to cross compile, use \`--host'.  
 See \`config.log' for more details." >&5  
 echo "$as_me: error: cannot run C compiled programs.  
 If you meant to cross compile, use \`--host'.  
 See \`config.log' for more details." >&2;}  
    { (exit 1); exit 1; }; }  
     fi  
1377    fi    fi
1378    else
1379      echo "configure: failed program was:" >&5
1380      cat conftest.$ac_ext >&5
1381      ac_cv_prog_cc_works=no
1382  fi  fi
1383  echo "$as_me:$LINENO: result: yes" >&5  rm -fr conftest*
1384  echo "${ECHO_T}yes" >&6  ac_ext=c
1385    # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1386  rm -f a.out a.exe conftest$ac_cv_exeext b.out  ac_cpp='$CPP $CPPFLAGS'
1387  ac_clean_files=$ac_clean_files_save  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1388  # Check the compiler produces executables we can run.  If not, either  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1389  # the compiler is broken, or we cross compile.  cross_compiling=$ac_cv_prog_cc_cross
1390  echo "$as_me:$LINENO: checking whether we are cross compiling" >&5  
1391  echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6  echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1392  echo "$as_me:$LINENO: result: $cross_compiling" >&5  if test $ac_cv_prog_cc_works = no; then
1393  echo "${ECHO_T}$cross_compiling" >&6    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1394    fi
1395  echo "$as_me:$LINENO: checking for suffix of executables" >&5  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1396  echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6  echo "configure:1397: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1397  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1398    (eval $ac_link) 2>&5  cross_compiling=$ac_cv_prog_cc_cross
1399    ac_status=$?  
1400    echo "$as_me:$LINENO: \$? = $ac_status" >&5  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1401    (exit $ac_status); }; then  echo "configure:1402: checking whether we are using GNU C" >&5
1402    # If both `conftest.exe' and `conftest' are `present' (well, observable)  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1403  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will    echo $ac_n "(cached) $ac_c" 1>&6
1404  # work properly (i.e., refer to `conftest.exe'), while it won't with  else
1405  # `rm'.    cat > conftest.c <<EOF
1406  for ac_file in conftest.exe conftest conftest.*; do  #ifdef __GNUC__
1407    test -f "$ac_file" || continue    yes;
1408    case $ac_file in  #endif
1409      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;  EOF
1410      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`  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
1411            export ac_cv_exeext    ac_cv_prog_gcc=yes
           break;;  
     * ) break;;  
   esac  
 done  
1412  else  else
1413    { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link    ac_cv_prog_gcc=no
1414  See \`config.log' for more details." >&5  fi
1415  echo "$as_me: error: cannot compute suffix of executables: cannot compile and link  fi
 See \`config.log' for more details." >&2;}  
    { (exit 1); exit 1; }; }  
 fi  
   
 rm -f conftest$ac_cv_exeext  
 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5  
 echo "${ECHO_T}$ac_cv_exeext" >&6  
   
 rm -f conftest.$ac_ext  
 EXEEXT=$ac_cv_exeext  
 ac_exeext=$EXEEXT  
 echo "$as_me:$LINENO: checking for suffix of object files" >&5  
 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6  
 if test "${ac_cv_objext+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1416    
1417  int  echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 main ()  
 {  
1418    
1419    ;  if test $ac_cv_prog_gcc = yes; then
1420    return 0;    GCC=yes
 }  
 _ACEOF  
 rm -f conftest.o conftest.obj  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do  
   case $ac_file in  
     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;  
     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`  
        break;;  
   esac  
 done  
1421  else  else
1422    echo "$as_me: failed program was:" >&5    GCC=
1423  sed 's/^/| /' conftest.$ac_ext >&5  fi
   
 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile  
 See \`config.log' for more details." >&5  
 echo "$as_me: error: cannot compute suffix of object files: cannot compile  
 See \`config.log' for more details." >&2;}  
    { (exit 1); exit 1; }; }  
 fi  
   
 rm -f conftest.$ac_cv_objext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5  
 echo "${ECHO_T}$ac_cv_objext" >&6  
 OBJEXT=$ac_cv_objext  
 ac_objext=$OBJEXT  
 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5  
 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6  
 if test "${ac_cv_c_compiler_gnu+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 int  
 main ()  
 {  
 #ifndef __GNUC__  
        choke me  
 #endif  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_compiler_gnu=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_compiler_gnu=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 ac_cv_c_compiler_gnu=$ac_compiler_gnu  
   
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5  
 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6  
 GCC=`test $ac_compiler_gnu = yes && echo yes`  
 ac_test_CFLAGS=${CFLAGS+set}  
 ac_save_CFLAGS=$CFLAGS  
 CFLAGS="-g"  
 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5  
 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6  
 if test "${ac_cv_prog_cc_g+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 int  
 main ()  
 {  
1424    
1425    ;  ac_test_CFLAGS="${CFLAGS+set}"
1426    return 0;  ac_save_CFLAGS="$CFLAGS"
1427  }  CFLAGS=
1428  _ACEOF  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1429  rm -f conftest.$ac_objext  echo "configure:1430: checking whether ${CC-cc} accepts -g" >&5
1430  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1431    (eval $ac_compile) 2>conftest.er1    echo $ac_n "(cached) $ac_c" 1>&6
1432    ac_status=$?  else
1433    grep -v '^ *+' conftest.er1 >conftest.err    echo 'void f(){}' > conftest.c
1434    rm -f conftest.er1  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
1435    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
1436  else  else
1437    echo "$as_me: failed program was:" >&5    ac_cv_prog_cc_g=no
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_prog_cc_g=no  
1438  fi  fi
1439  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest*
1440    
1441  fi  fi
1442  echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5  
1443  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1444  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
1445    CFLAGS=$ac_save_CFLAGS    CFLAGS="$ac_save_CFLAGS"
1446  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
1447    if test "$GCC" = yes; then    if test "$GCC" = yes; then
1448      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 2629  else Line 1456  else
1456      CFLAGS=      CFLAGS=
1457    fi    fi
1458  fi  fi
 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5  
 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6  
 if test "${ac_cv_prog_cc_stdc+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_cv_prog_cc_stdc=no  
 ac_save_CC=$CC  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <stdarg.h>  
 #include <stdio.h>  
 #include <sys/types.h>  
 #include <sys/stat.h>  
 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */  
 struct buf { int x; };  
 FILE * (*rcsopen) (struct buf *, struct stat *, int);  
 static char *e (p, i)  
      char **p;  
      int i;  
 {  
   return p[i];  
 }  
 static char *f (char * (*g) (char **, int), char **p, ...)  
 {  
   char *s;  
   va_list v;  
   va_start (v,p);  
   s = g (p, va_arg (v,int));  
   va_end (v);  
   return s;  
 }  
   
 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has  
    function prototypes and stuff, but not '\xHH' hex character constants.  
    These don't provoke an error unfortunately, instead are silently treated  
    as 'x'.  The following induces an error, until -std1 is added to get  
    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an  
    array size at least.  It's necessary to write '\x00'==0 to get something  
    that's true only with -std1.  */  
 int osf4_cc_array ['\x00' == 0 ? 1 : -1];  
   
 int test (int i, double x);  
 struct s1 {int (*f) (int a);};  
 struct s2 {int (*f) (double a);};  
 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);  
 int argc;  
 char **argv;  
 int  
 main ()  
 {  
 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];  
   ;  
   return 0;  
 }  
 _ACEOF  
 # Don't try gcc -ansi; that turns off useful extensions and  
 # breaks some systems' header files.  
 # AIX                   -qlanglvl=ansi  
 # Ultrix and OSF/1      -std1  
 # HP-UX 10.20 and later -Ae  
 # HP-UX older versions  -Aa -D_HPUX_SOURCE  
 # SVR4                  -Xc -D__EXTENSIONS__  
 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"  
 do  
   CC="$ac_save_CC $ac_arg"  
   rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_prog_cc_stdc=$ac_arg  
 break  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 fi  
 rm -f conftest.err conftest.$ac_objext  
 done  
 rm -f conftest.$ac_ext conftest.$ac_objext  
 CC=$ac_save_CC  
   
 fi  
   
 case "x$ac_cv_prog_cc_stdc" in  
   x|xno)  
     echo "$as_me:$LINENO: result: none needed" >&5  
 echo "${ECHO_T}none needed" >&6 ;;  
   *)  
     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5  
 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6  
     CC="$CC $ac_cv_prog_cc_stdc" ;;  
 esac  
   
 # Some people use a C++ compiler to compile C.  Since we use `exit',  
 # in C++ we need to declare it.  In case someone uses the same compiler  
 # for both compiling C and C++ we need to have the C++ compiler decide  
 # the declaration of exit, since it's the most demanding environment.  
 cat >conftest.$ac_ext <<_ACEOF  
 #ifndef __cplusplus  
   choke me  
 #endif  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   for ac_declaration in \  
    '' \  
    'extern "C" void std::exit (int) throw (); using std::exit;' \  
    'extern "C" void std::exit (int); using std::exit;' \  
    'extern "C" void exit (int) throw ();' \  
    'extern "C" void exit (int);' \  
    'void exit (int);'  
 do  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_declaration  
 #include <stdlib.h>  
 int  
 main ()  
 {  
 exit (42);  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   :  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 continue  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_declaration  
 int  
 main ()  
 {  
 exit (42);  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   break  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 done  
 rm -f conftest*  
 if test -n "$ac_declaration"; then  
   echo '#ifdef __cplusplus' >>confdefs.h  
   echo $ac_declaration      >>confdefs.h  
   echo '#endif'             >>confdefs.h  
 fi  
   
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 ac_ext=c  
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  
 ac_compiler_gnu=$ac_cv_c_compiler_gnu  
1459    
1460  ac_ext=c  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1461  ac_cpp='$CPP $CPPFLAGS'  echo "configure:1462: checking how to run the C preprocessor" >&5
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  
 ac_compiler_gnu=$ac_cv_c_compiler_gnu  
 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5  
 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6  
1462  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1463  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1464    CPP=    CPP=
1465  fi  fi
1466  if test -z "$CPP"; then  if test -z "$CPP"; then
1467    if test "${ac_cv_prog_CPP+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1468    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1469  else  else
1470        # Double quotes because CPP needs to be expanded      # This must be in double quotes, not single quotes, because CPP may get
1471      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"    # substituted into the Makefile and "${CC-cc}" will confuse make.
1472      do    CPP="${CC-cc} -E"
       ac_preproc_ok=false  
 for ac_c_preproc_warn_flag in '' yes  
 do  
   # Use a header file that comes with gcc, so configuring glibc  
   # with a fresh cross-compiler works.  
   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
   # <limits.h> exists even on freestanding compilers.  
1473    # 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,
1474    # not just through cpp. "Syntax error" is here to catch this case.    # not just through cpp.
1475    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
1476  /* confdefs.h.  */  #line 1477 "configure"
1477  _ACEOF  #include "confdefs.h"
1478  cat confdefs.h >>conftest.$ac_ext  #include <assert.h>
1479  cat >>conftest.$ac_ext <<_ACEOF  Syntax Error
1480  /* end confdefs.h.  */  EOF
1481  #ifdef __STDC__  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1482  # include <limits.h>  { (eval echo configure:1483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1483  #else  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1484  # include <assert.h>  if test -z "$ac_err"; then
 #endif  
                      Syntax error  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
1485    :    :
1486  else  else
1487    echo "$as_me: failed program was:" >&5    echo "$ac_err" >&5
1488  sed 's/^/| /' conftest.$ac_ext >&5    echo "configure: failed program was:" >&5
1489      cat conftest.$ac_ext >&5
1490    # Broken: fails on valid input.    rm -rf conftest*
1491  continue    CPP="${CC-cc} -E -traditional-cpp"
1492  fi    cat > conftest.$ac_ext <<EOF
1493  rm -f conftest.err conftest.$ac_ext  #line 1494 "configure"
1494    #include "confdefs.h"
1495    # OK, works on sane cases.  Now check whether non-existent headers  #include <assert.h>
1496    # can be detected and how.  Syntax Error
1497    cat >conftest.$ac_ext <<_ACEOF  EOF
1498  /* confdefs.h.  */  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1499  _ACEOF  { (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1500  cat confdefs.h >>conftest.$ac_ext  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1501  cat >>conftest.$ac_ext <<_ACEOF  if test -z "$ac_err"; then
1502  /* end confdefs.h.  */    :
 #include <ac_nonexistent.h>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   # Broken: success on invalid input.  
 continue  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   # Passes both tests.  
 ac_preproc_ok=:  
 break  
 fi  
 rm -f conftest.err conftest.$ac_ext  
   
 done  
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.  
 rm -f conftest.err conftest.$ac_ext  
 if $ac_preproc_ok; then  
   break  
 fi  
   
     done  
     ac_cv_prog_CPP=$CPP  
   
 fi  
   CPP=$ac_cv_prog_CPP  
 else  
   ac_cv_prog_CPP=$CPP  
 fi  
 echo "$as_me:$LINENO: result: $CPP" >&5  
 echo "${ECHO_T}$CPP" >&6  
 ac_preproc_ok=false  
 for ac_c_preproc_warn_flag in '' yes  
 do  
   # Use a header file that comes with gcc, so configuring glibc  
   # with a fresh cross-compiler works.  
   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
   # <limits.h> exists even on freestanding compilers.  
   # On the NeXT, cc -E runs the code through the compiler's parser,  
   # not just through cpp. "Syntax error" is here to catch this case.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
                      Syntax error  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
1503  else  else
1504    ac_cpp_err=yes    echo "$ac_err" >&5
1505  fi    echo "configure: failed program was:" >&5
1506  if test -z "$ac_cpp_err"; then    cat conftest.$ac_ext >&5
1507      rm -rf conftest*
1508      CPP="${CC-cc} -nologo -E"
1509      cat > conftest.$ac_ext <<EOF
1510    #line 1511 "configure"
1511    #include "confdefs.h"
1512    #include <assert.h>
1513    Syntax Error
1514    EOF
1515    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1516    { (eval echo configure:1517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1517    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1518    if test -z "$ac_err"; then
1519    :    :
1520  else  else
1521    echo "$as_me: failed program was:" >&5    echo "$ac_err" >&5
1522  sed 's/^/| /' conftest.$ac_ext >&5    echo "configure: failed program was:" >&5
1523      cat conftest.$ac_ext >&5
1524    # Broken: fails on valid input.    rm -rf conftest*
1525  continue    CPP=/lib/cpp
1526  fi  fi
1527  rm -f conftest.err conftest.$ac_ext  rm -f conftest*
   
   # OK, works on sane cases.  Now check whether non-existent headers  
   # can be detected and how.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <ac_nonexistent.h>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
1528  fi  fi
1529  if test -z "$ac_cpp_err"; then  rm -f conftest*
   # Broken: success on invalid input.  
 continue  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   # Passes both tests.  
 ac_preproc_ok=:  
 break  
1530  fi  fi
1531  rm -f conftest.err conftest.$ac_ext  rm -f conftest*
1532      ac_cv_prog_CPP="$CPP"
1533  done  fi
1534  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.    CPP="$ac_cv_prog_CPP"
 rm -f conftest.err conftest.$ac_ext  
 if $ac_preproc_ok; then  
   :  
1535  else  else
1536    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check    ac_cv_prog_CPP="$CPP"
 See \`config.log' for more details." >&5  
 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check  
 See \`config.log' for more details." >&2;}  
    { (exit 1); exit 1; }; }  
1537  fi  fi
1538    echo "$ac_t""$CPP" 1>&6
 ac_ext=c  
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  
 ac_compiler_gnu=$ac_cv_c_compiler_gnu  
1539    
1540    
1541    
# Line 3173  esac Line 1583  esac
1583    
1584  for ac_prog in gawk nawk awk  for ac_prog in gawk nawk awk
1585  do  do
1586    # 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.
1587  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1588  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1589  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1590: checking for $ac_word" >&5
1590  if test "${ac_cv_prog_AWK+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1591    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1592  else  else
1593    if test -n "$AWK"; then    if test -n "$AWK"; then
1594    ac_cv_prog_AWK="$AWK" # Let the user override the test.    ac_cv_prog_AWK="$AWK" # Let the user override the test.
1595  else  else
1596  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1597  for as_dir in $PATH    ac_dummy="$PATH"
1598  do    for ac_dir in $ac_dummy; do
1599    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1600    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1601    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_AWK="$ac_prog"
1602    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1603      ac_cv_prog_AWK="$ac_prog"      fi
1604      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1605      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1606  fi  fi
1607  fi  fi
1608  AWK=$ac_cv_prog_AWK  AWK="$ac_cv_prog_AWK"
1609  if test -n "$AWK"; then  if test -n "$AWK"; then
1610    echo "$as_me:$LINENO: result: $AWK" >&5    echo "$ac_t""$AWK" 1>&6
 echo "${ECHO_T}$AWK" >&6  
1611  else  else
1612    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1613  fi  fi
1614    
1615    test -n "$AWK" && break  test -n "$AWK" && break
1616  done  done
1617  test -n "$AWK" || AWK=""""  test -n "$AWK" || AWK=""""
1618    
# Line 3217  if test "$enable_gprof" = "yes" ; then Line 1621  if test "$enable_gprof" = "yes" ; then
1621          TCFLAGS="$TCFLAGS -pg"          TCFLAGS="$TCFLAGS -pg"
1622          TLIBS="$TLIBS -pg"          TLIBS="$TLIBS -pg"
1623          TFPFLAG=""          TFPFLAG=""
1624          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
1625  #define GCL_GPROF 1  #define GCL_GPROF 1
1626  _ACEOF  EOF
1627    
1628          echo "$as_me:$LINENO: checking for text start" >&5          echo $ac_n "checking for text start""... $ac_c" 1>&6
1629  echo $ECHO_N "checking for text start... $ECHO_C" >&6  echo "configure:1630: checking for text start" >&5
1630          echo 'int main () {return(0);}' >foo.c          echo 'int main () {return(0);}' >foo.c
1631          $CC foo.c -o foo          $CC foo.c -o foo
1632          GCL_GPROF_START=`nm foo | $AWK  '/  *T  *__*start$/ {print $NF}'`          GCL_GPROF_START=`nm foo | $AWK  '/  *T  *__*start$/ {print $NF}'`
1633          rm -f foo.c foo          rm -f foo.c foo
1634          echo "$as_me:$LINENO: result: $GCL_GPROF_START" >&5          echo "$ac_t""$GCL_GPROF_START" 1>&6
1635  echo "${ECHO_T}$GCL_GPROF_START" >&6          cat >> confdefs.h <<EOF
         cat >>confdefs.h <<_ACEOF  
1636  #define GCL_GPROF_START $GCL_GPROF_START  #define GCL_GPROF_START $GCL_GPROF_START
1637  _ACEOF  EOF
1638    
1639          case "$use" in          case "$use" in  
1640            arm*)            arm*)
1641          #FIXME report and remove this when done          #FIXME report and remove this when done
1642                  echo "$as_me:$LINENO: result: Reducing optimization on profiling arm build to workaround gcc bug" >&5                  echo "$ac_t""Reducing optimization on profiling arm build to workaround gcc bug" 1>&6
 echo "${ECHO_T}Reducing optimization on profiling arm build to workaround gcc bug" >&6  
1643                  enable_debug=yes;;                  enable_debug=yes;;
1644          esac          esac
1645  fi  fi
# Line 3260  fi Line 1662  fi
1662    
1663  # 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
1664  TONIFLAGS=""  TONIFLAGS=""
1665  case $use in  case $use in
1666       *linux)       *linux)
1667          case $use in          case $use in
1668  #               amd64*) # stack-boundary option does not work  #               amd64*) # stack-boundary option does not work
1669  #                       TCFLAGS="$TCFLAGS -m64 -mpreferred-stack-boundary=8";;  #                       TCFLAGS="$TCFLAGS -m64 -mpreferred-stack-boundary=8";;  
1670    #               386*)
1671    #                       TCFLAGS="$TCFLAGS -mpreferred-stack-boundary=2";;  
1672    #               amd64*)
1673    #                       TCFLAGS="$TCFLAGS -mpreferred-stack-boundary=3";;  
1674                  alpha*)                  alpha*)
1675                          TCFLAGS="$TCFLAGS -mieee";;                          TCFLAGS="$TCFLAGS -mieee";;
1676  #               m68k*)  #               m68k*)
# Line 3275  case $use in Line 1681  case $use in
1681                          if test "$enable_debug" != "yes" ; then TO2FLAGS="-O" ; fi                          if test "$enable_debug" != "yes" ; then TO2FLAGS="-O" ; fi
1682                          ;;                          ;;
1683                  arm*)                  arm*)
1684                          TCFLAGS="$TCFLAGS -mlong-calls";;                          TCFLAGS="$TCFLAGS -mlong-calls";;      
1685                  powerpc*)                  powerpc*)
1686                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then
1687                             echo Reducing optimization for buggy gcc-3.2                             echo Reducing optimization for buggy gcc-3.2
1688                             if test "$enable_debug" != "yes" ; then TONIFLAGS="-O $TFPFLAG" ; fi                             if test "$enable_debug" != "yes" ; then TONIFLAGS="-O $TFPFLAG" ; fi
# Line 3299  fi Line 1705  fi
1705  # for the system.  This can usually be done via the "uname" command, but  # for the system.  This can usually be done via the "uname" command, but
1706  # there are a few systems, like Next, where this doesn't work.  # there are a few systems, like Next, where this doesn't work.
1707    
1708  echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5  echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6
1709  echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6  echo "configure:1710: checking system version (for dynamic loading)" >&5
1710  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
1711    
1712  for ac_prog in makeinfo  for ac_prog in makeinfo
1713  do  do
1714    # 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.
1715  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1716  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1717  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1718: checking for $ac_word" >&5
1718  if test "${ac_cv_prog_MAKEINFO+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1719    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1720  else  else
1721    if test -n "$MAKEINFO"; then    if test -n "$MAKEINFO"; then
1722    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1723  else  else
1724  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1725  for as_dir in $PATH    ac_dummy="$PATH"
1726  do    for ac_dir in $ac_dummy; do
1727    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1728    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1729    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_MAKEINFO="$ac_prog"
1730    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1731      ac_cv_prog_MAKEINFO="$ac_prog"      fi
1732      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1733      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1734  fi  fi
1735  fi  fi
1736  MAKEINFO=$ac_cv_prog_MAKEINFO  MAKEINFO="$ac_cv_prog_MAKEINFO"
1737  if test -n "$MAKEINFO"; then  if test -n "$MAKEINFO"; then
1738    echo "$as_me:$LINENO: result: $MAKEINFO" >&5    echo "$ac_t""$MAKEINFO" 1>&6
 echo "${ECHO_T}$MAKEINFO" >&6  
1739  else  else
1740    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1741  fi  fi
1742    
1743    test -n "$MAKEINFO" && break  test -n "$MAKEINFO" && break
1744  done  done
1745  test -n "$MAKEINFO" || MAKEINFO=""false""  test -n "$MAKEINFO" || MAKEINFO=""false""
1746    
# Line 3351  if test -f /usr/lib/NextStep/software_ve Line 1751  if test -f /usr/lib/NextStep/software_ve
1751  else  else
1752      system=`uname -s`-`uname -r`      system=`uname -s`-`uname -r`
1753      if test "$?" -ne 0 ; then      if test "$?" -ne 0 ; then
1754          echo "$as_me:$LINENO: result: unknown (can't find uname command)" >&5          echo "$ac_t""unknown (can't find uname command)" 1>&6
 echo "${ECHO_T}unknown (can't find uname command)" >&6  
1755          system=unknown          system=unknown
1756      else      else
1757          # Special check for weird MP-RAS system (uname returns weird          # Special check for weird MP-RAS system (uname returns weird
1758          # results, and the version is kept in special file).          # results, and the version is kept in special file).
1759        
1760          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
1761              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`
1762          fi          fi
1763          if test "`uname -s`" = "AIX" ; then          if test "`uname -s`" = "AIX" ; then
1764              system=AIX-`uname -v`.`uname -r`              system=AIX-`uname -v`.`uname -r`
1765          fi          fi
1766          echo "$as_me:$LINENO: result: $system" >&5          echo "$ac_t""$system" 1>&6
 echo "${ECHO_T}$system" >&6  
1767      fi      fi
1768  fi  fi
1769    
1770  # sysconf  # sysconf
1771    
1772    ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'`
1773  echo "$as_me:$LINENO: checking for egrep" >&5  echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
1774  echo $ECHO_N "checking for egrep... $ECHO_C" >&6  echo "configure:1775: checking for unistd.h" >&5
1775  if test "${ac_cv_prog_egrep+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1776    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1777  else  else
1778    if echo a | (grep -E '(a|b)') >/dev/null 2>&1    cat > conftest.$ac_ext <<EOF
1779      then ac_cv_prog_egrep='grep -E'  #line 1780 "configure"
1780      else ac_cv_prog_egrep='egrep'  #include "confdefs.h"
     fi  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5  
 echo "${ECHO_T}$ac_cv_prog_egrep" >&6  
  EGREP=$ac_cv_prog_egrep  
   
   
 echo "$as_me:$LINENO: checking for ANSI C header files" >&5  
 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6  
 if test "${ac_cv_header_stdc+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <stdlib.h>  
 #include <stdarg.h>  
 #include <string.h>  
 #include <float.h>  
   
 int  
 main ()  
 {  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_header_stdc=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_header_stdc=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
   
 if test $ac_cv_header_stdc = yes; then  
   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <string.h>  
   
 _ACEOF  
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  
   $EGREP "memchr" >/dev/null 2>&1; then  
   :  
 else  
   ac_cv_header_stdc=no  
 fi  
 rm -f conftest*  
   
 fi  
   
 if test $ac_cv_header_stdc = yes; then  
   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <stdlib.h>  
   
 _ACEOF  
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  
   $EGREP "free" >/dev/null 2>&1; then  
   :  
 else  
   ac_cv_header_stdc=no  
 fi  
 rm -f conftest*  
   
 fi  
   
 if test $ac_cv_header_stdc = yes; then  
   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.  
   if test "$cross_compiling" = yes; then  
   :  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <ctype.h>  
 #if ((' ' & 0x0FF) == 0x020)  
 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')  
 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))  
 #else  
 # define ISLOWER(c) \  
                    (('a' <= (c) && (c) <= 'i') \  
                      || ('j' <= (c) && (c) <= 'r') \  
                      || ('s' <= (c) && (c) <= 'z'))  
 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))  
 #endif  
   
 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))  
 int  
 main ()  
 {  
   int i;  
   for (i = 0; i < 256; i++)  
     if (XOR (islower (i), ISLOWER (i))  
         || toupper (i) != TOUPPER (i))  
       exit(2);  
   exit (0);  
 }  
 _ACEOF  
 rm -f conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   :  
 else  
   echo "$as_me: program exited with status $ac_status" >&5  
 echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ( exit $ac_status )  
 ac_cv_header_stdc=no  
 fi  
 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  
 fi  
 fi  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5  
 echo "${ECHO_T}$ac_cv_header_stdc" >&6  
 if test $ac_cv_header_stdc = yes; then  
   
 cat >>confdefs.h <<\_ACEOF  
 #define STDC_HEADERS 1  
 _ACEOF  
   
 fi  
   
 # On IRIX 5.3, sys/types and inttypes.h are conflicting.  
   
   
   
   
   
   
   
   
   
 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \  
                   inttypes.h stdint.h unistd.h  
 do  
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
   
 #include <$ac_header>  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   eval "$as_ac_Header=yes"  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 eval "$as_ac_Header=no"  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
 if test `eval echo '${'$as_ac_Header'}'` = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  
 _ACEOF  
   
 fi  
   
 done  
   
   
 if test "${ac_cv_header_unistd_h+set}" = set; then  
   echo "$as_me:$LINENO: checking for unistd.h" >&5  
 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6  
 if test "${ac_cv_header_unistd_h+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5  
 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6  
 else  
   # Is the header compilable?  
 echo "$as_me:$LINENO: checking unistd.h usability" >&5  
 echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
 #include <unistd.h>  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking unistd.h presence" >&5  
 echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1781  #include <unistd.h>  #include <unistd.h>
1782  _ACEOF  EOF
1783  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1784    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  { (eval echo configure:1785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1785    ac_status=$?  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1786    grep -v '^ *+' conftest.er1 >conftest.err  if test -z "$ac_err"; then
1787    rm -f conftest.er1    rm -rf conftest*
1788    cat conftest.err >&5    eval "ac_cv_header_$ac_safe=yes"
1789    echo "$as_me:$LINENO: \$? = $ac_status" >&5  else
1790    (exit $ac_status); } >/dev/null; then    echo "$ac_err" >&5
1791    if test -s conftest.err; then    echo "configure: failed program was:" >&5
1792      ac_cpp_err=$ac_c_preproc_warn_flag    cat conftest.$ac_ext >&5
1793      ac_cpp_err=$ac_cpp_err$ac_c_werror_flag    rm -rf conftest*
1794    else    eval "ac_cv_header_$ac_safe=no"
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   ac_header_preproc=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   ac_header_preproc=no  
 fi  
 rm -f conftest.err conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: unistd.h:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: unistd.h:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for unistd.h" >&5  
 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6  
 if test "${ac_cv_header_unistd_h+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_cv_header_unistd_h=$ac_header_preproc  
1795  fi  fi
1796  echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5  rm -f conftest*
 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6  
   
1797  fi  fi
1798  if test $ac_cv_header_unistd_h = yes; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1799    echo "$as_me:$LINENO: checking for sysconf in -lc" >&5    echo "$ac_t""yes" 1>&6
1800  echo $ECHO_N "checking for sysconf in -lc... $ECHO_C" >&6    echo $ac_n "checking for sysconf in -lc""... $ac_c" 1>&6
1801  if test "${ac_cv_lib_c_sysconf+set}" = set; then  echo "configure:1802: checking for sysconf in -lc" >&5
1802    echo $ECHO_N "(cached) $ECHO_C" >&6  ac_lib_var=`echo c'_'sysconf | sed 'y%./+-%__p_%'`
1803    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1804      echo $ac_n "(cached) $ac_c" 1>&6
1805  else  else
1806    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
1807  LIBS="-lc  $LIBS"  LIBS="-lc  $LIBS"
1808  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
1809  /* confdefs.h.  */  #line 1810 "configure"
1810  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
1811  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
1812  /* 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
1813     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
1814  char sysconf ();  char sysconf();
 int  
 main ()  
 {  
 sysconf ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_c_sysconf=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_c_sysconf=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_c_sysconf" >&5  
 echo "${ECHO_T}$ac_cv_lib_c_sysconf" >&6  
 if test $ac_cv_lib_c_sysconf = yes; then  
   echo "$as_me:$LINENO: checking \"for _SC_CLK_TCK\"" >&5  
 echo $ECHO_N "checking \"for _SC_CLK_TCK\"... $ECHO_C" >&6  
1815    
1816  if test "$cross_compiling" = yes; then  int main() {
1817    sysconf()
1818    ; return 0; }
1819    EOF
1820    if { (eval echo configure:1821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1821      rm -rf conftest*
1822      eval "ac_cv_lib_$ac_lib_var=yes"
1823    else
1824      echo "configure: failed program was:" >&5
1825      cat conftest.$ac_ext >&5
1826      rm -rf conftest*
1827      eval "ac_cv_lib_$ac_lib_var=no"
1828    fi
1829    rm -f conftest*
1830    LIBS="$ac_save_LIBS"
1831    
1832    fi
1833    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1834      echo "$ac_t""yes" 1>&6
1835      echo $ac_n "checking "for _SC_CLK_TCK"""... $ac_c" 1>&6
1836    echo "configure:1837: checking "for _SC_CLK_TCK"" >&5
1837                    if test "$cross_compiling" = yes; then
1838    hz=0    hz=0
1839  else  else
1840    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
1841  /* confdefs.h.  */  #line 1842 "configure"
1842  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1843  #include <unistd.h>  #include <unistd.h>
1844                              #include <stdio.h>                              #include <stdio.h>
1845                              int                              int
# Line 3849  cat >>conftest.$ac_ext <<_ACEOF Line 1849  cat >>conftest.$ac_ext <<_ACEOF
1849                                  fclose(fp);                                  fclose(fp);
1850                                  return 0;                                  return 0;
1851                              }                              }
1852  _ACEOF  EOF
1853  rm -f conftest$ac_exeext  if { (eval echo configure:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1854  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
1855    hz=`cat conftest1`    hz=`cat conftest1`
1856                              cat >>confdefs.h <<_ACEOF                              cat >> confdefs.h <<EOF
1857  #define HZ $hz  #define HZ $hz
1858  _ACEOF  EOF
   
1859    
1860                                
1861  else  else
1862    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
1863  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
1864  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
1865      hz=0
 ( exit $ac_status )  
 hz=0  
 fi  
 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  
1866  fi  fi
1867                  echo "$as_me:$LINENO: result: $hz" >&5  rm -fr conftest*
 echo "${ECHO_T}$hz" >&6  
1868  fi  fi
1869    
1870                    echo "$ac_t""$hz" 1>&6
1871    else
1872      echo "$ac_t""no" 1>&6
1873  fi  fi
1874    
1875    else
1876      echo "$ac_t""no" 1>&6
1877    fi
1878    
1879    
1880    
# Line 3900  if test $use_gmp = yes ; then Line 1892  if test $use_gmp = yes ; then
1892   GMPDIR=gmp3   GMPDIR=gmp3
1893   PATCHED_SYMBOLS=""   PATCHED_SYMBOLS=""
1894   if test "$enable_dynsysgmp" = "yes" ; then   if test "$enable_dynsysgmp" = "yes" ; then
1895          if test "${ac_cv_header_gmp_h+set}" = set; then          ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`
1896    echo "$as_me:$LINENO: checking for gmp.h" >&5  echo $ac_n "checking for gmp.h""... $ac_c" 1>&6
1897  echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6  echo "configure:1898: checking for gmp.h" >&5
1898  if test "${ac_cv_header_gmp_h+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1899    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1900  fi  else
1901  echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5    cat > conftest.$ac_ext <<EOF
1902  echo "${ECHO_T}$ac_cv_header_gmp_h" >&6  #line 1903 "configure"
1903  else  #include "confdefs.h"
   # Is the header compilable?  
 echo "$as_me:$LINENO: checking gmp.h usability" >&5  
 echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
 #include <gmp.h>  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking gmp.h presence" >&5  
 echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1904  #include <gmp.h>  #include <gmp.h>
1905  _ACEOF  EOF
1906  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1907    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  { (eval echo configure:1908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1908    ac_status=$?  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1909    grep -v '^ *+' conftest.er1 >conftest.err  if test -z "$ac_err"; then
1910    rm -f conftest.er1    rm -rf conftest*
1911    cat conftest.err >&5    eval "ac_cv_header_$ac_safe=yes"
1912    echo "$as_me:$LINENO: \$? = $ac_status" >&5  else
1913    (exit $ac_status); } >/dev/null; then    echo "$ac_err" >&5
1914    if test -s conftest.err; then    echo "configure: failed program was:" >&5
1915      ac_cpp_err=$ac_c_preproc_warn_flag    cat conftest.$ac_ext >&5
1916      ac_cpp_err=$ac_cpp_err$ac_c_werror_flag    rm -rf conftest*
1917    else    eval "ac_cv_header_$ac_safe=no"
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   ac_header_preproc=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   ac_header_preproc=no  
 fi  
 rm -f conftest.err conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: gmp.h: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: gmp.h:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: gmp.h:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: gmp.h: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: gmp.h: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: gmp.h:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: gmp.h:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: gmp.h: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: gmp.h: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for gmp.h" >&5  
 echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6  
 if test "${ac_cv_header_gmp_h+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_cv_header_gmp_h=$ac_header_preproc  
1918  fi  fi
1919  echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5  rm -f conftest*
 echo "${ECHO_T}$ac_cv_header_gmp_h" >&6  
   
1920  fi  fi
1921  if test $ac_cv_header_gmp_h = yes; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1922    echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5    echo "$ac_t""yes" 1>&6
1923  echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6    echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6
1924  if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then  echo "configure:1925: checking for __gmpz_init in -lgmp" >&5
1925    echo $ECHO_N "(cached) $ECHO_C" >&6  ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`
1926    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1927      echo $ac_n "(cached) $ac_c" 1>&6
1928  else  else
1929    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
1930  LIBS="-lgmp  $LIBS"  LIBS="-lgmp  $LIBS"
1931  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
1932  /* confdefs.h.  */  #line 1933 "configure"
1933  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
1934  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
1935  /* 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
1936     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
1937  char __gmpz_init ();  char __gmpz_init();
1938  int  
1939  main ()  int main() {
1940  {  __gmpz_init()
1941  __gmpz_init ();  ; return 0; }
1942    ;  EOF
1943    return 0;  if { (eval echo configure:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1944  }    rm -rf conftest*
1945  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
1946  rm -f conftest.$ac_objext conftest$ac_exeext  else
1947  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
1948    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
1949    ac_status=$?    rm -rf conftest*
1950    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
1951    rm -f conftest.er1  fi
1952    cat conftest.err >&5  rm -f conftest*
1953    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
1954    (exit $ac_status); } &&  
1955           { ac_try='test -z "$ac_c_werror_flag"  fi
1956                           || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1957    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
1958    (eval $ac_try) 2>&5    echo $ac_n "checking "for external gmp version"""... $ac_c" 1>&6
1959    ac_status=$?  echo "configure:1960: checking "for external gmp version"" >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_gmp___gmpz_init=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_gmp___gmpz_init=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5  
 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6  
 if test $ac_cv_lib_gmp___gmpz_init = yes; then  
   echo "$as_me:$LINENO: checking \"for external gmp version\"" >&5  
 echo $ECHO_N "checking \"for external gmp version\"... $ECHO_C" >&6  
1960                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
1961    echo "Cannot use dynamic gmp lib"    echo "Cannot use dynamic gmp lib"
1962  else  else
1963    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
1964  /* confdefs.h.  */  #line 1965 "configure"
1965  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1966  #include <gmp.h>  #include <gmp.h>
1967                                      int main() {                                      int main() {
1968                                      #if __GNU_MP_VERSION == 4                                      #if __GNU_MP_VERSION == 4
# Line 4122  cat >>conftest.$ac_ext <<_ACEOF Line 1971  cat >>conftest.$ac_ext <<_ACEOF
1971                                          return -1;                                          return -1;
1972                                      #endif                                      #endif
1973                                      }                                      }
1974  _ACEOF  EOF
1975  rm -f conftest$ac_exeext  if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1976  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
1977    #                             MPFILES=$GMPDIR/mpn/mul_n.o    #                             MPFILES=$GMPDIR/mpn/mul_n.o
1978  #                               PATCHED_SYMBOLS=__gmpn_toom3_mul_n  #                               PATCHED_SYMBOLS=__gmpn_toom3_mul_n
1979                                  MPFILES=                                  MPFILES=
# Line 4148  if { (eval echo "$as_me:$LINENO: \"$ac_l Line 1988  if { (eval echo "$as_me:$LINENO: \"$ac_l
1988                                  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 '"'`
1989                                  rm -f foo.c                                  rm -f foo.c
1990  else  else
1991    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
1992  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
1993  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
1994      echo "Cannot use dynamic gmp lib"
 ( exit $ac_status )  
 echo "Cannot use dynamic gmp lib"  
1995  fi  fi
1996  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
1997  fi  fi
1998    
1999  else  else
2000    echo "Cannot use dynamic gmp lib"    echo "$ac_t""no" 1>&6
2001    echo "Cannot use dynamic gmp lib"
2002  fi  fi
2003    
2004  else  else
2005    echo "Cannot use dynamic gmp lib"    echo "$ac_t""no" 1>&6
2006    echo "Cannot use dynamic gmp lib"
2007  fi  fi
2008    
   
2009  fi  fi
2010    
2011  NEED_LOCAL_GMP=''  NEED_LOCAL_GMP=''
2012  if test "$MP_INCLUDE" = "" ; then  if test "$MP_INCLUDE" = "" ; then                      
2013          NEED_LOCAL_GMP=1;          NEED_LOCAL_GMP=1;
2014  fi  fi
2015  if test "$PATCHED_SYMBOLS" != "" ; then  if test "$PATCHED_SYMBOLS" != "" ; then                
2016          NEED_LOCAL_GMP=1;          NEED_LOCAL_GMP=1;
2017  fi  fi
2018    
2019  if test "$NEED_LOCAL_GMP" != "" ; then  if test "$NEED_LOCAL_GMP" != "" ; then                  
2020    
2021           echo "$as_me:$LINENO: checking use_gmp=yes, doing configure in gmp directory" >&5           echo $ac_n "checking use_gmp=yes, doing configure in gmp directory""... $ac_c" 1>&6
2022  echo $ECHO_N "checking use_gmp=yes, doing configure in gmp directory... $ECHO_C" >&6  echo "configure:2023: checking use_gmp=yes, doing configure in gmp directory" >&5
2023           echo           echo
2024           echo "#"           echo "#"
2025           echo "#"           echo "#"
# Line 4193  echo $ECHO_N "checking use_gmp=yes, doin Line 2033  echo $ECHO_N "checking use_gmp=yes, doin
2033           else           else
2034             cd $GMPDIR && ./configure && cd ..             cd $GMPDIR && ./configure && cd ..
2035           fi           fi
2036          #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"          #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"
2037    
2038           echo "#"           echo "#"
2039           echo "#"           echo "#"
# Line 4210  echo $ECHO_N "checking use_gmp=yes, doin Line 2050  echo $ECHO_N "checking use_gmp=yes, doin
2050    
2051  fi  fi
2052    
2053  echo "$as_me:$LINENO: checking \"for leading underscore in object symbols\"" >&5  echo $ac_n "checking "for leading underscore in object symbols"""... $ac_c" 1>&6
2054  echo $ECHO_N "checking \"for leading underscore in object symbols\"... $ECHO_C" >&6  echo "configure:2055: checking "for leading underscore in object symbols"" >&5
2055  cat>foo.c <<EOFF  cat>foo.c <<EOFF
2056  #include <math.h>  #include <math.h>
2057  int main() {double d=0.0;cos(d);return 0;}  int main() {double d=0.0;cos(d);return 0;}
# Line 4219  EOFF Line 2059  EOFF
2059  $CC -c foo.c -o foo.o  $CC -c foo.c -o foo.o
2060  if nm foo.o |grep " U " | grep "_cos" >/dev/null ; then  if nm foo.o |grep " U " | grep "_cos" >/dev/null ; then
2061          LEADING_UNDERSCORE=1          LEADING_UNDERSCORE=1
2062          echo "$as_me:$LINENO: result: \"yes\"" >&5          echo "$ac_t"""yes"" 1>&6
 echo "${ECHO_T}\"yes\"" >&6  
2063  else  else
2064          LEADING_UNDERSCORE=""          LEADING_UNDERSCORE=""
2065          echo "$as_me:$LINENO: result: \"no\"" >&5          echo "$ac_t"""no"" 1>&6
 echo "${ECHO_T}\"no\"" >&6  
2066  fi  fi
2067  echo "$as_me:$LINENO: checking \"for GNU ld option -Map\"" >&5  echo $ac_n "checking "for GNU ld option -Map"""... $ac_c" 1>&6
2068  echo $ECHO_N "checking \"for GNU ld option -Map\"... $ECHO_C" >&6  echo "configure:2069: checking "for GNU ld option -Map"" >&5
2069  touch map  touch map
2070  $CC -o foo  -Wl,-Map  map foo.o >/dev/null 2>&1  $CC -o foo  -Wl,-Map  map foo.o >/dev/null 2>&1
2071  if test `cat map | wc -l` != "0" ; then  if test `cat map | wc -l` != "0" ; then
2072          echo "$as_me:$LINENO: result: \"yes\"" >&5          echo "$ac_t"""yes"" 1>&6
2073  echo "${ECHO_T}\"yes\"" >&6          cat >> confdefs.h <<\EOF
         cat >>confdefs.h <<\_ACEOF  
2074  #define HAVE_GNU_LD 1  #define HAVE_GNU_LD 1
2075  _ACEOF  EOF
2076    
2077          GNU_LD=1          GNU_LD=1
2078  else  else
2079          echo "$as_me:$LINENO: result: \"no\"" >&5          echo "$ac_t"""no"" 1>&6
 echo "${ECHO_T}\"no\"" >&6  
2080          GNU_LD=          GNU_LD=
2081  fi  fi
2082  rm -f foo.c foo.o foo map  rm -f foo.c foo.o foo map
2083    
2084   echo "$as_me:$LINENO: checking \"for size of gmp limbs\"" >&5   echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6
2085  echo $ECHO_N "checking \"for size of gmp limbs\"... $ECHO_C" >&6  echo "configure:2086: checking "for size of gmp limbs"" >&5
2086   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
2087    mpsize=0    mpsize=0
2088  else  else
2089    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
2090  /* confdefs.h.  */  #line 2091 "configure"
2091  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2092  #include <stdio.h>  #include <stdio.h>
2093          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
2094          int main() {          int main() {
# Line 4264  cat >>conftest.$ac_ext <<_ACEOF Line 2097  cat >>conftest.$ac_ext <<_ACEOF
2097          fclose(fp);          fclose(fp);
2098          return 0;          return 0;
2099          }          }
2100  _ACEOF  EOF
2101  rm -f conftest$ac_exeext  if { (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2102  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
2103    mpsize=`cat conftest1`    mpsize=`cat conftest1`
2104  else  else
2105    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
2106  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
2107  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
2108      mpsize=0
 ( exit $ac_status )  
 mpsize=0  
2109  fi  fi
2110  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
2111  fi  fi
2112    
2113   if test "$mpsize" = "0" ; then   if test "$mpsize" = "0" ; then
2114          echo "Cannot determine mpsize"          echo "Cannot determine mpsize"
2115          exit 1          exit 1
2116   fi   fi
2117   cat >>confdefs.h <<_ACEOF   cat >> confdefs.h <<EOF
2118  #define MP_LIMB_BYTES $mpsize  #define MP_LIMB_BYTES $mpsize
2119  _ACEOF  EOF
2120    
2121   echo "$as_me:$LINENO: result: $mpsize" >&5   echo "$ac_t""$mpsize" 1>&6
 echo "${ECHO_T}$mpsize" >&6  
2122    
2123   echo "$as_me:$LINENO: checking \"_SHORT_LIMB\"" >&5   echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6
2124  echo $ECHO_N "checking \"_SHORT_LIMB\"... $ECHO_C" >&6  echo "configure:2125: checking "_SHORT_LIMB"" >&5
2125   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
2126    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
2127  else  else
2128    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
2129  /* confdefs.h.  */  #line 2130 "configure"
2130  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2131  #include <stdio.h>  #include <stdio.h>
2132          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
2133          int main() {          int main() {
# Line 4319  cat >>conftest.$ac_ext <<_ACEOF Line 2137  cat >>conftest.$ac_ext <<_ACEOF
2137          return 1;          return 1;
2138          #endif          #endif
2139          }          }
2140  _ACEOF  EOF
2141  rm -f conftest$ac_exeext  if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2142  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
2143    (eval $ac_link) 2>&5    cat >> confdefs.h <<\EOF
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   cat >>confdefs.h <<\_ACEOF  
2144  #define __SHORT_LIMB 1  #define __SHORT_LIMB 1
2145  _ACEOF  EOF
2146   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
2147  echo "${ECHO_T}yes" >&6  else
2148  else    echo "configure: failed program was:" >&5
2149    echo "$as_me: program exited with status $ac_status" >&5    cat conftest.$ac_ext >&5
2150  echo "$as_me: failed program was:" >&5    rm -fr conftest*
2151  sed 's/^/| /' conftest.$ac_ext >&5    echo "$ac_t""no" 1>&6
   
 ( exit $ac_status )  
 echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
2152  fi  fi
2153  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
2154  fi  fi
2155   echo "$as_me:$LINENO: checking \"_LONG_LONG_LIMB\"" >&5  
2156  echo $ECHO_N "checking \"_LONG_LONG_LIMB\"... $ECHO_C" >&6   echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6
2157    echo "configure:2158: checking "_LONG_LONG_LIMB"" >&5
2158   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
2159    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
2160  else  else
2161    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
2162  /* confdefs.h.  */  #line 2163 "configure"
2163  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2164  #include <stdio.h>  #include <stdio.h>
2165          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
2166          int main() {          int main() {
# Line 4368  cat >>conftest.$ac_ext <<_ACEOF Line 2170  cat >>conftest.$ac_ext <<_ACEOF
2170          return 1;          return 1;
2171          #endif          #endif
2172          }          }
2173  _ACEOF  EOF
2174  rm -f conftest$ac_exeext  if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2175  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
2176    (eval $ac_link) 2>&5    cat >> confdefs.h <<\EOF
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   cat >>confdefs.h <<\_ACEOF  
2177  #define __LONG_LONG_LIMB 1  #define __LONG_LONG_LIMB 1
2178  _ACEOF  EOF
2179   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
2180  echo "${ECHO_T}yes" >&6  else
2181  else    echo "configure: failed program was:" >&5
2182    echo "$as_me: program exited with status $ac_status" >&5    cat conftest.$ac_ext >&5
2183  echo "$as_me: failed program was:" >&5    rm -fr conftest*
2184  sed 's/^/| /' conftest.$ac_ext >&5    echo "$ac_t""no" 1>&6
   
 ( exit $ac_status )  
 echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
2185  fi  fi
2186  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
2187  fi  fi
2188    
2189    
2190   GMP=1   GMP=1
2191   cat >>confdefs.h <<\_ACEOF   cat >> confdefs.h <<\EOF
2192  #define GMP 1  #define GMP 1
2193  _ACEOF  EOF
   
   
2194    
2195    
2196    
2197   echo > makedefsafter   echo > makedefsafter
2198   echo "MPFILES=$MPFILES" >> makedefsafter   echo "MPFILES=$MPFILES" >> makedefsafter
2199   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter
# Line 4413  fi Line 2203  fi
2203    
2204  #  #
2205  # X windows  # X windows
2206  #  #
   
 echo "$as_me:$LINENO: checking for X" >&5  
 echo $ECHO_N "checking for X... $ECHO_C" >&6  
2207    
2208    # If we find X, set shell vars x_includes and x_libraries to the
2209    # paths, otherwise set no_x=yes.
2210    # Uses ac_ vars as temps to allow command line to override cache and checks.
2211    # --without-x overrides everything else, but does not touch the cache.
2212    echo $ac_n "checking for X""... $ac_c" 1>&6
2213    echo "configure:2214: checking for X" >&5
2214    
2215  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
2216  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
2217    withval="$with_x"    withval="$with_x"
2218      :
2219    fi
2220    
 fi;  
2221  # $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.
2222  if test "x$with_x" = xno; then  if test "x$with_x" = xno; then
2223    # The user explicitly disabled X.    # The user explicitly disabled X.
# Line 4433  else Line 2227  else
2227      # Both variables are already set.      # Both variables are already set.
2228      have_x=yes      have_x=yes
2229    else    else
2230      if test "${ac_cv_have_x+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2231    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2232  else  else
2233    # 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.
2234  ac_x_includes=no ac_x_libraries=no  ac_x_includes=NO ac_x_libraries=NO
2235  rm -fr conftest.dir  rm -fr conftestdir
2236  if mkdir conftest.dir; then  if mkdir conftestdir; then
2237    cd conftest.dir    cd conftestdir
2238    # 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.
2239    cat >Imakefile <<'_ACEOF'    cat > Imakefile <<'EOF'
2240  acfindx:  acfindx:
2241          @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}"'
2242  _ACEOF  EOF
2243    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2244      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2245      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2246      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2247      for ac_extension in a so sl; do      for ac_extension in a so sl; do
2248        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2249           test -f $ac_im_libdir/libX11.$ac_extension; then          test -f $ac_im_libdir/libX11.$ac_extension; then
2250          ac_im_usrlibdir=$ac_im_libdir; break          ac_im_usrlibdir=$ac_im_libdir; break
2251        fi        fi
2252      done      done
2253      # Screen out bogus values from the imake configuration.  They are      # Screen out bogus values from the imake configuration.  They are
2254      # bogus both because they are the default anyway, and because      # bogus both because they are the default anyway, and because
2255      # using them would break gcc on systems where it needs fixed includes.      # using them would break gcc on systems where it needs fixed includes.
2256      case $ac_im_incroot in      case "$ac_im_incroot" in
2257          /usr/include) ;;          /usr/include) ;;
2258          *) 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" ;;
2259      esac      esac
2260      case $ac_im_usrlibdir in      case "$ac_im_usrlibdir" in
2261          /usr/lib | /lib) ;;          /usr/lib | /lib) ;;
2262          *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;          *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2263      esac      esac
2264    fi    fi
2265    cd ..    cd ..
2266    rm -fr conftest.dir    rm -fr conftestdir
2267  fi  fi
2268    
2269  # Standard set of common directories for X headers.  if test "$ac_x_includes" = NO; then
2270  # Check X11 before X11Rn because it is often a symlink to the current release.    # Guess where to find include files, by looking for this one X11 .h file.
2271  ac_x_header_dirs='    test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
 /usr/X11/include  
 /usr/X11R6/include  
 /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'  
2272    
 if test "$ac_x_includes" = no; then  
   # Guess where to find include files, by looking for Intrinsic.h.  
2273    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
2274    cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2275  /* confdefs.h.  */  #line 2276 "configure"
2276  _ACEOF  #include "confdefs.h"
2277  cat confdefs.h >>conftest.$ac_ext  #include <$x_direct_test_include>
2278  cat >>conftest.$ac_ext <<_ACEOF  EOF
2279  /* end confdefs.h.  */  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2280  #include <X11/Intrinsic.h>  { (eval echo configure:2281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2281  _ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2282  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  if test -z "$ac_err"; then
2283    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    rm -rf conftest*
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
2284    # We can compile using X headers with no special include directory.    # We can compile using X headers with no special include directory.
2285  ac_x_includes=  ac_x_includes=
2286  else  else
2287    echo "$as_me: failed program was:" >&5    echo "$ac_err" >&5
2288  sed 's/^/| /' conftest.$ac_ext >&5    echo "configure: failed program was:" >&5
2289      cat conftest.$ac_ext >&5
2290    for ac_dir in $ac_x_header_dirs; do    rm -rf conftest*
2291    if test -r "$ac_dir/X11/Intrinsic.h"; then    # Look for the header file in a standard set of common directories.
2292      ac_x_includes=$ac_dir  # Check X11 before X11Rn because it is often a symlink to the current release.
2293      break    for ac_dir in               \
2294    fi      /usr/X11/include          \
2295  done      /usr/X11R6/include        \
2296        /usr/X11R5/include        \
2297        /usr/X11R4/include        \
2298                                  \
2299        /usr/include/X11          \
2300        /usr/include/X11R6        \
2301        /usr/include/X11R5        \
2302        /usr/include/X11R4        \
2303                                  \
2304        /usr/local/X11/include    \
2305        /usr/local/X11R6/include  \
2306        /usr/local/X11R5/include  \
2307        /usr/local/X11R4/include  \
2308                                  \
2309        /usr/local/include/X11    \
2310        /usr/local/include/X11R6  \
2311        /usr/local/include/X11R5  \
2312        /usr/local/include/X11R4  \
2313                                  \
2314        /usr/X386/include         \
2315        /usr/x386/include         \
2316        /usr/XFree86/include/X11  \
2317                                  \
2318        /usr/include              \
2319        /usr/local/include        \
2320        /usr/unsupported/include  \
2321        /usr/athena/include       \
2322        /usr/local/x11r5/include  \
2323        /usr/lpp/Xamples/include  \
2324                                  \
2325        /usr/openwin/include      \
2326        /usr/openwin/share/include \
2327        ; \
2328      do
2329        if test -r "$ac_dir/$x_direct_test_include"; then
2330          ac_x_includes=$ac_dir
2331          break
2332        fi
2333      done
2334  fi  fi
2335  rm -f conftest.err conftest.$ac_ext  rm -f conftest*
2336  fi # $ac_x_includes = no  fi # $ac_x_includes = NO
2337    
2338  if test "$ac_x_libraries" = no; then  if test "$ac_x_libraries" = NO; then
2339    # Check for the libraries.    # Check for the libraries.
2340    
2341      test -z "$x_direct_test_library" && x_direct_test_library=Xt
2342      test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2343    
2344    # See if we find them without any special options.    # See if we find them without any special options.
2345    # Don't add to $LIBS permanently.    # Don't add to $LIBS permanently.
2346    ac_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2347    LIBS="-lXt $LIBS"    LIBS="-l$x_direct_test_library $LIBS"
2348    cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2349  /* confdefs.h.  */  #line 2350 "configure"
2350  _ACEOF  #include "confdefs.h"
2351  cat confdefs.h >>conftest.$ac_ext  
2352  cat >>conftest.$ac_ext <<_ACEOF  int main() {
2353  /* end confdefs.h.  */  ${x_direct_test_function}()
2354  #include <X11/Intrinsic.h>  ; return 0; }
2355  int  EOF
2356  main ()  if { (eval echo configure:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2357  {    rm -rf conftest*
2358  XtMalloc (0)    LIBS="$ac_save_LIBS"
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   LIBS=$ac_save_LIBS  
2359  # We can link X programs with no special library path.  # We can link X programs with no special library path.
2360  ac_x_libraries=  ac_x_libraries=
2361  else  else
2362    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
2363  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2364      rm -rf conftest*
2365  LIBS=$ac_save_LIBS    LIBS="$ac_save_LIBS"
2366  for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`  # First see if replacing the include by lib works.
2367    # Check X11 before X11Rn because it is often a symlink to the current release.
2368    for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2369        /usr/X11/lib          \
2370        /usr/X11R6/lib        \
2371        /usr/X11R5/lib        \
2372        /usr/X11R4/lib        \
2373                              \
2374        /usr/lib/X11          \
2375        /usr/lib/X11R6        \
2376        /usr/lib/X11R5        \
2377        /usr/lib/X11R4        \
2378                              \
2379        /usr/local/X11/lib    \
2380        /usr/local/X11R6/lib  \
2381        /usr/local/X11R5/lib  \
2382        /usr/local/X11R4/lib  \
2383                              \
2384        /usr/local/lib/X11    \
2385        /usr/local/lib/X11R6  \
2386        /usr/local/lib/X11R5  \
2387        /usr/local/lib/X11R4  \
2388                              \
2389        /usr/X386/lib         \
2390        /usr/x386/lib         \
2391        /usr/XFree86/lib/X11  \
2392                              \
2393        /usr/lib              \
2394        /usr/local/lib        \
2395        /usr/unsupported/lib  \
2396        /usr/athena/lib       \
2397        /usr/local/x11r5/lib  \
2398        /usr/lpp/Xamples/lib  \
2399        /lib/usr/lib/X11      \
2400                              \
2401        /usr/openwin/lib      \
2402        /usr/openwin/share/lib \
2403        ; \
2404  do  do
   # Don't even attempt the hair of trying to link an X program!  
2405    for ac_extension in a so sl; do    for ac_extension in a so sl; do
2406      if test -r $ac_dir/libXt.$ac_extension; then      if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2407        ac_x_libraries=$ac_dir        ac_x_libraries=$ac_dir
2408        break 2        break 2
2409      fi      fi
2410    done    done
2411  done  done
2412  fi  fi
2413  rm -f conftest.err conftest.$ac_objext \  rm -f conftest*
2414        conftest$ac_exeext conftest.$ac_ext  fi # $ac_x_libraries = NO
 fi # $ac_x_libraries = no  
2415    
2416  if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then  if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2417    # Didn't find X anywhere.  Cache the known absence of X.    # Didn't find X anywhere.  Cache the known absence of X.
2418    ac_cv_have_x="have_x=no"    ac_cv_have_x="have_x=no"
2419  else  else
2420    # Record where we found X for the cache.    # Record where we found X for the cache.
2421    ac_cv_have_x="have_x=yes \    ac_cv_have_x="have_x=yes \
2422                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2423  fi  fi
2424  fi  fi
   
2425    fi    fi
2426    eval "$ac_cv_have_x"    eval "$ac_cv_have_x"
2427  fi # $with_x != no  fi # $with_x != no
2428    
2429  if test "$have_x" != yes; then  if test "$have_x" != yes; then
2430    echo "$as_me:$LINENO: result: $have_x" >&5    echo "$ac_t""$have_x" 1>&6
 echo "${ECHO_T}$have_x" >&6  
2431    no_x=yes    no_x=yes
2432  else  else
2433    # 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 4645  else Line 2436  else
2436    # Update the cache value to reflect the command line values.    # Update the cache value to reflect the command line values.
2437    ac_cv_have_x="have_x=yes \    ac_cv_have_x="have_x=yes \
2438                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2439    echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5    echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6  
2440  fi  fi
2441    
2442  if test "$no_x" = yes; then  if test "$no_x" = yes; then
2443    # 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.
2444      cat >> confdefs.h <<\EOF
 cat >>confdefs.h <<\_ACEOF  
2445  #define X_DISPLAY_MISSING 1  #define X_DISPLAY_MISSING 1
2446  _ACEOF  EOF
2447    
2448    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2449  else  else
# Line 4667  else Line 2456  else
2456      X_LIBS="$X_LIBS -L$x_libraries"      X_LIBS="$X_LIBS -L$x_libraries"
2457      # 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
2458      # others require no space.  Words are not sufficient . . . .      # others require no space.  Words are not sufficient . . . .
2459      case `(uname -sr) 2>/dev/null` in      case "`(uname -sr) 2>/dev/null`" in
2460      "SunOS 5"*)      "SunOS 5"*)
2461        echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5        echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2462  echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6  echo "configure:2463: checking whether -R must be followed by a space" >&5
2463        ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2464        cat >conftest.$ac_ext <<_ACEOF        cat > conftest.$ac_ext <<EOF
2465  /* confdefs.h.  */  #line 2466 "configure"
2466  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2467    
2468  int  int main() {
 main ()  
 {  
2469    
2470    ;  ; return 0; }
2471    return 0;  EOF
2472  }  if { (eval echo configure:2473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2473  _ACEOF    rm -rf conftest*
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
2474    ac_R_nospace=yes    ac_R_nospace=yes
2475  else  else
2476    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
2477  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2478      rm -rf conftest*
2479  ac_R_nospace=no    ac_R_nospace=no
2480  fi  fi
2481  rm -f conftest.err conftest.$ac_objext \  rm -f conftest*
       conftest$ac_exeext conftest.$ac_ext  
2482        if test $ac_R_nospace = yes; then        if test $ac_R_nospace = yes; then
2483          echo "$as_me:$LINENO: result: no" >&5          echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
2484          X_LIBS="$X_LIBS -R$x_libraries"          X_LIBS="$X_LIBS -R$x_libraries"
2485        else        else
2486          LIBS="$ac_xsave_LIBS -R $x_libraries"          LIBS="$ac_xsave_LIBS -R $x_libraries"
2487          cat >conftest.$ac_ext <<_ACEOF          cat > conftest.$ac_ext <<EOF
2488  /* confdefs.h.  */  #line 2489 "configure"
2489  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2490    
2491  int  int main() {
 main ()  
 {  
2492    
2493    ;  ; return 0; }
2494    return 0;  EOF
2495  }  if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2496  _ACEOF    rm -rf conftest*
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
2497    ac_R_space=yes    ac_R_space=yes
2498  else  else
2499    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
2500  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2501      rm -rf conftest*
2502  ac_R_space=no    ac_R_space=no
2503  fi  fi
2504  rm -f conftest.err conftest.$ac_objext \  rm -f conftest*
       conftest$ac_exeext conftest.$ac_ext  
2505          if test $ac_R_space = yes; then          if test $ac_R_space = yes; then
2506            echo "$as_me:$LINENO: result: yes" >&5            echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
2507            X_LIBS="$X_LIBS -R $x_libraries"            X_LIBS="$X_LIBS -R $x_libraries"
2508          else          else
2509            echo "$as_me:$LINENO: result: neither works" >&5            echo "$ac_t""neither works" 1>&6
 echo "${ECHO_T}neither works" >&6  
2510          fi          fi
2511        fi        fi
2512        LIBS=$ac_xsave_LIBS        LIBS="$ac_xsave_LIBS"
2513      esac      esac
2514    fi    fi
2515    
# Line 4790  echo "${ECHO_T}neither works" >&6 Line 2520  echo "${ECHO_T}neither works" >&6
2520    if test "$ISC" = yes; then    if test "$ISC" = yes; then
2521      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2522    else    else
2523      # Martyn Johnson says this is needed for Ultrix, if the X      # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2524      # libraries were built with DECnet support.  And Karl Berry says      # libraries were built with DECnet support.  And karl@cs.umb.edu says
2525      # the Alpha needs dnet_stub (dnet does not exist).      # the Alpha needs dnet_stub (dnet does not exist).
2526      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"      echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2527      cat >conftest.$ac_ext <<_ACEOF  echo "configure:2528: checking for dnet_ntoa in -ldnet" >&5
2528  /* confdefs.h.  */  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2529  _ACEOF  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2530  cat confdefs.h >>conftest.$ac_ext    echo $ac_n "(cached) $ac_c" 1>&6
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 /* Override any gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char XOpenDisplay ();  
 int  
 main ()  
 {  
 XOpenDisplay ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   :  
2531  else  else
2532    echo "$as_me: failed program was:" >&5    ac_save_LIBS="$LIBS"
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5  
 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6  
 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
2533  LIBS="-ldnet  $LIBS"  LIBS="-ldnet  $LIBS"
2534  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2535  /* confdefs.h.  */  #line 2536 "configure"
2536  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
2537  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
2538  /* 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
2539     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2540  char dnet_ntoa ();  char dnet_ntoa();
2541  int  
2542  main ()  int main() {
2543  {  dnet_ntoa()
2544  dnet_ntoa ();  ; return 0; }
2545    ;  EOF
2546    return 0;  if { (eval echo configure:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2547  }    rm -rf conftest*
2548  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
2549  rm -f conftest.$ac_objext conftest$ac_exeext  else
2550  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
2551    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
2552    ac_status=$?    rm -rf conftest*
2553    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
2554    rm -f conftest.er1  fi
2555    cat conftest.err >&5  rm -f conftest*
2556    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
2557    (exit $ac_status); } &&  
2558           { ac_try='test -z "$ac_c_werror_flag"  fi
2559                           || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2560    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_dnet_dnet_ntoa=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_dnet_dnet_ntoa=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5  
 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6  
 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then  
2561    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2562    else
2563      echo "$ac_t""no" 1>&6
2564  fi  fi
2565    
2566      if test $ac_cv_lib_dnet_dnet_ntoa = no; then      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2567        echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5        echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2568  echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6  echo "configure:2569: checking for dnet_ntoa in -ldnet_stub" >&5
2569  if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2570    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2571      echo $ac_n "(cached) $ac_c" 1>&6
2572  else  else
2573    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2574  LIBS="-ldnet_stub  $LIBS"  LIBS="-ldnet_stub  $LIBS"
2575  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2576  /* confdefs.h.  */  #line 2577 "configure"
2577  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
2578  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
2579  /* 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
2580     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2581  char dnet_ntoa ();  char dnet_ntoa();
2582  int  
2583  main ()  int main() {
2584  {  dnet_ntoa()
2585  dnet_ntoa ();  ; return 0; }
2586    ;  EOF
2587    return 0;  if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2588  }    rm -rf conftest*
2589  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
2590  rm -f conftest.$ac_objext conftest$ac_exeext  else
2591  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
2592    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
2593    ac_status=$?    rm -rf conftest*
2594    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
2595    rm -f conftest.er1  fi
2596    cat conftest.err >&5  rm -f conftest*
2597    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
2598    (exit $ac_status); } &&  
2599           { ac_try='test -z "$ac_c_werror_flag"  fi
2600                           || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2601    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_dnet_stub_dnet_ntoa=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_dnet_stub_dnet_ntoa=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5  
 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6  
 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then  
2602    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2603    else
2604      echo "$ac_t""no" 1>&6
2605  fi  fi
2606    
2607      fi      fi
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
     LIBS="$ac_xsave_LIBS"  
2608    
2609      # 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,
2610      # to get the SysV transport functions.      # to get the SysV transport functions.
2611      # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)      # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2612      # needs -lnsl.      # needs -lnsl.
2613      # The nsl library prevents programs from opening the X display      # The nsl library prevents programs from opening the X display
2614      # on Irix 5.2, according to T.E. Dickey.      # on Irix 5.2, according to dickey@clark.net.
2615      # The functions gethostbyname, getservbyname, and inet_addr are      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2616      # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.  echo "configure:2617: checking for gethostbyname" >&5
2617      echo "$as_me:$LINENO: checking for gethostbyname" >&5  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2618  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2619  if test "${ac_cv_func_gethostbyname+set}" = set; then  else
2620    echo $ECHO_N "(cached) $ECHO_C" >&6    cat > conftest.$ac_ext <<EOF
2621  else  #line 2622 "configure"
2622    cat >conftest.$ac_ext <<_ACEOF  #include "confdefs.h"
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define gethostbyname innocuous_gethostbyname  
   
2623  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2624      which can conflict with char gethostbyname (); below.      which can conflict with char gethostbyname(); below.  */
2625      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef gethostbyname  
   
2626  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
2627  /* 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
2628     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2629  char gethostbyname ();  char gethostbyname();
2630    
2631    int main() {
2632    
2633  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
2634      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
2635      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
2636  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2637  choke me  choke me
2638  #else  #else
2639  char (*f) () = gethostbyname;  gethostbyname();
 #endif  
 #ifdef __cplusplus  
 }  
2640  #endif  #endif
2641    
2642  int  ; return 0; }
2643  main ()  EOF
2644  {  if { (eval echo configure:2645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2645  return f != gethostbyname;    rm -rf conftest*
2646    ;    eval "ac_cv_func_gethostbyname=yes"
2647    return 0;  else
2648  }    echo "configure: failed program was:" >&5
2649  _ACEOF    cat conftest.$ac_ext >&5
2650  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
2651  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_gethostbyname=no"
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_gethostbyname=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_gethostbyname=no  
2652  fi  fi
2653  rm -f conftest.err conftest.$ac_objext \  rm -f conftest*
2654        conftest$ac_exeext conftest.$ac_ext  fi
2655    
2656    if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2657      echo "$ac_t""yes" 1>&6
2658      :
2659    else
2660      echo "$ac_t""no" 1>&6
2661  fi  fi
 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5  
 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6  
2662    
2663      if test $ac_cv_func_gethostbyname = no; then      if test $ac_cv_func_gethostbyname = no; then
2664        echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2665  echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6  echo "configure:2666: checking for gethostbyname in -lnsl" >&5
2666  if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2667    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2668      echo $ac_n "(cached) $ac_c" 1>&6
2669  else  else
2670    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2671  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
2672  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2673  /* confdefs.h.  */  #line 2674 "configure"
2674  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
2675  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
2676  /* 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
2677     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2678  char gethostbyname ();  char gethostbyname();
 int  
 main ()  
 {  
 gethostbyname ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_nsl_gethostbyname=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_nsl_gethostbyname=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5  
 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6  
 if test $ac_cv_lib_nsl_gethostbyname = yes; then  
   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"  
 fi  
2679    
2680        if test $ac_cv_lib_nsl_gethostbyname = no; then  int main() {
2681          echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5  gethostbyname()
2682  echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6  ; return 0; }
2683  if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then  EOF
2684    echo $ECHO_N "(cached) $ECHO_C" >&6  if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2685  else    rm -rf conftest*
2686    ac_check_lib_save_LIBS=$LIBS    eval "ac_cv_lib_$ac_lib_var=yes"
2687  LIBS="-lbsd  $LIBS"  else
2688  cat >conftest.$ac_ext <<_ACEOF    echo "configure: failed program was:" >&5
2689  /* confdefs.h.  */    cat conftest.$ac_ext >&5
2690  _ACEOF    rm -rf conftest*
2691  cat confdefs.h >>conftest.$ac_ext    eval "ac_cv_lib_$ac_lib_var=no"
2692  cat >>conftest.$ac_ext <<_ACEOF  fi
2693  /* end confdefs.h.  */  rm -f conftest*
2694    LIBS="$ac_save_LIBS"
2695    
2696  /* Override any gcc2 internal prototype to avoid an error.  */  fi
2697  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2698  extern "C"    echo "$ac_t""yes" 1>&6
2699  #endif    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2700  /* We use char because int might match the return type of a gcc2  else
2701     builtin and then its argument prototype would still apply.  */    echo "$ac_t""no" 1>&6
 char gethostbyname ();  
 int  
 main ()  
 {  
 gethostbyname ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_bsd_gethostbyname=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_bsd_gethostbyname=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5  
 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6  
 if test $ac_cv_lib_bsd_gethostbyname = yes; then  
   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"  
2702  fi  fi
2703    
       fi  
2704      fi      fi
2705    
2706      # lieder@skyler.mavd.honeywell.com says without -lsocket,      # lieder@skyler.mavd.honeywell.com says without -lsocket,
2707      # socket/setsockopt and other routines are undefined under SCO ODT      # socket/setsockopt and other routines are undefined under SCO ODT
2708      # 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
2709      # on later versions), says Simon Leinen: it contains gethostby*      # on later versions), says simon@lia.di.epfl.ch: it contains
2710      # variants that don't use the name server (or something).  -lsocket      # gethostby* variants that don't use the nameserver (or something).
2711      # must be given before -lnsl if both are needed.  We assume that      # -lsocket must be given before -lnsl if both are needed.
2712      # if connect needs -lnsl, so does gethostbyname.      # We assume that if connect needs -lnsl, so does gethostbyname.
2713      echo "$as_me:$LINENO: checking for connect" >&5      echo $ac_n "checking for connect""... $ac_c" 1>&6
2714  echo $ECHO_N "checking for connect... $ECHO_C" >&6  echo "configure:2715: checking for connect" >&5
2715  if test "${ac_cv_func_connect+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2716    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2717  else  else
2718    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
2719  /* confdefs.h.  */  #line 2720 "configure"
2720  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define connect to an innocuous variant, in case <limits.h> declares connect.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define connect innocuous_connect  
   
2721  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2722      which can conflict with char connect (); below.      which can conflict with char connect(); below.  */
2723      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef connect  
   
2724  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
2725  /* 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
2726     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2727  char connect ();  char connect();
2728    
2729    int main() {
2730    
2731  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
2732      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
2733      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
2734  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
2735  choke me  choke me
2736  #else  #else
2737  char (*f) () = connect;  connect();
2738  #endif  #endif
 #ifdef __cplusplus  
 }  
 #endif  
   
 int  
 main ()  
 {  
 return f != connect;  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_connect=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
2739    
2740  ac_cv_func_connect=no  ; return 0; }
2741    EOF
2742    if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2743      rm -rf conftest*
2744      eval "ac_cv_func_connect=yes"
2745    else
2746      echo "configure: failed program was:" >&5
2747      cat conftest.$ac_ext >&5
2748      rm -rf conftest*
2749      eval "ac_cv_func_connect=no"
2750    fi
2751    rm -f conftest*
2752  fi  fi
2753  rm -f conftest.err conftest.$ac_objext \  
2754        conftest$ac_exeext conftest.$ac_ext  if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2755      echo "$ac_t""yes" 1>&6
2756      :
2757    else
2758      echo "$ac_t""no" 1>&6
2759  fi  fi
 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5  
 echo "${ECHO_T}$ac_cv_func_connect" >&6  
2760    
2761      if test $ac_cv_func_connect = no; then      if test $ac_cv_func_connect = no; then
2762        echo "$as_me:$LINENO: checking for connect in -lsocket" >&5        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2763  echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6  echo "configure:2764: checking for connect in -lsocket" >&5
2764  if test "${ac_cv_lib_socket_connect+set}" = set; then  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2765    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2766      echo $ac_n "(cached) $ac_c" 1>&6
2767  else  else
2768    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2769  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2770  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2771  /* confdefs.h.  */  #line 2772 "configure"
2772  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
2773  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
2774  /* 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
2775     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2776  char connect ();  char connect();
2777  int  
2778  main ()  int main() {
2779  {  connect()
2780  connect ();  ; return 0; }
2781    ;  EOF
2782    return 0;  if { (eval echo configure:2783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2783  }    rm -rf conftest*
2784  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
2785  rm -f conftest.$ac_objext conftest$ac_exeext  else
2786  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
2787    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
2788    ac_status=$?    rm -rf conftest*
2789    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
2790    rm -f conftest.er1  fi
2791    cat conftest.err >&5  rm -f conftest*
2792    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
2793    (exit $ac_status); } &&  
2794           { ac_try='test -z "$ac_c_werror_flag"  fi
2795                           || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2796    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_socket_connect=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_socket_connect=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5  
 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6  
 if test $ac_cv_lib_socket_connect = yes; then  
2797    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2798    else
2799      echo "$ac_t""no" 1>&6
2800  fi  fi
2801    
2802      fi      fi
2803    
2804      # Guillermo Gomez says -lposix is necessary on A/UX.      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2805      echo "$as_me:$LINENO: checking for remove" >&5      echo $ac_n "checking for remove""... $ac_c" 1>&6
2806  echo $ECHO_N "checking for remove... $ECHO_C" >&6  echo "configure:2807: checking for remove" >&5
2807  if test "${ac_cv_func_remove+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2808    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2809  else  else
2810    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
2811  /* confdefs.h.  */  #line 2812 "configure"
2812  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define remove to an innocuous variant, in case <limits.h> declares remove.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define remove innocuous_remove  
   
2813  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2814      which can conflict with char remove (); below.      which can conflict with char remove(); below.  */
2815      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef remove  
   
2816  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
2817  /* 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
2818     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2819  char remove ();  char remove();
2820    
2821    int main() {
2822    
2823  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
2824      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
2825      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
2826  #if defined (__stub_remove) || defined (__stub___remove)  #if defined (__stub_remove) || defined (__stub___remove)
2827  choke me  choke me
2828  #else  #else
2829  char (*f) () = remove;  remove();
2830  #endif  #endif
 #ifdef __cplusplus  
 }  
 #endif  
   
 int  
 main ()  
 {  
 return f != remove;  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_remove=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
2831    
2832  ac_cv_func_remove=no  ; return 0; }
2833    EOF
2834    if { (eval echo configure:2835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2835      rm -rf conftest*
2836      eval "ac_cv_func_remove=yes"
2837    else
2838      echo "configure: failed program was:" >&5
2839      cat conftest.$ac_ext >&5
2840      rm -rf conftest*
2841      eval "ac_cv_func_remove=no"
2842    fi
2843    rm -f conftest*
2844  fi  fi
2845  rm -f conftest.err conftest.$ac_objext \  
2846        conftest$ac_exeext conftest.$ac_ext  if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2847      echo "$ac_t""yes" 1>&6
2848      :
2849    else
2850      echo "$ac_t""no" 1>&6
2851  fi  fi
 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5  
 echo "${ECHO_T}$ac_cv_func_remove" >&6  
2852    
2853      if test $ac_cv_func_remove = no; then      if test $ac_cv_func_remove = no; then
2854        echo "$as_me:$LINENO: checking for remove in -lposix" >&5        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2855  echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6  echo "configure:2856: checking for remove in -lposix" >&5
2856  if test "${ac_cv_lib_posix_remove+set}" = set; then  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2857    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2858      echo $ac_n "(cached) $ac_c" 1>&6
2859  else  else
2860    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2861  LIBS="-lposix  $LIBS"  LIBS="-lposix  $LIBS"
2862  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2863  /* confdefs.h.  */  #line 2864 "configure"
2864  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
2865  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
2866  /* 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
2867     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2868  char remove ();  char remove();
2869  int  
2870  main ()  int main() {
2871  {  remove()
2872  remove ();  ; return 0; }
2873    ;  EOF
2874    return 0;  if { (eval echo configure:2875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2875  }    rm -rf conftest*
2876  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
2877  rm -f conftest.$ac_objext conftest$ac_exeext  else
2878  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
2879    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
2880    ac_status=$?    rm -rf conftest*
2881    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
2882    rm -f conftest.er1  fi
2883    cat conftest.err >&5  rm -f conftest*
2884    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
2885    (exit $ac_status); } &&  
2886           { ac_try='test -z "$ac_c_werror_flag"  fi
2887                           || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2888    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_posix_remove=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_posix_remove=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5  
 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6  
 if test $ac_cv_lib_posix_remove = yes; then  
2889    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2890    else
2891      echo "$ac_t""no" 1>&6
2892  fi  fi
2893    
2894      fi      fi
2895    
2896      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2897      echo "$as_me:$LINENO: checking for shmat" >&5      echo $ac_n "checking for shmat""... $ac_c" 1>&6
2898  echo $ECHO_N "checking for shmat... $ECHO_C" >&6  echo "configure:2899: checking for shmat" >&5
2899  if test "${ac_cv_func_shmat+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2900    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2901  else  else
2902    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
2903  /* confdefs.h.  */  #line 2904 "configure"
2904  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define shmat innocuous_shmat  
   
2905  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2906      which can conflict with char shmat (); below.      which can conflict with char shmat(); below.  */
2907      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef shmat  
   
2908  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
2909  /* 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
2910     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2911  char shmat ();  char shmat();
2912    
2913    int main() {
2914    
2915  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
2916      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
2917      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
2918  #if defined (__stub_shmat) || defined (__stub___shmat)  #if defined (__stub_shmat) || defined (__stub___shmat)
2919  choke me  choke me
2920  #else  #else
2921  char (*f) () = shmat;  shmat();
 #endif  
 #ifdef __cplusplus  
 }  
2922  #endif  #endif
2923    
2924  int  ; return 0; }
2925  main ()  EOF
2926  {  if { (eval echo configure:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2927  return f != shmat;    rm -rf conftest*
2928    ;    eval "ac_cv_func_shmat=yes"
2929    return 0;  else
2930  }    echo "configure: failed program was:" >&5
2931  _ACEOF    cat conftest.$ac_ext >&5
2932  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
2933  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_shmat=no"
2934    (eval $ac_link) 2>conftest.er1  fi
2935    ac_status=$?  rm -f conftest*
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_shmat=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_shmat=no  
2936  fi  fi
2937  rm -f conftest.err conftest.$ac_objext \  
2938        conftest$ac_exeext conftest.$ac_ext  if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2939      echo "$ac_t""yes" 1>&6
2940      :
2941    else
2942      echo "$ac_t""no" 1>&6
2943  fi  fi
 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5  
 echo "${ECHO_T}$ac_cv_func_shmat" >&6  
2944    
2945      if test $ac_cv_func_shmat = no; then      if test $ac_cv_func_shmat = no; then
2946        echo "$as_me:$LINENO: checking for shmat in -lipc" >&5        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2947  echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6  echo "configure:2948: checking for shmat in -lipc" >&5
2948  if test "${ac_cv_lib_ipc_shmat+set}" = set; then  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2949    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2950      echo $ac_n "(cached) $ac_c" 1>&6
2951  else  else
2952    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2953  LIBS="-lipc  $LIBS"  LIBS="-lipc  $LIBS"
2954  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2955  /* confdefs.h.  */  #line 2956 "configure"
2956  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
2957  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
2958  /* 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
2959     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2960  char shmat ();  char shmat();
2961  int  
2962  main ()  int main() {
2963  {  shmat()
2964  shmat ();  ; return 0; }
2965    ;  EOF
2966    return 0;  if { (eval echo configure:2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2967  }    rm -rf conftest*
2968  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
2969  rm -f conftest.$ac_objext conftest$ac_exeext  else
2970  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
2971    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
2972    ac_status=$?    rm -rf conftest*
2973    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
2974    rm -f conftest.er1  fi
2975    cat conftest.err >&5  rm -f conftest*
2976    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
2977    (exit $ac_status); } &&  
2978           { ac_try='test -z "$ac_c_werror_flag"  fi
2979                           || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2980    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_ipc_shmat=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_ipc_shmat=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5  
 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6  
 if test $ac_cv_lib_ipc_shmat = yes; then  
2981    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2982    else
2983      echo "$ac_t""no" 1>&6
2984  fi  fi
2985    
2986      fi      fi
2987    fi    fi
2988    
2989    # Check for libraries that X11R6 Xt/Xaw programs need.    # Check for libraries that X11R6 Xt/Xaw programs need.
2990    ac_save_LDFLAGS=$LDFLAGS    ac_save_LDFLAGS="$LDFLAGS"
2991    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2992    # 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
2993    # 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
2994    # 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.
2995    # These have to be linked with before -lX11, unlike the other    # These have to be linked with before -lX11, unlike the other
2996    # libraries we check for below, so use a different variable.    # libraries we check for below, so use a different variable.
2997    # John Interrante, Karl Berry    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2998    echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2999  echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6  echo "configure:3000: checking for IceConnectionNumber in -lICE" >&5
3000  if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3001    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3002      echo $ac_n "(cached) $ac_c" 1>&6
3003  else  else
3004    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3005  LIBS="-lICE $X_EXTRA_LIBS $LIBS"  LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3006  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3007  /* confdefs.h.  */  #line 3008 "configure"
3008  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
3009  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
3010  /* 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
3011     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3012  char IceConnectionNumber ();  char IceConnectionNumber();
3013  int  
3014  main ()  int main() {
3015  {  IceConnectionNumber()
3016  IceConnectionNumber ();  ; return 0; }
3017    ;  EOF
3018    return 0;  if { (eval echo configure:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3019  }    rm -rf conftest*
3020  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
3021  rm -f conftest.$ac_objext conftest$ac_exeext  else
3022  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
3023    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
3024    ac_status=$?    rm -rf conftest*
3025    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
3026    rm -f conftest.er1  fi
3027    cat conftest.err >&5  rm -f conftest*
3028    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
3029    (exit $ac_status); } &&  
3030           { ac_try='test -z "$ac_c_werror_flag"  fi
3031                           || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3032    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_ICE_IceConnectionNumber=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_ICE_IceConnectionNumber=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5  
 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6  
 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then  
3033    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3034    else
3035      echo "$ac_t""no" 1>&6
3036  fi  fi
3037    
3038    LDFLAGS=$ac_save_LDFLAGS    LDFLAGS="$ac_save_LDFLAGS"
3039    
3040  fi  fi
3041    
# Line 5809  echo $X_EXTRA_LIBS Line 3045  echo $X_EXTRA_LIBS
3045  echo $X_PRE_LIBS  echo $X_PRE_LIBS
3046    
3047  miss=0  miss=0
3048  echo "$as_me:$LINENO: checking for main in -lXmu" >&5  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6
3049  echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6  echo "configure:3050: checking for main in -lXmu" >&5
3050  if test "${ac_cv_lib_Xmu_main+set}" = set; then  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`
3051    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3052      echo $ac_n "(cached) $ac_c" 1>&6
3053  else  else
3054    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3055  LIBS="-lXmu $X_LIBS $LIBS"  LIBS="-lXmu $X_LIBS $LIBS"
3056  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3057  /* confdefs.h.  */  #line 3058 "configure"
3058  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3059    
3060    int main() {
3061    main()
3062    ; return 0; }
3063    EOF
3064    if { (eval echo configure:3065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3065      rm -rf conftest*
3066      eval "ac_cv_lib_$ac_lib_var=yes"
3067    else
3068      echo "configure: failed program was:" >&5
3069      cat conftest.$ac_ext >&5
3070      rm -rf conftest*
3071      eval "ac_cv_lib_$ac_lib_var=no"
3072    fi
3073    rm -f conftest*
3074    LIBS="$ac_save_LIBS"
3075    
3076  int  fi
3077  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3078  {    echo "$ac_t""yes" 1>&6
 main ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_Xmu_main=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_Xmu_main=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5  
 echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6  
 if test $ac_cv_lib_Xmu_main = yes; then  
3079    X_LIBS="$X_LIBS -lXmu"    X_LIBS="$X_LIBS -lXmu"
3080  else  else
3081    miss=1    echo "$ac_t""no" 1>&6
3082    miss=1
3083  fi  fi
3084    
3085  echo "$as_me:$LINENO: checking for main in -lXt" >&5  echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6
3086  echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6  echo "configure:3087: checking for main in -lXt" >&5
3087  if test "${ac_cv_lib_Xt_main+set}" = set; then  ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`
3088    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3089      echo $ac_n "(cached) $ac_c" 1>&6
3090  else  else
3091    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3092  LIBS="-lXt $X_LIBS $LIBS"  LIBS="-lXt $X_LIBS $LIBS"
3093  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3094  /* confdefs.h.  */  #line 3095 "configure"
3095  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3096    
3097    int main() {
3098    main()
3099    ; return 0; }
3100    EOF
3101    if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3102      rm -rf conftest*
3103      eval "ac_cv_lib_$ac_lib_var=yes"
3104    else
3105      echo "configure: failed program was:" >&5
3106      cat conftest.$ac_ext >&5
3107      rm -rf conftest*
3108      eval "ac_cv_lib_$ac_lib_var=no"
3109    fi
3110    rm -f conftest*
3111    LIBS="$ac_save_LIBS"
3112    
3113  int  fi
3114  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3115  {    echo "$ac_t""yes" 1>&6
 main ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_Xt_main=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_Xt_main=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5  
 echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6  
 if test $ac_cv_lib_Xt_main = yes; then  
3116    X_LIBS="$X_LIBS -lXt"    X_LIBS="$X_LIBS -lXt"
3117  else  else
3118    miss=1    echo "$ac_t""no" 1>&6
3119    miss=1
3120  fi  fi
3121    
3122  echo "$as_me:$LINENO: checking for main in -lXext" >&5  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6
3123  echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6  echo "configure:3124: checking for main in -lXext" >&5
3124  if test "${ac_cv_lib_Xext_main+set}" = set; then  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`
3125    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3126      echo $ac_n "(cached) $ac_c" 1>&6
3127  else  else
3128    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3129  LIBS="-lXext $X_LIBS $LIBS"  LIBS="-lXext $X_LIBS $LIBS"
3130  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3131  /* confdefs.h.  */  #line 3132 "configure"
3132  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3133    
3134    int main() {
3135    main()
3136    ; return 0; }
3137    EOF
3138    if { (eval echo configure:3139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3139      rm -rf conftest*
3140      eval "ac_cv_lib_$ac_lib_var=yes"
3141    else
3142      echo "configure: failed program was:" >&5
3143      cat conftest.$ac_ext >&5
3144      rm -rf conftest*
3145      eval "ac_cv_lib_$ac_lib_var=no"
3146    fi
3147    rm -f conftest*
3148    LIBS="$ac_save_LIBS"
3149    
3150  int  fi
3151  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3152  {    echo "$ac_t""yes" 1>&6
 main ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_Xext_main=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_Xext_main=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5  
 echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6  
 if test $ac_cv_lib_Xext_main = yes; then  
3153    X_LIBS="$X_LIBS -lXext"    X_LIBS="$X_LIBS -lXext"
3154  else  else
3155    miss=1    echo "$ac_t""no" 1>&6
3156    miss=1
3157  fi  fi
3158    
3159  echo "$as_me:$LINENO: checking for main in -lXaw" >&5  echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6
3160  echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6  echo "configure:3161: checking for main in -lXaw" >&5
3161  if test "${ac_cv_lib_Xaw_main+set}" = set; then  ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`
3162    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3163      echo $ac_n "(cached) $ac_c" 1>&6
3164  else  else
3165    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3166  LIBS="-lXaw $X_LIBS $LIBS"  LIBS="-lXaw $X_LIBS $LIBS"
3167  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3168  /* confdefs.h.  */  #line 3169 "configure"
3169  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3170    
3171    int main() {
3172    main()
3173    ; return 0; }
3174    EOF
3175    if { (eval echo configure:3176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3176      rm -rf conftest*
3177      eval "ac_cv_lib_$ac_lib_var=yes"
3178    else
3179      echo "configure: failed program was:" >&5
3180      cat conftest.$ac_ext >&5
3181      rm -rf conftest*
3182      eval "ac_cv_lib_$ac_lib_var=no"
3183    fi
3184    rm -f conftest*
3185    LIBS="$ac_save_LIBS"
3186    
3187  int  fi
3188  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3189  {    echo "$ac_t""yes" 1>&6
 main ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_Xaw_main=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_Xaw_main=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5  
 echo "${ECHO_T}$ac_cv_lib_Xaw_main" >&6  
 if test $ac_cv_lib_Xaw_main = yes; then  
3190    X_LIBS="$X_LIBS -lXaw"    X_LIBS="$X_LIBS -lXaw"
3191  else  else
3192    miss=1    echo "$ac_t""no" 1>&6
3193    miss=1
3194  fi  fi
3195    
3196  echo "$as_me:$LINENO: checking for main in -lX11" >&5  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6
3197  echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6  echo "configure:3198: checking for main in -lX11" >&5
3198  if test "${ac_cv_lib_X11_main+set}" = set; then  ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`
3199    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3200      echo $ac_n "(cached) $ac_c" 1>&6
3201  else  else
3202    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3203  LIBS="-lX11 $X_LIBS $LIBS"  LIBS="-lX11 $X_LIBS $LIBS"
3204  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3205  /* confdefs.h.  */  #line 3206 "configure"
3206  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3207    
3208    int main() {
3209    main()
3210    ; return 0; }
3211    EOF
3212    if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3213      rm -rf conftest*
3214      eval "ac_cv_lib_$ac_lib_var=yes"
3215    else
3216      echo "configure: failed program was:" >&5
3217      cat conftest.$ac_ext >&5
3218      rm -rf conftest*
3219      eval "ac_cv_lib_$ac_lib_var=no"
3220    fi
3221    rm -f conftest*
3222    LIBS="$ac_save_LIBS"
3223    
3224  int  fi
3225  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3226  {    echo "$ac_t""yes" 1>&6
 main ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_X11_main=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_X11_main=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5  
 echo "${ECHO_T}$ac_cv_lib_X11_main" >&6  
 if test $ac_cv_lib_X11_main = yes; then  
3227    X_LIBS="$X_LIBS -lX11"    X_LIBS="$X_LIBS -lX11"
3228  else  else
3229    miss=1    echo "$ac_t""no" 1>&6
3230    miss=1
3231  fi  fi
3232    
3233    
3234  if test "$miss" = "1" ; then  if test "$miss" = "1" ; then
3235          X_CFLAGS=          X_CFLAGS=
3236          X_LIBS=          X_LIBS=
# Line 6146  fi Line 3247  fi
3247    
3248  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
3249    
3250          echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3251  echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6  echo "configure:3252: checking for dlopen in -ldl" >&5
3252  if test "${ac_cv_lib_dl_dlopen+set}" = set; then  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3253    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3254      echo $ac_n "(cached) $ac_c" 1>&6
3255  else  else
3256    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3257  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
3258  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3259  /* confdefs.h.  */  #line 3260 "configure"
3260  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
3261  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
3262  /* 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
3263     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3264  char dlopen ();  char dlopen();
3265  int  
3266  main ()  int main() {
3267  {  dlopen()
3268  dlopen ();  ; return 0; }
3269    ;  EOF
3270    return 0;  if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3271  }    rm -rf conftest*
3272  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
3273  rm -f conftest.$ac_objext conftest$ac_exeext  else
3274  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
3275    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
3276    ac_status=$?    rm -rf conftest*
3277    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
3278    rm -f conftest.er1  fi
3279    cat conftest.err >&5  rm -f conftest*
3280    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
3281    (exit $ac_status); } &&  
3282           { ac_try='test -z "$ac_c_werror_flag"  fi
3283                           || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3284    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_dl_dlopen=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_dl_dlopen=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5  
 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6  
 if test $ac_cv_lib_dl_dlopen = yes; then  
3285    have_dl=1    have_dl=1
3286  else  else
3287    have_dl=0    echo "$ac_t""no" 1>&6
3288    have_dl=0
3289  fi  fi
3290    
3291          if test "$have_dl" = "0" ; then          if test "$have_dl" = "0" ; then
# Line 6222  fi Line 3294  fi
3294          fi          fi
3295    
3296          TLIBS="$TLIBS -ldl -rdynamic"          TLIBS="$TLIBS -ldl -rdynamic"
3297          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
3298  #define USE_DLOPEN 1  #define USE_DLOPEN 1
3299  _ACEOF  EOF
3300    
3301  fi  fi
3302    
3303  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
3304          if test "${ac_cv_header_bfd_h+set}" = set; then          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`
3305    echo "$as_me:$LINENO: checking for bfd.h" >&5  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6
3306  echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6  echo "configure:3307: checking for bfd.h" >&5
3307  if test "${ac_cv_header_bfd_h+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3308    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
3309  fi  else
3310  echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5    cat > conftest.$ac_ext <<EOF
3311  echo "${ECHO_T}$ac_cv_header_bfd_h" >&6  #line 3312 "configure"
3312  else  #include "confdefs.h"
   # Is the header compilable?  
 echo "$as_me:$LINENO: checking bfd.h usability" >&5  
 echo $ECHO_N "checking bfd.h usability... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
 #include <bfd.h>  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking bfd.h presence" >&5  
 echo $ECHO_N "checking bfd.h presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3313  #include <bfd.h>  #include <bfd.h>
3314  _ACEOF  EOF
3315  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3316    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  { (eval echo configure:3317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3317    ac_status=$?  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3318    grep -v '^ *+' conftest.er1 >conftest.err  if test -z "$ac_err"; then
3319    rm -f conftest.er1    rm -rf conftest*
3320    cat conftest.err >&5    eval "ac_cv_header_$ac_safe=yes"
3321    echo "$as_me:$LINENO: \$? = $ac_status" >&5  else
3322    (exit $ac_status); } >/dev/null; then    echo "$ac_err" >&5
3323    if test -s conftest.err; then    echo "configure: failed program was:" >&5
3324      ac_cpp_err=$ac_c_preproc_warn_flag    cat conftest.$ac_ext >&5
3325      ac_cpp_err=$ac_cpp_err$ac_c_werror_flag    rm -rf conftest*
3326    else    eval "ac_cv_header_$ac_safe=no"
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   ac_header_preproc=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   ac_header_preproc=no  
 fi  
 rm -f conftest.err conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: bfd.h: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: bfd.h: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: bfd.h: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: bfd.h:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: bfd.h:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: bfd.h: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: bfd.h: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: bfd.h:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: bfd.h:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: bfd.h: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: bfd.h: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for bfd.h" >&5  
 echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6  
 if test "${ac_cv_header_bfd_h+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_cv_header_bfd_h=$ac_header_preproc  
3327  fi  fi
3328  echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5  rm -f conftest*
 echo "${ECHO_T}$ac_cv_header_bfd_h" >&6  
   
3329  fi  fi
3330  if test $ac_cv_header_bfd_h = yes; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3331    echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5    echo "$ac_t""yes" 1>&6
3332  echo $ECHO_N "checking for bfd_init in -lbfd... $ECHO_C" >&6    echo $ac_n "checking for bfd_init in -lbfd""... $ac_c" 1>&6
3333  if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then  echo "configure:3334: checking for bfd_init in -lbfd" >&5
3334    echo $ECHO_N "(cached) $ECHO_C" >&6  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`
3335    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3336      echo $ac_n "(cached) $ac_c" 1>&6
3337  else  else
3338    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3339  LIBS="-lbfd -liberty $LIBS"  LIBS="-lbfd -liberty $LIBS"
3340  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3341  /* confdefs.h.  */  #line 3342 "configure"
3342  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
3343  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
3344  /* 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
3345     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3346  char bfd_init ();  char bfd_init();
3347  int  
3348  main ()  int main() {
3349  {  bfd_init()
3350  bfd_init ();  ; return 0; }
3351    ;  EOF
3352    return 0;  if { (eval echo configure:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3353  }    rm -rf conftest*
3354  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
3355  rm -f conftest.$ac_objext conftest$ac_exeext  else
3356  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
3357    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
3358    ac_status=$?    rm -rf conftest*
3359    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
3360    rm -f conftest.er1  fi
3361    cat conftest.err >&5  rm -f conftest*
3362    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
3363    (exit $ac_status); } &&  
3364           { ac_try='test -z "$ac_c_werror_flag"  fi
3365                           || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3366    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_bfd_bfd_init=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_bfd_bfd_init=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_init" >&5  
 echo "${ECHO_T}$ac_cv_lib_bfd_bfd_init" >&6  
 if test $ac_cv_lib_bfd_bfd_init = yes; then  
3367    #    #
3368                  # Old binutils appear to need CONST defined to const                  # Old binutils appear to need CONST defined to const
3369                  #                  #
3370                          echo "$as_me:$LINENO: checking if need to define CONST for bfd" >&5                          echo $ac_n "checking if need to define CONST for bfd""... $ac_c" 1>&6
3371  echo $ECHO_N "checking if need to define CONST for bfd... $ECHO_C" >&6  echo "configure:3372: checking if need to define CONST for bfd" >&5
3372                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
3373    echo "$as_me:$LINENO: result: cannot use bfd" >&5    echo "$ac_t""cannot use bfd" 1>&6 exit 1;
 echo "${ECHO_T}cannot use bfd" >&6 exit 1;  
3374  else  else
3375    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3376  /* confdefs.h.  */  #line 3377 "configure"
3377  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3378  #define IN_GCC  #define IN_GCC
3379                                      #include <bfd.h>                                      #include <bfd.h>
3380                                      int main() { symbol_info t; return 0;}                                      int main() { symbol_info t; return 0;}
3381  _ACEOF  EOF
3382  rm -f conftest$ac_exeext  if { (eval echo configure:3383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3383  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
3384    (eval $ac_link) 2>&5    echo "$ac_t""no" 1>&6
3385    ac_status=$?  else
3386    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "configure: failed program was:" >&5
3387    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    cat conftest.$ac_ext >&5
3388    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    rm -fr conftest*
3389    (eval $ac_try) 2>&5    if test "$cross_compiling" = yes; then
3390    ac_status=$?    echo "$ac_t""cannot use bfd" 1>&6 exit 1;
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 else  
   echo "$as_me: program exited with status $ac_status" >&5  
 echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ( exit $ac_status )  
 if test "$cross_compiling" = yes; then  
   echo "$as_me:$LINENO: result: cannot use bfd" >&5  
 echo "${ECHO_T}cannot use bfd" >&6 exit 1;  
3391  else  else
3392    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3393  /* confdefs.h.  */  #line 3394 "configure"
3394  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3395  #define CONST const  #define CONST const
3396                                              #define IN_GCC                                              #define IN_GCC
3397                                              #include <bfd.h>                                              #include <bfd.h>
3398                                              int main() {symbol_info t; return 0;}                                              int main() {symbol_info t; return 0;}
3399  _ACEOF  EOF
3400  rm -f conftest$ac_exeext  if { (eval echo configure:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3401  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
3402    (eval $ac_link) 2>&5    echo "$ac_t""yes" 1>&6
3403    ac_status=$?                                          cat >> confdefs.h <<\EOF
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6  
                                         cat >>confdefs.h <<\_ACEOF  
3404  #define NEED_CONST 1  #define NEED_CONST 1
3405  _ACEOF  EOF
3406    
3407  else  else
3408    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
3409  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
3410  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
3411      echo "$ac_t""cannot use bfd" 1>&6 exit 1;
 ( exit $ac_status )  
 echo "$as_me:$LINENO: result: cannot use bfd" >&5  
 echo "${ECHO_T}cannot use bfd" >&6 exit 1;  
3412  fi  fi
3413  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
3414  fi  fi
3415    
3416  fi  fi
3417  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
3418  fi  fi
3419    
3420                            
3421    else
3422      echo "$ac_t""no" 1>&6
3423  fi  fi
3424    
3425    else
3426      echo "$ac_t""no" 1>&6
3427  fi  fi
3428    
3429    
3430            cat >> confdefs.h <<\EOF
         cat >>confdefs.h <<\_ACEOF  
3431  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
3432  _ACEOF  EOF
3433    
3434    
3435  #  #
3436  # BFD boolean syntax  # BFD boolean syntax
3437  #  #
3438    
3439          echo "$as_me:$LINENO: checking for useable bfd_boolean" >&5          echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6
3440  echo $ECHO_N "checking for useable bfd_boolean... $ECHO_C" >&6  echo "configure:3441: checking for useable bfd_boolean" >&5
3441          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
3442    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
3443  else  else
3444    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3445  /* confdefs.h.  */  #line 3446 "configure"
3446  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3447  #define IN_GCC  #define IN_GCC
3448                      #include <bfd.h>                      #include <bfd.h>
3449                      bfd_boolean foo() {return FALSE;}                      bfd_boolean foo() {return FALSE;}
3450                      int main() {return 0;}                      int main() {return 0;}
3451  _ACEOF  EOF
3452  rm -f conftest$ac_exeext  if { (eval echo configure:3453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3453  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
3454    (eval $ac_link) 2>&5    echo "$ac_t""yes" 1>&6
3455    ac_status=$?                  cat >> confdefs.h <<\EOF
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6  
                 cat >>confdefs.h <<\_ACEOF  
3456  #define HAVE_BFD_BOOLEAN 1  #define HAVE_BFD_BOOLEAN 1
3457  _ACEOF  EOF
3458    
3459  else  else
3460    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
3461  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
3462  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
3463      echo "$ac_t""no" 1>&6
 ( exit $ac_status )  
 echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
3464  fi  fi
3465  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
3466  fi  fi
3467    
3468    
3469    
3470  #  #
3471  # FIXME: Need to workaround mingw before this point -- CM  # FIXME: Need to workaround mingw before this point -- CM
3472  #  #
# Line 6591  fi Line 3479  fi
3479                  else                  else
3480                     echo Guessing path to libbfd.a due to gcc bug                     echo Guessing path to libbfd.a due to gcc bug
3481                     TLIBS="$TLIBS /usr/lib/libbfd.a"                     TLIBS="$TLIBS /usr/lib/libbfd.a"
3482                  fi                  fi  
3483                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then
3484                     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 ? "/" : "")}'`"
3485                  else                  else
3486                     echo Guessing path to libiberty.a due to gcc bug                     echo Guessing path to libiberty.a due to gcc bug
3487                     TLIBS="$TLIBS /usr/lib/libiberty.a"                     TLIBS="$TLIBS /usr/lib/libiberty.a"
3488                  fi                  fi  
3489          else          else
3490                  TLIBS="$TLIBS -lbfd -liberty"                  TLIBS="$TLIBS -lbfd -liberty"
3491          fi          fi
# Line 6607  if test "$enable_locbfd" = "yes" ; then Line 3495  if test "$enable_locbfd" = "yes" ; then
3495    
3496          # check for gettext.  It is part of glibc, but others          # check for gettext.  It is part of glibc, but others
3497          # need GNU gettext separately.          # need GNU gettext separately.
3498          if test "${ac_cv_header_libintl_h+set}" = set; then          ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3499    echo "$as_me:$LINENO: checking for libintl.h" >&5  echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3500  echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6  echo "configure:3501: checking for libintl.h" >&5
3501  if test "${ac_cv_header_libintl_h+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3502    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
3503  fi  else
3504  echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5    cat > conftest.$ac_ext <<EOF
3505  echo "${ECHO_T}$ac_cv_header_libintl_h" >&6  #line 3506 "configure"
3506  else  #include "confdefs.h"
   # Is the header compilable?  
 echo "$as_me:$LINENO: checking libintl.h usability" >&5  
 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
 #include <libintl.h>  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking libintl.h presence" >&5  
 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3507  #include <libintl.h>  #include <libintl.h>
3508  _ACEOF  EOF
3509  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3510    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  { (eval echo configure:3511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3511    ac_status=$?  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3512    grep -v '^ *+' conftest.er1 >conftest.err  if test -z "$ac_err"; then
3513    rm -f conftest.er1    rm -rf conftest*
3514    cat conftest.err >&5    eval "ac_cv_header_$ac_safe=yes"
3515    echo "$as_me:$LINENO: \$? = $ac_status" >&5  else
3516    (exit $ac_status); } >/dev/null; then    echo "$ac_err" >&5
3517    if test -s conftest.err; then    echo "configure: failed program was:" >&5
3518      ac_cpp_err=$ac_c_preproc_warn_flag    cat conftest.$ac_ext >&5
3519      ac_cpp_err=$ac_cpp_err$ac_c_werror_flag    rm -rf conftest*
3520    else    eval "ac_cv_header_$ac_safe=no"
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   ac_header_preproc=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   ac_header_preproc=no  
 fi  
 rm -f conftest.err conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for libintl.h" >&5  
 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6  
 if test "${ac_cv_header_libintl_h+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_cv_header_libintl_h=$ac_header_preproc  
3521  fi  fi
3522  echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5  rm -f conftest*
 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6  
   
3523  fi  fi
3524  if test $ac_cv_header_libintl_h = yes; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3525      echo "$ac_t""yes" 1>&6
3526    true    true
3527  else  else
3528    { { echo "$as_me:$LINENO: error: libintl.h (gettext) not found" >&5    echo "$ac_t""no" 1>&6
3529  echo "$as_me: error: libintl.h (gettext) not found" >&2;}  { echo "configure: error: libintl.h (gettext) not found" 1>&2; exit 1; }
    { (exit 1); exit 1; }; }  
3530  fi  fi
3531    
3532            
3533          echo "$as_me:$LINENO: checking for library containing dgettext" >&5  echo $ac_n "checking for library containing dgettext""... $ac_c" 1>&6
3534  echo $ECHO_N "checking for library containing dgettext... $ECHO_C" >&6  echo "configure:3535: checking for library containing dgettext" >&5
3535  if test "${ac_cv_search_dgettext+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_search_dgettext'+set}'`\" = set"; then
3536    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
3537  else  else
3538    ac_func_search_save_LIBS=$LIBS    ac_func_search_save_LIBS="$LIBS"
3539  ac_cv_search_dgettext=no  ac_cv_search_dgettext="no"
3540  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3541  /* confdefs.h.  */  #line 3542 "configure"
3542  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
3543  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
3544  /* 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
3545     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3546  char dgettext ();  char dgettext();
3547  int  
3548  main ()  int main() {
3549  {  dgettext()
3550  dgettext ();  ; return 0; }
3551    ;  EOF
3552    return 0;  if { (eval echo configure:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3553  }    rm -rf conftest*
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
3554    ac_cv_search_dgettext="none required"    ac_cv_search_dgettext="none required"
3555  else  else
3556    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
3557  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
   
3558  fi  fi
3559  rm -f conftest.err conftest.$ac_objext \  rm -f conftest*
3560        conftest$ac_exeext conftest.$ac_ext  test "$ac_cv_search_dgettext" = "no" && for i in intl; do
3561  if test "$ac_cv_search_dgettext" = no; then  LIBS="-l$i  $ac_func_search_save_LIBS"
3562    for ac_lib in intl; do  cat > conftest.$ac_ext <<EOF
3563      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"  #line 3564 "configure"
3564      cat >conftest.$ac_ext <<_ACEOF  #include "confdefs.h"
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
3565  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
3566  /* 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
3567     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3568  char dgettext ();  char dgettext();
3569  int  
3570  main ()  int main() {
3571  {  dgettext()
3572  dgettext ();  ; return 0; }
3573    ;  EOF
3574    return 0;  if { (eval echo configure:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3575  }    rm -rf conftest*
3576  _ACEOF    ac_cv_search_dgettext="-l$i"
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_search_dgettext="-l$ac_lib"  
3577  break  break
3578  else  else
3579    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
3580  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
   
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
   done  
3581  fi  fi
3582  LIBS=$ac_func_search_save_LIBS  rm -f conftest*
3583    done
3584    LIBS="$ac_func_search_save_LIBS"
3585  fi  fi
3586  echo "$as_me:$LINENO: result: $ac_cv_search_dgettext" >&5  
3587  echo "${ECHO_T}$ac_cv_search_dgettext" >&6  echo "$ac_t""$ac_cv_search_dgettext" 1>&6
3588  if test "$ac_cv_search_dgettext" != no; then  if test "$ac_cv_search_dgettext" != "no"; then
3589    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"
3590    true    true
3591  else  else :
3592    { { echo "$as_me:$LINENO: error: gettext library not found" >&5    { echo "configure: error: gettext library not found" 1>&2; exit 1; }
 echo "$as_me: error: gettext library not found" >&2;}  
    { (exit 1); exit 1; }; }  
3593  fi  fi
3594    
   
3595          echo "#"          echo "#"
3596          echo "#"          echo "#"
3597          echo "# -------------------------"          echo "# -------------------------"
# Line 6891  fi Line 3599  fi
3599          echo "#"          echo "#"
3600          echo "#"          echo "#"
3601          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..
3602  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "
3603          echo "#"          echo "#"
3604          echo "#"          echo "#"
3605          echo "#"          echo "#"
# Line 6905  fi Line 3613  fi
3613          echo "#"          echo "#"
3614          echo "#"          echo "#"
3615          cd binutils/bfd && chmod +x configure && ./configure && cd ../..          cd binutils/bfd && chmod +x configure && ./configure && cd ../..
3616  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "
3617          echo "#"          echo "#"
3618          echo "#"          echo "#"
3619          echo "#"          echo "#"
# Line 6913  fi Line 3621  fi
3621          echo "# ------------------------"          echo "# ------------------------"
3622          echo "#"          echo "#"
3623  #       TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"  #       TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"
3624          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
3625  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
3626  _ACEOF  EOF
3627    
3628          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"
3629            
3630  fi  fi
3631    
3632  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)
# Line 6927  fi Line 3635  fi
3635  # mechanism, in the PAGE macro.  This offset is subtracted from  # mechanism, in the PAGE macro.  This offset is subtracted from
3636  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
3637    
3638  echo "$as_me:$LINENO: checking for long" >&5  echo $ac_n "checking size of long""... $ac_c" 1>&6
3639  echo $ECHO_N "checking for long... $ECHO_C" >&6  echo "configure:3640: checking size of long" >&5
3640  if test "${ac_cv_type_long+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3641    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
3642  else  else
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
 int  
 main ()  
 {  
 if ((long *) 0)  
   return 0;  
 if (sizeof (long))  
   return 0;  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_type_long=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_type_long=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5  
 echo "${ECHO_T}$ac_cv_type_long" >&6  
   
 echo "$as_me:$LINENO: checking size of long" >&5  
 echo $ECHO_N "checking size of long... $ECHO_C" >&6  
 if test "${ac_cv_sizeof_long+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   if test "$ac_cv_type_long" = yes; then  
   # The cast to unsigned long works around a bug in the HP C Compiler  
   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects  
   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.  
   # This bug is HP SR number 8606223364.  
3643    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
3644    # Depending upon the size, compute the lo and hi bounds.    ac_cv_sizeof_long=0
3645  cat >conftest.$ac_ext <<_ACEOF  else
3646  /* confdefs.h.  */    cat > conftest.$ac_ext <<EOF
3647  _ACEOF  #line 3648 "configure"
3648  cat confdefs.h >>conftest.$ac_ext  #include "confdefs.h"
3649  cat >>conftest.$ac_ext <<_ACEOF  #include <stdio.h>
3650  /* end confdefs.h.  */  #include <sys/types.h>
3651  $ac_includes_default  main()
 int  
 main ()  
3652  {  {
3653  static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];    FILE *f=fopen("conftestval", "w");
3654  test_array [0] = 0    if (!f) exit(1);
3655      fprintf(f, "%d\n", sizeof(long));
3656    ;    exit(0);
   return 0;  
3657  }  }
3658  _ACEOF  EOF
3659  rm -f conftest.$ac_objext  if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3660  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  then
3661    (eval $ac_compile) 2>conftest.er1    ac_cv_sizeof_long=`cat conftestval`
3662    ac_status=$?  else
3663    grep -v '^ *+' conftest.er1 >conftest.err    echo "configure: failed program was:" >&5
3664    rm -f conftest.er1    cat conftest.$ac_ext >&5
3665    cat conftest.err >&5    rm -fr conftest*
3666    echo "$as_me:$LINENO: \$? = $ac_status" >&5    ac_cv_sizeof_long=0
3667    (exit $ac_status); } &&  fi
3668           { ac_try='test -z "$ac_c_werror_flag"  rm -fr conftest*
3669                           || test ! -s conftest.err'  fi
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_lo=0 ac_mid=0  
   while :; do  
     cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
 int  
 main ()  
 {  
 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];  
 test_array [0] = 0  
3670    
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_hi=$ac_mid; break  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_lo=`expr $ac_mid + 1`  
                     if test $ac_lo -le $ac_mid; then  
                       ac_lo= ac_hi=  
                       break  
                     fi  
                     ac_mid=`expr 2 '*' $ac_mid + 1`  
3671  fi  fi
3672  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3673    done  cat >> confdefs.h <<EOF
3674  else  #define SIZEOF_LONG $ac_cv_sizeof_long
3675    echo "$as_me: failed program was:" >&5  EOF
 sed 's/^/| /' conftest.$ac_ext >&5  
3676    
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
 int  
 main ()  
 {  
 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];  
 test_array [0] = 0  
3677    
3678    ;  echo $ac_n "checking size of int""... $ac_c" 1>&6
3679    return 0;  echo "configure:3680: checking size of int" >&5
3680  }  if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3681  _ACEOF    echo $ac_n "(cached) $ac_c" 1>&6
3682  rm -f conftest.$ac_objext  else
3683  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5    if test "$cross_compiling" = yes; then
3684    (eval $ac_compile) 2>conftest.er1    ac_cv_sizeof_int=0
3685    ac_status=$?  else
3686    grep -v '^ *+' conftest.er1 >conftest.err    cat > conftest.$ac_ext <<EOF
3687    rm -f conftest.er1  #line 3688 "configure"
3688    cat conftest.err >&5  #include "confdefs.h"
3689    echo "$as_me:$LINENO: \$? = $ac_status" >&5  #include <stdio.h>
3690    (exit $ac_status); } &&  #include <sys/types.h>
3691           { ac_try='test -z "$ac_c_werror_flag"  main()
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_hi=-1 ac_mid=-1  
   while :; do  
     cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
 int  
 main ()  
3692  {  {
3693  static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];    FILE *f=fopen("conftestval", "w");
3694  test_array [0] = 0    if (!f) exit(1);
3695      fprintf(f, "%d\n", sizeof(int));
3696    ;    exit(0);
   return 0;  
3697  }  }
3698  _ACEOF  EOF
3699  rm -f conftest.$ac_objext  if { (eval echo configure:3700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3700  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  then
3701    (eval $ac_compile) 2>conftest.er1    ac_cv_sizeof_int=`cat conftestval`
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_lo=$ac_mid; break  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_hi=`expr '(' $ac_mid ')' - 1`  
                        if test $ac_mid -le $ac_hi; then  
                          ac_lo= ac_hi=  
                          break  
                        fi  
                        ac_mid=`expr 2 '*' $ac_mid`  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
   done  
3702  else  else
3703    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
3704  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3705      rm -fr conftest*
3706  ac_lo= ac_hi=    ac_cv_sizeof_int=0
3707  fi  fi
3708  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
3709  fi  fi
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 # Binary search between lo and hi bounds.  
 while test "x$ac_lo" != "x$ac_hi"; do  
   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
 int  
 main ()  
 {  
 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];  
 test_array [0] = 0  
3710    
3711    ;  fi
3712    return 0;  echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3713    cat >> confdefs.h <<EOF
3714    #define SIZEOF_INT $ac_cv_sizeof_int
3715    EOF
3716    
3717    
3718    echo $ac_n "checking size of short""... $ac_c" 1>&6
3719    echo "configure:3720: checking size of short" >&5
3720    if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3721      echo $ac_n "(cached) $ac_c" 1>&6
3722    else
3723      if test "$cross_compiling" = yes; then
3724      ac_cv_sizeof_short=0
3725    else
3726      cat > conftest.$ac_ext <<EOF
3727    #line 3728 "configure"
3728    #include "confdefs.h"
3729    #include <stdio.h>
3730    #include <sys/types.h>
3731    main()
3732    {
3733      FILE *f=fopen("conftestval", "w");
3734      if (!f) exit(1);
3735      fprintf(f, "%d\n", sizeof(short));
3736      exit(0);
3737  }  }
3738  _ACEOF  EOF
3739  rm -f conftest.$ac_objext  if { (eval echo configure:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3740  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  then
3741    (eval $ac_compile) 2>conftest.er1    ac_cv_sizeof_short=`cat conftestval`
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_hi=$ac_mid  
3742  else  else
3743    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
3744  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3745      rm -fr conftest*
3746      ac_cv_sizeof_short=0
3747    fi
3748    rm -fr conftest*
3749    fi
3750    
 ac_lo=`expr '(' $ac_mid ')' + 1`  
3751  fi  fi
3752  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3753  done  cat >> confdefs.h <<EOF
3754  case $ac_lo in  #define SIZEOF_SHORT $ac_cv_sizeof_short
3755  ?*) ac_cv_sizeof_long=$ac_lo;;  EOF
3756  '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77  
3757  See \`config.log' for more details." >&5  
3758  echo "$as_me: error: cannot compute sizeof (long), 77  echo $ac_n "checking size of char""... $ac_c" 1>&6
3759  See \`config.log' for more details." >&2;}  echo "configure:3760: checking size of char" >&5
3760     { (exit 1); exit 1; }; } ;;  if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
3761  esac    echo $ac_n "(cached) $ac_c" 1>&6
3762  else  else
3763    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
3764    { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling    ac_cv_sizeof_char=0
3765  See \`config.log' for more details." >&5  else
3766  echo "$as_me: error: cannot run test program while cross compiling    cat > conftest.$ac_ext <<EOF
3767  See \`config.log' for more details." >&2;}  #line 3768 "configure"
3768     { (exit 1); exit 1; }; }  #include "confdefs.h"
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
 long longval () { return (long) (sizeof (long)); }  
 unsigned long ulongval () { return (long) (sizeof (long)); }  
3769  #include <stdio.h>  #include <stdio.h>
3770  #include <stdlib.h>  #include <sys/types.h>
3771  int  main()
 main ()  
3772  {  {
3773      FILE *f=fopen("conftestval", "w");
3774      if (!f) exit(1);
3775      fprintf(f, "%d\n", sizeof(char));
3776      exit(0);
3777    }
3778    EOF
3779    if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3780    then
3781      ac_cv_sizeof_char=`cat conftestval`
3782    else
3783      echo "configure: failed program was:" >&5
3784      cat conftest.$ac_ext >&5
3785      rm -fr conftest*
3786      ac_cv_sizeof_char=0
3787    fi
3788    rm -fr conftest*
3789    fi
3790    
3791    FILE *f = fopen ("conftest.val", "w");  fi
3792    if (! f)  echo "$ac_t""$ac_cv_sizeof_char" 1>&6
3793      exit (1);  cat >> confdefs.h <<EOF
3794    if (((long) (sizeof (long))) < 0)  #define SIZEOF_CHAR $ac_cv_sizeof_char
3795      {  EOF
       long i = longval ();  
       if (i != ((long) (sizeof (long))))  
         exit (1);  
       fprintf (f, "%ld\n", i);  
     }  
   else  
     {  
       unsigned long i = ulongval ();  
       if (i != ((long) (sizeof (long))))  
         exit (1);  
       fprintf (f, "%lu\n", i);  
     }  
   exit (ferror (f) || fclose (f) != 0);  
3796    
3797    ;  
3798    return 0;  
3799    echo $ac_n "checking for number of bits in char""... $ac_c" 1>&6
3800    echo "configure:3801: checking for number of bits in char" >&5
3801    if test "$cross_compiling" = yes; then
3802      echo Cannot find char_size;exit 1
3803    else
3804      cat > conftest.$ac_ext <<EOF
3805    #line 3806 "configure"
3806    #include "confdefs.h"
3807    #include <stdio.h>
3808    int main() {
3809    FILE *fp=fopen("conftest1","w");;
3810    unsigned char c;
3811    int i;
3812    for (i=0,c=1;c;c<<=1,i++);
3813    fprintf(fp,"%d",i);
3814    return 0;
3815  }  }
3816  _ACEOF  EOF
3817  rm -f conftest$ac_exeext  if { (eval echo configure:3818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3818  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
3819    (eval $ac_link) 2>&5    char_size=`cat conftest1`
3820    ac_status=$?  else
3821    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "configure: failed program was:" >&5
3822    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    cat conftest.$ac_ext >&5
3823    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    rm -fr conftest*
3824    (eval $ac_try) 2>&5    echo Cannot find char_size;exit 1
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_sizeof_long=`cat conftest.val`  
 else  
   echo "$as_me: program exited with status $ac_status" >&5  
 echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ( exit $ac_status )  
 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77  
 See \`config.log' for more details." >&5  
 echo "$as_me: error: cannot compute sizeof (long), 77  
 See \`config.log' for more details." >&2;}  
    { (exit 1); exit 1; }; }  
3825  fi  fi
3826  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
3827  fi  fi
3828    
3829    echo "$ac_t""$char_size" 1>&6
3830    cat >> confdefs.h <<EOF
3831    #define CHAR_SIZE $char_size
3832    EOF
3833    
3834    
3835    for ac_hdr in endian.h
3836    do
3837    ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3838    echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3839    echo "configure:3840: checking for $ac_hdr" >&5
3840    if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3841      echo $ac_n "(cached) $ac_c" 1>&6
3842    else
3843      cat > conftest.$ac_ext <<EOF
3844    #line 3845 "configure"
3845    #include "confdefs.h"
3846    #include <$ac_hdr>
3847    EOF
3848    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3849    { (eval echo configure:3850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3850    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3851    if test -z "$ac_err"; then
3852      rm -rf conftest*
3853      eval "ac_cv_header_$ac_safe=yes"
3854    else
3855      echo "$ac_err" >&5
3856      echo "configure: failed program was:" >&5
3857      cat conftest.$ac_ext >&5
3858      rm -rf conftest*
3859      eval "ac_cv_header_$ac_safe=no"
3860    fi
3861    rm -f conftest*
3862  fi  fi
3863  rm -f conftest.val  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3864      echo "$ac_t""yes" 1>&6
3865        ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3866      cat >> confdefs.h <<EOF
3867    #define $ac_tr_hdr 1
3868    EOF
3869     echo $ac_n "checking "endianness"""... $ac_c" 1>&6
3870    echo "configure:3871: checking "endianness"" >&5
3871            if test "$cross_compiling" = yes; then
3872      echo "$ac_t""big" 1>&6
3873  else  else
3874    ac_cv_sizeof_long=0    cat > conftest.$ac_ext <<EOF
3875    #line 3876 "configure"
3876    #include "confdefs.h"
3877    #define __ARMEB__
3878                    #include <endian.h>
3879                    int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
3880    EOF
3881    if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3882    then
3883      cat >> confdefs.h <<\EOF
3884    #define LITTLE_END 1
3885    EOF
3886     echo "$ac_t""little" 1>&6
3887    else
3888      echo "configure: failed program was:" >&5
3889      cat conftest.$ac_ext >&5
3890      rm -fr conftest*
3891      echo "$ac_t""big" 1>&6
3892  fi  fi
3893    rm -fr conftest*
3894  fi  fi
3895  echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5  
3896  echo "${ECHO_T}$ac_cv_sizeof_long" >&6  else
3897  cat >>confdefs.h <<_ACEOF    echo "$ac_t""no" 1>&6
3898  #define SIZEOF_LONG $ac_cv_sizeof_long  fi
3899  _ACEOF  done
3900    
3901    
3902    
3903    
3904  echo "$as_me:$LINENO: checking sizeof struct contblock" >&5  echo $ac_n "checking sizeof struct contblock""... $ac_c" 1>&6
3905  echo $ECHO_N "checking sizeof struct contblock... $ECHO_C" >&6  echo "configure:3906: checking sizeof struct contblock" >&5
3906    
3907  # work around MSYS pwd result incompatibility  # work around MSYS pwd result incompatibility
3908  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
3909  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3910    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
3911  else  else
3912    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3913  /* confdefs.h.  */  #line 3914 "configure"
3914  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3915  #include <stdio.h>  #include <stdio.h>
3916          #define EXTER          #define EXTER
3917          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 7366  cat >>conftest.$ac_ext <<_ACEOF Line 3923  cat >>conftest.$ac_ext <<_ACEOF
3923          fclose(f);          fclose(f);
3924          return 0;          return 0;
3925          }          }
3926  _ACEOF  EOF
3927  rm -f conftest$ac_exeext  if { (eval echo configure:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3928  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
3929    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
3930  else  else
3931    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
3932  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
3933  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
3934      echo Cannot find sizeof struct contblock;exit 1
 ( exit $ac_status )  
 echo Cannot find sizeof struct contblock;exit 1  
3935  fi  fi
3936  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
3937  fi  fi
3938    
3939  else  else
3940  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3941    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
3942  else  else
3943    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3944  /* confdefs.h.  */  #line 3945 "configure"
3945  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3946  #include <stdio.h>  #include <stdio.h>
3947          #define EXTER          #define EXTER
3948          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 7410  cat >>conftest.$ac_ext <<_ACEOF Line 3954  cat >>conftest.$ac_ext <<_ACEOF
3954          fclose(f);          fclose(f);
3955          return 0;          return 0;
3956          }          }
3957  _ACEOF  EOF
3958  rm -f conftest$ac_exeext  if { (eval echo configure:3959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3959  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
3960    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
3961  else  else
3962    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
3963  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
3964  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
3965      echo Cannot find sizeof struct contblock;exit 1
 ( exit $ac_status )  
 echo Cannot find sizeof struct contblock;exit 1  
 fi  
 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  
 fi  
3966  fi  fi
3967  echo "$as_me:$LINENO: result: $sizeof_contblock" >&5  rm -fr conftest*
 echo "${ECHO_T}$sizeof_contblock" >&6  
 cat >>confdefs.h <<_ACEOF  
 #define SIZEOF_CONTBLOCK $sizeof_contblock  
 _ACEOF  
   
   
   
   
   
 for ac_header in endian.h  
 do  
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
 else  
   # Is the header compilable?  
 echo "$as_me:$LINENO: checking $ac_header usability" >&5  
 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
 #include <$ac_header>  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking $ac_header presence" >&5  
 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <$ac_header>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
3968  fi  fi
 if test -z "$ac_cpp_err"; then  
   ac_header_preproc=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
3969    
   ac_header_preproc=no  
 fi  
 rm -f conftest.err conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   eval "$as_ac_Header=\$ac_header_preproc"  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
 fi  
 if test `eval echo '${'$as_ac_Header'}'` = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  
 _ACEOF  
  echo "$as_me:$LINENO: checking \"endianness\"" >&5  
 echo $ECHO_N "checking \"endianness\"... $ECHO_C" >&6  
         if test "$cross_compiling" = yes; then  
   echo "$as_me:$LINENO: result: big" >&5  
 echo "${ECHO_T}big" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #define __ARMEB__  
                 #include <endian.h>  
                 int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}  
 _ACEOF  
 rm -f conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   cat >>confdefs.h <<\_ACEOF  
 #define LITTLE_END 1  
 _ACEOF  
  echo "$as_me:$LINENO: result: little" >&5  
 echo "${ECHO_T}little" >&6  
 else  
   echo "$as_me: program exited with status $ac_status" >&5  
 echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ( exit $ac_status )  
 echo "$as_me:$LINENO: result: big" >&5  
 echo "${ECHO_T}big" >&6  
 fi  
 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  
3970  fi  fi
3971  fi  echo "$ac_t""$sizeof_contblock" 1>&6
3972    cat >> confdefs.h <<EOF
3973  done  #define SIZEOF_CONTBLOCK $sizeof_contblock
3974    EOF
3975    
3976    
3977    
# Line 7641  done Line 3979  done
3979  # On systems with execshield, brk is randomized.  We need to catch  # On systems with execshield, brk is randomized.  We need to catch
3980  # this and restore the traditional behavior here  # this and restore the traditional behavior here
3981    
3982  echo "$as_me:$LINENO: checking for sbrk" >&5  echo $ac_n "checking for sbrk""... $ac_c" 1>&6
3983  echo $ECHO_N "checking for sbrk... $ECHO_C" >&6  echo "configure:3984: checking for sbrk" >&5
3984  HAVE_SBRK=""  HAVE_SBRK=""
3985  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3986    echo "$as_me:$LINENO: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5    echo "$ac_t""no: WARNING you must be able to emulate sbrk: as on mingw or macosx" 1>&6
 echo "${ECHO_T}no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6  
3987  else  else
3988    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3989  /* confdefs.h.  */  #line 3990 "configure"
3990  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3991  #include <unistd.h>  #include <unistd.h>
3992              #include <stdio.h>              #include <stdio.h>
3993              int main() {              int main() {
# Line 7663  cat >>conftest.$ac_ext <<_ACEOF Line 3997  cat >>conftest.$ac_ext <<_ACEOF
3997                  fprintf(f,"%u",sbrk(0));                  fprintf(f,"%u",sbrk(0));
3998                  return 0;                  return 0;
3999                  }                  }
4000  _ACEOF  EOF
4001  rm -f conftest$ac_exeext  if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4002  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
4003    HAVE_SBRK=1    HAVE_SBRK=1
4004                  echo "$as_me:$LINENO: result: yes" >&5                  echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
4005  else  else
4006    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
4007  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
4008  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
4009      echo "$ac_t""no: WARNING you must be able to emulate sbrk: as on mingw or macosx" 1>&6
 ( exit $ac_status )  
 echo "$as_me:$LINENO: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5  
 echo "${ECHO_T}no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6  
4010  fi  fi
4011  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
4012  fi  fi
4013    
4014    
4015  if test "$HAVE_SBRK" = "1" ; then  if test "$HAVE_SBRK" = "1" ; then
4016          echo "$as_me:$LINENO: checking for randomized sbrk" >&5          echo $ac_n "checking for randomized sbrk""... $ac_c" 1>&6
4017  echo $ECHO_N "checking for randomized sbrk... $ECHO_C" >&6  echo "configure:4018: checking for randomized sbrk" >&5
4018          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
4019    SBRK=0    SBRK=0
4020  else  else
4021    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4022  /* confdefs.h.  */  #line 4023 "configure"
4023  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4024  #include <unistd.h>  #include <unistd.h>
4025                      #include <stdio.h>                      #include <stdio.h>
4026                      int main() {                      int main() {
# Line 7711  cat >>conftest.$ac_ext <<_ACEOF Line 4030  cat >>conftest.$ac_ext <<_ACEOF
4030                          fprintf(f,"%u",sbrk(0));                          fprintf(f,"%u",sbrk(0));
4031                          return 0;                          return 0;
4032                          }                          }
4033  _ACEOF  EOF
4034  rm -f conftest$ac_exeext  if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4035  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
4036    SBRK=`cat conftest1`    SBRK=`cat conftest1`
4037  else  else
4038    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
4039  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
4040  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
4041      SBRK=0
 ( exit $ac_status )  
 SBRK=0  
4042  fi  fi
4043  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
4044  fi  fi
4045    
4046          if test "$SBRK" = "0" ; then          if test "$SBRK" = "0" ; then
4047                  echo "$as_me:$LINENO: result: cannot trap sbrk" >&5                  echo "$ac_t""cannot trap sbrk" 1>&6
 echo "${ECHO_T}cannot trap sbrk" >&6  
4048                  exit 1                  exit 1
4049          fi          fi
4050          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
4051    SBRK1=0    SBRK1=0
4052  else  else
4053    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4054  /* confdefs.h.  */  #line 4055 "configure"
4055  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4056  #include <unistd.h>  #include <unistd.h>
4057                      #include <stdio.h>                      #include <stdio.h>
4058                      int main() {                      int main() {
# Line 7757  cat >>conftest.$ac_ext <<_ACEOF Line 4062  cat >>conftest.$ac_ext <<_ACEOF
4062                          fprintf(f,"%u",sbrk(0));                          fprintf(f,"%u",sbrk(0));
4063                          return 0;                          return 0;
4064                          }                          }
4065  _ACEOF  EOF
4066  rm -f conftest$ac_exeext  if { (eval echo configure:4067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4067  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
4068    SBRK1=`cat conftest1`    SBRK1=`cat conftest1`
4069  else  else
4070    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
4071  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
4072  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
4073      SBRK1=0
 ( exit $ac_status )  
 SBRK1=0  
4074  fi  fi
4075  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
4076  fi  fi
4077    
4078          if test "$SBRK1" = "0" ; then          if test "$SBRK1" = "0" ; then
4079                  echo "$as_me:$LINENO: result: cannot trap sbrk" >&5                  echo "$ac_t""cannot trap sbrk" 1>&6
 echo "${ECHO_T}cannot trap sbrk" >&6  
4080                  exit 1                  exit 1
4081          fi          fi
4082            
4083          if test "$SBRK" != "$SBRK1" ; then          if test "$SBRK" != "$SBRK1" ; then
4084                  echo "$as_me:$LINENO: result: yes" >&5                  echo "$ac_t""yes" 1>&6
4085  echo "${ECHO_T}yes" >&6                  echo $ac_n "checking for randomized brk remedy""... $ac_c" 1>&6
4086                  echo "$as_me:$LINENO: checking for randomized brk remedy" >&5  echo "configure:4087: checking for randomized brk remedy" >&5
 echo $ECHO_N "checking for randomized brk remedy... $ECHO_C" >&6  
4087                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
4088    SBRK=0    SBRK=0
4089  else  else
4090    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4091  /* confdefs.h.  */  #line 4092 "configure"
4092  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4093  #include <syscall.h>  #include <syscall.h>
4094                              #include <linux/personality.h>                              #include <linux/personality.h>
4095                              #include <stdio.h>                              #include <stdio.h>
# Line 7817  cat >>conftest.$ac_ext <<_ACEOF Line 4107  cat >>conftest.$ac_ext <<_ACEOF
4107                                  fprintf(f,"%u",sbrk(0));                                  fprintf(f,"%u",sbrk(0));
4108                                  return 0;                                  return 0;
4109                                  }                                  }
4110  _ACEOF  EOF
4111  rm -f conftest$ac_exeext  if { (eval echo configure:4112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4112  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
4113    SBRK=`cat conftest1`    SBRK=`cat conftest1`
4114  else  else
4115    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
4116  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
4117  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
4118      SBRK=0
 ( exit $ac_status )  
 SBRK=0  
4119  fi  fi
4120  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
4121  fi  fi
4122    
4123                  if test "$SBRK" = "0" ; then                  if test "$SBRK" = "0" ; then
4124                          echo "$as_me:$LINENO: result: cannot trap sbrk" >&5                          echo "$ac_t""cannot trap sbrk" 1>&6
 echo "${ECHO_T}cannot trap sbrk" >&6  
4125                          exit 1                          exit 1
4126                  fi                  fi
4127                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
4128    SBRK1=0    SBRK1=0
4129  else  else
4130    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4131  /* confdefs.h.  */  #line 4132 "configure"
4132  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4133  #include <syscall.h>  #include <syscall.h>
4134                              #include <linux/personality.h>                              #include <linux/personality.h>
4135                              #include <stdio.h>                              #include <stdio.h>
# Line 7871  cat >>conftest.$ac_ext <<_ACEOF Line 4147  cat >>conftest.$ac_ext <<_ACEOF
4147                                  fprintf(f,"%u",sbrk(0));                                  fprintf(f,"%u",sbrk(0));
4148                                  return 0;                                  return 0;
4149                                  }                                  }
4150  _ACEOF  EOF
4151  rm -f conftest$ac_exeext  if { (eval echo configure:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4152  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
4153    SBRK1=`cat conftest1`    SBRK1=`cat conftest1`
4154  else  else
4155    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
4156  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
4157  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
4158      SBRK1=0
 ( exit $ac_status )  
 SBRK1=0  
4159  fi  fi
4160  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
4161  fi  fi
4162    
4163                  if test "$SBRK1" = "0" ; then                  if test "$SBRK1" = "0" ; then
4164                          echo "$as_me:$LINENO: result: cannot trap sbrk" >&5                          echo "$ac_t""cannot trap sbrk" 1>&6
 echo "${ECHO_T}cannot trap sbrk" >&6  
4165                          exit 1                          exit 1
4166                  fi                  fi
4167                  if test "$SBRK" = "$SBRK1" ; then                  if test "$SBRK" = "$SBRK1" ; then
4168                          echo "$as_me:$LINENO: result: yes" >&5                          echo "$ac_t""yes" 1>&6
4169  echo "${ECHO_T}yes" >&6                          cat >> confdefs.h <<\EOF
                         cat >>confdefs.h <<\_ACEOF  
4170  #define NEED_NONRANDOM_SBRK 1  #define NEED_NONRANDOM_SBRK 1
4171  _ACEOF  EOF
4172    
4173                  else                  else
4174                          echo "$as_me:$LINENO: result: no" >&5                          echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
4175                          echo "Cannot build with randomized sbrk"                          echo "Cannot build with randomized sbrk"
4176                          exit 1                          exit 1
4177                  fi                  fi
4178          else          else
4179                  echo "$as_me:$LINENO: result: no" >&5                  echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
4180          fi          fi
4181  fi  fi
4182    
4183    echo $ac_n "checking "finding default linker script"""... $ac_c" 1>&6
4184    echo "configure:4185: checking "finding default linker script"" >&5
4185    touch unixport/gcl.script
4186    echo "int main() {return 0;}" >foo.c
4187    $CC -Wl,--verbose foo.c -o foo 2>&1 | \
4188        awk '/==================================================/ {i=1-i;next} {if (i) print}' >gcl.script
4189    rm -rf foo.c foo
4190    if test "`cat gcl.script | wc -l`" != "0" ; then
4191      echo "$ac_t""got it" 1>&6
4192      echo $ac_n "checking "trying to lower heap start"""... $ac_c" 1>&6
4193    echo "configure:4194: checking "trying to lower heap start"" >&5
4194      cp gcl.script gcl.script.def
4195      cat gcl.script.def | awk '/SIZEOF_HEADERS/ {gsub("0x...","0x000",$0);} {print}' >gcl.script
4196      if diff gcl.script.def gcl.script >/dev/null 2>&1 ; then
4197         echo "$ac_t"""cannot or not needed"" 1>&6
4198         rm -f gcl.script gcl.script.def
4199      else
4200         echo $ac_n "checking "linker script"""... $ac_c" 1>&6
4201    echo "configure:4202: checking "linker script"" >&5
4202         echo "int main() {return 0;}" >foo.c
4203         if $CC -Wl,-T gcl.script foo.c -o foo >/dev/null 2>&1 && ./foo >/dev/null 2>&1 ; then
4204              echo "$ac_t"""done"" 1>&6
4205              rm -f gcl.script.def
4206              LDFLAGS="$LDFLAGS -Wl,-T gcl.script "
4207              cp gcl.script unixport
4208         else
4209              echo "$ac_t"""failed"" 1>&6
4210              rm -f gcl.script gcl.script.def
4211         fi  
4212         rm -rf foo.c foo
4213      fi
4214    else
4215      echo "$ac_t"""none"" 1>&6
4216      rm -f gcl.script
4217    fi
4218    
4219  old_LDFLAGS="$LDFLAGS"  old_LDFLAGS="$LDFLAGS"
4220  LDFLAGS="$TLDFLAGS"  LDFLAGS="$LDFLAGS $TLDFLAGS"
4221  echo "$as_me:$LINENO: checking \"finding DBEGIN\"" >&5  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6
4222  echo $ECHO_N "checking \"finding DBEGIN\"... $ECHO_C" >&6  echo "configure:4223: checking "finding DBEGIN"" >&5
4223  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4224    dbegin=0    dbegin=0
4225  else  else
4226    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4227  /* confdefs.h.  */  #line 4228 "configure"
4228  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4229  #include <stdio.h>  #include <stdio.h>
4230              #include <stdlib.h>              #include <stdlib.h>
4231              #ifdef NEED_NONRANDOM_SBRK              #ifdef NEED_NONRANDOM_SBRK
# Line 7952  if (!syscall(SYS_personality,PER_LINUX32 Line 4246  if (!syscall(SYS_personality,PER_LINUX32
4246  if (!syscall(SYS_personality,PER_LINUX))  if (!syscall(SYS_personality,PER_LINUX))
4247  #endif  #endif
4248       execvp(argv[0],argv);       execvp(argv[0],argv);
4249  #endif  #endif  
4250    b = (void *) malloc(1000);    b = (void *) malloc(1000);
4251    fp = fopen("conftest1","w");    fp = fopen("conftest1","w");
4252    
# Line 7968  if (!syscall(SYS_personality,PER_LINUX)) Line 4262  if (!syscall(SYS_personality,PER_LINUX))
4262    fclose(fp);    fclose(fp);
4263    return 0;    return 0;
4264  }  }
4265  _ACEOF  EOF
4266  rm -f conftest$ac_exeext  if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4267  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
4268    dbegin=`cat conftest1`    dbegin=`cat conftest1`
4269  else  else
4270    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
4271  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
4272  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
4273      dbegin=0
 ( exit $ac_status )  
 dbegin=0  
4274  fi  fi
4275  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
4276  fi  fi
4277  cat >>confdefs.h <<_ACEOF  
4278    cat >> confdefs.h <<EOF
4279  #define DBEGIN $dbegin \  #define DBEGIN $dbegin \
4280  /* where data begins */  /* where data begins */
4281    
4282  _ACEOF  EOF
4283    
4284  echo "$as_me:$LINENO: result: got $dbegin" >&5  echo "$ac_t""got $dbegin" 1>&6
 echo "${ECHO_T}got $dbegin" >&6  
4285  LDFLAGS="$old_LDFLAGS"  LDFLAGS="$old_LDFLAGS"
4286    
4287    echo $ac_n "checking "for heap shared library heap ceiling"""... $ac_c" 1>&6
4288    echo "configure:4289: checking "for heap shared library heap ceiling"" >&5
4289    echo "int main() {return 0;}" >foo.c
4290    $CC foo.c -o foo
4291    heap_ceiling=`ldd foo | tail -n 1 | awk '{print $NF}' | tr -d '()'`
4292    heap_ceiling=`awk 'END {if (h<d) print 0; else print h}' h=$heap_ceiling d=$dbegin configure.in`
4293    echo "$ac_t"""got $heap_ceiling"" 1>&6
4294    cat >> confdefs.h <<EOF
4295    #define SHARED_LIB_HEAP_CEILING $heap_ceiling
4296    EOF
4297    
4298    
4299    # pagewidth
4300    echo $ac_n "checking for pagewidth""... $ac_c" 1>&6
4301    echo "configure:4302: checking for pagewidth" >&5
4302    if test "$cross_compiling" = yes; then
4303      PAGEWIDTH=0
4304    else
4305      cat > conftest.$ac_ext <<EOF
4306    #line 4307 "configure"
4307    #include "confdefs.h"
4308    #include <stdio.h>
4309                #include <unistd.h>
4310    int main() {size_t i=getpagesize(),j;
4311                FILE *fp=fopen("conftest1","w");
4312                for (j=0;i>>=1;j++);
4313                fprintf(fp,"%u",j);
4314                return 0;}
4315    EOF
4316    if { (eval echo configure:4317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4317    then
4318      PAGEWIDTH=`cat conftest1`
4319    else
4320      echo "configure: failed program was:" >&5
4321      cat conftest.$ac_ext >&5
4322      rm -fr conftest*
4323      PAGEWIDTH=0
4324    fi
4325    rm -fr conftest*
4326    fi
4327    
4328    echo "$ac_t""$PAGEWIDTH" 1>&6
4329    cat >> confdefs.h <<EOF
4330    #define PAGEWIDTH $PAGEWIDTH
4331    EOF
4332    
4333    
4334    
4335    echo $ac_n "checking "for maxpage revision"""... $ac_c" 1>&6
4336    echo "configure:4337: checking "for maxpage revision"" >&5
4337    if test "$cross_compiling" = yes; then
4338      tmp_maxpage=0
4339    else
4340      cat > conftest.$ac_ext <<EOF
4341    #line 4342 "configure"
4342    #include "confdefs.h"
4343    #include <stdio.h>
4344    main()
4345    {
4346      char *b;
4347      unsigned long i,j;
4348      FILE *fp = fopen("conftest1","w");
4349      j=((unsigned long)$enable_maxpage <<$PAGEWIDTH) + $dbegin;
4350      j=$heap_ceiling && j>$heap_ceiling ? $heap_ceiling : j;
4351      j-=$dbegin;
4352      for (i=1;i<=j;i<<=1);
4353      if (i>j) i>>=1;
4354      fprintf(fp,"%ld",i>>$PAGEWIDTH);
4355      fclose(fp);
4356      return 0;
4357    }
4358    EOF
4359    if { (eval echo configure:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4360    then
4361      tmp_maxpage=`cat conftest1`
4362    else
4363      echo "configure: failed program was:" >&5
4364      cat conftest.$ac_ext >&5
4365      rm -fr conftest*
4366      tmp_maxpage=0
4367    fi
4368    rm -fr conftest*
4369    fi
4370    
4371    if test "$tmp_maxpage" != "$enable_maxpage" ; then
4372       enable_maxpage=$tmp_maxpage
4373       echo "$ac_t"""got $enable_maxpage"" 1>&6
4374    #   AC_DEFINE_UNQUOTED(MAXPAGE,$enable_maxpage)
4375    else
4376       echo "$ac_t"""$enable_maxpage is OK"" 1>&6
4377    fi
4378    cat >> confdefs.h <<EOF
4379    #define MAXPAGE $enable_maxpage
4380    EOF
4381    
4382    
4383  echo "$as_me:$LINENO: checking \"finding CSTACK_ADDRESS\"" >&5  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6
4384  echo $ECHO_N "checking \"finding CSTACK_ADDRESS\"... $ECHO_C" >&6  echo "configure:4385: checking "finding CSTACK_ADDRESS"" >&5
4385  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4386    cstack_address=0    cstack_address=0
4387  else  else
4388    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4389  /* confdefs.h.  */  #line 4390 "configure"
4390  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4391  #include <stdio.h>  #include <stdio.h>
4392  main()  main()
4393  {  {
# Line 8022  main() Line 4397  main()
4397    fclose(fp);    fclose(fp);
4398    return 0;    return 0;
4399  }  }
4400  _ACEOF  EOF
4401  rm -f conftest$ac_exeext  if { (eval echo configure:4402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4402  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
4403    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
4404  else  else
4405    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
4406  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
4407  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
4408      cstack_address=0
 ( exit $ac_status )  
 cstack_address=0  
4409  fi  fi
4410  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
4411  fi  fi
4412  cat >>confdefs.h <<_ACEOF  
4413    cat >> confdefs.h <<EOF
4414  #define CSTACK_ADDRESS $cstack_address \  #define CSTACK_ADDRESS $cstack_address \
4415    
4416  _ACEOF  EOF
4417    
4418  echo "$as_me:$LINENO: result: got $cstack_address" >&5  echo "$ac_t""got $cstack_address" 1>&6
 echo "${ECHO_T}got $cstack_address" >&6  
4419    
4420  echo "$as_me:$LINENO: checking \"sizeof long long int\"" >&5  echo $ac_n "checking "finding CSTACK_ALIGNMENT"""... $ac_c" 1>&6
4421  echo $ECHO_N "checking \"sizeof long long int\"... $ECHO_C" >&6  echo "configure:4422: checking "finding CSTACK_ALIGNMENT"" >&5
4422  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4423    echo "$as_me:$LINENO: result: no" >&5    cstack_alignment=0
4424  echo "${ECHO_T}no" >&6  else
4425      cat > conftest.$ac_ext <<EOF
4426    #line 4427 "configure"
4427    #include "confdefs.h"
4428    #include <stdio.h>
4429    main()
4430    {
4431      void *b,*c;
4432      FILE *fp = fopen("conftest1","w");
4433      long n;
4434      b=alloca(sizeof(b));
4435      c=alloca(sizeof(c));
4436      n=b>c ? b-c : c-b;
4437      n=n>sizeof(c) ? n : 0;
4438      fprintf(fp,"%ld",n);
4439      fclose(fp);
4440      return 0;
4441    }
4442    EOF
4443    if { (eval echo configure:4444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4444    then
4445      cstack_alignment=`cat conftest1`
4446    else
4447      echo "configure: failed program was:" >&5
4448      cat conftest.$ac_ext >&5
4449      rm -fr conftest*
4450      cstack_alignment=0
4451    fi
4452    rm -fr conftest*
4453    fi
4454    
4455    cat >> confdefs.h <<EOF
4456    #define CSTACK_ALIGNMENT $cstack_alignment \
4457    
4458    EOF
4459    
4460    echo "$ac_t""got $cstack_alignment" 1>&6
4461    
4462    echo $ac_n "checking "finding CSTACK_DIRECTION"""... $ac_c" 1>&6
4463    echo "configure:4464: checking "finding CSTACK_DIRECTION"" >&5
4464    if test "$cross_compiling" = yes; then
4465      cstack_direction=0
4466  else  else
4467    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4468  /* confdefs.h.  */  #line 4469 "configure"
4469  _ACEOF  #include "confdefs.h"
4470  cat confdefs.h >>conftest.$ac_ext  #include <stdio.h>
4471  cat >>conftest.$ac_ext <<_ACEOF  void *
4472  /* end confdefs.h.  */  foo(void) {
4473    int i;
4474    return (void *)&i;
4475    }
4476    
4477    int
4478    main()
4479    {
4480      char *b;
4481      FILE *fp = fopen("conftest1","w");
4482      fprintf(fp,"%d",((long) &b) > ((long) foo()) ? -1 : 1);
4483      fclose(fp);
4484      return 0;
4485    }
4486    EOF
4487    if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4488    then
4489      cstack_direction=`cat conftest1`
4490    else
4491      echo "configure: failed program was:" >&5
4492      cat conftest.$ac_ext >&5
4493      rm -fr conftest*
4494      cstack_direction=0
4495    fi
4496    rm -fr conftest*
4497    fi
4498    
4499    cat >> confdefs.h <<EOF
4500    #define CSTACK_DIRECTION $cstack_direction \
4501    
4502    EOF
4503    
4504    echo "$ac_t""got $cstack_direction" 1>&6
4505    
4506    echo $ac_n "checking "for C stack size floor from heap """... $ac_c" 1>&6
4507    echo "configure:4508: checking "for C stack size floor from heap "" >&5
4508    if test "$cross_compiling" = yes; then
4509      tmp_cssize=0
4510    else
4511      cat > conftest.$ac_ext <<EOF
4512    #line 4513 "configure"
4513    #include "confdefs.h"
4514    #include <stdio.h>
4515    int
4516    main()
4517    {
4518      char *b;
4519      FILE *fp = fopen("conftest1","w");
4520      unsigned long j,k;
4521      
4522      j=((unsigned long)&b) + $cstack_direction * $enable_cssize;
4523      k=($dbegin + ((unsigned long)$enable_maxpage << $PAGEWIDTH));
4524      j=abs(j-((unsigned long)&b))!=$enable_cssize || j<k ? k : j;
4525      j-=((unsigned long)&b);
4526      j*=$cstack_direction;
4527      fprintf(fp,"%lu",j);
4528      fclose(fp);
4529      return 0;
4530    }
4531    EOF
4532    if { (eval echo configure:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4533    then
4534      tmp_cssize=`cat conftest1`
4535    else
4536      echo "configure: failed program was:" >&5
4537      cat conftest.$ac_ext >&5
4538      rm -fr conftest*
4539      tmp_cssize=0
4540    fi
4541    rm -fr conftest*
4542    fi
4543    
4544    if test "$tmp_cssize" != "$enable_cssize" ; then
4545       enable_cssize=$tmp_cssize;
4546       echo "$ac_t"""got $enable_cssize"" 1>&6
4547    #   AC_DEFINE_UNQUOTED(CSSIZE,$enable_cssize)
4548    else
4549       echo "$ac_t"""$enable_cssize is OK"" 1>&6
4550    fi
4551    cat >> confdefs.h <<EOF
4552    #define CSSIZE $enable_cssize
4553    EOF
4554    
4555    
4556    cstack_top=0
4557    cstack_range=0
4558    echo $ac_n "checking "finding cstack top"""... $ac_c" 1>&6
4559    echo "configure:4560: checking "finding cstack top"" >&5
4560    if test "$cross_compiling" = yes; then
4561      cstack_top=0
4562    else
4563      cat > conftest.$ac_ext <<EOF
4564    #line 4565 "configure"
4565    #include "confdefs.h"
4566    #include <stdio.h>
4567    int
4568    main()
4569    {
4570      void *v;
4571      unsigned long i,j,k;
4572      FILE *fp = fopen("conftest1","w");
4573    
4574      for (i=2,k=1;i;k=i,i<<=1);
4575      for (i=j=k;j && i<(unsigned long)&v + ($cstack_direction==1 ? $enable_cssize : 0);j>>=1,i|=j);
4576      fprintf(fp,"0x%lx",i&-0x1000);
4577      fclose(fp);
4578      return 0;
4579    }
4580    EOF
4581    if { (eval echo configure:4582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4582    then
4583      cstack_top=`cat conftest1`
4584    else
4585      echo "configure: failed program was:" >&5
4586      cat conftest.$ac_ext >&5
4587      rm -fr conftest*
4588      cstack_top=0
4589    fi
4590    rm -fr conftest*
4591    fi
4592    
4593    echo "$ac_t""got $cstack_top" 1>&6
4594    if test "$cstack_top" != "0" ; then
4595       echo $ac_n "checking "finding over cstack half range"""... $ac_c" 1>&6
4596    echo "configure:4597: checking "finding over cstack half range"" >&5
4597       if test "$cross_compiling" = yes; then
4598      cstack_range=0
4599    else
4600      cat > conftest.$ac_ext <<EOF
4601    #line 4602 "configure"
4602    #include "confdefs.h"
4603    #include <stdio.h>
4604       int
4605       main()
4606       {
4607         unsigned long j;
4608         FILE *fp = fopen("conftest1","w");
4609    
4610         for (j=1;j && !(j& $cstack_top);j<<=1);
4611         fprintf(fp,"0x%lx",j>>1);
4612         fclose(fp);
4613         return 0;
4614       }
4615    EOF
4616    if { (eval echo configure:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4617    then
4618      cstack_range=`cat conftest1`
4619    else
4620      echo "configure: failed program was:" >&5
4621      cat conftest.$ac_ext >&5
4622      rm -fr conftest*
4623      cstack_range=0
4624    fi
4625    rm -fr conftest*
4626    fi
4627    
4628       echo "$ac_t""got $cstack_range" 1>&6
4629       if test "$cstack_range" != "0" ; then
4630            cat >> confdefs.h <<EOF
4631    #define CSTACK_TOP $cstack_top
4632    EOF
4633    
4634          cat >> confdefs.h <<EOF
4635    #define CSTACK_RANGE $cstack_range
4636    EOF
4637    
4638       fi
4639    fi
4640    
4641    if test "$enable_immfix" = "yes" ; then
4642      if test "$cstack_top" != "0" ; then
4643         if test "$cstack_range" != "0" ; then
4644            cat >> confdefs.h <<EOF
4645    #define IM_FIX_BASE $cstack_top
4646    EOF
4647    
4648            cat >> confdefs.h <<EOF
4649    #define IM_FIX_LIM $cstack_range
4650    EOF
4651    
4652         fi
4653      fi
4654    fi
4655    
4656    
4657    echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6
4658    echo "configure:4659: checking "sizeof long long int"" >&5
4659    if test "$cross_compiling" = yes; then
4660      echo "$ac_t""no" 1>&6
4661    
4662    else
4663      cat > conftest.$ac_ext <<EOF
4664    #line 4665 "configure"
4665    #include "confdefs.h"
4666  #include <stdio.h>  #include <stdio.h>
4667  main()  main()
4668  {  {
# Line 8073  main() Line 4670  main()
4670    return 1;    return 1;
4671  }  }
4672    
4673  _ACEOF  EOF
4674  rm -f conftest$ac_exeext  if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4675  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
4676    (eval $ac_link) 2>&5    cat >> confdefs.h <<\EOF
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   cat >>confdefs.h <<\_ACEOF  
4677  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
4678  _ACEOF  EOF
4679    
4680  echo "$as_me:$LINENO: result: yes" >&5  echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
4681  else  else
4682    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
4683  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
4684  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
4685      echo "$ac_t""no" 1>&6
 ( exit $ac_status )  
 echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
4686  fi  fi
4687  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
4688  fi  fi
4689    
4690    
4691    
4692    
4693  # readline  # readline
4694  # Check whether --enable-readline or --disable-readline was given.  # Check whether --enable-readline or --disable-readline was given.
4695  if test "${enable_readline+set}" = set; then  if test "${enable_readline+set}" = set; then
4696    enableval="$enable_readline"    enableval="$enable_readline"
4697      :
4698  else  else
4699    enable_readline="yes"    enable_readline="yes"
4700  fi;  fi
4701    
4702    
4703  # ansi lisp  # ansi lisp
4704  # Check whether --enable-ansi or --disable-ansi was given.  # Check whether --enable-ansi or --disable-ansi was given.
4705  if test "${enable_ansi+set}" = set; then  if test "${enable_ansi+set}" = set; then
4706    enableval="$enable_ansi"    enableval="$enable_ansi"
4707      :
4708  else  else
4709    enable_ansi="no"    enable_ansi="no"
4710  fi;  fi
4711    
4712    
4713  if test "$enable_ansi" = "yes" ; then  if test "$enable_ansi" = "yes" ; then
4714          SYSTEM=ansi_gcl          SYSTEM=ansi_gcl
4715          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
4716  #define ANSI_COMMON_LISP 1  #define ANSI_COMMON_LISP 1
4717  _ACEOF  EOF
4718    
4719          CLSTANDARD=ANSI          CLSTANDARD=ANSI
4720  else  else
# Line 8140  FLISP="saved_$SYSTEM" Line 4727  FLISP="saved_$SYSTEM"
4727    
4728    
4729    
 # pagewidth  
 echo "$as_me:$LINENO: checking for pagewidth" >&5  
 echo $ECHO_N "checking for pagewidth... $ECHO_C" >&6  
 if test "$cross_compiling" = yes; then  
   PAGEWIDTH=0  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <stdio.h>  
             #include <unistd.h>  
 int main() {size_t i=getpagesize(),j;  
             FILE *fp=fopen("conftest1","w");  
             for (j=0;i>>=1;j++);  
             fprintf(fp,"%u",j);  
             return 0;}  
 _ACEOF  
 rm -f conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   PAGEWIDTH=`cat conftest1`  
 else  
   echo "$as_me: program exited with status $ac_status" >&5  
 echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ( exit $ac_status )  
 PAGEWIDTH=0  
 fi  
 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $PAGEWIDTH" >&5  
 echo "${ECHO_T}$PAGEWIDTH" >&6  
 cat >>confdefs.h <<_ACEOF  
 #define PAGEWIDTH $PAGEWIDTH  
 _ACEOF  
   
   
   
 # Maximum number of pages  
   
   
   
4730  # Check if Posix compliant getcwd exists, if not we'll use getwd.  # Check if Posix compliant getcwd exists, if not we'll use getwd.
   
4731  for ac_func in getcwd  for ac_func in getcwd
4732  do  do
4733  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4734  echo "$as_me:$LINENO: checking for $ac_func" >&5  echo "configure:4735: checking for $ac_func" >&5
4735  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4736  if eval "test \"\${$as_ac_var+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
4737    echo $ECHO_N "(cached) $ECHO_C" >&6  else
4738  else    cat > conftest.$ac_ext <<EOF
4739    cat >conftest.$ac_ext <<_ACEOF  #line 4740 "configure"
4740  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define $ac_func innocuous_$ac_func  
   
4741  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4742      which can conflict with char $ac_func (); below.      which can conflict with char $ac_func(); below.  */
4743      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef $ac_func  
   
4744  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
4745  /* 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
4746     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
4747  char $ac_func ();  char $ac_func();
4748    
4749    int main() {
4750    
4751  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4752      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4753      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4754  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4755  choke me  choke me
4756  #else  #else
4757  char (*f) () = $ac_func;  $ac_func();
 #endif  
 #ifdef __cplusplus  
 }  
4758  #endif  #endif
4759    
4760  int  ; return 0; }
4761  main ()  EOF
4762  {  if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4763  return f != $ac_func;    rm -rf conftest*
4764    ;    eval "ac_cv_func_$ac_func=yes"
4765    return 0;  else
4766  }    echo "configure: failed program was:" >&5
4767  _ACEOF    cat conftest.$ac_ext >&5
4768  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
4769  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_$ac_func=no"
4770    (eval $ac_link) 2>conftest.er1  fi
4771    ac_status=$?  rm -f conftest*
4772    grep -v '^ *+' conftest.er1 >conftest.err  fi
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   eval "$as_ac_var=yes"  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 eval "$as_ac_var=no"  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  
 if test `eval echo '${'$as_ac_var'}'` = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1  
 _ACEOF  
4773    
4774    if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4775      echo "$ac_t""yes" 1>&6
4776        ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4777      cat >> confdefs.h <<EOF
4778    #define $ac_tr_func 1
4779    EOF
4780    
4781    else
4782      echo "$ac_t""no" 1>&6
4783  fi  fi
4784  done  done
4785    
   
4786  for ac_func in getwd  for ac_func in getwd
4787  do  do
4788  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4789  echo "$as_me:$LINENO: checking for $ac_func" >&5  echo "configure:4790: checking for $ac_func" >&5
4790  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4791  if eval "test \"\${$as_ac_var+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
4792    echo $ECHO_N "(cached) $ECHO_C" >&6  else
4793  else    cat > conftest.$ac_ext <<EOF
4794    cat >conftest.$ac_ext <<_ACEOF  #line 4795 "configure"
4795  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define $ac_func innocuous_$ac_func  
   
4796  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4797      which can conflict with char $ac_func (); below.      which can conflict with char $ac_func(); below.  */
4798      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef $ac_func  
   
4799  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
4800  /* 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
4801     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
4802  char $ac_func ();  char $ac_func();
4803    
4804    int main() {
4805    
4806  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4807      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4808      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4809  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4810  choke me  choke me
4811  #else  #else
4812  char (*f) () = $ac_func;  $ac_func();
 #endif  
 #ifdef __cplusplus  
 }  
4813  #endif  #endif
4814    
4815  int  ; return 0; }
4816  main ()  EOF
4817  {  if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4818  return f != $ac_func;    rm -rf conftest*
4819    ;    eval "ac_cv_func_$ac_func=yes"
4820    return 0;  else
4821  }    echo "configure: failed program was:" >&5
4822  _ACEOF    cat conftest.$ac_ext >&5
4823  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
4824  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_$ac_func=no"
4825    (eval $ac_link) 2>conftest.er1  fi
4826    ac_status=$?  rm -f conftest*
4827    grep -v '^ *+' conftest.er1 >conftest.err  fi
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   eval "$as_ac_var=yes"  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 eval "$as_ac_var=no"  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  
 if test `eval echo '${'$as_ac_var'}'` = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1  
 _ACEOF  
4828    
4829    if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4830      echo "$ac_t""yes" 1>&6
4831        ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4832      cat >> confdefs.h <<EOF
4833    #define $ac_tr_func 1
4834    EOF
4835    
4836    else
4837      echo "$ac_t""no" 1>&6
4838  fi  fi
4839  done  done
4840    
4841  echo "$as_me:$LINENO: checking for uname" >&5  echo $ac_n "checking for uname""... $ac_c" 1>&6
4842  echo $ECHO_N "checking for uname... $ECHO_C" >&6  echo "configure:4843: checking for uname" >&5
4843  if test "${ac_cv_func_uname+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
4844    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
4845  else  else
4846    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4847  /* confdefs.h.  */  #line 4848 "configure"
4848  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define uname to an innocuous variant, in case <limits.h> declares uname.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define uname innocuous_uname  
   
4849  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4850      which can conflict with char uname (); below.      which can conflict with char uname(); below.  */
4851      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef uname  
   
4852  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
4853  /* 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
4854     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
4855  char uname ();  char uname();
4856    
4857    int main() {
4858    
4859  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4860      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4861      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4862  #if defined (__stub_uname) || defined (__stub___uname)  #if defined (__stub_uname) || defined (__stub___uname)
4863  choke me  choke me
4864  #else  #else
4865  char (*f) () = uname;  uname();
 #endif  
 #ifdef __cplusplus  
 }  
4866  #endif  #endif
4867    
4868  int  ; return 0; }
4869  main ()  EOF
4870  {  if { (eval echo configure:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4871  return f != uname;    rm -rf conftest*
4872    ;    eval "ac_cv_func_uname=yes"
4873    return 0;  else
4874  }    echo "configure: failed program was:" >&5
4875  _ACEOF    cat conftest.$ac_ext >&5
4876  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
4877  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_uname=no"
4878    (eval $ac_link) 2>conftest.er1  fi
4879    ac_status=$?  rm -f conftest*
4880    grep -v '^ *+' conftest.er1 >conftest.err  fi
4881    rm -f conftest.er1  
4882    cat conftest.err >&5  if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then
4883    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""yes" 1>&6
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_uname=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_uname=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_uname" >&5  
 echo "${ECHO_T}$ac_cv_func_uname" >&6  
 if test $ac_cv_func_uname = yes; then  
4884    :    :
4885  else  else
4886    cat >>confdefs.h <<\_ACEOF    echo "$ac_t""no" 1>&6
4887    cat >> confdefs.h <<\EOF
4888  #define NO_UNAME 1  #define NO_UNAME 1
4889  _ACEOF  EOF
4890    
4891  fi  fi
4892    
4893  echo "$as_me:$LINENO: checking for gettimeofday" >&5  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
4894  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6  echo "configure:4895: checking for gettimeofday" >&5
4895  if test "${ac_cv_func_gettimeofday+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
4896    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
4897  else  else
4898    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4899  /* confdefs.h.  */  #line 4900 "configure"
4900  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define gettimeofday innocuous_gettimeofday  
   
4901  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4902      which can conflict with char gettimeofday (); below.      which can conflict with char gettimeofday(); below.  */
4903      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef gettimeofday  
   
4904  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
4905  /* 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
4906     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
4907  char gettimeofday ();  char gettimeofday();
4908    
4909    int main() {
4910    
4911  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4912      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4913      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4914  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
4915  choke me  choke me
4916  #else  #else
4917  char (*f) () = gettimeofday;  gettimeofday();
 #endif  
 #ifdef __cplusplus  
 }  
4918  #endif  #endif
4919    
4920  int  ; return 0; }
4921  main ()  EOF
4922  {  if { (eval echo configure:4923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4923  return f != gettimeofday;    rm -rf conftest*
4924    ;    eval "ac_cv_func_gettimeofday=yes"
4925    return 0;  else
4926  }    echo "configure: failed program was:" >&5
4927  _ACEOF    cat conftest.$ac_ext >&5
4928  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
4929  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_gettimeofday=no"
4930    (eval $ac_link) 2>conftest.er1  fi
4931    ac_status=$?  rm -f conftest*
4932    grep -v '^ *+' conftest.er1 >conftest.err  fi
4933    rm -f conftest.er1  
4934    cat conftest.err >&5  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
4935    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""yes" 1>&6
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_gettimeofday=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_gettimeofday=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5  
 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6  
 if test $ac_cv_func_gettimeofday = yes; then  
4936    :    :
4937  else  else
4938    cat >>confdefs.h <<\_ACEOF    echo "$ac_t""no" 1>&6
4939    cat >> confdefs.h <<\EOF
4940  #define NO_GETTOD 1  #define NO_GETTOD 1
4941  _ACEOF  EOF
4942    
4943  fi  fi
4944    
4945    
4946    
4947    for ac_hdr in sys/ioctl.h
 for ac_header in sys/ioctl.h  
4948  do  do
4949  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4950  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4951    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:4952: checking for $ac_hdr" >&5
4952  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4953  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
4954    echo $ECHO_N "(cached) $ECHO_C" >&6  else
4955  fi    cat > conftest.$ac_ext <<EOF
4956  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 4957 "configure"
4957  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
4958  else  #include <$ac_hdr>
4959    # Is the header compilable?  EOF
4960  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4961  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:4962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4962  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4963  /* confdefs.h.  */  if test -z "$ac_err"; then
4964  _ACEOF    rm -rf conftest*
4965  cat confdefs.h >>conftest.$ac_ext    eval "ac_cv_header_$ac_safe=yes"
4966  cat >>conftest.$ac_ext <<_ACEOF  else
4967  /* end confdefs.h.  */    echo "$ac_err" >&5
4968  $ac_includes_default    echo "configure: failed program was:" >&5
4969  #include <$ac_header>    cat conftest.$ac_ext >&5
4970  _ACEOF    rm -rf conftest*
4971  rm -f conftest.$ac_objext    eval "ac_cv_header_$ac_safe=no"
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking $ac_header presence" >&5  
 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <$ac_header>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   ac_header_preproc=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   ac_header_preproc=no  
 fi  
 rm -f conftest.err conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   eval "$as_ac_Header=\$ac_header_preproc"  
4972  fi  fi
4973  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  rm -f conftest*
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
4974  fi  fi
4975  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4976    cat >>confdefs.h <<_ACEOF    echo "$ac_t""yes" 1>&6
4977  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4978  _ACEOF    cat >> confdefs.h <<EOF
4979    #define $ac_tr_hdr 1
4980    EOF
4981    
4982    else
4983      echo "$ac_t""no" 1>&6
4984  fi  fi
   
4985  done  done
4986    
4987    
4988  # OpenBSD has elf_abi.h instead of elf.h  # OpenBSD has elf_abi.h instead of elf.h
4989    for ac_hdr in elf.h elf_abi.h
   
 for ac_header in elf.h elf_abi.h  
4990  do  do
4991  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4992  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4993    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:4994: checking for $ac_hdr" >&5
4994  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4995  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
4996    echo $ECHO_N "(cached) $ECHO_C" >&6  else
4997  fi    cat > conftest.$ac_ext <<EOF
4998  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 4999 "configure"
4999  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
5000  else  #include <$ac_hdr>
5001    # Is the header compilable?  EOF
5002  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5003  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:5004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5004  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5005  /* confdefs.h.  */  if test -z "$ac_err"; then
5006  _ACEOF    rm -rf conftest*
5007  cat confdefs.h >>conftest.$ac_ext    eval "ac_cv_header_$ac_safe=yes"
5008  cat >>conftest.$ac_ext <<_ACEOF  else
5009  /* end confdefs.h.  */    echo "$ac_err" >&5
5010  $ac_includes_default    echo "configure: failed program was:" >&5
5011  #include <$ac_header>    cat conftest.$ac_ext >&5
5012  _ACEOF    rm -rf conftest*
5013  rm -f conftest.$ac_objext    eval "ac_cv_header_$ac_safe=no"
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking $ac_header presence" >&5  
 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <$ac_header>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   ac_header_preproc=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   ac_header_preproc=no  
 fi  
 rm -f conftest.err conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   eval "$as_ac_Header=\$ac_header_preproc"  
5014  fi  fi
5015  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  rm -f conftest*
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
5016  fi  fi
5017  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5018    cat >>confdefs.h <<_ACEOF    echo "$ac_t""yes" 1>&6
5019  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5020  _ACEOF    cat >> confdefs.h <<EOF
5021    #define $ac_tr_hdr 1
5022    EOF
5023    
5024    else
5025      echo "$ac_t""no" 1>&6
5026  fi  fi
   
5027  done  done
5028    
5029    
# Line 8915  done Line 5039  done
5039  #          declare it.  #          declare it.
5040  #--------------------------------------------------------------------  #--------------------------------------------------------------------
5041    
5042  echo "$as_me:$LINENO: checking for BSDgettimeofday" >&5  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
5043  echo $ECHO_N "checking for BSDgettimeofday... $ECHO_C" >&6  echo "configure:5044: checking for BSDgettimeofday" >&5
5044  if test "${ac_cv_func_BSDgettimeofday+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
5045    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
5046  else  else
5047    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
5048  /* confdefs.h.  */  #line 5049 "configure"
5049  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define BSDgettimeofday to an innocuous variant, in case <limits.h> declares BSDgettimeofday.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define BSDgettimeofday innocuous_BSDgettimeofday  
   
5050  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5051      which can conflict with char BSDgettimeofday (); below.      which can conflict with char BSDgettimeofday(); below.  */
5052      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef BSDgettimeofday  
   
5053  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
5054  /* 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
5055     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
5056  char BSDgettimeofday ();  char BSDgettimeofday();
5057    
5058    int main() {
5059    
5060  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5061      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5062      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5063  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
5064  choke me  choke me
5065  #else  #else
5066  char (*f) () = BSDgettimeofday;  BSDgettimeofday();
 #endif  
 #ifdef __cplusplus  
 }  
5067  #endif  #endif
5068    
5069  int  ; return 0; }
5070  main ()  EOF
5071  {  if { (eval echo configure:5072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5072  return f != BSDgettimeofday;    rm -rf conftest*
5073    ;    eval "ac_cv_func_BSDgettimeofday=yes"
5074    return 0;  else
5075  }    echo "configure: failed program was:" >&5
5076  _ACEOF    cat conftest.$ac_ext >&5
5077  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
5078  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_BSDgettimeofday=no"
5079    (eval $ac_link) 2>conftest.er1  fi
5080    ac_status=$?  rm -f conftest*
5081    grep -v '^ *+' conftest.er1 >conftest.err  fi
5082    rm -f conftest.er1  
5083    cat conftest.err >&5  if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then
5084    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""yes" 1>&6
5085    (exit $ac_status); } &&    cat >> confdefs.h <<\EOF
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_BSDgettimeofday=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_BSDgettimeofday=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_BSDgettimeofday" >&5  
 echo "${ECHO_T}$ac_cv_func_BSDgettimeofday" >&6  
 if test $ac_cv_func_BSDgettimeofday = yes; then  
   cat >>confdefs.h <<\_ACEOF  
5086  #define HAVE_BSDGETTIMEOFDAY 1  #define HAVE_BSDGETTIMEOFDAY 1
5087  _ACEOF  EOF
5088    
5089  else  else
5090    echo "$as_me:$LINENO: checking for gettimeofday" >&5    echo "$ac_t""no" 1>&6
5091  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
5092  if test "${ac_cv_func_gettimeofday+set}" = set; then  echo "configure:5093: checking for gettimeofday" >&5
5093    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
5094  else    echo $ac_n "(cached) $ac_c" 1>&6
5095    cat >conftest.$ac_ext <<_ACEOF  else
5096  /* confdefs.h.  */    cat > conftest.$ac_ext <<EOF
5097  _ACEOF  #line 5098 "configure"
5098  cat confdefs.h >>conftest.$ac_ext  #include "confdefs.h"
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define gettimeofday innocuous_gettimeofday  
   
5099  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5100      which can conflict with char gettimeofday (); below.      which can conflict with char gettimeofday(); below.  */
5101      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef gettimeofday  
   
5102  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
5103  /* 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
5104     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
5105  char gettimeofday ();  char gettimeofday();
5106    
5107    int main() {
5108    
5109  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5110      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5111      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5112  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
5113  choke me  choke me
5114  #else  #else
5115  char (*f) () = gettimeofday;  gettimeofday();
 #endif  
 #ifdef __cplusplus  
 }  
5116  #endif  #endif
5117    
5118  int  ; return 0; }
5119  main ()  EOF
5120  {  if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5121  return f != gettimeofday;    rm -rf conftest*
5122    ;    eval "ac_cv_func_gettimeofday=yes"
5123    return 0;  else
5124  }    echo "configure: failed program was:" >&5
5125  _ACEOF    cat conftest.$ac_ext >&5
5126  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
5127  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_gettimeofday=no"
5128    (eval $ac_link) 2>conftest.er1  fi
5129    ac_status=$?  rm -f conftest*
5130    grep -v '^ *+' conftest.er1 >conftest.err  fi
5131    rm -f conftest.er1  
5132    cat conftest.err >&5  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
5133    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""yes" 1>&6
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_gettimeofday=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_gettimeofday=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5  
 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6  
 if test $ac_cv_func_gettimeofday = yes; then  
5134    :    :
5135  else  else
5136    cat >>confdefs.h <<\_ACEOF    echo "$ac_t""no" 1>&6
5137    cat >> confdefs.h <<\EOF
5138  #define NO_GETTOD 1  #define NO_GETTOD 1
5139  _ACEOF  EOF
5140    
5141  fi  fi
5142    
5143  fi  fi
5144    
5145    
5146  echo "$as_me:$LINENO: checking for gettimeofday declaration" >&5  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
5147  echo $ECHO_N "checking for gettimeofday declaration... $ECHO_C" >&6  echo "configure:5148: checking for gettimeofday declaration" >&5
5148    
5149  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5150  /* confdefs.h.  */  #line 5151 "configure"
5151  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5152  #include <sys/time.h>  #include <sys/time.h>
5153    EOF
 _ACEOF  
5154  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5155    $EGREP "gettimeofday" >/dev/null 2>&1; then    egrep "gettimeofday" >/dev/null 2>&1; then
5156    echo "$as_me:$LINENO: result: present" >&5    rm -rf conftest*
5157  echo "${ECHO_T}present" >&6    echo "$ac_t""present" 1>&6
5158  else  else
5159    echo "$as_me:$LINENO: result: missing" >&5    rm -rf conftest*
5160  echo "${ECHO_T}missing" >&6    echo "$ac_t""missing" 1>&6
5161                   cat >>confdefs.h <<\_ACEOF                   cat >> confdefs.h <<\EOF
5162  #define GETTOD_NOT_DECLARED 1  #define GETTOD_NOT_DECLARED 1
5163  _ACEOF  EOF
5164    
5165  fi  fi
5166  rm -f conftest*  rm -f conftest*
5167    
5168    
5169    
5170  echo "$as_me:$LINENO: checking for sin in -lm" >&5  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5171  echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6  echo "configure:5172: checking for sin in -lm" >&5
5172  if test "${ac_cv_lib_m_sin+set}" = set; then  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5173    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5174      echo $ac_n "(cached) $ac_c" 1>&6
5175  else  else
5176    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5177  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
5178  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5179  /* confdefs.h.  */  #line 5180 "configure"
5180  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
5181  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
5182  /* 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
5183     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
5184  char sin ();  char sin();
5185  int  
5186  main ()  int main() {
5187  {  sin()
5188  sin ();  ; return 0; }
5189    ;  EOF
5190    return 0;  if { (eval echo configure:5191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5191  }    rm -rf conftest*
5192  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
5193  rm -f conftest.$ac_objext conftest$ac_exeext  else
5194  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
5195    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
5196    ac_status=$?    rm -rf conftest*
5197    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
5198    rm -f conftest.er1  fi
5199    cat conftest.err >&5  rm -f conftest*
5200    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
5201    (exit $ac_status); } &&  
5202           { ac_try='test -z "$ac_c_werror_flag"  fi
5203                           || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5204    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_m_sin=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_m_sin=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5  
 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6  
 if test $ac_cv_lib_m_sin = yes; then  
5205    LIBS="${LIBS} -lm"    LIBS="${LIBS} -lm"
5206  else  else
5207    true    echo "$ac_t""no" 1>&6
5208    true
5209  fi  fi
5210    
5211  echo "$as_me:$LINENO: checking for main in -lmingwex" >&5  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6
5212  echo $ECHO_N "checking for main in -lmingwex... $ECHO_C" >&6  echo "configure:5213: checking for main in -lmingwex" >&5
5213  if test "${ac_cv_lib_mingwex_main+set}" = set; then  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`
5214    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5215      echo $ac_n "(cached) $ac_c" 1>&6
5216  else  else
5217    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5218  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
5219  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5220  /* confdefs.h.  */  #line 5221 "configure"
5221  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5222    
5223    int main() {
5224    main()
5225    ; return 0; }
5226    EOF
5227    if { (eval echo configure:5228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5228      rm -rf conftest*
5229      eval "ac_cv_lib_$ac_lib_var=yes"
5230    else
5231      echo "configure: failed program was:" >&5
5232      cat conftest.$ac_ext >&5
5233      rm -rf conftest*
5234      eval "ac_cv_lib_$ac_lib_var=no"
5235    fi
5236    rm -f conftest*
5237    LIBS="$ac_save_LIBS"
5238    
5239  int  fi
5240  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5241  {    echo "$ac_t""yes" 1>&6
 main ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_mingwex_main=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_mingwex_main=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_main" >&5  
 echo "${ECHO_T}$ac_cv_lib_mingwex_main" >&6  
 if test $ac_cv_lib_mingwex_main = yes; then  
5242    LIBS="${LIBS} -lmingwex"    LIBS="${LIBS} -lmingwex"
5243  else  else
5244    true    echo "$ac_t""no" 1>&6
5245    true
5246  fi  fi
5247    
5248    
5249  EXTRA_LOBJS=  EXTRA_LOBJS=
5250  if test "$try_japi" = "yes" ; then  if test "$try_japi" = "yes" ; then
5251       for ac_hdr in japi.h
 for ac_header in japi.h  
5252  do  do
5253  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5254  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5255    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:5256: checking for $ac_hdr" >&5
5256  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5257  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
5258    echo $ECHO_N "(cached) $ECHO_C" >&6  else
5259  fi    cat > conftest.$ac_ext <<EOF
5260  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 5261 "configure"
5261  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
5262  else  #include <$ac_hdr>
5263    # Is the header compilable?  EOF
5264  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5265  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:5266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5266  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5267  /* confdefs.h.  */  if test -z "$ac_err"; then
5268  _ACEOF    rm -rf conftest*
5269  cat confdefs.h >>conftest.$ac_ext    eval "ac_cv_header_$ac_safe=yes"
5270  cat >>conftest.$ac_ext <<_ACEOF  else
5271  /* end confdefs.h.  */    echo "$ac_err" >&5
5272  $ac_includes_default    echo "configure: failed program was:" >&5
5273  #include <$ac_header>    cat conftest.$ac_ext >&5
5274  _ACEOF    rm -rf conftest*
5275  rm -f conftest.$ac_objext    eval "ac_cv_header_$ac_safe=no"
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking $ac_header presence" >&5  
 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <$ac_header>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
5276  fi  fi
5277  if test -z "$ac_cpp_err"; then  rm -f conftest*
5278    ac_header_preproc=yes  fi
5279  else  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5280    echo "$as_me: failed program was:" >&5    echo "$ac_t""yes" 1>&6
5281  sed 's/^/| /' conftest.$ac_ext >&5      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5282      cat >> confdefs.h <<EOF
5283    ac_header_preproc=no  #define $ac_tr_hdr 1
5284  fi  EOF
5285  rm -f conftest.err conftest.$ac_ext   cat >> confdefs.h <<\EOF
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   eval "$as_ac_Header=\$ac_header_preproc"  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
 fi  
 if test `eval echo '${'$as_ac_Header'}'` = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  
 _ACEOF  
  cat >>confdefs.h <<\_ACEOF  
5286  #define HAVE_JAPI_H 1  #define HAVE_JAPI_H 1
5287  _ACEOF  EOF
5288    
5289                                   EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"                                   EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"
5290                                   LIBS="${LIBS} -ljapi -lwsock32"                                   LIBS="${LIBS} -ljapi -lwsock32"
5291    else
5292      echo "$ac_t""no" 1>&6
5293  fi  fi
   
5294  done  done
5295    
5296  fi  fi
5297  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
5298   if test "$try_xdr" = "yes" ; then   if test "$try_xdr" = "yes" ; then
5299       for ac_hdr in rpc/rpc.h
 for ac_header in rpc/rpc.h  
5300  do  do
5301  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5302  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5303    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:5304: checking for $ac_hdr" >&5
5304  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5305  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
5306    echo $ECHO_N "(cached) $ECHO_C" >&6  else
5307  fi    cat > conftest.$ac_ext <<EOF
5308  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 5309 "configure"
5309  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
5310  else  #include <$ac_hdr>
5311    # Is the header compilable?  EOF
5312  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5313  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:5314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5314  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5315  /* confdefs.h.  */  if test -z "$ac_err"; then
5316  _ACEOF    rm -rf conftest*
5317  cat confdefs.h >>conftest.$ac_ext    eval "ac_cv_header_$ac_safe=yes"
5318  cat >>conftest.$ac_ext <<_ACEOF  else
5319  /* end confdefs.h.  */    echo "$ac_err" >&5
5320  $ac_includes_default    echo "configure: failed program was:" >&5
5321  #include <$ac_header>    cat conftest.$ac_ext >&5
5322  _ACEOF    rm -rf conftest*
5323  rm -f conftest.$ac_objext    eval "ac_cv_header_$ac_safe=no"
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking $ac_header presence" >&5  
 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <$ac_header>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
5324  fi  fi
5325  if test -z "$ac_cpp_err"; then  rm -f conftest*
5326    ac_header_preproc=yes  fi
5327  else  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5328    echo "$as_me: failed program was:" >&5    echo "$ac_t""yes" 1>&6
5329  sed 's/^/| /' conftest.$ac_ext >&5      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5330      cat >> confdefs.h <<EOF
5331    ac_header_preproc=no  #define $ac_tr_hdr 1
5332  fi  EOF
5333  rm -f conftest.err conftest.$ac_ext   cat >> confdefs.h <<\EOF
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   eval "$as_ac_Header=\$ac_header_preproc"  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
 fi  
 if test `eval echo '${'$as_ac_Header'}'` = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  
 _ACEOF  
  cat >>confdefs.h <<\_ACEOF  
5334  #define HAVE_XDR 1  #define HAVE_XDR 1
5335  _ACEOF  EOF
5336    
5337                                   LIBS="${LIBS} -loncrpc"                                   LIBS="${LIBS} -loncrpc"
5338    else
5339      echo "$ac_t""no" 1>&6
5340  fi  fi
   
5341  done  done
5342    
5343   fi   fi
5344  else  else
5345   if test "$try_xdr" = "yes" ; then   if test "$try_xdr" = "yes" ; then
5346       for ac_hdr in rpc/rpc.h
 for ac_header in rpc/rpc.h  
5347  do  do
5348  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5349  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5350    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:5351: checking for $ac_hdr" >&5
5351  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5352  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
5353    echo $ECHO_N "(cached) $ECHO_C" >&6  else
5354  fi    cat > conftest.$ac_ext <<EOF
5355  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 5356 "configure"
5356  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
5357  else  #include <$ac_hdr>
5358    # Is the header compilable?  EOF
5359  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5360  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:5361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5361  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5362  /* confdefs.h.  */  if test -z "$ac_err"; then
5363  _ACEOF    rm -rf conftest*
5364  cat confdefs.h >>conftest.$ac_ext    eval "ac_cv_header_$ac_safe=yes"
5365  cat >>conftest.$ac_ext <<_ACEOF  else
5366  /* end confdefs.h.  */    echo "$ac_err" >&5
5367  $ac_includes_default    echo "configure: failed program was:" >&5
5368  #include <$ac_header>    cat conftest.$ac_ext >&5
5369  _ACEOF    rm -rf conftest*
5370  rm -f conftest.$ac_objext    eval "ac_cv_header_$ac_safe=no"
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking $ac_header presence" >&5  
 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <$ac_header>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
5371  fi  fi
5372  if test -z "$ac_cpp_err"; then  rm -f conftest*
5373    ac_header_preproc=yes  fi
5374  else  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5375    echo "$as_me: failed program was:" >&5    echo "$ac_t""yes" 1>&6
5376  sed 's/^/| /' conftest.$ac_ext >&5      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5377      cat >> confdefs.h <<EOF
5378    ac_header_preproc=no  #define $ac_tr_hdr 1
5379  fi  EOF
5380  rm -f conftest.err conftest.$ac_ext   cat >> confdefs.h <<\EOF
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   eval "$as_ac_Header=\$ac_header_preproc"  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
 fi  
 if test `eval echo '${'$as_ac_Header'}'` = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  
 _ACEOF  
  cat >>confdefs.h <<\_ACEOF  
5381  #define HAVE_XDR 1  #define HAVE_XDR 1
5382  _ACEOF  EOF
5383    
5384                                   LIBS="${LIBS} -lrpc"                                   LIBS="${LIBS} -lrpc"
5385    else
5386      echo "$ac_t""no" 1>&6
5387  fi  fi
   
5388  done  done
5389    
5390   fi   fi
5391  fi  fi
5392    
5393  # Should really find a way to check for prototypes, but this  # Should really find a way to check for prototypes, but this
5394  # basically works for now.  CM  # basically works for now.  CM
5395  #  #
5396    for ac_hdr in math.h
 for ac_header in math.h  
5397  do  do
5398  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5399  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5400    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:5401: checking for $ac_hdr" >&5
5401  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5402  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
5403    echo $ECHO_N "(cached) $ECHO_C" >&6  else
5404  fi    cat > conftest.$ac_ext <<EOF
5405  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 5406 "configure"
5406  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
5407  else  #include <$ac_hdr>
5408    # Is the header compilable?  EOF
5409  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5410  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:5411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5411  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5412  /* confdefs.h.  */  if test -z "$ac_err"; then
5413  _ACEOF    rm -rf conftest*
5414  cat confdefs.h >>conftest.$ac_ext    eval "ac_cv_header_$ac_safe=yes"
5415  cat >>conftest.$ac_ext <<_ACEOF  else
5416  /* end confdefs.h.  */    echo "$ac_err" >&5
5417  $ac_includes_default    echo "configure: failed program was:" >&5
5418  #include <$ac_header>    cat conftest.$ac_ext >&5
5419  _ACEOF    rm -rf conftest*
5420  rm -f conftest.$ac_objext    eval "ac_cv_header_$ac_safe=no"
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking $ac_header presence" >&5  
 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <$ac_header>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
5421  fi  fi
5422  if test -z "$ac_cpp_err"; then  rm -f conftest*
5423    ac_header_preproc=yes  fi
5424  else  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5425    echo "$as_me: failed program was:" >&5    echo "$ac_t""yes" 1>&6
5426  sed 's/^/| /' conftest.$ac_ext >&5      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5427      cat >> confdefs.h <<EOF
5428    ac_header_preproc=no  #define $ac_tr_hdr 1
5429  fi  EOF
5430  rm -f conftest.err conftest.$ac_ext   cat >> confdefs.h <<\EOF
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   eval "$as_ac_Header=\$ac_header_preproc"  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
 fi  
 if test `eval echo '${'$as_ac_Header'}'` = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  
 _ACEOF  
  cat >>confdefs.h <<\_ACEOF  
5431  #define HAVE_MATH_H 1  #define HAVE_MATH_H 1
5432  _ACEOF  EOF
5433    
5434    else
5435      echo "$ac_t""no" 1>&6
5436  fi  fi
   
5437  done  done
5438    
5439    
5440  #  #
5441  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM
5442  #  #
5443    for ac_hdr in values.h
 for ac_header in values.h  
5444  do  do
5445  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5446  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5447    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:5448: checking for $ac_hdr" >&5
5448  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5449  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
5450    echo $ECHO_N "(cached) $ECHO_C" >&6  else
5451  fi    cat > conftest.$ac_ext <<EOF
5452  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 5453 "configure"
5453  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
5454  else  #include <$ac_hdr>
5455    # Is the header compilable?  EOF
5456  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5457  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:5458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5458  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5459  /* confdefs.h.  */  if test -z "$ac_err"; then
5460  _ACEOF    rm -rf conftest*
5461  cat confdefs.h >>conftest.$ac_ext    eval "ac_cv_header_$ac_safe=yes"
5462  cat >>conftest.$ac_ext <<_ACEOF  else
5463  /* end confdefs.h.  */    echo "$ac_err" >&5
5464  $ac_includes_default    echo "configure: failed program was:" >&5
5465  #include <$ac_header>    cat conftest.$ac_ext >&5
5466  _ACEOF    rm -rf conftest*
5467  rm -f conftest.$ac_objext    eval "ac_cv_header_$ac_safe=no"
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking $ac_header presence" >&5  
 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <$ac_header>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
5468  fi  fi
5469  if test -z "$ac_cpp_err"; then  rm -f conftest*
5470    ac_header_preproc=yes  fi
5471  else  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5472    echo "$as_me: failed program was:" >&5    echo "$ac_t""yes" 1>&6
5473  sed 's/^/| /' conftest.$ac_ext >&5      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5474      cat >> confdefs.h <<EOF
5475    ac_header_preproc=no  #define $ac_tr_hdr 1
5476  fi  EOF
5477  rm -f conftest.err conftest.$ac_ext   cat >> confdefs.h <<\EOF
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   eval "$as_ac_Header=\$ac_header_preproc"  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
 fi  
 if test `eval echo '${'$as_ac_Header'}'` = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  
 _ACEOF  
  cat >>confdefs.h <<\_ACEOF  
5478  #define HAVE_VALUES_H 1  #define HAVE_VALUES_H 1
5479  _ACEOF  EOF
5480    
5481    else
5482      echo "$ac_t""no" 1>&6
5483  fi  fi
   
5484  done  done
5485    
5486    
5487  #  #
5488  # 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
5489  #  #
5490    for ac_hdr in float.h
 for ac_header in float.h  
5491  do  do
5492  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5493  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5494    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:5495: checking for $ac_hdr" >&5
5495  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5496  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
5497    echo $ECHO_N "(cached) $ECHO_C" >&6  else
5498  fi    cat > conftest.$ac_ext <<EOF
5499  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 5500 "configure"
5500  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
5501  else  #include <$ac_hdr>
5502    # Is the header compilable?  EOF
5503  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5504  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:5505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5505  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5506  /* confdefs.h.  */  if test -z "$ac_err"; then
5507  _ACEOF    rm -rf conftest*
5508  cat confdefs.h >>conftest.$ac_ext    eval "ac_cv_header_$ac_safe=yes"
5509  cat >>conftest.$ac_ext <<_ACEOF  else
5510  /* end confdefs.h.  */    echo "$ac_err" >&5
5511  $ac_includes_default    echo "configure: failed program was:" >&5
5512  #include <$ac_header>    cat conftest.$ac_ext >&5
5513  _ACEOF    rm -rf conftest*
5514  rm -f conftest.$ac_objext    eval "ac_cv_header_$ac_safe=no"
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking $ac_header presence" >&5  
 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <$ac_header>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
5515  fi  fi
5516  if test -z "$ac_cpp_err"; then  rm -f conftest*
5517    ac_header_preproc=yes  fi
5518  else  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5519    echo "$as_me: failed program was:" >&5    echo "$ac_t""yes" 1>&6
5520  sed 's/^/| /' conftest.$ac_ext >&5      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5521      cat >> confdefs.h <<EOF
5522    ac_header_preproc=no  #define $ac_tr_hdr 1
5523  fi  EOF
5524  rm -f conftest.err conftest.$ac_ext   cat >> confdefs.h <<\EOF
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   eval "$as_ac_Header=\$ac_header_preproc"  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
 fi  
 if test `eval echo '${'$as_ac_Header'}'` = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  
 _ACEOF  
  cat >>confdefs.h <<\_ACEOF  
5525  #define HAVE_FLOAT_H 1  #define HAVE_FLOAT_H 1
5526  _ACEOF  EOF
5527    
5528    else
5529      echo "$ac_t""no" 1>&6
5530  fi  fi
   
5531  done  done
5532    
5533    
# Line 10226  done Line 5536  done
5536  # a more comprehensive later, i.e. checking that the fpclass  # a more comprehensive later, i.e. checking that the fpclass
5537  # test makes sense.  CM  # test makes sense.  CM
5538  #  #
5539  echo "$as_me:$LINENO: checking for isnormal" >&5  echo $ac_n "checking for isnormal""... $ac_c" 1>&6
5540  echo $ECHO_N "checking for isnormal... $ECHO_C" >&6  echo "configure:5541: checking for isnormal" >&5
5541  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5542    HAVE_ISNORMAL=0 echo "$as_me:$LINENO: result: no" >&5    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
5543  else  else
5544    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
5545  /* confdefs.h.  */  #line 5546 "configure"
5546  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5547  #define _GNU_SOURCE  #define _GNU_SOURCE
5548              #include <math.h>              #include <math.h>
5549              int main() {              int main() {
5550                  float f;                  float f;
5551                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
5552                  }                  }
5553  _ACEOF  EOF
5554  rm -f conftest$ac_exeext  if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5555  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
5556    (eval $ac_link) 2>&5    cat >> confdefs.h <<\EOF
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   cat >>confdefs.h <<\_ACEOF  
5557  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
5558  _ACEOF  EOF
5559   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
5560  echo "${ECHO_T}yes" >&6  else
5561  else    echo "configure: failed program was:" >&5
5562    echo "$as_me: program exited with status $ac_status" >&5    cat conftest.$ac_ext >&5
5563  echo "$as_me: failed program was:" >&5    rm -fr conftest*
5564  sed 's/^/| /' conftest.$ac_ext >&5    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6
5565    echo "configure:5566: checking for fpclass in ieeefp.h" >&5
 ( exit $ac_status )  
 echo "$as_me:$LINENO: checking for fpclass in ieeefp.h" >&5  
 echo $ECHO_N "checking for fpclass in ieeefp.h... $ECHO_C" >&6  
5566                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
5567    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
5568  else  else
5569    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
5570  /* confdefs.h.  */  #line 5571 "configure"
5571  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5572  #include <ieeefp.h>  #include <ieeefp.h>
5573                              int main() {                              int main() {
5574                                  float f;                                  float f;
5575                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
5576                                  }                                  }
5577  _ACEOF  EOF
5578  rm -f conftest$ac_exeext  if { (eval echo configure:5579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5579  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
5580    (eval $ac_link) 2>&5    cat >> confdefs.h <<\EOF
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   cat >>confdefs.h <<\_ACEOF  
5581  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
5582  _ACEOF  EOF
5583   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
5584  else  else
5585    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
5586  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
5587  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
5588      HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6
 ( exit $ac_status )  
 HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
5589  fi  fi
5590  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
5591  fi  fi
5592    
5593            
5594  fi  fi
5595  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
5596  fi  fi
5597    
5598  echo "$as_me:$LINENO: checking for isfinite" >&5  
5599  echo $ECHO_N "checking for isfinite... $ECHO_C" >&6  echo $ac_n "checking for isfinite""... $ac_c" 1>&6
5600    echo "configure:5601: checking for isfinite" >&5
5601  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5602    HAVE_ISFINITE=0 echo "$as_me:$LINENO: result: no" >&5    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
5603  else  else
5604    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
5605  /* confdefs.h.  */  #line 5606 "configure"
5606  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5607  #define _GNU_SOURCE  #define _GNU_SOURCE
5608              #include <math.h>              #include <math.h>
5609              int main() {              int main() {
5610                  float f;                  float f;
5611                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
5612                  }                  }
5613  _ACEOF  EOF
5614  rm -f conftest$ac_exeext  if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5615  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
5616    (eval $ac_link) 2>&5    cat >> confdefs.h <<\EOF
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   cat >>confdefs.h <<\_ACEOF  
5617  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
5618  _ACEOF  EOF
5619   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
5620  echo "${ECHO_T}yes" >&6  else
5621  else    echo "configure: failed program was:" >&5
5622    echo "$as_me: program exited with status $ac_status" >&5    cat conftest.$ac_ext >&5
5623  echo "$as_me: failed program was:" >&5    rm -fr conftest*
5624  sed 's/^/| /' conftest.$ac_ext >&5    echo $ac_n "checking for finite()""... $ac_c" 1>&6
5625    echo "configure:5626: checking for finite()" >&5
 ( exit $ac_status )  
 echo "$as_me:$LINENO: checking for finite()" >&5  
 echo $ECHO_N "checking for finite()... $ECHO_C" >&6  
5626                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
5627    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5    HAVE_FINITE=0 echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
5628  else  else
5629    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
5630  /* confdefs.h.  */  #line 5631 "configure"
5631  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5632  #include <math.h>  #include <math.h>
5633                              #include <ieeefp.h>                              #include <ieeefp.h>
5634                              int main() {                              int main() {
5635                                  float f;                                  float f;
5636                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
5637                                  }                                  }
5638  _ACEOF  EOF
5639  rm -f conftest$ac_exeext  if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5640  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
5641    (eval $ac_link) 2>&5    cat >> confdefs.h <<\EOF
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   cat >>confdefs.h <<\_ACEOF  
5642  #define HAVE_FINITE 1  #define HAVE_FINITE 1
5643  _ACEOF  EOF
5644   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
5645  else  else
5646    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
5647  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
5648  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
5649      HAVE_FINITE=0 echo "$ac_t""no" 1>&6
 ( exit $ac_status )  
 HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
5650  fi  fi
5651  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
5652  fi  fi
5653    
5654            
5655  fi  fi
5656  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
5657  fi  fi
5658    
5659    
5660    
5661    
5662  #--------------------------------------------------------------------  #--------------------------------------------------------------------
5663  #       Check for the existence of the -lsocket and -lnsl libraries.  #       Check for the existence of the -lsocket and -lnsl libraries.
5664  #       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 10428  fi Line 5676  fi
5676  #          To get around this problem, check for both libraries together  #          To get around this problem, check for both libraries together
5677  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
5678  #--------------------------------------------------------------------  #--------------------------------------------------------------------
5679  echo "$as_me:$LINENO: checking for sockets" >&5  echo $ac_n "checking for sockets""... $ac_c" 1>&6
5680  echo $ECHO_N "checking for sockets... $ECHO_C" >&6  echo "configure:5681: checking for sockets" >&5
5681  tcl_checkBoth=0  tcl_checkBoth=0
5682  echo "$as_me:$LINENO: checking for connect" >&5  echo $ac_n "checking for connect""... $ac_c" 1>&6
5683  echo $ECHO_N "checking for connect... $ECHO_C" >&6  echo "configure:5684: checking for connect" >&5
5684  if test "${ac_cv_func_connect+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5685    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
5686  else  else
5687    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
5688  /* confdefs.h.  */  #line 5689 "configure"
5689  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define connect to an innocuous variant, in case <limits.h> declares connect.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define connect innocuous_connect  
   
5690  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5691      which can conflict with char connect (); below.      which can conflict with char connect(); below.  */
5692      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef connect  
   
5693  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
5694  /* 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
5695     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
5696  char connect ();  char connect();
5697    
5698    int main() {
5699    
5700  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5701      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5702      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5703  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
5704  choke me  choke me
5705  #else  #else
5706  char (*f) () = connect;  connect();
 #endif  
 #ifdef __cplusplus  
 }  
5707  #endif  #endif
5708    
5709  int  ; return 0; }
5710  main ()  EOF
5711  {  if { (eval echo configure:5712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5712  return f != connect;    rm -rf conftest*
5713    ;    eval "ac_cv_func_connect=yes"
5714    return 0;  else
5715  }    echo "configure: failed program was:" >&5
5716  _ACEOF    cat conftest.$ac_ext >&5
5717  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
5718  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_connect=no"
5719    (eval $ac_link) 2>conftest.er1  fi
5720    ac_status=$?  rm -f conftest*
5721    grep -v '^ *+' conftest.er1 >conftest.err  fi
5722    rm -f conftest.er1  
5723    cat conftest.err >&5  if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5724    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""yes" 1>&6
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_connect=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_connect=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5  
 echo "${ECHO_T}$ac_cv_func_connect" >&6  
 if test $ac_cv_func_connect = yes; then  
5725    tcl_checkSocket=0    tcl_checkSocket=0
5726  else  else
5727    tcl_checkSocket=1    echo "$ac_t""no" 1>&6
5728    tcl_checkSocket=1
5729  fi  fi
5730    
5731  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
5732      echo "$as_me:$LINENO: checking for main in -lsocket" >&5      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5733  echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6  echo "configure:5734: checking for main in -lsocket" >&5
5734  if test "${ac_cv_lib_socket_main+set}" = set; then  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5735    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5736      echo $ac_n "(cached) $ac_c" 1>&6
5737  else  else
5738    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5739  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
5740  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5741  /* confdefs.h.  */  #line 5742 "configure"
5742  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5743    
5744    int main() {
5745    main()
5746    ; return 0; }
5747    EOF
5748    if { (eval echo configure:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5749      rm -rf conftest*
5750      eval "ac_cv_lib_$ac_lib_var=yes"
5751    else
5752      echo "configure: failed program was:" >&5
5753      cat conftest.$ac_ext >&5
5754      rm -rf conftest*
5755      eval "ac_cv_lib_$ac_lib_var=no"
5756    fi
5757    rm -f conftest*
5758    LIBS="$ac_save_LIBS"
5759    
5760  int  fi
5761  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5762  {    echo "$ac_t""yes" 1>&6
 main ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_socket_main=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_socket_main=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5  
 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6  
 if test $ac_cv_lib_socket_main = yes; then  
5763    TLIBS="$TLIBS -lsocket"    TLIBS="$TLIBS -lsocket"
5764  else  else
5765    tcl_checkBoth=1    echo "$ac_t""no" 1>&6
5766    tcl_checkBoth=1
5767  fi  fi
5768    
5769  fi  fi
# Line 10598  fi Line 5772  fi
5772  if test "$tcl_checkBoth" = 1; then  if test "$tcl_checkBoth" = 1; then
5773      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
5774      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
5775      echo "$as_me:$LINENO: checking for accept" >&5      echo $ac_n "checking for accept""... $ac_c" 1>&6
5776  echo $ECHO_N "checking for accept... $ECHO_C" >&6  echo "configure:5777: checking for accept" >&5
5777  if test "${ac_cv_func_accept+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5778    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
5779  else  else
5780    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
5781  /* confdefs.h.  */  #line 5782 "configure"
5782  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define accept to an innocuous variant, in case <limits.h> declares accept.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define accept innocuous_accept  
   
5783  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5784      which can conflict with char accept (); below.      which can conflict with char accept(); below.  */
5785      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef accept  
   
5786  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
5787  /* 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
5788     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
5789  char accept ();  char accept();
5790    
5791    int main() {
5792    
5793  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5794      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5795      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5796  #if defined (__stub_accept) || defined (__stub___accept)  #if defined (__stub_accept) || defined (__stub___accept)
5797  choke me  choke me
5798  #else  #else
5799  char (*f) () = accept;  accept();
 #endif  
 #ifdef __cplusplus  
 }  
5800  #endif  #endif
5801    
5802  int  ; return 0; }
5803  main ()  EOF
5804  {  if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5805  return f != accept;    rm -rf conftest*
5806    ;    eval "ac_cv_func_accept=yes"
5807    return 0;  else
5808  }    echo "configure: failed program was:" >&5
5809  _ACEOF    cat conftest.$ac_ext >&5
5810  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
5811  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_accept=no"
5812    (eval $ac_link) 2>conftest.er1  fi
5813    ac_status=$?  rm -f conftest*
5814    grep -v '^ *+' conftest.er1 >conftest.err  fi
5815    rm -f conftest.er1  
5816    cat conftest.err >&5  if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5817    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""yes" 1>&6
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_accept=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_accept=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5  
 echo "${ECHO_T}$ac_cv_func_accept" >&6  
 if test $ac_cv_func_accept = yes; then  
5818    tcl_checkNsl=0    tcl_checkNsl=0
5819  else  else
5820    TLIBS=$tk_oldLibs    echo "$ac_t""no" 1>&6
5821    TLIBS=$tk_oldLibs
5822  fi  fi
5823    
5824  fi  fi
5825  echo "$as_me:$LINENO: checking for gethostbyname" >&5  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5826  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6  echo "configure:5827: checking for gethostbyname" >&5
5827  if test "${ac_cv_func_gethostbyname+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5828    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
5829  else  else
5830    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
5831  /* confdefs.h.  */  #line 5832 "configure"
5832  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define gethostbyname innocuous_gethostbyname  
   
5833  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5834      which can conflict with char gethostbyname (); below.      which can conflict with char gethostbyname(); below.  */
5835      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef gethostbyname  
   
5836  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
5837  /* 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
5838     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
5839  char gethostbyname ();  char gethostbyname();
5840    
5841    int main() {
5842    
5843  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5844      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5845      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5846  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5847  choke me  choke me
5848  #else  #else
5849  char (*f) () = gethostbyname;  gethostbyname();
 #endif  
 #ifdef __cplusplus  
 }  
5850  #endif  #endif
5851    
5852  int  ; return 0; }
5853  main ()  EOF
5854  {  if { (eval echo configure:5855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5855  return f != gethostbyname;    rm -rf conftest*
5856    ;    eval "ac_cv_func_gethostbyname=yes"
5857    return 0;  else
5858  }    echo "configure: failed program was:" >&5
5859  _ACEOF    cat conftest.$ac_ext >&5
5860  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
5861  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_gethostbyname=no"
5862    (eval $ac_link) 2>conftest.er1  fi
5863    ac_status=$?  rm -f conftest*
5864    grep -v '^ *+' conftest.er1 >conftest.err  fi
5865    rm -f conftest.er1  
5866    cat conftest.err >&5  if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5867    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""yes" 1>&6
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_gethostbyname=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_gethostbyname=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5  
 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6  
 if test $ac_cv_func_gethostbyname = yes; then  
5868    :    :
5869  else  else
5870    echo "$as_me:$LINENO: checking for main in -lnsl" >&5    echo "$ac_t""no" 1>&6
5871  echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5872  if test "${ac_cv_lib_nsl_main+set}" = set; then  echo "configure:5873: checking for main in -lnsl" >&5
5873    echo $ECHO_N "(cached) $ECHO_C" >&6  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5874    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5875      echo $ac_n "(cached) $ac_c" 1>&6
5876  else  else
5877    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5878  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
5879  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5880  /* confdefs.h.  */  #line 5881 "configure"
5881  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5882    
5883    int main() {
5884    main()
5885    ; return 0; }
5886    EOF
5887    if { (eval echo configure:5888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5888      rm -rf conftest*
5889      eval "ac_cv_lib_$ac_lib_var=yes"
5890    else
5891      echo "configure: failed program was:" >&5
5892      cat conftest.$ac_ext >&5
5893      rm -rf conftest*
5894      eval "ac_cv_lib_$ac_lib_var=no"
5895    fi
5896    rm -f conftest*
5897    LIBS="$ac_save_LIBS"
5898    
5899  int  fi
5900  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5901  {    echo "$ac_t""yes" 1>&6
 main ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_nsl_main=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_nsl_main=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5  
 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6  
 if test $ac_cv_lib_nsl_main = yes; then  
5902    TLIBS="$TLIBS -lnsl"    TLIBS="$TLIBS -lnsl"
5903    else
5904      echo "$ac_t""no" 1>&6
5905  fi  fi
5906    
5907  fi  fi
# Line 10856  fi Line 5910  fi
5910  RL_OJBS=""  RL_OJBS=""
5911  RL_LIB=""  RL_LIB=""
5912  if test "$enable_readline" = "yes" ; then  if test "$enable_readline" = "yes" ; then
5913            for ac_hdr in readline/readline.h
 for ac_header in readline/readline.h  
5914  do  do
5915  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5916  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5917    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:5918: checking for $ac_hdr" >&5
5918  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5919  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
5920    echo $ECHO_N "(cached) $ECHO_C" >&6  else
5921  fi    cat > conftest.$ac_ext <<EOF
5922  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 5923 "configure"
5923  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
5924  else  #include <$ac_hdr>
5925    # Is the header compilable?  EOF
5926  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5927  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:5928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5928  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5929  /* confdefs.h.  */  if test -z "$ac_err"; then
5930  _ACEOF    rm -rf conftest*
5931  cat confdefs.h >>conftest.$ac_ext    eval "ac_cv_header_$ac_safe=yes"
5932  cat >>conftest.$ac_ext <<_ACEOF  else
5933  /* end confdefs.h.  */    echo "$ac_err" >&5
5934  $ac_includes_default    echo "configure: failed program was:" >&5
5935  #include <$ac_header>    cat conftest.$ac_ext >&5
5936  _ACEOF    rm -rf conftest*
5937  rm -f conftest.$ac_objext    eval "ac_cv_header_$ac_safe=no"
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking $ac_header presence" >&5  
 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <$ac_header>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
5938  fi  fi
5939  if test -z "$ac_cpp_err"; then  rm -f conftest*
5940    ac_header_preproc=yes  fi
5941  else  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5942    echo "$as_me: failed program was:" >&5    echo "$ac_t""yes" 1>&6
5943  sed 's/^/| /' conftest.$ac_ext >&5      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5944      cat >> confdefs.h <<EOF
5945    ac_header_preproc=no  #define $ac_tr_hdr 1
5946  fi  EOF
5947  rm -f conftest.err conftest.$ac_ext   echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
5948  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  echo "configure:5949: checking for main in -lreadline" >&5
5949  echo "${ECHO_T}$ac_header_preproc" >&6  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
5950    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5951  # So?  What about this header?    echo $ac_n "(cached) $ac_c" 1>&6
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   eval "$as_ac_Header=\$ac_header_preproc"  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
 fi  
 if test `eval echo '${'$as_ac_Header'}'` = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  
 _ACEOF  
  echo "$as_me:$LINENO: checking for main in -lreadline" >&5  
 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6  
 if test "${ac_cv_lib_readline_main+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
5952  else  else
5953    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5954  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
5955  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5956  /* confdefs.h.  */  #line 5957 "configure"
5957  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5958    
5959    int main() {
5960    main()
5961    ; return 0; }
5962    EOF
5963    if { (eval echo configure:5964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5964      rm -rf conftest*
5965      eval "ac_cv_lib_$ac_lib_var=yes"
5966    else
5967      echo "configure: failed program was:" >&5
5968      cat conftest.$ac_ext >&5
5969      rm -rf conftest*
5970      eval "ac_cv_lib_$ac_lib_var=no"
5971    fi
5972    rm -f conftest*
5973    LIBS="$ac_save_LIBS"
5974    
5975  int  fi
5976  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5977  {    echo "$ac_t""yes" 1>&6
5978  main ();    cat >> confdefs.h <<\EOF
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_readline_main=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_readline_main=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5  
 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6  
 if test $ac_cv_lib_readline_main = yes; then  
   cat >>confdefs.h <<\_ACEOF  
5979  #define HAVE_READLINE 1  #define HAVE_READLINE 1
5980  _ACEOF  EOF
5981    
5982                          TLIBS="$TLIBS -lreadline -lncurses"                          TLIBS="$TLIBS -lreadline -lncurses"
5983                          RL_OBJS=gcl_readline.o                          RL_OBJS=gcl_readline.o
5984  # Readline support now initialized automatically when compiled in, this lisp  # Readline support now initialized automatically when compiled in, this lisp
5985  # object no longer needed, 20040102 CM  # object no longer needed, 20040102 CM
5986  #                       RL_LIB=mod/gcl_readline.o  #                       RL_LIB=mod/gcl_readline.o
5987                            
5988    else
5989      echo "$ac_t""no" 1>&6
5990  fi  fi
5991    
5992    else
5993      echo "$ac_t""no" 1>&6
5994  fi  fi
   
5995  done  done
5996    
5997    
5998  # These tests discover differences between readline 4.1 and 4.3  # These tests discover differences between readline 4.1 and 4.3
5999          echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5          echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
6000  echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6  echo "configure:6001: checking for rl_completion_matches in -lreadline" >&5
6001  if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then  ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
6002    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6003      echo $ac_n "(cached) $ac_c" 1>&6
6004  else  else
6005    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
6006  LIBS="-lreadline  $LIBS"  LIBS="-lreadline  $LIBS"
6007  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
6008  /* confdefs.h.  */  #line 6009 "configure"
6009  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
6010  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
6011  /* 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
6012     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
6013  char rl_completion_matches ();  char rl_completion_matches();
6014  int  
6015  main ()  int main() {
6016  {  rl_completion_matches()
6017  rl_completion_matches ();  ; return 0; }
6018    ;  EOF
6019    return 0;  if { (eval echo configure:6020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6020  }    rm -rf conftest*
6021  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
6022  rm -f conftest.$ac_objext conftest$ac_exeext  else
6023  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
6024    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
6025    ac_status=$?    rm -rf conftest*
6026    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
6027    rm -f conftest.er1  fi
6028    cat conftest.err >&5  rm -f conftest*
6029    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
6030    (exit $ac_status); } &&  
6031           { ac_try='test -z "$ac_c_werror_flag"  fi
6032                           || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6033    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
6034    (eval $ac_try) 2>&5    cat >> confdefs.h <<\EOF
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_readline_rl_completion_matches=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_readline_rl_completion_matches=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5  
 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6  
 if test $ac_cv_lib_readline_rl_completion_matches = yes; then  
   cat >>confdefs.h <<\_ACEOF  
6035  #define HAVE_DECL_RL_COMPLETION_MATCHES 1  #define HAVE_DECL_RL_COMPLETION_MATCHES 1
6036  _ACEOF  EOF
6037    
6038                          cat >>confdefs.h <<\_ACEOF                          cat >> confdefs.h <<\EOF
6039  #define HAVE_RL_COMPENTRY_FUNC_T 1  #define HAVE_RL_COMPENTRY_FUNC_T 1
6040  _ACEOF  EOF
6041    
6042    else
6043      echo "$ac_t""no" 1>&6
6044  fi  fi
6045    
6046  fi  fi
# Line 11158  fi Line 6048  fi
6048    
6049    
6050    
6051  echo "$as_me:$LINENO: checking For network code for nsocket.c" >&5  echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6
6052  echo $ECHO_N "checking For network code for nsocket.c... $ECHO_C" >&6  echo "configure:6053: checking For network code for nsocket.c" >&5
6053  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
6054  /* confdefs.h.  */  #line 6055 "configure"
6055  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
6056    
6057  #include <sys/time.h>  #include <sys/time.h>
6058  #include <sys/types.h>  #include <sys/types.h>
# Line 11175  cat >>conftest.$ac_ext <<_ACEOF Line 6062  cat >>conftest.$ac_ext <<_ACEOF
6062  #include <fcntl.h>  #include <fcntl.h>
6063  #include <stdio.h>  #include <stdio.h>
6064    
6065  /************* for the sockets ******************/  /************* for the sockets ******************/
6066  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */
6067  #ifndef NO_UNAME  #ifndef NO_UNAME
6068  #   include <sys/utsname.h>     /* uname system call. */  #   include <sys/utsname.h>     /* uname system call. */
# Line 11184  cat >>conftest.$ac_ext <<_ACEOF Line 6071  cat >>conftest.$ac_ext <<_ACEOF
6071  #include <arpa/inet.h>          /* inet_ntoa() */  #include <arpa/inet.h>          /* inet_ntoa() */
6072  #include <netdb.h>              /* gethostbyname() */  #include <netdb.h>              /* gethostbyname() */
6073    
6074  int  int main() {
 main ()  
 {  
6075   connect(0,(struct sockaddr *)0,0);   connect(0,(struct sockaddr *)0,0);
6076      gethostbyname("jil");      gethostbyname("jil");
6077      socket(AF_INET, SOCK_STREAM, 0);      socket(AF_INET, SOCK_STREAM, 0);
6078            
6079    ;  ; return 0; }
6080    return 0;  EOF
6081  }  if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6082  _ACEOF    rm -rf conftest*
6083  rm -f conftest.$ac_objext conftest$ac_exeext    cat >> confdefs.h <<\EOF
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   cat >>confdefs.h <<\_ACEOF  
6084  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
6085  _ACEOF  EOF
6086    
6087   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
6088  else  else
6089    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
6090  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6091      rm -rf conftest*
6092  echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
6093  fi  fi
6094  rm -f conftest.err conftest.$ac_objext \  rm -f conftest*
       conftest$ac_exeext conftest.$ac_ext  
6095    
6096    
6097  echo "$as_me:$LINENO: checking check for listen using fcntl" >&5  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6
6098  echo $ECHO_N "checking check for listen using fcntl... $ECHO_C" >&6  echo "configure:6099: checking check for listen using fcntl" >&5
6099  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
6100  /* confdefs.h.  */  #line 6101 "configure"
6101  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
6102  #include <stdio.h>  #include <stdio.h>
6103  #include <fcntl.h>  #include <fcntl.h>
6104    
6105  int  int main() {
 main ()  
 {  
6106  FILE *fp=fopen("configure.in","r");  FILE *fp=fopen("configure.in","r");
6107    int orig;    int orig;
6108    orig = fcntl(fileno(fp), F_GETFL);    orig = fcntl(fileno(fp), F_GETFL);
6109    if (! (orig & O_NONBLOCK )) return 0;    if (! (orig & O_NONBLOCK )) return 0;
6110    
6111    ;  ; return 0; }
6112    return 0;  EOF
6113  }  if { (eval echo configure:6114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6114  _ACEOF    rm -rf conftest*
6115  rm -f conftest.$ac_objext    cat >> confdefs.h <<\EOF
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   cat >>confdefs.h <<\_ACEOF  
6116  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
6117  _ACEOF  EOF
6118    
6119   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
6120  else  else
6121    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
6122  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6123      rm -rf conftest*
6124  echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
6125  fi  fi
6126  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest*
   
6127    
6128    
6129    
 echo "$as_me:$LINENO: checking for profil" >&5  
 echo $ECHO_N "checking for profil... $ECHO_C" >&6  
 if test "${ac_cv_func_profil+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define profil to an innocuous variant, in case <limits.h> declares profil.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define profil innocuous_profil  
6130    
6131    echo $ac_n "checking for profil""... $ac_c" 1>&6
6132    echo "configure:6133: checking for profil" >&5
6133    if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then
6134      echo $ac_n "(cached) $ac_c" 1>&6
6135    else
6136      cat > conftest.$ac_ext <<EOF
6137    #line 6138 "configure"
6138    #include "confdefs.h"
6139  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6140      which can conflict with char profil (); below.      which can conflict with char profil(); below.  */
6141      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef profil  
   
6142  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
6143  /* 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
6144     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
6145  char profil ();  char profil();
6146    
6147    int main() {
6148    
6149  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6150      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6151      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6152  #if defined (__stub_profil) || defined (__stub___profil)  #if defined (__stub_profil) || defined (__stub___profil)
6153  choke me  choke me
6154  #else  #else
6155  char (*f) () = profil;  profil();
 #endif  
 #ifdef __cplusplus  
 }  
6156  #endif  #endif
6157    
6158  int  ; return 0; }
6159  main ()  EOF
6160  {  if { (eval echo configure:6161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6161  return f != profil;    rm -rf conftest*
6162    ;    eval "ac_cv_func_profil=yes"
6163    return 0;  else
6164  }    echo "configure: failed program was:" >&5
6165  _ACEOF    cat conftest.$ac_ext >&5
6166  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
6167  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_profil=no"
6168    (eval $ac_link) 2>conftest.er1  fi
6169    ac_status=$?  rm -f conftest*
6170    grep -v '^ *+' conftest.er1 >conftest.err  fi
6171    rm -f conftest.er1  
6172    cat conftest.err >&5  if eval "test \"`echo '$ac_cv_func_'profil`\" = yes"; then
6173    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""yes" 1>&6
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_profil=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_profil=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_profil" >&5  
 echo "${ECHO_T}$ac_cv_func_profil" >&6  
 if test $ac_cv_func_profil = yes; then  
6174    :    :
6175  else  else
6176    cat >>confdefs.h <<\_ACEOF    echo "$ac_t""no" 1>&6
6177    cat >> confdefs.h <<\EOF
6178  #define NO_PROFILE 1  #define NO_PROFILE 1
6179  _ACEOF  EOF
6180    
6181  fi  fi
6182    
6183    
6184  echo "$as_me:$LINENO: checking for setenv" >&5  echo $ac_n "checking for setenv""... $ac_c" 1>&6
6185  echo $ECHO_N "checking for setenv... $ECHO_C" >&6  echo "configure:6186: checking for setenv" >&5
6186  if test "${ac_cv_func_setenv+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
6187    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
6188  else  else
6189    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
6190  /* confdefs.h.  */  #line 6191 "configure"
6191  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define setenv to an innocuous variant, in case <limits.h> declares setenv.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define setenv innocuous_setenv  
   
6192  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6193      which can conflict with char setenv (); below.      which can conflict with char setenv(); below.  */
6194      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef setenv  
   
6195  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
6196  /* 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
6197     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
6198  char setenv ();  char setenv();
6199    
6200    int main() {
6201    
6202  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6203      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6204      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6205  #if defined (__stub_setenv) || defined (__stub___setenv)  #if defined (__stub_setenv) || defined (__stub___setenv)
6206  choke me  choke me
6207  #else  #else
6208  char (*f) () = setenv;  setenv();
 #endif  
 #ifdef __cplusplus  
 }  
6209  #endif  #endif
6210    
6211  int  ; return 0; }
6212  main ()  EOF
6213  {  if { (eval echo configure:6214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6214  return f != setenv;    rm -rf conftest*
6215    ;    eval "ac_cv_func_setenv=yes"
6216    return 0;  else
6217  }    echo "configure: failed program was:" >&5
6218  _ACEOF    cat conftest.$ac_ext >&5
6219  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
6220  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_setenv=no"
6221    (eval $ac_link) 2>conftest.er1  fi
6222    ac_status=$?  rm -f conftest*
6223    grep -v '^ *+' conftest.er1 >conftest.err  fi
6224    rm -f conftest.er1  
6225    cat conftest.err >&5  if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then
6226    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""yes" 1>&6
6227    (exit $ac_status); } &&    cat >> confdefs.h <<\EOF
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_setenv=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_setenv=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5  
 echo "${ECHO_T}$ac_cv_func_setenv" >&6  
 if test $ac_cv_func_setenv = yes; then  
   cat >>confdefs.h <<\_ACEOF  
6228  #define HAVE_SETENV 1  #define HAVE_SETENV 1
6229  _ACEOF  EOF
6230    
6231  else  else
6232    no_setenv=1    echo "$ac_t""no" 1>&6
6233    no_setenv=1
6234  fi  fi
6235    
6236    
6237  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
6238  echo "$as_me:$LINENO: checking for putenv" >&5  echo $ac_n "checking for putenv""... $ac_c" 1>&6
6239  echo $ECHO_N "checking for putenv... $ECHO_C" >&6  echo "configure:6240: checking for putenv" >&5
6240  if test "${ac_cv_func_putenv+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
6241    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
6242  else  else
6243    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
6244  /* confdefs.h.  */  #line 6245 "configure"
6245  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define putenv to an innocuous variant, in case <limits.h> declares putenv.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define putenv innocuous_putenv  
   
6246  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6247      which can conflict with char putenv (); below.      which can conflict with char putenv(); below.  */
6248      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef putenv  
   
6249  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
6250  /* 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
6251     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
6252  char putenv ();  char putenv();
6253    
6254    int main() {
6255    
6256  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6257      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6258      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6259  #if defined (__stub_putenv) || defined (__stub___putenv)  #if defined (__stub_putenv) || defined (__stub___putenv)
6260  choke me  choke me
6261  #else  #else
6262  char (*f) () = putenv;  putenv();
 #endif  
 #ifdef __cplusplus  
 }  
6263  #endif  #endif
6264    
6265  int  ; return 0; }
6266  main ()  EOF
6267  {  if { (eval echo configure:6268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6268  return f != putenv;    rm -rf conftest*
6269    ;    eval "ac_cv_func_putenv=yes"
6270    return 0;  else
6271  }    echo "configure: failed program was:" >&5
6272  _ACEOF    cat conftest.$ac_ext >&5
6273  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
6274  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_putenv=no"
6275    (eval $ac_link) 2>conftest.er1  fi
6276    ac_status=$?  rm -f conftest*
6277    grep -v '^ *+' conftest.er1 >conftest.err  fi
6278    rm -f conftest.er1  
6279    cat conftest.err >&5  if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then
6280    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""yes" 1>&6
6281    (exit $ac_status); } &&    cat >> confdefs.h <<\EOF
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_putenv=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_putenv=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5  
 echo "${ECHO_T}$ac_cv_func_putenv" >&6  
 if test $ac_cv_func_putenv = yes; then  
   cat >>confdefs.h <<\_ACEOF  
6282  #define HAVE_PUTENV 1  #define HAVE_PUTENV 1
6283  _ACEOF  EOF
6284    
6285    else
6286      echo "$ac_t""no" 1>&6
6287  fi  fi
6288    
6289    
6290  fi  fi
6291    
6292  echo "$as_me:$LINENO: checking for _cleanup" >&5  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6
6293  echo $ECHO_N "checking for _cleanup... $ECHO_C" >&6  echo "configure:6294: checking for _cleanup" >&5
6294  if test "${ac_cv_func__cleanup+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then
6295    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
6296  else  else
6297    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
6298  /* confdefs.h.  */  #line 6299 "configure"
6299  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define _cleanup to an innocuous variant, in case <limits.h> declares _cleanup.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define _cleanup innocuous__cleanup  
   
6300  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6301      which can conflict with char _cleanup (); below.      which can conflict with char _cleanup(); below.  */
6302      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef _cleanup  
   
6303  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
6304  /* 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
6305     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
6306  char _cleanup ();  char _cleanup();
6307    
6308    int main() {
6309    
6310  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6311      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6312      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6313  #if defined (__stub__cleanup) || defined (__stub____cleanup)  #if defined (__stub__cleanup) || defined (__stub____cleanup)
6314  choke me  choke me
6315  #else  #else
6316  char (*f) () = _cleanup;  _cleanup();
 #endif  
 #ifdef __cplusplus  
 }  
6317  #endif  #endif
6318    
6319  int  ; return 0; }
6320  main ()  EOF
6321  {  if { (eval echo configure:6322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6322  return f != _cleanup;    rm -rf conftest*
6323    ;    eval "ac_cv_func__cleanup=yes"
6324    return 0;  else
6325  }    echo "configure: failed program was:" >&5
6326  _ACEOF    cat conftest.$ac_ext >&5
6327  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
6328  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func__cleanup=no"
6329    (eval $ac_link) 2>conftest.er1  fi
6330    ac_status=$?  rm -f conftest*
6331    grep -v '^ *+' conftest.er1 >conftest.err  fi
6332    rm -f conftest.er1  
6333    cat conftest.err >&5  if eval "test \"`echo '$ac_cv_func_'_cleanup`\" = yes"; then
6334    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""yes" 1>&6
6335    (exit $ac_status); } &&    cat >> confdefs.h <<\EOF
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func__cleanup=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func__cleanup=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func__cleanup" >&5  
 echo "${ECHO_T}$ac_cv_func__cleanup" >&6  
 if test $ac_cv_func__cleanup = yes; then  
   cat >>confdefs.h <<\_ACEOF  
6336  #define USE_CLEANUP 1  #define USE_CLEANUP 1
6337  _ACEOF  EOF
6338    
6339    else
6340      echo "$ac_t""no" 1>&6
6341  fi  fi
6342    
6343    
6344  gcl_ok=no  gcl_ok=no
6345    
6346  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
6347  /* confdefs.h.  */  #line 6348 "configure"
6348  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
6349  #include <ctype.h>  #include <ctype.h>
6350    EOF
 _ACEOF  
6351  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6352    $EGREP "LITTLE_ENDIAN" >/dev/null 2>&1; then    egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then
6353      rm -rf conftest*
6354    gcl_ok=yes    gcl_ok=yes
6355  else  else
6356      rm -rf conftest*
6357    gcl_ok=noo    gcl_ok=noo
6358  fi  fi
6359  rm -f conftest*  rm -f conftest*
6360    
6361  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
6362  cat >>confdefs.h <<\_ACEOF  cat >> confdefs.h <<\EOF
6363  #define ENDIAN_ALREADY_DEFINED 1  #define ENDIAN_ALREADY_DEFINED 1
6364  _ACEOF  EOF
6365    
6366  fi  fi
6367    
# Line 11728  fi Line 6371  fi
6371    
6372    
6373  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
6374  echo "$as_me:$LINENO: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5  echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6
6375  echo $ECHO_N "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... $ECHO_C" >&6  echo "configure:6376: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
6376    
6377  case $system in  case $system in
6378         OSF*)         OSF*)
6379          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
6380  #define USE_FIONBIO 1  #define USE_FIONBIO 1
6381  _ACEOF  EOF
6382    
6383          echo "$as_me:$LINENO: result: FIONBIO" >&5          echo "$ac_t""FIONBIO" 1>&6
 echo "${ECHO_T}FIONBIO" >&6  
6384          ;;          ;;
6385      SunOS-4*)      SunOS-4*)
6386          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
6387  #define USE_FIONBIO 1  #define USE_FIONBIO 1
6388  _ACEOF  EOF
6389    
6390          echo "$as_me:$LINENO: result: FIONBIO" >&5          echo "$ac_t""FIONBIO" 1>&6
 echo "${ECHO_T}FIONBIO" >&6  
6391          ;;          ;;
6392      ULTRIX-4.*)      ULTRIX-4.*)
6393          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
6394  #define USE_FIONBIO 1  #define USE_FIONBIO 1
6395  _ACEOF  EOF
6396    
6397          echo "$as_me:$LINENO: result: FIONBIO" >&5          echo "$ac_t""FIONBIO" 1>&6
 echo "${ECHO_T}FIONBIO" >&6  
6398          ;;          ;;
6399      *)      *)
6400          echo "$as_me:$LINENO: result: O_NONBLOCK" >&5          echo "$ac_t""O_NONBLOCK" 1>&6
 echo "${ECHO_T}O_NONBLOCK" >&6  
6401          ;;          ;;
6402  esac  esac
6403    
6404    
6405  echo "$as_me:$LINENO: checking check for SV_ONSTACK" >&5  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6
6406  echo $ECHO_N "checking check for SV_ONSTACK... $ECHO_C" >&6  echo "configure:6407: checking check for SV_ONSTACK" >&5
6407  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
6408  /* confdefs.h.  */  #line 6409 "configure"
6409  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
6410  #include <signal.h>  #include <signal.h>
6411  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
6412    
6413  int  int main() {
 main ()  
 {  
6414    
6415    ;  ; return 0; }
6416    return 0;  EOF
6417  }  if { (eval echo configure:6418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6418  _ACEOF    rm -rf conftest*
6419  rm -f conftest.$ac_objext    cat >> confdefs.h <<\EOF
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   cat >>confdefs.h <<\_ACEOF  
6420  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
6421  _ACEOF  EOF
   
6422    
6423   echo "$as_me:$LINENO: result: yes" >&5  
6424  echo "${ECHO_T}yes" >&6   echo "$ac_t""yes" 1>&6
6425  else  else
6426    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
6427  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6428      rm -rf conftest*
6429  echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
6430  fi  fi
6431  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest*
6432    
6433  echo "$as_me:$LINENO: checking check for SIGSYS" >&5  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6
6434  echo $ECHO_N "checking check for SIGSYS... $ECHO_C" >&6  echo "configure:6435: checking check for SIGSYS" >&5
6435  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
6436  /* confdefs.h.  */  #line 6437 "configure"
6437  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
6438  #include <signal.h>  #include <signal.h>
6439  int joe=SIGSYS;  int joe=SIGSYS;
6440    
6441  int  int main() {
 main ()  
 {  
6442    
6443    ;  ; return 0; }
6444    return 0;  EOF
6445  }  if { (eval echo configure:6446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6446  _ACEOF    rm -rf conftest*
6447  rm -f conftest.$ac_objext    cat >> confdefs.h <<\EOF
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   cat >>confdefs.h <<\_ACEOF  
6448  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
6449  _ACEOF  EOF
   
6450    
6451   echo "$as_me:$LINENO: result: yes" >&5  
6452  echo "${ECHO_T}yes" >&6   echo "$ac_t""yes" 1>&6
6453  else  else
6454    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
6455  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6456      rm -rf conftest*
6457  echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
6458  fi  fi
6459  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest*
6460    
6461    
6462  echo "$as_me:$LINENO: checking check for SIGEMT" >&5  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6
6463  echo $ECHO_N "checking check for SIGEMT... $ECHO_C" >&6  echo "configure:6464: checking check for SIGEMT" >&5
6464  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
6465  /* confdefs.h.  */  #line 6466 "configure"
6466  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
6467  #include <signal.h>  #include <signal.h>
6468  int joe=SIGEMT;  int joe=SIGEMT;
6469    
6470  int  int main() {
 main ()  
 {  
6471    
6472    ;  ; return 0; }
6473    return 0;  EOF
6474  }  if { (eval echo configure:6475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6475  _ACEOF    rm -rf conftest*
6476  rm -f conftest.$ac_objext    cat >> confdefs.h <<\EOF
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   cat >>confdefs.h <<\_ACEOF  
6477  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
6478  _ACEOF  EOF
   
6479    
6480   echo "$as_me:$LINENO: result: yes" >&5  
6481  echo "${ECHO_T}yes" >&6   echo "$ac_t""yes" 1>&6
6482  else  else
6483    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
6484  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6485      rm -rf conftest*
6486  echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
6487  fi  fi
6488  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest*
6489    
6490    
6491    
6492    
6493  #if test $use = "386-linux" ; then  #if test $use = "386-linux" ; then
6494            for ac_hdr in asm/sigcontext.h
 for ac_header in asm/sigcontext.h  
6495  do  do
6496  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6497  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6498    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:6499: checking for $ac_hdr" >&5
6499  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6500  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
6501    echo $ECHO_N "(cached) $ECHO_C" >&6  else
6502  fi    cat > conftest.$ac_ext <<EOF
6503  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 6504 "configure"
6504  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
6505  else  #include <$ac_hdr>
6506    # Is the header compilable?  EOF
6507  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6508  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:6509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6509  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6510  /* confdefs.h.  */  if test -z "$ac_err"; then
6511  _ACEOF    rm -rf conftest*
6512  cat confdefs.h >>conftest.$ac_ext    eval "ac_cv_header_$ac_safe=yes"
6513  cat >>conftest.$ac_ext <<_ACEOF  else
6514  /* end confdefs.h.  */    echo "$ac_err" >&5
6515  $ac_includes_default    echo "configure: failed program was:" >&5
6516  #include <$ac_header>    cat conftest.$ac_ext >&5
6517  _ACEOF    rm -rf conftest*
6518  rm -f conftest.$ac_objext    eval "ac_cv_header_$ac_safe=no"
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking $ac_header presence" >&5  
 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <$ac_header>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   ac_header_preproc=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   ac_header_preproc=no  
 fi  
 rm -f conftest.err conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   eval "$as_ac_Header=\$ac_header_preproc"  
6519  fi  fi
6520  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  rm -f conftest*
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
6521  fi  fi
6522  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6523    cat >>confdefs.h <<_ACEOF    echo "$ac_t""yes" 1>&6
6524  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6525  _ACEOF    cat >> confdefs.h <<EOF
6526    #define $ac_tr_hdr 1
6527    EOF
6528    
6529    else
6530      echo "$ac_t""no" 1>&6
6531  fi  fi
   
6532  done  done
6533    
6534            for ac_hdr in asm/signal.h
 for ac_header in asm/signal.h  
6535  do  do
6536  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6537  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6538    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:6539: checking for $ac_hdr" >&5
6539  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6540  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
 else  
   # Is the header compilable?  
 echo "$as_me:$LINENO: checking $ac_header usability" >&5  
 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
 #include <$ac_header>  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking $ac_header presence" >&5  
 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <$ac_header>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   ac_header_preproc=yes  
6541  else  else
6542    echo "$as_me: failed program was:" >&5    cat > conftest.$ac_ext <<EOF
6543  sed 's/^/| /' conftest.$ac_ext >&5  #line 6544 "configure"
6544    #include "confdefs.h"
6545    ac_header_preproc=no  #include <$ac_hdr>
6546  fi  EOF
6547  rm -f conftest.err conftest.$ac_ext  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6548  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  { (eval echo configure:6549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6549  echo "${ECHO_T}$ac_header_preproc" >&6  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6550    if test -z "$ac_err"; then
6551  # So?  What about this header?    rm -rf conftest*
6552  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in    eval "ac_cv_header_$ac_safe=yes"
6553    yes:no: )  else
6554      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5    echo "$ac_err" >&5
6555  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}    echo "configure: failed program was:" >&5
6556      { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5    cat conftest.$ac_ext >&5
6557  echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}    rm -rf conftest*
6558      ac_header_preproc=yes    eval "ac_cv_header_$ac_safe=no"
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   eval "$as_ac_Header=\$ac_header_preproc"  
6559  fi  fi
6560  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  rm -f conftest*
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
6561  fi  fi
6562  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6563    cat >>confdefs.h <<_ACEOF    echo "$ac_t""yes" 1>&6
6564  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6565  _ACEOF    cat >> confdefs.h <<EOF
6566    #define $ac_tr_hdr 1
6567    EOF
6568    
6569    else
6570      echo "$ac_t""no" 1>&6
6571  fi  fi
   
6572  done  done
6573    
6574          echo "$as_me:$LINENO: checking for sigcontext..." >&5          echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6
6575  echo $ECHO_N "checking for sigcontext...... $ECHO_C" >&6  echo "configure:6576: checking for sigcontext..." >&5
6576          cat >conftest.$ac_ext <<_ACEOF          cat > conftest.$ac_ext <<EOF
6577  /* confdefs.h.  */  #line 6578 "configure"
6578  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
6579  #include <signal.h>  #include <signal.h>
6580          
6581  int  int main() {
 main ()  
 {  
6582    
6583          struct sigcontext foo;          struct sigcontext foo;
6584          
6585    ;  ; return 0; }
6586    return 0;  EOF
6587  }  if { (eval echo configure:6588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6588  _ACEOF    rm -rf conftest*
6589  rm -f conftest.$ac_objext    
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   
6590          sigcontext_works=1;          sigcontext_works=1;
6591          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
6592  #define SIGNAL_H_HAS_SIGCONTEXT 1  #define SIGNAL_H_HAS_SIGCONTEXT 1
6593  _ACEOF  EOF
   
         echo "$as_me:$LINENO: result: sigcontext in signal.h" >&5  
 echo "${ECHO_T}sigcontext in signal.h" >&6  
6594    
6595            echo "$ac_t""sigcontext in signal.h" 1>&6
6596          
6597  else  else
6598    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
6599  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6600      rm -rf conftest*
6601  sigcontext_works=0;    sigcontext_works=0;
6602           echo "$as_me:$LINENO: result: sigcontext NOT in signal.h" >&5           echo "$ac_t""sigcontext NOT in signal.h" 1>&6
6603  echo "${ECHO_T}sigcontext NOT in signal.h" >&6        
   
6604  fi  fi
6605  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest*
6606         if test "$sigcontext_works" = 0 ; then         if test "$sigcontext_works" = 0 ; then
6607         echo "$as_me:$LINENO: checking for sigcontext..." >&5         echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6
6608  echo $ECHO_N "checking for sigcontext...... $ECHO_C" >&6  echo "configure:6609: checking for sigcontext..." >&5
6609         cat >conftest.$ac_ext <<_ACEOF         cat > conftest.$ac_ext <<EOF
6610  /* confdefs.h.  */  #line 6611 "configure"
6611  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
6612  #include <signal.h>  #include <signal.h>
6613               #ifdef HAVE_ASM_SIGCONTEXT_H               #ifdef HAVE_ASM_SIGCONTEXT_H    
6614               #include <asm/sigcontext.h>               #include <asm/sigcontext.h>
6615               #endif               #endif
6616               #ifdef HAVE_ASM_SIGNAL_H               #ifdef HAVE_ASM_SIGNAL_H          
6617               #include <asm/signal.h>               #include <asm/signal.h>
6618               #endif               #endif
6619              
6620  int  int main() {
6621  main ()  
 {  
   
6622          struct sigcontext foo;          struct sigcontext foo;
6623            
6624    ;  ; return 0; }
6625    return 0;  EOF
6626  }  if { (eval echo configure:6627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6627  _ACEOF    rm -rf conftest*
6628  rm -f conftest.$ac_objext    
6629  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5          cat >> confdefs.h <<\EOF
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   
         cat >>confdefs.h <<\_ACEOF  
6630  #define HAVE_SIGCONTEXT 1  #define HAVE_SIGCONTEXT 1
6631  _ACEOF  EOF
   
         echo "$as_me:$LINENO: result: sigcontext in asm files" >&5  
 echo "${ECHO_T}sigcontext in asm files" >&6  
6632    
6633            echo "$ac_t""sigcontext in asm files" 1>&6
6634            
6635  else  else
6636    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
6637  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6638      rm -rf conftest*
6639      
6640          echo "$as_me:$LINENO: result: no sigcontext found" >&5          echo "$ac_t""no sigcontext found" 1>&6
6641  echo "${ECHO_T}no sigcontext found" >&6      
   
6642  fi  fi
6643  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest*
6644    
6645    
6646         fi         fi
6647  #       echo 'foo() {}' > conftest1.c  #       echo 'foo() {}' > conftest1.c
6648  #       $CC -S conftest1.c  #       $CC -S conftest1.c
6649  #       use_underscore=0  #       use_underscore=0        
6650  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi
6651  #       if test $use_underscore = 0 ; then  #       if test $use_underscore = 0 ; then
6652  #            MPI_FILE=mpi-386_no_under.o  #            MPI_FILE=mpi-386_no_under.o
# Line 12390  rm -f conftest.err conftest.$ac_objext c Line 6664  rm -f conftest.err conftest.$ac_objext c
6664    
6665  # 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.
6666  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
6667  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6668  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:6669: checking for $ac_word" >&5
6669  if test "${ac_cv_path_EMACS+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
6670    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
6671  else  else
6672    case $EMACS in    case "$EMACS" in
6673    [\\/]* | ?:[\\/]*)    /*)
6674    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.
6675    ;;    ;;
6676      ?:/*)                  
6677      ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.
6678      ;;
6679    *)    *)
6680    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6681  for as_dir in $PATH    ac_dummy="$PATH"
6682  do    for ac_dir in $ac_dummy; do
6683    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
6684    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
6685    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_path_EMACS="$ac_dir/$ac_word"
6686    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
6687      ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext"      fi
6688      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
6689      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
6690    ;;    ;;
6691  esac  esac
6692  fi  fi
6693  EMACS=$ac_cv_path_EMACS  EMACS="$ac_cv_path_EMACS"
   
6694  if test -n "$EMACS"; then  if test -n "$EMACS"; then
6695    echo "$as_me:$LINENO: result: $EMACS" >&5    echo "$ac_t""$EMACS" 1>&6
 echo "${ECHO_T}$EMACS" >&6  
6696  else  else
6697    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
6698  fi  fi
6699    
6700    
# Line 12442  cat >> conftest.el <<EOF Line 6712  cat >> conftest.el <<EOF
6712    (message ans))    (message ans))
6713  EOF  EOF
6714    
6715  echo "$as_me:$LINENO: checking emacs site lisp directory" >&5  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6
6716  echo $ECHO_N "checking emacs site lisp directory... $ECHO_C" >&6  echo "configure:6717: checking emacs site lisp directory" >&5
6717  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then
6718          if [ "$EMACS" != "" ] ; then          if [ "$EMACS" != "" ] ; then
6719                  EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `                  EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
# Line 12451  if [ "$EMACS_SITE_LISP" = "unknown" ] ; Line 6721  if [ "$EMACS_SITE_LISP" = "unknown" ] ;
6721                  EMACS_SITE_LISP=""                  EMACS_SITE_LISP=""
6722          fi          fi
6723  fi  fi
6724  echo "$as_me:$LINENO: result: $EMACS_SITE_LISP" >&5  echo "$ac_t""$EMACS_SITE_LISP" 1>&6
 echo "${ECHO_T}$EMACS_SITE_LISP" >&6  
6725    
6726    
6727  # check for where the emacs site lisp default.el is  # check for where the emacs site lisp default.el is
# Line 12467  cat >> conftest.el <<EOF Line 6736  cat >> conftest.el <<EOF
6736    (message ans))    (message ans))
6737  EOF  EOF
6738    
6739  echo "$as_me:$LINENO: checking emacs default.el" >&5  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6
6740  echo $ECHO_N "checking emacs default.el... $ECHO_C" >&6  echo "configure:6741: checking emacs default.el" >&5
6741  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
6742          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 `
6743  else  else
# Line 12479  if  test -f "${EMACS_DEFAULT_EL}"  ; the Line 6748  if  test -f "${EMACS_DEFAULT_EL}"  ; the
6748       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el
6749    fi    fi
6750  fi  fi
6751  echo "$as_me:$LINENO: result: $EMACS_DEFAULT_EL" >&5  echo "$ac_t""$EMACS_DEFAULT_EL" 1>&6
 echo "${ECHO_T}$EMACS_DEFAULT_EL" >&6  
6752    
6753    
6754    
# Line 12491  cat >> conftest.el <<EOF Line 6759  cat >> conftest.el <<EOF
6759  (let ((ans "") file (tem Info-default-directory-list))  (let ((ans "") file (tem Info-default-directory-list))
6760   (while tem   (while tem
6761     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))
6762            (setq ans (file-name-as-directory (car tem)))            (setq ans (file-name-as-directory (car tem)))        
6763            (setq tem nil) ))            (setq tem nil) ))
6764     (setq tem (cdr tem)))     (setq tem (cdr tem)))
6765    (message ans))    (message ans))
6766  EOF  EOF
6767    
6768  echo "$as_me:$LINENO: checking emacs info/dir" >&5  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6
6769  echo $ECHO_N "checking emacs info/dir... $ECHO_C" >&6  echo "configure:6770: checking emacs info/dir" >&5
6770  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
6771      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
6772  else  else
# Line 12512  if test -f /usr/share/info/dir ; then Line 6780  if test -f /usr/share/info/dir ; then
6780  else true;  else true;
6781  fi  fi
6782  fi  fi
6783  echo "$as_me:$LINENO: result: $INFO_DIR" >&5  echo "$ac_t""$INFO_DIR" 1>&6
 echo "${ECHO_T}$INFO_DIR" >&6  
6784    
6785    
6786  echo "$as_me:$LINENO: checking for tcl/tk" >&5  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6
6787  echo $ECHO_N "checking for tcl/tk... $ECHO_C" >&6  echo "configure:6788: checking for tcl/tk" >&5
6788    
6789    
6790  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 12527  cat >> conftest.tcl <<EOF Line 6794  cat >> conftest.tcl <<EOF
6794  set dir [set tcl_library]  set dir [set tcl_library]
6795  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
6796        puts  [set dir]        puts  [set dir]
6797        exit        exit      
6798    }    }
6799  set dir [file dirname [set tcl_library]]  set dir [file dirname [set tcl_library]]
6800  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
# Line 12539  EOF Line 6806  EOF
6806    
6807  # 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.
6808  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
6809  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6810  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:6811: checking for $ac_word" >&5
6811  if test "${ac_cv_prog_TCLSH+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then
6812    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
6813  else  else
6814    if test -n "$TCLSH"; then    if test -n "$TCLSH"; then
6815    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
6816  else  else
6817  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6818  for as_dir in $PATH    ac_dummy="$PATH"
6819  do    for ac_dir in $ac_dummy; do
6820    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
6821    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
6822    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_TCLSH="tclsh"
6823    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
6824      ac_cv_prog_TCLSH="tclsh"      fi
6825      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
6826      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
6827    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"
6828  fi  fi
6829  fi  fi
6830  TCLSH=$ac_cv_prog_TCLSH  TCLSH="$ac_cv_prog_TCLSH"
6831  if test -n "$TCLSH"; then  if test -n "$TCLSH"; then
6832    echo "$as_me:$LINENO: result: $TCLSH" >&5    echo "$ac_t""$TCLSH" 1>&6
 echo "${ECHO_T}$TCLSH" >&6  
6833  else  else
6834    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
6835  fi  fi
6836    
6837  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})
# Line 12636  if test -f ${TK_CONFIG_PREFIX}/../includ Line 6897  if test -f ${TK_CONFIG_PREFIX}/../includ
6897    else    else
6898    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then
6899      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
6900    fi    fi    
6901  fi  fi
6902  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then
6903    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include
# Line 12648  fi Line 6909  fi
6909  TCL_VERSION_DOT_FREE=`echo ${TCL_VERSION} | tr -d .`  TCL_VERSION_DOT_FREE=`echo ${TCL_VERSION} | tr -d .`
6910  if test -f ${TK_CONFIG_PREFIX}/../bin/tcl${TCL_VERSION_DOT_FREE}.dll  ; then  if test -f ${TK_CONFIG_PREFIX}/../bin/tcl${TCL_VERSION_DOT_FREE}.dll  ; then
6911     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}"
6912     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}"
6913  else  else
6914    echo "$as_me:$LINENO: checking for main in -llieee" >&5    echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6
6915  echo $ECHO_N "checking for main in -llieee... $ECHO_C" >&6  echo "configure:6916: checking for main in -llieee" >&5
6916  if test "${ac_cv_lib_lieee_main+set}" = set; then  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`
6917    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6918      echo $ac_n "(cached) $ac_c" 1>&6
6919  else  else
6920    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
6921  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
6922  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
6923  /* confdefs.h.  */  #line 6924 "configure"
6924  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
6925    
6926    int main() {
6927    main()
6928    ; return 0; }
6929    EOF
6930    if { (eval echo configure:6931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6931      rm -rf conftest*
6932      eval "ac_cv_lib_$ac_lib_var=yes"
6933    else
6934      echo "configure: failed program was:" >&5
6935      cat conftest.$ac_ext >&5
6936      rm -rf conftest*
6937      eval "ac_cv_lib_$ac_lib_var=no"
6938    fi
6939    rm -f conftest*
6940    LIBS="$ac_save_LIBS"
6941    
6942  int  fi
6943  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6944  {    echo "$ac_t""yes" 1>&6
 main ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_lieee_main=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_lieee_main=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_lieee_main" >&5  
 echo "${ECHO_T}$ac_cv_lib_lieee_main" >&6  
 if test $ac_cv_lib_lieee_main = yes; then  
6945    have_ieee=1    have_ieee=1
6946  else  else
6947    have_ieee=0    echo "$ac_t""no" 1>&6
6948    have_ieee=0
6949  fi  fi
6950    
6951    if test "$have_ieee" = "0" ; then    if test "$have_ieee" = "0" ; then
# Line 12744  fi Line 6978  fi
6978    
6979    
6980  if test -d "${TK_CONFIG_PREFIX}" ; then  if test -d "${TK_CONFIG_PREFIX}" ; then
6981  echo "$as_me:$LINENO: result: using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" >&5  echo "$ac_t""using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" 1>&6
 echo "${ECHO_T}using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" >&6  
6982  else  else
6983  echo "$as_me:$LINENO: result: not found" >&5  echo "$ac_t""not found" 1>&6
 echo "${ECHO_T}not found" >&6  
6984  fi  fi
6985    
6986  NOTIFY=$enable_notify  NOTIFY=$enable_notify
6987    
6988    
6989          
6990    
6991    
6992  # for sgbc the mprotect capabilities.  # for sgbc the mprotect capabilities.
6993    
6994  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
6995    
6996  echo "$as_me:$LINENO: checking alloca" >&5  echo $ac_n "checking alloca""... $ac_c" 1>&6
6997  echo $ECHO_N "checking alloca... $ECHO_C" >&6  echo "configure:6998: checking alloca" >&5
6998  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6999    gcl_ok=no    gcl_ok=no
7000  else  else
7001    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
7002  /* confdefs.h.  */  #line 7003 "configure"
7003  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
7004  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
7005  _ACEOF  EOF
7006  rm -f conftest$ac_exeext  if { (eval echo configure:7007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7007  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
7008    :    :
7009  else  else
7010    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
7011  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
7012  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
7013      gcl_ok=yes
 ( exit $ac_status )  
 gcl_ok=yes  
7014  fi  fi
7015  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
7016  fi  fi
7017    
7018  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
7019      echo "$as_me:$LINENO: result: yes" >&5      echo "$ac_t""yes" 1>&6
7020  echo "${ECHO_T}yes" >&6      cat >> confdefs.h <<\EOF
     cat >>confdefs.h <<\_ACEOF  
7021  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
7022  _ACEOF  EOF
7023    
7024  else  else
7025    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
7026    gcl_ok=no    gcl_ok=no
7027  else  else
7028    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
7029  /* confdefs.h.  */  #line 7030 "configure"
7030  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
7031  #include <alloca.h>  #include <alloca.h>
7032    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
7033  _ACEOF  EOF
7034  rm -f conftest$ac_exeext  if { (eval echo configure:7035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7035  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
7036    :    :
7037  else  else
7038    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
7039  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
7040  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
7041      gcl_ok=yes
 ( exit $ac_status )  
 gcl_ok=yes  
7042  fi  fi
7043  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
7044  fi  fi
7045    
7046   if test $gcl_ok = yes ; then   if test $gcl_ok = yes ; then
7047      echo "$as_me:$LINENO: result: yes" >&5      echo "$ac_t""yes" 1>&6
7048  echo "${ECHO_T}yes" >&6      cat >> confdefs.h <<\EOF
     cat >>confdefs.h <<\_ACEOF  
7049  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
7050  _ACEOF  EOF
7051    
7052      cat >>confdefs.h <<\_ACEOF      cat >> confdefs.h <<\EOF
7053  #define NEED_ALLOCA_H 1  #define NEED_ALLOCA_H 1
7054  _ACEOF  EOF
7055    
7056   fi   fi
7057  fi  fi
7058  if test $gcl_ok = no ; then     echo "$as_me:$LINENO: result: no" >&5  if test $gcl_ok = no ; then     echo "$ac_t""no" 1>&6 ; fi
 echo "${ECHO_T}no" >&6 ; fi  
7059    
7060    
7061    
# Line 12868  echo "${ECHO_T}no" >&6 ; fi Line 7071  echo "${ECHO_T}no" >&6 ; fi
7071  # dlopen etc  # dlopen etc
7072  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)
7073  # 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
7074  #  #
7075    
7076  # what machine this is, and include then a machine specific hdr.  # what machine this is, and include then a machine specific hdr.
7077  # and machine specific defs.  # and machine specific defs.
# Line 12888  echo "${ECHO_T}no" >&6 ; fi Line 7091  echo "${ECHO_T}no" >&6 ; fi
7091    
7092  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
7093  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
7094  echo "$as_me:$LINENO: checking Checking for buggy gcc version from redhat" >&5  echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6
7095  echo $ECHO_N "checking Checking for buggy gcc version from redhat... $ECHO_C" >&6  echo "configure:7096: checking Checking for buggy gcc version from redhat" >&5
7096  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
7097     then     then
7098          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1
7099          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
7100  #define BROKEN_O4_OPT 1  #define BROKEN_O4_OPT 1
7101  _ACEOF  EOF
   
7102    
7103            
7104          echo ODIR_DEBUG=-O >> makedefsafter          echo ODIR_DEBUG=-O >> makedefsafter
7105          echo >> makedefsafter          echo >> makedefsafter
7106          echo "$as_me:$LINENO: result: yes .. turning off -O4" >&5          echo "$ac_t""yes .. turning off -O4" 1>&6
 echo "${ECHO_T}yes .. turning off -O4" >&6  
7107     else     else
7108          echo "$as_me:$LINENO: result: no" >&5          echo "$ac_t""no" 1>&6
7109  echo "${ECHO_T}no" >&6  fi
 fi  
7110    
7111  LIBS="$LDFLAGS $TLDFLAGS $LIBS $TLIBS"  LIBS="`echo $LDFLAGS | sed 's,gcl.script,../unixport/gcl.script,g'` $TLDFLAGS $LIBS $TLIBS"
7112    
7113  FINAL_CFLAGS="$CFLAGS $TCFLAGS $PROCESSOR_FLAGS"  FINAL_CFLAGS="$CFLAGS $TCFLAGS $PROCESSOR_FLAGS"
7114    
# Line 12929  O2FLAGS=$TO2FLAGS Line 7130  O2FLAGS=$TO2FLAGS
7130    
7131  if test -f h/$use.defs  ; then  if test -f h/$use.defs  ; then
7132    
7133      
7134                                            ac_config_files="$ac_config_files makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp"    trap '' 1 2 15
7135  cat >confcache <<\_ACEOF  cat > confcache <<\EOF
7136  # This file is a shell script that caches the results of configure  # This file is a shell script that caches the results of configure
7137  # tests run on this system so they can be shared between configure  # tests run on this system so they can be shared between configure
7138  # scripts and configure runs, see configure's option --config-cache.  # scripts and configure runs.  It is not useful on other systems.
7139  # It is not useful on other systems.  If it contains results you don't  # If it contains results you don't want to keep, you may remove or edit it.
 # want to keep, you may remove or edit it.  
7140  #  #
7141  # config.status only pays attention to the cache file if you give it  # By default, configure uses ./config.cache as the cache file,
7142  # the --recheck option to rerun configure.  # creating it if it does not exist already.  You can give configure
7143    # the --cache-file=FILE option to use a different cache file; that is
7144    # what configure does when it calls configure scripts in
7145    # subdirectories, so they share the cache.
7146    # Giving --cache-file=/dev/null disables caching, for debugging configure.
7147    # config.status only pays attention to the cache file if you give it the
7148    # --recheck option to rerun configure.
7149  #  #
7150  # `ac_cv_env_foo' variables (set or unset) will be overridden when  EOF
 # loading this file, other *unset* `ac_cv_foo' will be assigned the  
 # following values.  
   
 _ACEOF  
   
7151  # The following way of writing the cache mishandles newlines in values,  # The following way of writing the cache mishandles newlines in values,
7152  # but we know of no workaround that is simple, portable, and efficient.  # but we know of no workaround that is simple, portable, and efficient.
7153  # So, don't put newlines in cache variables' values.  # So, don't put newlines in cache variables' values.
7154  # Ultrix sh set writes to stderr and can't be redirected directly,  # Ultrix sh set writes to stderr and can't be redirected directly,
7155  # 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.
7156  {  (set) 2>&1 |
7157    (set) 2>&1 |    case `(ac_space=' '; set | grep ac_space) 2>&1` in
7158      case `(ac_space=' '; set | grep ac_space) 2>&1` in    *ac_space=\ *)
7159      *ac_space=\ *)      # `set' does not quote correctly, so add quotes (double-quote substitution
7160        # `set' does not quote correctly, so add quotes (double-quote      # turns \\\\ into \\, and sed turns \\ into \).
7161        # substitution turns \\\\ into \\, and sed turns \\ into \).      sed -n \
7162        sed -n \        -e "s/'/'\\\\''/g" \
7163          "s/'/'\\\\''/g;        -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7164            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"      ;;
7165        ;;    *)
7166      *)      # `set' quotes correctly as required by POSIX, so do not add quotes.
7167        # `set' quotes correctly as required by POSIX, so do not add quotes.      sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7168        sed -n \      ;;
7169          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"    esac >> confcache
7170        ;;  if cmp -s $cache_file confcache; then
7171      esac;    :
7172  } |  else
   sed '  
      t clear  
      : clear  
      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/  
      t end  
      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/  
      : end' >>confcache  
 if diff $cache_file confcache >/dev/null 2>&1; then :; else  
7173    if test -w $cache_file; then    if test -w $cache_file; then
7174      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"      echo "updating cache $cache_file"
7175      cat confcache >$cache_file      cat confcache > $cache_file
7176    else    else
7177      echo "not updating unwritable cache $cache_file"      echo "not updating unwritable cache $cache_file"
7178    fi    fi
7179  fi  fi
7180  rm -f confcache  rm -f confcache
7181    
7182    trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7183    
7184  test "x$prefix" = xNONE && prefix=$ac_default_prefix  test "x$prefix" = xNONE && prefix=$ac_default_prefix
7185  # Let make expand exec_prefix.  # Let make expand exec_prefix.
7186  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7187    
7188  # VPATH may cause trouble with some makes, so we remove $(srcdir),  # Any assignment to VPATH causes Sun make to only execute
7189  # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and  # the first set of double-colon rules, so remove it if not needed.
7190  # trailing colons and then remove the whole line if VPATH becomes empty  # If there is a colon in the path, we need to keep it.
 # (actually we leave an empty line to preserve line numbers).  
7191  if test "x$srcdir" = x.; then  if test "x$srcdir" = x.; then
7192    ac_vpsub='/^[  ]*VPATH[        ]*=/{    ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 s/:*\$(srcdir):*/:/;  
 s/:*\${srcdir}:*/:/;  
 s/:*@srcdir@:*/:/;  
 s/^\([^=]*=[     ]*\):*/\1/;  
 s/:*$//;  
 s/^[^=]*=[       ]*$//;  
 }'  
7193  fi  fi
7194    
7195  DEFS=-DHAVE_CONFIG_H  trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
   
 ac_libobjs=  
 ac_ltlibobjs=  
 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue  
   # 1. Remove the extension, and $U if already installed.  
   ac_i=`echo "$ac_i" |  
          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`  
   # 2. Add them.  
   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"  
   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'  
 done  
 LIBOBJS=$ac_libobjs  
   
 LTLIBOBJS=$ac_ltlibobjs  
   
7196    
7197    DEFS=-DHAVE_CONFIG_H
7198    
7199    # Without the "./", some shells look in PATH for config.status.
7200  : ${CONFIG_STATUS=./config.status}  : ${CONFIG_STATUS=./config.status}
7201  ac_clean_files_save=$ac_clean_files  
7202  ac_clean_files="$ac_clean_files $CONFIG_STATUS"  echo creating $CONFIG_STATUS
7203  { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5  rm -f $CONFIG_STATUS
7204  echo "$as_me: creating $CONFIG_STATUS" >&6;}  cat > $CONFIG_STATUS <<EOF
7205  cat >$CONFIG_STATUS <<_ACEOF  #! /bin/sh
7206  #! $SHELL  # Generated automatically by configure.
 # Generated by $as_me.  
7207  # Run this file to recreate the current configuration.  # Run this file to recreate the current configuration.
7208    # This directory was configured as follows,
7209    # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7210    #
7211    # $0 $ac_configure_args
7212    #
7213  # Compiler output produced by configure, useful for debugging  # Compiler output produced by configure, useful for debugging
7214  # configure, is in config.log if it exists.  # configure, is in ./config.log if it exists.
   
 debug=false  
 ac_cs_recheck=false  
 ac_cs_silent=false  
 SHELL=\${CONFIG_SHELL-$SHELL}  
 _ACEOF  
   
 cat >>$CONFIG_STATUS <<\_ACEOF  
 ## --------------------- ##  
 ## M4sh Initialization.  ##  
 ## --------------------- ##  
   
 # Be Bourne compatible  
 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then  
   emulate sh  
   NULLCMD=:  
   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which  
   # is contrary to our usage.  Disable this feature.  
   alias -g '${1+"$@"}'='"$@"'  
 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then  
   set -o posix  
 fi  
 DUALCASE=1; export DUALCASE # for MKS sh  
   
 # Support unset when possible.  
 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then  
   as_unset=unset  
 else  
   as_unset=false  
 fi  
7215    
7216    ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7217  # Work around bugs in pre-3.0 UWIN ksh.  for ac_option
 $as_unset ENV MAIL MAILPATH  
 PS1='$ '  
 PS2='> '  
 PS4='+ '  
   
 # NLS nuisances.  
 for as_var in \  
   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \  
   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \  
   LC_TELEPHONE LC_TIME  
 do  
   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then  
     eval $as_var=C; export $as_var  
   else  
     $as_unset $as_var  
   fi  
 done  
   
 # Required to use basename.  
 if expr a : '\(a\)' >/dev/null 2>&1; then  
   as_expr=expr  
 else  
   as_expr=false  
 fi  
   
 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then  
   as_basename=basename  
 else  
   as_basename=false  
 fi  
   
   
 # Name of the executable.  
 as_me=`$as_basename "$0" ||  
 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \  
          X"$0" : 'X\(//\)$' \| \  
          X"$0" : 'X\(/\)$' \| \  
          .     : '\(.\)' 2>/dev/null ||  
 echo X/"$0" |  
     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }  
           /^X\/\(\/\/\)$/{ s//\1/; q; }  
           /^X\/\(\/\).*/{ s//\1/; q; }  
           s/.*/./; q'`  
   
   
 # PATH needs CR, and LINENO needs CR and PATH.  
 # Avoid depending upon Character Ranges.  
 as_cr_letters='abcdefghijklmnopqrstuvwxyz'  
 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'  
 as_cr_Letters=$as_cr_letters$as_cr_LETTERS  
 as_cr_digits='0123456789'  
 as_cr_alnum=$as_cr_Letters$as_cr_digits  
   
 # The user is always right.  
 if test "${PATH_SEPARATOR+set}" != set; then  
   echo "#! /bin/sh" >conf$$.sh  
   echo  "exit 0"   >>conf$$.sh  
   chmod +x conf$$.sh  
   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then  
     PATH_SEPARATOR=';'  
   else  
     PATH_SEPARATOR=:  
   fi  
   rm -f conf$$.sh  
 fi  
   
   
   as_lineno_1=$LINENO  
   as_lineno_2=$LINENO  
   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`  
   test "x$as_lineno_1" != "x$as_lineno_2" &&  
   test "x$as_lineno_3"  = "x$as_lineno_2"  || {  
   # Find who we are.  Look in the path if we contain no path at all  
   # relative or not.  
   case $0 in  
     *[\\/]* ) as_myself=$0 ;;  
     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break  
 done  
   
        ;;  
   esac  
   # We did not find ourselves, most probably we were run as `sh COMMAND'  
   # in which case we are not to be found in the path.  
   if test "x$as_myself" = x; then  
     as_myself=$0  
   fi  
   if test ! -f "$as_myself"; then  
     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5  
 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}  
    { (exit 1); exit 1; }; }  
   fi  
   case $CONFIG_SHELL in  
   '')  
     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   for as_base in sh bash ksh sh5; do  
          case $as_dir in  
          /*)  
            if ("$as_dir/$as_base" -c '  
   as_lineno_1=$LINENO  
   as_lineno_2=$LINENO  
   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`  
   test "x$as_lineno_1" != "x$as_lineno_2" &&  
   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then  
              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }  
              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }  
              CONFIG_SHELL=$as_dir/$as_base  
              export CONFIG_SHELL  
              exec "$CONFIG_SHELL" "$0" ${1+"$@"}  
            fi;;  
          esac  
        done  
 done  
 ;;  
   esac  
   
   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO  
   # uniformly replaced by the line number.  The first 'sed' inserts a  
   # line-number line before each line; the second 'sed' does the real  
   # work.  The second script uses 'N' to pair each line-number line  
   # with the numbered line, and appends trailing '-' during  
   # substitution so that $LINENO is not a special case at line end.  
   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the  
   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)  
   sed '=' <$as_myself |  
     sed '  
       N  
       s,$,-,  
       : loop  
       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,  
       t loop  
       s,-$,,  
       s,^['$as_cr_digits']*\n,,  
     ' >$as_me.lineno &&  
   chmod +x $as_me.lineno ||  
     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5  
 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}  
    { (exit 1); exit 1; }; }  
   
   # Don't try to exec as it changes $[0], causing all sort of problems  
   # (the dirname of $[0] is not the place where we might find the  
   # original and so on.  Autoconf is especially sensible to this).  
   . ./$as_me.lineno  
   # Exit status is that of the last command.  
   exit  
 }  
   
   
 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in  
   *c*,-n*) ECHO_N= ECHO_C='  
 ' ECHO_T='      ' ;;  
   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;  
   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;  
 esac  
   
 if expr a : '\(a\)' >/dev/null 2>&1; then  
   as_expr=expr  
 else  
   as_expr=false  
 fi  
   
 rm -f conf$$ conf$$.exe conf$$.file  
 echo >conf$$.file  
 if ln -s conf$$.file conf$$ 2>/dev/null; then  
   # We could just check for DJGPP; but this test a) works b) is more generic  
   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).  
   if test -f conf$$.exe; then  
     # Don't use ln at all; we don't have any links  
     as_ln_s='cp -p'  
   else  
     as_ln_s='ln -s'  
   fi  
 elif ln conf$$.file conf$$ 2>/dev/null; then  
   as_ln_s=ln  
 else  
   as_ln_s='cp -p'  
 fi  
 rm -f conf$$ conf$$.exe conf$$.file  
   
 if mkdir -p . 2>/dev/null; then  
   as_mkdir_p=:  
 else  
   test -d ./-p && rmdir ./-p  
   as_mkdir_p=false  
 fi  
   
 as_executable_p="test -f"  
   
 # Sed expression to map a string onto a valid CPP name.  
 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"  
   
 # Sed expression to map a string onto a valid variable name.  
 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"  
   
   
 # IFS  
 # We need space, tab and new line, in precisely that order.  
 as_nl='  
 '  
 IFS="   $as_nl"  
   
 # CDPATH.  
 $as_unset CDPATH  
   
 exec 6>&1  
   
 # Open the log real soon, to keep \$[0] and so on meaningful, and to  
 # report actual input values of CONFIG_FILES etc. instead of their  
 # values after options handling.  Logging --version etc. is OK.  
 exec 5>>config.log  
 {  
   echo  
   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX  
 ## Running $as_me. ##  
 _ASBOX  
 } >&5  
 cat >&5 <<_CSEOF  
   
 This file was extended by $as_me, which was  
 generated by GNU Autoconf 2.59.  Invocation command line was  
   
   CONFIG_FILES    = $CONFIG_FILES  
   CONFIG_HEADERS  = $CONFIG_HEADERS  
   CONFIG_LINKS    = $CONFIG_LINKS  
   CONFIG_COMMANDS = $CONFIG_COMMANDS  
   $ $0 $@  
   
 _CSEOF  
 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5  
 echo >&5  
 _ACEOF  
   
 # Files that config.status was made for.  
 if test -n "$ac_config_files"; then  
   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS  
 fi  
   
 if test -n "$ac_config_headers"; then  
   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS  
 fi  
   
 if test -n "$ac_config_links"; then  
   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS  
 fi  
   
 if test -n "$ac_config_commands"; then  
   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS  
 fi  
   
 cat >>$CONFIG_STATUS <<\_ACEOF  
   
 ac_cs_usage="\  
 \`$as_me' instantiates files from templates according to the  
 current configuration.  
   
 Usage: $0 [OPTIONS] [FILE]...  
   
   -h, --help       print this help, then exit  
   -V, --version    print version number, then exit  
   -q, --quiet      do not print progress messages  
   -d, --debug      don't remove temporary files  
       --recheck    update $as_me by reconfiguring in the same conditions  
   --file=FILE[:TEMPLATE]  
                    instantiate the configuration file FILE  
   --header=FILE[:TEMPLATE]  
                    instantiate the configuration header FILE  
   
 Configuration files:  
 $config_files  
   
 Configuration headers:  
 $config_headers  
   
 Report bugs to <bug-autoconf@gnu.org>."  
 _ACEOF  
   
 cat >>$CONFIG_STATUS <<_ACEOF  
 ac_cs_version="\\  
 config.status  
 configured by $0, generated by GNU Autoconf 2.59,  
   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"  
   
 Copyright (C) 2003 Free Software Foundation, Inc.  
 This config.status script is free software; the Free Software Foundation  
 gives unlimited permission to copy, distribute and modify it."  
 srcdir=$srcdir  
 _ACEOF  
   
 cat >>$CONFIG_STATUS <<\_ACEOF  
 # If no file are specified by the user, then we need to provide default  
 # value.  By we need to know if files were specified by the user.  
 ac_need_defaults=:  
 while test $# != 0  
7218  do  do
7219    case $1 in    case "\$ac_option" in
   --*=*)  
     ac_option=`expr "x$1" : 'x\([^=]*\)='`  
     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`  
     ac_shift=:  
     ;;  
   -*)  
     ac_option=$1  
     ac_optarg=$2  
     ac_shift=shift  
     ;;  
   *) # This is not an option, so the user has probably given explicit  
      # arguments.  
      ac_option=$1  
      ac_need_defaults=false;;  
   esac  
   
   case $ac_option in  
   # Handling of the options.  
 _ACEOF  
 cat >>$CONFIG_STATUS <<\_ACEOF  
7220    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7221      ac_cs_recheck=: ;;      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7222    --version | --vers* | -V )      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7223      echo "$ac_cs_version"; exit 0 ;;    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7224    --he | --h)      echo "$CONFIG_STATUS generated by autoconf version 2.13"
7225      # Conflict between --help and --header      exit 0 ;;
7226      { { echo "$as_me:$LINENO: error: ambiguous option: $1    -help | --help | --hel | --he | --h)
7227  Try \`$0 --help' for more information." >&5      echo "\$ac_cs_usage"; exit 0 ;;
7228  echo "$as_me: error: ambiguous option: $1    *) echo "\$ac_cs_usage"; exit 1 ;;
 Try \`$0 --help' for more information." >&2;}  
    { (exit 1); exit 1; }; };;  
   --help | --hel | -h )  
     echo "$ac_cs_usage"; exit 0 ;;  
   --debug | --d* | -d )  
     debug=: ;;  
   --file | --fil | --fi | --f )  
     $ac_shift  
     CONFIG_FILES="$CONFIG_FILES $ac_optarg"  
     ac_need_defaults=false;;  
   --header | --heade | --head | --hea )  
     $ac_shift  
     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"  
     ac_need_defaults=false;;  
   -q | -quiet | --quiet | --quie | --qui | --qu | --q \  
   | -silent | --silent | --silen | --sile | --sil | --si | --s)  
     ac_cs_silent=: ;;  
   
   # This is an error.  
   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1  
 Try \`$0 --help' for more information." >&5  
 echo "$as_me: error: unrecognized option: $1  
 Try \`$0 --help' for more information." >&2;}  
    { (exit 1); exit 1; }; } ;;  
   
   *) ac_config_targets="$ac_config_targets $1" ;;  
   
7229    esac    esac
   shift  
7230  done  done
7231    
7232  ac_configure_extra_args=  ac_given_srcdir=$srcdir
   
 if $ac_cs_silent; then  
   exec 6>/dev/null  
   ac_configure_extra_args="$ac_configure_extra_args --silent"  
 fi  
   
 _ACEOF  
 cat >>$CONFIG_STATUS <<_ACEOF  
 if \$ac_cs_recheck; then  
   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6  
   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion  
 fi  
   
 _ACEOF  
   
   
   
   
   
 cat >>$CONFIG_STATUS <<\_ACEOF  
 for ac_config_target in $ac_config_targets  
 do  
   case "$ac_config_target" in  
   # Handling of arguments.  
   "makedefc" ) CONFIG_FILES="$CONFIG_FILES makedefc" ;;  
   "windows/gcl.iss" ) CONFIG_FILES="$CONFIG_FILES windows/gcl.iss" ;;  
   "windows/sysdir.bat" ) CONFIG_FILES="$CONFIG_FILES windows/sysdir.bat" ;;  
   "windows/install.lsp" ) CONFIG_FILES="$CONFIG_FILES windows/install.lsp" ;;  
   "h/gclincl.h" ) CONFIG_HEADERS="$CONFIG_HEADERS h/gclincl.h" ;;  
   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5  
 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}  
    { (exit 1); exit 1; }; };;  
   esac  
 done  
   
 # If the user did not use the arguments to specify the items to instantiate,  
 # then the envvar interface is used.  Set only those that are not.  
 # We use the long form for the default assignment because of an extremely  
 # bizarre bug on SunOS 4.1.3.  
 if $ac_need_defaults; then  
   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files  
   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers  
 fi  
   
 # Have a temporary directory for convenience.  Make it in the build tree  
 # simply because there is no reason to put it here, and in addition,  
 # creating and moving files from /tmp can sometimes cause problems.  
 # Create a temporary directory, and hook for its removal unless debugging.  
 $debug ||  
 {  
   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0  
   trap '{ (exit 1); exit 1; }' 1 2 13 15  
 }  
   
 # Create a (secure) tmp directory for tmp files.  
   
 {  
   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&  
   test -n "$tmp" && test -d "$tmp"  
 }  ||  
 {  
   tmp=./confstat$$-$RANDOM  
   (umask 077 && mkdir $tmp)  
 } ||  
 {  
    echo "$me: cannot create a temporary directory in ." >&2  
    { (exit 1); exit 1; }  
 }  
   
 _ACEOF  
7233    
7234  cat >>$CONFIG_STATUS <<_ACEOF  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
7235    EOF
7236    cat >> $CONFIG_STATUS <<EOF
7237    
7238  #  # Protect against being on the right side of a sed subst in config.status.
7239  # CONFIG_FILES section.  sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7240  #   s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7241    $ac_vpsub
7242    $extrasub
7243    s%@SHELL@%$SHELL%g
7244    s%@CFLAGS@%$CFLAGS%g
7245    s%@CPPFLAGS@%$CPPFLAGS%g
7246    s%@CXXFLAGS@%$CXXFLAGS%g
7247    s%@FFLAGS@%$FFLAGS%g
7248    s%@DEFS@%$DEFS%g
7249    s%@LDFLAGS@%$LDFLAGS%g
7250    s%@LIBS@%$LIBS%g
7251    s%@exec_prefix@%$exec_prefix%g
7252    s%@prefix@%$prefix%g
7253    s%@program_transform_name@%$program_transform_name%g
7254    s%@bindir@%$bindir%g
7255    s%@sbindir@%$sbindir%g
7256    s%@libexecdir@%$libexecdir%g
7257    s%@datadir@%$datadir%g
7258    s%@sysconfdir@%$sysconfdir%g
7259    s%@sharedstatedir@%$sharedstatedir%g
7260    s%@localstatedir@%$localstatedir%g
7261    s%@libdir@%$libdir%g
7262    s%@includedir@%$includedir%g
7263    s%@oldincludedir@%$oldincludedir%g
7264    s%@infodir@%$infodir%g
7265    s%@mandir@%$mandir%g
7266    s%@VERSION@%$VERSION%g
7267    s%@host@%$host%g
7268    s%@host_alias@%$host_alias%g
7269    s%@host_cpu@%$host_cpu%g
7270    s%@host_vendor@%$host_vendor%g
7271    s%@host_os@%$host_os%g
7272    s%@PROCESSOR_FLAGS@%$PROCESSOR_FLAGS%g
7273    s%@CC@%$CC%g
7274    s%@CPP@%$CPP%g
7275    s%@AWK@%$AWK%g
7276    s%@MAKEINFO@%$MAKEINFO%g
7277    s%@GMP@%$GMP%g
7278    s%@GMPDIR@%$GMPDIR%g
7279    s%@X_CFLAGS@%$X_CFLAGS%g
7280    s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7281    s%@X_LIBS@%$X_LIBS%g
7282    s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7283    s%@BUILD_BFD@%$BUILD_BFD%g
7284    s%@LITTLE_END@%$LITTLE_END%g
7285    s%@PAGEWIDTH@%$PAGEWIDTH%g
7286    s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g
7287    s%@FLISP@%$FLISP%g
7288    s%@SYSTEM@%$SYSTEM%g
7289    s%@CLSTANDARD@%$CLSTANDARD%g
7290    s%@RL_OBJS@%$RL_OBJS%g
7291    s%@RL_LIB@%$RL_LIB%g
7292    s%@NO_PROFILE@%$NO_PROFILE%g
7293    s%@HAVE_SETENV@%$HAVE_SETENV%g
7294    s%@HAVE_PUTENV@%$HAVE_PUTENV%g
7295    s%@USE_CLEANUP@%$USE_CLEANUP%g
7296    s%@ENDIAN_ALREADY_DEFINED@%$ENDIAN_ALREADY_DEFINED%g
7297    s%@HAVE_SV_ONSTACK@%$HAVE_SV_ONSTACK%g
7298    s%@HAVE_SIGSYS@%$HAVE_SIGSYS%g
7299    s%@HAVE_SIGEMT@%$HAVE_SIGEMT%g
7300    s%@EMACS@%$EMACS%g
7301    s%@EMACS_SITE_LISP@%$EMACS_SITE_LISP%g
7302    s%@EMACS_DEFAULT_EL@%$EMACS_DEFAULT_EL%g
7303    s%@INFO_DIR@%$INFO_DIR%g
7304    s%@TCLSH@%$TCLSH%g
7305    s%@TK_CONFIG_PREFIX@%$TK_CONFIG_PREFIX%g
7306    s%@TK_LIBRARY@%$TK_LIBRARY%g
7307    s%@TCL_LIBRARY@%$TCL_LIBRARY%g
7308    s%@TK_XINCLUDES@%$TK_XINCLUDES%g
7309    s%@TK_INCLUDE@%$TK_INCLUDE%g
7310    s%@TCL_INCLUDE@%$TCL_INCLUDE%g
7311    s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
7312    s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
7313    s%@TK_XLIBSW@%$TK_XLIBSW%g
7314    s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
7315    s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
7316    s%@TCL_LIBS@%$TCL_LIBS%g
7317    s%@TCL_STUB_LIBS@%$TCL_STUB_LIBS%g
7318    s%@NOTIFY@%$NOTIFY%g
7319    s%@BROKEN_O4_OPT@%$BROKEN_O4_OPT%g
7320    s%@FINAL_CFLAGS@%$FINAL_CFLAGS%g
7321    s%@NIFLAGS@%$NIFLAGS%g
7322    s%@O3FLAGS@%$O3FLAGS%g
7323    s%@O2FLAGS@%$O2FLAGS%g
7324    s%@EXTRA_LOBJS@%$EXTRA_LOBJS%g
7325    s%@LEADING_UNDERSCORE@%$LEADING_UNDERSCORE%g
7326    s%@GNU_LD@%$GNU_LD%g
7327    s%@LD_STACK_FLAGS@%$LD_STACK_FLAGS%g
7328    s%@use@%$use%g
7329    
 # No need to generate the scripts if there are no CONFIG_FILES.  
 # This happens for instance when ./config.status config.h  
 if test -n "\$CONFIG_FILES"; then  
   # Protect against being on the right side of a sed subst in config.status.  
   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;  
    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF  
 s,@SHELL@,$SHELL,;t t  
 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t  
 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t  
 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t  
 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t  
 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t  
 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t  
 s,@exec_prefix@,$exec_prefix,;t t  
 s,@prefix@,$prefix,;t t  
 s,@program_transform_name@,$program_transform_name,;t t  
 s,@bindir@,$bindir,;t t  
 s,@sbindir@,$sbindir,;t t  
 s,@libexecdir@,$libexecdir,;t t  
 s,@datadir@,$datadir,;t t  
 s,@sysconfdir@,$sysconfdir,;t t  
 s,@sharedstatedir@,$sharedstatedir,;t t  
 s,@localstatedir@,$localstatedir,;t t  
 s,@libdir@,$libdir,;t t  
 s,@includedir@,$includedir,;t t  
 s,@oldincludedir@,$oldincludedir,;t t  
 s,@infodir@,$infodir,;t t  
 s,@mandir@,$mandir,;t t  
 s,@build_alias@,$build_alias,;t t  
 s,@host_alias@,$host_alias,;t t  
 s,@target_alias@,$target_alias,;t t  
 s,@DEFS@,$DEFS,;t t  
 s,@ECHO_C@,$ECHO_C,;t t  
 s,@ECHO_N@,$ECHO_N,;t t  
 s,@ECHO_T@,$ECHO_T,;t t  
 s,@LIBS@,$LIBS,;t t  
 s,@VERSION@,$VERSION,;t t  
 s,@build@,$build,;t t  
 s,@build_cpu@,$build_cpu,;t t  
 s,@build_vendor@,$build_vendor,;t t  
 s,@build_os@,$build_os,;t t  
 s,@host@,$host,;t t  
 s,@host_cpu@,$host_cpu,;t t  
 s,@host_vendor@,$host_vendor,;t t  
 s,@host_os@,$host_os,;t t  
 s,@PROCESSOR_FLAGS@,$PROCESSOR_FLAGS,;t t  
 s,@CC@,$CC,;t t  
 s,@CFLAGS@,$CFLAGS,;t t  
 s,@LDFLAGS@,$LDFLAGS,;t t  
 s,@CPPFLAGS@,$CPPFLAGS,;t t  
 s,@ac_ct_CC@,$ac_ct_CC,;t t  
 s,@EXEEXT@,$EXEEXT,;t t  
 s,@OBJEXT@,$OBJEXT,;t t  
 s,@CPP@,$CPP,;t t  
 s,@AWK@,$AWK,;t t  
 s,@MAKEINFO@,$MAKEINFO,;t t  
 s,@EGREP@,$EGREP,;t t  
 s,@GMP@,$GMP,;t t  
 s,@GMPDIR@,$GMPDIR,;t t  
 s,@X_CFLAGS@,$X_CFLAGS,;t t  
 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t  
 s,@X_LIBS@,$X_LIBS,;t t  
 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t  
 s,@BUILD_BFD@,$BUILD_BFD,;t t  
 s,@LITTLE_END@,$LITTLE_END,;t t  
 s,@HAVE_LONG_LONG@,$HAVE_LONG_LONG,;t t  
 s,@FLISP@,$FLISP,;t t  
 s,@SYSTEM@,$SYSTEM,;t t  
 s,@CLSTANDARD@,$CLSTANDARD,;t t  
 s,@PAGEWIDTH@,$PAGEWIDTH,;t t  
 s,@RL_OBJS@,$RL_OBJS,;t t  
 s,@RL_LIB@,$RL_LIB,;t t  
 s,@NO_PROFILE@,$NO_PROFILE,;t t  
 s,@HAVE_SETENV@,$HAVE_SETENV,;t t  
 s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t  
 s,@USE_CLEANUP@,$USE_CLEANUP,;t t  
 s,@ENDIAN_ALREADY_DEFINED@,$ENDIAN_ALREADY_DEFINED,;t t  
 s,@HAVE_SV_ONSTACK@,$HAVE_SV_ONSTACK,;t t  
 s,@HAVE_SIGSYS@,$HAVE_SIGSYS,;t t  
 s,@HAVE_SIGEMT@,$HAVE_SIGEMT,;t t  
 s,@EMACS@,$EMACS,;t t  
 s,@EMACS_SITE_LISP@,$EMACS_SITE_LISP,;t t  
 s,@EMACS_DEFAULT_EL@,$EMACS_DEFAULT_EL,;t t  
 s,@INFO_DIR@,$INFO_DIR,;t t  
 s,@TCLSH@,$TCLSH,;t t  
 s,@TK_CONFIG_PREFIX@,$TK_CONFIG_PREFIX,;t t  
 s,@TK_LIBRARY@,$TK_LIBRARY,;t t  
 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t  
 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t  
 s,@TK_INCLUDE@,$TK_INCLUDE,;t t  
 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t  
 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t  
 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t  
 s,@TK_XLIBSW@,$TK_XLIBSW,;t t  
 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t  
 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t  
 s,@TCL_LIBS@,$TCL_LIBS,;t t  
 s,@TCL_STUB_LIBS@,$TCL_STUB_LIBS,;t t  
 s,@NOTIFY@,$NOTIFY,;t t  
 s,@BROKEN_O4_OPT@,$BROKEN_O4_OPT,;t t  
 s,@FINAL_CFLAGS@,$FINAL_CFLAGS,;t t  
 s,@NIFLAGS@,$NIFLAGS,;t t  
 s,@O3FLAGS@,$O3FLAGS,;t t  
 s,@O2FLAGS@,$O2FLAGS,;t t  
 s,@EXTRA_LOBJS@,$EXTRA_LOBJS,;t t  
 s,@LEADING_UNDERSCORE@,$LEADING_UNDERSCORE,;t t  
 s,@GNU_LD@,$GNU_LD,;t t  
 s,@LD_STACK_FLAGS@,$LD_STACK_FLAGS,;t t  
 s,@use@,$use,;t t  
 s,@LIBOBJS@,$LIBOBJS,;t t  
 s,@LTLIBOBJS@,$LTLIBOBJS,;t t  
7330  CEOF  CEOF
7331    EOF
7332    
7333  _ACEOF  cat >> $CONFIG_STATUS <<\EOF
7334    
7335    cat >>$CONFIG_STATUS <<\_ACEOF  # Split the substitutions into bite-sized pieces for seds with
7336    # Split the substitutions into bite-sized pieces for seds with  # small command number limits, like on Digital OSF/1 and HP-UX.
7337    # small command number limits, like on Digital OSF/1 and HP-UX.  ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7338    ac_max_sed_lines=48  ac_file=1 # Number of current file.
7339    ac_sed_frag=1 # Number of current file.  ac_beg=1 # First line for current file.
7340    ac_beg=1 # First line for current file.  ac_end=$ac_max_sed_cmds # Line after last line for current file.
7341    ac_end=$ac_max_sed_lines # Line after last line for current file.  ac_more_lines=:
7342    ac_more_lines=:  ac_sed_cmds=""
7343    ac_sed_cmds=  while $ac_more_lines; do
7344    while $ac_more_lines; do    if test $ac_beg -gt 1; then
7345      if test $ac_beg -gt 1; then      sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7346        sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag    else
7347      else      sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7348        sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag    fi
7349      fi    if test ! -s conftest.s$ac_file; then
7350      if test ! -s $tmp/subs.frag; then      ac_more_lines=false
7351        ac_more_lines=false      rm -f conftest.s$ac_file
7352      else
7353        if test -z "$ac_sed_cmds"; then
7354          ac_sed_cmds="sed -f conftest.s$ac_file"
7355      else      else
7356        # The purpose of the label and of the branching condition is to        ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
       # speed up the sed processing (if there are no `@' at all, there  
       # is no need to browse any of the substitutions).  
       # These are the two extra sed commands mentioned above.  
       (echo ':t  
   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed  
       if test -z "$ac_sed_cmds"; then  
         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"  
       else  
         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"  
       fi  
       ac_sed_frag=`expr $ac_sed_frag + 1`  
       ac_beg=$ac_end  
       ac_end=`expr $ac_end + $ac_max_sed_lines`  
7357      fi      fi
7358    done      ac_file=`expr $ac_file + 1`
7359    if test -z "$ac_sed_cmds"; then      ac_beg=$ac_end
7360      ac_sed_cmds=cat      ac_end=`expr $ac_end + $ac_max_sed_cmds`
7361    fi    fi
7362  fi # test -n "$CONFIG_FILES"  done
7363    if test -z "$ac_sed_cmds"; then
7364      ac_sed_cmds=cat
7365    fi
7366    EOF
7367    
7368    cat >> $CONFIG_STATUS <<EOF
7369    
7370  _ACEOF  CONFIG_FILES=\${CONFIG_FILES-"makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp"}
7371  cat >>$CONFIG_STATUS <<\_ACEOF  EOF
7372  for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue  cat >> $CONFIG_STATUS <<\EOF
7373    for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7374    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7375    case $ac_file in    case "$ac_file" in
7376    - | *:- | *:-:* ) # input from stdin    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7377          cat >$tmp/stdin         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7378          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`    *) ac_file_in="${ac_file}.in" ;;
         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;  
   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`  
         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;  
   * )   ac_file_in=$ac_file.in ;;  
7379    esac    esac
7380    
7381    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.    # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
   ac_dir=`(dirname "$ac_file") 2>/dev/null ||  
 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \  
          X"$ac_file" : 'X\(//\)[^/]' \| \  
          X"$ac_file" : 'X\(//\)$' \| \  
          X"$ac_file" : 'X\(/\)' \| \  
          .     : '\(.\)' 2>/dev/null ||  
 echo X"$ac_file" |  
     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }  
           /^X\(\/\/\)[^/].*/{ s//\1/; q; }  
           /^X\(\/\/\)$/{ s//\1/; q; }  
           /^X\(\/\).*/{ s//\1/; q; }  
           s/.*/./; q'`  
   { if $as_mkdir_p; then  
     mkdir -p "$ac_dir"  
   else  
     as_dir="$ac_dir"  
     as_dirs=  
     while test ! -d "$as_dir"; do  
       as_dirs="$as_dir $as_dirs"  
       as_dir=`(dirname "$as_dir") 2>/dev/null ||  
 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \  
          X"$as_dir" : 'X\(//\)[^/]' \| \  
          X"$as_dir" : 'X\(//\)$' \| \  
          X"$as_dir" : 'X\(/\)' \| \  
          .     : '\(.\)' 2>/dev/null ||  
 echo X"$as_dir" |  
     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }  
           /^X\(\/\/\)[^/].*/{ s//\1/; q; }  
           /^X\(\/\/\)$/{ s//\1/; q; }  
           /^X\(\/\).*/{ s//\1/; q; }  
           s/.*/./; q'`  
     done  
     test ! -n "$as_dirs" || mkdir $as_dirs  
   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5  
 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}  
    { (exit 1); exit 1; }; }; }  
   
   ac_builddir=.  
   
 if test "$ac_dir" != .; then  
   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`  
   # A "../" for each directory in $ac_dir_suffix.  
   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`  
 else  
   ac_dir_suffix= ac_top_builddir=  
 fi  
   
 case $srcdir in  
   .)  # No --srcdir option.  We are building in place.  
     ac_srcdir=.  
     if test -z "$ac_top_builddir"; then  
        ac_top_srcdir=.  
     else  
        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`  
     fi ;;  
   [\\/]* | ?:[\\/]* )  # Absolute path.  
     ac_srcdir=$srcdir$ac_dir_suffix;  
     ac_top_srcdir=$srcdir ;;  
   *) # Relative path.  
     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix  
     ac_top_srcdir=$ac_top_builddir$srcdir ;;  
 esac  
   
 # Do not use `cd foo && pwd` to compute absolute paths, because  
 # the directories may not exist.  
 case `pwd` in  
 .) ac_abs_builddir="$ac_dir";;  
 *)  
   case "$ac_dir" in  
   .) ac_abs_builddir=`pwd`;;  
   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;  
   *) ac_abs_builddir=`pwd`/"$ac_dir";;  
   esac;;  
 esac  
 case $ac_abs_builddir in  
 .) ac_abs_top_builddir=${ac_top_builddir}.;;  
 *)  
   case ${ac_top_builddir}. in  
   .) ac_abs_top_builddir=$ac_abs_builddir;;  
   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;  
   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;  
   esac;;  
 esac  
 case $ac_abs_builddir in  
 .) ac_abs_srcdir=$ac_srcdir;;  
 *)  
   case $ac_srcdir in  
   .) ac_abs_srcdir=$ac_abs_builddir;;  
   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;  
   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;  
   esac;;  
 esac  
 case $ac_abs_builddir in  
 .) ac_abs_top_srcdir=$ac_top_srcdir;;  
 *)  
   case $ac_top_srcdir in  
   .) ac_abs_top_srcdir=$ac_abs_builddir;;  
   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;  
   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;  
   esac;;  
 esac  
   
   
7382    
7383    if test x"$ac_file" != x-; then    # Remove last slash and all that follows it.  Not all systems have dirname.
7384      { echo "$as_me:$LINENO: creating $ac_file" >&5    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7385  echo "$as_me: creating $ac_file" >&6;}    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7386      rm -f "$ac_file"      # The file is in a subdirectory.
7387    fi      test ! -d "$ac_dir" && mkdir "$ac_dir"
7388    # Let's still pretend it is `configure' which instantiates (i.e., don't      ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7389    # use $as_me), people would be surprised to read:      # A "../" for each directory in $ac_dir_suffix.
7390    #    /* config.h.  Generated by config.status.  */      ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7391    if test x"$ac_file" = x-; then    else
7392      configure_input=      ac_dir_suffix= ac_dots=
7393    else    fi
7394      configure_input="$ac_file.  "  
7395    fi    case "$ac_given_srcdir" in
7396    configure_input=$configure_input"Generated from `echo $ac_file_in |    .)  srcdir=.
7397                                       sed 's,.*/,,'` by configure."        if test -z "$ac_dots"; then top_srcdir=.
7398          else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7399      /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7400      *) # Relative path.
7401        srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7402        top_srcdir="$ac_dots$ac_given_srcdir" ;;
7403      esac
7404    
   # First look for the input files in the build tree, otherwise in the  
   # src tree.  
   ac_file_inputs=`IFS=:  
     for f in $ac_file_in; do  
       case $f in  
       -) echo $tmp/stdin ;;  
       [\\/$]*)  
          # Absolute (can't be DOS-style, as IFS=:)  
          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5  
 echo "$as_me: error: cannot find input file: $f" >&2;}  
    { (exit 1); exit 1; }; }  
          echo "$f";;  
       *) # Relative  
          if test -f "$f"; then  
            # Build tree  
            echo "$f"  
          elif test -f "$srcdir/$f"; then  
            # Source tree  
            echo "$srcdir/$f"  
          else  
            # /dev/null tree  
            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5  
 echo "$as_me: error: cannot find input file: $f" >&2;}  
    { (exit 1); exit 1; }; }  
          fi;;  
       esac  
     done` || { (exit 1); exit 1; }  
 _ACEOF  
 cat >>$CONFIG_STATUS <<_ACEOF  
   sed "$ac_vpsub  
 $extrasub  
 _ACEOF  
 cat >>$CONFIG_STATUS <<\_ACEOF  
 :t  
 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b  
 s,@configure_input@,$configure_input,;t t  
 s,@srcdir@,$ac_srcdir,;t t  
 s,@abs_srcdir@,$ac_abs_srcdir,;t t  
 s,@top_srcdir@,$ac_top_srcdir,;t t  
 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t  
 s,@builddir@,$ac_builddir,;t t  
 s,@abs_builddir@,$ac_abs_builddir,;t t  
 s,@top_builddir@,$ac_top_builddir,;t t  
 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t  
 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out  
   rm -f $tmp/stdin  
   if test x"$ac_file" != x-; then  
     mv $tmp/out $ac_file  
   else  
     cat $tmp/out  
     rm -f $tmp/out  
   fi  
7405    
7406  done    echo creating "$ac_file"
7407  _ACEOF    rm -f "$ac_file"
7408  cat >>$CONFIG_STATUS <<\_ACEOF    configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7409      case "$ac_file" in
7410      *Makefile*) ac_comsub="1i\\
7411    # $configure_input" ;;
7412      *) ac_comsub= ;;
7413      esac
7414    
7415  #    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7416  # CONFIG_HEADER section.    sed -e "$ac_comsub
7417  #  s%@configure_input@%$configure_input%g
7418    s%@srcdir@%$srcdir%g
7419    s%@top_srcdir@%$top_srcdir%g
7420    " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7421    fi; done
7422    rm -f conftest.s*
7423    
7424  # 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
7425  # 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.
7426  #  #
7427  # ac_d sets the value in "#define NAME VALUE" lines.  # ac_d sets the value in "#define NAME VALUE" lines.
7428  ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'  ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7429  ac_dB='[         ].*$,\1#\2'  ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
7430  ac_dC=' '  ac_dC='\3'
7431  ac_dD=',;t'  ac_dD='%g'
7432  # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".  # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7433  ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'  ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7434  ac_uB='$,\1#\2define\3'  ac_uB='\([      ]\)%\1#\2define\3'
7435  ac_uC=' '  ac_uC=' '
7436  ac_uD=',;t'  ac_uD='\4%g'
7437    # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7438    ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7439    ac_eB='$%\1#\2define\3'
7440    ac_eC=' '
7441    ac_eD='%g'
7442    
7443  for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue  if test "${CONFIG_HEADERS+set}" != set; then
7444    EOF
7445    cat >> $CONFIG_STATUS <<EOF
7446      CONFIG_HEADERS="h/gclincl.h"
7447    EOF
7448    cat >> $CONFIG_STATUS <<\EOF
7449    fi
7450    for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7451    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7452    case $ac_file in    case "$ac_file" in
7453    - | *:- | *:-:* ) # input from stdin    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7454          cat >$tmp/stdin         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7455          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`    *) ac_file_in="${ac_file}.in" ;;
         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;  
   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`  
         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;  
   * )   ac_file_in=$ac_file.in ;;  
7456    esac    esac
7457    
7458    test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5    echo creating $ac_file
 echo "$as_me: creating $ac_file" >&6;}  
7459    
7460    # First look for the input files in the build tree, otherwise in the    rm -f conftest.frag conftest.in conftest.out
7461    # src tree.    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7462    ac_file_inputs=`IFS=:    cat $ac_file_inputs > conftest.in
7463      for f in $ac_file_in; do  
7464        case $f in  EOF
7465        -) echo $tmp/stdin ;;  
7466        [\\/$]*)  # Transform confdefs.h into a sed script conftest.vals that substitutes
7467           # Absolute (can't be DOS-style, as IFS=:)  # the proper values into config.h.in to produce config.h.  And first:
7468           test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5  # Protect against being on the right side of a sed subst in config.status.
7469  echo "$as_me: error: cannot find input file: $f" >&2;}  # Protect against being in an unquoted here document in config.status.
7470     { (exit 1); exit 1; }; }  rm -f conftest.vals
7471           # Do quote $f, to prevent DOS paths from being IFS'd.  cat > conftest.hdr <<\EOF
7472           echo "$f";;  s/[\\&%]/\\&/g
7473        *) # Relative  s%[\\$`]%\\&%g
7474           if test -f "$f"; then  s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7475             # Build tree  s%ac_d%ac_u%gp
7476             echo "$f"  s%ac_u%ac_e%gp
7477           elif test -f "$srcdir/$f"; then  EOF
7478             # Source tree  sed -n -f conftest.hdr confdefs.h > conftest.vals
7479             echo "$srcdir/$f"  rm -f conftest.hdr
          else  
            # /dev/null tree  
            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5  
 echo "$as_me: error: cannot find input file: $f" >&2;}  
    { (exit 1); exit 1; }; }  
          fi;;  
       esac  
     done` || { (exit 1); exit 1; }  
   # Remove the trailing spaces.  
   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in  
   
 _ACEOF  
   
 # Transform confdefs.h into two sed scripts, `conftest.defines' and  
 # `conftest.undefs', that substitutes the proper values into  
 # config.h.in to produce config.h.  The first handles `#define'  
 # templates, and the second `#undef' templates.  
 # And first: Protect against being on the right side of a sed subst in  
 # config.status.  Protect against being in an unquoted here document  
 # in config.status.  
 rm -f conftest.defines conftest.undefs  
 # Using a here document instead of a string reduces the quoting nightmare.  
 # Putting comments in sed scripts is not portable.  
 #  
 # `end' is used to avoid that the second main sed command (meant for  
 # 0-ary CPP macros) applies to n-ary macro definitions.  
 # See the Autoconf documentation for `clear'.  
 cat >confdef2sed.sed <<\_ACEOF  
 s/[\\&,]/\\&/g  
 s,[\\$`],\\&,g  
 t clear  
 : clear  
 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp  
 t end  
 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp  
 : end  
 _ACEOF  
 # If some macros were called several times there might be several times  
 # the same #defines, which is useless.  Nevertheless, we may not want to  
 # sort them, since we want the *last* AC-DEFINE to be honored.  
 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines  
 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs  
 rm -f confdef2sed.sed  
7480    
7481  # This sed command replaces #undef with comments.  This is necessary, for  # This sed command replaces #undef with comments.  This is necessary, for
7482  # example, in the case of _POSIX_SOURCE, which is predefined and required  # example, in the case of _POSIX_SOURCE, which is predefined and required
7483  # on some systems where configure will not decide to define it.  # on some systems where configure will not decide to define it.
7484  cat >>conftest.undefs <<\_ACEOF  cat >> conftest.vals <<\EOF
7485  s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,  s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7486  _ACEOF  EOF
7487    
7488  # Break up conftest.defines because some shells have a limit on the size  # Break up conftest.vals because some shells have a limit on
7489  # of here documents, and old seds have small limits too (100 cmds).  # the size of here documents, and old seds have small limits too.
7490  echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS  
 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS  
 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS  
 echo '  :' >>$CONFIG_STATUS  
 rm -f conftest.tail  
 while grep . conftest.defines >/dev/null  
 do  
   # Write a limited-size here document to $tmp/defines.sed.  
   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS  
   # Speed up: don't consider the non `#define' lines.  
   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS  
   # Work around the forget-to-reset-the-flag bug.  
   echo 't clr' >>$CONFIG_STATUS  
   echo ': clr' >>$CONFIG_STATUS  
   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS  
   echo 'CEOF  
   sed -f $tmp/defines.sed $tmp/in >$tmp/out  
   rm -f $tmp/in  
   mv $tmp/out $tmp/in  
 ' >>$CONFIG_STATUS  
   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail  
   rm -f conftest.defines  
   mv conftest.tail conftest.defines  
 done  
 rm -f conftest.defines  
 echo '  fi # grep' >>$CONFIG_STATUS  
 echo >>$CONFIG_STATUS  
   
 # Break up conftest.undefs because some shells have a limit on the size  
 # of here documents, and old seds have small limits too (100 cmds).  
 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS  
7491  rm -f conftest.tail  rm -f conftest.tail
7492  while grep . conftest.undefs >/dev/null  while :
7493  do  do
7494    # Write a limited-size here document to $tmp/undefs.sed.    ac_lines=`grep -c . conftest.vals`
7495    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS    # grep -c gives empty output for an empty file on some AIX systems.
7496    # Speed up: don't consider the non `#undef'    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7497    echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS    # Write a limited-size here document to conftest.frag.
7498    # Work around the forget-to-reset-the-flag bug.    echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7499    echo 't clr' >>$CONFIG_STATUS    sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
   echo ': clr' >>$CONFIG_STATUS  
   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS  
7500    echo 'CEOF    echo 'CEOF
7501    sed -f $tmp/undefs.sed $tmp/in >$tmp/out    sed -f conftest.frag conftest.in > conftest.out
7502    rm -f $tmp/in    rm -f conftest.in
7503    mv $tmp/out $tmp/in    mv conftest.out conftest.in
7504  ' >>$CONFIG_STATUS  ' >> $CONFIG_STATUS
7505    sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail    sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7506    rm -f conftest.undefs    rm -f conftest.vals
7507    mv conftest.tail conftest.undefs    mv conftest.tail conftest.vals
7508  done  done
7509  rm -f conftest.undefs  rm -f conftest.vals
7510    
7511  cat >>$CONFIG_STATUS <<\_ACEOF  cat >> $CONFIG_STATUS <<\EOF
7512    # Let's still pretend it is `configure' which instantiates (i.e., don't    rm -f conftest.frag conftest.h
7513    # use $as_me), people would be surprised to read:    echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
7514    #    /* config.h.  Generated by config.status.  */    cat conftest.in >> conftest.h
7515    if test x"$ac_file" = x-; then    rm -f conftest.in
7516      echo "/* Generated by configure.  */" >$tmp/config.h    if cmp -s $ac_file conftest.h 2>/dev/null; then
7517    else      echo "$ac_file is unchanged"
7518      echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h      rm -f conftest.h
7519    fi    else
7520    cat $tmp/in >>$tmp/config.h      # Remove last slash and all that follows it.  Not all systems have dirname.
7521    rm -f $tmp/in        ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7522    if test x"$ac_file" != x-; then        if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7523      if diff $ac_file $tmp/config.h >/dev/null 2>&1; then        # The file is in a subdirectory.
7524        { echo "$as_me:$LINENO: $ac_file is unchanged" >&5        test ! -d "$ac_dir" && mkdir "$ac_dir"
 echo "$as_me: $ac_file is unchanged" >&6;}  
     else  
       ac_dir=`(dirname "$ac_file") 2>/dev/null ||  
 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \  
          X"$ac_file" : 'X\(//\)[^/]' \| \  
          X"$ac_file" : 'X\(//\)$' \| \  
          X"$ac_file" : 'X\(/\)' \| \  
          .     : '\(.\)' 2>/dev/null ||  
 echo X"$ac_file" |  
     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }  
           /^X\(\/\/\)[^/].*/{ s//\1/; q; }  
           /^X\(\/\/\)$/{ s//\1/; q; }  
           /^X\(\/\).*/{ s//\1/; q; }  
           s/.*/./; q'`  
       { if $as_mkdir_p; then  
     mkdir -p "$ac_dir"  
   else  
     as_dir="$ac_dir"  
     as_dirs=  
     while test ! -d "$as_dir"; do  
       as_dirs="$as_dir $as_dirs"  
       as_dir=`(dirname "$as_dir") 2>/dev/null ||  
 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \  
          X"$as_dir" : 'X\(//\)[^/]' \| \  
          X"$as_dir" : 'X\(//\)$' \| \  
          X"$as_dir" : 'X\(/\)' \| \  
          .     : '\(.\)' 2>/dev/null ||  
 echo X"$as_dir" |  
     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }  
           /^X\(\/\/\)[^/].*/{ s//\1/; q; }  
           /^X\(\/\/\)$/{ s//\1/; q; }  
           /^X\(\/\).*/{ s//\1/; q; }  
           s/.*/./; q'`  
     done  
     test ! -n "$as_dirs" || mkdir $as_dirs  
   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5  
 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}  
    { (exit 1); exit 1; }; }; }  
   
       rm -f $ac_file  
       mv $tmp/config.h $ac_file  
7525      fi      fi
7526    else      rm -f $ac_file
7527      cat $tmp/config.h      mv conftest.h $ac_file
     rm -f $tmp/config.h  
7528    fi    fi
7529  done  fi; done
 _ACEOF  
   
 cat >>$CONFIG_STATUS <<\_ACEOF  
7530    
7531  { (exit 0); exit 0; }  EOF
7532  _ACEOF  cat >> $CONFIG_STATUS <<EOF
 chmod +x $CONFIG_STATUS  
 ac_clean_files=$ac_clean_files_save  
7533    
7534    EOF
7535    cat >> $CONFIG_STATUS <<\EOF
7536    
7537  # configure is writing to config.log, and then calls config.status.  exit 0
7538  # config.status does its own redirection, appending to config.log.  EOF
7539  # Unfortunately, on DOS this fails, as config.log is still kept open  chmod +x $CONFIG_STATUS
7540  # by configure, so config.status won't be able to write to it; its  rm -fr confdefs* $ac_clean_files
7541  # output is simply discarded.  So we exec the FD to /dev/null,  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 # effectively closing config.log, so it can be properly (re)opened and  
 # appended to by config.status.  When coming back to configure, we  
 # need to make the FD available again.  
 if test "$no_create" != yes; then  
   ac_cs_success=:  
   ac_config_status_args=  
   test "$silent" = yes &&  
     ac_config_status_args="$ac_config_status_args --quiet"  
   exec 5>/dev/null  
   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false  
   exec 5>>config.log  
   # Use ||, not &&, to avoid exiting from the if with $? = 1, which  
   # would make configure fail if this is the last instruction.  
   $ac_cs_success || { (exit 1); exit 1; }  
 fi  
7542    
7543    echo makedefc    echo makedefc
7544    cat makedefc    cat makedefc

Legend:
Removed from v.1.171  
changed lines
  Added in v.1.172

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