/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

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

revision 1.107.4.1.2.2.2.1 by camm, Thu Sep 4 02:09:36 2003 UTC revision 1.107.4.1.2.2.2.2 by camm, Fri Sep 5 21:28:03 2003 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.57.  # Generated automatically using autoconf version 2.13
5    # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6  #  #
 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002  
 # 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  
   
 # Support unset when possible.  
 if (FOO=FOO; unset FOO) >/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 -n "`(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  
 }  
9    
10    # Defaults:
11  case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in  ac_help=
   *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  
   as_mkdir_p=false  
 fi  
   
 as_executable_p="test -f"  
   
 # Sed expression to map a string onto a valid CPP name.  
 as_tr_cpp="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="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  
   
   
 # 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-vssize=XXXX will compile in a value stack of size XXX "
18  SHELL=${CONFIG_SHELL-/bin/sh}  ac_help="$ac_help
19     --enable-bdssize=XXXX will compile in a binding 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-ihssize=XXXX will compile in a invocation history stack of size XXX "
22  # only ac_max_sed_lines should be used.  ac_help="$ac_help
23  : ${ac_max_here_lines=38}   --enable-frssize=XXXX will compile in a frame stack of size XXX "
24    ac_help="$ac_help
25  # Identity of this package.   --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs "
26  PACKAGE_NAME=  ac_help="$ac_help
27  PACKAGE_TARNAME=   --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes) "
28  PACKAGE_VERSION=  ac_help="$ac_help
29  PACKAGE_STRING=   --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems "
30  PACKAGE_BUGREPORT=  ac_help="$ac_help
31     --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh  "
32  # Factoring default headers for most tests.  ac_help="$ac_help
33  ac_includes_default="\   --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh  "
34  #include <stdio.h>  ac_help="$ac_help
35  #if HAVE_SYS_TYPES_H   --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info  "
36  # include <sys/types.h>  ac_help="$ac_help
37  #endif   --enable-emacsdir=XXXX will manually specify the location for elisp files  "
38  #if HAVE_SYS_STAT_H  ac_help="$ac_help
39  # include <sys/stat.h>   --enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes) "
40  #endif  ac_help="$ac_help
41  #if STDC_HEADERS   --enable-japi=yes will compile in support for the JAPI graphical interface if present on your system"
42  # include <stdlib.h>  ac_help="$ac_help
43  # include <stddef.h>   --enable-xdr=yes will compile in support for XDR"
44  #else  ac_help="$ac_help
45  # if HAVE_STDLIB_H   --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images
46  #  include <stdlib.h>          "
47  # endif  ac_help="$ac_help
48  #endif   --enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files
49  #if HAVE_STRING_H          "
50  # if !STDC_HEADERS && HAVE_MEMORY_H  ac_help="$ac_help
51  #  include <memory.h>   --enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files
52  # endif          "
53  # include <string.h>  ac_help="$ac_help
54  #endif   --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files
55  #if HAVE_STRINGS_H          "
56  # include <strings.h>  ac_help="$ac_help
57  #endif   --enable-custreloc uses custom gcl code if available for loading  and relocationing object files
58  #if HAVE_INTTYPES_H          "
59  # include <inttypes.h>  ac_help="$ac_help
60  #else   --enable-debug builds gcl with -g in CFLAGS to enable running under gdb
61  # if HAVE_STDINT_H          "
62  #  include <stdint.h>  ac_help="$ac_help
63  # endif   --enable-static will link your GCL against static as opposed to shared system libraries  "
64  #endif  ac_help="$ac_help
65  #if HAVE_UNISTD_H   --enable-pic builds gcl with -fPIC in CFLAGS
66  # include <unistd.h>          "
67  #endif"  ac_help="$ac_help
68     --enable-oldgmp will link against gmp2 instead of gmp3
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 PAGEWIDTH RL_OBJS RL_LIB NO_PROFILE HAVE_SETENV HAVE_PUTENV USE_CLEANUP ENDIAN_ALREADY_DEFINED HAVE_SV_ONSTACK HAVE_SIGSYS HAVE_SIGEMT EMACS EMACS_SITE_LISP EMACS_DEFAULT_EL INFO_DIR TCLSH TK_CONFIG_PREFIX TK_LIBRARY TCL_LIBRARY TK_XINCLUDES TK_INCLUDE TCL_INCLUDE TK_LIB_SPEC TK_BUILD_LIB_SPEC TK_XLIBSW TCL_LIB_SPEC TCL_DL_LIBS TCL_LIBS NOTIFY BROKEN_O4_OPT FINAL_CFLAGS O3FLAGS O2FLAGS EXTRA_LOBJS use LIBOBJS LTLIBOBJS'          "
70  ac_subst_files=''  ac_help="$ac_help
71     --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source
72            "
73    ac_help="$ac_help
74      --with-x                use the X Window System"
75    ac_help="$ac_help
76    --enable-readine    enables command line completion via the readline library "
77    ac_help="$ac_help
78    --enable-ansi builds a large gcl aiming for ansi compliance,
79                        --disable-ansi builds the smaller traditional CLtL1 image"
80    
81  # Initialize some variables set by options.  # Initialize some variables set by options.
 ac_init_help=  
 ac_init_version=false  
82  # The variables have the same names as the options, with  # The variables have the same names as the options, with
83  # dashes changed to underlines.  # dashes changed to underlines.
84  cache_file=/dev/null  build=NONE
85    cache_file=./config.cache
86  exec_prefix=NONE  exec_prefix=NONE
87    host=NONE
88  no_create=  no_create=
89    nonopt=NONE
90  no_recursion=  no_recursion=
91  prefix=NONE  prefix=NONE
92  program_prefix=NONE  program_prefix=NONE
# Line 326  program_transform_name=s,x,x, Line 95  program_transform_name=s,x,x,
95  silent=  silent=
96  site=  site=
97  srcdir=  srcdir=
98    target=NONE
99  verbose=  verbose=
100  x_includes=NONE  x_includes=NONE
101  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.  
102  bindir='${exec_prefix}/bin'  bindir='${exec_prefix}/bin'
103  sbindir='${exec_prefix}/sbin'  sbindir='${exec_prefix}/sbin'
104  libexecdir='${exec_prefix}/libexec'  libexecdir='${exec_prefix}/libexec'
# Line 348  oldincludedir='/usr/include' Line 112  oldincludedir='/usr/include'
112  infodir='${prefix}/info'  infodir='${prefix}/info'
113  mandir='${prefix}/man'  mandir='${prefix}/man'
114    
115    # Initialize some other variables.
116    subdirs=
117    MFLAGS= MAKEFLAGS=
118    SHELL=${CONFIG_SHELL-/bin/sh}
119    # Maximum number of lines to put in a shell here document.
120    ac_max_here_lines=12
121    
122  ac_prev=  ac_prev=
123  for ac_option  for ac_option
124  do  do
125    
126    # If the previous option needs an argument, assign it.    # If the previous option needs an argument, assign it.
127    if test -n "$ac_prev"; then    if test -n "$ac_prev"; then
128      eval "$ac_prev=\$ac_option"      eval "$ac_prev=\$ac_option"
# Line 358  do Line 130  do
130      continue      continue
131    fi    fi
132    
133    ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`    case "$ac_option" in
134      -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
135      *) ac_optarg= ;;
136      esac
137    
138    # Accept the important Cygnus configure options, so we can diagnose typos.    # Accept the important Cygnus configure options, so we can diagnose typos.
139    
140    case $ac_option in    case "$ac_option" in
141    
142    -bindir | --bindir | --bindi | --bind | --bin | --bi)    -bindir | --bindir | --bindi | --bind | --bin | --bi)
143      ac_prev=bindir ;;      ac_prev=bindir ;;
144    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
145      bindir=$ac_optarg ;;      bindir="$ac_optarg" ;;
146    
147    -build | --build | --buil | --bui | --bu)    -build | --build | --buil | --bui | --bu)
148      ac_prev=build_alias ;;      ac_prev=build ;;
149    -build=* | --build=* | --buil=* | --bui=* | --bu=*)    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
150      build_alias=$ac_optarg ;;      build="$ac_optarg" ;;
151    
152    -cache-file | --cache-file | --cache-fil | --cache-fi \    -cache-file | --cache-file | --cache-fil | --cache-fi \
153    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
154      ac_prev=cache_file ;;      ac_prev=cache_file ;;
155    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
156    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
157      cache_file=$ac_optarg ;;      cache_file="$ac_optarg" ;;
   
   --config-cache | -C)  
     cache_file=config.cache ;;  
158    
159    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
160      ac_prev=datadir ;;      ac_prev=datadir ;;
161    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
162    | --da=*)    | --da=*)
163      datadir=$ac_optarg ;;      datadir="$ac_optarg" ;;
164    
165    -disable-* | --disable-*)    -disable-* | --disable-*)
166      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
167      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
168      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&      if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169        { echo "$as_me: error: invalid feature name: $ac_feature" >&2        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170     { (exit 1); exit 1; }; }      fi
171      ac_feature=`echo $ac_feature | sed 's/-/_/g'`      ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172      eval "enable_$ac_feature=no" ;;      eval "enable_${ac_feature}=no" ;;
173    
174    -enable-* | --enable-*)    -enable-* | --enable-*)
175      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`      ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
177      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&      if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178        { echo "$as_me: error: invalid feature name: $ac_feature" >&2        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179     { (exit 1); exit 1; }; }      fi
180      ac_feature=`echo $ac_feature | sed 's/-/_/g'`      ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181      case $ac_option in      case "$ac_option" in
182        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;        *=*) ;;
183        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
184      esac      esac
185      eval "enable_$ac_feature='$ac_optarg'" ;;      eval "enable_${ac_feature}='$ac_optarg'" ;;
186    
187    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
188    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 419  do Line 191  do
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-=* \
193    | --exec=* | --exe=* | --ex=*)    | --exec=* | --exe=* | --ex=*)
194      exec_prefix=$ac_optarg ;;      exec_prefix="$ac_optarg" ;;
195    
196    -gas | --gas | --ga | --g)    -gas | --gas | --ga | --g)
197      # Obsolete; use --with-gas.      # Obsolete; use --with-gas.
198      with_gas=yes ;;      with_gas=yes ;;
199    
200    -help | --help | --hel | --he | -h)    -help | --help | --hel | --he)
201      ac_init_help=long ;;      # Omit some internal or obsolete options to make the list less imposing.
202    -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.
203      ac_init_help=recursive ;;      cat << EOF
204    -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)  Usage: configure [options] [host]
205      ac_init_help=short ;;  Options: [defaults in brackets after descriptions]
206    Configuration:
207      --cache-file=FILE       cache test results in FILE
208      --help                  print this message
209      --no-create             do not create output files
210      --quiet, --silent       do not print \`checking...' messages
211      --version               print the version of autoconf that created configure
212    Directory and file names:
213      --prefix=PREFIX         install architecture-independent files in PREFIX
214                              [$ac_default_prefix]
215      --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
216                              [same as prefix]
217      --bindir=DIR            user executables in DIR [EPREFIX/bin]
218      --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
219      --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
220      --datadir=DIR           read-only architecture-independent data in DIR
221                              [PREFIX/share]
222      --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
223      --sharedstatedir=DIR    modifiable architecture-independent data in DIR
224                              [PREFIX/com]
225      --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
226      --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
227      --includedir=DIR        C header files in DIR [PREFIX/include]
228      --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
229      --infodir=DIR           info documentation in DIR [PREFIX/info]
230      --mandir=DIR            man documentation in DIR [PREFIX/man]
231      --srcdir=DIR            find the sources in DIR [configure dir or ..]
232      --program-prefix=PREFIX prepend PREFIX to installed program names
233      --program-suffix=SUFFIX append SUFFIX to installed program names
234      --program-transform-name=PROGRAM
235                              run sed PROGRAM on installed program names
236    EOF
237        cat << EOF
238    Host type:
239      --build=BUILD           configure for building on BUILD [BUILD=HOST]
240      --host=HOST             configure for HOST [guessed]
241      --target=TARGET         configure for TARGET [TARGET=HOST]
242    Features and packages:
243      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
244      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
245      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
246      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
247      --x-includes=DIR        X include files are in DIR
248      --x-libraries=DIR       X library files are in DIR
249    EOF
250        if test -n "$ac_help"; then
251          echo "--enable and --with options recognized:$ac_help"
252        fi
253        exit 0 ;;
254    
255    -host | --host | --hos | --ho)    -host | --host | --hos | --ho)
256      ac_prev=host_alias ;;      ac_prev=host ;;
257    -host=* | --host=* | --hos=* | --ho=*)    -host=* | --host=* | --hos=* | --ho=*)
258      host_alias=$ac_optarg ;;      host="$ac_optarg" ;;
259    
260    -includedir | --includedir | --includedi | --included | --include \    -includedir | --includedir | --includedi | --included | --include \
261    | --includ | --inclu | --incl | --inc)    | --includ | --inclu | --incl | --inc)
262      ac_prev=includedir ;;      ac_prev=includedir ;;
263    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
264    | --includ=* | --inclu=* | --incl=* | --inc=*)    | --includ=* | --inclu=* | --incl=* | --inc=*)
265      includedir=$ac_optarg ;;      includedir="$ac_optarg" ;;
266    
267    -infodir | --infodir | --infodi | --infod | --info | --inf)    -infodir | --infodir | --infodi | --infod | --info | --inf)
268      ac_prev=infodir ;;      ac_prev=infodir ;;
269    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
270      infodir=$ac_optarg ;;      infodir="$ac_optarg" ;;
271    
272    -libdir | --libdir | --libdi | --libd)    -libdir | --libdir | --libdi | --libd)
273      ac_prev=libdir ;;      ac_prev=libdir ;;
274    -libdir=* | --libdir=* | --libdi=* | --libd=*)    -libdir=* | --libdir=* | --libdi=* | --libd=*)
275      libdir=$ac_optarg ;;      libdir="$ac_optarg" ;;
276    
277    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
278    | --libexe | --libex | --libe)    | --libexe | --libex | --libe)
279      ac_prev=libexecdir ;;      ac_prev=libexecdir ;;
280    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
281    | --libexe=* | --libex=* | --libe=*)    | --libexe=* | --libex=* | --libe=*)
282      libexecdir=$ac_optarg ;;      libexecdir="$ac_optarg" ;;
283    
284    -localstatedir | --localstatedir | --localstatedi | --localstated \    -localstatedir | --localstatedir | --localstatedi | --localstated \
285    | --localstate | --localstat | --localsta | --localst \    | --localstate | --localstat | --localsta | --localst \
# Line 468  do Line 288  do
288    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
289    | --localstate=* | --localstat=* | --localsta=* | --localst=* \    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
290    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
291      localstatedir=$ac_optarg ;;      localstatedir="$ac_optarg" ;;
292    
293    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
294      ac_prev=mandir ;;      ac_prev=mandir ;;
295    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
296      mandir=$ac_optarg ;;      mandir="$ac_optarg" ;;
297    
298    -nfp | --nfp | --nf)    -nfp | --nfp | --nf)
299      # Obsolete; use --without-fp.      # Obsolete; use --without-fp.
300      with_fp=no ;;      with_fp=no ;;
301    
302    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
303    | --no-cr | --no-c | -n)    | --no-cr | --no-c)
304      no_create=yes ;;      no_create=yes ;;
305    
306    -no-recursion | --no-recursion | --no-recursio | --no-recursi \    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 494  do Line 314  do
314    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
315    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
316    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
317      oldincludedir=$ac_optarg ;;      oldincludedir="$ac_optarg" ;;
318    
319    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
320      ac_prev=prefix ;;      ac_prev=prefix ;;
321    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
322      prefix=$ac_optarg ;;      prefix="$ac_optarg" ;;
323    
324    -program-prefix | --program-prefix | --program-prefi | --program-pref \    -program-prefix | --program-prefix | --program-prefi | --program-pref \
325    | --program-pre | --program-pr | --program-p)    | --program-pre | --program-pr | --program-p)
326      ac_prev=program_prefix ;;      ac_prev=program_prefix ;;
327    -program-prefix=* | --program-prefix=* | --program-prefi=* \    -program-prefix=* | --program-prefix=* | --program-prefi=* \
328    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
329      program_prefix=$ac_optarg ;;      program_prefix="$ac_optarg" ;;
330    
331    -program-suffix | --program-suffix | --program-suffi | --program-suff \    -program-suffix | --program-suffix | --program-suffi | --program-suff \
332    | --program-suf | --program-su | --program-s)    | --program-suf | --program-su | --program-s)
333      ac_prev=program_suffix ;;      ac_prev=program_suffix ;;
334    -program-suffix=* | --program-suffix=* | --program-suffi=* \    -program-suffix=* | --program-suffix=* | --program-suffi=* \
335    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
336      program_suffix=$ac_optarg ;;      program_suffix="$ac_optarg" ;;
337    
338    -program-transform-name | --program-transform-name \    -program-transform-name | --program-transform-name \
339    | --program-transform-nam | --program-transform-na \    | --program-transform-nam | --program-transform-na \
# Line 530  do Line 350  do
350    | --program-transfo=* | --program-transf=* \    | --program-transfo=* | --program-transf=* \
351    | --program-trans=* | --program-tran=* \    | --program-trans=* | --program-tran=* \
352    | --progr-tra=* | --program-tr=* | --program-t=*)    | --progr-tra=* | --program-tr=* | --program-t=*)
353      program_transform_name=$ac_optarg ;;      program_transform_name="$ac_optarg" ;;
354    
355    -q | -quiet | --quiet | --quie | --qui | --qu | --q \    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
356    | -silent | --silent | --silen | --sile | --sil)    | -silent | --silent | --silen | --sile | --sil)
# Line 540  do Line 360  do
360      ac_prev=sbindir ;;      ac_prev=sbindir ;;
361    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
362    | --sbi=* | --sb=*)    | --sbi=* | --sb=*)
363      sbindir=$ac_optarg ;;      sbindir="$ac_optarg" ;;
364    
365    -sharedstatedir | --sharedstatedir | --sharedstatedi \    -sharedstatedir | --sharedstatedir | --sharedstatedi \
366    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
# Line 551  do Line 371  do
371    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
372    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
373    | --sha=* | --sh=*)    | --sha=* | --sh=*)
374      sharedstatedir=$ac_optarg ;;      sharedstatedir="$ac_optarg" ;;
375    
376    -site | --site | --sit)    -site | --site | --sit)
377      ac_prev=site ;;      ac_prev=site ;;
378    -site=* | --site=* | --sit=*)    -site=* | --site=* | --sit=*)
379      site=$ac_optarg ;;      site="$ac_optarg" ;;
380    
381    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
382      ac_prev=srcdir ;;      ac_prev=srcdir ;;
383    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
384      srcdir=$ac_optarg ;;      srcdir="$ac_optarg" ;;
385    
386    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
387    | --syscon | --sysco | --sysc | --sys | --sy)    | --syscon | --sysco | --sysc | --sys | --sy)
388      ac_prev=sysconfdir ;;      ac_prev=sysconfdir ;;
389    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
390    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
391      sysconfdir=$ac_optarg ;;      sysconfdir="$ac_optarg" ;;
392    
393    -target | --target | --targe | --targ | --tar | --ta | --t)    -target | --target | --targe | --targ | --tar | --ta | --t)
394      ac_prev=target_alias ;;      ac_prev=target ;;
395    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
396      target_alias=$ac_optarg ;;      target="$ac_optarg" ;;
397    
398    -v | -verbose | --verbose | --verbos | --verbo | --verb)    -v | -verbose | --verbose | --verbos | --verbo | --verb)
399      verbose=yes ;;      verbose=yes ;;
400    
401    -version | --version | --versio | --versi | --vers | -V)    -version | --version | --versio | --versi | --vers)
402      ac_init_version=: ;;      echo "configure generated by autoconf version 2.13"
403        exit 0 ;;
404    
405    -with-* | --with-*)    -with-* | --with-*)
406      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`      ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
408      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&      if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409        { echo "$as_me: error: invalid package name: $ac_package" >&2        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410     { (exit 1); exit 1; }; }      fi
411      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
412      case $ac_option in      case "$ac_option" in
413        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;        *=*) ;;
414        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
415      esac      esac
416      eval "with_$ac_package='$ac_optarg'" ;;      eval "with_${ac_package}='$ac_optarg'" ;;
417    
418    -without-* | --without-*)    -without-* | --without-*)
419      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`      ac_package=`echo $ac_option|sed -e 's/-*without-//'`
420      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
421      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&      if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422        { echo "$as_me: error: invalid package name: $ac_package" >&2        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423     { (exit 1); exit 1; }; }      fi
424      ac_package=`echo $ac_package | sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
425      eval "with_$ac_package=no" ;;      eval "with_${ac_package}=no" ;;
426    
427    --x)    --x)
428      # Obsolete; use --with-x.      # Obsolete; use --with-x.
# Line 612  do Line 433  do
433      ac_prev=x_includes ;;      ac_prev=x_includes ;;
434    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436      x_includes=$ac_optarg ;;      x_includes="$ac_optarg" ;;
437    
438    -x-libraries | --x-libraries | --x-librarie | --x-librari \    -x-libraries | --x-libraries | --x-librarie | --x-librari \
439    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440      ac_prev=x_libraries ;;      ac_prev=x_libraries ;;
441    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443      x_libraries=$ac_optarg ;;      x_libraries="$ac_optarg" ;;
444    
445    -*) { 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; }; }  
446      ;;      ;;
447    
   *=*)  
     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 ;;  
   
448    *)    *)
449      # FIXME: should be removed in autoconf 3.0.      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450      echo "$as_me: WARNING: you should use --build, --host, --target" >&2        echo "configure: warning: $ac_option: invalid host type" 1>&2
451      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&      fi
452        echo "$as_me: WARNING: invalid host type: $ac_option" >&2      if test "x$nonopt" != xNONE; then
453      : ${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; }
454        fi
455        nonopt="$ac_option"
456      ;;      ;;
457    
458    esac    esac
459  done  done
460    
461  if test -n "$ac_prev"; then  if test -n "$ac_prev"; then
462    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; }; }  
463  fi  fi
464    
465  # 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  
466    
467  # Be sure to have absolute paths.  # File descriptor usage:
468  for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \  # 0 standard input
469                localstatedir libdir includedir oldincludedir infodir mandir  # 1 file creation
470    # 2 errors and warnings
471    # 3 some systems may open it to /dev/tty
472    # 4 used on the Kubota Titan
473    # 6 checking for... messages and results
474    # 5 compiler messages saved in config.log
475    if test "$silent" = yes; then
476      exec 6>/dev/null
477    else
478      exec 6>&1
479    fi
480    exec 5>./config.log
481    
482    echo "\
483    This file contains any messages produced by compilers while
484    running configure, to aid debugging if configure makes a mistake.
485    " 1>&5
486    
487    # Strip out --no-create and --no-recursion so they do not pile up.
488    # Also quote any args containing shell metacharacters.
489    ac_configure_args=
490    for ac_arg
491  do  do
492    eval ac_val=$`echo $ac_var`    case "$ac_arg" in
493    case $ac_val in    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494      [\\/$]* | ?:[\\/]* ) ;;    | --no-cr | --no-c) ;;
495      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496     { (exit 1); exit 1; }; };;    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
497      *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498      ac_configure_args="$ac_configure_args '$ac_arg'" ;;
499      *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500    esac    esac
501  done  done
502    
503  # There might be people who depend on the old broken behavior: `$host'  # NLS nuisances.
504  # used to hold the argument of --host etc.  # Only set these to C if already set.  These must not be set unconditionally
505  # FIXME: To remove some day.  # because not all systems understand e.g. LANG=C (notably SCO).
506  build=$build_alias  # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507  host=$host_alias  # Non-C LC_CTYPE values break the ctype check.
508  target=$target_alias  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
509    if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
510  # FIXME: To remove some day.  if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
511  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-  
512    
513  test "$silent" = yes && exec 6>/dev/null  # confdefs.h avoids OS command line length limits that DEFS can exceed.
514    rm -rf conftest* confdefs.h
515    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516    echo > confdefs.h
517    
518    # A filename unique to this package, relative to the directory that
519    # configure is in, which we can look for to find out if srcdir is correct.
520    ac_unique_file=
521    
522  # Find the source files, if location was not specified.  # Find the source files, if location was not specified.
523  if test -z "$srcdir"; then  if test -z "$srcdir"; then
524    ac_srcdir_defaulted=yes    ac_srcdir_defaulted=yes
525    # Try the directory containing this script, then its parent.    # Try the directory containing this script, then its parent.
526    ac_confdir=`(dirname "$0") 2>/dev/null ||    ac_prog=$0
527  $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \    ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528           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'`  
529    srcdir=$ac_confdir    srcdir=$ac_confdir
530    if test ! -r $srcdir/$ac_unique_file; then    if test ! -r $srcdir/$ac_unique_file; then
531      srcdir=..      srcdir=..
# Line 725  else Line 535  else
535  fi  fi
536  if test ! -r $srcdir/$ac_unique_file; then  if test ! -r $srcdir/$ac_unique_file; then
537    if test "$ac_srcdir_defaulted" = yes; then    if test "$ac_srcdir_defaulted" = yes; then
538      { 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; }; }  
539    else    else
540      { 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; }; }  
541    fi    fi
542  fi  fi
543  (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-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-machine=XXXX will force the use of one of the definitions in h/XXXX.defs  
  --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes)  
  --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-static will link your GCL against static as opposed to shared system libraries  
  --enable-pic builds gcl with -fPIC in CFLAGS  
   
  --enable-oldgmp will link against gmp2 instead of gmp3  
   
  --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  
 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be  
 # absolute.  
 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`  
 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`  
 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`  
 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`  
   
     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 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002  
 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.57.  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. ##  
 ## ----------- ##  
544    
 _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  
   
     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.  
545  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
546  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
547    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 1205  if test -z "$CONFIG_SITE"; then Line 552  if test -z "$CONFIG_SITE"; then
552  fi  fi
553  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
554    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
555      { 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  
556      . "$ac_site_file"      . "$ac_site_file"
557    fi    fi
558  done  done
559    
560  if test -r "$cache_file"; then  if test -r "$cache_file"; then
561    # Some versions of bash will fail to source /dev/null (special    echo "loading cache $cache_file"
562    # 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  
563  else  else
564    { echo "$as_me:$LINENO: creating cache $cache_file" >&5    echo "creating cache $cache_file"
565  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; }; }  
566  fi  fi
567    
568  ac_ext=c  ac_ext=c
569    # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
571  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572  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'
573  ac_compiler_gnu=$ac_cv_c_compiler_gnu  cross_compiling=$ac_cv_prog_cc_cross
574    
575    ac_exeext=
576    ac_objext=o
577    if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
578      # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579      if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
580        ac_n= ac_c='
581    ' ac_t='        '
582      else
583        ac_n=-n ac_c= ac_t=
584      fi
585    else
586      ac_n= ac_c='\c' ac_t=
587    fi
   
   
   
588    
589    
           ac_config_headers="$ac_config_headers h/gclincl.h"  
590    
591    
592  VERSION=2.5.4  VERSION=2.5.4
# Line 1320  help="--enable-maxpage=XXXX will compile Line 602  help="--enable-maxpage=XXXX will compile
602  # Check whether --enable-maxpage or --disable-maxpage was given.  # Check whether --enable-maxpage or --disable-maxpage was given.
603  if test "${enable_maxpage+set}" = set; then  if test "${enable_maxpage+set}" = set; then
604    enableval="$enable_maxpage"    enableval="$enable_maxpage"
605    cat >>confdefs.h <<_ACEOF    cat >> confdefs.h <<EOF
606  #define MAXPAGE $enable_maxpage  #define MAXPAGE $enable_maxpage
607  _ACEOF  EOF
608    
609    fi
610    
 fi;  
611    
612  # Check whether --enable-vssize or --disable-vssize was given.  # Check whether --enable-vssize or --disable-vssize was given.
613  if test "${enable_vssize+set}" = set; then  if test "${enable_vssize+set}" = set; then
614    enableval="$enable_vssize"    enableval="$enable_vssize"
615    cat >>confdefs.h <<_ACEOF    cat >> confdefs.h <<EOF
616  #define VSSIZE $enable_vssize  #define VSSIZE $enable_vssize
617  _ACEOF  EOF
618    
619    fi
620    
 fi;  
621    
622  # Check whether --enable-bdssize or --disable-bdssize was given.  # Check whether --enable-bdssize or --disable-bdssize was given.
623  if test "${enable_bdssize+set}" = set; then  if test "${enable_bdssize+set}" = set; then
624    enableval="$enable_bdssize"    enableval="$enable_bdssize"
625    cat >>confdefs.h <<_ACEOF    cat >> confdefs.h <<EOF
626  #define BDSSIZE $enable_bdssize  #define BDSSIZE $enable_bdssize
627  _ACEOF  EOF
628    
629    fi
630    
 fi;  
631    
632  # Check whether --enable-ihssize or --disable-ihssize was given.  # Check whether --enable-ihssize or --disable-ihssize was given.
633  if test "${enable_ihssize+set}" = set; then  if test "${enable_ihssize+set}" = set; then
634    enableval="$enable_ihssize"    enableval="$enable_ihssize"
635    cat >>confdefs.h <<_ACEOF    cat >> confdefs.h <<EOF
636  #define IHSSIZE $enable_ihssize  #define IHSSIZE $enable_ihssize
637  _ACEOF  EOF
638    
639    fi
640    
 fi;  
641    
642  # Check whether --enable-frssize or --disable-frssize was given.  # Check whether --enable-frssize or --disable-frssize was given.
643  if test "${enable_frssize+set}" = set; then  if test "${enable_frssize+set}" = set; then
644    enableval="$enable_frssize"    enableval="$enable_frssize"
645    cat >>confdefs.h <<_ACEOF    cat >> confdefs.h <<EOF
646  #define FRSSIZE $enable_frssize  #define FRSSIZE $enable_frssize
647  _ACEOF  EOF
648    
649    fi
650    
 fi;  
651    
652  # Check whether --enable-machine or --disable-machine was given.  # Check whether --enable-machine or --disable-machine was given.
653  if test "${enable_machine+set}" = set; then  if test "${enable_machine+set}" = set; then
# Line 1368  if test "${enable_machine+set}" = set; t Line 655  if test "${enable_machine+set}" = set; t
655    enable_machine=$enableval    enable_machine=$enableval
656  else  else
657    enable_machine=""    enable_machine=""
658  fi;  fi
659    
660    
661  # Check whether --enable-gmp or --disable-gmp was given.  # Check whether --enable-gmp or --disable-gmp was given.
662  if test "${enable_gmp+set}" = set; then  if test "${enable_gmp+set}" = set; then
# Line 1376  if test "${enable_gmp+set}" = set; then Line 664  if test "${enable_gmp+set}" = set; then
664    use_gmp=$enableval    use_gmp=$enableval
665  else  else
666    use_gmp="yes"    use_gmp="yes"
667  fi;  fi
668    
669    
670  # Check whether --enable-notify or --disable-notify was given.  # Check whether --enable-notify or --disable-notify was given.
671  if test "${enable_notify+set}" = set; then  if test "${enable_notify+set}" = set; then
# Line 1384  if test "${enable_notify+set}" = set; th Line 673  if test "${enable_notify+set}" = set; th
673    enable_notify=$enableval    enable_notify=$enableval
674  else  else
675    enable_notify="yes"    enable_notify="yes"
676  fi;  fi
677    
678    
679  # Check whether --enable-tkconfig or --disable-tkconfig was given.  # Check whether --enable-tkconfig or --disable-tkconfig was given.
680  if test "${enable_tkconfig+set}" = set; then  if test "${enable_tkconfig+set}" = set; then
# Line 1392  if test "${enable_tkconfig+set}" = set; Line 682  if test "${enable_tkconfig+set}" = set;
682    TK_CONFIG_PREFIX=$enableval    TK_CONFIG_PREFIX=$enableval
683  else  else
684    TK_CONFIG_PREFIX="unknown"    TK_CONFIG_PREFIX="unknown"
685  fi;  fi
686    
687    
688    
689  # Check whether --enable-tclconfig or --disable-tclconfig was given.  # Check whether --enable-tclconfig or --disable-tclconfig was given.
# Line 1401  if test "${enable_tclconfig+set}" = set; Line 692  if test "${enable_tclconfig+set}" = set;
692    TCL_CONFIG_PREFIX=$enableval    TCL_CONFIG_PREFIX=$enableval
693  else  else
694    TCL_CONFIG_PREFIX="unknown"    TCL_CONFIG_PREFIX="unknown"
695  fi;  fi
696    
697    
698  # Check whether --enable-infodir or --disable-infodir was given.  # Check whether --enable-infodir or --disable-infodir was given.
699  if test "${enable_infodir+set}" = set; then  if test "${enable_infodir+set}" = set; then
# Line 1409  if test "${enable_infodir+set}" = set; t Line 701  if test "${enable_infodir+set}" = set; t
701    INFO_DIR=$enableval    INFO_DIR=$enableval
702  else  else
703    INFO_DIR="unknown"    INFO_DIR="unknown"
704  fi;  fi
705    
706    
707  # Check whether --enable-emacsdir or --disable-emacsdir was given.  # Check whether --enable-emacsdir or --disable-emacsdir was given.
708  if test "${enable_emacsdir+set}" = set; then  if test "${enable_emacsdir+set}" = set; then
# Line 1417  if test "${enable_emacsdir+set}" = set; Line 710  if test "${enable_emacsdir+set}" = set;
710    EMACS_SITE_LISP=$enableval    EMACS_SITE_LISP=$enableval
711  else  else
712    EMACS_SITE_LISP="unknown"    EMACS_SITE_LISP="unknown"
713  fi;  fi
714    
715    
716  # Check whether --enable-common-binary or --disable-common-binary was given.  # Check whether --enable-common-binary or --disable-common-binary was given.
717  if test "${enable_common_binary+set}" = set; then  if test "${enable_common_binary+set}" = set; then
# Line 1425  if test "${enable_common_binary+set}" = Line 719  if test "${enable_common_binary+set}" =
719    use_common_binary=$enableval    use_common_binary=$enableval
720  else  else
721    use_common_binary="yes"    use_common_binary="yes"
722  fi;  fi
723    
724    
725  # Check whether --enable-japi or --disable-japi was given.  # Check whether --enable-japi or --disable-japi was given.
726  if test "${enable_japi+set}" = set; then  if test "${enable_japi+set}" = set; then
# Line 1433  if test "${enable_japi+set}" = set; then Line 728  if test "${enable_japi+set}" = set; then
728    try_japi=$enableval    try_japi=$enableval
729  else  else
730    try_japi="no"    try_japi="no"
731  fi;  fi
732    
733    
734  # Check whether --enable-xdr or --disable-xdr was given.  # Check whether --enable-xdr or --disable-xdr was given.
735  if test "${enable_xdr+set}" = set; then  if test "${enable_xdr+set}" = set; then
# Line 1441  if test "${enable_xdr+set}" = set; then Line 737  if test "${enable_xdr+set}" = set; then
737    try_xdr=$enableval    try_xdr=$enableval
738  else  else
739    try_xdr="no"    try_xdr="no"
740  fi;  fi
741    
742    
743  #  #
744  # Host information  # Host information
745  #  #
746    
747    
# Line 1458  for ac_dir in $srcdir $srcdir/.. $srcdir Line 755  for ac_dir in $srcdir $srcdir/.. $srcdir
755      ac_aux_dir=$ac_dir      ac_aux_dir=$ac_dir
756      ac_install_sh="$ac_aux_dir/install.sh -c"      ac_install_sh="$ac_aux_dir/install.sh -c"
757      break      break
   elif test -f $ac_dir/shtool; then  
     ac_aux_dir=$ac_dir  
     ac_install_sh="$ac_aux_dir/shtool install -c"  
     break  
758    fi    fi
759  done  done
760  if test -z "$ac_aux_dir"; then  if test -z "$ac_aux_dir"; then
761    { { 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; }
762  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}  fi
763     { (exit 1); exit 1; }; }  ac_config_guess=$ac_aux_dir/config.guess
764  fi  ac_config_sub=$ac_aux_dir/config.sub
765  ac_config_guess="$SHELL $ac_aux_dir/config.guess"  ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
766  ac_config_sub="$SHELL $ac_aux_dir/config.sub"  
 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.  
767    
768  # Make sure we can run config.sub.  # Make sure we can run config.sub.
769  $ac_config_sub sun4 >/dev/null 2>&1 ||  if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
770    { { 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; }
771  echo "$as_me: error: cannot run $ac_config_sub" >&2;}  fi
772     { (exit 1); exit 1; }; }  
773    echo $ac_n "checking host system type""... $ac_c" 1>&6
774  echo "$as_me:$LINENO: checking build system type" >&5  echo "configure:775: checking host system type" >&5
775  echo $ECHO_N "checking build system type... $ECHO_C" >&6  
776  if test "${ac_cv_build+set}" = set; then  host_alias=$host
777    echo $ECHO_N "(cached) $ECHO_C" >&6  case "$host_alias" in
778  else  NONE)
779    ac_cv_build_alias=$build_alias    case $nonopt in
780  test -z "$ac_cv_build_alias" &&    NONE)
781    ac_cv_build_alias=`$ac_config_guess`      if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
782  test -z "$ac_cv_build_alias" &&      else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
783    { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5      fi ;;
784  echo "$as_me: error: cannot guess build type; you must specify one" >&2;}    *) host_alias=$nonopt ;;
785     { (exit 1); exit 1; }; }    esac ;;
786  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/'`  
787    
788    host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
789    host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
790    host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
791    host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
792    echo "$ac_t""$host" 1>&6
793    
794  canonical=$host  canonical=$host
795  ## host=CPU-COMPANY-SYSTEM  ## host=CPU-COMPANY-SYSTEM
796  echo "$as_me:$LINENO: result: host=$host" >&5  echo "$ac_t""host=$host" 1>&6
 echo "${ECHO_T}host=$host" >&6  
797    
798  PROCESSOR_FLAGS=""  PROCESSOR_FLAGS=""
799    
# Line 1610  case $canonical in Line 873  case $canonical in
873             IRIX3*)             IRIX3*)
874              use=sgi4d;;              use=sgi4d;;
875         esac ;;         esac ;;
876    
877    
878       m68k-apple-aux*)       m68k-apple-aux*)
879       use=mac2;;       use=mac2;;
# Line 1691  case $canonical in Line 954  case $canonical in
954              then use=mingw              then use=mingw
955            else  use=gnuwin95            else  use=gnuwin95
956          fi;;          fi;;
957      
958  esac  esac
959    
960    
# Line 1707  def_custreloc="no" Line 970  def_custreloc="no"
970  def_oldgmp="no"  def_oldgmp="no"
971  def_pic="no";  def_pic="no";
972  def_static="no";  def_static="no";
973  case $use in  case $use in
974       *linux)       *linux)
975          ln -snf linux.defs h/$use.defs;          ln -snf linux.defs h/$use.defs;
976          case $use in          case $use in
# Line 1716  case $use in Line 979  case $use in
979                  mips*)                  mips*)
980                          def_dlopen="yes" ; def_statsysbfd="no" ;;                          def_dlopen="yes" ; def_statsysbfd="no" ;;
981  # 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
982  # on these architectures -- CM  # on these architectures -- CM                  
983                  ia64*)                  ia64*)
984                          def_dlopen="yes" ; def_statsysbfd="no" ; def_static = "yes" ;;                          def_dlopen="yes" ; def_statsysbfd="no" ; def_static="yes" ;;
985                  hppa*)                  hppa*)
986                          def_dlopen="yes" ; def_statsysbfd="no" def_pic="yes" ;;                          def_dlopen="yes" ; def_statsysbfd="no" def_pic="yes" ;;
987  #               m68k*)  #               m68k*)
# Line 1731  esac Line 994  esac
994  # Check whether --enable-dlopen or --disable-dlopen was given.  # Check whether --enable-dlopen or --disable-dlopen was given.
995  if test "${enable_dlopen+set}" = set; then  if test "${enable_dlopen+set}" = set; then
996    enableval="$enable_dlopen"    enableval="$enable_dlopen"
997      :
998  else  else
999    enable_dlopen="$def_dlopen"    enable_dlopen="$def_dlopen"
1000  fi;  fi
1001    
1002  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.
1003  if test "${enable_statsysbfd+set}" = set; then  if test "${enable_statsysbfd+set}" = set; then
1004    enableval="$enable_statsysbfd"    enableval="$enable_statsysbfd"
1005      :
1006  else  else
1007    enable_statsysbfd="$def_statsysbfd"    enable_statsysbfd="$def_statsysbfd"
1008  fi;  fi
1009    
1010  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.
1011  if test "${enable_dynsysbfd+set}" = set; then  if test "${enable_dynsysbfd+set}" = set; then
1012    enableval="$enable_dynsysbfd"    enableval="$enable_dynsysbfd"
1013      :
1014  else  else
1015    enable_dynsysbfd="no"    enable_dynsysbfd="no"
1016  fi;  fi
1017    
1018  # Check whether --enable-locbfd or --disable-locbfd was given.  # Check whether --enable-locbfd or --disable-locbfd was given.
1019  if test "${enable_locbfd+set}" = set; then  if test "${enable_locbfd+set}" = set; then
1020    enableval="$enable_locbfd"    enableval="$enable_locbfd"
1021      :
1022  else  else
1023    enable_locbfd="no"    enable_locbfd="no"
1024  fi;  fi
1025    
1026  # Check whether --enable-custreloc or --disable-custreloc was given.  # Check whether --enable-custreloc or --disable-custreloc was given.
1027  if test "${enable_custreloc+set}" = set; then  if test "${enable_custreloc+set}" = set; then
1028    enableval="$enable_custreloc"    enableval="$enable_custreloc"
1029      :
1030  else  else
1031    enable_custreloc="$def_custreloc"    enable_custreloc="$def_custreloc"
1032  fi;  fi
1033    
1034  # Check whether --enable-debug or --disable-debug was given.  # Check whether --enable-debug or --disable-debug was given.
1035  if test "${enable_debug+set}" = set; then  if test "${enable_debug+set}" = set; then
1036    enableval="$enable_debug"    enableval="$enable_debug"
1037      :
1038  else  else
1039    enable_debug="no"    enable_debug="no"
1040  fi;  fi
1041    
1042  # Check whether --enable-static or --disable-static was given.  # Check whether --enable-static or --disable-static was given.
1043  if test "${enable_static+set}" = set; then  if test "${enable_static+set}" = set; then
1044    enableval="$enable_static"    enableval="$enable_static"
1045    enable_static=$enableval    enable_static=$enableval
1046  else  else
1047    enable_static="$def_static"    enable_static="$def_static"
1048  fi;  fi
1049    
1050  # Check whether --enable-pic or --disable-pic was given.  # Check whether --enable-pic or --disable-pic was given.
1051  if test "${enable_pic+set}" = set; then  if test "${enable_pic+set}" = set; then
1052    enableval="$enable_pic"    enableval="$enable_pic"
1053      :
1054  else  else
1055    enable_pic="$def_pic"    enable_pic="$def_pic"
1056  fi;  fi
1057    
1058    
1059  # Check whether --enable-oldgmp or --disable-oldgmp was given.  # Check whether --enable-oldgmp or --disable-oldgmp was given.
1060  if test "${enable_oldgmp+set}" = set; then  if test "${enable_oldgmp+set}" = set; then
1061    enableval="$enable_oldgmp"    enableval="$enable_oldgmp"
1062      :
1063  else  else
1064    enable_oldgmp="$def_oldgmp"    enable_oldgmp="$def_oldgmp"
1065  fi;  fi
1066    
1067    
1068  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.
1069  if test "${enable_dynsysgmp+set}" = set; then  if test "${enable_dynsysgmp+set}" = set; then
1070    enableval="$enable_dynsysgmp"    enableval="$enable_dynsysgmp"
1071      :
1072  else  else
1073    enable_dynsysgmp="no"    enable_dynsysgmp="no"
1074  fi;  fi
1075    
1076    
1077  load_opt="0"  load_opt="0"
1078  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
# Line 1849  fi Line 1122  fi
1122  ##  ##
1123  #if test "$use" = "unknown" ; then  #if test "$use" = "unknown" ; then
1124  #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"`
1125  #echo got canonical=$canonical, but was not recognized.  #echo got canonical=$canonical, but was not recognized.
1126  #echo Unable to guess type to use.  Try one of  #echo Unable to guess type to use.  Try one of
1127  #exit(1)  #exit(1)
1128  #fi  #fi
1129    
1130  echo "$as_me:$LINENO: result: use=$use" >&5  echo "$ac_t""use=$use" 1>&6    
 echo "${ECHO_T}use=$use" >&6  
1131    
1132    
1133  #  #
1134  # System programs  # System programs
1135  #  #
1136    
1137  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.  
1138  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1139  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1140  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1141: checking for $ac_word" >&5
1141  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1142    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  
1143  else  else
1144    if test -n "$CC"; then    if test -n "$CC"; then
1145    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1146  else  else
1147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1148  for as_dir in $PATH    ac_dummy="$PATH"
1149  do    for ac_dir in $ac_dummy; do
1150    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1151    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1152    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_CC="gcc"
1153    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1154      ac_cv_prog_CC="${ac_tool_prefix}cc"      fi
1155      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1156      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1157  fi  fi
1158  fi  fi
1159  CC=$ac_cv_prog_CC  CC="$ac_cv_prog_CC"
1160  if test -n "$CC"; then  if test -n "$CC"; then
1161    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.  
 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="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  
 fi  
   
   CC=$ac_ct_CC  
1162  else  else
1163    CC="$ac_cv_prog_CC"    echo "$ac_t""no" 1>&6
1164  fi  fi
1165    
 fi  
1166  if test -z "$CC"; then  if test -z "$CC"; then
1167    # 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.
1168  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1169  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1170  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1171: checking for $ac_word" >&5
1171  if test "${ac_cv_prog_CC+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1172    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1173  else  else
1174    if test -n "$CC"; then    if test -n "$CC"; then
1175    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1176  else  else
1177      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1178    ac_prog_rejected=no    ac_prog_rejected=no
1179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    ac_dummy="$PATH"
1180  for as_dir in $PATH    for ac_dir in $ac_dummy; do
1181  do      test -z "$ac_dir" && ac_dir=.
1182    IFS=$as_save_IFS      if test -f $ac_dir/$ac_word; then
1183    test -z "$as_dir" && as_dir=.        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1184    for ac_exec_ext in '' $ac_executable_extensions; do          ac_prog_rejected=yes
1185    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then          continue
1186      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then        fi
1187         ac_prog_rejected=yes        ac_cv_prog_CC="cc"
1188         continue        break
1189       fi      fi
1190      ac_cv_prog_CC="cc"    done
1191      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    IFS="$ac_save_ifs"
     break 2  
   fi  
 done  
 done  
   
1192  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
1193    # 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.
1194    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
1195    shift    shift
1196    if test $# != 0; then    if test $# -gt 0; then
1197      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
1198      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
1199      # 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.
1200      shift      shift
1201      ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"      set dummy "$ac_dir/$ac_word" "$@"
1202        shift
1203        ac_cv_prog_CC="$@"
1204    fi    fi
1205  fi  fi
1206  fi  fi
1207  fi  fi
1208  CC=$ac_cv_prog_CC  CC="$ac_cv_prog_CC"
1209  if test -n "$CC"; then  if test -n "$CC"; then
1210    echo "$as_me:$LINENO: result: $CC" >&5    echo "$ac_t""$CC" 1>&6
 echo "${ECHO_T}$CC" >&6  
1211  else  else
1212    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1213  fi  fi
1214    
1215  fi    if test -z "$CC"; then
1216  if test -z "$CC"; then      case "`uname -s`" in
1217    if test -n "$ac_tool_prefix"; then      *win32* | *WIN32*)
1218    for ac_prog in cl        # Extract the first word of "cl", so it can be a program name with args.
1219    do  set dummy cl; ac_word=$2
1220      # 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
1221  set dummy $ac_tool_prefix$ac_prog; ac_word=$2  echo "configure:1222: checking for $ac_word" >&5
1222  echo "$as_me:$LINENO: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1223  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  
1224  else  else
1225    if test -n "$CC"; then    if test -n "$CC"; then
1226    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1227  else  else
1228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1229  for as_dir in $PATH    ac_dummy="$PATH"
1230  do    for ac_dir in $ac_dummy; do
1231    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1232    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1233    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_CC="cl"
1234    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1235      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"      fi
1236      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1237      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1238  fi  fi
1239  fi  fi
1240  CC=$ac_cv_prog_CC  CC="$ac_cv_prog_CC"
1241  if test -n "$CC"; then  if test -n "$CC"; then
1242    echo "$as_me:$LINENO: result: $CC" >&5    echo "$ac_t""$CC" 1>&6
 echo "${ECHO_T}$CC" >&6  
1243  else  else
1244    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1245  fi  fi
1246     ;;
1247      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  
1248    fi    fi
1249  done    test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 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  
1250  fi  fi
1251    
1252    test -n "$ac_ct_CC" && break  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1253  done  echo "configure:1254: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
   
   CC=$ac_ct_CC  
 fi  
1254    
1255  fi  ac_ext=c
1256    # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1257    ac_cpp='$CPP $CPPFLAGS'
1258  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1259  See \`config.log' for more details." >&5  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1260  echo "$as_me: error: no acceptable C compiler found in \$PATH  cross_compiling=$ac_cv_prog_cc_cross
 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  
 #line $LINENO "configure"  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1261    
1262  int  cat > conftest.$ac_ext << EOF
 main ()  
 {  
1263    
1264    ;  #line 1265 "configure"
1265    return 0;  #include "confdefs.h"
 }  
 _ACEOF  
 ac_clean_files_save=$ac_clean_files  
 ac_clean_files="$ac_clean_files a.out a.exe b.out"  
 # Try to create an executable without -o first, disregard a.out.  
 # It will help us diagnose broken compilers, and finding out an intuition  
 # of exeext.  
 echo "$as_me:$LINENO: checking for C compiler default output" >&5  
 echo $ECHO_N "checking for C compiler default output... $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  
1266    
1267  { { echo "$as_me:$LINENO: error: C compiler cannot create executables  main(){return(0);}
1268  See \`config.log' for more details." >&5  EOF
1269  echo "$as_me: error: C compiler cannot create executables  if { (eval echo configure:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1270  See \`config.log' for more details." >&2;}    ac_cv_prog_cc_works=yes
1271     { (exit 77); exit 77; }; }    # If we can't run a trivial program, we are probably using a cross compiler.
1272  fi    if (./conftest; exit) 2>/dev/null; then
1273        ac_cv_prog_cc_cross=no
 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  
1274    else    else
1275      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  
1276    fi    fi
1277    else
1278      echo "configure: failed program was:" >&5
1279      cat conftest.$ac_ext >&5
1280      ac_cv_prog_cc_works=no
1281  fi  fi
1282  echo "$as_me:$LINENO: result: yes" >&5  rm -fr conftest*
1283  echo "${ECHO_T}yes" >&6  ac_ext=c
1284    # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1285  rm -f a.out a.exe conftest$ac_cv_exeext b.out  ac_cpp='$CPP $CPPFLAGS'
1286  ac_clean_files=$ac_clean_files_save  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1287  # 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'
1288  # the compiler is broken, or we cross compile.  cross_compiling=$ac_cv_prog_cc_cross
1289  echo "$as_me:$LINENO: checking whether we are cross compiling" >&5  
1290  echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6  echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1291  echo "$as_me:$LINENO: result: $cross_compiling" >&5  if test $ac_cv_prog_cc_works = no; then
1292  echo "${ECHO_T}$cross_compiling" >&6    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1293    fi
1294  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
1295  echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6  echo "configure:1296: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1296  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1297    (eval $ac_link) 2>&5  cross_compiling=$ac_cv_prog_cc_cross
1298    ac_status=$?  
1299    echo "$as_me:$LINENO: \$? = $ac_status" >&5  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1300    (exit $ac_status); }; then  echo "configure:1301: checking whether we are using GNU C" >&5
1301    # If both `conftest.exe' and `conftest' are `present' (well, observable)  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1302  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will    echo $ac_n "(cached) $ac_c" 1>&6
1303  # work properly (i.e., refer to `conftest.exe'), while it won't with  else
1304  # `rm'.    cat > conftest.c <<EOF
1305  for ac_file in conftest.exe conftest conftest.*; do  #ifdef __GNUC__
1306    test -f "$ac_file" || continue    yes;
1307    case $ac_file in  #endif
1308      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;  EOF
1309      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1310            export ac_cv_exeext    ac_cv_prog_gcc=yes
           break;;  
     * ) break;;  
   esac  
 done  
1311  else  else
1312    { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link    ac_cv_prog_gcc=no
1313  See \`config.log' for more details." >&5  fi
1314  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  
 #line $LINENO "configure"  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1315    
1316  int  echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 main ()  
 {  
1317    
1318    ;  if test $ac_cv_prog_gcc = yes; then
1319    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  
1320  else  else
1321    echo "$as_me: failed program was:" >&5    GCC=
1322  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  
 #line $LINENO "configure"  
 /* 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>&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.$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  
 #line $LINENO "configure"  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 int  
 main ()  
 {  
1323    
1324    ;  ac_test_CFLAGS="${CFLAGS+set}"
1325    return 0;  ac_save_CFLAGS="$CFLAGS"
1326  }  CFLAGS=
1327  _ACEOF  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1328  rm -f conftest.$ac_objext  echo "configure:1329: checking whether ${CC-cc} accepts -g" >&5
1329  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1330    (eval $ac_compile) 2>&5    echo $ac_n "(cached) $ac_c" 1>&6
1331    ac_status=$?  else
1332    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo 'void f(){}' > conftest.c
1333    (exit $ac_status); } &&  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
          { 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  
1334    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
1335  else  else
1336    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  
1337  fi  fi
1338  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest*
1339    
1340  fi  fi
1341  echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5  
1342  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1343  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
1344    CFLAGS=$ac_save_CFLAGS    CFLAGS="$ac_save_CFLAGS"
1345  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
1346    if test "$GCC" = yes; then    if test "$GCC" = yes; then
1347      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 2512  else Line 1355  else
1355      CFLAGS=      CFLAGS=
1356    fi    fi
1357  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  
 #line $LINENO "configure"  
 /* 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;  
 }  
 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>&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.$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  
1358    
1359  # Some people use a C++ compiler to compile C.  Since we use `exit',  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1360  # in C++ we need to declare it.  In case someone uses the same compiler  echo "configure:1361: checking how to run the C preprocessor" >&5
 # 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>&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  
 #line $LINENO "configure"  
 /* 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>&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.$ac_objext conftest.$ac_ext  
   cat >conftest.$ac_ext <<_ACEOF  
 #line $LINENO "configure"  
 /* 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>&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.$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.$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  
   
 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  
 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  
1361  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1362  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1363    CPP=    CPP=
1364  fi  fi
1365  if test -z "$CPP"; then  if test -z "$CPP"; then
1366    if test "${ac_cv_prog_CPP+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1367    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1368  else  else
1369        # Double quotes because CPP needs to be expanded      # This must be in double quotes, not single quotes, because CPP may get
1370      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"    # substituted into the Makefile and "${CC-cc}" will confuse make.
1371      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.  
1372    # 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,
1373    # not just through cpp. "Syntax error" is here to catch this case.    # not just through cpp.
1374    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
1375  #line $LINENO "configure"  #line 1376 "configure"
1376  /* confdefs.h.  */  #include "confdefs.h"
1377  _ACEOF  #include <assert.h>
1378  cat confdefs.h >>conftest.$ac_ext  Syntax Error
1379  cat >>conftest.$ac_ext <<_ACEOF  EOF
1380  /* end confdefs.h.  */  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1381  #ifdef __STDC__  { (eval echo configure:1382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1382  # include <limits.h>  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1383  #else  if test -z "$ac_err"; then
 # 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  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
1384    :    :
1385  else  else
1386    echo "$as_me: failed program was:" >&5    echo "$ac_err" >&5
1387  sed 's/^/| /' conftest.$ac_ext >&5    echo "configure: failed program was:" >&5
1388      cat conftest.$ac_ext >&5
1389    # Broken: fails on valid input.    rm -rf conftest*
1390  continue    CPP="${CC-cc} -E -traditional-cpp"
1391  fi    cat > conftest.$ac_ext <<EOF
1392  rm -f conftest.err conftest.$ac_ext  #line 1393 "configure"
1393    #include "confdefs.h"
1394    # OK, works on sane cases.  Now check whether non-existent headers  #include <assert.h>
1395    # can be detected and how.  Syntax Error
1396    cat >conftest.$ac_ext <<_ACEOF  EOF
1397  #line $LINENO "configure"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1398  /* confdefs.h.  */  { (eval echo configure:1399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1399  _ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1400  cat confdefs.h >>conftest.$ac_ext  if test -z "$ac_err"; then
1401  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  
   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  
 #line $LINENO "configure"  
 /* 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  
   else  
     ac_cpp_err=  
   fi  
1402  else  else
1403    ac_cpp_err=yes    echo "$ac_err" >&5
1404  fi    echo "configure: failed program was:" >&5
1405  if test -z "$ac_cpp_err"; then    cat conftest.$ac_ext >&5
1406      rm -rf conftest*
1407      CPP="${CC-cc} -nologo -E"
1408      cat > conftest.$ac_ext <<EOF
1409    #line 1410 "configure"
1410    #include "confdefs.h"
1411    #include <assert.h>
1412    Syntax Error
1413    EOF
1414    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1415    { (eval echo configure:1416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1416    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1417    if test -z "$ac_err"; then
1418    :    :
1419  else  else
1420    echo "$as_me: failed program was:" >&5    echo "$ac_err" >&5
1421  sed 's/^/| /' conftest.$ac_ext >&5    echo "configure: failed program was:" >&5
1422      cat conftest.$ac_ext >&5
1423    # Broken: fails on valid input.    rm -rf conftest*
1424  continue    CPP=/lib/cpp
1425  fi  fi
1426  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  
 #line $LINENO "configure"  
 /* 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  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
1427  fi  fi
1428  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  
1429  fi  fi
1430  rm -f conftest.err conftest.$ac_ext  rm -f conftest*
1431      ac_cv_prog_CPP="$CPP"
1432  done  fi
1433  # 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  
   :  
1434  else  else
1435    { { 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; }; }  
1436  fi  fi
1437    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  
1438    
1439    
1440    
# Line 2995  fi Line 1468  fi
1468    
1469  for ac_prog in gawk nawk awk  for ac_prog in gawk nawk awk
1470  do  do
1471    # 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.
1472  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1473  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1474  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1475: checking for $ac_word" >&5
1475  if test "${ac_cv_prog_AWK+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1476    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1477  else  else
1478    if test -n "$AWK"; then    if test -n "$AWK"; then
1479    ac_cv_prog_AWK="$AWK" # Let the user override the test.    ac_cv_prog_AWK="$AWK" # Let the user override the test.
1480  else  else
1481  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1482  for as_dir in $PATH    ac_dummy="$PATH"
1483  do    for ac_dir in $ac_dummy; do
1484    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1485    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1486    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_AWK="$ac_prog"
1487    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1488      ac_cv_prog_AWK="$ac_prog"      fi
1489      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1490      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1491  fi  fi
1492  fi  fi
1493  AWK=$ac_cv_prog_AWK  AWK="$ac_cv_prog_AWK"
1494  if test -n "$AWK"; then  if test -n "$AWK"; then
1495    echo "$as_me:$LINENO: result: $AWK" >&5    echo "$ac_t""$AWK" 1>&6
 echo "${ECHO_T}$AWK" >&6  
1496  else  else
1497    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1498  fi  fi
1499    
1500    test -n "$AWK" && break  test -n "$AWK" && break
1501  done  done
1502  test -n "$AWK" || AWK=""""  test -n "$AWK" || AWK=""""
1503    
1504    
1505  case $use in  case $use in
1506       *linux)       *linux)
1507          case $use in          case $use in
1508                  amd64*)                  amd64*)
1509                          TCFLAGS="$TCFLAGS -m64";;                          TCFLAGS="$TCFLAGS -m64";;  
1510                  alpha*)                  alpha*)
1511                          TCFLAGS="$TCFLAGS -mieee";;                          TCFLAGS="$TCFLAGS -mieee";;
1512  #               m68k*)  #               m68k*)
# Line 3050  case $use in Line 1517  case $use in
1517                          TO2FLAGS="-O"                          TO2FLAGS="-O"
1518                          ;;                          ;;
1519                  arm*)                  arm*)
1520                          TCFLAGS="$TCFLAGS -mlong-calls";;                          TCFLAGS="$TCFLAGS -mlong-calls";;      
1521                  powerpc*)                  powerpc*)
1522                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then
1523                             echo Reducing optimization for buggy gcc-3.2                             echo Reducing optimization for buggy gcc-3.2
1524                             TO3FLAGS="-O -fomit-frame-pointer"                             TO3FLAGS="-O -fomit-frame-pointer"
# Line 3074  fi Line 1541  fi
1541  # 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
1542  # there are a few systems, like Next, where this doesn't work.  # there are a few systems, like Next, where this doesn't work.
1543    
1544  echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5  echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6
1545  echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6  echo "configure:1546: checking system version (for dynamic loading)" >&5
1546  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
1547    
1548  for ac_prog in makeinfo  for ac_prog in makeinfo
1549  do  do
1550    # 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.
1551  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1552  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1553  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1554: checking for $ac_word" >&5
1554  if test "${ac_cv_prog_MAKEINFO+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1555    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1556  else  else
1557    if test -n "$MAKEINFO"; then    if test -n "$MAKEINFO"; then
1558    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1559  else  else
1560  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1561  for as_dir in $PATH    ac_dummy="$PATH"
1562  do    for ac_dir in $ac_dummy; do
1563    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1564    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1565    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_MAKEINFO="$ac_prog"
1566    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1567      ac_cv_prog_MAKEINFO="$ac_prog"      fi
1568      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1569      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1570  fi  fi
1571  fi  fi
1572  MAKEINFO=$ac_cv_prog_MAKEINFO  MAKEINFO="$ac_cv_prog_MAKEINFO"
1573  if test -n "$MAKEINFO"; then  if test -n "$MAKEINFO"; then
1574    echo "$as_me:$LINENO: result: $MAKEINFO" >&5    echo "$ac_t""$MAKEINFO" 1>&6
 echo "${ECHO_T}$MAKEINFO" >&6  
1575  else  else
1576    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1577  fi  fi
1578    
1579    test -n "$MAKEINFO" && break  test -n "$MAKEINFO" && break
1580  done  done
1581  test -n "$MAKEINFO" || MAKEINFO=""false""  test -n "$MAKEINFO" || MAKEINFO=""false""
1582    
# Line 3126  if test -f /usr/lib/NextStep/software_ve Line 1587  if test -f /usr/lib/NextStep/software_ve
1587  else  else
1588      system=`uname -s`-`uname -r`      system=`uname -s`-`uname -r`
1589      if test "$?" -ne 0 ; then      if test "$?" -ne 0 ; then
1590          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  
1591          system=unknown          system=unknown
1592      else      else
1593          # Special check for weird MP-RAS system (uname returns weird          # Special check for weird MP-RAS system (uname returns weird
1594          # results, and the version is kept in special file).          # results, and the version is kept in special file).
1595        
1596          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
1597              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`
1598          fi          fi
1599          if test "`uname -s`" = "AIX" ; then          if test "`uname -s`" = "AIX" ; then
1600              system=AIX-`uname -v`.`uname -r`              system=AIX-`uname -v`.`uname -r`
1601          fi          fi
1602          echo "$as_me:$LINENO: result: $system" >&5          echo "$ac_t""$system" 1>&6
 echo "${ECHO_T}$system" >&6  
1603      fi      fi
1604  fi  fi
1605    
# Line 3155  rm -f makedefsafter Line 1614  rm -f makedefsafter
1614  MP_INLCUDE=""  MP_INLCUDE=""
1615  if test $use_gmp = yes ; then  if test $use_gmp = yes ; then
1616    
1617   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
1618  echo $ECHO_N "checking use_gmp=yes, doing configure in gmp directory... $ECHO_C" >&6  echo "configure:1619: checking use_gmp=yes, doing configure in gmp directory" >&5
1619   echo   echo
1620   echo "#"   echo "#"
1621   echo "#"   echo "#"
# Line 3176  echo $ECHO_N "checking use_gmp=yes, doin Line 1635  echo $ECHO_N "checking use_gmp=yes, doin
1635   else   else
1636     cd $GMPDIR && ./configure && cd ..     cd $GMPDIR && ./configure && cd ..
1637   fi   fi
1638  #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"  #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"
1639    
1640   echo "#"   echo "#"
1641   echo "#"   echo "#"
# Line 3187  echo $ECHO_N "checking use_gmp=yes, doin Line 1646  echo $ECHO_N "checking use_gmp=yes, doin
1646    
1647   PATCHED_SYMBOLS=""   PATCHED_SYMBOLS=""
1648   if test "$enable_dynsysgmp" = "yes" ; then   if test "$enable_dynsysgmp" = "yes" ; then
1649            ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`
1650  echo "$as_me:$LINENO: checking for egrep" >&5  echo $ac_n "checking for gmp.h""... $ac_c" 1>&6
1651  echo $ECHO_N "checking for egrep... $ECHO_C" >&6  echo "configure:1652: checking for gmp.h" >&5
1652  if test "${ac_cv_prog_egrep+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1653    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1654  else  else
1655    if echo a | (grep -E '(a|b)') >/dev/null 2>&1    cat > conftest.$ac_ext <<EOF
1656      then ac_cv_prog_egrep='grep -E'  #line 1657 "configure"
1657      else ac_cv_prog_egrep='egrep'  #include "confdefs.h"
1658      fi  #include <gmp.h>
1659  fi  EOF
1660  echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1661  echo "${ECHO_T}$ac_cv_prog_egrep" >&6  { (eval echo configure:1662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1662   EGREP=$ac_cv_prog_egrep  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1663    if test -z "$ac_err"; then
1664      rm -rf conftest*
1665  echo "$as_me:$LINENO: checking for ANSI C header files" >&5    eval "ac_cv_header_$ac_safe=yes"
1666  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6  else
1667  if test "${ac_cv_header_stdc+set}" = set; then    echo "$ac_err" >&5
1668    echo $ECHO_N "(cached) $ECHO_C" >&6    echo "configure: failed program was:" >&5
1669  else    cat conftest.$ac_ext >&5
1670    cat >conftest.$ac_ext <<_ACEOF    rm -rf conftest*
1671  #line $LINENO "configure"    eval "ac_cv_header_$ac_safe=no"
 /* 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>&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.$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  
 #line $LINENO "configure"  
 /* 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  
 #line $LINENO "configure"  
 /* 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  
1672  fi  fi
1673  rm -f conftest*  rm -f conftest*
   
1674  fi  fi
1675    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1676  if test $ac_cv_header_stdc = yes; then    echo "$ac_t""yes" 1>&6
1677    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.    echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6
1678    if test "$cross_compiling" = yes; then  echo "configure:1679: checking for __gmpz_init in -lgmp" >&5
1679    :  ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`
1680    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1681      echo $ac_n "(cached) $ac_c" 1>&6
1682  else  else
1683    cat >conftest.$ac_ext <<_ACEOF    ac_save_LIBS="$LIBS"
1684  #line $LINENO "configure"  LIBS="-lgmp  $LIBS"
1685  /* confdefs.h.  */  cat > conftest.$ac_ext <<EOF
1686  _ACEOF  #line 1687 "configure"
1687  cat confdefs.h >>conftest.$ac_ext  #include "confdefs.h"
1688  cat >>conftest.$ac_ext <<_ACEOF  /* Override any gcc2 internal prototype to avoid an error.  */
1689  /* end confdefs.h.  */  /* We use char because int might match the return type of a gcc2
1690  #include <ctype.h>      builtin and then its argument prototype would still apply.  */
1691  #if ((' ' & 0x0FF) == 0x020)  char __gmpz_init();
 # 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  
 #line $LINENO "configure"  
 /* 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>&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.$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_gmp_h+set}" = set; then  
   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  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5  
 echo "${ECHO_T}$ac_cv_header_gmp_h" >&6  
 else  
   # 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  
 #line $LINENO "configure"  
 /* 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>&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.$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  
 #line $LINENO "configure"  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <gmp.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  
   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  
1692    
1693    ac_header_preproc=no  int main() {
1694  fi  __gmpz_init()
1695  rm -f conftest.err conftest.$ac_ext  ; return 0; }
1696  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  EOF
1697  echo "${ECHO_T}$ac_header_preproc" >&6  if { (eval echo configure:1698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1698      rm -rf conftest*
1699  # So?  What about this header?    eval "ac_cv_lib_$ac_lib_var=yes"
1700  case $ac_header_compiler:$ac_header_preproc in  else
1701    yes:no )    echo "configure: failed program was:" >&5
1702      { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5    cat conftest.$ac_ext >&5
1703  echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}    rm -rf conftest*
1704      { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5    eval "ac_cv_lib_$ac_lib_var=no"
 echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
   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: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _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  
1705  fi  fi
1706  echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5  rm -f conftest*
1707  echo "${ECHO_T}$ac_cv_header_gmp_h" >&6  LIBS="$ac_save_LIBS"
1708    
1709  fi  fi
1710  if test $ac_cv_header_gmp_h = yes; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1711    echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5    echo "$ac_t""yes" 1>&6
 echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6  
 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-lgmp  $LIBS"  
   
 cat >conftest.$ac_ext <<_ACEOF  
 #line $LINENO "configure"  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 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 __gmpz_init ();  
 int  
 main ()  
 {  
 __gmpz_init ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext 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='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.$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  
1712    MPFILES=$GMPDIR/mpn/mul_n.o    MPFILES=$GMPDIR/mpn/mul_n.o
1713                          PATCHED_SYMBOLS=__gmpn_toom3_mul_n                          PATCHED_SYMBOLS=__gmpn_toom3_mul_n
1714                          if test "$use" = "m68k-linux" ; then                          if test "$use" = "m68k-linux" ; then
# Line 3624  if test $ac_cv_lib_gmp___gmpz_init = yes Line 1721  if test $ac_cv_lib_gmp___gmpz_init = yes
1721                          MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -1l | $AWK '{print $3}' | tr -d '"'`                          MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -1l | $AWK '{print $3}' | tr -d '"'`
1722                          rm -f foo.c                          rm -f foo.c
1723  else  else
1724    echo "Cannot use dynamic gmp lib" ; exit 1    echo "$ac_t""no" 1>&6
1725    echo "Cannot use dynamic gmp lib" ; exit 1
1726  fi  fi
1727    
1728  else  else
1729    echo "Cannot use dynamic gmp lib" ; exit 1    echo "$ac_t""no" 1>&6
1730    echo "Cannot use dynamic gmp lib" ; exit 1
1731  fi  fi
1732    
1733    
1734    else                    
 else  
1735    
1736          cp $GMPDIR/gmp.h h/gmp.h          cp $GMPDIR/gmp.h h/gmp.h
1737          MP_INCLUDE=h/gmp.h          MP_INCLUDE=h/gmp.h
# Line 3641  else Line 1739  else
1739    
1740  fi  fi
1741    
1742   echo "$as_me:$LINENO: checking \"for size of gmp limbs\"" >&5   echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6
1743  echo $ECHO_N "checking \"for size of gmp limbs\"... $ECHO_C" >&6  echo "configure:1744: checking "for size of gmp limbs"" >&5
1744   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
1745    mpsize=0    mpsize=0
1746  else  else
1747    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
1748  #line $LINENO "configure"  #line 1749 "configure"
1749  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1750  #include <stdio.h>  #include <stdio.h>
1751          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
1752          int main() {          int main() {
# Line 3661  cat >>conftest.$ac_ext <<_ACEOF Line 1755  cat >>conftest.$ac_ext <<_ACEOF
1755          fclose(fp);          fclose(fp);
1756          return 0;          return 0;
1757          }          }
1758  _ACEOF  EOF
1759  rm -f conftest$ac_exeext  if { (eval echo configure:1760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1760  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  
1761    mpsize=`cat conftest1`    mpsize=`cat conftest1`
1762  else  else
1763    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
1764  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
1765  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
1766      mpsize=0
 ( exit $ac_status )  
 mpsize=0  
1767  fi  fi
1768  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
1769  fi  fi
1770    
1771   if test "$mpsize" = "0" ; then   if test "$mpsize" = "0" ; then
1772          echo "Cannot determine mpsize"          echo "Cannot determine mpsize"
1773          exit 1          exit 1
1774   fi   fi
1775   cat >>confdefs.h <<_ACEOF   cat >> confdefs.h <<EOF
1776  #define MP_LIMB_BYTES $mpsize  #define MP_LIMB_BYTES $mpsize
1777  _ACEOF  EOF
1778    
1779   echo "$as_me:$LINENO: result: $mpsize" >&5   echo "$ac_t""$mpsize" 1>&6
 echo "${ECHO_T}$mpsize" >&6  
1780    
1781   echo "$as_me:$LINENO: checking \"_SHORT_LIMB\"" >&5   echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6
1782  echo $ECHO_N "checking \"_SHORT_LIMB\"... $ECHO_C" >&6  echo "configure:1783: checking "_SHORT_LIMB"" >&5
1783   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
1784    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1785  else  else
1786    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
1787  #line $LINENO "configure"  #line 1788 "configure"
1788  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1789  #include <stdio.h>  #include <stdio.h>
1790          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
1791          int main() {          int main() {
# Line 3717  cat >>conftest.$ac_ext <<_ACEOF Line 1795  cat >>conftest.$ac_ext <<_ACEOF
1795          return 1;          return 1;
1796          #endif          #endif
1797          }          }
1798  _ACEOF  EOF
1799  rm -f conftest$ac_exeext  if { (eval echo configure:1800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1800  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
1801    (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  
1802  #define __SHORT_LIMB 1  #define __SHORT_LIMB 1
1803  _ACEOF  EOF
1804   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
1805  echo "${ECHO_T}yes" >&6  else
1806  else    echo "configure: failed program was:" >&5
1807    echo "$as_me: program exited with status $ac_status" >&5    cat conftest.$ac_ext >&5
1808  echo "$as_me: failed program was:" >&5    rm -fr conftest*
1809  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  
1810  fi  fi
1811  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
1812  fi  fi
1813   echo "$as_me:$LINENO: checking \"_LONG_LONG_LIMB\"" >&5  
1814  echo $ECHO_N "checking \"_LONG_LONG_LIMB\"... $ECHO_C" >&6   echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6
1815    echo "configure:1816: checking "_LONG_LONG_LIMB"" >&5
1816   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
1817    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1818  else  else
1819    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
1820  #line $LINENO "configure"  #line 1821 "configure"
1821  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1822  #include <stdio.h>  #include <stdio.h>
1823          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
1824          int main() {          int main() {
# Line 3767  cat >>conftest.$ac_ext <<_ACEOF Line 1828  cat >>conftest.$ac_ext <<_ACEOF
1828          return 1;          return 1;
1829          #endif          #endif
1830          }          }
1831  _ACEOF  EOF
1832  rm -f conftest$ac_exeext  if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1833  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
1834    (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  
1835  #define __LONG_LONG_LIMB 1  #define __LONG_LONG_LIMB 1
1836  _ACEOF  EOF
1837   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
1838  echo "${ECHO_T}yes" >&6  else
1839  else    echo "configure: failed program was:" >&5
1840    echo "$as_me: program exited with status $ac_status" >&5    cat conftest.$ac_ext >&5
1841  echo "$as_me: failed program was:" >&5    rm -fr conftest*
1842  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  
1843  fi  fi
1844  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
1845  fi  fi
1846    
1847    
1848   GMP=1   GMP=1
1849   cat >>confdefs.h <<\_ACEOF   cat >> confdefs.h <<\EOF
1850  #define GMP 1  #define GMP 1
1851  _ACEOF  EOF
   
   
1852    
1853    
1854    
1855   echo > makedefsafter   echo > makedefsafter
1856   echo "MPFILES=$MPFILES" >> makedefsafter   echo "MPFILES=$MPFILES" >> makedefsafter
1857   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter
# Line 3812  fi Line 1861  fi
1861    
1862  #  #
1863  # X windows  # X windows
1864  #  #
   
 echo "$as_me:$LINENO: checking for X" >&5  
 echo $ECHO_N "checking for X... $ECHO_C" >&6  
1865    
1866    # If we find X, set shell vars x_includes and x_libraries to the
1867    # paths, otherwise set no_x=yes.
1868    # Uses ac_ vars as temps to allow command line to override cache and checks.
1869    # --without-x overrides everything else, but does not touch the cache.
1870    echo $ac_n "checking for X""... $ac_c" 1>&6
1871    echo "configure:1872: checking for X" >&5
1872    
1873  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
1874  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
1875    withval="$with_x"    withval="$with_x"
1876      :
1877    fi
1878    
 fi;  
1879  # $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.
1880  if test "x$with_x" = xno; then  if test "x$with_x" = xno; then
1881    # The user explicitly disabled X.    # The user explicitly disabled X.
# Line 3832  else Line 1885  else
1885      # Both variables are already set.      # Both variables are already set.
1886      have_x=yes      have_x=yes
1887    else    else
1888      if test "${ac_cv_have_x+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1889    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1890  else  else
1891    # 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.
1892  ac_x_includes=no ac_x_libraries=no  ac_x_includes=NO ac_x_libraries=NO
1893  rm -fr conftest.dir  rm -fr conftestdir
1894  if mkdir conftest.dir; then  if mkdir conftestdir; then
1895    cd conftest.dir    cd conftestdir
1896    # 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.
1897    cat >Imakefile <<'_ACEOF'    cat > Imakefile <<'EOF'
1898  acfindx:  acfindx:
1899          @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}"'
1900  _ACEOF  EOF
1901    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1902      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1903      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1904      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1905      for ac_extension in a so sl; do      for ac_extension in a so sl; do
1906        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1907           test -f $ac_im_libdir/libX11.$ac_extension; then          test -f $ac_im_libdir/libX11.$ac_extension; then
1908          ac_im_usrlibdir=$ac_im_libdir; break          ac_im_usrlibdir=$ac_im_libdir; break
1909        fi        fi
1910      done      done
1911      # Screen out bogus values from the imake configuration.  They are      # Screen out bogus values from the imake configuration.  They are
1912      # bogus both because they are the default anyway, and because      # bogus both because they are the default anyway, and because
1913      # using them would break gcc on systems where it needs fixed includes.      # using them would break gcc on systems where it needs fixed includes.
1914      case $ac_im_incroot in      case "$ac_im_incroot" in
1915          /usr/include) ;;          /usr/include) ;;
1916          *) 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" ;;
1917      esac      esac
1918      case $ac_im_usrlibdir in      case "$ac_im_usrlibdir" in
1919          /usr/lib | /lib) ;;          /usr/lib | /lib) ;;
1920          *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;          *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1921      esac      esac
1922    fi    fi
1923    cd ..    cd ..
1924    rm -fr conftest.dir    rm -fr conftestdir
1925  fi  fi
1926    
1927  # Standard set of common directories for X headers.  if test "$ac_x_includes" = NO; then
1928  # 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.
1929  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'  
1930    
 if test "$ac_x_includes" = no; then  
   # Guess where to find include files, by looking for Intrinsic.h.  
1931    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
1932    cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
1933  #line $LINENO "configure"  #line 1934 "configure"
1934  /* confdefs.h.  */  #include "confdefs.h"
1935  _ACEOF  #include <$x_direct_test_include>
1936  cat confdefs.h >>conftest.$ac_ext  EOF
1937  cat >>conftest.$ac_ext <<_ACEOF  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1938  /* end confdefs.h.  */  { (eval echo configure:1939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1939  #include <X11/Intrinsic.h>  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1940  _ACEOF  if test -z "$ac_err"; then
1941  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5    rm -rf conftest*
   (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  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
1942    # We can compile using X headers with no special include directory.    # We can compile using X headers with no special include directory.
1943  ac_x_includes=  ac_x_includes=
1944  else  else
1945    echo "$as_me: failed program was:" >&5    echo "$ac_err" >&5
1946  sed 's/^/| /' conftest.$ac_ext >&5    echo "configure: failed program was:" >&5
1947      cat conftest.$ac_ext >&5
1948    for ac_dir in $ac_x_header_dirs; do    rm -rf conftest*
1949    if test -r "$ac_dir/X11/Intrinsic.h"; then    # Look for the header file in a standard set of common directories.
1950      ac_x_includes=$ac_dir  # Check X11 before X11Rn because it is often a symlink to the current release.
1951      break    for ac_dir in               \
1952    fi      /usr/X11/include          \
1953  done      /usr/X11R6/include        \
1954        /usr/X11R5/include        \
1955        /usr/X11R4/include        \
1956                                  \
1957        /usr/include/X11          \
1958        /usr/include/X11R6        \
1959        /usr/include/X11R5        \
1960        /usr/include/X11R4        \
1961                                  \
1962        /usr/local/X11/include    \
1963        /usr/local/X11R6/include  \
1964        /usr/local/X11R5/include  \
1965        /usr/local/X11R4/include  \
1966                                  \
1967        /usr/local/include/X11    \
1968        /usr/local/include/X11R6  \
1969        /usr/local/include/X11R5  \
1970        /usr/local/include/X11R4  \
1971                                  \
1972        /usr/X386/include         \
1973        /usr/x386/include         \
1974        /usr/XFree86/include/X11  \
1975                                  \
1976        /usr/include              \
1977        /usr/local/include        \
1978        /usr/unsupported/include  \
1979        /usr/athena/include       \
1980        /usr/local/x11r5/include  \
1981        /usr/lpp/Xamples/include  \
1982                                  \
1983        /usr/openwin/include      \
1984        /usr/openwin/share/include \
1985        ; \
1986      do
1987        if test -r "$ac_dir/$x_direct_test_include"; then
1988          ac_x_includes=$ac_dir
1989          break
1990        fi
1991      done
1992  fi  fi
1993  rm -f conftest.err conftest.$ac_ext  rm -f conftest*
1994  fi # $ac_x_includes = no  fi # $ac_x_includes = NO
1995    
1996  if test "$ac_x_libraries" = no; then  if test "$ac_x_libraries" = NO; then
1997    # Check for the libraries.    # Check for the libraries.
1998    
1999      test -z "$x_direct_test_library" && x_direct_test_library=Xt
2000      test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2001    
2002    # See if we find them without any special options.    # See if we find them without any special options.
2003    # Don't add to $LIBS permanently.    # Don't add to $LIBS permanently.
2004    ac_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2005    LIBS="-lXt $LIBS"    LIBS="-l$x_direct_test_library $LIBS"
2006    cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2007  #line $LINENO "configure"  #line 2008 "configure"
2008  /* confdefs.h.  */  #include "confdefs.h"
2009  _ACEOF  
2010  cat confdefs.h >>conftest.$ac_ext  int main() {
2011  cat >>conftest.$ac_ext <<_ACEOF  ${x_direct_test_function}()
2012  /* end confdefs.h.  */  ; return 0; }
2013  #include <X11/Intrinsic.h>  EOF
2014  int  if { (eval echo configure:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2015  main ()    rm -rf conftest*
2016  {    LIBS="$ac_save_LIBS"
 XtMalloc (0)  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext 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='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  
2017  # We can link X programs with no special library path.  # We can link X programs with no special library path.
2018  ac_x_libraries=  ac_x_libraries=
2019  else  else
2020    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
2021  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2022      rm -rf conftest*
2023  LIBS=$ac_save_LIBS    LIBS="$ac_save_LIBS"
2024  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.
2025    # Check X11 before X11Rn because it is often a symlink to the current release.
2026    for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2027        /usr/X11/lib          \
2028        /usr/X11R6/lib        \
2029        /usr/X11R5/lib        \
2030        /usr/X11R4/lib        \
2031                              \
2032        /usr/lib/X11          \
2033        /usr/lib/X11R6        \
2034        /usr/lib/X11R5        \
2035        /usr/lib/X11R4        \
2036                              \
2037        /usr/local/X11/lib    \
2038        /usr/local/X11R6/lib  \
2039        /usr/local/X11R5/lib  \
2040        /usr/local/X11R4/lib  \
2041                              \
2042        /usr/local/lib/X11    \
2043        /usr/local/lib/X11R6  \
2044        /usr/local/lib/X11R5  \
2045        /usr/local/lib/X11R4  \
2046                              \
2047        /usr/X386/lib         \
2048        /usr/x386/lib         \
2049        /usr/XFree86/lib/X11  \
2050                              \
2051        /usr/lib              \
2052        /usr/local/lib        \
2053        /usr/unsupported/lib  \
2054        /usr/athena/lib       \
2055        /usr/local/x11r5/lib  \
2056        /usr/lpp/Xamples/lib  \
2057        /lib/usr/lib/X11      \
2058                              \
2059        /usr/openwin/lib      \
2060        /usr/openwin/share/lib \
2061        ; \
2062  do  do
   # Don't even attempt the hair of trying to link an X program!  
2063    for ac_extension in a so sl; do    for ac_extension in a so sl; do
2064      if test -r $ac_dir/libXt.$ac_extension; then      if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2065        ac_x_libraries=$ac_dir        ac_x_libraries=$ac_dir
2066        break 2        break 2
2067      fi      fi
2068    done    done
2069  done  done
2070  fi  fi
2071  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest*
2072  fi # $ac_x_libraries = no  fi # $ac_x_libraries = NO
2073    
2074  if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then  if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2075    # Didn't find X anywhere.  Cache the known absence of X.    # Didn't find X anywhere.  Cache the known absence of X.
2076    ac_cv_have_x="have_x=no"    ac_cv_have_x="have_x=no"
2077  else  else
# Line 4018  else Line 2080  else
2080                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2081  fi  fi
2082  fi  fi
   
2083    fi    fi
2084    eval "$ac_cv_have_x"    eval "$ac_cv_have_x"
2085  fi # $with_x != no  fi # $with_x != no
2086    
2087  if test "$have_x" != yes; then  if test "$have_x" != yes; then
2088    echo "$as_me:$LINENO: result: $have_x" >&5    echo "$ac_t""$have_x" 1>&6
 echo "${ECHO_T}$have_x" >&6  
2089    no_x=yes    no_x=yes
2090  else  else
2091    # 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 4034  else Line 2094  else
2094    # Update the cache value to reflect the command line values.    # Update the cache value to reflect the command line values.
2095    ac_cv_have_x="have_x=yes \    ac_cv_have_x="have_x=yes \
2096                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2097    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  
2098  fi  fi
2099    
2100  if test "$no_x" = yes; then  if test "$no_x" = yes; then
2101    # 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.
2102      cat >> confdefs.h <<\EOF
 cat >>confdefs.h <<\_ACEOF  
2103  #define X_DISPLAY_MISSING 1  #define X_DISPLAY_MISSING 1
2104  _ACEOF  EOF
2105    
2106    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2107  else  else
# Line 4056  else Line 2114  else
2114      X_LIBS="$X_LIBS -L$x_libraries"      X_LIBS="$X_LIBS -L$x_libraries"
2115      # 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
2116      # others require no space.  Words are not sufficient . . . .      # others require no space.  Words are not sufficient . . . .
2117      case `(uname -sr) 2>/dev/null` in      case "`(uname -sr) 2>/dev/null`" in
2118      "SunOS 5"*)      "SunOS 5"*)
2119        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
2120  echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6  echo "configure:2121: checking whether -R must be followed by a space" >&5
2121        ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2122        cat >conftest.$ac_ext <<_ACEOF        cat > conftest.$ac_ext <<EOF
2123  #line $LINENO "configure"  #line 2124 "configure"
2124  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2125    
2126  int  int main() {
 main ()  
 {  
2127    
2128    ;  ; return 0; }
2129    return 0;  EOF
2130  }  if { (eval echo configure:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2131  _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>&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  
2132    ac_R_nospace=yes    ac_R_nospace=yes
2133  else  else
2134    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
2135  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2136      rm -rf conftest*
2137  ac_R_nospace=no    ac_R_nospace=no
2138  fi  fi
2139  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest*
2140        if test $ac_R_nospace = yes; then        if test $ac_R_nospace = yes; then
2141          echo "$as_me:$LINENO: result: no" >&5          echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
2142          X_LIBS="$X_LIBS -R$x_libraries"          X_LIBS="$X_LIBS -R$x_libraries"
2143        else        else
2144          LIBS="$ac_xsave_LIBS -R $x_libraries"          LIBS="$ac_xsave_LIBS -R $x_libraries"
2145          cat >conftest.$ac_ext <<_ACEOF          cat > conftest.$ac_ext <<EOF
2146  #line $LINENO "configure"  #line 2147 "configure"
2147  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2148    
2149  int  int main() {
 main ()  
 {  
2150    
2151    ;  ; return 0; }
2152    return 0;  EOF
2153  }  if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2154  _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>&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  
2155    ac_R_space=yes    ac_R_space=yes
2156  else  else
2157    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
2158  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2159      rm -rf conftest*
2160  ac_R_space=no    ac_R_space=no
2161  fi  fi
2162  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest*
2163          if test $ac_R_space = yes; then          if test $ac_R_space = yes; then
2164            echo "$as_me:$LINENO: result: yes" >&5            echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
2165            X_LIBS="$X_LIBS -R $x_libraries"            X_LIBS="$X_LIBS -R $x_libraries"
2166          else          else
2167            echo "$as_me:$LINENO: result: neither works" >&5            echo "$ac_t""neither works" 1>&6
 echo "${ECHO_T}neither works" >&6  
2168          fi          fi
2169        fi        fi
2170        LIBS=$ac_xsave_LIBS        LIBS="$ac_xsave_LIBS"
2171      esac      esac
2172    fi    fi
2173    
# Line 4159  echo "${ECHO_T}neither works" >&6 Line 2178  echo "${ECHO_T}neither works" >&6
2178    if test "$ISC" = yes; then    if test "$ISC" = yes; then
2179      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2180    else    else
2181      # 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
2182      # libraries were built with DECnet support.  And Karl Berry says      # libraries were built with DECnet support.  And karl@cs.umb.edu says
2183      # the Alpha needs dnet_stub (dnet does not exist).      # the Alpha needs dnet_stub (dnet does not exist).
2184      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"      echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2185      cat >conftest.$ac_ext <<_ACEOF  echo "configure:2186: checking for dnet_ntoa in -ldnet" >&5
2186  #line $LINENO "configure"  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2187  /* confdefs.h.  */  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2188  _ACEOF    echo $ac_n "(cached) $ac_c" 1>&6
 cat confdefs.h >>conftest.$ac_ext  
 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>&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  
   :  
2189  else  else
2190    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  
2191  LIBS="-ldnet  $LIBS"  LIBS="-ldnet  $LIBS"
2192  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2193  #line $LINENO "configure"  #line 2194 "configure"
2194  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
2195  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
2196  /* 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
2197     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2198  char dnet_ntoa ();  char dnet_ntoa();
2199  int  
2200  main ()  int main() {
2201  {  dnet_ntoa()
2202  dnet_ntoa ();  ; return 0; }
2203    ;  EOF
2204    return 0;  if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2205  }    rm -rf conftest*
2206  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
2207  rm -f conftest.$ac_objext conftest$ac_exeext  else
2208  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
2209    (eval $ac_link) 2>&5    cat conftest.$ac_ext >&5
2210    ac_status=$?    rm -rf conftest*
2211    echo "$as_me:$LINENO: \$? = $ac_status" >&5    eval "ac_cv_lib_$ac_lib_var=no"
2212    (exit $ac_status); } &&  fi
2213           { ac_try='test -s conftest$ac_exeext'  rm -f conftest*
2214    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  LIBS="$ac_save_LIBS"
2215    (eval $ac_try) 2>&5  
2216    ac_status=$?  fi
2217    echo "$as_me:$LINENO: \$? = $ac_status" >&5  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2218    (exit $ac_status); }; }; then    echo "$ac_t""yes" 1>&6
   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.$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  
2219    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2220    else
2221      echo "$ac_t""no" 1>&6
2222  fi  fi
2223    
2224      if test $ac_cv_lib_dnet_dnet_ntoa = no; then      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2225        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
2226  echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6  echo "configure:2227: checking for dnet_ntoa in -ldnet_stub" >&5
2227  if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2228    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2229      echo $ac_n "(cached) $ac_c" 1>&6
2230  else  else
2231    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2232  LIBS="-ldnet_stub  $LIBS"  LIBS="-ldnet_stub  $LIBS"
2233  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2234  #line $LINENO "configure"  #line 2235 "configure"
2235  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
2236  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
2237  /* 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
2238     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2239  char dnet_ntoa ();  char dnet_ntoa();
2240  int  
2241  main ()  int main() {
2242  {  dnet_ntoa()
2243  dnet_ntoa ();  ; return 0; }
2244    ;  EOF
2245    return 0;  if { (eval echo configure:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2246  }    rm -rf conftest*
2247  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
2248  rm -f conftest.$ac_objext conftest$ac_exeext  else
2249  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
2250    (eval $ac_link) 2>&5    cat conftest.$ac_ext >&5
2251    ac_status=$?    rm -rf conftest*
2252    echo "$as_me:$LINENO: \$? = $ac_status" >&5    eval "ac_cv_lib_$ac_lib_var=no"
2253    (exit $ac_status); } &&  fi
2254           { ac_try='test -s conftest$ac_exeext'  rm -f conftest*
2255    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  LIBS="$ac_save_LIBS"
2256    (eval $ac_try) 2>&5  
2257    ac_status=$?  fi
2258    echo "$as_me:$LINENO: \$? = $ac_status" >&5  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2259    (exit $ac_status); }; }; then    echo "$ac_t""yes" 1>&6
   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.$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  
2260    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2261    else
2262      echo "$ac_t""no" 1>&6
2263  fi  fi
2264    
2265      fi      fi
 fi  
 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  
     LIBS="$ac_xsave_LIBS"  
2266    
2267      # 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,
2268      # to get the SysV transport functions.      # to get the SysV transport functions.
2269      # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)      # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2270      # needs -lnsl.      # needs -lnsl.
2271      # The nsl library prevents programs from opening the X display      # The nsl library prevents programs from opening the X display
2272      # on Irix 5.2, according to T.E. Dickey.      # on Irix 5.2, according to dickey@clark.net.
2273      # The functions gethostbyname, getservbyname, and inet_addr are      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2274      # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.  echo "configure:2275: checking for gethostbyname" >&5
2275      echo "$as_me:$LINENO: checking for gethostbyname" >&5  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2276  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2277  if test "${ac_cv_func_gethostbyname+set}" = set; then  else
2278    echo $ECHO_N "(cached) $ECHO_C" >&6    cat > conftest.$ac_ext <<EOF
2279  else  #line 2280 "configure"
2280    cat >conftest.$ac_ext <<_ACEOF  #include "confdefs.h"
 #line $LINENO "configure"  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2281  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2282      which can conflict with char gethostbyname (); below.      which can conflict with char gethostbyname(); below.  */
2283      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  
2284  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
2285  /* 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
2286     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2287  char gethostbyname ();  char gethostbyname();
2288    
2289    int main() {
2290    
2291  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
2292      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
2293      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
2294  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2295  choke me  choke me
2296  #else  #else
2297  char (*f) () = gethostbyname;  gethostbyname();
 #endif  
 #ifdef __cplusplus  
 }  
2298  #endif  #endif
2299    
2300  int  ; return 0; }
2301  main ()  EOF
2302  {  if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2303  return f != gethostbyname;    rm -rf conftest*
2304    ;    eval "ac_cv_func_gethostbyname=yes"
2305    return 0;  else
2306  }    echo "configure: failed program was:" >&5
2307  _ACEOF    cat conftest.$ac_ext >&5
2308  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
2309  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_gethostbyname=no"
   (eval $ac_link) 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  
2310  fi  fi
2311  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest*
2312    fi
2313    
2314    if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2315      echo "$ac_t""yes" 1>&6
2316      :
2317    else
2318      echo "$ac_t""no" 1>&6
2319  fi  fi
 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5  
 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6  
2320    
2321      if test $ac_cv_func_gethostbyname = no; then      if test $ac_cv_func_gethostbyname = no; then
2322        echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2323  echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6  echo "configure:2324: checking for gethostbyname in -lnsl" >&5
2324  if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2325    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2326      echo $ac_n "(cached) $ac_c" 1>&6
2327  else  else
2328    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2329  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
2330  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2331  #line $LINENO "configure"  #line 2332 "configure"
2332  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
2333  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
2334  /* 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
2335     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2336  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>&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.$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  
2337    
2338        if test $ac_cv_lib_nsl_gethostbyname = no; then  int main() {
2339          echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5  gethostbyname()
2340  echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6  ; return 0; }
2341  if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then  EOF
2342    echo $ECHO_N "(cached) $ECHO_C" >&6  if { (eval echo configure:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2343  else    rm -rf conftest*
2344    ac_check_lib_save_LIBS=$LIBS    eval "ac_cv_lib_$ac_lib_var=yes"
2345  LIBS="-lbsd  $LIBS"  else
2346  cat >conftest.$ac_ext <<_ACEOF    echo "configure: failed program was:" >&5
2347  #line $LINENO "configure"    cat conftest.$ac_ext >&5
2348  /* confdefs.h.  */    rm -rf conftest*
2349  _ACEOF    eval "ac_cv_lib_$ac_lib_var=no"
2350  cat confdefs.h >>conftest.$ac_ext  fi
2351  cat >>conftest.$ac_ext <<_ACEOF  rm -f conftest*
2352  /* end confdefs.h.  */  LIBS="$ac_save_LIBS"
2353    
2354  /* Override any gcc2 internal prototype to avoid an error.  */  fi
2355  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2356  extern "C"    echo "$ac_t""yes" 1>&6
2357  #endif    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2358  /* We use char because int might match the return type of a gcc2  else
2359     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>&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.$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"  
2360  fi  fi
2361    
       fi  
2362      fi      fi
2363    
2364      # lieder@skyler.mavd.honeywell.com says without -lsocket,      # lieder@skyler.mavd.honeywell.com says without -lsocket,
2365      # socket/setsockopt and other routines are undefined under SCO ODT      # socket/setsockopt and other routines are undefined under SCO ODT
2366      # 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
2367      # on later versions), says Simon Leinen: it contains gethostby*      # on later versions), says simon@lia.di.epfl.ch: it contains
2368      # variants that don't use the name server (or something).  -lsocket      # gethostby* variants that don't use the nameserver (or something).
2369      # must be given before -lnsl if both are needed.  We assume that      # -lsocket must be given before -lnsl if both are needed.
2370      # if connect needs -lnsl, so does gethostbyname.      # We assume that if connect needs -lnsl, so does gethostbyname.
2371      echo "$as_me:$LINENO: checking for connect" >&5      echo $ac_n "checking for connect""... $ac_c" 1>&6
2372  echo $ECHO_N "checking for connect... $ECHO_C" >&6  echo "configure:2373: checking for connect" >&5
2373  if test "${ac_cv_func_connect+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2374    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2375  else  else
2376    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
2377  #line $LINENO "configure"  #line 2378 "configure"
2378  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2379  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2380      which can conflict with char connect (); below.      which can conflict with char connect(); below.  */
2381      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  
2382  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
2383  /* 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
2384     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2385  char connect ();  char connect();
2386    
2387    int main() {
2388    
2389  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
2390      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
2391      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
2392  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
2393  choke me  choke me
2394  #else  #else
2395  char (*f) () = connect;  connect();
 #endif  
 #ifdef __cplusplus  
 }  
2396  #endif  #endif
2397    
2398  int  ; return 0; }
2399  main ()  EOF
2400  {  if { (eval echo configure:2401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2401  return f != connect;    rm -rf conftest*
2402    ;    eval "ac_cv_func_connect=yes"
2403    return 0;  else
2404  }    echo "configure: failed program was:" >&5
2405  _ACEOF    cat conftest.$ac_ext >&5
2406  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
2407  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_connect=no"
2408    (eval $ac_link) 2>&5  fi
2409    ac_status=$?  rm -f conftest*
   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  
2410  fi  fi
2411  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  
2412    if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2413      echo "$ac_t""yes" 1>&6
2414      :
2415    else
2416      echo "$ac_t""no" 1>&6
2417  fi  fi
 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5  
 echo "${ECHO_T}$ac_cv_func_connect" >&6  
2418    
2419      if test $ac_cv_func_connect = no; then      if test $ac_cv_func_connect = no; then
2420        echo "$as_me:$LINENO: checking for connect in -lsocket" >&5        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2421  echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6  echo "configure:2422: checking for connect in -lsocket" >&5
2422  if test "${ac_cv_lib_socket_connect+set}" = set; then  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2423    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2424      echo $ac_n "(cached) $ac_c" 1>&6
2425  else  else
2426    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2427  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2428  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2429  #line $LINENO "configure"  #line 2430 "configure"
2430  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
2431  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
2432  /* 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
2433     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2434  char connect ();  char connect();
2435  int  
2436  main ()  int main() {
2437  {  connect()
2438  connect ();  ; return 0; }
2439    ;  EOF
2440    return 0;  if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2441  }    rm -rf conftest*
2442  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
2443  rm -f conftest.$ac_objext conftest$ac_exeext  else
2444  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
2445    (eval $ac_link) 2>&5    cat conftest.$ac_ext >&5
2446    ac_status=$?    rm -rf conftest*
2447    echo "$as_me:$LINENO: \$? = $ac_status" >&5    eval "ac_cv_lib_$ac_lib_var=no"
2448    (exit $ac_status); } &&  fi
2449           { ac_try='test -s conftest$ac_exeext'  rm -f conftest*
2450    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  LIBS="$ac_save_LIBS"
2451    (eval $ac_try) 2>&5  
2452    ac_status=$?  fi
2453    echo "$as_me:$LINENO: \$? = $ac_status" >&5  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2454    (exit $ac_status); }; }; then    echo "$ac_t""yes" 1>&6
   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.$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  
2455    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2456    else
2457      echo "$ac_t""no" 1>&6
2458  fi  fi
2459    
2460      fi      fi
2461    
2462      # Guillermo Gomez says -lposix is necessary on A/UX.      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2463      echo "$as_me:$LINENO: checking for remove" >&5      echo $ac_n "checking for remove""... $ac_c" 1>&6
2464  echo $ECHO_N "checking for remove... $ECHO_C" >&6  echo "configure:2465: checking for remove" >&5
2465  if test "${ac_cv_func_remove+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2466    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2467  else  else
2468    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
2469  #line $LINENO "configure"  #line 2470 "configure"
2470  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2471  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2472      which can conflict with char remove (); below.      which can conflict with char remove(); below.  */
2473      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  
2474  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
2475  /* 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
2476     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2477  char remove ();  char remove();
2478    
2479    int main() {
2480    
2481  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
2482      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
2483      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
2484  #if defined (__stub_remove) || defined (__stub___remove)  #if defined (__stub_remove) || defined (__stub___remove)
2485  choke me  choke me
2486  #else  #else
2487  char (*f) () = remove;  remove();
2488  #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>&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  
2489    
2490  ac_cv_func_remove=no  ; return 0; }
2491    EOF
2492    if { (eval echo configure:2493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2493      rm -rf conftest*
2494      eval "ac_cv_func_remove=yes"
2495    else
2496      echo "configure: failed program was:" >&5
2497      cat conftest.$ac_ext >&5
2498      rm -rf conftest*
2499      eval "ac_cv_func_remove=no"
2500  fi  fi
2501  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest*
2502    fi
2503    
2504    if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2505      echo "$ac_t""yes" 1>&6
2506      :
2507    else
2508      echo "$ac_t""no" 1>&6
2509  fi  fi
 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5  
 echo "${ECHO_T}$ac_cv_func_remove" >&6  
2510    
2511      if test $ac_cv_func_remove = no; then      if test $ac_cv_func_remove = no; then
2512        echo "$as_me:$LINENO: checking for remove in -lposix" >&5        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2513  echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6  echo "configure:2514: checking for remove in -lposix" >&5
2514  if test "${ac_cv_lib_posix_remove+set}" = set; then  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2515    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2516      echo $ac_n "(cached) $ac_c" 1>&6
2517  else  else
2518    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2519  LIBS="-lposix  $LIBS"  LIBS="-lposix  $LIBS"
2520  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2521  #line $LINENO "configure"  #line 2522 "configure"
2522  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
2523  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
2524  /* 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
2525     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2526  char remove ();  char remove();
2527  int  
2528  main ()  int main() {
2529  {  remove()
2530  remove ();  ; return 0; }
2531    ;  EOF
2532    return 0;  if { (eval echo configure:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2533  }    rm -rf conftest*
2534  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
2535  rm -f conftest.$ac_objext conftest$ac_exeext  else
2536  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
2537    (eval $ac_link) 2>&5    cat conftest.$ac_ext >&5
2538    ac_status=$?    rm -rf conftest*
2539    echo "$as_me:$LINENO: \$? = $ac_status" >&5    eval "ac_cv_lib_$ac_lib_var=no"
2540    (exit $ac_status); } &&  fi
2541           { ac_try='test -s conftest$ac_exeext'  rm -f conftest*
2542    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  LIBS="$ac_save_LIBS"
2543    (eval $ac_try) 2>&5  
2544    ac_status=$?  fi
2545    echo "$as_me:$LINENO: \$? = $ac_status" >&5  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2546    (exit $ac_status); }; }; then    echo "$ac_t""yes" 1>&6
   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.$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  
2547    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2548    else
2549      echo "$ac_t""no" 1>&6
2550  fi  fi
2551    
2552      fi      fi
2553    
2554      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2555      echo "$as_me:$LINENO: checking for shmat" >&5      echo $ac_n "checking for shmat""... $ac_c" 1>&6
2556  echo $ECHO_N "checking for shmat... $ECHO_C" >&6  echo "configure:2557: checking for shmat" >&5
2557  if test "${ac_cv_func_shmat+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2558    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2559  else  else
2560    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
2561  #line $LINENO "configure"  #line 2562 "configure"
2562  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2563  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2564      which can conflict with char shmat (); below.      which can conflict with char shmat(); below.  */
2565      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  
2566  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
2567  /* 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
2568     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2569  char shmat ();  char shmat();
2570    
2571    int main() {
2572    
2573  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
2574      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
2575      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
2576  #if defined (__stub_shmat) || defined (__stub___shmat)  #if defined (__stub_shmat) || defined (__stub___shmat)
2577  choke me  choke me
2578  #else  #else
2579  char (*f) () = shmat;  shmat();
 #endif  
 #ifdef __cplusplus  
 }  
2580  #endif  #endif
2581    
2582  int  ; return 0; }
2583  main ()  EOF
2584  {  if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2585  return f != shmat;    rm -rf conftest*
2586    ;    eval "ac_cv_func_shmat=yes"
2587    return 0;  else
2588  }    echo "configure: failed program was:" >&5
2589  _ACEOF    cat conftest.$ac_ext >&5
2590  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
2591  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_shmat=no"
   (eval $ac_link) 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  
2592  fi  fi
2593  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest*
2594    fi
2595    
2596    if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2597      echo "$ac_t""yes" 1>&6
2598      :
2599    else
2600      echo "$ac_t""no" 1>&6
2601  fi  fi
 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5  
 echo "${ECHO_T}$ac_cv_func_shmat" >&6  
2602    
2603      if test $ac_cv_func_shmat = no; then      if test $ac_cv_func_shmat = no; then
2604        echo "$as_me:$LINENO: checking for shmat in -lipc" >&5        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2605  echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6  echo "configure:2606: checking for shmat in -lipc" >&5
2606  if test "${ac_cv_lib_ipc_shmat+set}" = set; then  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2607    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2608      echo $ac_n "(cached) $ac_c" 1>&6
2609  else  else
2610    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2611  LIBS="-lipc  $LIBS"  LIBS="-lipc  $LIBS"
2612  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2613  #line $LINENO "configure"  #line 2614 "configure"
2614  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
2615  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
2616  /* 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
2617     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2618  char shmat ();  char shmat();
2619  int  
2620  main ()  int main() {
2621  {  shmat()
2622  shmat ();  ; return 0; }
2623    ;  EOF
2624    return 0;  if { (eval echo configure:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2625  }    rm -rf conftest*
2626  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
2627  rm -f conftest.$ac_objext conftest$ac_exeext  else
2628  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
2629    (eval $ac_link) 2>&5    cat conftest.$ac_ext >&5
2630    ac_status=$?    rm -rf conftest*
2631    echo "$as_me:$LINENO: \$? = $ac_status" >&5    eval "ac_cv_lib_$ac_lib_var=no"
2632    (exit $ac_status); } &&  fi
2633           { ac_try='test -s conftest$ac_exeext'  rm -f conftest*
2634    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  LIBS="$ac_save_LIBS"
2635    (eval $ac_try) 2>&5  
2636    ac_status=$?  fi
2637    echo "$as_me:$LINENO: \$? = $ac_status" >&5  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2638    (exit $ac_status); }; }; then    echo "$ac_t""yes" 1>&6
   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.$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  
2639    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2640    else
2641      echo "$ac_t""no" 1>&6
2642  fi  fi
2643    
2644      fi      fi
2645    fi    fi
2646    
2647    # Check for libraries that X11R6 Xt/Xaw programs need.    # Check for libraries that X11R6 Xt/Xaw programs need.
2648    ac_save_LDFLAGS=$LDFLAGS    ac_save_LDFLAGS="$LDFLAGS"
2649    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2650    # 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
2651    # 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
2652    # 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.
2653    # These have to be linked with before -lX11, unlike the other    # These have to be linked with before -lX11, unlike the other
2654    # libraries we check for below, so use a different variable.    # libraries we check for below, so use a different variable.
2655    # John Interrante, Karl Berry    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2656    echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2657  echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6  echo "configure:2658: checking for IceConnectionNumber in -lICE" >&5
2658  if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2659    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2660      echo $ac_n "(cached) $ac_c" 1>&6
2661  else  else
2662    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2663  LIBS="-lICE $X_EXTRA_LIBS $LIBS"  LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2664  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2665  #line $LINENO "configure"  #line 2666 "configure"
2666  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
2667  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
2668  /* 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
2669     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2670  char IceConnectionNumber ();  char IceConnectionNumber();
2671  int  
2672  main ()  int main() {
2673  {  IceConnectionNumber()
2674  IceConnectionNumber ();  ; return 0; }
2675    ;  EOF
2676    return 0;  if { (eval echo configure:2677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2677  }    rm -rf conftest*
2678  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
2679  rm -f conftest.$ac_objext conftest$ac_exeext  else
2680  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
2681    (eval $ac_link) 2>&5    cat conftest.$ac_ext >&5
2682    ac_status=$?    rm -rf conftest*
2683    echo "$as_me:$LINENO: \$? = $ac_status" >&5    eval "ac_cv_lib_$ac_lib_var=no"
2684    (exit $ac_status); } &&  fi
2685           { ac_try='test -s conftest$ac_exeext'  rm -f conftest*
2686    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  LIBS="$ac_save_LIBS"
2687    (eval $ac_try) 2>&5  
2688    ac_status=$?  fi
2689    echo "$as_me:$LINENO: \$? = $ac_status" >&5  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2690    (exit $ac_status); }; }; then    echo "$ac_t""yes" 1>&6
   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.$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  
2691    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2692    else
2693      echo "$ac_t""no" 1>&6
2694  fi  fi
2695    
2696    LDFLAGS=$ac_save_LDFLAGS    LDFLAGS="$ac_save_LDFLAGS"
2697    
2698  fi  fi
2699    
# Line 5016  echo $X_EXTRA_LIBS Line 2703  echo $X_EXTRA_LIBS
2703  echo $X_PRE_LIBS  echo $X_PRE_LIBS
2704    
2705  miss=0  miss=0
2706  echo "$as_me:$LINENO: checking for main in -lXmu" >&5  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6
2707  echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6  echo "configure:2708: checking for main in -lXmu" >&5
2708  if test "${ac_cv_lib_Xmu_main+set}" = set; then  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`
2709    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2710      echo $ac_n "(cached) $ac_c" 1>&6
2711  else  else
2712    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2713  LIBS="-lXmu $X_LIBS $LIBS"  LIBS="-lXmu $X_LIBS $LIBS"
2714  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2715  #line $LINENO "configure"  #line 2716 "configure"
2716  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2717    
2718    int main() {
2719    main()
2720    ; return 0; }
2721    EOF
2722    if { (eval echo configure:2723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2723      rm -rf conftest*
2724      eval "ac_cv_lib_$ac_lib_var=yes"
2725    else
2726      echo "configure: failed program was:" >&5
2727      cat conftest.$ac_ext >&5
2728      rm -rf conftest*
2729      eval "ac_cv_lib_$ac_lib_var=no"
2730    fi
2731    rm -f conftest*
2732    LIBS="$ac_save_LIBS"
2733    
2734  int  fi
2735  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2736  {    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>&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.$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  
2737    X_LIBS="$X_LIBS -lXmu"    X_LIBS="$X_LIBS -lXmu"
2738  else  else
2739    miss=1    echo "$ac_t""no" 1>&6
2740    miss=1
2741  fi  fi
2742    
2743  echo "$as_me:$LINENO: checking for main in -lXt" >&5  echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6
2744  echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6  echo "configure:2745: checking for main in -lXt" >&5
2745  if test "${ac_cv_lib_Xt_main+set}" = set; then  ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`
2746    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2747      echo $ac_n "(cached) $ac_c" 1>&6
2748  else  else
2749    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2750  LIBS="-lXt $X_LIBS $LIBS"  LIBS="-lXt $X_LIBS $LIBS"
2751  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2752  #line $LINENO "configure"  #line 2753 "configure"
2753  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2754    
2755    int main() {
2756    main()
2757    ; return 0; }
2758    EOF
2759    if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2760      rm -rf conftest*
2761      eval "ac_cv_lib_$ac_lib_var=yes"
2762    else
2763      echo "configure: failed program was:" >&5
2764      cat conftest.$ac_ext >&5
2765      rm -rf conftest*
2766      eval "ac_cv_lib_$ac_lib_var=no"
2767    fi
2768    rm -f conftest*
2769    LIBS="$ac_save_LIBS"
2770    
2771  int  fi
2772  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2773  {    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>&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.$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  
2774    X_LIBS="$X_LIBS -lXt"    X_LIBS="$X_LIBS -lXt"
2775  else  else
2776    miss=1    echo "$ac_t""no" 1>&6
2777    miss=1
2778  fi  fi
2779    
2780  echo "$as_me:$LINENO: checking for main in -lXext" >&5  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6
2781  echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6  echo "configure:2782: checking for main in -lXext" >&5
2782  if test "${ac_cv_lib_Xext_main+set}" = set; then  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`
2783    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2784      echo $ac_n "(cached) $ac_c" 1>&6
2785  else  else
2786    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2787  LIBS="-lXext $X_LIBS $LIBS"  LIBS="-lXext $X_LIBS $LIBS"
2788  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2789  #line $LINENO "configure"  #line 2790 "configure"
2790  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2791    
2792    int main() {
2793    main()
2794    ; return 0; }
2795    EOF
2796    if { (eval echo configure:2797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2797      rm -rf conftest*
2798      eval "ac_cv_lib_$ac_lib_var=yes"
2799    else
2800      echo "configure: failed program was:" >&5
2801      cat conftest.$ac_ext >&5
2802      rm -rf conftest*
2803      eval "ac_cv_lib_$ac_lib_var=no"
2804    fi
2805    rm -f conftest*
2806    LIBS="$ac_save_LIBS"
2807    
2808  int  fi
2809  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2810  {    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>&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.$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  
2811    X_LIBS="$X_LIBS -lXext"    X_LIBS="$X_LIBS -lXext"
2812  else  else
2813    miss=1    echo "$ac_t""no" 1>&6
2814    miss=1
2815  fi  fi
2816    
2817  echo "$as_me:$LINENO: checking for main in -lXaw" >&5  echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6
2818  echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6  echo "configure:2819: checking for main in -lXaw" >&5
2819  if test "${ac_cv_lib_Xaw_main+set}" = set; then  ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`
2820    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2821      echo $ac_n "(cached) $ac_c" 1>&6
2822  else  else
2823    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2824  LIBS="-lXaw $X_LIBS $LIBS"  LIBS="-lXaw $X_LIBS $LIBS"
2825  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2826  #line $LINENO "configure"  #line 2827 "configure"
2827  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2828    
2829    int main() {
2830    main()
2831    ; return 0; }
2832    EOF
2833    if { (eval echo configure:2834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2834      rm -rf conftest*
2835      eval "ac_cv_lib_$ac_lib_var=yes"
2836    else
2837      echo "configure: failed program was:" >&5
2838      cat conftest.$ac_ext >&5
2839      rm -rf conftest*
2840      eval "ac_cv_lib_$ac_lib_var=no"
2841    fi
2842    rm -f conftest*
2843    LIBS="$ac_save_LIBS"
2844    
2845  int  fi
2846  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2847  {    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>&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.$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  
2848    X_LIBS="$X_LIBS -lXaw"    X_LIBS="$X_LIBS -lXaw"
2849  else  else
2850    miss=1    echo "$ac_t""no" 1>&6
2851    miss=1
2852  fi  fi
2853    
2854  echo "$as_me:$LINENO: checking for main in -lX11" >&5  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6
2855  echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6  echo "configure:2856: checking for main in -lX11" >&5
2856  if test "${ac_cv_lib_X11_main+set}" = set; then  ac_lib_var=`echo X11'_'main | 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="-lX11 $X_LIBS $LIBS"  LIBS="-lX11 $X_LIBS $LIBS"
2862  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2863  #line $LINENO "configure"  #line 2864 "configure"
2864  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2865    
2866    int main() {
2867    main()
2868    ; return 0; }
2869    EOF
2870    if { (eval echo configure:2871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2871      rm -rf conftest*
2872      eval "ac_cv_lib_$ac_lib_var=yes"
2873    else
2874      echo "configure: failed program was:" >&5
2875      cat conftest.$ac_ext >&5
2876      rm -rf conftest*
2877      eval "ac_cv_lib_$ac_lib_var=no"
2878    fi
2879    rm -f conftest*
2880    LIBS="$ac_save_LIBS"
2881    
2882  int  fi
2883  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2884  {    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>&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.$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  
2885    X_LIBS="$X_LIBS -lX11"    X_LIBS="$X_LIBS -lX11"
2886  else  else
2887    miss=1    echo "$ac_t""no" 1>&6
2888    miss=1
2889  fi  fi
2890    
2891    
2892  if test "$miss" = "1" ; then  if test "$miss" = "1" ; then
2893          X_CFLAGS=          X_CFLAGS=
2894          X_LIBS=          X_LIBS=
# Line 5303  fi Line 2905  fi
2905    
2906  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
2907    
2908          echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2909  echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6  echo "configure:2910: checking for dlopen in -ldl" >&5
2910  if test "${ac_cv_lib_dl_dlopen+set}" = set; then  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2911    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2912      echo $ac_n "(cached) $ac_c" 1>&6
2913  else  else
2914    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2915  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
2916  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2917  #line $LINENO "configure"  #line 2918 "configure"
2918  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
2919  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
2920  /* 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
2921     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2922  char dlopen ();  char dlopen();
2923  int  
2924  main ()  int main() {
2925  {  dlopen()
2926  dlopen ();  ; return 0; }
2927    ;  EOF
2928    return 0;  if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2929  }    rm -rf conftest*
2930  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
2931  rm -f conftest.$ac_objext conftest$ac_exeext  else
2932  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
2933    (eval $ac_link) 2>&5    cat conftest.$ac_ext >&5
2934    ac_status=$?    rm -rf conftest*
2935    echo "$as_me:$LINENO: \$? = $ac_status" >&5    eval "ac_cv_lib_$ac_lib_var=no"
2936    (exit $ac_status); } &&  fi
2937           { ac_try='test -s conftest$ac_exeext'  rm -f conftest*
2938    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  LIBS="$ac_save_LIBS"
2939    (eval $ac_try) 2>&5  
2940    ac_status=$?  fi
2941    echo "$as_me:$LINENO: \$? = $ac_status" >&5  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2942    (exit $ac_status); }; }; then    echo "$ac_t""yes" 1>&6
   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.$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  
2943    have_dl=1    have_dl=1
2944  else  else
2945    have_dl=0    echo "$ac_t""no" 1>&6
2946    have_dl=0
2947  fi  fi
2948    
2949          if test "$have_dl" = "0" ; then          if test "$have_dl" = "0" ; then
# Line 5369  fi Line 2952  fi
2952          fi          fi
2953    
2954          TLIBS="$TLIBS -ldl -rdynamic"          TLIBS="$TLIBS -ldl -rdynamic"
2955          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
2956  #define USE_DLOPEN 1  #define USE_DLOPEN 1
2957  _ACEOF  EOF
2958    
2959  fi  fi
2960    
2961  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
2962          if test "${ac_cv_header_bfd_h+set}" = set; then          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`
2963    echo "$as_me:$LINENO: checking for bfd.h" >&5  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6
2964  echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6  echo "configure:2965: checking for bfd.h" >&5
2965  if test "${ac_cv_header_bfd_h+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2966    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2967  fi  else
2968  echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5    cat > conftest.$ac_ext <<EOF
2969  echo "${ECHO_T}$ac_cv_header_bfd_h" >&6  #line 2970 "configure"
2970  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  
 #line $LINENO "configure"  
 /* 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>&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.$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  
 #line $LINENO "configure"  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
2971  #include <bfd.h>  #include <bfd.h>
2972  _ACEOF  EOF
2973  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2974    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  { (eval echo configure:2975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2975    ac_status=$?  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2976    grep -v '^ *+' conftest.er1 >conftest.err  if test -z "$ac_err"; then
2977    rm -f conftest.er1    rm -rf conftest*
2978    cat conftest.err >&5    eval "ac_cv_header_$ac_safe=yes"
2979    echo "$as_me:$LINENO: \$? = $ac_status" >&5  else
2980    (exit $ac_status); } >/dev/null; then    echo "$ac_err" >&5
2981    if test -s conftest.err; then    echo "configure: failed program was:" >&5
2982      ac_cpp_err=$ac_c_preproc_warn_flag    cat conftest.$ac_ext >&5
2983    else    rm -rf conftest*
2984      ac_cpp_err=    eval "ac_cv_header_$ac_safe=no"
   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 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 preprocessor's result" >&5  
 echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
   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: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _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  
2985  fi  fi
2986  echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5  rm -f conftest*
 echo "${ECHO_T}$ac_cv_header_bfd_h" >&6  
   
2987  fi  fi
2988  if test $ac_cv_header_bfd_h = yes; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2989    echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5    echo "$ac_t""yes" 1>&6
2990  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
2991  if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then  echo "configure:2992: checking for bfd_init in -lbfd" >&5
2992    echo $ECHO_N "(cached) $ECHO_C" >&6  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`
2993    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2994      echo $ac_n "(cached) $ac_c" 1>&6
2995  else  else
2996    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2997  LIBS="-lbfd -liberty $LIBS"  LIBS="-lbfd -liberty $LIBS"
2998  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2999  #line $LINENO "configure"  #line 3000 "configure"
3000  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
3001  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
3002  /* 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
3003     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3004  char bfd_init ();  char bfd_init();
3005  int  
3006  main ()  int main() {
3007  {  bfd_init()
3008  bfd_init ();  ; return 0; }
3009    ;  EOF
3010    return 0;  if { (eval echo configure:3011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3011  }    rm -rf conftest*
3012  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
3013  rm -f conftest.$ac_objext conftest$ac_exeext  else
3014  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
3015    (eval $ac_link) 2>&5    cat conftest.$ac_ext >&5
3016    ac_status=$?    rm -rf conftest*
3017    echo "$as_me:$LINENO: \$? = $ac_status" >&5    eval "ac_cv_lib_$ac_lib_var=no"
3018    (exit $ac_status); } &&  fi
3019           { ac_try='test -s conftest$ac_exeext'  rm -f conftest*
3020    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  LIBS="$ac_save_LIBS"
3021    (eval $ac_try) 2>&5  
3022    ac_status=$?  fi
3023    echo "$as_me:$LINENO: \$? = $ac_status" >&5  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3024    (exit $ac_status); }; }; then    echo "$ac_t""yes" 1>&6
   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.$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  
3025    #    #
3026                  # Old binutils appear to need CONST defined to const                  # Old binutils appear to need CONST defined to const
3027                  #                  #
3028                          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
3029  echo $ECHO_N "checking if need to define CONST for bfd... $ECHO_C" >&6  echo "configure:3030: checking if need to define CONST for bfd" >&5
3030                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
3031    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;  
3032  else  else
3033    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3034  #line $LINENO "configure"  #line 3035 "configure"
3035  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3036  #define IN_GCC  #define IN_GCC
3037                                      #include <bfd.h>                                      #include <bfd.h>
3038                                      int main() { symbol_info t; return 0;}                                      int main() { symbol_info t; return 0;}
3039  _ACEOF  EOF
3040  rm -f conftest$ac_exeext  if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3041  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
3042    (eval $ac_link) 2>&5    echo "$ac_t""no" 1>&6
3043    ac_status=$?  else
3044    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "configure: failed program was:" >&5
3045    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    cat conftest.$ac_ext >&5
3046    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    rm -fr conftest*
3047    (eval $ac_try) 2>&5    if test "$cross_compiling" = yes; then
3048    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;  
3049  else  else
3050    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3051  #line $LINENO "configure"  #line 3052 "configure"
3052  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3053  #define CONST const  #define CONST const
3054                                              #define IN_GCC                                              #define IN_GCC
3055                                              #include <bfd.h>                                              #include <bfd.h>
3056                                              int main() {symbol_info t; return 0;}                                              int main() {symbol_info t; return 0;}
3057  _ACEOF  EOF
3058  rm -f conftest$ac_exeext  if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3059  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
3060    (eval $ac_link) 2>&5    echo "$ac_t""yes" 1>&6
3061    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  
3062  #define NEED_CONST 1  #define NEED_CONST 1
3063  _ACEOF  EOF
3064    
3065  else  else
3066    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
3067  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
3068  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
3069      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;  
3070  fi  fi
3071  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
3072  fi  fi
3073    
3074  fi  fi
3075  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
3076  fi  fi
3077    
3078                            
3079    else
3080      echo "$ac_t""no" 1>&6
3081  fi  fi
3082    
3083    else
3084      echo "$ac_t""no" 1>&6
3085  fi  fi
3086    
3087    
3088            cat >> confdefs.h <<\EOF
         cat >>confdefs.h <<\_ACEOF  
3089  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
3090  _ACEOF  EOF
3091    
3092    
3093  #  #
3094  # BFD boolean syntax  # BFD boolean syntax
3095  #  #
3096    
3097          echo "$as_me:$LINENO: checking for useable bfd_boolean" >&5          echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6
3098  echo $ECHO_N "checking for useable bfd_boolean... $ECHO_C" >&6  echo "configure:3099: checking for useable bfd_boolean" >&5
3099          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
3100    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
3101  else  else
3102    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3103  #line $LINENO "configure"  #line 3104 "configure"
3104  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3105  #define IN_GCC  #define IN_GCC
3106                      #include <bfd.h>                      #include <bfd.h>
3107                      bfd_boolean foo() {return FALSE;}                      bfd_boolean foo() {return FALSE;}
3108                      int main() {return 0;}                      int main() {return 0;}
3109  _ACEOF  EOF
3110  rm -f conftest$ac_exeext  if { (eval echo configure:3111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3111  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
3112    (eval $ac_link) 2>&5    echo "$ac_t""yes" 1>&6
3113    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  
3114  #define HAVE_BFD_BOOLEAN 1  #define HAVE_BFD_BOOLEAN 1
3115  _ACEOF  EOF
3116    
3117  else  else
3118    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
3119  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
3120  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
3121      echo "$ac_t""no" 1>&6
 ( exit $ac_status )  
 echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
3122  fi  fi
3123  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
3124  fi  fi
3125    
3126    
3127    
3128  #  #
3129  # FIXME: Need to workaround mingw before this point -- CM  # FIXME: Need to workaround mingw before this point -- CM
3130  #  #
# Line 5723  fi Line 3137  fi
3137                  else                  else
3138                     echo Guessing path to libbfd.a due to gcc bug                     echo Guessing path to libbfd.a due to gcc bug
3139                     TLIBS="$TLIBS /usr/lib/libbfd.a"                     TLIBS="$TLIBS /usr/lib/libbfd.a"
3140                  fi                  fi  
3141                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then
3142                     TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a`"                     TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a`"
3143                  else                  else
3144                     echo Guessing path to libiberty.a due to gcc bug                     echo Guessing path to libiberty.a due to gcc bug
3145                     TLIBS="$TLIBS /usr/lib/libiberty.a"                     TLIBS="$TLIBS /usr/lib/libiberty.a"
3146                  fi                  fi  
3147          else          else
3148                  TLIBS="$TLIBS -lbfd -liberty"                  TLIBS="$TLIBS -lbfd -liberty"
3149          fi          fi
# Line 5743  if test "$enable_locbfd" = "yes" ; then Line 3157  if test "$enable_locbfd" = "yes" ; then
3157          echo "#"          echo "#"
3158          echo "#"          echo "#"
3159          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..
3160  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "
3161          echo "#"          echo "#"
3162          echo "#"          echo "#"
3163          echo "#"          echo "#"
# Line 5757  if test "$enable_locbfd" = "yes" ; then Line 3171  if test "$enable_locbfd" = "yes" ; then
3171          echo "#"          echo "#"
3172          echo "#"          echo "#"
3173          cd binutils/bfd && chmod +x configure && ./configure && cd ../..          cd binutils/bfd && chmod +x configure && ./configure && cd ../..
3174  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "
3175          echo "#"          echo "#"
3176          echo "#"          echo "#"
3177          echo "#"          echo "#"
# Line 5765  if test "$enable_locbfd" = "yes" ; then Line 3179  if test "$enable_locbfd" = "yes" ; then
3179          echo "# ------------------------"          echo "# ------------------------"
3180          echo "#"          echo "#"
3181          TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"          TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"
3182          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
3183  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
3184  _ACEOF  EOF
3185    
3186          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"
3187            
3188  fi  fi
3189    
3190  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)
# Line 5779  fi Line 3193  fi
3193  # mechanism, in the PAGE macro.  This offset is subtracted from  # mechanism, in the PAGE macro.  This offset is subtracted from
3194  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
3195    
3196  echo "$as_me:$LINENO: checking for long" >&5  echo $ac_n "checking size of long""... $ac_c" 1>&6
3197  echo $ECHO_N "checking for long... $ECHO_C" >&6  echo "configure:3198: checking size of long" >&5
3198  if test "${ac_cv_type_long+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3199    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 #line $LINENO "configure"  
 /* 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>&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.$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.  
   if test "$cross_compiling" = yes; then  
   # Depending upon the size, compute the lo and hi bounds.  
 cat >conftest.$ac_ext <<_ACEOF  
 #line $LINENO "configure"  
 /* 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  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 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); } &&  
          { 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  
 #line $LINENO "configure"  
 /* 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  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 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); } &&  
          { 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`  
 fi  
 rm -f conftest.$ac_objext conftest.$ac_ext  
   done  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 cat >conftest.$ac_ext <<_ACEOF  
 #line $LINENO "configure"  
 /* 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  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 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); } &&  
          { 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  
 #line $LINENO "configure"  
 /* 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  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 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); } &&  
          { 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.$ac_objext conftest.$ac_ext  
   done  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_lo= ac_hi=  
 fi  
 rm -f conftest.$ac_objext conftest.$ac_ext  
 fi  
 rm -f 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  
 #line $LINENO "configure"  
 /* 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  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 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); } &&  
          { 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  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_lo=`expr '(' $ac_mid ')' + 1`  
 fi  
 rm -f conftest.$ac_objext conftest.$ac_ext  
 done  
 case $ac_lo in  
 ?*) ac_cv_sizeof_long=$ac_lo;;  
 '') { { 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; }; } ;;  
 esac  
3200  else  else
3201    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
3202    { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling    ac_cv_sizeof_long=0
3203  See \`config.log' for more details." >&5  else
3204  echo "$as_me: error: cannot run test program while cross compiling    cat > conftest.$ac_ext <<EOF
3205  See \`config.log' for more details." >&2;}  #line 3206 "configure"
3206     { (exit 1); exit 1; }; }  #include "confdefs.h"
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 #line $LINENO "configure"  
 /* 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)); }  
3207  #include <stdio.h>  #include <stdio.h>
3208  #include <stdlib.h>  #include <sys/types.h>
3209  int  main()
 main ()  
3210  {  {
3211      FILE *f=fopen("conftestval", "w");
3212    FILE *f = fopen ("conftest.val", "w");    if (!f) exit(1);
3213    if (! f)    fprintf(f, "%d\n", sizeof(long));
3214      exit (1);    exit(0);
   if (((long) (sizeof (long))) < 0)  
     {  
       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);  
   
   ;  
   return 0;  
3215  }  }
3216  _ACEOF  EOF
3217  rm -f conftest$ac_exeext  if { (eval echo configure:3218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3218  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
3219    (eval $ac_link) 2>&5    ac_cv_sizeof_long=`cat conftestval`
3220    ac_status=$?  else
3221    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "configure: failed program was:" >&5
3222    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    cat conftest.$ac_ext >&5
3223    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    rm -fr conftest*
   (eval $ac_try) 2>&5  
   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; }; }  
 fi  
 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  
 fi  
 fi  
 rm -f conftest.val  
 else  
3224    ac_cv_sizeof_long=0    ac_cv_sizeof_long=0
3225  fi  fi
3226    rm -fr conftest*
3227    fi
3228    
3229  fi  fi
3230  echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5  echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3231  echo "${ECHO_T}$ac_cv_sizeof_long" >&6  cat >> confdefs.h <<EOF
 cat >>confdefs.h <<_ACEOF  
3232  #define SIZEOF_LONG $ac_cv_sizeof_long  #define SIZEOF_LONG $ac_cv_sizeof_long
3233  _ACEOF  EOF
3234    
3235    
3236  echo "$as_me:$LINENO: checking sizeof struct contblock" >&5  echo $ac_n "checking sizeof struct contblock""... $ac_c" 1>&6
3237  echo $ECHO_N "checking sizeof struct contblock... $ECHO_C" >&6  echo "configure:3238: checking sizeof struct contblock" >&5
3238  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3239    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
3240  else  else
3241    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3242  #line $LINENO "configure"  #line 3243 "configure"
3243  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3244  #include <stdio.h>  #include <stdio.h>
3245          #define EXTER          #define EXTER
3246          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
3247          #include "h/enum.h"          #include "`pwd`/h/enum.h"
3248          #include "h/object.h"          #include "`pwd`/h/object.h"
3249          int main(int argc,char **argv,char **envp) {          int main(int argc,char **argv,char **envp) {
3250          FILE *f=fopen("conftest1","w");          FILE *f=fopen("conftest1","w");
3251          fprintf(f,"%u",sizeof(struct contblock));          fprintf(f,"%u",sizeof(struct contblock));
3252          fclose(f);          fclose(f);
3253          return 0;          return 0;
3254          }          }
3255  _ACEOF  EOF
3256  rm -f conftest$ac_exeext  if { (eval echo configure:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3257  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  
3258    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
3259  else  else
3260    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
3261  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
3262  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
3263      echo Cannot find sizeof struct contblock;exit 1
3264  ( exit $ac_status )  fi
3265  echo Cannot find sizeof struct contblock;exit 1  rm -fr conftest*
3266  fi  fi
 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $sizeof_contblock" >&5  
 echo "${ECHO_T}$sizeof_contblock" >&6  
 cat >>confdefs.h <<_ACEOF  
 #define SIZEOF_CONTBLOCK $sizeof_contblock  
 _ACEOF  
3267    
3268    echo "$ac_t""$sizeof_contblock" 1>&6
3269    cat >> confdefs.h <<EOF
3270    #define SIZEOF_CONTBLOCK $sizeof_contblock
3271    EOF
3272    
3273    
3274    
3275  for ac_header in endian.h  for ac_hdr in endian.h
3276  do  do
3277  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3278  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3279    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:3280: checking for $ac_hdr" >&5
3280  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3281  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
3282    echo $ECHO_N "(cached) $ECHO_C" >&6  else
3283  fi    cat > conftest.$ac_ext <<EOF
3284  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 3285 "configure"
3285  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
3286  else  #include <$ac_hdr>
3287    # Is the header compilable?  EOF
3288  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3289  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:3290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3290  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3291  #line $LINENO "configure"  if test -z "$ac_err"; then
3292  /* confdefs.h.  */    rm -rf conftest*
3293  _ACEOF    eval "ac_cv_header_$ac_safe=yes"
3294  cat confdefs.h >>conftest.$ac_ext  else
3295  cat >>conftest.$ac_ext <<_ACEOF    echo "$ac_err" >&5
3296  /* end confdefs.h.  */    echo "configure: failed program was:" >&5
3297  $ac_includes_default    cat conftest.$ac_ext >&5
3298  #include <$ac_header>    rm -rf conftest*
3299  _ACEOF    eval "ac_cv_header_$ac_safe=no"
 rm -f conftest.$ac_objext  
 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); } &&  
          { 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.$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  
 #line $LINENO "configure"  
 /* 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  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
3300  fi  fi
3301  if test -z "$ac_cpp_err"; then  rm -f conftest*
3302    ac_header_preproc=yes  fi
3303  else  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3304    echo "$as_me: failed program was:" >&5    echo "$ac_t""yes" 1>&6
3305  sed 's/^/| /' conftest.$ac_ext >&5      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3306      cat >> confdefs.h <<EOF
3307    ac_header_preproc=no  #define $ac_tr_hdr 1
3308  fi  EOF
3309  rm -f conftest.err conftest.$ac_ext   echo $ac_n "checking "endianness"""... $ac_c" 1>&6
3310  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  echo "configure:3311: checking "endianness"" >&5
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc 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 preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
   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: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _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  
3311          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
3312    echo "$as_me:$LINENO: result: big" >&5    echo "$ac_t""big" 1>&6
 echo "${ECHO_T}big" >&6  
3313  else  else
3314    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3315  #line $LINENO "configure"  #line 3316 "configure"
3316  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3317  #define __ARMEB__  #define __ARMEB__
3318                  #include <endian.h>                  #include <endian.h>
3319                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
3320  _ACEOF  EOF
3321  rm -f conftest$ac_exeext  if { (eval echo configure:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3322  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
3323    (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  
3324  #define LITTLE_END 1  #define LITTLE_END 1
3325  _ACEOF  EOF
3326   echo "$as_me:$LINENO: result: little" >&5   echo "$ac_t""little" 1>&6
3327  echo "${ECHO_T}little" >&6  else
3328  else    echo "configure: failed program was:" >&5
3329    echo "$as_me: program exited with status $ac_status" >&5    cat conftest.$ac_ext >&5
3330  echo "$as_me: failed program was:" >&5    rm -fr conftest*
3331  sed 's/^/| /' conftest.$ac_ext >&5    echo "$ac_t""big" 1>&6
   
 ( 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  
3332  fi  fi
3333    rm -fr conftest*
3334  fi  fi
3335    
3336    else
3337      echo "$ac_t""no" 1>&6
3338    fi
3339  done  done
3340    
3341    
3342    
3343  echo "$as_me:$LINENO: checking \"finding DBEGIN\"" >&5  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6
3344  echo $ECHO_N "checking \"finding DBEGIN\"... $ECHO_C" >&6  echo "configure:3345: checking "finding DBEGIN"" >&5
3345  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3346    dbegin=0    dbegin=0
3347  else  else
3348    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3349  #line $LINENO "configure"  #line 3350 "configure"
3350  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3351  #include <stdio.h>  #include <stdio.h>
3352              #include <stdlib.h>              #include <stdlib.h>
3353  main()  main()
# Line 6407  main() Line 3362  main()
3362    fclose(fp);    fclose(fp);
3363    return 0;    return 0;
3364  }  }
3365  _ACEOF  EOF
3366  rm -f conftest$ac_exeext  if { (eval echo configure:3367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3367  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  
3368    dbegin=`cat conftest1`    dbegin=`cat conftest1`
3369  else  else
3370    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
3371  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
3372  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
3373      dbegin=0
 ( exit $ac_status )  
 dbegin=0  
3374  fi  fi
3375  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
3376  fi  fi
3377  cat >>confdefs.h <<_ACEOF  
3378    cat >> confdefs.h <<EOF
3379  #define DBEGIN $dbegin \  #define DBEGIN $dbegin \
3380  /* where data begins */  /* where data begins */
3381    
3382  _ACEOF  EOF
3383    
3384  echo "$as_me:$LINENO: result: got $dbegin" >&5  echo "$ac_t""got $dbegin" 1>&6
 echo "${ECHO_T}got $dbegin" >&6  
3385    
3386    
3387  echo "$as_me:$LINENO: checking \"finding CSTACK_ADDRESS\"" >&5  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6
3388  echo $ECHO_N "checking \"finding CSTACK_ADDRESS\"... $ECHO_C" >&6  echo "configure:3389: checking "finding CSTACK_ADDRESS"" >&5
3389  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3390    cstack_address=0    cstack_address=0
3391  else  else
3392    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3393  #line $LINENO "configure"  #line 3394 "configure"
3394  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3395  #include <stdio.h>  #include <stdio.h>
3396  main()  main()
3397  {  {
# Line 6461  main() Line 3401  main()
3401    fclose(fp);    fclose(fp);
3402    return 0;    return 0;
3403  }  }
3404  _ACEOF  EOF
3405  rm -f conftest$ac_exeext  if { (eval echo configure:3406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3406  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  
3407    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
3408  else  else
3409    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
3410  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
3411  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
3412      cstack_address=0
 ( exit $ac_status )  
 cstack_address=0  
3413  fi  fi
3414  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
3415  fi  fi
3416  cat >>confdefs.h <<_ACEOF  
3417    cat >> confdefs.h <<EOF
3418  #define CSTACK_ADDRESS $cstack_address \  #define CSTACK_ADDRESS $cstack_address \
3419    
3420  _ACEOF  EOF
3421    
3422  echo "$as_me:$LINENO: result: got $cstack_address" >&5  echo "$ac_t""got $cstack_address" 1>&6
 echo "${ECHO_T}got $cstack_address" >&6  
3423    
3424    
3425    
3426  echo "$as_me:$LINENO: checking \"sizeof long long int\"" >&5  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6
3427  echo $ECHO_N "checking \"sizeof long long int\"... $ECHO_C" >&6  echo "configure:3428: checking "sizeof long long int"" >&5
3428  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3429    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
3430    
3431  else  else
3432    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3433  #line $LINENO "configure"  #line 3434 "configure"
3434  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3435  #include <stdio.h>  #include <stdio.h>
3436  main()  main()
3437  {  {
# Line 6515  main() Line 3439  main()
3439    return 1;    return 1;
3440  }  }
3441    
3442  _ACEOF  EOF
3443  rm -f conftest$ac_exeext  if { (eval echo configure:3444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3444  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
3445    (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  
3446  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
3447  _ACEOF  EOF
3448    
3449  echo "$as_me:$LINENO: result: yes" >&5  echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
3450  else  else
3451    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
3452  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
3453  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
3454      echo "$ac_t""no" 1>&6
 ( exit $ac_status )  
 echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
3455  fi  fi
3456  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
3457  fi  fi
3458    
3459    
3460    
3461    
3462  # readline  # readline
3463  # Check whether --enable-readline or --disable-readline was given.  # Check whether --enable-readline or --disable-readline was given.
3464  if test "${enable_readline+set}" = set; then  if test "${enable_readline+set}" = set; then
3465    enableval="$enable_readline"    enableval="$enable_readline"
3466      :
3467  else  else
3468    enable_readline="yes"    enable_readline="yes"
3469  fi;  fi
3470    
3471    
3472  # ansi lisp  # ansi lisp
3473  # Check whether --enable-ansi or --disable-ansi was given.  # Check whether --enable-ansi or --disable-ansi was given.
3474  if test "${enable_ansi+set}" = set; then  if test "${enable_ansi+set}" = set; then
3475    enableval="$enable_ansi"    enableval="$enable_ansi"
3476      :
3477  else  else
3478    enable_ansi="no"    enable_ansi="no"
3479  fi;  fi
3480    
3481    
3482  if test "$enable_ansi" = "yes" ; then  if test "$enable_ansi" = "yes" ; then
3483          SYSTEM=ansi_gcl          SYSTEM=ansi_gcl
3484          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
3485  #define ANSI_COMMON_LISP 1  #define ANSI_COMMON_LISP 1
3486  _ACEOF  EOF
3487    
3488  else  else
3489          SYSTEM=gcl          SYSTEM=gcl
# Line 6580  FLISP="saved_$SYSTEM" Line 3494  FLISP="saved_$SYSTEM"
3494    
3495    
3496  # pagewidth  # pagewidth
3497  echo "$as_me:$LINENO: checking for pagewidth" >&5  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6
3498  echo $ECHO_N "checking for pagewidth... $ECHO_C" >&6  echo "configure:3499: checking for pagewidth" >&5
3499  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3500    PAGEWIDTH=0    PAGEWIDTH=0
3501  else  else
3502    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3503  #line $LINENO "configure"  #line 3504 "configure"
3504  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3505  #include <stdio.h>  #include <stdio.h>
3506              #include <unistd.h>              #include <unistd.h>
3507  int main() {size_t i=getpagesize(),j;  int main() {size_t i=getpagesize(),j;
3508              FILE *fp=fopen("conftest1","w");              FILE *fp=fopen("conftest1","w");
3509              for (j=0;i>>=1;j++);              for (j=0;i>>=1;j++);
3510              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
3511              return 0;}              return 0;}
3512  _ACEOF  EOF
3513  rm -f conftest$ac_exeext  if { (eval echo configure:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3514  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  
3515    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
3516  else  else
3517    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
3518  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
3519  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
3520      PAGEWIDTH=0
3521  ( exit $ac_status )  fi
3522  PAGEWIDTH=0  rm -fr conftest*
3523  fi  fi
3524  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  
3525  fi  echo "$ac_t""$PAGEWIDTH" 1>&6
3526  echo "$as_me:$LINENO: result: $PAGEWIDTH" >&5  cat >> confdefs.h <<EOF
 echo "${ECHO_T}$PAGEWIDTH" >&6  
 cat >>confdefs.h <<_ACEOF  
3527  #define PAGEWIDTH $PAGEWIDTH  #define PAGEWIDTH $PAGEWIDTH
3528  _ACEOF  EOF
3529    
3530    
3531    
# Line 6635  _ACEOF Line 3534  _ACEOF
3534    
3535    
3536  # Check if Posix compliant getcwd exists, if not we'll use getwd.  # Check if Posix compliant getcwd exists, if not we'll use getwd.
   
3537  for ac_func in getcwd  for ac_func in getcwd
3538  do  do
3539  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3540  echo "$as_me:$LINENO: checking for $ac_func" >&5  echo "configure:3541: checking for $ac_func" >&5
3541  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3542  if eval "test \"\${$as_ac_var+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
3543    echo $ECHO_N "(cached) $ECHO_C" >&6  else
3544  else    cat > conftest.$ac_ext <<EOF
3545    cat >conftest.$ac_ext <<_ACEOF  #line 3546 "configure"
3546  #line $LINENO "configure"  #include "confdefs.h"
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3547  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3548      which can conflict with char $ac_func (); below.      which can conflict with char $ac_func(); below.  */
3549      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  
3550  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
3551  /* 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
3552     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3553  char $ac_func ();  char $ac_func();
3554    
3555    int main() {
3556    
3557  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
3558      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
3559      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
3560  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3561  choke me  choke me
3562  #else  #else
3563  char (*f) () = $ac_func;  $ac_func();
 #endif  
 #ifdef __cplusplus  
 }  
3564  #endif  #endif
3565    
3566  int  ; return 0; }
3567  main ()  EOF
3568  {  if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3569  return f != $ac_func;    rm -rf conftest*
3570    ;    eval "ac_cv_func_$ac_func=yes"
3571    return 0;  else
3572  }    echo "configure: failed program was:" >&5
3573  _ACEOF    cat conftest.$ac_ext >&5
3574  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
3575  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_$ac_func=no"
3576    (eval $ac_link) 2>&5  fi
3577    ac_status=$?  rm -f conftest*
3578    echo "$as_me:$LINENO: \$? = $ac_status" >&5  fi
   (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.$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  
3579    
3580    if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3581      echo "$ac_t""yes" 1>&6
3582        ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3583      cat >> confdefs.h <<EOF
3584    #define $ac_tr_func 1
3585    EOF
3586    
3587    else
3588      echo "$ac_t""no" 1>&6
3589  fi  fi
3590  done  done
3591    
   
3592  for ac_func in getwd  for ac_func in getwd
3593  do  do
3594  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3595  echo "$as_me:$LINENO: checking for $ac_func" >&5  echo "configure:3596: checking for $ac_func" >&5
3596  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3597  if eval "test \"\${$as_ac_var+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
3598    echo $ECHO_N "(cached) $ECHO_C" >&6  else
3599  else    cat > conftest.$ac_ext <<EOF
3600    cat >conftest.$ac_ext <<_ACEOF  #line 3601 "configure"
3601  #line $LINENO "configure"  #include "confdefs.h"
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3602  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3603      which can conflict with char $ac_func (); below.      which can conflict with char $ac_func(); below.  */
3604      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  
3605  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
3606  /* 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
3607     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3608  char $ac_func ();  char $ac_func();
3609    
3610    int main() {
3611    
3612  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
3613      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
3614      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
3615  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3616  choke me  choke me
3617  #else  #else
3618  char (*f) () = $ac_func;  $ac_func();
 #endif  
 #ifdef __cplusplus  
 }  
3619  #endif  #endif
3620    
3621  int  ; return 0; }
3622  main ()  EOF
3623  {  if { (eval echo configure:3624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3624  return f != $ac_func;    rm -rf conftest*
3625    ;    eval "ac_cv_func_$ac_func=yes"
3626    return 0;  else
3627  }    echo "configure: failed program was:" >&5
3628  _ACEOF    cat conftest.$ac_ext >&5
3629  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
3630  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_$ac_func=no"
3631    (eval $ac_link) 2>&5  fi
3632    ac_status=$?  rm -f conftest*
3633    echo "$as_me:$LINENO: \$? = $ac_status" >&5  fi
   (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.$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  
3634    
3635    if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3636      echo "$ac_t""yes" 1>&6
3637        ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3638      cat >> confdefs.h <<EOF
3639    #define $ac_tr_func 1
3640    EOF
3641    
3642    else
3643      echo "$ac_t""no" 1>&6
3644  fi  fi
3645  done  done
3646    
3647  echo "$as_me:$LINENO: checking for uname" >&5  echo $ac_n "checking for uname""... $ac_c" 1>&6
3648  echo $ECHO_N "checking for uname... $ECHO_C" >&6  echo "configure:3649: checking for uname" >&5
3649  if test "${ac_cv_func_uname+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
3650    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
3651  else  else
3652    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3653  #line $LINENO "configure"  #line 3654 "configure"
3654  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3655  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3656      which can conflict with char uname (); below.      which can conflict with char uname(); below.  */
3657      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  
3658  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
3659  /* 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
3660     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3661  char uname ();  char uname();
3662    
3663    int main() {
3664    
3665  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
3666      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
3667      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
3668  #if defined (__stub_uname) || defined (__stub___uname)  #if defined (__stub_uname) || defined (__stub___uname)
3669  choke me  choke me
3670  #else  #else
3671  char (*f) () = uname;  uname();
 #endif  
 #ifdef __cplusplus  
 }  
3672  #endif  #endif
3673    
3674  int  ; return 0; }
3675  main ()  EOF
3676  {  if { (eval echo configure:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3677  return f != uname;    rm -rf conftest*
3678    ;    eval "ac_cv_func_uname=yes"
3679    return 0;  else
3680  }    echo "configure: failed program was:" >&5
3681  _ACEOF    cat conftest.$ac_ext >&5
3682  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
3683  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_uname=no"
3684    (eval $ac_link) 2>&5  fi
3685    ac_status=$?  rm -f conftest*
3686    echo "$as_me:$LINENO: \$? = $ac_status" >&5  fi
3687    (exit $ac_status); } &&  
3688           { ac_try='test -s conftest$ac_exeext'  if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then
3689    { (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); }; }; 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.$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  
3690    :    :
3691  else  else
3692    cat >>confdefs.h <<\_ACEOF    echo "$ac_t""no" 1>&6
3693    cat >> confdefs.h <<\EOF
3694  #define NO_UNAME 1  #define NO_UNAME 1
3695  _ACEOF  EOF
3696    
3697  fi  fi
3698    
3699  echo "$as_me:$LINENO: checking for gettimeofday" >&5  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3700  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6  echo "configure:3701: checking for gettimeofday" >&5
3701  if test "${ac_cv_func_gettimeofday+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3702    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
3703  else  else
3704    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3705  #line $LINENO "configure"  #line 3706 "configure"
3706  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3707  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3708      which can conflict with char gettimeofday (); below.      which can conflict with char gettimeofday(); below.  */
3709      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  
3710  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
3711  /* 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
3712     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3713  char gettimeofday ();  char gettimeofday();
3714    
3715    int main() {
3716    
3717  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
3718      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
3719      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
3720  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
3721  choke me  choke me
3722  #else  #else
3723  char (*f) () = gettimeofday;  gettimeofday();
 #endif  
 #ifdef __cplusplus  
 }  
3724  #endif  #endif
3725    
3726  int  ; return 0; }
3727  main ()  EOF
3728  {  if { (eval echo configure:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3729  return f != gettimeofday;    rm -rf conftest*
3730    ;    eval "ac_cv_func_gettimeofday=yes"
3731    return 0;  else
3732  }    echo "configure: failed program was:" >&5
3733  _ACEOF    cat conftest.$ac_ext >&5
3734  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
3735  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_gettimeofday=no"
3736    (eval $ac_link) 2>&5  fi
3737    ac_status=$?  rm -f conftest*
3738    echo "$as_me:$LINENO: \$? = $ac_status" >&5  fi
3739    (exit $ac_status); } &&  
3740           { ac_try='test -s conftest$ac_exeext'  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
3741    { (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); }; }; 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.$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  
3742    :    :
3743  else  else
3744    cat >>confdefs.h <<\_ACEOF    echo "$ac_t""no" 1>&6
3745    cat >> confdefs.h <<\EOF
3746  #define NO_GETTOD 1  #define NO_GETTOD 1
3747  _ACEOF  EOF
3748    
3749  fi  fi
3750    
3751    
3752    
3753    for ac_hdr in sys/ioctl.h
 for ac_header in sys/ioctl.h  
3754  do  do
3755  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3756  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3757    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:3758: checking for $ac_hdr" >&5
3758  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3759  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
3760    echo $ECHO_N "(cached) $ECHO_C" >&6  else
3761  fi    cat > conftest.$ac_ext <<EOF
3762  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 3763 "configure"
3763  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
3764  else  #include <$ac_hdr>
3765    # Is the header compilable?  EOF
3766  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3767  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:3768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3768  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3769  #line $LINENO "configure"  if test -z "$ac_err"; then
3770  /* confdefs.h.  */    rm -rf conftest*
3771  _ACEOF    eval "ac_cv_header_$ac_safe=yes"
3772  cat confdefs.h >>conftest.$ac_ext  else
3773  cat >>conftest.$ac_ext <<_ACEOF    echo "$ac_err" >&5
3774  /* end confdefs.h.  */    echo "configure: failed program was:" >&5
3775  $ac_includes_default    cat conftest.$ac_ext >&5
3776  #include <$ac_header>    rm -rf conftest*
3777  _ACEOF    eval "ac_cv_header_$ac_safe=no"
 rm -f conftest.$ac_objext  
 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); } &&  
          { 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.$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  
 #line $LINENO "configure"  
 /* 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  
   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 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 preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
   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: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _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"  
3778  fi  fi
3779  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  rm -f conftest*
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
3780  fi  fi
3781  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3782    cat >>confdefs.h <<_ACEOF    echo "$ac_t""yes" 1>&6
3783  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3784  _ACEOF    cat >> confdefs.h <<EOF
3785    #define $ac_tr_hdr 1
3786    EOF
3787    
3788    else
3789      echo "$ac_t""no" 1>&6
3790  fi  fi
   
3791  done  done
3792    
3793    
# Line 7122  done Line 3803  done
3803  #          declare it.  #          declare it.
3804  #--------------------------------------------------------------------  #--------------------------------------------------------------------
3805    
3806  echo "$as_me:$LINENO: checking for BSDgettimeofday" >&5  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
3807  echo $ECHO_N "checking for BSDgettimeofday... $ECHO_C" >&6  echo "configure:3808: checking for BSDgettimeofday" >&5
3808  if test "${ac_cv_func_BSDgettimeofday+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
3809    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
3810  else  else
3811    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
3812  #line $LINENO "configure"  #line 3813 "configure"
3813  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3814  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3815      which can conflict with char BSDgettimeofday (); below.      which can conflict with char BSDgettimeofday(); below.  */
3816      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  
3817  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
3818  /* 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
3819     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3820  char BSDgettimeofday ();  char BSDgettimeofday();
3821    
3822    int main() {
3823    
3824  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
3825      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
3826      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
3827  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
3828  choke me  choke me
3829  #else  #else
3830  char (*f) () = BSDgettimeofday;  BSDgettimeofday();
 #endif  
 #ifdef __cplusplus  
 }  
3831  #endif  #endif
3832    
3833  int  ; return 0; }
3834  main ()  EOF
3835  {  if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3836  return f != BSDgettimeofday;    rm -rf conftest*
3837    ;    eval "ac_cv_func_BSDgettimeofday=yes"
3838    return 0;  else
3839  }    echo "configure: failed program was:" >&5
3840  _ACEOF    cat conftest.$ac_ext >&5
3841  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
3842  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_BSDgettimeofday=no"
3843    (eval $ac_link) 2>&5  fi
3844    ac_status=$?  rm -f conftest*
3845    echo "$as_me:$LINENO: \$? = $ac_status" >&5  fi
3846    (exit $ac_status); } &&  
3847           { ac_try='test -s conftest$ac_exeext'  if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then
3848    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
3849    (eval $ac_try) 2>&5    cat >> confdefs.h <<\EOF
   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.$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  
3850  #define HAVE_BSDGETTIMEOFDAY 1  #define HAVE_BSDGETTIMEOFDAY 1
3851  _ACEOF  EOF
3852    
3853  else  else
3854    echo "$as_me:$LINENO: checking for gettimeofday" >&5    echo "$ac_t""no" 1>&6
3855  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3856  if test "${ac_cv_func_gettimeofday+set}" = set; then  echo "configure:3857: checking for gettimeofday" >&5
3857    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3858  else    echo $ac_n "(cached) $ac_c" 1>&6
3859    cat >conftest.$ac_ext <<_ACEOF  else
3860  #line $LINENO "configure"    cat > conftest.$ac_ext <<EOF
3861  /* confdefs.h.  */  #line 3862 "configure"
3862  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3863  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3864      which can conflict with char gettimeofday (); below.      which can conflict with char gettimeofday(); below.  */
3865      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  
3866  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
3867  /* 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
3868     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3869  char gettimeofday ();  char gettimeofday();
3870    
3871    int main() {
3872    
3873  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
3874      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
3875      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
3876  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
3877  choke me  choke me
3878  #else  #else
3879  char (*f) () = gettimeofday;  gettimeofday();
 #endif  
 #ifdef __cplusplus  
 }  
3880  #endif  #endif
3881    
3882  int  ; return 0; }
3883  main ()  EOF
3884  {  if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3885  return f != gettimeofday;    rm -rf conftest*
3886    ;    eval "ac_cv_func_gettimeofday=yes"
3887    return 0;  else
3888  }    echo "configure: failed program was:" >&5
3889  _ACEOF    cat conftest.$ac_ext >&5
3890  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
3891  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_gettimeofday=no"
3892    (eval $ac_link) 2>&5  fi
3893    ac_status=$?  rm -f conftest*
3894    echo "$as_me:$LINENO: \$? = $ac_status" >&5  fi
3895    (exit $ac_status); } &&  
3896           { ac_try='test -s conftest$ac_exeext'  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
3897    { (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); }; }; 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.$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  
3898    :    :
3899  else  else
3900    cat >>confdefs.h <<\_ACEOF    echo "$ac_t""no" 1>&6
3901    cat >> confdefs.h <<\EOF
3902  #define NO_GETTOD 1  #define NO_GETTOD 1
3903  _ACEOF  EOF
3904    
3905  fi  fi
3906    
3907  fi  fi
3908    
3909    
3910  echo "$as_me:$LINENO: checking for gettimeofday declaration" >&5  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
3911  echo $ECHO_N "checking for gettimeofday declaration... $ECHO_C" >&6  echo "configure:3912: checking for gettimeofday declaration" >&5
3912    
3913  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3914  #line $LINENO "configure"  #line 3915 "configure"
3915  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3916  #include <sys/time.h>  #include <sys/time.h>
3917    EOF
 _ACEOF  
3918  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3919    $EGREP "gettimeofday" >/dev/null 2>&1; then    egrep "gettimeofday" >/dev/null 2>&1; then
3920    echo "$as_me:$LINENO: result: present" >&5    rm -rf conftest*
3921  echo "${ECHO_T}present" >&6    echo "$ac_t""present" 1>&6
3922  else  else
3923    echo "$as_me:$LINENO: result: missing" >&5    rm -rf conftest*
3924  echo "${ECHO_T}missing" >&6    echo "$ac_t""missing" 1>&6
3925                   cat >>confdefs.h <<\_ACEOF                   cat >> confdefs.h <<\EOF
3926  #define GETTOD_NOT_DECLARED 1  #define GETTOD_NOT_DECLARED 1
3927  _ACEOF  EOF
3928    
3929  fi  fi
3930  rm -f conftest*  rm -f conftest*
3931    
3932    
3933    
3934  echo "$as_me:$LINENO: checking for sin in -lm" >&5  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
3935  echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6  echo "configure:3936: checking for sin in -lm" >&5
3936  if test "${ac_cv_lib_m_sin+set}" = set; then  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
3937    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3938      echo $ac_n "(cached) $ac_c" 1>&6
3939  else  else
3940    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3941  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
3942  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3943  #line $LINENO "configure"  #line 3944 "configure"
3944  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
3945  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
3946  /* 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
3947     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3948  char sin ();  char sin();
3949  int  
3950  main ()  int main() {
3951  {  sin()
3952  sin ();  ; return 0; }
3953    ;  EOF
3954    return 0;  if { (eval echo configure:3955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3955  }    rm -rf conftest*
3956  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
3957  rm -f conftest.$ac_objext conftest$ac_exeext  else
3958  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
3959    (eval $ac_link) 2>&5    cat conftest.$ac_ext >&5
3960    ac_status=$?    rm -rf conftest*
3961    echo "$as_me:$LINENO: \$? = $ac_status" >&5    eval "ac_cv_lib_$ac_lib_var=no"
3962    (exit $ac_status); } &&  fi
3963           { ac_try='test -s conftest$ac_exeext'  rm -f conftest*
3964    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  LIBS="$ac_save_LIBS"
3965    (eval $ac_try) 2>&5  
3966    ac_status=$?  fi
3967    echo "$as_me:$LINENO: \$? = $ac_status" >&5  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3968    (exit $ac_status); }; }; then    echo "$ac_t""yes" 1>&6
   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.$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  
3969    LIBS="${LIBS} -lm"    LIBS="${LIBS} -lm"
3970  else  else
3971    true    echo "$ac_t""no" 1>&6
3972    true
3973  fi  fi
3974    
3975  echo "$as_me:$LINENO: checking for main in -lmingwex" >&5  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6
3976  echo $ECHO_N "checking for main in -lmingwex... $ECHO_C" >&6  echo "configure:3977: checking for main in -lmingwex" >&5
3977  if test "${ac_cv_lib_mingwex_main+set}" = set; then  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`
3978    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3979      echo $ac_n "(cached) $ac_c" 1>&6
3980  else  else
3981    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3982  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
3983  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3984  #line $LINENO "configure"  #line 3985 "configure"
3985  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3986    
3987    int main() {
3988    main()
3989    ; return 0; }
3990    EOF
3991    if { (eval echo configure:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3992      rm -rf conftest*
3993      eval "ac_cv_lib_$ac_lib_var=yes"
3994    else
3995      echo "configure: failed program was:" >&5
3996      cat conftest.$ac_ext >&5
3997      rm -rf conftest*
3998      eval "ac_cv_lib_$ac_lib_var=no"
3999    fi
4000    rm -f conftest*
4001    LIBS="$ac_save_LIBS"
4002    
4003  int  fi
4004  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4005  {    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>&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.$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  
4006    LIBS="${LIBS} -lmingwex"    LIBS="${LIBS} -lmingwex"
4007  else  else
4008    true    echo "$ac_t""no" 1>&6
4009    true
4010  fi  fi
4011    
4012  # AC_CHECK_LIB(japi,j_start,LIBS="${LIBS} -ljapi -lws2_32",true)  # AC_CHECK_LIB(japi,j_start,LIBS="${LIBS} -ljapi -lws2_32",true)
4013  EXTRA_LOBJS=  EXTRA_LOBJS=
4014  if test "$try_japi" = "yes" ; then  if test "$try_japi" = "yes" ; then
4015       for ac_hdr in japi.h
 for ac_header in japi.h  
4016  do  do
4017  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4018  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4019    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:4020: checking for $ac_hdr" >&5
4020  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4021  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
4022    echo $ECHO_N "(cached) $ECHO_C" >&6  else
4023  fi    cat > conftest.$ac_ext <<EOF
4024  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 4025 "configure"
4025  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
4026  else  #include <$ac_hdr>
4027    # Is the header compilable?  EOF
4028  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4029  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:4030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4030  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4031  #line $LINENO "configure"  if test -z "$ac_err"; then
4032  /* confdefs.h.  */    rm -rf conftest*
4033  _ACEOF    eval "ac_cv_header_$ac_safe=yes"
4034  cat confdefs.h >>conftest.$ac_ext  else
4035  cat >>conftest.$ac_ext <<_ACEOF    echo "$ac_err" >&5
4036  /* end confdefs.h.  */    echo "configure: failed program was:" >&5
4037  $ac_includes_default    cat conftest.$ac_ext >&5
4038  #include <$ac_header>    rm -rf conftest*
4039  _ACEOF    eval "ac_cv_header_$ac_safe=no"
 rm -f conftest.$ac_objext  
 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); } &&  
          { 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.$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  
 #line $LINENO "configure"  
 /* 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  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
4040  fi  fi
4041  if test -z "$ac_cpp_err"; then  rm -f conftest*
4042    ac_header_preproc=yes  fi
4043  else  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4044    echo "$as_me: failed program was:" >&5    echo "$ac_t""yes" 1>&6
4045  sed 's/^/| /' conftest.$ac_ext >&5      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4046      cat >> confdefs.h <<EOF
4047    ac_header_preproc=no  #define $ac_tr_hdr 1
4048  fi  EOF
4049  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 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 preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
   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: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _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  
4050  #define HAVE_JAPI_H 1  #define HAVE_JAPI_H 1
4051  _ACEOF  EOF
4052    
4053                                   EXTRA_LOBJS="${EXTRA_LOBJS} japi.o"                                   EXTRA_LOBJS="${EXTRA_LOBJS} japi.o"
4054                                   LIBS="${LIBS} -ljapi -lws2_32"                                   LIBS="${LIBS} -ljapi -lws2_32"
4055    else
4056      echo "$ac_t""no" 1>&6
4057  fi  fi
   
4058  done  done
4059    
4060  fi  fi
4061  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
4062   if test "$try_xdr" = "yes" ; then   if test "$try_xdr" = "yes" ; then
4063       for ac_hdr in rpc/rpc.h
 for ac_header in rpc/rpc.h  
4064  do  do
4065  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4066  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4067    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:4068: checking for $ac_hdr" >&5
4068  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4069  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
4070    echo $ECHO_N "(cached) $ECHO_C" >&6  else
4071  fi    cat > conftest.$ac_ext <<EOF
4072  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 4073 "configure"
4073  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
4074  else  #include <$ac_hdr>
4075    # Is the header compilable?  EOF
4076  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4077  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:4078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4078  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4079  #line $LINENO "configure"  if test -z "$ac_err"; then
4080  /* confdefs.h.  */    rm -rf conftest*
4081  _ACEOF    eval "ac_cv_header_$ac_safe=yes"
4082  cat confdefs.h >>conftest.$ac_ext  else
4083  cat >>conftest.$ac_ext <<_ACEOF    echo "$ac_err" >&5
4084  /* end confdefs.h.  */    echo "configure: failed program was:" >&5
4085  $ac_includes_default    cat conftest.$ac_ext >&5
4086  #include <$ac_header>    rm -rf conftest*
4087  _ACEOF    eval "ac_cv_header_$ac_safe=no"
 rm -f conftest.$ac_objext  
 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); } &&  
          { 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.$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  
 #line $LINENO "configure"  
 /* 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  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
4088  fi  fi
4089  if test -z "$ac_cpp_err"; then  rm -f conftest*
4090    ac_header_preproc=yes  fi
4091  else  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4092    echo "$as_me: failed program was:" >&5    echo "$ac_t""yes" 1>&6
4093  sed 's/^/| /' conftest.$ac_ext >&5      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4094      cat >> confdefs.h <<EOF
4095    ac_header_preproc=no  #define $ac_tr_hdr 1
4096  fi  EOF
4097  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 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 preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
   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: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _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  
4098  #define HAVE_XDR 1  #define HAVE_XDR 1
4099  _ACEOF  EOF
4100    
4101                                   LIBS="${LIBS} -loncrpc"                                   LIBS="${LIBS} -loncrpc"
4102    else
4103      echo "$ac_t""no" 1>&6
4104  fi  fi
   
4105  done  done
4106    
4107   fi   fi
4108  else  else
4109   if test "$try_xdr" = "yes" ; then   if test "$try_xdr" = "yes" ; then
4110       for ac_hdr in rpc/rpc.h
 for ac_header in rpc/rpc.h  
4111  do  do
4112  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4113  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4114    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:4115: checking for $ac_hdr" >&5
4115  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4116  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
4117    echo $ECHO_N "(cached) $ECHO_C" >&6  else
4118  fi    cat > conftest.$ac_ext <<EOF
4119  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 4120 "configure"
4120  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
4121  else  #include <$ac_hdr>
4122    # Is the header compilable?  EOF
4123  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4124  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:4125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4125  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4126  #line $LINENO "configure"  if test -z "$ac_err"; then
4127  /* confdefs.h.  */    rm -rf conftest*
4128  _ACEOF    eval "ac_cv_header_$ac_safe=yes"
4129  cat confdefs.h >>conftest.$ac_ext  else
4130  cat >>conftest.$ac_ext <<_ACEOF    echo "$ac_err" >&5
4131  /* end confdefs.h.  */    echo "configure: failed program was:" >&5
4132  $ac_includes_default    cat conftest.$ac_ext >&5
4133  #include <$ac_header>    rm -rf conftest*
4134  _ACEOF    eval "ac_cv_header_$ac_safe=no"
 rm -f conftest.$ac_objext  
 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); } &&  
          { 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.$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  
 #line $LINENO "configure"  
 /* 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  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
4135  fi  fi
4136  if test -z "$ac_cpp_err"; then  rm -f conftest*
4137    ac_header_preproc=yes  fi
4138  else  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4139    echo "$as_me: failed program was:" >&5    echo "$ac_t""yes" 1>&6
4140  sed 's/^/| /' conftest.$ac_ext >&5      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4141      cat >> confdefs.h <<EOF
4142    ac_header_preproc=no  #define $ac_tr_hdr 1
4143  fi  EOF
4144  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 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 preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
   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: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _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  
4145  #define HAVE_XDR 1  #define HAVE_XDR 1
4146  _ACEOF  EOF
4147    
4148                                   LIBS="${LIBS} -lrpc"                                   LIBS="${LIBS} -lrpc"
4149    else
4150      echo "$ac_t""no" 1>&6
4151  fi  fi
   
4152  done  done
4153    
4154   fi   fi
4155  fi  fi
4156    
4157  # Should really find a way to check for prototypes, but this  # Should really find a way to check for prototypes, but this
4158  # basically works for now.  CM  # basically works for now.  CM
4159  #  #
4160    for ac_hdr in math.h
 for ac_header in math.h  
4161  do  do
4162  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4163  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4164    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:4165: checking for $ac_hdr" >&5
4165  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4166  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
4167    echo $ECHO_N "(cached) $ECHO_C" >&6  else
4168  fi    cat > conftest.$ac_ext <<EOF
4169  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 4170 "configure"
4170  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
4171  else  #include <$ac_hdr>
4172    # Is the header compilable?  EOF
4173  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4174  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:4175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4175  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4176  #line $LINENO "configure"  if test -z "$ac_err"; then
4177  /* confdefs.h.  */    rm -rf conftest*
4178  _ACEOF    eval "ac_cv_header_$ac_safe=yes"
4179  cat confdefs.h >>conftest.$ac_ext  else
4180  cat >>conftest.$ac_ext <<_ACEOF    echo "$ac_err" >&5
4181  /* end confdefs.h.  */    echo "configure: failed program was:" >&5
4182  $ac_includes_default    cat conftest.$ac_ext >&5
4183  #include <$ac_header>    rm -rf conftest*
4184  _ACEOF    eval "ac_cv_header_$ac_safe=no"
 rm -f conftest.$ac_objext  
 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); } &&  
          { 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.$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  
 #line $LINENO "configure"  
 /* 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  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
4185  fi  fi
4186  if test -z "$ac_cpp_err"; then  rm -f conftest*
4187    ac_header_preproc=yes  fi
4188  else  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4189    echo "$as_me: failed program was:" >&5    echo "$ac_t""yes" 1>&6
4190  sed 's/^/| /' conftest.$ac_ext >&5      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4191      cat >> confdefs.h <<EOF
4192    ac_header_preproc=no  #define $ac_tr_hdr 1
4193  fi  EOF
4194  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 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 preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
   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: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _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  
4195  #define HAVE_MATH_H 1  #define HAVE_MATH_H 1
4196  _ACEOF  EOF
4197    
4198    else
4199      echo "$ac_t""no" 1>&6
4200  fi  fi
   
4201  done  done
4202    
4203    
4204  #  #
4205  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM
4206  #  #
4207    for ac_hdr in values.h
 for ac_header in values.h  
4208  do  do
4209  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4210  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4211    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:4212: checking for $ac_hdr" >&5
4212  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4213  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
4214    echo $ECHO_N "(cached) $ECHO_C" >&6  else
4215  fi    cat > conftest.$ac_ext <<EOF
4216  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 4217 "configure"
4217  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
4218  else  #include <$ac_hdr>
4219    # Is the header compilable?  EOF
4220  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4221  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:4222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4222  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4223  #line $LINENO "configure"  if test -z "$ac_err"; then
4224  /* confdefs.h.  */    rm -rf conftest*
4225  _ACEOF    eval "ac_cv_header_$ac_safe=yes"
4226  cat confdefs.h >>conftest.$ac_ext  else
4227  cat >>conftest.$ac_ext <<_ACEOF    echo "$ac_err" >&5
4228  /* end confdefs.h.  */    echo "configure: failed program was:" >&5
4229  $ac_includes_default    cat conftest.$ac_ext >&5
4230  #include <$ac_header>    rm -rf conftest*
4231  _ACEOF    eval "ac_cv_header_$ac_safe=no"
 rm -f conftest.$ac_objext  
 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); } &&  
          { 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.$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  
 #line $LINENO "configure"  
 /* 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  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
4232  fi  fi
4233  if test -z "$ac_cpp_err"; then  rm -f conftest*
4234    ac_header_preproc=yes  fi
4235  else  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4236    echo "$as_me: failed program was:" >&5    echo "$ac_t""yes" 1>&6
4237  sed 's/^/| /' conftest.$ac_ext >&5      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4238      cat >> confdefs.h <<EOF
4239    ac_header_preproc=no  #define $ac_tr_hdr 1
4240  fi  EOF
4241  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 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 preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
   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: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _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  
4242  #define HAVE_VALUES_H 1  #define HAVE_VALUES_H 1
4243  _ACEOF  EOF
4244    
4245    else
4246      echo "$ac_t""no" 1>&6
4247  fi  fi
   
4248  done  done
4249    
4250    
4251  #  #
4252  # 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
4253  #  #
4254    for ac_hdr in float.h
 for ac_header in float.h  
4255  do  do
4256  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4257  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4258    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:4259: checking for $ac_hdr" >&5
4259  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4260  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
4261    echo $ECHO_N "(cached) $ECHO_C" >&6  else
4262  fi    cat > conftest.$ac_ext <<EOF
4263  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 4264 "configure"
4264  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
4265  else  #include <$ac_hdr>
4266    # Is the header compilable?  EOF
4267  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4268  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:4269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4269  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4270  #line $LINENO "configure"  if test -z "$ac_err"; then
4271  /* confdefs.h.  */    rm -rf conftest*
4272  _ACEOF    eval "ac_cv_header_$ac_safe=yes"
4273  cat confdefs.h >>conftest.$ac_ext  else
4274  cat >>conftest.$ac_ext <<_ACEOF    echo "$ac_err" >&5
4275  /* end confdefs.h.  */    echo "configure: failed program was:" >&5
4276  $ac_includes_default    cat conftest.$ac_ext >&5
4277  #include <$ac_header>    rm -rf conftest*
4278  _ACEOF    eval "ac_cv_header_$ac_safe=no"
 rm -f conftest.$ac_objext  
 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); } &&  
          { 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.$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  
 #line $LINENO "configure"  
 /* 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  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
4279  fi  fi
4280  if test -z "$ac_cpp_err"; then  rm -f conftest*
4281    ac_header_preproc=yes  fi
4282  else  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4283    echo "$as_me: failed program was:" >&5    echo "$ac_t""yes" 1>&6
4284  sed 's/^/| /' conftest.$ac_ext >&5      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4285      cat >> confdefs.h <<EOF
4286    ac_header_preproc=no  #define $ac_tr_hdr 1
4287  fi  EOF
4288  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 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 preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
   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: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _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  
4289  #define HAVE_FLOAT_H 1  #define HAVE_FLOAT_H 1
4290  _ACEOF  EOF
4291    
4292    else
4293      echo "$ac_t""no" 1>&6
4294  fi  fi
   
4295  done  done
4296    
4297    
# Line 8330  done Line 4300  done
4300  # a more comprehensive later, i.e. checking that the fpclass  # a more comprehensive later, i.e. checking that the fpclass
4301  # test makes sense.  CM  # test makes sense.  CM
4302  #  #
4303  echo "$as_me:$LINENO: checking for isnormal" >&5  echo $ac_n "checking for isnormal""... $ac_c" 1>&6
4304  echo $ECHO_N "checking for isnormal... $ECHO_C" >&6  echo "configure:4305: checking for isnormal" >&5
4305  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4306    HAVE_ISNORMAL=0 echo "$as_me:$LINENO: result: no" >&5    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
4307  else  else
4308    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4309  #line $LINENO "configure"  #line 4310 "configure"
4310  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4311  #define _GNU_SOURCE  #define _GNU_SOURCE
4312              #include <math.h>              #include <math.h>
4313              int main() {              int main() {
4314                  float f;                  float f;
4315                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
4316                  }                  }
4317  _ACEOF  EOF
4318  rm -f conftest$ac_exeext  if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4319  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
4320    (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  
4321  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
4322  _ACEOF  EOF
4323   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
4324  echo "${ECHO_T}yes" >&6  else
4325  else    echo "configure: failed program was:" >&5
4326    echo "$as_me: program exited with status $ac_status" >&5    cat conftest.$ac_ext >&5
4327  echo "$as_me: failed program was:" >&5    rm -fr conftest*
4328  sed 's/^/| /' conftest.$ac_ext >&5    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6
4329    echo "configure:4330: 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  
4330                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
4331    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
4332  else  else
4333    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4334  #line $LINENO "configure"  #line 4335 "configure"
4335  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4336  #include <ieeefp.h>  #include <ieeefp.h>
4337                              int main() {                              int main() {
4338                                  float f;                                  float f;
4339                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
4340                                  }                                  }
4341  _ACEOF  EOF
4342  rm -f conftest$ac_exeext  if { (eval echo configure:4343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4343  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
4344    (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  
4345  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
4346  _ACEOF  EOF
4347   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
4348  else  else
4349    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
4350  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
4351  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
4352      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  
4353  fi  fi
4354  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
4355  fi  fi
4356    
4357            
4358  fi  fi
4359  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
4360  fi  fi
4361    
4362  echo "$as_me:$LINENO: checking for isfinite" >&5  
4363  echo $ECHO_N "checking for isfinite... $ECHO_C" >&6  echo $ac_n "checking for isfinite""... $ac_c" 1>&6
4364    echo "configure:4365: checking for isfinite" >&5
4365  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4366    HAVE_ISFINITE=0 echo "$as_me:$LINENO: result: no" >&5    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
4367  else  else
4368    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4369  #line $LINENO "configure"  #line 4370 "configure"
4370  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4371  #define _GNU_SOURCE  #define _GNU_SOURCE
4372              #include <math.h>              #include <math.h>
4373              int main() {              int main() {
4374                  float f;                  float f;
4375                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
4376                  }                  }
4377  _ACEOF  EOF
4378  rm -f conftest$ac_exeext  if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4379  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
4380    (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  
4381  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
4382  _ACEOF  EOF
4383   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
4384  echo "${ECHO_T}yes" >&6  else
4385  else    echo "configure: failed program was:" >&5
4386    echo "$as_me: program exited with status $ac_status" >&5    cat conftest.$ac_ext >&5
4387  echo "$as_me: failed program was:" >&5    rm -fr conftest*
4388  sed 's/^/| /' conftest.$ac_ext >&5    echo $ac_n "checking for finite()""... $ac_c" 1>&6
4389    echo "configure:4390: checking for finite()" >&5
 ( exit $ac_status )  
 echo "$as_me:$LINENO: checking for finite()" >&5  
 echo $ECHO_N "checking for finite()... $ECHO_C" >&6  
4390                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
4391    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5    HAVE_FINITE=0 echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
4392  else  else
4393    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4394  #line $LINENO "configure"  #line 4395 "configure"
4395  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4396  #include <math.h>  #include <math.h>
4397                              #include <ieeefp.h>                              #include <ieeefp.h>
4398                              int main() {                              int main() {
4399                                  float f;                                  float f;
4400                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
4401                                  }                                  }
4402  _ACEOF  EOF
4403  rm -f conftest$ac_exeext  if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4404  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
4405    (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  
4406  #define HAVE_FINITE 1  #define HAVE_FINITE 1
4407  _ACEOF  EOF
4408   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
4409  else  else
4410    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
4411  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
4412  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
4413      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  
4414  fi  fi
4415  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
4416  fi  fi
4417    
4418            
4419  fi  fi
4420  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
4421  fi  fi
4422    
4423    
4424    
4425    
4426  #--------------------------------------------------------------------  #--------------------------------------------------------------------
4427  #       Check for the existence of the -lsocket and -lnsl libraries.  #       Check for the existence of the -lsocket and -lnsl libraries.
4428  #       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 8536  fi Line 4440  fi
4440  #          To get around this problem, check for both libraries together  #          To get around this problem, check for both libraries together
4441  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
4442  #--------------------------------------------------------------------  #--------------------------------------------------------------------
4443  echo "$as_me:$LINENO: checking for sockets" >&5  echo $ac_n "checking for sockets""... $ac_c" 1>&6
4444  echo $ECHO_N "checking for sockets... $ECHO_C" >&6  echo "configure:4445: checking for sockets" >&5
4445  tcl_checkBoth=0  tcl_checkBoth=0
4446  echo "$as_me:$LINENO: checking for connect" >&5  echo $ac_n "checking for connect""... $ac_c" 1>&6
4447  echo $ECHO_N "checking for connect... $ECHO_C" >&6  echo "configure:4448: checking for connect" >&5
4448  if test "${ac_cv_func_connect+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4449    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
4450  else  else
4451    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4452  #line $LINENO "configure"  #line 4453 "configure"
4453  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4454  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4455      which can conflict with char connect (); below.      which can conflict with char connect(); below.  */
4456      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  
4457  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
4458  /* 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
4459     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
4460  char connect ();  char connect();
4461    
4462    int main() {
4463    
4464  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4465      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4466      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4467  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
4468  choke me  choke me
4469  #else  #else
4470  char (*f) () = connect;  connect();
 #endif  
 #ifdef __cplusplus  
 }  
4471  #endif  #endif
4472    
4473  int  ; return 0; }
4474  main ()  EOF
4475  {  if { (eval echo configure:4476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4476  return f != connect;    rm -rf conftest*
4477    ;    eval "ac_cv_func_connect=yes"
4478    return 0;  else
4479  }    echo "configure: failed program was:" >&5
4480  _ACEOF    cat conftest.$ac_ext >&5
4481  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
4482  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_connect=no"
4483    (eval $ac_link) 2>&5  fi
4484    ac_status=$?  rm -f conftest*
4485    echo "$as_me:$LINENO: \$? = $ac_status" >&5  fi
4486    (exit $ac_status); } &&  
4487           { ac_try='test -s conftest$ac_exeext'  if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4488    { (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); }; }; 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.$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  
4489    tcl_checkSocket=0    tcl_checkSocket=0
4490  else  else
4491    tcl_checkSocket=1    echo "$ac_t""no" 1>&6
4492    tcl_checkSocket=1
4493  fi  fi
4494    
4495  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
4496      echo "$as_me:$LINENO: checking for main in -lsocket" >&5      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4497  echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6  echo "configure:4498: checking for main in -lsocket" >&5
4498  if test "${ac_cv_lib_socket_main+set}" = set; then  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4499    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4500      echo $ac_n "(cached) $ac_c" 1>&6
4501  else  else
4502    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4503  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
4504  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4505  #line $LINENO "configure"  #line 4506 "configure"
4506  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4507    
4508    int main() {
4509    main()
4510    ; return 0; }
4511    EOF
4512    if { (eval echo configure:4513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4513      rm -rf conftest*
4514      eval "ac_cv_lib_$ac_lib_var=yes"
4515    else
4516      echo "configure: failed program was:" >&5
4517      cat conftest.$ac_ext >&5
4518      rm -rf conftest*
4519      eval "ac_cv_lib_$ac_lib_var=no"
4520    fi
4521    rm -f conftest*
4522    LIBS="$ac_save_LIBS"
4523    
4524  int  fi
4525  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4526  {    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>&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.$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  
4527    TLIBS="$TLIBS -lsocket"    TLIBS="$TLIBS -lsocket"
4528  else  else
4529    tcl_checkBoth=1    echo "$ac_t""no" 1>&6
4530    tcl_checkBoth=1
4531  fi  fi
4532    
4533  fi  fi
# Line 8678  fi Line 4536  fi
4536  if test "$tcl_checkBoth" = 1; then  if test "$tcl_checkBoth" = 1; then
4537      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
4538      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
4539      echo "$as_me:$LINENO: checking for accept" >&5      echo $ac_n "checking for accept""... $ac_c" 1>&6
4540  echo $ECHO_N "checking for accept... $ECHO_C" >&6  echo "configure:4541: checking for accept" >&5
4541  if test "${ac_cv_func_accept+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4542    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
4543  else  else
4544    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4545  #line $LINENO "configure"  #line 4546 "configure"
4546  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4547  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4548      which can conflict with char accept (); below.      which can conflict with char accept(); below.  */
4549      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  
4550  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
4551  /* 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
4552     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
4553  char accept ();  char accept();
4554    
4555    int main() {
4556    
4557  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4558      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4559      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4560  #if defined (__stub_accept) || defined (__stub___accept)  #if defined (__stub_accept) || defined (__stub___accept)
4561  choke me  choke me
4562  #else  #else
4563  char (*f) () = accept;  accept();
 #endif  
 #ifdef __cplusplus  
 }  
4564  #endif  #endif
4565    
4566  int  ; return 0; }
4567  main ()  EOF
4568  {  if { (eval echo configure:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4569  return f != accept;    rm -rf conftest*
4570    ;    eval "ac_cv_func_accept=yes"
4571    return 0;  else
4572  }    echo "configure: failed program was:" >&5
4573  _ACEOF    cat conftest.$ac_ext >&5
4574  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
4575  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_accept=no"
4576    (eval $ac_link) 2>&5  fi
4577    ac_status=$?  rm -f conftest*
4578    echo "$as_me:$LINENO: \$? = $ac_status" >&5  fi
4579    (exit $ac_status); } &&  
4580           { ac_try='test -s conftest$ac_exeext'  if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4581    { (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); }; }; 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.$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  
4582    tcl_checkNsl=0    tcl_checkNsl=0
4583  else  else
4584    TLIBS=$tk_oldLibs    echo "$ac_t""no" 1>&6
4585    TLIBS=$tk_oldLibs
4586  fi  fi
4587    
4588  fi  fi
4589  echo "$as_me:$LINENO: checking for gethostbyname" >&5  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4590  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6  echo "configure:4591: checking for gethostbyname" >&5
4591  if test "${ac_cv_func_gethostbyname+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4592    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
4593  else  else
4594    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4595  #line $LINENO "configure"  #line 4596 "configure"
4596  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4597  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4598      which can conflict with char gethostbyname (); below.      which can conflict with char gethostbyname(); below.  */
4599      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  
4600  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
4601  /* 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
4602     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
4603  char gethostbyname ();  char gethostbyname();
4604    
4605    int main() {
4606    
4607  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4608      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4609      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4610  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4611  choke me  choke me
4612  #else  #else
4613  char (*f) () = gethostbyname;  gethostbyname();
 #endif  
 #ifdef __cplusplus  
 }  
4614  #endif  #endif
4615    
4616  int  ; return 0; }
4617  main ()  EOF
4618  {  if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4619  return f != gethostbyname;    rm -rf conftest*
4620    ;    eval "ac_cv_func_gethostbyname=yes"
4621    return 0;  else
4622  }    echo "configure: failed program was:" >&5
4623  _ACEOF    cat conftest.$ac_ext >&5
4624  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
4625  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_gethostbyname=no"
4626    (eval $ac_link) 2>&5  fi
4627    ac_status=$?  rm -f conftest*
4628    echo "$as_me:$LINENO: \$? = $ac_status" >&5  fi
4629    (exit $ac_status); } &&  
4630           { ac_try='test -s conftest$ac_exeext'  if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4631    { (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); }; }; 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.$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  
4632    :    :
4633  else  else
4634    echo "$as_me:$LINENO: checking for main in -lnsl" >&5    echo "$ac_t""no" 1>&6
4635  echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4636  if test "${ac_cv_lib_nsl_main+set}" = set; then  echo "configure:4637: checking for main in -lnsl" >&5
4637    echo $ECHO_N "(cached) $ECHO_C" >&6  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4638    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4639      echo $ac_n "(cached) $ac_c" 1>&6
4640  else  else
4641    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4642  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
4643  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4644  #line $LINENO "configure"  #line 4645 "configure"
4645  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4646    
4647    int main() {
4648    main()
4649    ; return 0; }
4650    EOF
4651    if { (eval echo configure:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4652      rm -rf conftest*
4653      eval "ac_cv_lib_$ac_lib_var=yes"
4654    else
4655      echo "configure: failed program was:" >&5
4656      cat conftest.$ac_ext >&5
4657      rm -rf conftest*
4658      eval "ac_cv_lib_$ac_lib_var=no"
4659    fi
4660    rm -f conftest*
4661    LIBS="$ac_save_LIBS"
4662    
4663  int  fi
4664  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4665  {    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>&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.$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  
4666    TLIBS="$TLIBS -lnsl"    TLIBS="$TLIBS -lnsl"
4667    else
4668      echo "$ac_t""no" 1>&6
4669  fi  fi
4670    
4671  fi  fi
4672    
4673    
4674  if test "$enable_readline" = "yes" ; then  if test "$enable_readline" = "yes" ; then
4675          echo "$as_me:$LINENO: checking for main in -lreadline" >&5          echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
4676  echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6  echo "configure:4677: checking for main in -lreadline" >&5
4677  if test "${ac_cv_lib_readline_main+set}" = set; then  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
4678    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4679      echo $ac_n "(cached) $ac_c" 1>&6
4680  else  else
4681    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4682  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
4683  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4684  #line $LINENO "configure"  #line 4685 "configure"
4685  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4686    
4687    int main() {
4688    main()
4689    ; return 0; }
4690    EOF
4691    if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4692      rm -rf conftest*
4693      eval "ac_cv_lib_$ac_lib_var=yes"
4694    else
4695      echo "configure: failed program was:" >&5
4696      cat conftest.$ac_ext >&5
4697      rm -rf conftest*
4698      eval "ac_cv_lib_$ac_lib_var=no"
4699    fi
4700    rm -f conftest*
4701    LIBS="$ac_save_LIBS"
4702    
4703  int  fi
4704  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4705  {    echo "$ac_t""yes" 1>&6
4706  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>&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.$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  
4707  #define HAVE_READLINE 1  #define HAVE_READLINE 1
4708  _ACEOF  EOF
4709    
4710                  TLIBS="$TLIBS -lreadline -lncurses"                  TLIBS="$TLIBS -lreadline -lncurses"
4711                  RL_OBJS=readline.o                  RL_OBJS=readline.o
4712                  RL_LIB=lsp/readline.o                  RL_LIB=lsp/readline.o
4713    else
4714      echo "$ac_t""no" 1>&6
4715  fi  fi
4716    
4717  fi  fi
# Line 8951  fi Line 4719  fi
4719    
4720    
4721    
4722  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
4723  echo $ECHO_N "checking For network code for nsocket.c... $ECHO_C" >&6  echo "configure:4724: checking For network code for nsocket.c" >&5
4724  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4725  #line $LINENO "configure"  #line 4726 "configure"
4726  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4727    
4728  #include <sys/time.h>  #include <sys/time.h>
4729  #include <sys/types.h>  #include <sys/types.h>
# Line 8969  cat >>conftest.$ac_ext <<_ACEOF Line 4733  cat >>conftest.$ac_ext <<_ACEOF
4733  #include <fcntl.h>  #include <fcntl.h>
4734  #include <stdio.h>  #include <stdio.h>
4735    
4736  /************* for the sockets ******************/  /************* for the sockets ******************/
4737  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */
4738  #ifndef NO_UNAME  #ifndef NO_UNAME
4739  #   include <sys/utsname.h>     /* uname system call. */  #   include <sys/utsname.h>     /* uname system call. */
# Line 8978  cat >>conftest.$ac_ext <<_ACEOF Line 4742  cat >>conftest.$ac_ext <<_ACEOF
4742  #include <arpa/inet.h>          /* inet_ntoa() */  #include <arpa/inet.h>          /* inet_ntoa() */
4743  #include <netdb.h>              /* gethostbyname() */  #include <netdb.h>              /* gethostbyname() */
4744    
4745  int  int main() {
 main ()  
 {  
4746   connect(0,(struct sockaddr *)0,0);   connect(0,(struct sockaddr *)0,0);
4747      gethostbyname("jil");      gethostbyname("jil");
4748      socket(AF_INET, SOCK_STREAM, 0);      socket(AF_INET, SOCK_STREAM, 0);
4749            
4750    ;  ; return 0; }
4751    return 0;  EOF
4752  }  if { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4753  _ACEOF    rm -rf conftest*
4754  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>&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  
4755  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
4756  _ACEOF  EOF
4757    
4758   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
4759  else  else
4760    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
4761  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
4762      rm -rf conftest*
4763  echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
4764  fi  fi
4765  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest*
4766    
4767    
4768  echo "$as_me:$LINENO: checking check for listen using fcntl" >&5  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6
4769  echo $ECHO_N "checking check for listen using fcntl... $ECHO_C" >&6  echo "configure:4770: checking check for listen using fcntl" >&5
4770  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4771  #line $LINENO "configure"  #line 4772 "configure"
4772  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4773  #include <stdio.h>  #include <stdio.h>
4774  #include <fcntl.h>  #include <fcntl.h>
4775    
4776  int  int main() {
 main ()  
 {  
4777  FILE *fp=fopen("configure.in","r");  FILE *fp=fopen("configure.in","r");
4778    int orig;    int orig;
4779    orig = fcntl(fileno(fp), F_GETFL);    orig = fcntl(fileno(fp), F_GETFL);
4780    if (! (orig & O_NONBLOCK )) return 0;    if (! (orig & O_NONBLOCK )) return 0;
4781    
4782    ;  ; return 0; }
4783    return 0;  EOF
4784  }  if { (eval echo configure:4785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4785  _ACEOF    rm -rf conftest*
4786  rm -f conftest.$ac_objext    cat >> confdefs.h <<\EOF
 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); } &&  
          { 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  
4787  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
4788  _ACEOF  EOF
4789    
4790   echo "$as_me:$LINENO: result: yes" >&5   echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
4791  else  else
4792    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
4793  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
4794      rm -rf conftest*
4795  echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
4796  fi  fi
4797  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest*
4798    
4799    
4800    
4801    
4802  echo "$as_me:$LINENO: checking for profil" >&5  echo $ac_n "checking for profil""... $ac_c" 1>&6
4803  echo $ECHO_N "checking for profil... $ECHO_C" >&6  echo "configure:4804: checking for profil" >&5
4804  if test "${ac_cv_func_profil+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then
4805    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
4806  else  else
4807    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4808  #line $LINENO "configure"  #line 4809 "configure"
4809  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4810  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4811      which can conflict with char profil (); below.      which can conflict with char profil(); below.  */
4812      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  
4813  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
4814  /* 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
4815     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
4816  char profil ();  char profil();
4817    
4818    int main() {
4819    
4820  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4821      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4822      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4823  #if defined (__stub_profil) || defined (__stub___profil)  #if defined (__stub_profil) || defined (__stub___profil)
4824  choke me  choke me
4825  #else  #else
4826  char (*f) () = profil;  profil();
 #endif  
 #ifdef __cplusplus  
 }  
4827  #endif  #endif
4828    
4829  int  ; return 0; }
4830  main ()  EOF
4831  {  if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4832  return f != profil;    rm -rf conftest*
4833    ;    eval "ac_cv_func_profil=yes"
4834    return 0;  else
4835  }    echo "configure: failed program was:" >&5
4836  _ACEOF    cat conftest.$ac_ext >&5
4837  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
4838  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_profil=no"
4839    (eval $ac_link) 2>&5  fi
4840    ac_status=$?  rm -f conftest*
4841    echo "$as_me:$LINENO: \$? = $ac_status" >&5  fi
4842    (exit $ac_status); } &&  
4843           { ac_try='test -s conftest$ac_exeext'  if eval "test \"`echo '$ac_cv_func_'profil`\" = yes"; then
4844    { (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); }; }; 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.$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  
4845    :    :
4846  else  else
4847    cat >>confdefs.h <<\_ACEOF    echo "$ac_t""no" 1>&6
4848    cat >> confdefs.h <<\EOF
4849  #define NO_PROFILE 1  #define NO_PROFILE 1
4850  _ACEOF  EOF
4851    
4852  fi  fi
4853    
4854    
4855  echo "$as_me:$LINENO: checking for setenv" >&5  echo $ac_n "checking for setenv""... $ac_c" 1>&6
4856  echo $ECHO_N "checking for setenv... $ECHO_C" >&6  echo "configure:4857: checking for setenv" >&5
4857  if test "${ac_cv_func_setenv+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
4858    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
4859  else  else
4860    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4861  #line $LINENO "configure"  #line 4862 "configure"
4862  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4863  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4864      which can conflict with char setenv (); below.      which can conflict with char setenv(); below.  */
4865      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  
4866  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
4867  /* 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
4868     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
4869  char setenv ();  char setenv();
4870    
4871    int main() {
4872    
4873  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4874      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4875      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4876  #if defined (__stub_setenv) || defined (__stub___setenv)  #if defined (__stub_setenv) || defined (__stub___setenv)
4877  choke me  choke me
4878  #else  #else
4879  char (*f) () = setenv;  setenv();
 #endif  
 #ifdef __cplusplus  
 }  
4880  #endif  #endif
4881    
4882  int  ; return 0; }
4883  main ()  EOF
4884  {  if { (eval echo configure:4885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4885  return f != setenv;    rm -rf conftest*
4886    ;    eval "ac_cv_func_setenv=yes"
4887    return 0;  else
4888  }    echo "configure: failed program was:" >&5
4889  _ACEOF    cat conftest.$ac_ext >&5
4890  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
4891  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_setenv=no"
4892    (eval $ac_link) 2>&5  fi
4893    ac_status=$?  rm -f conftest*
4894    echo "$as_me:$LINENO: \$? = $ac_status" >&5  fi
4895    (exit $ac_status); } &&  
4896           { ac_try='test -s conftest$ac_exeext'  if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then
4897    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
4898    (eval $ac_try) 2>&5    cat >> confdefs.h <<\EOF
   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.$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  
4899  #define HAVE_SETENV 1  #define HAVE_SETENV 1
4900  _ACEOF  EOF
4901    
4902  else  else
4903    no_setenv=1    echo "$ac_t""no" 1>&6
4904    no_setenv=1
4905  fi  fi
4906    
4907    
4908  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
4909  echo "$as_me:$LINENO: checking for putenv" >&5  echo $ac_n "checking for putenv""... $ac_c" 1>&6
4910  echo $ECHO_N "checking for putenv... $ECHO_C" >&6  echo "configure:4911: checking for putenv" >&5
4911  if test "${ac_cv_func_putenv+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
4912    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
4913  else  else
4914    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4915  #line $LINENO "configure"  #line 4916 "configure"
4916  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4917  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4918      which can conflict with char putenv (); below.      which can conflict with char putenv(); below.  */
4919      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  
4920  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
4921  /* 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
4922     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
4923  char putenv ();  char putenv();
4924    
4925    int main() {
4926    
4927  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4928      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4929      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4930  #if defined (__stub_putenv) || defined (__stub___putenv)  #if defined (__stub_putenv) || defined (__stub___putenv)
4931  choke me  choke me
4932  #else  #else
4933  char (*f) () = putenv;  putenv();
 #endif  
 #ifdef __cplusplus  
 }  
4934  #endif  #endif
4935    
4936  int  ; return 0; }
4937  main ()  EOF
4938  {  if { (eval echo configure:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4939  return f != putenv;    rm -rf conftest*
4940    ;    eval "ac_cv_func_putenv=yes"
4941    return 0;  else
4942  }    echo "configure: failed program was:" >&5
4943  _ACEOF    cat conftest.$ac_ext >&5
4944  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
4945  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_putenv=no"
4946    (eval $ac_link) 2>&5  fi
4947    ac_status=$?  rm -f conftest*
4948    echo "$as_me:$LINENO: \$? = $ac_status" >&5  fi
4949    (exit $ac_status); } &&  
4950           { ac_try='test -s conftest$ac_exeext'  if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then
4951    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
4952    (eval $ac_try) 2>&5    cat >> confdefs.h <<\EOF
   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.$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  
4953  #define HAVE_PUTENV 1  #define HAVE_PUTENV 1
4954  _ACEOF  EOF
4955    
4956    else
4957      echo "$ac_t""no" 1>&6
4958  fi  fi
4959    
4960    
4961  fi  fi
4962    
4963  echo "$as_me:$LINENO: checking for _cleanup" >&5  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6
4964  echo $ECHO_N "checking for _cleanup... $ECHO_C" >&6  echo "configure:4965: checking for _cleanup" >&5
4965  if test "${ac_cv_func__cleanup+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then
4966    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
4967  else  else
4968    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
4969  #line $LINENO "configure"  #line 4970 "configure"
4970  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4971  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4972      which can conflict with char _cleanup (); below.      which can conflict with char _cleanup(); below.  */
4973      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  
4974  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
4975  /* 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
4976     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
4977  char _cleanup ();  char _cleanup();
4978    
4979    int main() {
4980    
4981  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4982      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4983      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4984  #if defined (__stub__cleanup) || defined (__stub____cleanup)  #if defined (__stub__cleanup) || defined (__stub____cleanup)
4985  choke me  choke me
4986  #else  #else
4987  char (*f) () = _cleanup;  _cleanup();
 #endif  
 #ifdef __cplusplus  
 }  
4988  #endif  #endif
4989    
4990  int  ; return 0; }
4991  main ()  EOF
4992  {  if { (eval echo configure:4993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4993  return f != _cleanup;    rm -rf conftest*
4994    ;    eval "ac_cv_func__cleanup=yes"
4995    return 0;  else
4996  }    echo "configure: failed program was:" >&5
4997  _ACEOF    cat conftest.$ac_ext >&5
4998  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
4999  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func__cleanup=no"
5000    (eval $ac_link) 2>&5  fi
5001    ac_status=$?  rm -f conftest*
5002    echo "$as_me:$LINENO: \$? = $ac_status" >&5  fi
5003    (exit $ac_status); } &&  
5004           { ac_try='test -s conftest$ac_exeext'  if eval "test \"`echo '$ac_cv_func_'_cleanup`\" = yes"; then
5005    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
5006    (eval $ac_try) 2>&5    cat >> confdefs.h <<\EOF
   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.$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  
5007  #define USE_CLEANUP 1  #define USE_CLEANUP 1
5008  _ACEOF  EOF
5009    
5010    else
5011      echo "$ac_t""no" 1>&6
5012  fi  fi
5013    
5014    
5015  gcl_ok=no  gcl_ok=no
5016    
5017  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5018  #line $LINENO "configure"  #line 5019 "configure"
5019  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5020  #include <ctype.h>  #include <ctype.h>
5021    EOF
 _ACEOF  
5022  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5023    $EGREP "LITTLE_ENDIAN" >/dev/null 2>&1; then    egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then
5024      rm -rf conftest*
5025    gcl_ok=yes    gcl_ok=yes
5026  else  else
5027      rm -rf conftest*
5028    gcl_ok=noo    gcl_ok=noo
5029  fi  fi
5030  rm -f conftest*  rm -f conftest*
5031    
5032  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
5033  cat >>confdefs.h <<\_ACEOF  cat >> confdefs.h <<\EOF
5034  #define ENDIAN_ALREADY_DEFINED 1  #define ENDIAN_ALREADY_DEFINED 1
5035  _ACEOF  EOF
5036    
5037  fi  fi
5038    
# Line 9431  fi Line 5042  fi
5042    
5043    
5044  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
5045  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
5046  echo $ECHO_N "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... $ECHO_C" >&6  echo "configure:5047: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
5047    
5048  case $system in  case $system in
5049         OSF*)         OSF*)
5050          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
5051  #define USE_FIONBIO 1  #define USE_FIONBIO 1
5052  _ACEOF  EOF
5053    
5054          echo "$as_me:$LINENO: result: FIONBIO" >&5          echo "$ac_t""FIONBIO" 1>&6
 echo "${ECHO_T}FIONBIO" >&6  
5055          ;;          ;;
5056      SunOS-4*)      SunOS-4*)
5057          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
5058  #define USE_FIONBIO 1  #define USE_FIONBIO 1
5059  _ACEOF  EOF
5060    
5061          echo "$as_me:$LINENO: result: FIONBIO" >&5          echo "$ac_t""FIONBIO" 1>&6
 echo "${ECHO_T}FIONBIO" >&6  
5062          ;;          ;;
5063      ULTRIX-4.*)      ULTRIX-4.*)
5064          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
5065  #define USE_FIONBIO 1  #define USE_FIONBIO 1
5066  _ACEOF  EOF
5067    
5068          echo "$as_me:$LINENO: result: FIONBIO" >&5          echo "$ac_t""FIONBIO" 1>&6
 echo "${ECHO_T}FIONBIO" >&6  
5069          ;;          ;;
5070      *)      *)
5071          echo "$as_me:$LINENO: result: O_NONBLOCK" >&5          echo "$ac_t""O_NONBLOCK" 1>&6
 echo "${ECHO_T}O_NONBLOCK" >&6  
5072          ;;          ;;
5073  esac  esac
5074    
5075    
5076  echo "$as_me:$LINENO: checking check for SV_ONSTACK" >&5  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6
5077  echo $ECHO_N "checking check for SV_ONSTACK... $ECHO_C" >&6  echo "configure:5078: checking check for SV_ONSTACK" >&5
5078  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5079  #line $LINENO "configure"  #line 5080 "configure"
5080  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5081  #include <signal.h>  #include <signal.h>
5082  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
5083    
5084  int  int main() {
 main ()  
 {  
5085    
5086    ;  ; return 0; }
5087    return 0;  EOF
5088  }  if { (eval echo configure:5089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5089  _ACEOF    rm -rf conftest*
5090  rm -f conftest.$ac_objext    cat >> confdefs.h <<\EOF
 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); } &&  
          { 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  
5091  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
5092  _ACEOF  EOF
   
5093    
5094   echo "$as_me:$LINENO: result: yes" >&5  
5095  echo "${ECHO_T}yes" >&6   echo "$ac_t""yes" 1>&6
5096  else  else
5097    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
5098  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5099      rm -rf conftest*
5100  echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
5101  fi  fi
5102  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest*
5103    
5104  echo "$as_me:$LINENO: checking check for SIGSYS" >&5  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6
5105  echo $ECHO_N "checking check for SIGSYS... $ECHO_C" >&6  echo "configure:5106: checking check for SIGSYS" >&5
5106  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5107  #line $LINENO "configure"  #line 5108 "configure"
5108  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5109  #include <signal.h>  #include <signal.h>
5110  int joe=SIGSYS;  int joe=SIGSYS;
5111    
5112  int  int main() {
 main ()  
 {  
5113    
5114    ;  ; return 0; }
5115    return 0;  EOF
5116  }  if { (eval echo configure:5117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5117  _ACEOF    rm -rf conftest*
5118  rm -f conftest.$ac_objext    cat >> confdefs.h <<\EOF
 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); } &&  
          { 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  
5119  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
5120  _ACEOF  EOF
   
5121    
5122   echo "$as_me:$LINENO: result: yes" >&5  
5123  echo "${ECHO_T}yes" >&6   echo "$ac_t""yes" 1>&6
5124  else  else
5125    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
5126  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5127      rm -rf conftest*
5128  echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
5129  fi  fi
5130  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest*
5131    
5132    
5133  echo "$as_me:$LINENO: checking check for SIGEMT" >&5  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6
5134  echo $ECHO_N "checking check for SIGEMT... $ECHO_C" >&6  echo "configure:5135: checking check for SIGEMT" >&5
5135  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5136  #line $LINENO "configure"  #line 5137 "configure"
5137  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5138  #include <signal.h>  #include <signal.h>
5139  int joe=SIGEMT;  int joe=SIGEMT;
5140    
5141  int  int main() {
 main ()  
 {  
5142    
5143    ;  ; return 0; }
5144    return 0;  EOF
5145  }  if { (eval echo configure:5146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5146  _ACEOF    rm -rf conftest*
5147  rm -f conftest.$ac_objext    cat >> confdefs.h <<\EOF
 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); } &&  
          { 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  
5148  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
5149  _ACEOF  EOF
   
5150    
5151   echo "$as_me:$LINENO: result: yes" >&5  
5152  echo "${ECHO_T}yes" >&6   echo "$ac_t""yes" 1>&6
5153  else  else
5154    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
5155  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5156      rm -rf conftest*
5157  echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
5158  fi  fi
5159  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest*
5160    
5161    
5162    
5163    
5164  #if test $use = "386-linux" ; then  #if test $use = "386-linux" ; then
5165            for ac_hdr in asm/sigcontext.h
 for ac_header in asm/sigcontext.h  
5166  do  do
5167  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5168  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5169    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:5170: checking for $ac_hdr" >&5
5170  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5171  if eval "test \"\${$as_ac_Header+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
5172    echo $ECHO_N "(cached) $ECHO_C" >&6  else
5173  fi    cat > conftest.$ac_ext <<EOF
5174  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  #line 5175 "configure"
5175  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  #include "confdefs.h"
5176  else  #include <$ac_hdr>
5177    # Is the header compilable?  EOF
5178  echo "$as_me:$LINENO: checking $ac_header usability" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5179  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6  { (eval echo configure:5180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5180  cat >conftest.$ac_ext <<_ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5181  #line $LINENO "configure"  if test -z "$ac_err"; then
5182  /* confdefs.h.  */    rm -rf conftest*
5183  _ACEOF    eval "ac_cv_header_$ac_safe=yes"
5184  cat confdefs.h >>conftest.$ac_ext  else
5185  cat >>conftest.$ac_ext <<_ACEOF    echo "$ac_err" >&5
5186  /* end confdefs.h.  */    echo "configure: failed program was:" >&5
5187  $ac_includes_default    cat conftest.$ac_ext >&5
5188  #include <$ac_header>    rm -rf conftest*
5189  _ACEOF    eval "ac_cv_header_$ac_safe=no"
 rm -f conftest.$ac_objext  
 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); } &&  
          { 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.$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  
 #line $LINENO "configure"  
 /* 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  
   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 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 preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
   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: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _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"  
5190  fi  fi
5191  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  rm -f conftest*
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
5192  fi  fi
5193  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5194    cat >>confdefs.h <<_ACEOF    echo "$ac_t""yes" 1>&6
5195  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5196  _ACEOF    cat >> confdefs.h <<EOF
5197    #define $ac_tr_hdr 1
5198    EOF
5199    
5200    else
5201      echo "$ac_t""no" 1>&6
5202  fi  fi
   
5203  done  done
5204    
5205            for ac_hdr in asm/signal.h
 for ac_header in asm/signal.h  
5206  do  do
5207  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5208  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5209    echo "$as_me:$LINENO: checking for $ac_header" >&5  echo "configure:5210: checking for $ac_hdr" >&5
5210  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5211  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  
 #line $LINENO "configure"  
 /* 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>&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.$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  
 #line $LINENO "configure"  
 /* 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  
   else  
     ac_cpp_err=  
   fi  
5212  else  else
5213    ac_cpp_err=yes    cat > conftest.$ac_ext <<EOF
5214  fi  #line 5215 "configure"
5215  if test -z "$ac_cpp_err"; then  #include "confdefs.h"
5216    ac_header_preproc=yes  #include <$ac_hdr>
5217  else  EOF
5218    echo "$as_me: failed program was:" >&5  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5219  sed 's/^/| /' conftest.$ac_ext >&5  { (eval echo configure:5220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5220    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5221    ac_header_preproc=no  if test -z "$ac_err"; then
5222  fi    rm -rf conftest*
5223  rm -f conftest.err conftest.$ac_ext    eval "ac_cv_header_$ac_safe=yes"
5224  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  else
5225  echo "${ECHO_T}$ac_header_preproc" >&6    echo "$ac_err" >&5
5226      echo "configure: failed program was:" >&5
5227  # So?  What about this header?    cat conftest.$ac_ext >&5
5228  case $ac_header_compiler:$ac_header_preproc in    rm -rf conftest*
5229    yes:no )    eval "ac_cv_header_$ac_safe=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 preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
   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: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------ ##  
 ## Report this to bug-autoconf@gnu.org. ##  
 ## ------------------------------------ ##  
 _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"  
5230  fi  fi
5231  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  rm -f conftest*
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
5232  fi  fi
5233  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5234    cat >>confdefs.h <<_ACEOF    echo "$ac_t""yes" 1>&6
5235  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5236  _ACEOF    cat >> confdefs.h <<EOF
5237    #define $ac_tr_hdr 1
5238    EOF
5239    
5240    else
5241      echo "$ac_t""no" 1>&6
5242  fi  fi
   
5243  done  done
5244    
5245          cat >conftest.$ac_ext <<_ACEOF          cat > conftest.$ac_ext <<EOF
5246  #line $LINENO "configure"  #line 5247 "configure"
5247  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5248  #include <signal.h>  #include <signal.h>
5249                          long code;                          long code;  
5250          
5251  int  int main() {
 main ()  
 {  
5252    
5253          void *p = ((void *)(((struct sigcontext_struct *)(&code))));          void *p = ((void *)(((struct sigcontext_struct *)(&code))));
5254          
5255    ;  ; return 0; }
5256    return 0;  EOF
5257  }  if { (eval echo configure:5258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5258  _ACEOF    rm -rf conftest*
5259  rm -f conftest.$ac_objext    
 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); } &&  
          { 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  
   
5260          sigcontext_struct_works=1;          sigcontext_struct_works=1;
5261          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
5262  #define SIGNAL_H_HAS_SIGCONTEXT 1  #define SIGNAL_H_HAS_SIGCONTEXT 1
5263  _ACEOF  EOF
   
         echo "$as_me:$LINENO: result: \"sigcontext in signal.h\"" >&5  
 echo "${ECHO_T}\"sigcontext in signal.h\"" >&6  
5264    
5265            echo "$ac_t"""sigcontext in signal.h"" 1>&6
5266          
5267  else  else
5268    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
5269  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5270      rm -rf conftest*
5271  sigcontext_struct_works=0;    sigcontext_struct_works=0;
5272           echo "$as_me:$LINENO: result: \"sigcontext NOT in signal.h\"" >&5           echo "$ac_t"""sigcontext NOT in signal.h"" 1>&6
5273  echo "${ECHO_T}\"sigcontext NOT in signal.h\"" >&6        
   
5274  fi  fi
5275  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest*
5276         if test "$sigcontext_struct_works" = 0 ; then         if test "$sigcontext_struct_works" = 0 ; then
5277         cat >conftest.$ac_ext <<_ACEOF         cat > conftest.$ac_ext <<EOF
5278  #line $LINENO "configure"  #line 5279 "configure"
5279  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5280  #include <signal.h>  #include <signal.h>
5281               #ifdef HAVE_ASM_SIGCONTEXT_H               #ifdef HAVE_ASM_SIGCONTEXT_H    
5282               #include <asm/sigcontext.h>               #include <asm/sigcontext.h>
5283               #endif               #endif
5284               #ifdef HAVE_ASM_SIGNAL_H               #ifdef HAVE_ASM_SIGNAL_H          
5285               #include <asm/signal.h>               #include <asm/signal.h>
5286               #endif               #endif
5287               long code;               long code;
5288              
5289  int  int main() {
5290  main ()  
 {  
   
5291          void *p = ((void *)(((struct sigcontext *)(&code))));          void *p = ((void *)(((struct sigcontext *)(&code))));
5292            
5293    ;  ; return 0; }
5294    return 0;  EOF
5295  }  if { (eval echo configure:5296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5296  _ACEOF    rm -rf conftest*
5297  rm -f conftest.$ac_objext    
 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); } &&  
          { 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  
   
5298          sigcontext_works=1 ;          sigcontext_works=1 ;
5299          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
5300  #define HAVE_SIGCONTEXT 1  #define HAVE_SIGCONTEXT 1
5301  _ACEOF  EOF
   
         echo "$as_me:$LINENO: result: \"use struct sigcontext\"" >&5  
 echo "${ECHO_T}\"use struct sigcontext\"" >&6  
5302    
5303            echo "$ac_t"""use struct sigcontext"" 1>&6
5304            
5305  else  else
5306    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
5307  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5308      rm -rf conftest*
5309      
5310          sigcontext_works=0 ;          sigcontext_works=0 ;
5311        
5312  fi  fi
5313  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest*
5314    
5315    
5316         fi         fi
5317  #       echo 'foo() {}' > conftest1.c  #       echo 'foo() {}' > conftest1.c
5318  #       $CC -S conftest1.c  #       $CC -S conftest1.c
5319  #       use_underscore=0  #       use_underscore=0        
5320  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi
5321  #       if test $use_underscore = 0 ; then  #       if test $use_underscore = 0 ; then
5322  #            MPI_FILE=mpi-386_no_under.o  #            MPI_FILE=mpi-386_no_under.o
# Line 10030  rm -f conftest.$ac_objext conftest.$ac_e Line 5334  rm -f conftest.$ac_objext conftest.$ac_e
5334    
5335  # 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.
5336  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
5337  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5338  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:5339: checking for $ac_word" >&5
5339  if test "${ac_cv_path_EMACS+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
5340    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
5341  else  else
5342    case $EMACS in    case "$EMACS" in
5343    [\\/]* | ?:[\\/]*)    /*)
5344    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.
5345    ;;    ;;
5346      ?:/*)                  
5347      ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.
5348      ;;
5349    *)    *)
5350    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5351  for as_dir in $PATH    ac_dummy="$PATH"
5352  do    for ac_dir in $ac_dummy; do
5353    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
5354    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
5355    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_path_EMACS="$ac_dir/$ac_word"
5356    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
5357      ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext"      fi
5358      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
5359      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
5360    ;;    ;;
5361  esac  esac
5362  fi  fi
5363  EMACS=$ac_cv_path_EMACS  EMACS="$ac_cv_path_EMACS"
   
5364  if test -n "$EMACS"; then  if test -n "$EMACS"; then
5365    echo "$as_me:$LINENO: result: $EMACS" >&5    echo "$ac_t""$EMACS" 1>&6
 echo "${ECHO_T}$EMACS" >&6  
5366  else  else
5367    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
5368  fi  fi
5369    
5370    
# Line 10082  cat >> conftest.el <<EOF Line 5382  cat >> conftest.el <<EOF
5382    (message ans))    (message ans))
5383  EOF  EOF
5384    
5385  echo "$as_me:$LINENO: checking emacs site lisp directory" >&5  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6
5386  echo $ECHO_N "checking emacs site lisp directory... $ECHO_C" >&6  echo "configure:5387: checking emacs site lisp directory" >&5
5387  if [ "$EMACS" != "" ]  && [ "$EMACS_SITE_LISP" = "unknown" ] ; then  if [ "$EMACS" != "" ]  && [ "$EMACS_SITE_LISP" = "unknown" ] ; then
5388          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 `
5389  else  else
5390          EMACS_SITE_LISP=""          EMACS_SITE_LISP=""
5391  fi  fi
5392  echo "$as_me:$LINENO: result: $EMACS_SITE_LISP" >&5  echo "$ac_t""$EMACS_SITE_LISP" 1>&6
 echo "${ECHO_T}$EMACS_SITE_LISP" >&6  
5393    
5394    
5395  # check for where the emacs site lisp default.el is  # check for where the emacs site lisp default.el is
# Line 10105  cat >> conftest.el <<EOF Line 5404  cat >> conftest.el <<EOF
5404    (message ans))    (message ans))
5405  EOF  EOF
5406    
5407  echo "$as_me:$LINENO: checking emacs default.el" >&5  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6
5408  echo $ECHO_N "checking emacs default.el... $ECHO_C" >&6  echo "configure:5409: checking emacs default.el" >&5
5409  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
5410          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 `
5411  else  else
# Line 10117  if  test -f "${EMACS_DEFAULT_EL}"  ; the Line 5416  if  test -f "${EMACS_DEFAULT_EL}"  ; the
5416       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el
5417    fi    fi
5418  fi  fi
5419  echo "$as_me:$LINENO: result: $EMACS_DEFAULT_EL" >&5  echo "$ac_t""$EMACS_DEFAULT_EL" 1>&6
 echo "${ECHO_T}$EMACS_DEFAULT_EL" >&6  
5420    
5421    
5422    
# Line 10129  cat >> conftest.el <<EOF Line 5427  cat >> conftest.el <<EOF
5427  (let ((ans "") file (tem Info-default-directory-list))  (let ((ans "") file (tem Info-default-directory-list))
5428   (while tem   (while tem
5429     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))
5430            (setq ans (file-name-as-directory (car tem)))            (setq ans (file-name-as-directory (car tem)))        
5431            (setq tem nil) ))            (setq tem nil) ))
5432     (setq tem (cdr tem)))     (setq tem (cdr tem)))
5433    (message ans))    (message ans))
5434  EOF  EOF
5435    
5436  echo "$as_me:$LINENO: checking emacs info/dir" >&5  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6
5437  echo $ECHO_N "checking emacs info/dir... $ECHO_C" >&6  echo "configure:5438: checking emacs info/dir" >&5
5438  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
5439      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
5440  else  else
# Line 10150  if test -f /usr/info/dir ; then Line 5448  if test -f /usr/info/dir ; then
5448  else true;  else true;
5449  fi  fi
5450  fi  fi
5451  echo "$as_me:$LINENO: result: $INFO_DIR" >&5  echo "$ac_t""$INFO_DIR" 1>&6
 echo "${ECHO_T}$INFO_DIR" >&6  
5452    
5453    
5454  echo "$as_me:$LINENO: checking for tcl/tk" >&5  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6
5455  echo $ECHO_N "checking for tcl/tk... $ECHO_C" >&6  echo "configure:5456: checking for tcl/tk" >&5
5456    
5457    
5458  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 10165  cat >> conftest.tcl <<EOF Line 5462  cat >> conftest.tcl <<EOF
5462  set dir [set tcl_library]  set dir [set tcl_library]
5463  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
5464        puts  [set dir]        puts  [set dir]
5465        exit        exit      
5466    }    }
5467  set dir [file dirname [set tcl_library]]  set dir [file dirname [set tcl_library]]
5468  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
# Line 10177  EOF Line 5474  EOF
5474    
5475  # 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.
5476  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
5477  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5478  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:5479: checking for $ac_word" >&5
5479  if test "${ac_cv_prog_TCLSH+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then
5480    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
5481  else  else
5482    if test -n "$TCLSH"; then    if test -n "$TCLSH"; then
5483    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
5484  else  else
5485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5486  for as_dir in $PATH    ac_dummy="$PATH"
5487  do    for ac_dir in $ac_dummy; do
5488    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
5489    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
5490    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_TCLSH="tclsh"
5491    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
5492      ac_cv_prog_TCLSH="tclsh"      fi
5493      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
5494      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
5495    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"
5496  fi  fi
5497  fi  fi
5498  TCLSH=$ac_cv_prog_TCLSH  TCLSH="$ac_cv_prog_TCLSH"
5499  if test -n "$TCLSH"; then  if test -n "$TCLSH"; then
5500    echo "$as_me:$LINENO: result: $TCLSH" >&5    echo "$ac_t""$TCLSH" 1>&6
 echo "${ECHO_T}$TCLSH" >&6  
5501  else  else
5502    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
5503  fi  fi
5504    
5505  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})
# Line 10274  if test -f ${TK_CONFIG_PREFIX}/../includ Line 5565  if test -f ${TK_CONFIG_PREFIX}/../includ
5565    else    else
5566    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then
5567      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
5568    fi    fi    
5569  fi  fi
5570  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then
5571    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include
# Line 10283  if test -f ${TCL_CONFIG_PREFIX}/../inclu Line 5574  if test -f ${TCL_CONFIG_PREFIX}/../inclu
5574      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
5575    fi    fi
5576  fi  fi
5577  echo "$as_me:$LINENO: checking for main in -llieee" >&5  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6
5578  echo $ECHO_N "checking for main in -llieee... $ECHO_C" >&6  echo "configure:5579: checking for main in -llieee" >&5
5579  if test "${ac_cv_lib_lieee_main+set}" = set; then  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`
5580    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5581      echo $ac_n "(cached) $ac_c" 1>&6
5582  else  else
5583    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5584  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
5585  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5586  #line $LINENO "configure"  #line 5587 "configure"
5587  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5588    
5589    int main() {
5590    main()
5591    ; return 0; }
5592    EOF
5593    if { (eval echo configure:5594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5594      rm -rf conftest*
5595      eval "ac_cv_lib_$ac_lib_var=yes"
5596    else
5597      echo "configure: failed program was:" >&5
5598      cat conftest.$ac_ext >&5
5599      rm -rf conftest*
5600      eval "ac_cv_lib_$ac_lib_var=no"
5601    fi
5602    rm -f conftest*
5603    LIBS="$ac_save_LIBS"
5604    
5605  int  fi
5606  main ()  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5607  {    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>&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.$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  
5608    have_ieee=1    have_ieee=1
5609  else  else
5610    have_ieee=0    echo "$ac_t""no" 1>&6
5611    have_ieee=0
5612  fi  fi
5613    
5614  if test "$have_ieee" = "0" ; then  if test "$have_ieee" = "0" ; then
# Line 10365  fi Line 5639  fi
5639    
5640    
5641  if test -d "${TK_CONFIG_PREFIX}" ; then  if test -d "${TK_CONFIG_PREFIX}" ; then
5642  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  
5643  else  else
5644  echo "$as_me:$LINENO: result: not found" >&5  echo "$ac_t""not found" 1>&6
 echo "${ECHO_T}not found" >&6  
5645  fi  fi
5646    
5647  NOTIFY=$enable_notify  NOTIFY=$enable_notify
5648    
5649    
5650          
5651    
5652    
5653  # for sgbc the mprotect capabilities.  # for sgbc the mprotect capabilities.
5654    
5655  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
5656    
5657  echo "$as_me:$LINENO: checking alloca" >&5  echo $ac_n "checking alloca""... $ac_c" 1>&6
5658  echo $ECHO_N "checking alloca... $ECHO_C" >&6  echo "configure:5659: checking alloca" >&5
5659  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5660    gcl_ok=no    gcl_ok=no
5661  else  else
5662    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
5663  #line $LINENO "configure"  #line 5664 "configure"
5664  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5665  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
5666  _ACEOF  EOF
5667  rm -f conftest$ac_exeext  if { (eval echo configure:5668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5668  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  
5669    :    :
5670  else  else
5671    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
5672  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
5673  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
5674      gcl_ok=yes
 ( exit $ac_status )  
 gcl_ok=yes  
5675  fi  fi
5676  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
5677  fi  fi
5678    
5679  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
5680      echo "$as_me:$LINENO: result: yes" >&5      echo "$ac_t""yes" 1>&6
5681  echo "${ECHO_T}yes" >&6      cat >> confdefs.h <<\EOF
     cat >>confdefs.h <<\_ACEOF  
5682  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
5683  _ACEOF  EOF
5684    
5685  else  else
5686    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
5687    gcl_ok=no    gcl_ok=no
5688  else  else
5689    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
5690  #line $LINENO "configure"  #line 5691 "configure"
5691  /* confdefs.h.  */  #include "confdefs.h"
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
5692  #include <alloca.h>  #include <alloca.h>
5693    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
5694  _ACEOF  EOF
5695  rm -f conftest$ac_exeext  if { (eval echo configure:5696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5696  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  
5697    :    :
5698  else  else
5699    echo "$as_me: program exited with status $ac_status" >&5    echo "configure: failed program was:" >&5
5700  echo "$as_me: failed program was:" >&5    cat conftest.$ac_ext >&5
5701  sed 's/^/| /' conftest.$ac_ext >&5    rm -fr conftest*
5702      gcl_ok=yes
 ( exit $ac_status )  
 gcl_ok=yes  
5703  fi  fi
5704  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -fr conftest*
5705  fi  fi
5706    
5707   if test $gcl_ok = yes ; then   if test $gcl_ok = yes ; then
5708      echo "$as_me:$LINENO: result: yes" >&5      echo "$ac_t""yes" 1>&6
5709  echo "${ECHO_T}yes" >&6      cat >> confdefs.h <<\EOF
     cat >>confdefs.h <<\_ACEOF  
5710  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
5711  _ACEOF  EOF
5712    
5713      cat >>confdefs.h <<\_ACEOF      cat >> confdefs.h <<\EOF
5714  #define NEED_ALLOCA_H 1  #define NEED_ALLOCA_H 1
5715  _ACEOF  EOF
5716    
5717   fi   fi
5718  fi  fi
5719  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  
5720    
5721    
5722    
# Line 10491  echo "${ECHO_T}no" >&6 ; fi Line 5732  echo "${ECHO_T}no" >&6 ; fi
5732  # dlopen etc  # dlopen etc
5733  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)
5734  # 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
5735  #  #
5736    
5737  # what machine this is, and include then a machine specific hdr.  # what machine this is, and include then a machine specific hdr.
5738  # and machine specific defs.  # and machine specific defs.
# Line 10511  echo "${ECHO_T}no" >&6 ; fi Line 5752  echo "${ECHO_T}no" >&6 ; fi
5752    
5753  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
5754  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
5755  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
5756  echo $ECHO_N "checking Checking for buggy gcc version from redhat... $ECHO_C" >&6  echo "configure:5757: checking Checking for buggy gcc version from redhat" >&5
5757  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
5758     then     then
5759          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1
5760          cat >>confdefs.h <<\_ACEOF          cat >> confdefs.h <<\EOF
5761  #define BROKEN_O4_OPT 1  #define BROKEN_O4_OPT 1
5762  _ACEOF  EOF
   
5763    
5764            
5765          echo ODIR_DEBUG=-O >> makedefsafter          echo ODIR_DEBUG=-O >> makedefsafter
5766          echo >> makedefsafter          echo >> makedefsafter
5767          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  
5768     else     else
5769          echo "$as_me:$LINENO: result: no" >&5          echo "$ac_t""no" 1>&6
5770  echo "${ECHO_T}no" >&6  fi
 fi  
5771    
5772  LIBS="$LIBS $TLIBS"  LIBS="$LIBS $TLIBS"
5773    
# Line 10544  O2FLAGS=$TO2FLAGS Line 5783  O2FLAGS=$TO2FLAGS
5783    
5784  if test -f h/$use.defs  ; then  if test -f h/$use.defs  ; then
5785    
5786      
5787                                                      ac_config_files="$ac_config_files makedefc windows/gcl.iss windows/gcl.ansi.iss windows/install.ansi.lsp windows/install.lsp"    trap '' 1 2 15
5788  cat >confcache <<\_ACEOF  cat > confcache <<\EOF
5789  # This file is a shell script that caches the results of configure  # This file is a shell script that caches the results of configure
5790  # tests run on this system so they can be shared between configure  # tests run on this system so they can be shared between configure
5791  # scripts and configure runs, see configure's option --config-cache.  # scripts and configure runs.  It is not useful on other systems.
5792  # 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.  
5793  #  #
5794  # config.status only pays attention to the cache file if you give it  # By default, configure uses ./config.cache as the cache file,
5795  # the --recheck option to rerun configure.  # creating it if it does not exist already.  You can give configure
5796    # the --cache-file=FILE option to use a different cache file; that is
5797    # what configure does when it calls configure scripts in
5798    # subdirectories, so they share the cache.
5799    # Giving --cache-file=/dev/null disables caching, for debugging configure.
5800    # config.status only pays attention to the cache file if you give it the
5801    # --recheck option to rerun configure.
5802  #  #
5803  # `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  
   
5804  # The following way of writing the cache mishandles newlines in values,  # The following way of writing the cache mishandles newlines in values,
5805  # but we know of no workaround that is simple, portable, and efficient.  # but we know of no workaround that is simple, portable, and efficient.
5806  # So, don't put newlines in cache variables' values.  # So, don't put newlines in cache variables' values.
5807  # Ultrix sh set writes to stderr and can't be redirected directly,  # Ultrix sh set writes to stderr and can't be redirected directly,
5808  # 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.
5809  {  (set) 2>&1 |
5810    (set) 2>&1 |    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5811      case `(ac_space=' '; set | grep ac_space) 2>&1` in    *ac_space=\ *)
5812      *ac_space=\ *)      # `set' does not quote correctly, so add quotes (double-quote substitution
5813        # `set' does not quote correctly, so add quotes (double-quote      # turns \\\\ into \\, and sed turns \\ into \).
5814        # substitution turns \\\\ into \\, and sed turns \\ into \).      sed -n \
5815        sed -n \        -e "s/'/'\\\\''/g" \
5816          "s/'/'\\\\''/g;        -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5817            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"      ;;
5818        ;;    *)
5819      *)      # `set' quotes correctly as required by POSIX, so do not add quotes.
5820        # `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'
5821        sed -n \      ;;
5822          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"    esac >> confcache
5823        ;;  if cmp -s $cache_file confcache; then
5824      esac;    :
5825  } |  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  
5826    if test -w $cache_file; then    if test -w $cache_file; then
5827      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"      echo "updating cache $cache_file"
5828      cat confcache >$cache_file      cat confcache > $cache_file
5829    else    else
5830      echo "not updating unwritable cache $cache_file"      echo "not updating unwritable cache $cache_file"
5831    fi    fi
5832  fi  fi
5833  rm -f confcache  rm -f confcache
5834    
5835    trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5836    
5837  test "x$prefix" = xNONE && prefix=$ac_default_prefix  test "x$prefix" = xNONE && prefix=$ac_default_prefix
5838  # Let make expand exec_prefix.  # Let make expand exec_prefix.
5839  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5840    
5841  # VPATH may cause trouble with some makes, so we remove $(srcdir),  # Any assignment to VPATH causes Sun make to only execute
5842  # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and  # the first set of double-colon rules, so remove it if not needed.
5843  # 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).  
5844  if test "x$srcdir" = x.; then  if test "x$srcdir" = x.; then
5845    ac_vpsub='/^[         ]*VPATH[        ]*=/{    ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 s/:*\$(srcdir):*/:/;  
 s/:*\${srcdir}:*/:/;  
 s/:*@srcdir@:*/:/;  
 s/^\([^=]*=[    ]*\):*/\1/;  
 s/:*$//;  
 s/^[^=]*=[      ]*$//;  
 }'  
5846  fi  fi
5847    
5848  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  
   
5849    
5850    DEFS=-DHAVE_CONFIG_H
5851    
5852    # Without the "./", some shells look in PATH for config.status.
5853  : ${CONFIG_STATUS=./config.status}  : ${CONFIG_STATUS=./config.status}
5854  ac_clean_files_save=$ac_clean_files  
5855  ac_clean_files="$ac_clean_files $CONFIG_STATUS"  echo creating $CONFIG_STATUS
5856  { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5  rm -f $CONFIG_STATUS
5857  echo "$as_me: creating $CONFIG_STATUS" >&6;}  cat > $CONFIG_STATUS <<EOF
5858  cat >$CONFIG_STATUS <<_ACEOF  #! /bin/sh
5859  #! $SHELL  # Generated automatically by configure.
 # Generated by $as_me.  
5860  # Run this file to recreate the current configuration.  # Run this file to recreate the current configuration.
5861    # This directory was configured as follows,
5862    # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5863    #
5864    # $0 $ac_configure_args
5865    #
5866  # Compiler output produced by configure, useful for debugging  # Compiler output produced by configure, useful for debugging
5867  # 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  
   
 # Support unset when possible.  
 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then  
   as_unset=unset  
 else  
   as_unset=false  
 fi  
   
5868    
5869  # Work around bugs in pre-3.0 UWIN ksh.  ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5870  $as_unset ENV MAIL MAILPATH  for ac_option
 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 -n "`(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  
   as_mkdir_p=false  
 fi  
   
 as_executable_p="test -f"  
   
 # Sed expression to map a string onto a valid CPP name.  
 as_tr_cpp="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="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.57.  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.57,  
   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"  
   
 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001  
 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  
5871  do  do
5872    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  
5873    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5874      ac_cs_recheck=: ;;      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5875    --version | --vers* | -V )      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5876      echo "$ac_cs_version"; exit 0 ;;    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5877    --he | --h)      echo "$CONFIG_STATUS generated by autoconf version 2.13"
5878      # Conflict between --help and --header      exit 0 ;;
5879      { { echo "$as_me:$LINENO: error: ambiguous option: $1    -help | --help | --hel | --he | --h)
5880  Try \`$0 --help' for more information." >&5      echo "\$ac_cs_usage"; exit 0 ;;
5881  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" ;;  
   
   esac  
   shift  
 done  
   
 ac_configure_extra_args=  
   
 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/gcl.ansi.iss" ) CONFIG_FILES="$CONFIG_FILES windows/gcl.ansi.iss" ;;  
   "windows/install.ansi.lsp" ) CONFIG_FILES="$CONFIG_FILES windows/install.ansi.lsp" ;;  
   "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; }; };;  
5882    esac    esac
5883  done  done
5884    
5885  # If the user did not use the arguments to specify the items to instantiate,  ac_given_srcdir=$srcdir
 # 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  
 }  
5886    
5887  # Create a (secure) tmp directory for tmp files.  trap 'rm -fr `echo "makedefc windows/gcl.iss windows/gcl.ansi.iss windows/install.ansi.lsp windows/install.lsp  h/gclincl.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5888    EOF
5889  {  cat >> $CONFIG_STATUS <<EOF
   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  
   
 cat >>$CONFIG_STATUS <<_ACEOF  
5890    
5891  #  # Protect against being on the right side of a sed subst in config.status.
5892  # CONFIG_FILES section.  sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5893  #   s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5894    $ac_vpsub
5895    $extrasub
5896    s%@SHELL@%$SHELL%g
5897    s%@CFLAGS@%$CFLAGS%g
5898    s%@CPPFLAGS@%$CPPFLAGS%g
5899    s%@CXXFLAGS@%$CXXFLAGS%g
5900    s%@FFLAGS@%$FFLAGS%g
5901    s%@DEFS@%$DEFS%g
5902    s%@LDFLAGS@%$LDFLAGS%g
5903    s%@LIBS@%$LIBS%g
5904    s%@exec_prefix@%$exec_prefix%g
5905    s%@prefix@%$prefix%g
5906    s%@program_transform_name@%$program_transform_name%g
5907    s%@bindir@%$bindir%g
5908    s%@sbindir@%$sbindir%g
5909    s%@libexecdir@%$libexecdir%g
5910    s%@datadir@%$datadir%g
5911    s%@sysconfdir@%$sysconfdir%g
5912    s%@sharedstatedir@%$sharedstatedir%g
5913    s%@localstatedir@%$localstatedir%g
5914    s%@libdir@%$libdir%g
5915    s%@includedir@%$includedir%g
5916    s%@oldincludedir@%$oldincludedir%g
5917    s%@infodir@%$infodir%g
5918    s%@mandir@%$mandir%g
5919    s%@VERSION@%$VERSION%g
5920    s%@host@%$host%g
5921    s%@host_alias@%$host_alias%g
5922    s%@host_cpu@%$host_cpu%g
5923    s%@host_vendor@%$host_vendor%g
5924    s%@host_os@%$host_os%g
5925    s%@PROCESSOR_FLAGS@%$PROCESSOR_FLAGS%g
5926    s%@CC@%$CC%g
5927    s%@CPP@%$CPP%g
5928    s%@AWK@%$AWK%g
5929    s%@MAKEINFO@%$MAKEINFO%g
5930    s%@GMP@%$GMP%g
5931    s%@GMPDIR@%$GMPDIR%g
5932    s%@X_CFLAGS@%$X_CFLAGS%g
5933    s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5934    s%@X_LIBS@%$X_LIBS%g
5935    s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5936    s%@BUILD_BFD@%$BUILD_BFD%g
5937    s%@LITTLE_END@%$LITTLE_END%g
5938    s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g
5939    s%@FLISP@%$FLISP%g
5940    s%@SYSTEM@%$SYSTEM%g
5941    s%@PAGEWIDTH@%$PAGEWIDTH%g
5942    s%@RL_OBJS@%$RL_OBJS%g
5943    s%@RL_LIB@%$RL_LIB%g
5944    s%@NO_PROFILE@%$NO_PROFILE%g
5945    s%@HAVE_SETENV@%$HAVE_SETENV%g
5946    s%@HAVE_PUTENV@%$HAVE_PUTENV%g
5947    s%@USE_CLEANUP@%$USE_CLEANUP%g
5948    s%@ENDIAN_ALREADY_DEFINED@%$ENDIAN_ALREADY_DEFINED%g
5949    s%@HAVE_SV_ONSTACK@%$HAVE_SV_ONSTACK%g
5950    s%@HAVE_SIGSYS@%$HAVE_SIGSYS%g
5951    s%@HAVE_SIGEMT@%$HAVE_SIGEMT%g
5952    s%@EMACS@%$EMACS%g
5953    s%@EMACS_SITE_LISP@%$EMACS_SITE_LISP%g
5954    s%@EMACS_DEFAULT_EL@%$EMACS_DEFAULT_EL%g
5955    s%@INFO_DIR@%$INFO_DIR%g
5956    s%@TCLSH@%$TCLSH%g
5957    s%@TK_CONFIG_PREFIX@%$TK_CONFIG_PREFIX%g
5958    s%@TK_LIBRARY@%$TK_LIBRARY%g
5959    s%@TCL_LIBRARY@%$TCL_LIBRARY%g
5960    s%@TK_XINCLUDES@%$TK_XINCLUDES%g
5961    s%@TK_INCLUDE@%$TK_INCLUDE%g
5962    s%@TCL_INCLUDE@%$TCL_INCLUDE%g
5963    s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
5964    s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
5965    s%@TK_XLIBSW@%$TK_XLIBSW%g
5966    s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
5967    s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
5968    s%@TCL_LIBS@%$TCL_LIBS%g
5969    s%@NOTIFY@%$NOTIFY%g
5970    s%@BROKEN_O4_OPT@%$BROKEN_O4_OPT%g
5971    s%@FINAL_CFLAGS@%$FINAL_CFLAGS%g
5972    s%@O3FLAGS@%$O3FLAGS%g
5973    s%@O2FLAGS@%$O2FLAGS%g
5974    s%@EXTRA_LOBJS@%$EXTRA_LOBJS%g
5975    s%@use@%$use%g
5976    
 # 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,@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,@NOTIFY@,$NOTIFY,;t t  
 s,@BROKEN_O4_OPT@,$BROKEN_O4_OPT,;t t  
 s,@FINAL_CFLAGS@,$FINAL_CFLAGS,;t t  
 s,@O3FLAGS@,$O3FLAGS,;t t  
 s,@O2FLAGS@,$O2FLAGS,;t t  
 s,@EXTRA_LOBJS@,$EXTRA_LOBJS,;t t  
 s,@use@,$use,;t t  
 s,@LIBOBJS@,$LIBOBJS,;t t  
 s,@LTLIBOBJS@,$LTLIBOBJS,;t t  
5977  CEOF  CEOF
5978    EOF
5979    
5980  _ACEOF  cat >> $CONFIG_STATUS <<\EOF
5981    
5982    cat >>$CONFIG_STATUS <<\_ACEOF  # Split the substitutions into bite-sized pieces for seds with
5983    # Split the substitutions into bite-sized pieces for seds with  # small command number limits, like on Digital OSF/1 and HP-UX.
5984    # 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.
5985    ac_max_sed_lines=48  ac_file=1 # Number of current file.
5986    ac_sed_frag=1 # Number of current file.  ac_beg=1 # First line for current file.
5987    ac_beg=1 # First line for current file.  ac_end=$ac_max_sed_cmds # Line after last line for current file.
5988    ac_end=$ac_max_sed_lines # Line after last line for current file.  ac_more_lines=:
5989    ac_more_lines=:  ac_sed_cmds=""
5990    ac_sed_cmds=  while $ac_more_lines; do
5991    while $ac_more_lines; do    if test $ac_beg -gt 1; then
5992      if test $ac_beg -gt 1; then      sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5993        sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag    else
5994      else      sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5995        sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag    fi
5996      fi    if test ! -s conftest.s$ac_file; then
5997      if test ! -s $tmp/subs.frag; then      ac_more_lines=false
5998        ac_more_lines=false      rm -f conftest.s$ac_file
5999      else
6000        if test -z "$ac_sed_cmds"; then
6001          ac_sed_cmds="sed -f conftest.s$ac_file"
6002      else      else
6003        # 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`  
6004      fi      fi
6005    done      ac_file=`expr $ac_file + 1`
6006    if test -z "$ac_sed_cmds"; then      ac_beg=$ac_end
6007      ac_sed_cmds=cat      ac_end=`expr $ac_end + $ac_max_sed_cmds`
6008    fi    fi
6009  fi # test -n "$CONFIG_FILES"  done
6010    if test -z "$ac_sed_cmds"; then
6011      ac_sed_cmds=cat
6012    fi
6013    EOF
6014    
6015  _ACEOF  cat >> $CONFIG_STATUS <<EOF
6016  cat >>$CONFIG_STATUS <<\_ACEOF  
6017  for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue  CONFIG_FILES=\${CONFIG_FILES-"makedefc windows/gcl.iss windows/gcl.ansi.iss windows/install.ansi.lsp windows/install.lsp "}
6018    EOF
6019    cat >> $CONFIG_STATUS <<\EOF
6020    for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6021    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6022    case $ac_file in    case "$ac_file" in
6023    - | *:- | *:-:* ) # input from stdin    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6024          cat >$tmp/stdin         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6025          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 ;;  
6026    esac    esac
6027    
6028    # 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  
 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be  
 # absolute.  
 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`  
 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`  
 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`  
 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`  
6029    
6030      # Remove last slash and all that follows it.  Not all systems have dirname.
6031      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6032      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6033        # The file is in a subdirectory.
6034        test ! -d "$ac_dir" && mkdir "$ac_dir"
6035        ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6036        # A "../" for each directory in $ac_dir_suffix.
6037        ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6038      else
6039        ac_dir_suffix= ac_dots=
6040      fi
6041    
6042      case "$ac_given_srcdir" in
6043      .)  srcdir=.
6044          if test -z "$ac_dots"; then top_srcdir=.
6045          else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6046      /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6047      *) # Relative path.
6048        srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6049        top_srcdir="$ac_dots$ac_given_srcdir" ;;
6050      esac
6051    
6052    
6053    if test x"$ac_file" != x-; then    echo creating "$ac_file"
6054      { echo "$as_me:$LINENO: creating $ac_file" >&5    rm -f "$ac_file"
6055  echo "$as_me: creating $ac_file" >&6;}    configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6056      rm -f "$ac_file"    case "$ac_file" in
6057    fi    *Makefile*) ac_comsub="1i\\
6058    # Let's still pretend it is `configure' which instantiates (i.e., don't  # $configure_input" ;;
6059    # use $as_me), people would be surprised to read:    *) ac_comsub= ;;
6060    #    /* config.h.  Generated by config.status.  */    esac
   if test x"$ac_file" = x-; then  
     configure_input=  
   else  
     configure_input="$ac_file.  "  
   fi  
   configure_input=$configure_input"Generated from `echo $ac_file_in |  
                                      sed 's,.*/,,'` by configure."  
   
   # 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  
   
 done  
 _ACEOF  
 cat >>$CONFIG_STATUS <<\_ACEOF  
6061    
6062  #    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6063  # CONFIG_HEADER section.    sed -e "$ac_comsub
6064  #  s%@configure_input@%$configure_input%g
6065    s%@srcdir@%$srcdir%g
6066    s%@top_srcdir@%$top_srcdir%g
6067    " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6068    fi; done
6069    rm -f conftest.s*
6070    
6071  # 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
6072  # 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.
6073  #  #
6074  # ac_d sets the value in "#define NAME VALUE" lines.  # ac_d sets the value in "#define NAME VALUE" lines.
6075  ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'  ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6076  ac_dB='[        ].*$,\1#\2'  ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
6077  ac_dC=' '  ac_dC='\3'
6078  ac_dD=',;t'  ac_dD='%g'
6079  # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".  # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6080  ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6081  ac_uB='$,\1#\2define\3'  ac_uB='\([      ]\)%\1#\2define\3'
6082  ac_uC=' '  ac_uC=' '
6083  ac_uD=',;t'  ac_uD='\4%g'
6084    # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6085    ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6086    ac_eB='$%\1#\2define\3'
6087    ac_eC=' '
6088    ac_eD='%g'
6089    
6090  for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue  if test "${CONFIG_HEADERS+set}" != set; then
6091    EOF
6092    cat >> $CONFIG_STATUS <<EOF
6093      CONFIG_HEADERS="h/gclincl.h"
6094    EOF
6095    cat >> $CONFIG_STATUS <<\EOF
6096    fi
6097    for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6098    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6099    case $ac_file in    case "$ac_file" in
6100    - | *:- | *:-:* ) # input from stdin    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6101          cat >$tmp/stdin         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6102          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 ;;  
6103    esac    esac
6104    
6105    test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5    echo creating $ac_file
 echo "$as_me: creating $ac_file" >&6;}  
6106    
6107    # First look for the input files in the build tree, otherwise in the    rm -f conftest.frag conftest.in conftest.out
6108    # src tree.    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6109    ac_file_inputs=`IFS=:    cat $ac_file_inputs > conftest.in
6110      for f in $ac_file_in; do  
6111        case $f in  EOF
6112        -) echo $tmp/stdin ;;  
6113        [\\/$]*)  # Transform confdefs.h into a sed script conftest.vals that substitutes
6114           # Absolute (can't be DOS-style, as IFS=:)  # the proper values into config.h.in to produce config.h.  And first:
6115           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.
6116  echo "$as_me: error: cannot find input file: $f" >&2;}  # Protect against being in an unquoted here document in config.status.
6117     { (exit 1); exit 1; }; }  rm -f conftest.vals
6118           echo $f;;  cat > conftest.hdr <<\EOF
6119        *) # Relative  s/[\\&%]/\\&/g
6120           if test -f "$f"; then  s%[\\$`]%\\&%g
6121             # Build tree  s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6122             echo $f  s%ac_d%ac_u%gp
6123           elif test -f "$srcdir/$f"; then  s%ac_u%ac_e%gp
6124             # Source tree  EOF
6125             echo $srcdir/$f  sed -n -f conftest.hdr confdefs.h > conftest.vals
6126           else  rm -f conftest.hdr
            # /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  
6127    
6128  # This sed command replaces #undef with comments.  This is necessary, for  # This sed command replaces #undef with comments.  This is necessary, for
6129  # example, in the case of _POSIX_SOURCE, which is predefined and required  # example, in the case of _POSIX_SOURCE, which is predefined and required
6130  # on some systems where configure will not decide to define it.  # on some systems where configure will not decide to define it.
6131  cat >>conftest.undefs <<\_ACEOF  cat >> conftest.vals <<\EOF
6132  s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,  s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6133  _ACEOF  EOF
6134    
6135  # Break up conftest.defines because some shells have a limit on the size  # Break up conftest.vals because some shells have a limit on
6136  # of here documents, and old seds have small limits too (100 cmds).  # the size of here documents, and old seds have small limits too.
6137  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  
6138  rm -f conftest.tail  rm -f conftest.tail
6139  while grep . conftest.undefs >/dev/null  while :
6140  do  do
6141    # Write a limited-size here document to $tmp/undefs.sed.    ac_lines=`grep -c . conftest.vals`
6142    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS    # grep -c gives empty output for an empty file on some AIX systems.
6143    # Speed up: don't consider the non `#undef'    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6144    echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS    # Write a limited-size here document to conftest.frag.
6145    # Work around the forget-to-reset-the-flag bug.    echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6146    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  
6147    echo 'CEOF    echo 'CEOF
6148    sed -f $tmp/undefs.sed $tmp/in >$tmp/out    sed -f conftest.frag conftest.in > conftest.out
6149    rm -f $tmp/in    rm -f conftest.in
6150    mv $tmp/out $tmp/in    mv conftest.out conftest.in
6151  ' >>$CONFIG_STATUS  ' >> $CONFIG_STATUS
6152    sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail    sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6153    rm -f conftest.undefs    rm -f conftest.vals
6154    mv conftest.tail conftest.undefs    mv conftest.tail conftest.vals
6155  done  done
6156  rm -f conftest.undefs  rm -f conftest.vals
6157    
6158  cat >>$CONFIG_STATUS <<\_ACEOF  cat >> $CONFIG_STATUS <<\EOF
6159    # Let's still pretend it is `configure' which instantiates (i.e., don't    rm -f conftest.frag conftest.h
6160    # use $as_me), people would be surprised to read:    echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
6161    #    /* config.h.  Generated by config.status.  */    cat conftest.in >> conftest.h
6162    if test x"$ac_file" = x-; then    rm -f conftest.in
6163      echo "/* Generated by configure.  */" >$tmp/config.h    if cmp -s $ac_file conftest.h 2>/dev/null; then
6164    else      echo "$ac_file is unchanged"
6165      echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h      rm -f conftest.h
6166    fi    else
6167    cat $tmp/in >>$tmp/config.h      # Remove last slash and all that follows it.  Not all systems have dirname.
6168    rm -f $tmp/in        ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6169    if test x"$ac_file" != x-; then        if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6170      if diff $ac_file $tmp/config.h >/dev/null 2>&1; then        # The file is in a subdirectory.
6171        { 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  
6172      fi      fi
6173    else      rm -f $ac_file
6174      cat $tmp/config.h      mv conftest.h $ac_file
     rm -f $tmp/config.h  
6175    fi    fi
6176  done  fi; done
 _ACEOF  
6177    
6178  cat >>$CONFIG_STATUS <<\_ACEOF  EOF
6179    cat >> $CONFIG_STATUS <<EOF
 { (exit 0); exit 0; }  
 _ACEOF  
 chmod +x $CONFIG_STATUS  
 ac_clean_files=$ac_clean_files_save  
6180    
6181    EOF
6182    cat >> $CONFIG_STATUS <<\EOF
6183    
6184  # configure is writing to config.log, and then calls config.status.  exit 0
6185  # config.status does its own redirection, appending to config.log.  EOF
6186  # Unfortunately, on DOS this fails, as config.log is still kept open  chmod +x $CONFIG_STATUS
6187  # by configure, so config.status won't be able to write to it; its  rm -fr confdefs* $ac_clean_files
6188  # 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  
6189    
6190    echo makedefc    echo makedefc
6191    cat makedefc    cat makedefc

Legend:
Removed from v.1.107.4.1.2.2.2.1  
changed lines
  Added in v.1.107.4.1.2.2.2.2

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