/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

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

revision 1.101 by camm, Mon Feb 17 16:50:20 2003 UTC revision 1.102 by mjthomas, Wed Feb 19 03:29:07 2003 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
   
2  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
3  # Generated automatically using autoconf version 2.13  # Generated by GNU Autoconf 2.53.
 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.  
4  #  #
5    # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6    # Free Software Foundation, Inc.
7  # This configure script is free software; the Free Software Foundation  # This configure script is free software; the Free Software Foundation
8  # gives unlimited permission to copy, distribute and modify it.  # gives unlimited permission to copy, distribute and modify it.
9    
10  # Defaults:  if expr a : '\(a\)' >/dev/null 2>&1; then
11  ac_help=    as_expr=expr
12    else
13      as_expr=false
14    fi
15    
16    
17    ## --------------------- ##
18    ## M4sh Initialization.  ##
19    ## --------------------- ##
20    
21    # Be Bourne compatible
22    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23      emulate sh
24      NULLCMD=:
25    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26      set -o posix
27    fi
28    
29    # NLS nuisances.
30    # Support unset when possible.
31    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32      as_unset=unset
33    else
34      as_unset=false
35    fi
36    
37    (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38        { $as_unset LANG || test "${LANG+set}" != set; } ||
39          { LANG=C; export LANG; }
40    (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41        { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42          { LC_ALL=C; export LC_ALL; }
43    (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44        { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45          { LC_TIME=C; export LC_TIME; }
46    (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47        { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48          { LC_CTYPE=C; export LC_CTYPE; }
49    (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50        { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51          { LANGUAGE=C; export LANGUAGE; }
52    (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53        { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54          { LC_COLLATE=C; export LC_COLLATE; }
55    (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56        { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57          { LC_NUMERIC=C; export LC_NUMERIC; }
58    (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59        { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60          { LC_MESSAGES=C; export LC_MESSAGES; }
61    
62    
63    # Name of the executable.
64    as_me=`(basename "$0") 2>/dev/null ||
65    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66             X"$0" : 'X\(//\)$' \| \
67             X"$0" : 'X\(/\)$' \| \
68             .     : '\(.\)' 2>/dev/null ||
69    echo X/"$0" |
70        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71              /^X\/\(\/\/\)$/{ s//\1/; q; }
72              /^X\/\(\/\).*/{ s//\1/; q; }
73              s/.*/./; q'`
74    
75    # PATH needs CR, and LINENO needs CR and PATH.
76    # Avoid depending upon Character Ranges.
77    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80    as_cr_digits='0123456789'
81    as_cr_alnum=$as_cr_Letters$as_cr_digits
82    
83    # The user is always right.
84    if test "${PATH_SEPARATOR+set}" != set; then
85      echo "#! /bin/sh" >conftest.sh
86      echo  "exit 0"   >>conftest.sh
87      chmod +x conftest.sh
88      if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89        PATH_SEPARATOR=';'
90      else
91        PATH_SEPARATOR=:
92      fi
93      rm -f conftest.sh
94    fi
95    
96    
97      as_lineno_1=$LINENO
98      as_lineno_2=$LINENO
99      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100      test "x$as_lineno_1" != "x$as_lineno_2" &&
101      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102      # Find who we are.  Look in the path if we contain no path at all
103      # relative or not.
104      case $0 in
105        *[\\/]* ) as_myself=$0 ;;
106        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107    for as_dir in $PATH
108    do
109      IFS=$as_save_IFS
110      test -z "$as_dir" && as_dir=.
111      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112    done
113    
114           ;;
115      esac
116      # We did not find ourselves, most probably we were run as `sh COMMAND'
117      # in which case we are not to be found in the path.
118      if test "x$as_myself" = x; then
119        as_myself=$0
120      fi
121      if test ! -f "$as_myself"; then
122        { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123       { (exit 1); exit 1; }; }
124      fi
125      case $CONFIG_SHELL in
126      '')
127        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129    do
130      IFS=$as_save_IFS
131      test -z "$as_dir" && as_dir=.
132      for as_base in sh bash ksh sh5; do
133             case $as_dir in
134             /*)
135               if ("$as_dir/$as_base" -c '
136      as_lineno_1=$LINENO
137      as_lineno_2=$LINENO
138      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139      test "x$as_lineno_1" != "x$as_lineno_2" &&
140      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141                 CONFIG_SHELL=$as_dir/$as_base
142                 export CONFIG_SHELL
143                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144               fi;;
145             esac
146           done
147    done
148    ;;
149      esac
150    
151      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152      # uniformly replaced by the line number.  The first 'sed' inserts a
153      # line-number line before each line; the second 'sed' does the real
154      # work.  The second script uses 'N' to pair each line-number line
155      # with the numbered line, and appends trailing '-' during
156      # substitution so that $LINENO is not a special case at line end.
157      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159      sed '=' <$as_myself |
160        sed '
161          N
162          s,$,-,
163          : loop
164          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165          t loop
166          s,-$,,
167          s,^['$as_cr_digits']*\n,,
168        ' >$as_me.lineno &&
169      chmod +x $as_me.lineno ||
170        { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171       { (exit 1); exit 1; }; }
172    
173      # Don't try to exec as it changes $[0], causing all sort of problems
174      # (the dirname of $[0] is not the place where we might find the
175      # original and so on.  Autoconf is especially sensible to this).
176      . ./$as_me.lineno
177      # Exit status is that of the last command.
178      exit
179    }
180    
181    
182    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183      *c*,-n*) ECHO_N= ECHO_C='
184    ' ECHO_T='      ' ;;
185      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187    esac
188    
189    if expr a : '\(a\)' >/dev/null 2>&1; then
190      as_expr=expr
191    else
192      as_expr=false
193    fi
194    
195    rm -f conf$$ conf$$.exe conf$$.file
196    echo >conf$$.file
197    if ln -s conf$$.file conf$$ 2>/dev/null; then
198      # We could just check for DJGPP; but this test a) works b) is more generic
199      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200      if test -f conf$$.exe; then
201        # Don't use ln at all; we don't have any links
202        as_ln_s='cp -p'
203      else
204        as_ln_s='ln -s'
205      fi
206    elif ln conf$$.file conf$$ 2>/dev/null; then
207      as_ln_s=ln
208    else
209      as_ln_s='cp -p'
210    fi
211    rm -f conf$$ conf$$.exe conf$$.file
212    
213    as_executable_p="test -f"
214    
215    # Sed expression to map a string onto a valid CPP name.
216    as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217    
218    # Sed expression to map a string onto a valid variable name.
219    as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220    
221    
222    # IFS
223    # We need space, tab and new line, in precisely that order.
224    as_nl='
225    '
226    IFS="   $as_nl"
227    
228    # CDPATH.
229    $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230    
231    
232    # Name of the host.
233    # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234    # so uname gets run too.
235    ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236    
237    exec 6>&1
238    
239    #
240    # Initializations.
241    #
242  ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
243  # Any additions from configure.in:  cross_compiling=no
244  ac_help="$ac_help  subdirs=
245   --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) "  MFLAGS=
246  ac_help="$ac_help  MAKEFLAGS=
247   --enable-vssize=XXXX will compile in a value stack of size XXX "  SHELL=${CONFIG_SHELL-/bin/sh}
248  ac_help="$ac_help  
249   --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs "  # Maximum number of lines to put in a shell here document.
250  ac_help="$ac_help  # This variable seems obsolete.  It should probably be removed, and
251   --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes) "  # only ac_max_sed_lines should be used.
252  ac_help="$ac_help  : ${ac_max_here_lines=38}
253   --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems "  
254  ac_help="$ac_help  # Identity of this package.
255   --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh  "  PACKAGE_NAME=
256  ac_help="$ac_help  PACKAGE_TARNAME=
257   --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh  "  PACKAGE_VERSION=
258  ac_help="$ac_help  PACKAGE_STRING=
259   --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info  "  PACKAGE_BUGREPORT=
260  ac_help="$ac_help  
261   --enable-emacsdir=XXXX will manually specify the location for elisp files  "  # Factoring default headers for most tests.
262  ac_help="$ac_help  ac_includes_default="\
263   --enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes) "  #include <stdio.h>
264  ac_help="$ac_help  #if HAVE_SYS_TYPES_H
265   --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images  # include <sys/types.h>
266          "  #endif
267  ac_help="$ac_help  #if HAVE_SYS_STAT_H
268   --enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files  # include <sys/stat.h>
269          "  #endif
270  ac_help="$ac_help  #if STDC_HEADERS
271   --enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files  # include <stdlib.h>
272          "  # include <stddef.h>
273  ac_help="$ac_help  #else
274   --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files  # if HAVE_STDLIB_H
275          "  #  include <stdlib.h>
276  ac_help="$ac_help  # endif
277   --enable-custreloc uses custom gcl code if available for loading  and relocationing object files  #endif
278          "  #if HAVE_STRING_H
279  ac_help="$ac_help  # if !STDC_HEADERS && HAVE_MEMORY_H
280   --enable-debug builds gcl with -g in CFLAGS to enable running under gdb  #  include <memory.h>
281          "  # endif
282  ac_help="$ac_help  # include <string.h>
283   --enable-pic builds gcl with -fPIC in CFLAGS  #endif
284          "  #if HAVE_STRINGS_H
285  ac_help="$ac_help  # include <strings.h>
286   --enable-oldgmp will link against gmp2 instead of gmp3  #endif
287          "  #if HAVE_INTTYPES_H
288  ac_help="$ac_help  # include <inttypes.h>
289   --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source  #else
290          "  # if HAVE_STDINT_H
291  ac_help="$ac_help  #  include <stdint.h>
292    --with-x                use the X Window System"  # endif
293  ac_help="$ac_help  #endif
294  --enable-readine    enables command line completion via the readline library "  #if HAVE_UNISTD_H
295  ac_help="$ac_help  # include <unistd.h>
296  --enable-ansi builds a large gcl aiming for ansi compliance,  #endif"
297                      --disable-ansi builds the smaller traditional CLtL1 image"  
298    
299  # Initialize some variables set by options.  # Initialize some variables set by options.
300    ac_init_help=
301    ac_init_version=false
302  # The variables have the same names as the options, with  # The variables have the same names as the options, with
303  # dashes changed to underlines.  # dashes changed to underlines.
304  build=NONE  cache_file=/dev/null
 cache_file=./config.cache  
305  exec_prefix=NONE  exec_prefix=NONE
 host=NONE  
306  no_create=  no_create=
 nonopt=NONE  
307  no_recursion=  no_recursion=
308  prefix=NONE  prefix=NONE
309  program_prefix=NONE  program_prefix=NONE
# Line 83  program_transform_name=s,x,x, Line 312  program_transform_name=s,x,x,
312  silent=  silent=
313  site=  site=
314  srcdir=  srcdir=
 target=NONE  
315  verbose=  verbose=
316  x_includes=NONE  x_includes=NONE
317  x_libraries=NONE  x_libraries=NONE
318    
319    # Installation directory options.
320    # These are left unexpanded so users can "make install exec_prefix=/foo"
321    # and all the variables that are supposed to be based on exec_prefix
322    # by default will actually change.
323    # Use braces instead of parens because sh, perl, etc. also accept them.
324  bindir='${exec_prefix}/bin'  bindir='${exec_prefix}/bin'
325  sbindir='${exec_prefix}/sbin'  sbindir='${exec_prefix}/sbin'
326  libexecdir='${exec_prefix}/libexec'  libexecdir='${exec_prefix}/libexec'
# Line 100  oldincludedir='/usr/include' Line 334  oldincludedir='/usr/include'
334  infodir='${prefix}/info'  infodir='${prefix}/info'
335  mandir='${prefix}/man'  mandir='${prefix}/man'
336    
 # Initialize some other variables.  
 subdirs=  
 MFLAGS= MAKEFLAGS=  
 SHELL=${CONFIG_SHELL-/bin/sh}  
 # Maximum number of lines to put in a shell here document.  
 ac_max_here_lines=12  
   
337  ac_prev=  ac_prev=
338  for ac_option  for ac_option
339  do  do
   
340    # If the previous option needs an argument, assign it.    # If the previous option needs an argument, assign it.
341    if test -n "$ac_prev"; then    if test -n "$ac_prev"; then
342      eval "$ac_prev=\$ac_option"      eval "$ac_prev=\$ac_option"
# Line 118  do Line 344  do
344      continue      continue
345    fi    fi
346    
347    case "$ac_option" in    ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;  
   *) ac_optarg= ;;  
   esac  
348    
349    # Accept the important Cygnus configure options, so we can diagnose typos.    # Accept the important Cygnus configure options, so we can diagnose typos.
350    
351    case "$ac_option" in    case $ac_option in
352    
353    -bindir | --bindir | --bindi | --bind | --bin | --bi)    -bindir | --bindir | --bindi | --bind | --bin | --bi)
354      ac_prev=bindir ;;      ac_prev=bindir ;;
355    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
356      bindir="$ac_optarg" ;;      bindir=$ac_optarg ;;
357    
358    -build | --build | --buil | --bui | --bu)    -build | --build | --buil | --bui | --bu)
359      ac_prev=build ;;      ac_prev=build_alias ;;
360    -build=* | --build=* | --buil=* | --bui=* | --bu=*)    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
361      build="$ac_optarg" ;;      build_alias=$ac_optarg ;;
362    
363    -cache-file | --cache-file | --cache-fil | --cache-fi \    -cache-file | --cache-file | --cache-fil | --cache-fi \
364    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
365      ac_prev=cache_file ;;      ac_prev=cache_file ;;
366    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
367    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
368      cache_file="$ac_optarg" ;;      cache_file=$ac_optarg ;;
369    
370      --config-cache | -C)
371        cache_file=config.cache ;;
372    
373    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
374      ac_prev=datadir ;;      ac_prev=datadir ;;
375    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
376    | --da=*)    | --da=*)
377      datadir="$ac_optarg" ;;      datadir=$ac_optarg ;;
378    
379    -disable-* | --disable-*)    -disable-* | --disable-*)
380      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
381      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
382      if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
383        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
384      fi     { (exit 1); exit 1; }; }
385      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
386      eval "enable_${ac_feature}=no" ;;      eval "enable_$ac_feature=no" ;;
387    
388    -enable-* | --enable-*)    -enable-* | --enable-*)
389      ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
390      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
391      if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
393      fi     { (exit 1); exit 1; }; }
394      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
395      case "$ac_option" in      case $ac_option in
396        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
397        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
398      esac      esac
399      eval "enable_${ac_feature}='$ac_optarg'" ;;      eval "enable_$ac_feature='$ac_optarg'" ;;
400    
401    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
402    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 179  do Line 405  do
405    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
406    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
407    | --exec=* | --exe=* | --ex=*)    | --exec=* | --exe=* | --ex=*)
408      exec_prefix="$ac_optarg" ;;      exec_prefix=$ac_optarg ;;
409    
410    -gas | --gas | --ga | --g)    -gas | --gas | --ga | --g)
411      # Obsolete; use --with-gas.      # Obsolete; use --with-gas.
412      with_gas=yes ;;      with_gas=yes ;;
413    
414    -help | --help | --hel | --he)    -help | --help | --hel | --he | -h)
415      # Omit some internal or obsolete options to make the list less imposing.      ac_init_help=long ;;
416      # This message is too long to be a string in the A/UX 3.1 sh.    -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
417      cat << EOF      ac_init_help=recursive ;;
418  Usage: configure [options] [host]    -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
419  Options: [defaults in brackets after descriptions]      ac_init_help=short ;;
 Configuration:  
   --cache-file=FILE       cache test results in FILE  
   --help                  print this message  
   --no-create             do not create output files  
   --quiet, --silent       do not print \`checking...' messages  
   --version               print the version of autoconf that created configure  
 Directory and file names:  
   --prefix=PREFIX         install architecture-independent files in PREFIX  
                           [$ac_default_prefix]  
   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX  
                           [same as prefix]  
   --bindir=DIR            user executables in DIR [EPREFIX/bin]  
   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]  
   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]  
   --datadir=DIR           read-only architecture-independent data in DIR  
                           [PREFIX/share]  
   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]  
   --sharedstatedir=DIR    modifiable architecture-independent data in DIR  
                           [PREFIX/com]  
   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]  
   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]  
   --includedir=DIR        C header files in DIR [PREFIX/include]  
   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]  
   --infodir=DIR           info documentation in DIR [PREFIX/info]  
   --mandir=DIR            man documentation in DIR [PREFIX/man]  
   --srcdir=DIR            find the sources in DIR [configure dir or ..]  
   --program-prefix=PREFIX prepend PREFIX to installed program names  
   --program-suffix=SUFFIX append SUFFIX to installed program names  
   --program-transform-name=PROGRAM  
                           run sed PROGRAM on installed program names  
 EOF  
     cat << EOF  
 Host type:  
   --build=BUILD           configure for building on BUILD [BUILD=HOST]  
   --host=HOST             configure for HOST [guessed]  
   --target=TARGET         configure for TARGET [TARGET=HOST]  
 Features and packages:  
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)  
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]  
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]  
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)  
   --x-includes=DIR        X include files are in DIR  
   --x-libraries=DIR       X library files are in DIR  
 EOF  
     if test -n "$ac_help"; then  
       echo "--enable and --with options recognized:$ac_help"  
     fi  
     exit 0 ;;  
420    
421    -host | --host | --hos | --ho)    -host | --host | --hos | --ho)
422      ac_prev=host ;;      ac_prev=host_alias ;;
423    -host=* | --host=* | --hos=* | --ho=*)    -host=* | --host=* | --hos=* | --ho=*)
424      host="$ac_optarg" ;;      host_alias=$ac_optarg ;;
425    
426    -includedir | --includedir | --includedi | --included | --include \    -includedir | --includedir | --includedi | --included | --include \
427    | --includ | --inclu | --incl | --inc)    | --includ | --inclu | --incl | --inc)
428      ac_prev=includedir ;;      ac_prev=includedir ;;
429    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
430    | --includ=* | --inclu=* | --incl=* | --inc=*)    | --includ=* | --inclu=* | --incl=* | --inc=*)
431      includedir="$ac_optarg" ;;      includedir=$ac_optarg ;;
432    
433    -infodir | --infodir | --infodi | --infod | --info | --inf)    -infodir | --infodir | --infodi | --infod | --info | --inf)
434      ac_prev=infodir ;;      ac_prev=infodir ;;
435    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
436      infodir="$ac_optarg" ;;      infodir=$ac_optarg ;;
437    
438    -libdir | --libdir | --libdi | --libd)    -libdir | --libdir | --libdi | --libd)
439      ac_prev=libdir ;;      ac_prev=libdir ;;
440    -libdir=* | --libdir=* | --libdi=* | --libd=*)    -libdir=* | --libdir=* | --libdi=* | --libd=*)
441      libdir="$ac_optarg" ;;      libdir=$ac_optarg ;;
442    
443    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
444    | --libexe | --libex | --libe)    | --libexe | --libex | --libe)
445      ac_prev=libexecdir ;;      ac_prev=libexecdir ;;
446    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
447    | --libexe=* | --libex=* | --libe=*)    | --libexe=* | --libex=* | --libe=*)
448      libexecdir="$ac_optarg" ;;      libexecdir=$ac_optarg ;;
449    
450    -localstatedir | --localstatedir | --localstatedi | --localstated \    -localstatedir | --localstatedir | --localstatedi | --localstated \
451    | --localstate | --localstat | --localsta | --localst \    | --localstate | --localstat | --localsta | --localst \
# Line 276  EOF Line 454  EOF
454    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
455    | --localstate=* | --localstat=* | --localsta=* | --localst=* \    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
456    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
457      localstatedir="$ac_optarg" ;;      localstatedir=$ac_optarg ;;
458    
459    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
460      ac_prev=mandir ;;      ac_prev=mandir ;;
461    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
462      mandir="$ac_optarg" ;;      mandir=$ac_optarg ;;
463    
464    -nfp | --nfp | --nf)    -nfp | --nfp | --nf)
465      # Obsolete; use --without-fp.      # Obsolete; use --without-fp.
466      with_fp=no ;;      with_fp=no ;;
467    
468    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
469    | --no-cr | --no-c)    | --no-cr | --no-c | -n)
470      no_create=yes ;;      no_create=yes ;;
471    
472    -no-recursion | --no-recursion | --no-recursio | --no-recursi \    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 302  EOF Line 480  EOF
480    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
481    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
482    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
483      oldincludedir="$ac_optarg" ;;      oldincludedir=$ac_optarg ;;
484    
485    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
486      ac_prev=prefix ;;      ac_prev=prefix ;;
487    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
488      prefix="$ac_optarg" ;;      prefix=$ac_optarg ;;
489    
490    -program-prefix | --program-prefix | --program-prefi | --program-pref \    -program-prefix | --program-prefix | --program-prefi | --program-pref \
491    | --program-pre | --program-pr | --program-p)    | --program-pre | --program-pr | --program-p)
492      ac_prev=program_prefix ;;      ac_prev=program_prefix ;;
493    -program-prefix=* | --program-prefix=* | --program-prefi=* \    -program-prefix=* | --program-prefix=* | --program-prefi=* \
494    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
495      program_prefix="$ac_optarg" ;;      program_prefix=$ac_optarg ;;
496    
497    -program-suffix | --program-suffix | --program-suffi | --program-suff \    -program-suffix | --program-suffix | --program-suffi | --program-suff \
498    | --program-suf | --program-su | --program-s)    | --program-suf | --program-su | --program-s)
499      ac_prev=program_suffix ;;      ac_prev=program_suffix ;;
500    -program-suffix=* | --program-suffix=* | --program-suffi=* \    -program-suffix=* | --program-suffix=* | --program-suffi=* \
501    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
502      program_suffix="$ac_optarg" ;;      program_suffix=$ac_optarg ;;
503    
504    -program-transform-name | --program-transform-name \    -program-transform-name | --program-transform-name \
505    | --program-transform-nam | --program-transform-na \    | --program-transform-nam | --program-transform-na \
# Line 338  EOF Line 516  EOF
516    | --program-transfo=* | --program-transf=* \    | --program-transfo=* | --program-transf=* \
517    | --program-trans=* | --program-tran=* \    | --program-trans=* | --program-tran=* \
518    | --progr-tra=* | --program-tr=* | --program-t=*)    | --progr-tra=* | --program-tr=* | --program-t=*)
519      program_transform_name="$ac_optarg" ;;      program_transform_name=$ac_optarg ;;
520    
521    -q | -quiet | --quiet | --quie | --qui | --qu | --q \    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
522    | -silent | --silent | --silen | --sile | --sil)    | -silent | --silent | --silen | --sile | --sil)
# Line 348  EOF Line 526  EOF
526      ac_prev=sbindir ;;      ac_prev=sbindir ;;
527    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
528    | --sbi=* | --sb=*)    | --sbi=* | --sb=*)
529      sbindir="$ac_optarg" ;;      sbindir=$ac_optarg ;;
530    
531    -sharedstatedir | --sharedstatedir | --sharedstatedi \    -sharedstatedir | --sharedstatedir | --sharedstatedi \
532    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
# Line 359  EOF Line 537  EOF
537    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
538    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
539    | --sha=* | --sh=*)    | --sha=* | --sh=*)
540      sharedstatedir="$ac_optarg" ;;      sharedstatedir=$ac_optarg ;;
541    
542    -site | --site | --sit)    -site | --site | --sit)
543      ac_prev=site ;;      ac_prev=site ;;
544    -site=* | --site=* | --sit=*)    -site=* | --site=* | --sit=*)
545      site="$ac_optarg" ;;      site=$ac_optarg ;;
546    
547    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
548      ac_prev=srcdir ;;      ac_prev=srcdir ;;
549    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
550      srcdir="$ac_optarg" ;;      srcdir=$ac_optarg ;;
551    
552    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
553    | --syscon | --sysco | --sysc | --sys | --sy)    | --syscon | --sysco | --sysc | --sys | --sy)
554      ac_prev=sysconfdir ;;      ac_prev=sysconfdir ;;
555    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
556    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
557      sysconfdir="$ac_optarg" ;;      sysconfdir=$ac_optarg ;;
558    
559    -target | --target | --targe | --targ | --tar | --ta | --t)    -target | --target | --targe | --targ | --tar | --ta | --t)
560      ac_prev=target ;;      ac_prev=target_alias ;;
561    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
562      target="$ac_optarg" ;;      target_alias=$ac_optarg ;;
563    
564    -v | -verbose | --verbose | --verbos | --verbo | --verb)    -v | -verbose | --verbose | --verbos | --verbo | --verb)
565      verbose=yes ;;      verbose=yes ;;
566    
567    -version | --version | --versio | --versi | --vers)    -version | --version | --versio | --versi | --vers | -V)
568      echo "configure generated by autoconf version 2.13"      ac_init_version=: ;;
     exit 0 ;;  
569    
570    -with-* | --with-*)    -with-* | --with-*)
571      ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
572      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
573      if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
575      fi     { (exit 1); exit 1; }; }
576      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
577      case "$ac_option" in      case $ac_option in
578        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
580      esac      esac
581      eval "with_${ac_package}='$ac_optarg'" ;;      eval "with_$ac_package='$ac_optarg'" ;;
582    
583    -without-* | --without-*)    -without-* | --without-*)
584      ac_package=`echo $ac_option|sed -e 's/-*without-//'`      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
585      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
586      if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
588      fi     { (exit 1); exit 1; }; }
589      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package | sed 's/-/_/g'`
590      eval "with_${ac_package}=no" ;;      eval "with_$ac_package=no" ;;
591    
592    --x)    --x)
593      # Obsolete; use --with-x.      # Obsolete; use --with-x.
# Line 421  EOF Line 598  EOF
598      ac_prev=x_includes ;;      ac_prev=x_includes ;;
599    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
600    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
601      x_includes="$ac_optarg" ;;      x_includes=$ac_optarg ;;
602    
603    -x-libraries | --x-libraries | --x-librarie | --x-librari \    -x-libraries | --x-libraries | --x-librarie | --x-librari \
604    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
605      ac_prev=x_libraries ;;      ac_prev=x_libraries ;;
606    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
607    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
608      x_libraries="$ac_optarg" ;;      x_libraries=$ac_optarg ;;
609    
610    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }    -*) { echo "$as_me: error: unrecognized option: $ac_option
611    Try \`$0 --help' for more information." >&2
612       { (exit 1); exit 1; }; }
613      ;;      ;;
614    
615      *=*)
616        ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
617        # Reject names that are not valid shell variable names.
618        expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
619          { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
620       { (exit 1); exit 1; }; }
621        ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
622        eval "$ac_envvar='$ac_optarg'"
623        export $ac_envvar ;;
624    
625    *)    *)
626      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then      # FIXME: should be removed in autoconf 3.0.
627        echo "configure: warning: $ac_option: invalid host type" 1>&2      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
628      fi      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
629      if test "x$nonopt" != xNONE; then        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
630        { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     fi  
     nonopt="$ac_option"  
631      ;;      ;;
632    
633    esac    esac
634  done  done
635    
636  if test -n "$ac_prev"; then  if test -n "$ac_prev"; then
637    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
638      { echo "$as_me: error: missing argument to $ac_option" >&2
639       { (exit 1); exit 1; }; }
640  fi  fi
641    
642  trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  # Be sure to have absolute paths.
643    for ac_var in exec_prefix prefix
644  # File descriptor usage:  do
645  # 0 standard input    eval ac_val=$`echo $ac_var`
646  # 1 file creation    case $ac_val in
647  # 2 errors and warnings      [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
648  # 3 some systems may open it to /dev/tty      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
649  # 4 used on the Kubota Titan     { (exit 1); exit 1; }; };;
650  # 6 checking for... messages and results    esac
651  # 5 compiler messages saved in config.log  done
 if test "$silent" = yes; then  
   exec 6>/dev/null  
 else  
   exec 6>&1  
 fi  
 exec 5>./config.log  
   
 echo "\  
 This file contains any messages produced by compilers while  
 running configure, to aid debugging if configure makes a mistake.  
 " 1>&5  
652    
653  # Strip out --no-create and --no-recursion so they do not pile up.  # Be sure to have absolute paths.
654  # Also quote any args containing shell metacharacters.  for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
655  ac_configure_args=                localstatedir libdir includedir oldincludedir infodir mandir
 for ac_arg  
656  do  do
657    case "$ac_arg" in    eval ac_val=$`echo $ac_var`
658    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    case $ac_val in
659    | --no-cr | --no-c) ;;      [\\/$]* | ?:[\\/]* ) ;;
660    -no-recursion | --no-recursion | --no-recursio | --no-recursi \      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;     { (exit 1); exit 1; }; };;
   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)  
   ac_configure_args="$ac_configure_args '$ac_arg'" ;;  
   *) ac_configure_args="$ac_configure_args $ac_arg" ;;  
662    esac    esac
663  done  done
664    
665  # NLS nuisances.  # There might be people who depend on the old broken behavior: `$host'
666  # Only set these to C if already set.  These must not be set unconditionally  # used to hold the argument of --host etc.
667  # because not all systems understand e.g. LANG=C (notably SCO).  # FIXME: To remove some day.
668  # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!  build=$build_alias
669  # Non-C LC_CTYPE values break the ctype check.  host=$host_alias
670  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi  target=$target_alias
671  if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi  
672  if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi  # FIXME: To remove some day.
673  if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi  if test "x$host_alias" != x; then
674      if test "x$build_alias" = x; then
675        cross_compiling=maybe
676        echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
677        If a cross compiler is detected then cross compile mode will be used." >&2
678      elif test "x$build_alias" != "x$host_alias"; then
679        cross_compiling=yes
680      fi
681    fi
682    
683  # confdefs.h avoids OS command line length limits that DEFS can exceed.  ac_tool_prefix=
684  rm -rf conftest* confdefs.h  test -n "$host_alias" && ac_tool_prefix=$host_alias-
685  # AIX cpp loses on an empty file, so make sure it contains at least a newline.  
686  echo > confdefs.h  test "$silent" = yes && exec 6>/dev/null
687    
 # A filename unique to this package, relative to the directory that  
 # configure is in, which we can look for to find out if srcdir is correct.  
 ac_unique_file=  
688    
689  # Find the source files, if location was not specified.  # Find the source files, if location was not specified.
690  if test -z "$srcdir"; then  if test -z "$srcdir"; then
691    ac_srcdir_defaulted=yes    ac_srcdir_defaulted=yes
692    # Try the directory containing this script, then its parent.    # Try the directory containing this script, then its parent.
693    ac_prog=$0    ac_confdir=`(dirname "$0") 2>/dev/null ||
694    ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`  $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
695    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.           X"$0" : 'X\(//\)[^/]' \| \
696             X"$0" : 'X\(//\)$' \| \
697             X"$0" : 'X\(/\)' \| \
698             .     : '\(.\)' 2>/dev/null ||
699    echo X"$0" |
700        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
701              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
702              /^X\(\/\/\)$/{ s//\1/; q; }
703              /^X\(\/\).*/{ s//\1/; q; }
704              s/.*/./; q'`
705    srcdir=$ac_confdir    srcdir=$ac_confdir
706    if test ! -r $srcdir/$ac_unique_file; then    if test ! -r $srcdir/$ac_unique_file; then
707      srcdir=..      srcdir=..
# Line 523  else Line 711  else
711  fi  fi
712  if test ! -r $srcdir/$ac_unique_file; then  if test ! -r $srcdir/$ac_unique_file; then
713    if test "$ac_srcdir_defaulted" = yes; then    if test "$ac_srcdir_defaulted" = yes; then
714      { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
715       { (exit 1); exit 1; }; }
716    else    else
717      { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
718       { (exit 1); exit 1; }; }
719    fi    fi
720  fi  fi
721  srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`  srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
722    ac_env_build_alias_set=${build_alias+set}
723    ac_env_build_alias_value=$build_alias
724    ac_cv_env_build_alias_set=${build_alias+set}
725    ac_cv_env_build_alias_value=$build_alias
726    ac_env_host_alias_set=${host_alias+set}
727    ac_env_host_alias_value=$host_alias
728    ac_cv_env_host_alias_set=${host_alias+set}
729    ac_cv_env_host_alias_value=$host_alias
730    ac_env_target_alias_set=${target_alias+set}
731    ac_env_target_alias_value=$target_alias
732    ac_cv_env_target_alias_set=${target_alias+set}
733    ac_cv_env_target_alias_value=$target_alias
734    ac_env_CC_set=${CC+set}
735    ac_env_CC_value=$CC
736    ac_cv_env_CC_set=${CC+set}
737    ac_cv_env_CC_value=$CC
738    ac_env_CFLAGS_set=${CFLAGS+set}
739    ac_env_CFLAGS_value=$CFLAGS
740    ac_cv_env_CFLAGS_set=${CFLAGS+set}
741    ac_cv_env_CFLAGS_value=$CFLAGS
742    ac_env_LDFLAGS_set=${LDFLAGS+set}
743    ac_env_LDFLAGS_value=$LDFLAGS
744    ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
745    ac_cv_env_LDFLAGS_value=$LDFLAGS
746    ac_env_CPPFLAGS_set=${CPPFLAGS+set}
747    ac_env_CPPFLAGS_value=$CPPFLAGS
748    ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
749    ac_cv_env_CPPFLAGS_value=$CPPFLAGS
750    ac_env_CPP_set=${CPP+set}
751    ac_env_CPP_value=$CPP
752    ac_cv_env_CPP_set=${CPP+set}
753    ac_cv_env_CPP_value=$CPP
754    
755    #
756    # Report the --help message.
757    #
758    if test "$ac_init_help" = "long"; then
759      # Omit some internal or obsolete options to make the list less imposing.
760      # This message is too long to be a string in the A/UX 3.1 sh.
761      cat <<_ACEOF
762    \`configure' configures this package to adapt to many kinds of systems.
763    
764    Usage: $0 [OPTION]... [VAR=VALUE]...
765    
766    To assign environment variables (e.g., CC, CFLAGS...), specify them as
767    VAR=VALUE.  See below for descriptions of some of the useful variables.
768    
769    Defaults for the options are specified in brackets.
770    
771    Configuration:
772      -h, --help              display this help and exit
773          --help=short        display options specific to this package
774          --help=recursive    display the short help of all the included packages
775      -V, --version           display version information and exit
776      -q, --quiet, --silent   do not print \`checking...' messages
777          --cache-file=FILE   cache test results in FILE [disabled]
778      -C, --config-cache      alias for \`--cache-file=config.cache'
779      -n, --no-create         do not create output files
780          --srcdir=DIR        find the sources in DIR [configure dir or \`..']
781    
782    _ACEOF
783    
784      cat <<_ACEOF
785    Installation directories:
786      --prefix=PREFIX         install architecture-independent files in PREFIX
787                              [$ac_default_prefix]
788      --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
789                              [PREFIX]
790    
791    By default, \`make install' will install all the files in
792    \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
793    an installation prefix other than \`$ac_default_prefix' using \`--prefix',
794    for instance \`--prefix=\$HOME'.
795    
796    For better control, use the options below.
797    
798    Fine tuning of the installation directories:
799      --bindir=DIR           user executables [EPREFIX/bin]
800      --sbindir=DIR          system admin executables [EPREFIX/sbin]
801      --libexecdir=DIR       program executables [EPREFIX/libexec]
802      --datadir=DIR          read-only architecture-independent data [PREFIX/share]
803      --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
804      --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
805      --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
806      --libdir=DIR           object code libraries [EPREFIX/lib]
807      --includedir=DIR       C header files [PREFIX/include]
808      --oldincludedir=DIR    C header files for non-gcc [/usr/include]
809      --infodir=DIR          info documentation [PREFIX/info]
810      --mandir=DIR           man documentation [PREFIX/man]
811    _ACEOF
812    
813      cat <<\_ACEOF
814    
815    X features:
816      --x-includes=DIR    X include files are in DIR
817      --x-libraries=DIR   X library files are in DIR
818    
819    System types:
820      --build=BUILD     configure for building on BUILD [guessed]
821      --host=HOST       cross-compile to build programs to run on HOST [BUILD]
822    _ACEOF
823    fi
824    
825    if test -n "$ac_init_help"; then
826    
827      cat <<\_ACEOF
828    
829    Optional Features:
830      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
831      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
832     --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)
833     --enable-vssize=XXXX will compile in a value stack of size XXX
834     --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs
835     --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes)
836     --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems
837     --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh
838     --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh
839     --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info
840     --enable-emacsdir=XXXX will manually specify the location for elisp files
841     --enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes)
842     --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images
843    
844     --enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files
845    
846     --enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files
847    
848     --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files
849    
850     --enable-custreloc uses custom gcl code if available for loading  and relocationing object files
851    
852     --enable-debug builds gcl with -g in CFLAGS to enable running under gdb
853    
854     --enable-pic builds gcl with -fPIC in CFLAGS
855    
856     --enable-oldgmp will link against gmp2 instead of gmp3
857    
858     --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source
859    
860    --enable-readine    enables command line completion via the readline library
861    --enable-ansi builds a large gcl aiming for ansi compliance,
862                        --disable-ansi builds the smaller traditional CLtL1 image
863    
864    Optional Packages:
865      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
866      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
867      --with-x                use the X Window System
868    
869    Some influential environment variables:
870      CC          C compiler command
871      CFLAGS      C compiler flags
872      LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
873                  nonstandard directory <lib dir>
874      CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
875                  headers in a nonstandard directory <include dir>
876      CPP         C preprocessor
877    
878    Use these variables to override the choices made by `configure' or to help
879    it to find libraries and programs with nonstandard names/locations.
880    
881    _ACEOF
882    fi
883    
884    if test "$ac_init_help" = "recursive"; then
885      # If there are subdirs, report their specific --help.
886      ac_popdir=`pwd`
887      for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888        test -d $ac_dir || continue
889        ac_builddir=.
890    
891    if test "$ac_dir" != .; then
892      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893      # A "../" for each directory in $ac_dir_suffix.
894      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
895    else
896      ac_dir_suffix= ac_top_builddir=
897    fi
898    
899    case $srcdir in
900      .)  # No --srcdir option.  We are building in place.
901        ac_srcdir=.
902        if test -z "$ac_top_builddir"; then
903           ac_top_srcdir=.
904        else
905           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906        fi ;;
907      [\\/]* | ?:[\\/]* )  # Absolute path.
908        ac_srcdir=$srcdir$ac_dir_suffix;
909        ac_top_srcdir=$srcdir ;;
910      *) # Relative path.
911        ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912        ac_top_srcdir=$ac_top_builddir$srcdir ;;
913    esac
914    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
915    # absolute.
916    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
917    ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
918    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
919    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
920    
921        cd $ac_dir
922        # Check for guested configure; otherwise get Cygnus style configure.
923        if test -f $ac_srcdir/configure.gnu; then
924          echo
925          $SHELL $ac_srcdir/configure.gnu  --help=recursive
926        elif test -f $ac_srcdir/configure; then
927          echo
928          $SHELL $ac_srcdir/configure  --help=recursive
929        elif test -f $ac_srcdir/configure.ac ||
930               test -f $ac_srcdir/configure.in; then
931          echo
932          $ac_configure --help
933        else
934          echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
935        fi
936        cd $ac_popdir
937      done
938    fi
939    
940    test -n "$ac_init_help" && exit 0
941    if $ac_init_version; then
942      cat <<\_ACEOF
943    
944    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
945    Free Software Foundation, Inc.
946    This configure script is free software; the Free Software Foundation
947    gives unlimited permission to copy, distribute and modify it.
948    _ACEOF
949      exit 0
950    fi
951    exec 5>config.log
952    cat >&5 <<_ACEOF
953    This file contains any messages produced by compilers while
954    running configure, to aid debugging if configure makes a mistake.
955    
956    It was created by $as_me, which was
957    generated by GNU Autoconf 2.53.  Invocation command line was
958    
959      $ $0 $@
960    
961    _ACEOF
962    {
963    cat <<_ASUNAME
964    ## --------- ##
965    ## Platform. ##
966    ## --------- ##
967    
968    hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
969    uname -m = `(uname -m) 2>/dev/null || echo unknown`
970    uname -r = `(uname -r) 2>/dev/null || echo unknown`
971    uname -s = `(uname -s) 2>/dev/null || echo unknown`
972    uname -v = `(uname -v) 2>/dev/null || echo unknown`
973    
974    /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
975    /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
976    
977    /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
978    /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
979    /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
980    hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
981    /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
982    /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
983    /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
984    
985    _ASUNAME
986    
987    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
988    for as_dir in $PATH
989    do
990      IFS=$as_save_IFS
991      test -z "$as_dir" && as_dir=.
992      echo "PATH: $as_dir"
993    done
994    
995    } >&5
996    
997    cat >&5 <<_ACEOF
998    
999    
1000    ## ----------- ##
1001    ## Core tests. ##
1002    ## ----------- ##
1003    
1004    _ACEOF
1005    
1006    
1007    # Keep a trace of the command line.
1008    # Strip out --no-create and --no-recursion so they do not pile up.
1009    # Also quote any args containing shell meta-characters.
1010    ac_configure_args=
1011    ac_sep=
1012    for ac_arg
1013    do
1014      case $ac_arg in
1015      -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016      | --no-cr | --no-c | -n ) continue ;;
1017      -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018      | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019        continue ;;
1020      *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1021        ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1022      esac
1023      case " $ac_configure_args " in
1024        *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1025        *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1026           ac_sep=" " ;;
1027      esac
1028      # Get rid of the leading space.
1029    done
1030    
1031    # When interrupted or exit'd, cleanup temporary files, and complete
1032    # config.log.  We remove comments because anyway the quotes in there
1033    # would cause problems or look ugly.
1034    # WARNING: Be sure not to use single quotes in there, as some shells,
1035    # such as our DU 5.0 friend, will then `close' the trap.
1036    trap 'exit_status=$?
1037      # Save into config.log some information that might help in debugging.
1038      {
1039        echo
1040        cat <<\_ASBOX
1041    ## ---------------- ##
1042    ## Cache variables. ##
1043    ## ---------------- ##
1044    _ASBOX
1045        echo
1046        # The following way of writing the cache mishandles newlines in values,
1047    {
1048      (set) 2>&1 |
1049        case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1050        *ac_space=\ *)
1051          sed -n \
1052            "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1053              s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1054          ;;
1055        *)
1056          sed -n \
1057            "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1058          ;;
1059        esac;
1060    }
1061        echo
1062        if test -s confdefs.h; then
1063          cat <<\_ASBOX
1064    ## ----------- ##
1065    ## confdefs.h. ##
1066    ## ----------- ##
1067    _ASBOX
1068          echo
1069          sed "/^$/d" confdefs.h
1070          echo
1071        fi
1072        test "$ac_signal" != 0 &&
1073          echo "$as_me: caught signal $ac_signal"
1074        echo "$as_me: exit $exit_status"
1075      } >&5
1076      rm -f core core.* *.core &&
1077      rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1078        exit $exit_status
1079         ' 0
1080    for ac_signal in 1 2 13 15; do
1081      trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1082    done
1083    ac_signal=0
1084    
1085    # confdefs.h avoids OS command line length limits that DEFS can exceed.
1086    rm -rf conftest* confdefs.h
1087    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1088    echo >confdefs.h
1089    
1090    # Predefined preprocessor variables.
1091    
1092    cat >>confdefs.h <<_ACEOF
1093    #define PACKAGE_NAME "$PACKAGE_NAME"
1094    _ACEOF
1095    
1096    
1097    cat >>confdefs.h <<_ACEOF
1098    #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1099    _ACEOF
1100    
1101    
1102    cat >>confdefs.h <<_ACEOF
1103    #define PACKAGE_VERSION "$PACKAGE_VERSION"
1104    _ACEOF
1105    
1106    
1107    cat >>confdefs.h <<_ACEOF
1108    #define PACKAGE_STRING "$PACKAGE_STRING"
1109    _ACEOF
1110    
1111    
1112    cat >>confdefs.h <<_ACEOF
1113    #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1114    _ACEOF
1115    
1116    
1117    # Let the site file select an alternate cache file if it wants to.
1118  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
1119  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
1120    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 540  if test -z "$CONFIG_SITE"; then Line 1125  if test -z "$CONFIG_SITE"; then
1125  fi  fi
1126  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
1127    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
1128      echo "loading site script $ac_site_file"      { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1129    echo "$as_me: loading site script $ac_site_file" >&6;}
1130        sed 's/^/| /' "$ac_site_file" >&5
1131      . "$ac_site_file"      . "$ac_site_file"
1132    fi    fi
1133  done  done
1134    
1135  if test -r "$cache_file"; then  if test -r "$cache_file"; then
1136    echo "loading cache $cache_file"    # Some versions of bash will fail to source /dev/null (special
1137    . $cache_file    # files actually), so we avoid doing that.
1138      if test -f "$cache_file"; then
1139        { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1140    echo "$as_me: loading cache $cache_file" >&6;}
1141        case $cache_file in
1142          [\\/]* | ?:[\\/]* ) . $cache_file;;
1143          *)                      . ./$cache_file;;
1144        esac
1145      fi
1146  else  else
1147    echo "creating cache $cache_file"    { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1148    > $cache_file  echo "$as_me: creating cache $cache_file" >&6;}
1149      >$cache_file
1150    fi
1151    
1152    # Check that the precious variables saved in the cache have kept the same
1153    # value.
1154    ac_cache_corrupted=false
1155    for ac_var in `(set) 2>&1 |
1156                   sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1157      eval ac_old_set=\$ac_cv_env_${ac_var}_set
1158      eval ac_new_set=\$ac_env_${ac_var}_set
1159      eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1160      eval ac_new_val="\$ac_env_${ac_var}_value"
1161      case $ac_old_set,$ac_new_set in
1162        set,)
1163          { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1164    echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1165          ac_cache_corrupted=: ;;
1166        ,set)
1167          { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1168    echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1169          ac_cache_corrupted=: ;;
1170        ,);;
1171        *)
1172          if test "x$ac_old_val" != "x$ac_new_val"; then
1173            { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1174    echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1175            { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1176    echo "$as_me:   former value:  $ac_old_val" >&2;}
1177            { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1178    echo "$as_me:   current value: $ac_new_val" >&2;}
1179            ac_cache_corrupted=:
1180          fi;;
1181      esac
1182      # Pass precious variables to config.status.
1183      if test "$ac_new_set" = set; then
1184        case $ac_new_val in
1185        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1186          ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1187        *) ac_arg=$ac_var=$ac_new_val ;;
1188        esac
1189        case " $ac_configure_args " in
1190          *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1191          *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1192        esac
1193      fi
1194    done
1195    if $ac_cache_corrupted; then
1196      { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1197    echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1198      { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1199    echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1200       { (exit 1); exit 1; }; }
1201  fi  fi
1202    
1203  ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
1204  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
1205  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1206  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1207  cross_compiling=$ac_cv_prog_cc_cross  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1208    
1209  ac_exeext=  
1210  ac_objext=o  
1211  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  
1212    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  
1213    if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then  
1214      ac_n= ac_c='  
 ' ac_t='        '  
   else  
     ac_n=-n ac_c= ac_t=  
   fi  
 else  
   ac_n= ac_c='\c' ac_t=  
 fi  
1215    
1216    
1217    
1218    
1219    
1220    
1221    
1222    
1223    
1224    
1225    
1226    ac_config_headers="$ac_config_headers h/gclincl.h"
1227    
1228    
1229    VERSION=2.5.0
1230    
1231    
1232  # some parts of this configure script are taken from the tcl configure.in  # some parts of this configure script are taken from the tcl configure.in
1233    
1234  #  #
# Line 586  help="--enable-maxpage=XXXX will compile Line 1239  help="--enable-maxpage=XXXX will compile
1239  # Check whether --enable-maxpage or --disable-maxpage was given.  # Check whether --enable-maxpage or --disable-maxpage was given.
1240  if test "${enable_maxpage+set}" = set; then  if test "${enable_maxpage+set}" = set; then
1241    enableval="$enable_maxpage"    enableval="$enable_maxpage"
1242    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1243  #define MAXPAGE $enable_maxpage  #define MAXPAGE $enable_maxpage
1244  EOF  _ACEOF
   
1245    
 fi  
1246    
1247    fi;
1248    
1249  # Check whether --enable-vssize or --disable-vssize was given.  # Check whether --enable-vssize or --disable-vssize was given.
1250  if test "${enable_vssize+set}" = set; then  if test "${enable_vssize+set}" = set; then
1251    enableval="$enable_vssize"    enableval="$enable_vssize"
1252    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1253  #define VSSIZE $enable_vssize  #define VSSIZE $enable_vssize
1254  EOF  _ACEOF
1255    
1256    
1257  fi  fi;
   
1258    
1259  # Check whether --enable-machine or --disable-machine was given.  # Check whether --enable-machine or --disable-machine was given.
1260  if test "${enable_machine+set}" = set; then  if test "${enable_machine+set}" = set; then
# Line 611  if test "${enable_machine+set}" = set; t Line 1262  if test "${enable_machine+set}" = set; t
1262    enable_machine=$enableval    enable_machine=$enableval
1263  else  else
1264    enable_machine=""    enable_machine=""
1265  fi  fi;
   
1266    
1267  # Check whether --enable-gmp or --disable-gmp was given.  # Check whether --enable-gmp or --disable-gmp was given.
1268  if test "${enable_gmp+set}" = set; then  if test "${enable_gmp+set}" = set; then
# Line 620  if test "${enable_gmp+set}" = set; then Line 1270  if test "${enable_gmp+set}" = set; then
1270    use_gmp=$enableval    use_gmp=$enableval
1271  else  else
1272    use_gmp="yes"    use_gmp="yes"
1273  fi  fi;
   
1274    
1275  # Check whether --enable-notify or --disable-notify was given.  # Check whether --enable-notify or --disable-notify was given.
1276  if test "${enable_notify+set}" = set; then  if test "${enable_notify+set}" = set; then
# Line 629  if test "${enable_notify+set}" = set; th Line 1278  if test "${enable_notify+set}" = set; th
1278    enable_notify=$enableval    enable_notify=$enableval
1279  else  else
1280    enable_notify="yes"    enable_notify="yes"
1281  fi  fi;
   
1282    
1283  # Check whether --enable-tkconfig or --disable-tkconfig was given.  # Check whether --enable-tkconfig or --disable-tkconfig was given.
1284  if test "${enable_tkconfig+set}" = set; then  if test "${enable_tkconfig+set}" = set; then
# Line 638  if test "${enable_tkconfig+set}" = set; Line 1286  if test "${enable_tkconfig+set}" = set;
1286    TK_CONFIG_PREFIX=$enableval    TK_CONFIG_PREFIX=$enableval
1287  else  else
1288    TK_CONFIG_PREFIX="unknown"    TK_CONFIG_PREFIX="unknown"
1289  fi  fi;
   
1290    
1291    
1292  # Check whether --enable-tclconfig or --disable-tclconfig was given.  # Check whether --enable-tclconfig or --disable-tclconfig was given.
# Line 648  if test "${enable_tclconfig+set}" = set; Line 1295  if test "${enable_tclconfig+set}" = set;
1295    TCL_CONFIG_PREFIX=$enableval    TCL_CONFIG_PREFIX=$enableval
1296  else  else
1297    TCL_CONFIG_PREFIX="unknown"    TCL_CONFIG_PREFIX="unknown"
1298  fi  fi;
   
1299    
1300  # Check whether --enable-infodir or --disable-infodir was given.  # Check whether --enable-infodir or --disable-infodir was given.
1301  if test "${enable_infodir+set}" = set; then  if test "${enable_infodir+set}" = set; then
# Line 657  if test "${enable_infodir+set}" = set; t Line 1303  if test "${enable_infodir+set}" = set; t
1303    INFO_DIR=$enableval    INFO_DIR=$enableval
1304  else  else
1305    INFO_DIR="unknown"    INFO_DIR="unknown"
1306  fi  fi;
   
1307    
1308  # Check whether --enable-emacsdir or --disable-emacsdir was given.  # Check whether --enable-emacsdir or --disable-emacsdir was given.
1309  if test "${enable_emacsdir+set}" = set; then  if test "${enable_emacsdir+set}" = set; then
# Line 666  if test "${enable_emacsdir+set}" = set; Line 1311  if test "${enable_emacsdir+set}" = set;
1311    EMACS_SITE_LISP=$enableval    EMACS_SITE_LISP=$enableval
1312  else  else
1313    EMACS_SITE_LISP="unknown"    EMACS_SITE_LISP="unknown"
1314  fi  fi;
   
1315    
1316  # Check whether --enable-common-binary or --disable-common-binary was given.  # Check whether --enable-common-binary or --disable-common-binary was given.
1317  if test "${enable_common_binary+set}" = set; then  if test "${enable_common_binary+set}" = set; then
# Line 675  if test "${enable_common_binary+set}" = Line 1319  if test "${enable_common_binary+set}" =
1319    use_common_binary=$enableval    use_common_binary=$enableval
1320  else  else
1321    use_common_binary="yes"    use_common_binary="yes"
1322  fi  fi;
   
1323    
1324  #  #
1325  # Host information  # Host information
1326  #  #
1327    
1328    
# Line 693  for ac_dir in $srcdir $srcdir/.. $srcdir Line 1336  for ac_dir in $srcdir $srcdir/.. $srcdir
1336      ac_aux_dir=$ac_dir      ac_aux_dir=$ac_dir
1337      ac_install_sh="$ac_aux_dir/install.sh -c"      ac_install_sh="$ac_aux_dir/install.sh -c"
1338      break      break
1339      elif test -f $ac_dir/shtool; then
1340        ac_aux_dir=$ac_dir
1341        ac_install_sh="$ac_aux_dir/shtool install -c"
1342        break
1343    fi    fi
1344  done  done
1345  if test -z "$ac_aux_dir"; then  if test -z "$ac_aux_dir"; then
1346    { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }    { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1347  fi  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1348  ac_config_guess=$ac_aux_dir/config.guess     { (exit 1); exit 1; }; }
1349  ac_config_sub=$ac_aux_dir/config.sub  fi
1350  ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.  ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1351    ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1352    ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353    
1354  # Make sure we can run config.sub.  # Make sure we can run config.sub.
1355  if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :  $ac_config_sub sun4 >/dev/null 2>&1 ||
1356  else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }    { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1357  fi  echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1358       { (exit 1); exit 1; }; }
1359  echo $ac_n "checking host system type""... $ac_c" 1>&6  
1360  echo "configure:713: checking host system type" >&5  echo "$as_me:$LINENO: checking build system type" >&5
1361    echo $ECHO_N "checking build system type... $ECHO_C" >&6
1362  host_alias=$host  if test "${ac_cv_build+set}" = set; then
1363  case "$host_alias" in    echo $ECHO_N "(cached) $ECHO_C" >&6
1364  NONE)  else
1365    case $nonopt in    ac_cv_build_alias=$build_alias
1366    NONE)  test -z "$ac_cv_build_alias" &&
1367      if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :    ac_cv_build_alias=`$ac_config_guess`
1368      else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }  test -z "$ac_cv_build_alias" &&
1369      fi ;;    { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1370    *) host_alias=$nonopt ;;  echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1371    esac ;;     { (exit 1); exit 1; }; }
1372  esac  ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1373      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1374    echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1375       { (exit 1); exit 1; }; }
1376    
1377    fi
1378    echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1379    echo "${ECHO_T}$ac_cv_build" >&6
1380    build=$ac_cv_build
1381    build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1382    build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1383    build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384    
1385    
1386    echo "$as_me:$LINENO: checking host system type" >&5
1387    echo $ECHO_N "checking host system type... $ECHO_C" >&6
1388    if test "${ac_cv_host+set}" = set; then
1389      echo $ECHO_N "(cached) $ECHO_C" >&6
1390    else
1391      ac_cv_host_alias=$host_alias
1392    test -z "$ac_cv_host_alias" &&
1393      ac_cv_host_alias=$ac_cv_build_alias
1394    ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1395      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1396    echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1397       { (exit 1); exit 1; }; }
1398    
1399    fi
1400    echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1401    echo "${ECHO_T}$ac_cv_host" >&6
1402    host=$ac_cv_host
1403    host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404    host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405    host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406    
 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`  
 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  
 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  
 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  
 echo "$ac_t""$host" 1>&6  
1407    
1408  canonical=$host  canonical=$host
1409  ## host=CPU-COMPANY-SYSTEM  ## host=CPU-COMPANY-SYSTEM
1410  echo "$ac_t""host=$host" 1>&6  echo "$as_me:$LINENO: result: host=$host" >&5
1411    echo "${ECHO_T}host=$host" >&6
1412    
1413  PROCESSOR_FLAGS=""  PROCESSOR_FLAGS=""
1414    
# Line 808  case $canonical in Line 1485  case $canonical in
1485             IRIX3*)             IRIX3*)
1486              use=sgi4d;;              use=sgi4d;;
1487         esac ;;         esac ;;
1488    
1489    
1490       m68k-apple-aux*)       m68k-apple-aux*)
1491       use=mac2;;       use=mac2;;
# Line 889  case $canonical in Line 1566  case $canonical in
1566              then use=mingw              then use=mingw
1567            else  use=gnuwin95            else  use=gnuwin95
1568          fi;;          fi;;
1569      
1570  esac  esac
1571    
1572    
# Line 904  def_statsysbfd="yes" Line 1581  def_statsysbfd="yes"
1581  def_custreloc="no"  def_custreloc="no"
1582  def_oldgmp="no"  def_oldgmp="no"
1583  def_pic="no";  def_pic="no";
1584  case $use in  case $use in
1585       *linux)       *linux)
1586          ln -snf linux.defs h/$use.defs;          ln -snf linux.defs h/$use.defs;
1587          case $use in          case $use in
# Line 926  esac Line 1603  esac
1603  # Check whether --enable-dlopen or --disable-dlopen was given.  # Check whether --enable-dlopen or --disable-dlopen was given.
1604  if test "${enable_dlopen+set}" = set; then  if test "${enable_dlopen+set}" = set; then
1605    enableval="$enable_dlopen"    enableval="$enable_dlopen"
1606    :  
1607  else  else
1608    enable_dlopen="$def_dlopen"    enable_dlopen="$def_dlopen"
1609  fi  fi;
   
1610  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.
1611  if test "${enable_statsysbfd+set}" = set; then  if test "${enable_statsysbfd+set}" = set; then
1612    enableval="$enable_statsysbfd"    enableval="$enable_statsysbfd"
1613    :  
1614  else  else
1615    enable_statsysbfd="$def_statsysbfd"    enable_statsysbfd="$def_statsysbfd"
1616  fi  fi;
   
1617  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.
1618  if test "${enable_dynsysbfd+set}" = set; then  if test "${enable_dynsysbfd+set}" = set; then
1619    enableval="$enable_dynsysbfd"    enableval="$enable_dynsysbfd"
1620    :  
1621  else  else
1622    enable_dynsysbfd="no"    enable_dynsysbfd="no"
1623  fi  fi;
   
1624  # Check whether --enable-locbfd or --disable-locbfd was given.  # Check whether --enable-locbfd or --disable-locbfd was given.
1625  if test "${enable_locbfd+set}" = set; then  if test "${enable_locbfd+set}" = set; then
1626    enableval="$enable_locbfd"    enableval="$enable_locbfd"
1627    :  
1628  else  else
1629    enable_locbfd="no"    enable_locbfd="no"
1630  fi  fi;
   
1631  # Check whether --enable-custreloc or --disable-custreloc was given.  # Check whether --enable-custreloc or --disable-custreloc was given.
1632  if test "${enable_custreloc+set}" = set; then  if test "${enable_custreloc+set}" = set; then
1633    enableval="$enable_custreloc"    enableval="$enable_custreloc"
1634    :  
1635  else  else
1636    enable_custreloc="$def_custreloc"    enable_custreloc="$def_custreloc"
1637  fi  fi;
   
1638  # Check whether --enable-debug or --disable-debug was given.  # Check whether --enable-debug or --disable-debug was given.
1639  if test "${enable_debug+set}" = set; then  if test "${enable_debug+set}" = set; then
1640    enableval="$enable_debug"    enableval="$enable_debug"
1641    :  
1642  else  else
1643    enable_debug="no"    enable_debug="no"
1644  fi  fi;
   
1645  # Check whether --enable-pic or --disable-pic was given.  # Check whether --enable-pic or --disable-pic was given.
1646  if test "${enable_pic+set}" = set; then  if test "${enable_pic+set}" = set; then
1647    enableval="$enable_pic"    enableval="$enable_pic"
1648    :  
1649  else  else
1650    enable_pic="$def_pic"    enable_pic="$def_pic"
1651  fi  fi;
   
1652    
1653  # Check whether --enable-oldgmp or --disable-oldgmp was given.  # Check whether --enable-oldgmp or --disable-oldgmp was given.
1654  if test "${enable_oldgmp+set}" = set; then  if test "${enable_oldgmp+set}" = set; then
1655    enableval="$enable_oldgmp"    enableval="$enable_oldgmp"
1656    :  
1657  else  else
1658    enable_oldgmp="$def_oldgmp"    enable_oldgmp="$def_oldgmp"
1659  fi  fi;
   
1660    
1661  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.
1662  if test "${enable_dynsysgmp+set}" = set; then  if test "${enable_dynsysgmp+set}" = set; then
1663    enableval="$enable_dynsysgmp"    enableval="$enable_dynsysgmp"
1664    :  
1665  else  else
1666    enable_dynsysgmp="no"    enable_dynsysgmp="no"
1667  fi  fi;
   
1668    
1669  load_opt="0"  load_opt="0"
1670  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
# Line 1042  fi Line 1710  fi
1710  ##  ##
1711  #if test "$use" = "unknown" ; then  #if test "$use" = "unknown" ; then
1712  #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"`
1713  #echo got canonical=$canonical, but was not recognized.  #echo got canonical=$canonical, but was not recognized.
1714  #echo Unable to guess type to use.  Try one of  #echo Unable to guess type to use.  Try one of
1715  #exit(1)  #exit(1)
1716  #fi  #fi
1717    
1718  echo "$ac_t""use=$use" 1>&6      echo "$as_me:$LINENO: result: use=$use" >&5
1719    echo "${ECHO_T}use=$use" >&6
1720    
1721    
1722  #  #
1723  # System programs  # System programs
1724  #  #
1725    
1726  # Extract the first word of "gcc", so it can be a program name with args.  ac_ext=c
1727    ac_cpp='$CPP $CPPFLAGS'
1728    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1729    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1730    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1731    if test -n "$ac_tool_prefix"; then
1732      # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1733    set dummy ${ac_tool_prefix}gcc; ac_word=$2
1734    echo "$as_me:$LINENO: checking for $ac_word" >&5
1735    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736    if test "${ac_cv_prog_CC+set}" = set; then
1737      echo $ECHO_N "(cached) $ECHO_C" >&6
1738    else
1739      if test -n "$CC"; then
1740      ac_cv_prog_CC="$CC" # Let the user override the test.
1741    else
1742    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743    for as_dir in $PATH
1744    do
1745      IFS=$as_save_IFS
1746      test -z "$as_dir" && as_dir=.
1747      for ac_exec_ext in '' $ac_executable_extensions; do
1748      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749        ac_cv_prog_CC="${ac_tool_prefix}gcc"
1750        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751        break 2
1752      fi
1753    done
1754    done
1755    
1756    fi
1757    fi
1758    CC=$ac_cv_prog_CC
1759    if test -n "$CC"; then
1760      echo "$as_me:$LINENO: result: $CC" >&5
1761    echo "${ECHO_T}$CC" >&6
1762    else
1763      echo "$as_me:$LINENO: result: no" >&5
1764    echo "${ECHO_T}no" >&6
1765    fi
1766    
1767    fi
1768    if test -z "$ac_cv_prog_CC"; then
1769      ac_ct_CC=$CC
1770      # Extract the first word of "gcc", so it can be a program name with args.
1771  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1772  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
1773  echo "configure:1061: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1775    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1776    else
1777      if test -n "$ac_ct_CC"; then
1778      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1779    else
1780    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781    for as_dir in $PATH
1782    do
1783      IFS=$as_save_IFS
1784      test -z "$as_dir" && as_dir=.
1785      for ac_exec_ext in '' $ac_executable_extensions; do
1786      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787        ac_cv_prog_ac_ct_CC="gcc"
1788        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789        break 2
1790      fi
1791    done
1792    done
1793    
1794    fi
1795    fi
1796    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1797    if test -n "$ac_ct_CC"; then
1798      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1799    echo "${ECHO_T}$ac_ct_CC" >&6
1800    else
1801      echo "$as_me:$LINENO: result: no" >&5
1802    echo "${ECHO_T}no" >&6
1803    fi
1804    
1805      CC=$ac_ct_CC
1806    else
1807      CC="$ac_cv_prog_CC"
1808    fi
1809    
1810    if test -z "$CC"; then
1811      if test -n "$ac_tool_prefix"; then
1812      # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1813    set dummy ${ac_tool_prefix}cc; ac_word=$2
1814    echo "$as_me:$LINENO: checking for $ac_word" >&5
1815    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816    if test "${ac_cv_prog_CC+set}" = set; then
1817      echo $ECHO_N "(cached) $ECHO_C" >&6
1818  else  else
1819    if test -n "$CC"; then    if test -n "$CC"; then
1820    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1821  else  else
1822    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823    ac_dummy="$PATH"  for as_dir in $PATH
1824    for ac_dir in $ac_dummy; do  do
1825      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
1826      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
1827        ac_cv_prog_CC="gcc"    for ac_exec_ext in '' $ac_executable_extensions; do
1828        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829      fi      ac_cv_prog_CC="${ac_tool_prefix}cc"
1830    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831    IFS="$ac_save_ifs"      break 2
1832      fi
1833    done
1834    done
1835    
1836  fi  fi
1837  fi  fi
1838  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1839  if test -n "$CC"; then  if test -n "$CC"; then
1840    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1841    echo "${ECHO_T}$CC" >&6
1842    else
1843      echo "$as_me:$LINENO: result: no" >&5
1844    echo "${ECHO_T}no" >&6
1845    fi
1846    
1847    fi
1848    if test -z "$ac_cv_prog_CC"; then
1849      ac_ct_CC=$CC
1850      # Extract the first word of "cc", so it can be a program name with args.
1851    set dummy cc; ac_word=$2
1852    echo "$as_me:$LINENO: checking for $ac_word" >&5
1853    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1855      echo $ECHO_N "(cached) $ECHO_C" >&6
1856    else
1857      if test -n "$ac_ct_CC"; then
1858      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1859    else
1860    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861    for as_dir in $PATH
1862    do
1863      IFS=$as_save_IFS
1864      test -z "$as_dir" && as_dir=.
1865      for ac_exec_ext in '' $ac_executable_extensions; do
1866      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867        ac_cv_prog_ac_ct_CC="cc"
1868        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869        break 2
1870      fi
1871    done
1872    done
1873    
1874    fi
1875    fi
1876    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1877    if test -n "$ac_ct_CC"; then
1878      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1879    echo "${ECHO_T}$ac_ct_CC" >&6
1880  else  else
1881    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
1882    echo "${ECHO_T}no" >&6
1883  fi  fi
1884    
1885      CC=$ac_ct_CC
1886    else
1887      CC="$ac_cv_prog_CC"
1888    fi
1889    
1890    fi
1891  if test -z "$CC"; then  if test -z "$CC"; then
1892    # 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.
1893  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1894  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
1895  echo "configure:1091: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_CC+set}" = set; then
1897    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1898  else  else
1899    if test -n "$CC"; then    if test -n "$CC"; then
1900    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1901  else  else
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
1902    ac_prog_rejected=no    ac_prog_rejected=no
1903    ac_dummy="$PATH"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904    for ac_dir in $ac_dummy; do  for as_dir in $PATH
1905      test -z "$ac_dir" && ac_dir=.  do
1906      if test -f $ac_dir/$ac_word; then    IFS=$as_save_IFS
1907        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then    test -z "$as_dir" && as_dir=.
1908          ac_prog_rejected=yes    for ac_exec_ext in '' $ac_executable_extensions; do
1909          continue    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910        fi      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1911        ac_cv_prog_CC="cc"         ac_prog_rejected=yes
1912        break         continue
1913      fi       fi
1914    done      ac_cv_prog_CC="cc"
1915    IFS="$ac_save_ifs"      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916        break 2
1917      fi
1918    done
1919    done
1920    
1921  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
1922    # 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.
1923    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
1924    shift    shift
1925    if test $# -gt 0; then    if test $# != 0; then
1926      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
1927      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
1928      # 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.
1929      shift      shift
1930      set dummy "$ac_dir/$ac_word" "$@"      set dummy "$as_dir/$ac_word" ${1+"$@"}
1931      shift      shift
1932      ac_cv_prog_CC="$@"      ac_cv_prog_CC="$@"
1933    fi    fi
1934  fi  fi
1935  fi  fi
1936  fi  fi
1937  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1938  if test -n "$CC"; then  if test -n "$CC"; then
1939    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1940    echo "${ECHO_T}$CC" >&6
1941  else  else
1942    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
1943    echo "${ECHO_T}no" >&6
1944  fi  fi
1945    
1946    if test -z "$CC"; then  fi
1947      case "`uname -s`" in  if test -z "$CC"; then
1948      *win32* | *WIN32*)    if test -n "$ac_tool_prefix"; then
1949        # Extract the first word of "cl", so it can be a program name with args.    for ac_prog in cl
1950  set dummy cl; ac_word=$2    do
1951  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1952  echo "configure:1142: checking for $ac_word" >&5  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1953  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo "$as_me:$LINENO: checking for $ac_word" >&5
1954    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955    if test "${ac_cv_prog_CC+set}" = set; then
1956      echo $ECHO_N "(cached) $ECHO_C" >&6
1957  else  else
1958    if test -n "$CC"; then    if test -n "$CC"; then
1959    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1960  else  else
1961    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962    ac_dummy="$PATH"  for as_dir in $PATH
1963    for ac_dir in $ac_dummy; do  do
1964      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
1965      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
1966        ac_cv_prog_CC="cl"    for ac_exec_ext in '' $ac_executable_extensions; do
1967        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968      fi      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1969    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970    IFS="$ac_save_ifs"      break 2
1971      fi
1972    done
1973    done
1974    
1975  fi  fi
1976  fi  fi
1977  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1978  if test -n "$CC"; then  if test -n "$CC"; then
1979    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1980    echo "${ECHO_T}$CC" >&6
1981  else  else
1982    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
1983    echo "${ECHO_T}no" >&6
1984  fi  fi
1985   ;;  
1986      esac      test -n "$CC" && break
1987      done
1988    fi
1989    if test -z "$CC"; then
1990      ac_ct_CC=$CC
1991      for ac_prog in cl
1992    do
1993      # Extract the first word of "$ac_prog", so it can be a program name with args.
1994    set dummy $ac_prog; ac_word=$2
1995    echo "$as_me:$LINENO: checking for $ac_word" >&5
1996    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1998      echo $ECHO_N "(cached) $ECHO_C" >&6
1999    else
2000      if test -n "$ac_ct_CC"; then
2001      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2002    else
2003    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004    for as_dir in $PATH
2005    do
2006      IFS=$as_save_IFS
2007      test -z "$as_dir" && as_dir=.
2008      for ac_exec_ext in '' $ac_executable_extensions; do
2009      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010        ac_cv_prog_ac_ct_CC="$ac_prog"
2011        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012        break 2
2013    fi    fi
2014    test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }  done
2015    done
2016    
2017    fi
2018    fi
2019    ac_ct_CC=$ac_cv_prog_ac_ct_CC
2020    if test -n "$ac_ct_CC"; then
2021      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2022    echo "${ECHO_T}$ac_ct_CC" >&6
2023    else
2024      echo "$as_me:$LINENO: result: no" >&5
2025    echo "${ECHO_T}no" >&6
2026  fi  fi
2027    
2028  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6    test -n "$ac_ct_CC" && break
2029  echo "configure:1174: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  done
2030    
2031  ac_ext=c    CC=$ac_ct_CC
2032  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  fi
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  
 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  
 cross_compiling=$ac_cv_prog_cc_cross  
2033    
2034  cat > conftest.$ac_ext << EOF  fi
2035    
 #line 1185 "configure"  
 #include "confdefs.h"  
2036    
2037  main(){return(0);}  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2038  EOF  echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2039  if { (eval echo configure:1190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then     { (exit 1); exit 1; }; }
2040    ac_cv_prog_cc_works=yes  
2041    # If we can't run a trivial program, we are probably using a cross compiler.  # Provide some information about the compiler.
2042    if (./conftest; exit) 2>/dev/null; then  echo "$as_me:$LINENO:" \
2043      ac_cv_prog_cc_cross=no       "checking for C compiler version" >&5
2044    else  ac_compiler=`set X $ac_compile; echo $2`
2045      ac_cv_prog_cc_cross=yes  { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2046    fi    (eval $ac_compiler --version </dev/null >&5) 2>&5
2047  else    ac_status=$?
2048    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049    cat conftest.$ac_ext >&5    (exit $ac_status); }
2050    ac_cv_prog_cc_works=no  { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2051  fi    (eval $ac_compiler -v </dev/null >&5) 2>&5
2052  rm -fr conftest*    ac_status=$?
2053  ac_ext=c    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.    (exit $ac_status); }
2055  ac_cpp='$CPP $CPPFLAGS'  { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2056  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'    (eval $ac_compiler -V </dev/null >&5) 2>&5
2057  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'    ac_status=$?
2058  cross_compiling=$ac_cv_prog_cc_cross    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059      (exit $ac_status); }
2060  echo "$ac_t""$ac_cv_prog_cc_works" 1>&6  
2061  if test $ac_cv_prog_cc_works = no; then  cat >conftest.$ac_ext <<_ACEOF
2062    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }  #line $LINENO "configure"
2063  fi  #include "confdefs.h"
2064  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  
2065  echo "configure:1216: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  #ifdef F77_DUMMY_MAIN
2066  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  #  ifdef __cplusplus
2067  cross_compiling=$ac_cv_prog_cc_cross       extern "C"
2068    #  endif
2069  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6     int F77_DUMMY_MAIN() { return 1; }
 echo "configure:1221: checking whether we are using GNU C" >&5  
 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   cat > conftest.c <<EOF  
 #ifdef __GNUC__  
   yes;  
2070  #endif  #endif
2071  EOF  int
2072  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  main ()
2073    ac_cv_prog_gcc=yes  {
2074    
2075      ;
2076      return 0;
2077    }
2078    _ACEOF
2079    ac_clean_files_save=$ac_clean_files
2080    ac_clean_files="$ac_clean_files a.out a.exe"
2081    # Try to create an executable without -o first, disregard a.out.
2082    # It will help us diagnose broken compilers, and finding out an intuition
2083    # of exeext.
2084    echo "$as_me:$LINENO: checking for C compiler default output" >&5
2085    echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2086    ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2087    if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2088      (eval $ac_link_default) 2>&5
2089      ac_status=$?
2090      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091      (exit $ac_status); }; then
2092      # Find the output, starting from the most likely.  This scheme is
2093    # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2094    # resort.
2095    
2096    # Be careful to initialize this variable, since it used to be cached.
2097    # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2098    ac_cv_exeext=
2099    for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2100                    ls a.out conftest 2>/dev/null;
2101                    ls a.* conftest.* 2>/dev/null`; do
2102      case $ac_file in
2103        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2104        a.out ) # We found the default executable, but exeext='' is most
2105                # certainly right.
2106                break;;
2107        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2108              # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2109              export ac_cv_exeext
2110              break;;
2111        * ) break;;
2112      esac
2113    done
2114  else  else
2115    ac_cv_prog_gcc=no    echo "$as_me: failed program was:" >&5
2116  fi  cat conftest.$ac_ext >&5
2117    { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2118    echo "$as_me: error: C compiler cannot create executables" >&2;}
2119       { (exit 77); exit 77; }; }
2120    fi
2121    
2122    ac_exeext=$ac_cv_exeext
2123    echo "$as_me:$LINENO: result: $ac_file" >&5
2124    echo "${ECHO_T}$ac_file" >&6
2125    
2126    # Check the compiler produces executables we can run.  If not, either
2127    # the compiler is broken, or we cross compile.
2128    echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2129    echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2130    # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2131    # If not cross compiling, check that we can run a simple program.
2132    if test "$cross_compiling" != yes; then
2133      if { ac_try='./$ac_file'
2134      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2135      (eval $ac_try) 2>&5
2136      ac_status=$?
2137      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138      (exit $ac_status); }; }; then
2139        cross_compiling=no
2140      else
2141        if test "$cross_compiling" = maybe; then
2142            cross_compiling=yes
2143        else
2144            { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2145    If you meant to cross compile, use \`--host'." >&5
2146    echo "$as_me: error: cannot run C compiled programs.
2147    If you meant to cross compile, use \`--host'." >&2;}
2148       { (exit 1); exit 1; }; }
2149        fi
2150      fi
2151  fi  fi
2152    echo "$as_me:$LINENO: result: yes" >&5
2153    echo "${ECHO_T}yes" >&6
2154    
2155  echo "$ac_t""$ac_cv_prog_gcc" 1>&6  rm -f a.out a.exe conftest$ac_cv_exeext
2156    ac_clean_files=$ac_clean_files_save
2157  if test $ac_cv_prog_gcc = yes; then  # Check the compiler produces executables we can run.  If not, either
2158    GCC=yes  # the compiler is broken, or we cross compile.
2159    echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2160    echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2161    echo "$as_me:$LINENO: result: $cross_compiling" >&5
2162    echo "${ECHO_T}$cross_compiling" >&6
2163    
2164    echo "$as_me:$LINENO: checking for suffix of executables" >&5
2165    echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2166    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2167      (eval $ac_link) 2>&5
2168      ac_status=$?
2169      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170      (exit $ac_status); }; then
2171      # If both `conftest.exe' and `conftest' are `present' (well, observable)
2172    # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2173    # work properly (i.e., refer to `conftest.exe'), while it won't with
2174    # `rm'.
2175    for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2176      case $ac_file in
2177        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2178        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2179              export ac_cv_exeext
2180              break;;
2181        * ) break;;
2182      esac
2183    done
2184  else  else
2185    GCC=    { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2186  fi  echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2187       { (exit 1); exit 1; }; }
2188    fi
2189    
2190    rm -f conftest$ac_cv_exeext
2191    echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2192    echo "${ECHO_T}$ac_cv_exeext" >&6
2193    
2194    rm -f conftest.$ac_ext
2195    EXEEXT=$ac_cv_exeext
2196    ac_exeext=$EXEEXT
2197    echo "$as_me:$LINENO: checking for suffix of object files" >&5
2198    echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2199    if test "${ac_cv_objext+set}" = set; then
2200      echo $ECHO_N "(cached) $ECHO_C" >&6
2201    else
2202      cat >conftest.$ac_ext <<_ACEOF
2203    #line $LINENO "configure"
2204    #include "confdefs.h"
2205    
2206    #ifdef F77_DUMMY_MAIN
2207    #  ifdef __cplusplus
2208         extern "C"
2209    #  endif
2210       int F77_DUMMY_MAIN() { return 1; }
2211    #endif
2212    int
2213    main ()
2214    {
2215    
2216  ac_test_CFLAGS="${CFLAGS+set}"    ;
2217  ac_save_CFLAGS="$CFLAGS"    return 0;
2218  CFLAGS=  }
2219  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  _ACEOF
2220  echo "configure:1249: checking whether ${CC-cc} accepts -g" >&5  rm -f conftest.o conftest.obj
2221  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222    echo $ac_n "(cached) $ac_c" 1>&6    (eval $ac_compile) 2>&5
2223      ac_status=$?
2224      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225      (exit $ac_status); }; then
2226      for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2227      case $ac_file in
2228        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2229        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2230           break;;
2231      esac
2232    done
2233  else  else
2234    echo 'void f(){}' > conftest.c    echo "$as_me: failed program was:" >&5
2235  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  cat conftest.$ac_ext >&5
2236    { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2237    echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2238       { (exit 1); exit 1; }; }
2239    fi
2240    
2241    rm -f conftest.$ac_cv_objext conftest.$ac_ext
2242    fi
2243    echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2244    echo "${ECHO_T}$ac_cv_objext" >&6
2245    OBJEXT=$ac_cv_objext
2246    ac_objext=$OBJEXT
2247    echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2248    echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2249    if test "${ac_cv_c_compiler_gnu+set}" = set; then
2250      echo $ECHO_N "(cached) $ECHO_C" >&6
2251    else
2252      cat >conftest.$ac_ext <<_ACEOF
2253    #line $LINENO "configure"
2254    #include "confdefs.h"
2255    
2256    #ifdef F77_DUMMY_MAIN
2257    #  ifdef __cplusplus
2258         extern "C"
2259    #  endif
2260       int F77_DUMMY_MAIN() { return 1; }
2261    #endif
2262    int
2263    main ()
2264    {
2265    #ifndef __GNUC__
2266           choke me
2267    #endif
2268    
2269      ;
2270      return 0;
2271    }
2272    _ACEOF
2273    rm -f conftest.$ac_objext
2274    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275      (eval $ac_compile) 2>&5
2276      ac_status=$?
2277      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278      (exit $ac_status); } &&
2279             { ac_try='test -s conftest.$ac_objext'
2280      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281      (eval $ac_try) 2>&5
2282      ac_status=$?
2283      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284      (exit $ac_status); }; }; then
2285      ac_compiler_gnu=yes
2286    else
2287      echo "$as_me: failed program was:" >&5
2288    cat conftest.$ac_ext >&5
2289    ac_compiler_gnu=no
2290    fi
2291    rm -f conftest.$ac_objext conftest.$ac_ext
2292    ac_cv_c_compiler_gnu=$ac_compiler_gnu
2293    
2294    fi
2295    echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2296    echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2297    GCC=`test $ac_compiler_gnu = yes && echo yes`
2298    ac_test_CFLAGS=${CFLAGS+set}
2299    ac_save_CFLAGS=$CFLAGS
2300    CFLAGS="-g"
2301    echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2302    echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2303    if test "${ac_cv_prog_cc_g+set}" = set; then
2304      echo $ECHO_N "(cached) $ECHO_C" >&6
2305    else
2306      cat >conftest.$ac_ext <<_ACEOF
2307    #line $LINENO "configure"
2308    #include "confdefs.h"
2309    
2310    #ifdef F77_DUMMY_MAIN
2311    #  ifdef __cplusplus
2312         extern "C"
2313    #  endif
2314       int F77_DUMMY_MAIN() { return 1; }
2315    #endif
2316    int
2317    main ()
2318    {
2319    
2320      ;
2321      return 0;
2322    }
2323    _ACEOF
2324    rm -f conftest.$ac_objext
2325    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326      (eval $ac_compile) 2>&5
2327      ac_status=$?
2328      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329      (exit $ac_status); } &&
2330             { ac_try='test -s conftest.$ac_objext'
2331      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332      (eval $ac_try) 2>&5
2333      ac_status=$?
2334      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335      (exit $ac_status); }; }; then
2336    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
2337  else  else
2338    ac_cv_prog_cc_g=no    echo "$as_me: failed program was:" >&5
2339    cat conftest.$ac_ext >&5
2340    ac_cv_prog_cc_g=no
2341  fi  fi
2342  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
   
2343  fi  fi
2344    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2345  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2346  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
2347    CFLAGS="$ac_save_CFLAGS"    CFLAGS=$ac_save_CFLAGS
2348  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
2349    if test "$GCC" = yes; then    if test "$GCC" = yes; then
2350      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 1275  else Line 2358  else
2358      CFLAGS=      CFLAGS=
2359    fi    fi
2360  fi  fi
2361    # Some people use a C++ compiler to compile C.  Since we use `exit',
2362    # in C++ we need to declare it.  In case someone uses the same compiler
2363    # for both compiling C and C++ we need to have the C++ compiler decide
2364    # the declaration of exit, since it's the most demanding environment.
2365    cat >conftest.$ac_ext <<_ACEOF
2366    #ifndef __cplusplus
2367      choke me
2368    #endif
2369    _ACEOF
2370    rm -f conftest.$ac_objext
2371    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372      (eval $ac_compile) 2>&5
2373      ac_status=$?
2374      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375      (exit $ac_status); } &&
2376             { ac_try='test -s conftest.$ac_objext'
2377      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378      (eval $ac_try) 2>&5
2379      ac_status=$?
2380      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381      (exit $ac_status); }; }; then
2382      for ac_declaration in \
2383       ''\
2384       '#include <stdlib.h>' \
2385       'extern "C" void std::exit (int) throw (); using std::exit;' \
2386       'extern "C" void std::exit (int); using std::exit;' \
2387       'extern "C" void exit (int) throw ();' \
2388       'extern "C" void exit (int);' \
2389       'void exit (int);'
2390    do
2391      cat >conftest.$ac_ext <<_ACEOF
2392    #line $LINENO "configure"
2393    #include "confdefs.h"
2394    #include <stdlib.h>
2395    $ac_declaration
2396    #ifdef F77_DUMMY_MAIN
2397    #  ifdef __cplusplus
2398         extern "C"
2399    #  endif
2400       int F77_DUMMY_MAIN() { return 1; }
2401    #endif
2402    int
2403    main ()
2404    {
2405    exit (42);
2406      ;
2407      return 0;
2408    }
2409    _ACEOF
2410    rm -f conftest.$ac_objext
2411    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412      (eval $ac_compile) 2>&5
2413      ac_status=$?
2414      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415      (exit $ac_status); } &&
2416             { ac_try='test -s conftest.$ac_objext'
2417      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418      (eval $ac_try) 2>&5
2419      ac_status=$?
2420      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421      (exit $ac_status); }; }; then
2422      :
2423    else
2424      echo "$as_me: failed program was:" >&5
2425    cat conftest.$ac_ext >&5
2426    continue
2427    fi
2428    rm -f conftest.$ac_objext conftest.$ac_ext
2429      cat >conftest.$ac_ext <<_ACEOF
2430    #line $LINENO "configure"
2431    #include "confdefs.h"
2432    $ac_declaration
2433    #ifdef F77_DUMMY_MAIN
2434    #  ifdef __cplusplus
2435         extern "C"
2436    #  endif
2437       int F77_DUMMY_MAIN() { return 1; }
2438    #endif
2439    int
2440    main ()
2441    {
2442    exit (42);
2443      ;
2444      return 0;
2445    }
2446    _ACEOF
2447    rm -f conftest.$ac_objext
2448    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449      (eval $ac_compile) 2>&5
2450      ac_status=$?
2451      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452      (exit $ac_status); } &&
2453             { ac_try='test -s conftest.$ac_objext'
2454      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455      (eval $ac_try) 2>&5
2456      ac_status=$?
2457      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458      (exit $ac_status); }; }; then
2459      break
2460    else
2461      echo "$as_me: failed program was:" >&5
2462    cat conftest.$ac_ext >&5
2463    fi
2464    rm -f conftest.$ac_objext conftest.$ac_ext
2465    done
2466    rm -f conftest*
2467    if test -n "$ac_declaration"; then
2468      echo '#ifdef __cplusplus' >>confdefs.h
2469      echo $ac_declaration      >>confdefs.h
2470      echo '#endif'             >>confdefs.h
2471    fi
2472    
2473  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  else
2474  echo "configure:1281: checking how to run the C preprocessor" >&5    echo "$as_me: failed program was:" >&5
2475    cat conftest.$ac_ext >&5
2476    fi
2477    rm -f conftest.$ac_objext conftest.$ac_ext
2478    ac_ext=c
2479    ac_cpp='$CPP $CPPFLAGS'
2480    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483    
2484    ac_ext=c
2485    ac_cpp='$CPP $CPPFLAGS'
2486    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2487    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2488    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2489    echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2490    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2491  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
2492  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
2493    CPP=    CPP=
2494  fi  fi
2495  if test -z "$CPP"; then  if test -z "$CPP"; then
2496  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then    if test "${ac_cv_prog_CPP+set}" = set; then
2497    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2498  else  else
2499      # This must be in double quotes, not single quotes, because CPP may get        # Double quotes because CPP needs to be expanded
2500    # substituted into the Makefile and "${CC-cc}" will confuse make.      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2501    CPP="${CC-cc} -E"      do
2502          ac_preproc_ok=false
2503    for ac_c_preproc_warn_flag in '' yes
2504    do
2505      # Use a header file that comes with gcc, so configuring glibc
2506      # with a fresh cross-compiler works.
2507    # 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,
2508    # not just through cpp.    # not just through cpp. "Syntax error" is here to catch this case.
2509    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2510  #line 1296 "configure"  #line $LINENO "configure"
2511  #include "confdefs.h"  #include "confdefs.h"
2512  #include <assert.h>  #include <assert.h>
2513  Syntax Error                       Syntax error
2514  EOF  _ACEOF
2515  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2516  { (eval echo configure:1302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2517  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2518  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2519      rm -f conftest.er1
2520      cat conftest.err >&5
2521      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522      (exit $ac_status); } >/dev/null; then
2523      if test -s conftest.err; then
2524        ac_cpp_err=$ac_c_preproc_warn_flag
2525      else
2526        ac_cpp_err=
2527      fi
2528    else
2529      ac_cpp_err=yes
2530    fi
2531    if test -z "$ac_cpp_err"; then
2532    :    :
2533  else  else
2534    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2535    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2536    rm -rf conftest*    # Broken: fails on valid input.
2537    CPP="${CC-cc} -E -traditional-cpp"  continue
2538    cat > conftest.$ac_ext <<EOF  fi
2539  #line 1313 "configure"  rm -f conftest.err conftest.$ac_ext
2540  #include "confdefs.h"  
2541  #include <assert.h>    # OK, works on sane cases.  Now check whether non-existent headers
2542  Syntax Error    # can be detected and how.
2543  EOF    cat >conftest.$ac_ext <<_ACEOF
2544  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  #line $LINENO "configure"
2545  { (eval echo configure:1319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  #include "confdefs.h"
2546  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  #include <ac_nonexistent.h>
2547  if test -z "$ac_err"; then  _ACEOF
2548    :  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2549      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2550      ac_status=$?
2551      egrep -v '^ *\+' conftest.er1 >conftest.err
2552      rm -f conftest.er1
2553      cat conftest.err >&5
2554      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555      (exit $ac_status); } >/dev/null; then
2556      if test -s conftest.err; then
2557        ac_cpp_err=$ac_c_preproc_warn_flag
2558      else
2559        ac_cpp_err=
2560      fi
2561    else
2562      ac_cpp_err=yes
2563    fi
2564    if test -z "$ac_cpp_err"; then
2565      # Broken: success on invalid input.
2566    continue
2567  else  else
2568    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2569    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2570    rm -rf conftest*    # Passes both tests.
2571    CPP="${CC-cc} -nologo -E"  ac_preproc_ok=:
2572    cat > conftest.$ac_ext <<EOF  break
2573  #line 1330 "configure"  fi
2574    rm -f conftest.err conftest.$ac_ext
2575    
2576    done
2577    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2578    rm -f conftest.err conftest.$ac_ext
2579    if $ac_preproc_ok; then
2580      break
2581    fi
2582    
2583        done
2584        ac_cv_prog_CPP=$CPP
2585    
2586    fi
2587      CPP=$ac_cv_prog_CPP
2588    else
2589      ac_cv_prog_CPP=$CPP
2590    fi
2591    echo "$as_me:$LINENO: result: $CPP" >&5
2592    echo "${ECHO_T}$CPP" >&6
2593    ac_preproc_ok=false
2594    for ac_c_preproc_warn_flag in '' yes
2595    do
2596      # Use a header file that comes with gcc, so configuring glibc
2597      # with a fresh cross-compiler works.
2598      # On the NeXT, cc -E runs the code through the compiler's parser,
2599      # not just through cpp. "Syntax error" is here to catch this case.
2600      cat >conftest.$ac_ext <<_ACEOF
2601    #line $LINENO "configure"
2602  #include "confdefs.h"  #include "confdefs.h"
2603  #include <assert.h>  #include <assert.h>
2604  Syntax Error                       Syntax error
2605  EOF  _ACEOF
2606  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2607  { (eval echo configure:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2608  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2609  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2610      rm -f conftest.er1
2611      cat conftest.err >&5
2612      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613      (exit $ac_status); } >/dev/null; then
2614      if test -s conftest.err; then
2615        ac_cpp_err=$ac_c_preproc_warn_flag
2616      else
2617        ac_cpp_err=
2618      fi
2619    else
2620      ac_cpp_err=yes
2621    fi
2622    if test -z "$ac_cpp_err"; then
2623    :    :
2624  else  else
2625    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2626    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2627    rm -rf conftest*    # Broken: fails on valid input.
2628    CPP=/lib/cpp  continue
 fi  
 rm -f conftest*  
2629  fi  fi
2630  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2631    
2632      # OK, works on sane cases.  Now check whether non-existent headers
2633      # can be detected and how.
2634      cat >conftest.$ac_ext <<_ACEOF
2635    #line $LINENO "configure"
2636    #include "confdefs.h"
2637    #include <ac_nonexistent.h>
2638    _ACEOF
2639    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2640      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2641      ac_status=$?
2642      egrep -v '^ *\+' conftest.er1 >conftest.err
2643      rm -f conftest.er1
2644      cat conftest.err >&5
2645      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646      (exit $ac_status); } >/dev/null; then
2647      if test -s conftest.err; then
2648        ac_cpp_err=$ac_c_preproc_warn_flag
2649      else
2650        ac_cpp_err=
2651      fi
2652    else
2653      ac_cpp_err=yes
2654  fi  fi
2655  rm -f conftest*  if test -z "$ac_cpp_err"; then
2656    ac_cv_prog_CPP="$CPP"    # Broken: success on invalid input.
2657    continue
2658    else
2659      echo "$as_me: failed program was:" >&5
2660      cat conftest.$ac_ext >&5
2661      # Passes both tests.
2662    ac_preproc_ok=:
2663    break
2664  fi  fi
2665    CPP="$ac_cv_prog_CPP"  rm -f conftest.err conftest.$ac_ext
2666    
2667    done
2668    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2669    rm -f conftest.err conftest.$ac_ext
2670    if $ac_preproc_ok; then
2671      :
2672  else  else
2673    ac_cv_prog_CPP="$CPP"    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2674    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2675       { (exit 1); exit 1; }; }
2676  fi  fi
2677  echo "$ac_t""$CPP" 1>&6  
2678    ac_ext=c
2679    ac_cpp='$CPP $CPPFLAGS'
2680    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683    
2684    
2685    
# Line 1386  else Line 2711  else
2711          TO2FLAGS="-O"          TO2FLAGS="-O"
2712  fi  fi
2713    
2714  case $use in  case $use in
2715       *linux)       *linux)
2716          case $use in          case $use in
2717                  alpha*)                  alpha*)
# Line 1399  case $use in Line 2724  case $use in
2724                          TO2FLAGS=""                          TO2FLAGS=""
2725                          ;;                          ;;
2726                  arm*)                  arm*)
2727                          TCFLAGS="$TCFLAGS -mlong-calls";;                                TCFLAGS="$TCFLAGS -mlong-calls";;
2728                  powerpc*)                  powerpc*)
2729                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then
2730                             echo Reducing optimization for buggy gcc-3.2                             echo Reducing optimization for buggy gcc-3.2
2731                             TO3FLAGS="-O -fomit-frame-pointer"                             TO3FLAGS="-O -fomit-frame-pointer"
# Line 1416  fi Line 2741  fi
2741  # 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
2742  # there are a few systems, like Next, where this doesn't work.  # there are a few systems, like Next, where this doesn't work.
2743    
2744  echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5
2745  echo "configure:1421: checking system version (for dynamic loading)" >&5  echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6
2746  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
2747    
2748  for ac_prog in gawk nawk awk  for ac_prog in gawk nawk awk
2749  do  do
2750  # 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.
2751  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2752  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
2753  echo "configure:1429: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2754  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  if test "${ac_cv_prog_AWK+set}" = set; then
2755    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2756  else  else
2757    if test -n "$AWK"; then    if test -n "$AWK"; then
2758    ac_cv_prog_AWK="$AWK" # Let the user override the test.    ac_cv_prog_AWK="$AWK" # Let the user override the test.
2759  else  else
2760    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761    ac_dummy="$PATH"  for as_dir in $PATH
2762    for ac_dir in $ac_dummy; do  do
2763      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2764      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2765        ac_cv_prog_AWK="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
2766        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767      fi      ac_cv_prog_AWK="$ac_prog"
2768    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769    IFS="$ac_save_ifs"      break 2
2770      fi
2771    done
2772    done
2773    
2774  fi  fi
2775  fi  fi
2776  AWK="$ac_cv_prog_AWK"  AWK=$ac_cv_prog_AWK
2777  if test -n "$AWK"; then  if test -n "$AWK"; then
2778    echo "$ac_t""$AWK" 1>&6    echo "$as_me:$LINENO: result: $AWK" >&5
2779    echo "${ECHO_T}$AWK" >&6
2780  else  else
2781    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2782    echo "${ECHO_T}no" >&6
2783  fi  fi
2784    
2785  test -n "$AWK" && break    test -n "$AWK" && break
2786  done  done
2787  test -n "$AWK" || AWK=""""  test -n "$AWK" || AWK=""""
2788    
2789    
2790  for ac_prog in makeinfo  for ac_prog in makeinfo
2791  do  do
2792  # 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.
2793  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2794  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
2795  echo "configure:1465: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2796  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then  if test "${ac_cv_prog_MAKEINFO+set}" = set; then
2797    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2798  else  else
2799    if test -n "$MAKEINFO"; then    if test -n "$MAKEINFO"; then
2800    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2801  else  else
2802    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803    ac_dummy="$PATH"  for as_dir in $PATH
2804    for ac_dir in $ac_dummy; do  do
2805      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2806      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2807        ac_cv_prog_MAKEINFO="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
2808        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809      fi      ac_cv_prog_MAKEINFO="$ac_prog"
2810    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811    IFS="$ac_save_ifs"      break 2
2812      fi
2813    done
2814    done
2815    
2816  fi  fi
2817  fi  fi
2818  MAKEINFO="$ac_cv_prog_MAKEINFO"  MAKEINFO=$ac_cv_prog_MAKEINFO
2819  if test -n "$MAKEINFO"; then  if test -n "$MAKEINFO"; then
2820    echo "$ac_t""$MAKEINFO" 1>&6    echo "$as_me:$LINENO: result: $MAKEINFO" >&5
2821    echo "${ECHO_T}$MAKEINFO" >&6
2822  else  else
2823    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2824    echo "${ECHO_T}no" >&6
2825  fi  fi
2826    
2827  test -n "$MAKEINFO" && break    test -n "$MAKEINFO" && break
2828  done  done
2829  test -n "$MAKEINFO" || MAKEINFO=""false""  test -n "$MAKEINFO" || MAKEINFO=""false""
2830    
# Line 1498  if test -f /usr/lib/NextStep/software_ve Line 2835  if test -f /usr/lib/NextStep/software_ve
2835  else  else
2836      system=`uname -s`-`uname -r`      system=`uname -s`-`uname -r`
2837      if test "$?" -ne 0 ; then      if test "$?" -ne 0 ; then
2838          echo "$ac_t""unknown (can't find uname command)" 1>&6          echo "$as_me:$LINENO: result: unknown (can't find uname command)" >&5
2839    echo "${ECHO_T}unknown (can't find uname command)" >&6
2840          system=unknown          system=unknown
2841      else      else
2842          # Special check for weird MP-RAS system (uname returns weird          # Special check for weird MP-RAS system (uname returns weird
2843          # results, and the version is kept in special file).          # results, and the version is kept in special file).
2844        
2845          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
2846              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`
2847          fi          fi
2848          if test "`uname -s`" = "AIX" ; then          if test "`uname -s`" = "AIX" ; then
2849              system=AIX-`uname -v`.`uname -r`              system=AIX-`uname -v`.`uname -r`
2850          fi          fi
2851          echo "$ac_t""$system" 1>&6          echo "$as_me:$LINENO: result: $system" >&5
2852    echo "${ECHO_T}$system" >&6
2853      fi      fi
2854  fi  fi
2855    
# Line 1525  rm -f makedefsafter Line 2864  rm -f makedefsafter
2864  MP_INLCUDE=""  MP_INLCUDE=""
2865  if test $use_gmp = yes ; then  if test $use_gmp = yes ; then
2866    
2867   echo $ac_n "checking use_gmp=yes, doing configure in gmp directory""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking use_gmp=yes, doing configure in gmp directory" >&5
2868  echo "configure:1530: checking use_gmp=yes, doing configure in gmp directory" >&5  echo $ECHO_N "checking use_gmp=yes, doing configure in gmp directory... $ECHO_C" >&6
2869   echo   echo
2870   echo "#"   echo "#"
2871   echo "#"   echo "#"
# Line 1546  echo "configure:1530: checking use_gmp=y Line 2885  echo "configure:1530: checking use_gmp=y
2885   else   else
2886     cd $GMPDIR && ./configure && cd ..     cd $GMPDIR && ./configure && cd ..
2887   fi   fi
2888  #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"  #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"
2889    
2890   echo "#"   echo "#"
2891   echo "#"   echo "#"
# Line 1557  echo "configure:1530: checking use_gmp=y Line 2896  echo "configure:1530: checking use_gmp=y
2896    
2897   PATCHED_SYMBOLS=""   PATCHED_SYMBOLS=""
2898   if test "$enable_dynsysgmp" = "yes" ; then   if test "$enable_dynsysgmp" = "yes" ; then
2899          ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`  
2900  echo $ac_n "checking for gmp.h""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2901  echo "configure:1563: checking for gmp.h" >&5  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2902  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_stdc+set}" = set; then
2903    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2904    else
2905      cat >conftest.$ac_ext <<_ACEOF
2906    #line $LINENO "configure"
2907    #include "confdefs.h"
2908    #include <stdlib.h>
2909    #include <stdarg.h>
2910    #include <string.h>
2911    #include <float.h>
2912    
2913    _ACEOF
2914    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2915      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2916      ac_status=$?
2917      egrep -v '^ *\+' conftest.er1 >conftest.err
2918      rm -f conftest.er1
2919      cat conftest.err >&5
2920      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921      (exit $ac_status); } >/dev/null; then
2922      if test -s conftest.err; then
2923        ac_cpp_err=$ac_c_preproc_warn_flag
2924      else
2925        ac_cpp_err=
2926      fi
2927  else  else
2928    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
2929  #line 1568 "configure"  fi
2930  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
2931  #include <gmp.h>    ac_cv_header_stdc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:1573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
2932  else  else
2933    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2934    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2935    rm -rf conftest*    ac_cv_header_stdc=no
2936    eval "ac_cv_header_$ac_safe=no"  fi
2937    rm -f conftest.err conftest.$ac_ext
2938    
2939    if test $ac_cv_header_stdc = yes; then
2940      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2941      cat >conftest.$ac_ext <<_ACEOF
2942    #line $LINENO "configure"
2943    #include "confdefs.h"
2944    #include <string.h>
2945    
2946    _ACEOF
2947    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2948      egrep "memchr" >/dev/null 2>&1; then
2949      :
2950    else
2951      ac_cv_header_stdc=no
2952    fi
2953    rm -f conftest*
2954    
2955    fi
2956    
2957    if test $ac_cv_header_stdc = yes; then
2958      # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2959      cat >conftest.$ac_ext <<_ACEOF
2960    #line $LINENO "configure"
2961    #include "confdefs.h"
2962    #include <stdlib.h>
2963    
2964    _ACEOF
2965    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2966      egrep "free" >/dev/null 2>&1; then
2967      :
2968    else
2969      ac_cv_header_stdc=no
2970  fi  fi
2971  rm -f conftest*  rm -f conftest*
2972    
2973  fi  fi
2974  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  
2975    echo "$ac_t""yes" 1>&6  if test $ac_cv_header_stdc = yes; then
2976    echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2977  echo "configure:1590: checking for __gmpz_init in -lgmp" >&5    if test "$cross_compiling" = yes; then
2978  ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`    :
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
2979  else  else
2980    ac_save_LIBS="$LIBS"    cat >conftest.$ac_ext <<_ACEOF
2981  LIBS="-lgmp  $LIBS"  #line $LINENO "configure"
 cat > conftest.$ac_ext <<EOF  
 #line 1598 "configure"  
2982  #include "confdefs.h"  #include "confdefs.h"
2983  /* Override any gcc2 internal prototype to avoid an error.  */  #include <ctype.h>
2984  /* We use char because int might match the return type of a gcc2  #if ((' ' & 0x0FF) == 0x020)
2985      builtin and then its argument prototype would still apply.  */  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2986  char __gmpz_init();  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2987    #else
2988    # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2989                         || ('j' <= (c) && (c) <= 'r') \
2990                         || ('s' <= (c) && (c) <= 'z'))
2991    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2992    #endif
2993    
2994  int main() {  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2995  __gmpz_init()  int
2996  ; return 0; }  main ()
2997  EOF  {
2998  if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    int i;
2999    rm -rf conftest*    for (i = 0; i < 256; i++)
3000    eval "ac_cv_lib_$ac_lib_var=yes"      if (XOR (islower (i), ISLOWER (i))
3001            || toupper (i) != TOUPPER (i))
3002          exit(2);
3003      exit (0);
3004    }
3005    _ACEOF
3006    rm -f conftest$ac_exeext
3007    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3008      (eval $ac_link) 2>&5
3009      ac_status=$?
3010      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3012      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013      (eval $ac_try) 2>&5
3014      ac_status=$?
3015      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016      (exit $ac_status); }; }; then
3017      :
3018    else
3019      echo "$as_me: program exited with status $ac_status" >&5
3020    echo "$as_me: failed program was:" >&5
3021    cat conftest.$ac_ext >&5
3022    ( exit $ac_status )
3023    ac_cv_header_stdc=no
3024    fi
3025    rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3026    fi
3027    fi
3028    fi
3029    echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3030    echo "${ECHO_T}$ac_cv_header_stdc" >&6
3031    if test $ac_cv_header_stdc = yes; then
3032    
3033    cat >>confdefs.h <<\_ACEOF
3034    #define STDC_HEADERS 1
3035    _ACEOF
3036    
3037    fi
3038    
3039    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3040    
3041    
3042    
3043    
3044    
3045    
3046    
3047    
3048    
3049    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3050                      inttypes.h stdint.h unistd.h
3051    do
3052    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3053    echo "$as_me:$LINENO: checking for $ac_header" >&5
3054    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3055    if eval "test \"\${$as_ac_Header+set}\" = set"; then
3056      echo $ECHO_N "(cached) $ECHO_C" >&6
3057    else
3058      cat >conftest.$ac_ext <<_ACEOF
3059    #line $LINENO "configure"
3060    #include "confdefs.h"
3061    $ac_includes_default
3062    
3063    #include <$ac_header>
3064    _ACEOF
3065    rm -f conftest.$ac_objext
3066    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067      (eval $ac_compile) 2>&5
3068      ac_status=$?
3069      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070      (exit $ac_status); } &&
3071             { ac_try='test -s conftest.$ac_objext'
3072      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073      (eval $ac_try) 2>&5
3074      ac_status=$?
3075      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076      (exit $ac_status); }; }; then
3077      eval "$as_ac_Header=yes"
3078    else
3079      echo "$as_me: failed program was:" >&5
3080    cat conftest.$ac_ext >&5
3081    eval "$as_ac_Header=no"
3082    fi
3083    rm -f conftest.$ac_objext conftest.$ac_ext
3084    fi
3085    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3086    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3087    if test `eval echo '${'$as_ac_Header'}'` = yes; then
3088      cat >>confdefs.h <<_ACEOF
3089    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3090    _ACEOF
3091    
3092    fi
3093    
3094    done
3095    
3096    
3097    if test "${ac_cv_header_gmp_h+set}" = set; then
3098      echo "$as_me:$LINENO: checking for gmp.h" >&5
3099    echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
3100    if test "${ac_cv_header_gmp_h+set}" = set; then
3101      echo $ECHO_N "(cached) $ECHO_C" >&6
3102    fi
3103    echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
3104    echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
3105    else
3106      # Is the header compilable?
3107    echo "$as_me:$LINENO: checking gmp.h usability" >&5
3108    echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6
3109    cat >conftest.$ac_ext <<_ACEOF
3110    #line $LINENO "configure"
3111    #include "confdefs.h"
3112    $ac_includes_default
3113    #include <gmp.h>
3114    _ACEOF
3115    rm -f conftest.$ac_objext
3116    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3117      (eval $ac_compile) 2>&5
3118      ac_status=$?
3119      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120      (exit $ac_status); } &&
3121             { ac_try='test -s conftest.$ac_objext'
3122      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123      (eval $ac_try) 2>&5
3124      ac_status=$?
3125      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126      (exit $ac_status); }; }; then
3127      ac_header_compiler=yes
3128    else
3129      echo "$as_me: failed program was:" >&5
3130    cat conftest.$ac_ext >&5
3131    ac_header_compiler=no
3132    fi
3133    rm -f conftest.$ac_objext conftest.$ac_ext
3134    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3135    echo "${ECHO_T}$ac_header_compiler" >&6
3136    
3137    # Is the header present?
3138    echo "$as_me:$LINENO: checking gmp.h presence" >&5
3139    echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6
3140    cat >conftest.$ac_ext <<_ACEOF
3141    #line $LINENO "configure"
3142    #include "confdefs.h"
3143    #include <gmp.h>
3144    _ACEOF
3145    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3146      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3147      ac_status=$?
3148      egrep -v '^ *\+' conftest.er1 >conftest.err
3149      rm -f conftest.er1
3150      cat conftest.err >&5
3151      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152      (exit $ac_status); } >/dev/null; then
3153      if test -s conftest.err; then
3154        ac_cpp_err=$ac_c_preproc_warn_flag
3155      else
3156        ac_cpp_err=
3157      fi
3158    else
3159      ac_cpp_err=yes
3160    fi
3161    if test -z "$ac_cpp_err"; then
3162      ac_header_preproc=yes
3163  else  else
3164    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3165    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3166    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_lib_$ac_lib_var=no"  
3167  fi  fi
3168  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
3169  LIBS="$ac_save_LIBS"  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3170    echo "${ECHO_T}$ac_header_preproc" >&6
3171    
3172    # So?  What about this header?
3173    case $ac_header_compiler:$ac_header_preproc in
3174      yes:no )
3175        { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
3176    echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3177        { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
3178    echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;};;
3179      no:yes )
3180        { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
3181    echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
3182        { echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5
3183    echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;}
3184        { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
3185    echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;};;
3186    esac
3187    echo "$as_me:$LINENO: checking for gmp.h" >&5
3188    echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
3189    if test "${ac_cv_header_gmp_h+set}" = set; then
3190      echo $ECHO_N "(cached) $ECHO_C" >&6
3191    else
3192      ac_cv_header_gmp_h=$ac_header_preproc
3193    fi
3194    echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
3195    echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
3196    
3197  fi  fi
3198  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if test $ac_cv_header_gmp_h = yes; then
3199    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
3200    echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6
3201    if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
3202      echo $ECHO_N "(cached) $ECHO_C" >&6
3203    else
3204      ac_check_lib_save_LIBS=$LIBS
3205    LIBS="-lgmp  $LIBS"
3206    
3207    cat >conftest.$ac_ext <<_ACEOF
3208    #line $LINENO "configure"
3209    #include "confdefs.h"
3210    
3211    /* Override any gcc2 internal prototype to avoid an error.  */
3212    #ifdef __cplusplus
3213    extern "C"
3214    #endif
3215    /* We use char because int might match the return type of a gcc2
3216       builtin and then its argument prototype would still apply.  */
3217    char __gmpz_init ();
3218    #ifdef F77_DUMMY_MAIN
3219    #  ifdef __cplusplus
3220         extern "C"
3221    #  endif
3222       int F77_DUMMY_MAIN() { return 1; }
3223    #endif
3224    int
3225    main ()
3226    {
3227    __gmpz_init ();
3228      ;
3229      return 0;
3230    }
3231    _ACEOF
3232    rm -f conftest.$ac_objext conftest$ac_exeext
3233    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3234      (eval $ac_link) 2>&5
3235      ac_status=$?
3236      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237      (exit $ac_status); } &&
3238             { ac_try='test -s conftest$ac_exeext'
3239      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240      (eval $ac_try) 2>&5
3241      ac_status=$?
3242      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243      (exit $ac_status); }; }; then
3244      ac_cv_lib_gmp___gmpz_init=yes
3245    else
3246      echo "$as_me: failed program was:" >&5
3247    cat conftest.$ac_ext >&5
3248    ac_cv_lib_gmp___gmpz_init=no
3249    fi
3250    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3251    LIBS=$ac_check_lib_save_LIBS
3252    fi
3253    echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
3254    echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6
3255    if test $ac_cv_lib_gmp___gmpz_init = yes; then
3256    MPFILES=$GMPDIR/mpn/mul_n.o    MPFILES=$GMPDIR/mpn/mul_n.o
3257                          PATCHED_SYMBOLS=__gmpn_toom3_mul_n                          PATCHED_SYMBOLS=__gmpn_toom3_mul_n
3258                          if test "$use" = "m68k-linux" ; then                          if test "$use" = "m68k-linux" ; then
# Line 1632  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 3265  if eval "test \"`echo '$ac_cv_lib_'$ac_l
3265                          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 '"'`
3266                          rm -f foo.c                          rm -f foo.c
3267  else  else
3268    echo "$ac_t""no" 1>&6    echo "Cannot use dynamic gmp lib" ; exit 1
 echo "Cannot use dynamic gmp lib" ; exit 1  
3269  fi  fi
3270    
3271  else  else
3272    echo "$ac_t""no" 1>&6    echo "Cannot use dynamic gmp lib" ; exit 1
 echo "Cannot use dynamic gmp lib" ; exit 1  
3273  fi  fi
3274    
3275    
3276  else                      
3277    else
3278    
3279          cp $GMPDIR/gmp.h h/gmp.h          cp $GMPDIR/gmp.h h/gmp.h
3280          MP_INCLUDE=h/gmp.h          MP_INCLUDE=h/gmp.h
# Line 1650  else Line 3282  else
3282    
3283  fi  fi
3284    
3285   echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking \"for size of gmp limbs\"" >&5
3286  echo "configure:1655: checking "for size of gmp limbs"" >&5  echo $ECHO_N "checking \"for size of gmp limbs\"... $ECHO_C" >&6
3287   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3288    mpsize=0    mpsize=0
3289  else  else
3290    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3291  #line 1660 "configure"  #line $LINENO "configure"
3292  #include "confdefs.h"  #include "confdefs.h"
3293  #include <stdio.h>  #include <stdio.h>
3294          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1666  else Line 3298  else
3298          fclose(fp);          fclose(fp);
3299          return 0;          return 0;
3300          }          }
3301  EOF  _ACEOF
3302  if { (eval echo configure:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3303  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3304      (eval $ac_link) 2>&5
3305      ac_status=$?
3306      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3308      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309      (eval $ac_try) 2>&5
3310      ac_status=$?
3311      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312      (exit $ac_status); }; }; then
3313    mpsize=`cat conftest1`    mpsize=`cat conftest1`
3314  else  else
3315    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3316    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
3317    rm -fr conftest*  cat conftest.$ac_ext >&5
3318    mpsize=0  ( exit $ac_status )
3319    mpsize=0
3320  fi  fi
3321  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3322  fi  fi
   
3323   if test "$mpsize" = "0" ; then   if test "$mpsize" = "0" ; then
3324          echo "Cannot determine mpsize"          echo "Cannot determine mpsize"
3325          exit 1          exit 1
3326   fi   fi
3327   cat >> confdefs.h <<EOF   cat >>confdefs.h <<_ACEOF
3328  #define MP_LIMB_BYTES $mpsize  #define MP_LIMB_BYTES $mpsize
3329  EOF  _ACEOF
3330    
3331   echo "$ac_t""$mpsize" 1>&6   echo "$as_me:$LINENO: result: $mpsize" >&5
3332    echo "${ECHO_T}$mpsize" >&6
3333    
3334   echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking \"_SHORT_LIMB\"" >&5
3335  echo "configure:1694: checking "_SHORT_LIMB"" >&5  echo $ECHO_N "checking \"_SHORT_LIMB\"... $ECHO_C" >&6
3336   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3337    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3338    echo "${ECHO_T}no" >&6
3339  else  else
3340    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3341  #line 1699 "configure"  #line $LINENO "configure"
3342  #include "confdefs.h"  #include "confdefs.h"
3343  #include <stdio.h>  #include <stdio.h>
3344          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1706  else Line 3349  else
3349          return 1;          return 1;
3350          #endif          #endif
3351          }          }
3352  EOF  _ACEOF
3353  if { (eval echo configure:1711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3354  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3355    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
3356      ac_status=$?
3357      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3359      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360      (eval $ac_try) 2>&5
3361      ac_status=$?
3362      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363      (exit $ac_status); }; }; then
3364      cat >>confdefs.h <<\_ACEOF
3365  #define __SHORT_LIMB 1  #define __SHORT_LIMB 1
3366  EOF  _ACEOF
3367   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
3368  else  echo "${ECHO_T}yes" >&6
3369    echo "configure: failed program was:" >&5  else
3370    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
3371    rm -fr conftest*  echo "$as_me: failed program was:" >&5
3372    echo "$ac_t""no" 1>&6  cat conftest.$ac_ext >&5
3373    ( exit $ac_status )
3374    echo "$as_me:$LINENO: result: no" >&5
3375    echo "${ECHO_T}no" >&6
3376  fi  fi
3377  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3378  fi  fi
3379     echo "$as_me:$LINENO: checking \"_LONG_LONG_LIMB\"" >&5
3380   echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6  echo $ECHO_N "checking \"_LONG_LONG_LIMB\"... $ECHO_C" >&6
 echo "configure:1727: checking "_LONG_LONG_LIMB"" >&5  
3381   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3382    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3383    echo "${ECHO_T}no" >&6
3384  else  else
3385    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3386  #line 1732 "configure"  #line $LINENO "configure"
3387  #include "confdefs.h"  #include "confdefs.h"
3388  #include <stdio.h>  #include <stdio.h>
3389          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1739  else Line 3394  else
3394          return 1;          return 1;
3395          #endif          #endif
3396          }          }
3397  EOF  _ACEOF
3398  if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3399  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3400    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
3401      ac_status=$?
3402      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3404      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405      (eval $ac_try) 2>&5
3406      ac_status=$?
3407      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408      (exit $ac_status); }; }; then
3409      cat >>confdefs.h <<\_ACEOF
3410  #define __LONG_LONG_LIMB 1  #define __LONG_LONG_LIMB 1
3411  EOF  _ACEOF
3412   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
3413  else  echo "${ECHO_T}yes" >&6
3414    echo "configure: failed program was:" >&5  else
3415    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
3416    rm -fr conftest*  echo "$as_me: failed program was:" >&5
3417    echo "$ac_t""no" 1>&6  cat conftest.$ac_ext >&5
3418    ( exit $ac_status )
3419    echo "$as_me:$LINENO: result: no" >&5
3420    echo "${ECHO_T}no" >&6
3421  fi  fi
3422  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3423  fi  fi
3424    
   
3425   GMP=1   GMP=1
3426   cat >> confdefs.h <<\EOF   cat >>confdefs.h <<\_ACEOF
3427  #define GMP 1  #define GMP 1
3428  EOF  _ACEOF
3429    
3430    
3431    
   
   
3432   echo > makedefsafter   echo > makedefsafter
3433   echo "MPFILES=$MPFILES" >> makedefsafter   echo "MPFILES=$MPFILES" >> makedefsafter
3434   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter
# Line 1772  fi Line 3438  fi
3438    
3439  #  #
3440  # X windows  # X windows
3441  #  #
3442    
3443    echo "$as_me:$LINENO: checking for X" >&5
3444    echo $ECHO_N "checking for X... $ECHO_C" >&6
3445    
 # If we find X, set shell vars x_includes and x_libraries to the  
 # paths, otherwise set no_x=yes.  
 # Uses ac_ vars as temps to allow command line to override cache and checks.  
 # --without-x overrides everything else, but does not touch the cache.  
 echo $ac_n "checking for X""... $ac_c" 1>&6  
 echo "configure:1783: checking for X" >&5  
3446    
3447  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
3448  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
3449    withval="$with_x"    withval="$with_x"
   :  
 fi  
3450    
3451    fi;
3452  # $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.
3453  if test "x$with_x" = xno; then  if test "x$with_x" = xno; then
3454    # The user explicitly disabled X.    # The user explicitly disabled X.
# Line 1796  else Line 3458  else
3458      # Both variables are already set.      # Both variables are already set.
3459      have_x=yes      have_x=yes
3460    else    else
3461  if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then      if test "${ac_cv_have_x+set}" = set; then
3462    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3463  else  else
3464    # 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.
3465  ac_x_includes=NO ac_x_libraries=NO  ac_x_includes=no ac_x_libraries=no
3466  rm -fr conftestdir  rm -fr conftest.dir
3467  if mkdir conftestdir; then  if mkdir conftest.dir; then
3468    cd conftestdir    cd conftest.dir
3469    # 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.
3470    cat > Imakefile <<'EOF'    cat >Imakefile <<'_ACEOF'
3471  acfindx:  acfindx:
3472          @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}"'
3473  EOF  _ACEOF
3474    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3475      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3476      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3477      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3478      for ac_extension in a so sl; do      for ac_extension in a so sl; do
3479        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3480          test -f $ac_im_libdir/libX11.$ac_extension; then           test -f $ac_im_libdir/libX11.$ac_extension; then
3481          ac_im_usrlibdir=$ac_im_libdir; break          ac_im_usrlibdir=$ac_im_libdir; break
3482        fi        fi
3483      done      done
3484      # Screen out bogus values from the imake configuration.  They are      # Screen out bogus values from the imake configuration.  They are
3485      # bogus both because they are the default anyway, and because      # bogus both because they are the default anyway, and because
3486      # using them would break gcc on systems where it needs fixed includes.      # using them would break gcc on systems where it needs fixed includes.
3487      case "$ac_im_incroot" in      case $ac_im_incroot in
3488          /usr/include) ;;          /usr/include) ;;
3489          *) 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;;
3490      esac      esac
3491      case "$ac_im_usrlibdir" in      case $ac_im_usrlibdir in
3492          /usr/lib | /lib) ;;          /usr/lib | /lib) ;;
3493          *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;          *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3494      esac      esac
3495    fi    fi
3496    cd ..    cd ..
3497    rm -fr conftestdir    rm -fr conftest.dir
3498  fi  fi
3499    
3500  if test "$ac_x_includes" = NO; then  # Standard set of common directories for X headers.
3501    # Guess where to find include files, by looking for this one X11 .h file.  # Check X11 before X11Rn because it is often a symlink to the current release.
3502    test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h  ac_x_header_dirs='
3503    /usr/X11/include
3504    /usr/X11R6/include
3505    /usr/X11R5/include
3506    /usr/X11R4/include
3507    
3508    /usr/include/X11
3509    /usr/include/X11R6
3510    /usr/include/X11R5
3511    /usr/include/X11R4
3512    
3513    /usr/local/X11/include
3514    /usr/local/X11R6/include
3515    /usr/local/X11R5/include
3516    /usr/local/X11R4/include
3517    
3518    /usr/local/include/X11
3519    /usr/local/include/X11R6
3520    /usr/local/include/X11R5
3521    /usr/local/include/X11R4
3522    
3523    /usr/X386/include
3524    /usr/x386/include
3525    /usr/XFree86/include/X11
3526    
3527    /usr/include
3528    /usr/local/include
3529    /usr/unsupported/include
3530    /usr/athena/include
3531    /usr/local/x11r5/include
3532    /usr/lpp/Xamples/include
3533    
3534    /usr/openwin/include
3535    /usr/openwin/share/include'
3536    
3537    if test "$ac_x_includes" = no; then
3538      # Guess where to find include files, by looking for Intrinsic.h.
3539    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
3540  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3541  #line 1845 "configure"  #line $LINENO "configure"
3542  #include "confdefs.h"  #include "confdefs.h"
3543  #include <$x_direct_test_include>  #include <X11/Intrinsic.h>
3544  EOF  _ACEOF
3545  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3546  { (eval echo configure:1850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3547  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
3548  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
3549    rm -rf conftest*    rm -f conftest.er1
3550      cat conftest.err >&5
3551      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552      (exit $ac_status); } >/dev/null; then
3553      if test -s conftest.err; then
3554        ac_cpp_err=$ac_c_preproc_warn_flag
3555      else
3556        ac_cpp_err=
3557      fi
3558    else
3559      ac_cpp_err=yes
3560    fi
3561    if test -z "$ac_cpp_err"; then
3562    # We can compile using X headers with no special include directory.    # We can compile using X headers with no special include directory.
3563  ac_x_includes=  ac_x_includes=
3564  else  else
3565    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
3566    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3567    rm -rf conftest*    for ac_dir in $ac_x_header_dirs; do
3568    # Look for the header file in a standard set of common directories.    if test -r "$ac_dir/X11/Intrinsic.h"; then
3569  # Check X11 before X11Rn because it is often a symlink to the current release.      ac_x_includes=$ac_dir
3570    for ac_dir in               \      break
3571      /usr/X11/include          \    fi
3572      /usr/X11R6/include        \  done
     /usr/X11R5/include        \  
     /usr/X11R4/include        \  
                               \  
     /usr/include/X11          \  
     /usr/include/X11R6        \  
     /usr/include/X11R5        \  
     /usr/include/X11R4        \  
                               \  
     /usr/local/X11/include    \  
     /usr/local/X11R6/include  \  
     /usr/local/X11R5/include  \  
     /usr/local/X11R4/include  \  
                               \  
     /usr/local/include/X11    \  
     /usr/local/include/X11R6  \  
     /usr/local/include/X11R5  \  
     /usr/local/include/X11R4  \  
                               \  
     /usr/X386/include         \  
     /usr/x386/include         \  
     /usr/XFree86/include/X11  \  
                               \  
     /usr/include              \  
     /usr/local/include        \  
     /usr/unsupported/include  \  
     /usr/athena/include       \  
     /usr/local/x11r5/include  \  
     /usr/lpp/Xamples/include  \  
                               \  
     /usr/openwin/include      \  
     /usr/openwin/share/include \  
     ; \  
   do  
     if test -r "$ac_dir/$x_direct_test_include"; then  
       ac_x_includes=$ac_dir  
       break  
     fi  
   done  
3573  fi  fi
3574  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
3575  fi # $ac_x_includes = NO  fi # $ac_x_includes = no
3576    
3577  if test "$ac_x_libraries" = NO; then  if test "$ac_x_libraries" = no; then
3578    # Check for the libraries.    # Check for the libraries.
   
   test -z "$x_direct_test_library" && x_direct_test_library=Xt  
   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc  
   
3579    # See if we find them without any special options.    # See if we find them without any special options.
3580    # Don't add to $LIBS permanently.    # Don't add to $LIBS permanently.
3581    ac_save_LIBS="$LIBS"    ac_save_LIBS=$LIBS
3582    LIBS="-l$x_direct_test_library $LIBS"    LIBS="-lXt $LIBS"
3583  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3584  #line 1919 "configure"  #line $LINENO "configure"
3585  #include "confdefs.h"  #include "confdefs.h"
3586    #include <X11/Intrinsic.h>
3587  int main() {  #ifdef F77_DUMMY_MAIN
3588  ${x_direct_test_function}()  #  ifdef __cplusplus
3589  ; return 0; }       extern "C"
3590  EOF  #  endif
3591  if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then     int F77_DUMMY_MAIN() { return 1; }
3592    rm -rf conftest*  #endif
3593    LIBS="$ac_save_LIBS"  int
3594    main ()
3595    {
3596    XtMalloc (0)
3597      ;
3598      return 0;
3599    }
3600    _ACEOF
3601    rm -f conftest.$ac_objext conftest$ac_exeext
3602    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3603      (eval $ac_link) 2>&5
3604      ac_status=$?
3605      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606      (exit $ac_status); } &&
3607             { ac_try='test -s conftest$ac_exeext'
3608      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609      (eval $ac_try) 2>&5
3610      ac_status=$?
3611      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612      (exit $ac_status); }; }; then
3613      LIBS=$ac_save_LIBS
3614  # We can link X programs with no special library path.  # We can link X programs with no special library path.
3615  ac_x_libraries=  ac_x_libraries=
3616  else  else
3617    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3618    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3619    rm -rf conftest*  LIBS=$ac_save_LIBS
3620    LIBS="$ac_save_LIBS"  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.  
 # Check X11 before X11Rn because it is often a symlink to the current release.  
 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \  
     /usr/X11/lib          \  
     /usr/X11R6/lib        \  
     /usr/X11R5/lib        \  
     /usr/X11R4/lib        \  
                           \  
     /usr/lib/X11          \  
     /usr/lib/X11R6        \  
     /usr/lib/X11R5        \  
     /usr/lib/X11R4        \  
                           \  
     /usr/local/X11/lib    \  
     /usr/local/X11R6/lib  \  
     /usr/local/X11R5/lib  \  
     /usr/local/X11R4/lib  \  
                           \  
     /usr/local/lib/X11    \  
     /usr/local/lib/X11R6  \  
     /usr/local/lib/X11R5  \  
     /usr/local/lib/X11R4  \  
                           \  
     /usr/X386/lib         \  
     /usr/x386/lib         \  
     /usr/XFree86/lib/X11  \  
                           \  
     /usr/lib              \  
     /usr/local/lib        \  
     /usr/unsupported/lib  \  
     /usr/athena/lib       \  
     /usr/local/x11r5/lib  \  
     /usr/lpp/Xamples/lib  \  
     /lib/usr/lib/X11      \  
                           \  
     /usr/openwin/lib      \  
     /usr/openwin/share/lib \  
     ; \  
3621  do  do
3622      # Don't even attempt the hair of trying to link an X program!
3623    for ac_extension in a so sl; do    for ac_extension in a so sl; do
3624      if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then      if test -r $ac_dir/libXt.$ac_extension; then
3625        ac_x_libraries=$ac_dir        ac_x_libraries=$ac_dir
3626        break 2        break 2
3627      fi      fi
3628    done    done
3629  done  done
3630  fi  fi
3631  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3632  fi # $ac_x_libraries = NO  fi # $ac_x_libraries = no
3633    
3634  if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then  if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3635    # Didn't find X anywhere.  Cache the known absence of X.    # Didn't find X anywhere.  Cache the known absence of X.
3636    ac_cv_have_x="have_x=no"    ac_cv_have_x="have_x=no"
3637  else  else
# Line 1991  else Line 3640  else
3640                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3641  fi  fi
3642  fi  fi
3643    
3644    fi    fi
3645    eval "$ac_cv_have_x"    eval "$ac_cv_have_x"
3646  fi # $with_x != no  fi # $with_x != no
3647    
3648  if test "$have_x" != yes; then  if test "$have_x" != yes; then
3649    echo "$ac_t""$have_x" 1>&6    echo "$as_me:$LINENO: result: $have_x" >&5
3650    echo "${ECHO_T}$have_x" >&6
3651    no_x=yes    no_x=yes
3652  else  else
3653    # 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 2005  else Line 3656  else
3656    # Update the cache value to reflect the command line values.    # Update the cache value to reflect the command line values.
3657    ac_cv_have_x="have_x=yes \    ac_cv_have_x="have_x=yes \
3658                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3659    echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6    echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3660    echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3661  fi  fi
3662    
3663  if test "$no_x" = yes; then  if test "$no_x" = yes; then
3664    # 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.
3665    cat >> confdefs.h <<\EOF  
3666    cat >>confdefs.h <<\_ACEOF
3667  #define X_DISPLAY_MISSING 1  #define X_DISPLAY_MISSING 1
3668  EOF  _ACEOF
3669    
3670    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3671  else  else
# Line 2025  else Line 3678  else
3678      X_LIBS="$X_LIBS -L$x_libraries"      X_LIBS="$X_LIBS -L$x_libraries"
3679      # 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
3680      # others require no space.  Words are not sufficient . . . .      # others require no space.  Words are not sufficient . . . .
3681      case "`(uname -sr) 2>/dev/null`" in      case `(uname -sr) 2>/dev/null` in
3682      "SunOS 5"*)      "SunOS 5"*)
3683        echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3684  echo "configure:2032: checking whether -R must be followed by a space" >&5  echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3685        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"        ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3686        cat > conftest.$ac_ext <<EOF        cat >conftest.$ac_ext <<_ACEOF
3687  #line 2035 "configure"  #line $LINENO "configure"
3688  #include "confdefs.h"  #include "confdefs.h"
3689    
3690  int main() {  #ifdef F77_DUMMY_MAIN
3691    #  ifdef __cplusplus
3692         extern "C"
3693    #  endif
3694       int F77_DUMMY_MAIN() { return 1; }
3695    #endif
3696    int
3697    main ()
3698    {
3699    
3700  ; return 0; }    ;
3701  EOF    return 0;
3702  if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3703    rm -rf conftest*  _ACEOF
3704    rm -f conftest.$ac_objext conftest$ac_exeext
3705    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3706      (eval $ac_link) 2>&5
3707      ac_status=$?
3708      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709      (exit $ac_status); } &&
3710             { ac_try='test -s conftest$ac_exeext'
3711      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712      (eval $ac_try) 2>&5
3713      ac_status=$?
3714      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715      (exit $ac_status); }; }; then
3716    ac_R_nospace=yes    ac_R_nospace=yes
3717  else  else
3718    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3719    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3720    rm -rf conftest*  ac_R_nospace=no
   ac_R_nospace=no  
3721  fi  fi
3722  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3723        if test $ac_R_nospace = yes; then        if test $ac_R_nospace = yes; then
3724          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
3725    echo "${ECHO_T}no" >&6
3726          X_LIBS="$X_LIBS -R$x_libraries"          X_LIBS="$X_LIBS -R$x_libraries"
3727        else        else
3728          LIBS="$ac_xsave_LIBS -R $x_libraries"          LIBS="$ac_xsave_LIBS -R $x_libraries"
3729          cat > conftest.$ac_ext <<EOF          cat >conftest.$ac_ext <<_ACEOF
3730  #line 2058 "configure"  #line $LINENO "configure"
3731  #include "confdefs.h"  #include "confdefs.h"
3732    
3733  int main() {  #ifdef F77_DUMMY_MAIN
3734    #  ifdef __cplusplus
3735         extern "C"
3736    #  endif
3737       int F77_DUMMY_MAIN() { return 1; }
3738    #endif
3739    int
3740    main ()
3741    {
3742    
3743  ; return 0; }    ;
3744  EOF    return 0;
3745  if { (eval echo configure:2065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3746    rm -rf conftest*  _ACEOF
3747    rm -f conftest.$ac_objext conftest$ac_exeext
3748    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3749      (eval $ac_link) 2>&5
3750      ac_status=$?
3751      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752      (exit $ac_status); } &&
3753             { ac_try='test -s conftest$ac_exeext'
3754      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755      (eval $ac_try) 2>&5
3756      ac_status=$?
3757      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758      (exit $ac_status); }; }; then
3759    ac_R_space=yes    ac_R_space=yes
3760  else  else
3761    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3762    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3763    rm -rf conftest*  ac_R_space=no
   ac_R_space=no  
3764  fi  fi
3765  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3766          if test $ac_R_space = yes; then          if test $ac_R_space = yes; then
3767            echo "$ac_t""yes" 1>&6            echo "$as_me:$LINENO: result: yes" >&5
3768    echo "${ECHO_T}yes" >&6
3769            X_LIBS="$X_LIBS -R $x_libraries"            X_LIBS="$X_LIBS -R $x_libraries"
3770          else          else
3771            echo "$ac_t""neither works" 1>&6            echo "$as_me:$LINENO: result: neither works" >&5
3772    echo "${ECHO_T}neither works" >&6
3773          fi          fi
3774        fi        fi
3775        LIBS="$ac_xsave_LIBS"        LIBS=$ac_xsave_LIBS
3776      esac      esac
3777    fi    fi
3778    
# Line 2089  rm -f conftest* Line 3783  rm -f conftest*
3783    if test "$ISC" = yes; then    if test "$ISC" = yes; then
3784      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3785    else    else
3786      # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X      # Martyn Johnson says this is needed for Ultrix, if the X
3787      # libraries were built with DECnet support.  And karl@cs.umb.edu says      # libraries were built with DECnet support.  And Karl Berry says
3788      # the Alpha needs dnet_stub (dnet does not exist).      # the Alpha needs dnet_stub (dnet does not exist).
3789      echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3790  echo "configure:2097: checking for dnet_ntoa in -ldnet" >&5      cat >conftest.$ac_ext <<_ACEOF
3791  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`  #line $LINENO "configure"
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   ac_save_LIBS="$LIBS"  
 LIBS="-ldnet  $LIBS"  
 cat > conftest.$ac_ext <<EOF  
 #line 2105 "configure"  
3792  #include "confdefs.h"  #include "confdefs.h"
3793    
3794  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3795    #ifdef __cplusplus
3796    extern "C"
3797    #endif
3798  /* 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
3799      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3800  char dnet_ntoa();  char XOpenDisplay ();
3801    #ifdef F77_DUMMY_MAIN
3802  int main() {  #  ifdef __cplusplus
3803  dnet_ntoa()       extern "C"
3804  ; return 0; }  #  endif
3805  EOF     int F77_DUMMY_MAIN() { return 1; }
3806  if { (eval echo configure:2116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
3807    rm -rf conftest*  int
3808    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
3809    {
3810    XOpenDisplay ();
3811      ;
3812      return 0;
3813    }
3814    _ACEOF
3815    rm -f conftest.$ac_objext conftest$ac_exeext
3816    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3817      (eval $ac_link) 2>&5
3818      ac_status=$?
3819      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820      (exit $ac_status); } &&
3821             { ac_try='test -s conftest$ac_exeext'
3822      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823      (eval $ac_try) 2>&5
3824      ac_status=$?
3825      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826      (exit $ac_status); }; }; then
3827      :
3828  else  else
3829    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3830    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3831    rm -rf conftest*  echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3832    eval "ac_cv_lib_$ac_lib_var=no"  echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3833  fi  if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3834  rm -f conftest*    echo $ECHO_N "(cached) $ECHO_C" >&6
3835  LIBS="$ac_save_LIBS"  else
3836      ac_check_lib_save_LIBS=$LIBS
3837    LIBS="-ldnet  $LIBS"
3838    cat >conftest.$ac_ext <<_ACEOF
3839    #line $LINENO "configure"
3840    #include "confdefs.h"
3841    
3842  fi  /* Override any gcc2 internal prototype to avoid an error.  */
3843  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
3844    echo "$ac_t""yes" 1>&6  extern "C"
3845    #endif
3846    /* We use char because int might match the return type of a gcc2
3847       builtin and then its argument prototype would still apply.  */
3848    char dnet_ntoa ();
3849    #ifdef F77_DUMMY_MAIN
3850    #  ifdef __cplusplus
3851         extern "C"
3852    #  endif
3853       int F77_DUMMY_MAIN() { return 1; }
3854    #endif
3855    int
3856    main ()
3857    {
3858    dnet_ntoa ();
3859      ;
3860      return 0;
3861    }
3862    _ACEOF
3863    rm -f conftest.$ac_objext conftest$ac_exeext
3864    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3865      (eval $ac_link) 2>&5
3866      ac_status=$?
3867      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868      (exit $ac_status); } &&
3869             { ac_try='test -s conftest$ac_exeext'
3870      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871      (eval $ac_try) 2>&5
3872      ac_status=$?
3873      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874      (exit $ac_status); }; }; then
3875      ac_cv_lib_dnet_dnet_ntoa=yes
3876    else
3877      echo "$as_me: failed program was:" >&5
3878    cat conftest.$ac_ext >&5
3879    ac_cv_lib_dnet_dnet_ntoa=no
3880    fi
3881    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3882    LIBS=$ac_check_lib_save_LIBS
3883    fi
3884    echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3885    echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3886    if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3887    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 else  
   echo "$ac_t""no" 1>&6  
3888  fi  fi
3889    
3890      if test $ac_cv_lib_dnet_dnet_ntoa = no; then      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3891        echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3892  echo "configure:2138: checking for dnet_ntoa in -ldnet_stub" >&5  echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3893  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3894  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
3895  else  else
3896    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
3897  LIBS="-ldnet_stub  $LIBS"  LIBS="-ldnet_stub  $LIBS"
3898  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
3899  #line 2146 "configure"  #line $LINENO "configure"
3900  #include "confdefs.h"  #include "confdefs.h"
3901    
3902  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3903    #ifdef __cplusplus
3904    extern "C"
3905    #endif
3906  /* 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
3907      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3908  char dnet_ntoa();  char dnet_ntoa ();
3909    #ifdef F77_DUMMY_MAIN
3910  int main() {  #  ifdef __cplusplus
3911  dnet_ntoa()       extern "C"
3912  ; return 0; }  #  endif
3913  EOF     int F77_DUMMY_MAIN() { return 1; }
3914  if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
3915    rm -rf conftest*  int
3916    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
3917  else  {
3918    echo "configure: failed program was:" >&5  dnet_ntoa ();
3919    cat conftest.$ac_ext >&5    ;
3920    rm -rf conftest*    return 0;
3921    eval "ac_cv_lib_$ac_lib_var=no"  }
3922  fi  _ACEOF
3923  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
3924  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3925      (eval $ac_link) 2>&5
3926  fi    ac_status=$?
3927  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
3929             { ac_try='test -s conftest$ac_exeext'
3930      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931      (eval $ac_try) 2>&5
3932      ac_status=$?
3933      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934      (exit $ac_status); }; }; then
3935      ac_cv_lib_dnet_stub_dnet_ntoa=yes
3936    else
3937      echo "$as_me: failed program was:" >&5
3938    cat conftest.$ac_ext >&5
3939    ac_cv_lib_dnet_stub_dnet_ntoa=no
3940    fi
3941    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3942    LIBS=$ac_check_lib_save_LIBS
3943    fi
3944    echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3945    echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3946    if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3947    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 else  
   echo "$ac_t""no" 1>&6  
3948  fi  fi
3949    
3950      fi      fi
3951    fi
3952    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3953        LIBS="$ac_xsave_LIBS"
3954    
3955      # 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,
3956      # to get the SysV transport functions.      # to get the SysV transport functions.
3957      # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)      # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3958      # needs -lnsl.      # needs -lnsl.
3959      # The nsl library prevents programs from opening the X display      # The nsl library prevents programs from opening the X display
3960      # on Irix 5.2, according to dickey@clark.net.      # on Irix 5.2, according to T.E. Dickey.
3961      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6      # The functions gethostbyname, getservbyname, and inet_addr are
3962  echo "configure:2186: checking for gethostbyname" >&5      # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3963  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then      echo "$as_me:$LINENO: checking for gethostbyname" >&5
3964    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3965    if test "${ac_cv_func_gethostbyname+set}" = set; then
3966      echo $ECHO_N "(cached) $ECHO_C" >&6
3967  else  else
3968    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3969  #line 2191 "configure"  #line $LINENO "configure"
3970  #include "confdefs.h"  #include "confdefs.h"
3971  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3972      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname (); below.  */
3973  #include <assert.h>  #include <assert.h>
3974  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3975    #ifdef __cplusplus
3976    extern "C"
3977    #endif
3978  /* 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
3979      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3980  char gethostbyname();  char gethostbyname ();
3981    char (*f) ();
3982  int main() {  
3983    #ifdef F77_DUMMY_MAIN
3984    #  ifdef __cplusplus
3985         extern "C"
3986    #  endif
3987       int F77_DUMMY_MAIN() { return 1; }
3988    #endif
3989    int
3990    main ()
3991    {
3992  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
3993      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
3994      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
3995  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3996  choke me  choke me
3997  #else  #else
3998  gethostbyname();  f = gethostbyname;
3999  #endif  #endif
4000    
4001  ; return 0; }    ;
4002  EOF    return 0;
4003  if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4004    rm -rf conftest*  _ACEOF
4005    eval "ac_cv_func_gethostbyname=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4006  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4007    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4008    cat conftest.$ac_ext >&5    ac_status=$?
4009    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010    eval "ac_cv_func_gethostbyname=no"    (exit $ac_status); } &&
4011  fi           { ac_try='test -s conftest$ac_exeext'
4012  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013      (eval $ac_try) 2>&5
4014      ac_status=$?
4015      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016      (exit $ac_status); }; }; then
4017      ac_cv_func_gethostbyname=yes
4018    else
4019      echo "$as_me: failed program was:" >&5
4020    cat conftest.$ac_ext >&5
4021    ac_cv_func_gethostbyname=no
4022  fi  fi
4023    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   :  
 else  
   echo "$ac_t""no" 1>&6  
4024  fi  fi
4025    echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4026    echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4027    
4028      if test $ac_cv_func_gethostbyname = no; then      if test $ac_cv_func_gethostbyname = no; then
4029        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4030  echo "configure:2235: checking for gethostbyname in -lnsl" >&5  echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4031  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4032  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4033  else  else
4034    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4035  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
4036  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4037  #line 2243 "configure"  #line $LINENO "configure"
4038  #include "confdefs.h"  #include "confdefs.h"
4039    
4040  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4041    #ifdef __cplusplus
4042    extern "C"
4043    #endif
4044  /* 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
4045      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4046  char gethostbyname();  char gethostbyname ();
4047    #ifdef F77_DUMMY_MAIN
4048  int main() {  #  ifdef __cplusplus
4049  gethostbyname()       extern "C"
4050  ; return 0; }  #  endif
4051  EOF     int F77_DUMMY_MAIN() { return 1; }
4052  if { (eval echo configure:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4053    rm -rf conftest*  int
4054    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4055  else  {
4056    echo "configure: failed program was:" >&5  gethostbyname ();
4057    cat conftest.$ac_ext >&5    ;
4058    rm -rf conftest*    return 0;
4059    eval "ac_cv_lib_$ac_lib_var=no"  }
4060    _ACEOF
4061    rm -f conftest.$ac_objext conftest$ac_exeext
4062    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4063      (eval $ac_link) 2>&5
4064      ac_status=$?
4065      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066      (exit $ac_status); } &&
4067             { ac_try='test -s conftest$ac_exeext'
4068      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069      (eval $ac_try) 2>&5
4070      ac_status=$?
4071      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072      (exit $ac_status); }; }; then
4073      ac_cv_lib_nsl_gethostbyname=yes
4074    else
4075      echo "$as_me: failed program was:" >&5
4076    cat conftest.$ac_ext >&5
4077    ac_cv_lib_nsl_gethostbyname=no
4078    fi
4079    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4080    LIBS=$ac_check_lib_save_LIBS
4081    fi
4082    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4083    echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4084    if test $ac_cv_lib_nsl_gethostbyname = yes; then
4085      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4086  fi  fi
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4087    
4088  fi        if test $ac_cv_lib_nsl_gethostbyname = no; then
4089  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then          echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4090    echo "$ac_t""yes" 1>&6  echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4091    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"  if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4092  else    echo $ECHO_N "(cached) $ECHO_C" >&6
4093    echo "$ac_t""no" 1>&6  else
4094      ac_check_lib_save_LIBS=$LIBS
4095    LIBS="-lbsd  $LIBS"
4096    cat >conftest.$ac_ext <<_ACEOF
4097    #line $LINENO "configure"
4098    #include "confdefs.h"
4099    
4100    /* Override any gcc2 internal prototype to avoid an error.  */
4101    #ifdef __cplusplus
4102    extern "C"
4103    #endif
4104    /* We use char because int might match the return type of a gcc2
4105       builtin and then its argument prototype would still apply.  */
4106    char gethostbyname ();
4107    #ifdef F77_DUMMY_MAIN
4108    #  ifdef __cplusplus
4109         extern "C"
4110    #  endif
4111       int F77_DUMMY_MAIN() { return 1; }
4112    #endif
4113    int
4114    main ()
4115    {
4116    gethostbyname ();
4117      ;
4118      return 0;
4119    }
4120    _ACEOF
4121    rm -f conftest.$ac_objext conftest$ac_exeext
4122    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4123      (eval $ac_link) 2>&5
4124      ac_status=$?
4125      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126      (exit $ac_status); } &&
4127             { ac_try='test -s conftest$ac_exeext'
4128      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129      (eval $ac_try) 2>&5
4130      ac_status=$?
4131      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132      (exit $ac_status); }; }; then
4133      ac_cv_lib_bsd_gethostbyname=yes
4134    else
4135      echo "$as_me: failed program was:" >&5
4136    cat conftest.$ac_ext >&5
4137    ac_cv_lib_bsd_gethostbyname=no
4138    fi
4139    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4140    LIBS=$ac_check_lib_save_LIBS
4141    fi
4142    echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4143    echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4144    if test $ac_cv_lib_bsd_gethostbyname = yes; then
4145      X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4146  fi  fi
4147    
4148          fi
4149      fi      fi
4150    
4151      # lieder@skyler.mavd.honeywell.com says without -lsocket,      # lieder@skyler.mavd.honeywell.com says without -lsocket,
4152      # socket/setsockopt and other routines are undefined under SCO ODT      # socket/setsockopt and other routines are undefined under SCO ODT
4153      # 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
4154      # on later versions), says simon@lia.di.epfl.ch: it contains      # on later versions), says Simon Leinen: it contains gethostby*
4155      # gethostby* variants that don't use the nameserver (or something).      # variants that don't use the nameserver (or something).  -lsocket
4156      # -lsocket must be given before -lnsl if both are needed.      # must be given before -lnsl if both are needed.  We assume that
4157      # We assume that if connect needs -lnsl, so does gethostbyname.      # if connect needs -lnsl, so does gethostbyname.
4158      echo $ac_n "checking for connect""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for connect" >&5
4159  echo "configure:2284: checking for connect" >&5  echo $ECHO_N "checking for connect... $ECHO_C" >&6
4160  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if test "${ac_cv_func_connect+set}" = set; then
4161    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4162  else  else
4163    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4164  #line 2289 "configure"  #line $LINENO "configure"
4165  #include "confdefs.h"  #include "confdefs.h"
4166  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4167      which can conflict with char connect(); below.  */      which can conflict with char connect (); below.  */
4168  #include <assert.h>  #include <assert.h>
4169  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4170    #ifdef __cplusplus
4171    extern "C"
4172    #endif
4173  /* 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
4174      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4175  char connect();  char connect ();
4176    char (*f) ();
4177  int main() {  
4178    #ifdef F77_DUMMY_MAIN
4179    #  ifdef __cplusplus
4180         extern "C"
4181    #  endif
4182       int F77_DUMMY_MAIN() { return 1; }
4183    #endif
4184    int
4185    main ()
4186    {
4187  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4188      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4189      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4190  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
4191  choke me  choke me
4192  #else  #else
4193  connect();  f = connect;
4194  #endif  #endif
4195    
4196  ; return 0; }    ;
4197  EOF    return 0;
4198  if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4199    rm -rf conftest*  _ACEOF
4200    eval "ac_cv_func_connect=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4201  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4203    cat conftest.$ac_ext >&5    ac_status=$?
4204    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205    eval "ac_cv_func_connect=no"    (exit $ac_status); } &&
4206  fi           { ac_try='test -s conftest$ac_exeext'
4207  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208      (eval $ac_try) 2>&5
4209      ac_status=$?
4210      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211      (exit $ac_status); }; }; then
4212      ac_cv_func_connect=yes
4213    else
4214      echo "$as_me: failed program was:" >&5
4215    cat conftest.$ac_ext >&5
4216    ac_cv_func_connect=no
4217  fi  fi
4218    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   :  
 else  
   echo "$ac_t""no" 1>&6  
4219  fi  fi
4220    echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4221    echo "${ECHO_T}$ac_cv_func_connect" >&6
4222    
4223      if test $ac_cv_func_connect = no; then      if test $ac_cv_func_connect = no; then
4224        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4225  echo "configure:2333: checking for connect in -lsocket" >&5  echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4226  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_connect+set}" = set; then
4227  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4228  else  else
4229    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4230  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4231  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4232  #line 2341 "configure"  #line $LINENO "configure"
4233  #include "confdefs.h"  #include "confdefs.h"
4234    
4235  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4236    #ifdef __cplusplus
4237    extern "C"
4238    #endif
4239  /* 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
4240      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4241  char connect();  char connect ();
4242    #ifdef F77_DUMMY_MAIN
4243  int main() {  #  ifdef __cplusplus
4244  connect()       extern "C"
4245  ; return 0; }  #  endif
4246  EOF     int F77_DUMMY_MAIN() { return 1; }
4247  if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4248    rm -rf conftest*  int
4249    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4250  else  {
4251    echo "configure: failed program was:" >&5  connect ();
4252    cat conftest.$ac_ext >&5    ;
4253    rm -rf conftest*    return 0;
4254    eval "ac_cv_lib_$ac_lib_var=no"  }
4255  fi  _ACEOF
4256  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4257  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4258      (eval $ac_link) 2>&5
4259  fi    ac_status=$?
4260  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4262             { ac_try='test -s conftest$ac_exeext'
4263      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264      (eval $ac_try) 2>&5
4265      ac_status=$?
4266      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267      (exit $ac_status); }; }; then
4268      ac_cv_lib_socket_connect=yes
4269    else
4270      echo "$as_me: failed program was:" >&5
4271    cat conftest.$ac_ext >&5
4272    ac_cv_lib_socket_connect=no
4273    fi
4274    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4275    LIBS=$ac_check_lib_save_LIBS
4276    fi
4277    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4278    echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4279    if test $ac_cv_lib_socket_connect = yes; then
4280    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 else  
   echo "$ac_t""no" 1>&6  
4281  fi  fi
4282    
4283      fi      fi
4284    
4285      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.      # Guillermo Gomez says -lposix is necessary on A/UX.
4286      echo $ac_n "checking for remove""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for remove" >&5
4287  echo "configure:2376: checking for remove" >&5  echo $ECHO_N "checking for remove... $ECHO_C" >&6
4288  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then  if test "${ac_cv_func_remove+set}" = set; then
4289    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4290  else  else
4291    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4292  #line 2381 "configure"  #line $LINENO "configure"
4293  #include "confdefs.h"  #include "confdefs.h"
4294  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4295      which can conflict with char remove(); below.  */      which can conflict with char remove (); below.  */
4296  #include <assert.h>  #include <assert.h>
4297  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4298    #ifdef __cplusplus
4299    extern "C"
4300    #endif
4301  /* 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
4302      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4303  char remove();  char remove ();
4304    char (*f) ();
4305  int main() {  
4306    #ifdef F77_DUMMY_MAIN
4307    #  ifdef __cplusplus
4308         extern "C"
4309    #  endif
4310       int F77_DUMMY_MAIN() { return 1; }
4311    #endif
4312    int
4313    main ()
4314    {
4315  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4316      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4317      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4318  #if defined (__stub_remove) || defined (__stub___remove)  #if defined (__stub_remove) || defined (__stub___remove)
4319  choke me  choke me
4320  #else  #else
4321  remove();  f = remove;
4322  #endif  #endif
4323    
4324  ; return 0; }    ;
4325  EOF    return 0;
4326  if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4327    rm -rf conftest*  _ACEOF
4328    eval "ac_cv_func_remove=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4329  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4330    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4331    cat conftest.$ac_ext >&5    ac_status=$?
4332    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333    eval "ac_cv_func_remove=no"    (exit $ac_status); } &&
4334             { ac_try='test -s conftest$ac_exeext'
4335      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336      (eval $ac_try) 2>&5
4337      ac_status=$?
4338      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339      (exit $ac_status); }; }; then
4340      ac_cv_func_remove=yes
4341    else
4342      echo "$as_me: failed program was:" >&5
4343    cat conftest.$ac_ext >&5
4344    ac_cv_func_remove=no
4345  fi  fi
4346  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 fi  
   
 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   :  
 else  
   echo "$ac_t""no" 1>&6  
4347  fi  fi
4348    echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4349    echo "${ECHO_T}$ac_cv_func_remove" >&6
4350    
4351      if test $ac_cv_func_remove = no; then      if test $ac_cv_func_remove = no; then
4352        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4353  echo "configure:2425: checking for remove in -lposix" >&5  echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4354  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_posix_remove+set}" = set; then
4355  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4356  else  else
4357    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4358  LIBS="-lposix  $LIBS"  LIBS="-lposix  $LIBS"
4359  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4360  #line 2433 "configure"  #line $LINENO "configure"
4361  #include "confdefs.h"  #include "confdefs.h"
4362    
4363  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4364    #ifdef __cplusplus
4365    extern "C"
4366    #endif
4367  /* 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
4368      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4369  char remove();  char remove ();
4370    #ifdef F77_DUMMY_MAIN
4371  int main() {  #  ifdef __cplusplus
4372  remove()       extern "C"
4373  ; return 0; }  #  endif
4374  EOF     int F77_DUMMY_MAIN() { return 1; }
4375  if { (eval echo configure:2444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4376    rm -rf conftest*  int
4377    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4378  else  {
4379    echo "configure: failed program was:" >&5  remove ();
4380    cat conftest.$ac_ext >&5    ;
4381    rm -rf conftest*    return 0;
4382    eval "ac_cv_lib_$ac_lib_var=no"  }
4383  fi  _ACEOF
4384  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4385  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4386      (eval $ac_link) 2>&5
4387  fi    ac_status=$?
4388  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4390             { ac_try='test -s conftest$ac_exeext'
4391      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392      (eval $ac_try) 2>&5
4393      ac_status=$?
4394      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395      (exit $ac_status); }; }; then
4396      ac_cv_lib_posix_remove=yes
4397    else
4398      echo "$as_me: failed program was:" >&5
4399    cat conftest.$ac_ext >&5
4400    ac_cv_lib_posix_remove=no
4401    fi
4402    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4403    LIBS=$ac_check_lib_save_LIBS
4404    fi
4405    echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4406    echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4407    if test $ac_cv_lib_posix_remove = yes; then
4408    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 else  
   echo "$ac_t""no" 1>&6  
4409  fi  fi
4410    
4411      fi      fi
4412    
4413      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4414      echo $ac_n "checking for shmat""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for shmat" >&5
4415  echo "configure:2468: checking for shmat" >&5  echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4416  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then  if test "${ac_cv_func_shmat+set}" = set; then
4417    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4418  else  else
4419    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4420  #line 2473 "configure"  #line $LINENO "configure"
4421  #include "confdefs.h"  #include "confdefs.h"
4422  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4423      which can conflict with char shmat(); below.  */      which can conflict with char shmat (); below.  */
4424  #include <assert.h>  #include <assert.h>
4425  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4426    #ifdef __cplusplus
4427    extern "C"
4428    #endif
4429  /* 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
4430      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4431  char shmat();  char shmat ();
4432    char (*f) ();
4433  int main() {  
4434    #ifdef F77_DUMMY_MAIN
4435    #  ifdef __cplusplus
4436         extern "C"
4437    #  endif
4438       int F77_DUMMY_MAIN() { return 1; }
4439    #endif
4440    int
4441    main ()
4442    {
4443  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4444      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4445      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4446  #if defined (__stub_shmat) || defined (__stub___shmat)  #if defined (__stub_shmat) || defined (__stub___shmat)
4447  choke me  choke me
4448  #else  #else
4449  shmat();  f = shmat;
4450  #endif  #endif
4451    
4452  ; return 0; }    ;
4453  EOF    return 0;
4454  if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4455    rm -rf conftest*  _ACEOF
4456    eval "ac_cv_func_shmat=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4457  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4458    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4459    cat conftest.$ac_ext >&5    ac_status=$?
4460    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461    eval "ac_cv_func_shmat=no"    (exit $ac_status); } &&
4462  fi           { ac_try='test -s conftest$ac_exeext'
4463  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464      (eval $ac_try) 2>&5
4465      ac_status=$?
4466      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467      (exit $ac_status); }; }; then
4468      ac_cv_func_shmat=yes
4469    else
4470      echo "$as_me: failed program was:" >&5
4471    cat conftest.$ac_ext >&5
4472    ac_cv_func_shmat=no
4473  fi  fi
4474    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   :  
 else  
   echo "$ac_t""no" 1>&6  
4475  fi  fi
4476    echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4477    echo "${ECHO_T}$ac_cv_func_shmat" >&6
4478    
4479      if test $ac_cv_func_shmat = no; then      if test $ac_cv_func_shmat = no; then
4480        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4481  echo "configure:2517: checking for shmat in -lipc" >&5  echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4482  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4483  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4484  else  else
4485    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4486  LIBS="-lipc  $LIBS"  LIBS="-lipc  $LIBS"
4487  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4488  #line 2525 "configure"  #line $LINENO "configure"
4489  #include "confdefs.h"  #include "confdefs.h"
4490    
4491  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4492    #ifdef __cplusplus
4493    extern "C"
4494    #endif
4495  /* 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
4496      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4497  char shmat();  char shmat ();
4498    #ifdef F77_DUMMY_MAIN
4499  int main() {  #  ifdef __cplusplus
4500  shmat()       extern "C"
4501  ; return 0; }  #  endif
4502  EOF     int F77_DUMMY_MAIN() { return 1; }
4503  if { (eval echo configure:2536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4504    rm -rf conftest*  int
4505    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4506  else  {
4507    echo "configure: failed program was:" >&5  shmat ();
4508    cat conftest.$ac_ext >&5    ;
4509    rm -rf conftest*    return 0;
4510    eval "ac_cv_lib_$ac_lib_var=no"  }
4511  fi  _ACEOF
4512  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4513  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4514      (eval $ac_link) 2>&5
4515  fi    ac_status=$?
4516  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4518             { ac_try='test -s conftest$ac_exeext'
4519      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520      (eval $ac_try) 2>&5
4521      ac_status=$?
4522      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523      (exit $ac_status); }; }; then
4524      ac_cv_lib_ipc_shmat=yes
4525    else
4526      echo "$as_me: failed program was:" >&5
4527    cat conftest.$ac_ext >&5
4528    ac_cv_lib_ipc_shmat=no
4529    fi
4530    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4531    LIBS=$ac_check_lib_save_LIBS
4532    fi
4533    echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4534    echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4535    if test $ac_cv_lib_ipc_shmat = yes; then
4536    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 else  
   echo "$ac_t""no" 1>&6  
4537  fi  fi
4538    
4539      fi      fi
4540    fi    fi
4541    
4542    # Check for libraries that X11R6 Xt/Xaw programs need.    # Check for libraries that X11R6 Xt/Xaw programs need.
4543    ac_save_LDFLAGS="$LDFLAGS"    ac_save_LDFLAGS=$LDFLAGS
4544    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4545    # 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
4546    # 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
4547    # 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.
4548    # These have to be linked with before -lX11, unlike the other    # These have to be linked with before -lX11, unlike the other
4549    # libraries we check for below, so use a different variable.    # libraries we check for below, so use a different variable.
4550    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.    # John Interrante, Karl Berry
4551    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4552  echo "configure:2569: checking for IceConnectionNumber in -lICE" >&5  echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4553  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4554  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4555  else  else
4556    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4557  LIBS="-lICE $X_EXTRA_LIBS $LIBS"  LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4558  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4559  #line 2577 "configure"  #line $LINENO "configure"
4560  #include "confdefs.h"  #include "confdefs.h"
4561    
4562  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4563    #ifdef __cplusplus
4564    extern "C"
4565    #endif
4566  /* 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
4567      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4568  char IceConnectionNumber();  char IceConnectionNumber ();
4569    #ifdef F77_DUMMY_MAIN
4570  int main() {  #  ifdef __cplusplus
4571  IceConnectionNumber()       extern "C"
4572  ; return 0; }  #  endif
4573  EOF     int F77_DUMMY_MAIN() { return 1; }
4574  if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4575    rm -rf conftest*  int
4576    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4577  else  {
4578    echo "configure: failed program was:" >&5  IceConnectionNumber ();
4579    cat conftest.$ac_ext >&5    ;
4580    rm -rf conftest*    return 0;
4581    eval "ac_cv_lib_$ac_lib_var=no"  }
4582  fi  _ACEOF
4583  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4584  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4585      (eval $ac_link) 2>&5
4586  fi    ac_status=$?
4587  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4589             { ac_try='test -s conftest$ac_exeext'
4590      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591      (eval $ac_try) 2>&5
4592      ac_status=$?
4593      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594      (exit $ac_status); }; }; then
4595      ac_cv_lib_ICE_IceConnectionNumber=yes
4596    else
4597      echo "$as_me: failed program was:" >&5
4598    cat conftest.$ac_ext >&5
4599    ac_cv_lib_ICE_IceConnectionNumber=no
4600    fi
4601    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4602    LIBS=$ac_check_lib_save_LIBS
4603    fi
4604    echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4605    echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4606    if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4607    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 else  
   echo "$ac_t""no" 1>&6  
4608  fi  fi
4609    
4610    LDFLAGS="$ac_save_LDFLAGS"    LDFLAGS=$ac_save_LDFLAGS
4611    
4612  fi  fi
4613    
# Line 2614  echo $X_EXTRA_LIBS Line 4617  echo $X_EXTRA_LIBS
4617  echo $X_PRE_LIBS  echo $X_PRE_LIBS
4618    
4619  miss=0  miss=0
4620  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXmu" >&5
4621  echo "configure:2619: checking for main in -lXmu" >&5  echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6
4622  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xmu_main+set}" = set; then
4623  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4624  else  else
4625    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4626  LIBS="-lXmu $X_LIBS $LIBS"  LIBS="-lXmu $X_LIBS $LIBS"
4627  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4628  #line 2627 "configure"  #line $LINENO "configure"
4629  #include "confdefs.h"  #include "confdefs.h"
4630    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4631    
4632  fi  #ifdef F77_DUMMY_MAIN
4633  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4634    echo "$ac_t""yes" 1>&6       extern "C"
4635    #  endif
4636       int F77_DUMMY_MAIN() { return 1; }
4637    #endif
4638    int
4639    main ()
4640    {
4641    main ();
4642      ;
4643      return 0;
4644    }
4645    _ACEOF
4646    rm -f conftest.$ac_objext conftest$ac_exeext
4647    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4648      (eval $ac_link) 2>&5
4649      ac_status=$?
4650      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651      (exit $ac_status); } &&
4652             { ac_try='test -s conftest$ac_exeext'
4653      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654      (eval $ac_try) 2>&5
4655      ac_status=$?
4656      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657      (exit $ac_status); }; }; then
4658      ac_cv_lib_Xmu_main=yes
4659    else
4660      echo "$as_me: failed program was:" >&5
4661    cat conftest.$ac_ext >&5
4662    ac_cv_lib_Xmu_main=no
4663    fi
4664    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4665    LIBS=$ac_check_lib_save_LIBS
4666    fi
4667    echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5
4668    echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6
4669    if test $ac_cv_lib_Xmu_main = yes; then
4670    X_LIBS="$X_LIBS -lXmu"    X_LIBS="$X_LIBS -lXmu"
4671  else  else
4672    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4673  fi  fi
4674    
4675  echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXt" >&5
4676  echo "configure:2656: checking for main in -lXt" >&5  echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
4677  ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xt_main+set}" = set; then
4678  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4679  else  else
4680    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4681  LIBS="-lXt $X_LIBS $LIBS"  LIBS="-lXt $X_LIBS $LIBS"
4682  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4683  #line 2664 "configure"  #line $LINENO "configure"
4684  #include "confdefs.h"  #include "confdefs.h"
4685    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4686    
4687  fi  #ifdef F77_DUMMY_MAIN
4688  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4689    echo "$ac_t""yes" 1>&6       extern "C"
4690    #  endif
4691       int F77_DUMMY_MAIN() { return 1; }
4692    #endif
4693    int
4694    main ()
4695    {
4696    main ();
4697      ;
4698      return 0;
4699    }
4700    _ACEOF
4701    rm -f conftest.$ac_objext conftest$ac_exeext
4702    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4703      (eval $ac_link) 2>&5
4704      ac_status=$?
4705      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706      (exit $ac_status); } &&
4707             { ac_try='test -s conftest$ac_exeext'
4708      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709      (eval $ac_try) 2>&5
4710      ac_status=$?
4711      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712      (exit $ac_status); }; }; then
4713      ac_cv_lib_Xt_main=yes
4714    else
4715      echo "$as_me: failed program was:" >&5
4716    cat conftest.$ac_ext >&5
4717    ac_cv_lib_Xt_main=no
4718    fi
4719    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4720    LIBS=$ac_check_lib_save_LIBS
4721    fi
4722    echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
4723    echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
4724    if test $ac_cv_lib_Xt_main = yes; then
4725    X_LIBS="$X_LIBS -lXt"    X_LIBS="$X_LIBS -lXt"
4726  else  else
4727    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4728  fi  fi
4729    
4730  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXext" >&5
4731  echo "configure:2693: checking for main in -lXext" >&5  echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6
4732  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xext_main+set}" = set; then
4733  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4734  else  else
4735    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4736  LIBS="-lXext $X_LIBS $LIBS"  LIBS="-lXext $X_LIBS $LIBS"
4737  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4738  #line 2701 "configure"  #line $LINENO "configure"
4739  #include "confdefs.h"  #include "confdefs.h"
4740    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4741    
4742  fi  #ifdef F77_DUMMY_MAIN
4743  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4744    echo "$ac_t""yes" 1>&6       extern "C"
4745    #  endif
4746       int F77_DUMMY_MAIN() { return 1; }
4747    #endif
4748    int
4749    main ()
4750    {
4751    main ();
4752      ;
4753      return 0;
4754    }
4755    _ACEOF
4756    rm -f conftest.$ac_objext conftest$ac_exeext
4757    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4758      (eval $ac_link) 2>&5
4759      ac_status=$?
4760      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761      (exit $ac_status); } &&
4762             { ac_try='test -s conftest$ac_exeext'
4763      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764      (eval $ac_try) 2>&5
4765      ac_status=$?
4766      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767      (exit $ac_status); }; }; then
4768      ac_cv_lib_Xext_main=yes
4769    else
4770      echo "$as_me: failed program was:" >&5
4771    cat conftest.$ac_ext >&5
4772    ac_cv_lib_Xext_main=no
4773    fi
4774    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4775    LIBS=$ac_check_lib_save_LIBS
4776    fi
4777    echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5
4778    echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6
4779    if test $ac_cv_lib_Xext_main = yes; then
4780    X_LIBS="$X_LIBS -lXext"    X_LIBS="$X_LIBS -lXext"
4781  else  else
4782    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4783  fi  fi
4784    
4785  echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXaw" >&5
4786  echo "configure:2730: checking for main in -lXaw" >&5  echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6
4787  ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xaw_main+set}" = set; then
4788  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4789  else  else
4790    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4791  LIBS="-lXaw $X_LIBS $LIBS"  LIBS="-lXaw $X_LIBS $LIBS"
4792  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4793  #line 2738 "configure"  #line $LINENO "configure"
4794  #include "confdefs.h"  #include "confdefs.h"
4795    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4796    
4797  fi  #ifdef F77_DUMMY_MAIN
4798  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4799    echo "$ac_t""yes" 1>&6       extern "C"
4800    #  endif
4801       int F77_DUMMY_MAIN() { return 1; }
4802    #endif
4803    int
4804    main ()
4805    {
4806    main ();
4807      ;
4808      return 0;
4809    }
4810    _ACEOF
4811    rm -f conftest.$ac_objext conftest$ac_exeext
4812    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813      (eval $ac_link) 2>&5
4814      ac_status=$?
4815      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816      (exit $ac_status); } &&
4817             { ac_try='test -s conftest$ac_exeext'
4818      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819      (eval $ac_try) 2>&5
4820      ac_status=$?
4821      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822      (exit $ac_status); }; }; then
4823      ac_cv_lib_Xaw_main=yes
4824    else
4825      echo "$as_me: failed program was:" >&5
4826    cat conftest.$ac_ext >&5
4827    ac_cv_lib_Xaw_main=no
4828    fi
4829    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4830    LIBS=$ac_check_lib_save_LIBS
4831    fi
4832    echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5
4833    echo "${ECHO_T}$ac_cv_lib_Xaw_main" >&6
4834    if test $ac_cv_lib_Xaw_main = yes; then
4835    X_LIBS="$X_LIBS -lXaw"    X_LIBS="$X_LIBS -lXaw"
4836  else  else
4837    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4838  fi  fi
4839    
4840  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lX11" >&5
4841  echo "configure:2767: checking for main in -lX11" >&5  echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
4842  ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_X11_main+set}" = set; then
4843  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4844  else  else
4845    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4846  LIBS="-lX11 $X_LIBS $LIBS"  LIBS="-lX11 $X_LIBS $LIBS"
4847  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4848  #line 2775 "configure"  #line $LINENO "configure"
4849  #include "confdefs.h"  #include "confdefs.h"
4850    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4851    
4852  fi  #ifdef F77_DUMMY_MAIN
4853  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4854    echo "$ac_t""yes" 1>&6       extern "C"
4855    #  endif
4856       int F77_DUMMY_MAIN() { return 1; }
4857    #endif
4858    int
4859    main ()
4860    {
4861    main ();
4862      ;
4863      return 0;
4864    }
4865    _ACEOF
4866    rm -f conftest.$ac_objext conftest$ac_exeext
4867    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4868      (eval $ac_link) 2>&5
4869      ac_status=$?
4870      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871      (exit $ac_status); } &&
4872             { ac_try='test -s conftest$ac_exeext'
4873      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874      (eval $ac_try) 2>&5
4875      ac_status=$?
4876      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877      (exit $ac_status); }; }; then
4878      ac_cv_lib_X11_main=yes
4879    else
4880      echo "$as_me: failed program was:" >&5
4881    cat conftest.$ac_ext >&5
4882    ac_cv_lib_X11_main=no
4883    fi
4884    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4885    LIBS=$ac_check_lib_save_LIBS
4886    fi
4887    echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
4888    echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
4889    if test $ac_cv_lib_X11_main = yes; then
4890    X_LIBS="$X_LIBS -lX11"    X_LIBS="$X_LIBS -lX11"
4891  else  else
4892    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4893  fi  fi
4894    
4895    
4896  if test "$miss" = "1" ; then  if test "$miss" = "1" ; then
4897          X_CFLAGS=          X_CFLAGS=
4898          X_LIBS=          X_LIBS=
# Line 2816  fi Line 4909  fi
4909    
4910  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
4911    
4912          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4913  echo "configure:2821: checking for dlopen in -ldl" >&5  echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4914  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4915  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4916  else  else
4917    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4918  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
4919  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4920  #line 2829 "configure"  #line $LINENO "configure"
4921  #include "confdefs.h"  #include "confdefs.h"
4922    
4923  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4924    #ifdef __cplusplus
4925    extern "C"
4926    #endif
4927  /* 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
4928      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4929  char dlopen();  char dlopen ();
4930    #ifdef F77_DUMMY_MAIN
4931  int main() {  #  ifdef __cplusplus
4932  dlopen()       extern "C"
4933  ; return 0; }  #  endif
4934  EOF     int F77_DUMMY_MAIN() { return 1; }
4935  if { (eval echo configure:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4936    rm -rf conftest*  int
4937    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4938  else  {
4939    echo "configure: failed program was:" >&5  dlopen ();
4940    cat conftest.$ac_ext >&5    ;
4941    rm -rf conftest*    return 0;
4942    eval "ac_cv_lib_$ac_lib_var=no"  }
4943  fi  _ACEOF
4944  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4945  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4946      (eval $ac_link) 2>&5
4947  fi    ac_status=$?
4948  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4950             { ac_try='test -s conftest$ac_exeext'
4951      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952      (eval $ac_try) 2>&5
4953      ac_status=$?
4954      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955      (exit $ac_status); }; }; then
4956      ac_cv_lib_dl_dlopen=yes
4957    else
4958      echo "$as_me: failed program was:" >&5
4959    cat conftest.$ac_ext >&5
4960    ac_cv_lib_dl_dlopen=no
4961    fi
4962    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4963    LIBS=$ac_check_lib_save_LIBS
4964    fi
4965    echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4966    echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4967    if test $ac_cv_lib_dl_dlopen = yes; then
4968    have_dl=1    have_dl=1
4969  else  else
4970    echo "$ac_t""no" 1>&6    have_dl=0
 have_dl=0  
4971  fi  fi
4972    
4973          if test "$have_dl" = "0" ; then          if test "$have_dl" = "0" ; then
# Line 2863  fi Line 4976  fi
4976          fi          fi
4977    
4978          TLIBS="$TLIBS -ldl -rdynamic"          TLIBS="$TLIBS -ldl -rdynamic"
4979          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
4980  #define USE_DLOPEN 1  #define USE_DLOPEN 1
4981  EOF  _ACEOF
4982    
4983  fi  fi
4984    
4985  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
4986          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`          if test "${ac_cv_header_bfd_h+set}" = set; then
4987  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for bfd.h" >&5
4988  echo "configure:2876: checking for bfd.h" >&5  echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
4989  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_bfd_h+set}" = set; then
4990    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4991  else  fi
4992    cat > conftest.$ac_ext <<EOF  echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
4993  #line 2881 "configure"  echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
4994    else
4995      # Is the header compilable?
4996    echo "$as_me:$LINENO: checking bfd.h usability" >&5
4997    echo $ECHO_N "checking bfd.h usability... $ECHO_C" >&6
4998    cat >conftest.$ac_ext <<_ACEOF
4999    #line $LINENO "configure"
5000  #include "confdefs.h"  #include "confdefs.h"
5001    $ac_includes_default
5002  #include <bfd.h>  #include <bfd.h>
5003  EOF  _ACEOF
5004  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  rm -f conftest.$ac_objext
5005  { (eval echo configure:2886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    (eval $ac_compile) 2>&5
5007  if test -z "$ac_err"; then    ac_status=$?
5008    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009    eval "ac_cv_header_$ac_safe=yes"    (exit $ac_status); } &&
5010             { ac_try='test -s conftest.$ac_objext'
5011      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012      (eval $ac_try) 2>&5
5013      ac_status=$?
5014      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015      (exit $ac_status); }; }; then
5016      ac_header_compiler=yes
5017    else
5018      echo "$as_me: failed program was:" >&5
5019    cat conftest.$ac_ext >&5
5020    ac_header_compiler=no
5021    fi
5022    rm -f conftest.$ac_objext conftest.$ac_ext
5023    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5024    echo "${ECHO_T}$ac_header_compiler" >&6
5025    
5026    # Is the header present?
5027    echo "$as_me:$LINENO: checking bfd.h presence" >&5
5028    echo $ECHO_N "checking bfd.h presence... $ECHO_C" >&6
5029    cat >conftest.$ac_ext <<_ACEOF
5030    #line $LINENO "configure"
5031    #include "confdefs.h"
5032    #include <bfd.h>
5033    _ACEOF
5034    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5035      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5036      ac_status=$?
5037      egrep -v '^ *\+' conftest.er1 >conftest.err
5038      rm -f conftest.er1
5039      cat conftest.err >&5
5040      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041      (exit $ac_status); } >/dev/null; then
5042      if test -s conftest.err; then
5043        ac_cpp_err=$ac_c_preproc_warn_flag
5044      else
5045        ac_cpp_err=
5046      fi
5047  else  else
5048    echo "$ac_err" >&5    ac_cpp_err=yes
5049    echo "configure: failed program was:" >&5  fi
5050    if test -z "$ac_cpp_err"; then
5051      ac_header_preproc=yes
5052    else
5053      echo "$as_me: failed program was:" >&5
5054    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5055    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
5056  fi  fi
5057  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
5058    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5059    echo "${ECHO_T}$ac_header_preproc" >&6
5060    
5061    # So?  What about this header?
5062    case $ac_header_compiler:$ac_header_preproc in
5063      yes:no )
5064        { echo "$as_me:$LINENO: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&5
5065    echo "$as_me: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5066        { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
5067    echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;};;
5068      no:yes )
5069        { echo "$as_me:$LINENO: WARNING: bfd.h: present but cannot be compiled" >&5
5070    echo "$as_me: WARNING: bfd.h: present but cannot be compiled" >&2;}
5071        { echo "$as_me:$LINENO: WARNING: bfd.h: check for missing prerequisite headers?" >&5
5072    echo "$as_me: WARNING: bfd.h: check for missing prerequisite headers?" >&2;}
5073        { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
5074    echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;};;
5075    esac
5076    echo "$as_me:$LINENO: checking for bfd.h" >&5
5077    echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
5078    if test "${ac_cv_header_bfd_h+set}" = set; then
5079      echo $ECHO_N "(cached) $ECHO_C" >&6
5080    else
5081      ac_cv_header_bfd_h=$ac_header_preproc
5082    fi
5083    echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
5084    echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
5085    
5086  fi  fi
5087  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test $ac_cv_header_bfd_h = yes; then
5088    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5
5089    echo $ac_n "checking for bfd_init in -lbfd""... $ac_c" 1>&6  echo $ECHO_N "checking for bfd_init in -lbfd... $ECHO_C" >&6
5090  echo "configure:2903: checking for bfd_init in -lbfd" >&5  if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then
5091  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`    echo $ECHO_N "(cached) $ECHO_C" >&6
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
5092  else  else
5093    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5094  LIBS="-lbfd -liberty $LIBS"  LIBS="-lbfd -liberty $LIBS"
5095  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5096  #line 2911 "configure"  #line $LINENO "configure"
5097  #include "confdefs.h"  #include "confdefs.h"
5098    
5099  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5100    #ifdef __cplusplus
5101    extern "C"
5102    #endif
5103  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
5104      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5105  char bfd_init();  char bfd_init ();
5106    #ifdef F77_DUMMY_MAIN
5107  int main() {  #  ifdef __cplusplus
5108  bfd_init()       extern "C"
5109  ; return 0; }  #  endif
5110  EOF     int F77_DUMMY_MAIN() { return 1; }
5111  if { (eval echo configure:2922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
5112    rm -rf conftest*  int
5113    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
5114  else  {
5115    echo "configure: failed program was:" >&5  bfd_init ();
5116    cat conftest.$ac_ext >&5    ;
5117    rm -rf conftest*    return 0;
5118    eval "ac_cv_lib_$ac_lib_var=no"  }
5119  fi  _ACEOF
5120  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
5121  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5122      (eval $ac_link) 2>&5
5123  fi    ac_status=$?
5124  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
5126             { ac_try='test -s conftest$ac_exeext'
5127      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128      (eval $ac_try) 2>&5
5129      ac_status=$?
5130      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131      (exit $ac_status); }; }; then
5132      ac_cv_lib_bfd_bfd_init=yes
5133    else
5134      echo "$as_me: failed program was:" >&5
5135    cat conftest.$ac_ext >&5
5136    ac_cv_lib_bfd_bfd_init=no
5137    fi
5138    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5139    LIBS=$ac_check_lib_save_LIBS
5140    fi
5141    echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_init" >&5
5142    echo "${ECHO_T}$ac_cv_lib_bfd_bfd_init" >&6
5143    if test $ac_cv_lib_bfd_bfd_init = yes; then
5144    #    #
5145                  # Old binutils appear to need CONST defined to const                  # Old binutils appear to need CONST defined to const
5146                  #                  #
5147                          echo $ac_n "checking if need to define CONST for bfd""... $ac_c" 1>&6                          echo "$as_me:$LINENO: checking if need to define CONST for bfd" >&5
5148  echo "configure:2941: checking if need to define CONST for bfd" >&5  echo $ECHO_N "checking if need to define CONST for bfd... $ECHO_C" >&6
5149                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
5150    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$as_me:$LINENO: result: cannot use bfd" >&5
5151    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5152  else  else
5153    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5154  #line 2946 "configure"  #line $LINENO "configure"
5155  #include "confdefs.h"  #include "confdefs.h"
5156  #define IN_GCC  #define IN_GCC
5157                                      #include <bfd.h>                                      #include <bfd.h>
5158                                      int main() { symbol_info t; return 0;}                                      int main() { symbol_info t; return 0;}
5159  EOF  _ACEOF
5160  if { (eval echo configure:2952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5161  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5162    echo "$ac_t""no" 1>&6    (eval $ac_link) 2>&5
5163  else    ac_status=$?
5164    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165    cat conftest.$ac_ext >&5    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5166    rm -fr conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167    if test "$cross_compiling" = yes; then    (eval $ac_try) 2>&5
5168    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    ac_status=$?
5169      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170      (exit $ac_status); }; }; then
5171      echo "$as_me:$LINENO: result: no" >&5
5172    echo "${ECHO_T}no" >&6
5173    else
5174      echo "$as_me: program exited with status $ac_status" >&5
5175    echo "$as_me: failed program was:" >&5
5176    cat conftest.$ac_ext >&5
5177    ( exit $ac_status )
5178    if test "$cross_compiling" = yes; then
5179      echo "$as_me:$LINENO: result: cannot use bfd" >&5
5180    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5181  else  else
5182    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5183  #line 2963 "configure"  #line $LINENO "configure"
5184  #include "confdefs.h"  #include "confdefs.h"
5185  #define CONST const  #define CONST const
5186                                              #define IN_GCC                                              #define IN_GCC
5187                                              #include <bfd.h>                                              #include <bfd.h>
5188                                              int main() {symbol_info t; return 0;}                                              int main() {symbol_info t; return 0;}
5189  EOF  _ACEOF
5190  if { (eval echo configure:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5191  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5192    echo "$ac_t""yes" 1>&6    (eval $ac_link) 2>&5
5193                                          cat >> confdefs.h <<\EOF    ac_status=$?
5194      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5196      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197      (eval $ac_try) 2>&5
5198      ac_status=$?
5199      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200      (exit $ac_status); }; }; then
5201      echo "$as_me:$LINENO: result: yes" >&5
5202    echo "${ECHO_T}yes" >&6
5203                                            cat >>confdefs.h <<\_ACEOF
5204  #define NEED_CONST 1  #define NEED_CONST 1
5205  EOF  _ACEOF
5206    
5207  else  else
5208    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5209    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5210    rm -fr conftest*  cat conftest.$ac_ext >&5
5211    echo "$ac_t""cannot use bfd" 1>&6 exit 1;  ( exit $ac_status )
5212    echo "$as_me:$LINENO: result: cannot use bfd" >&5
5213    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5214  fi  fi
5215  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5216  fi  fi
   
5217  fi  fi
5218  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5219  fi  fi
5220    
                           
 else  
   echo "$ac_t""no" 1>&6  
5221  fi  fi
5222    
 else  
   echo "$ac_t""no" 1>&6  
5223  fi  fi
5224    
5225    
5226          cat >> confdefs.h <<\EOF  
5227            cat >>confdefs.h <<\_ACEOF
5228  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
5229  EOF  _ACEOF
5230    
5231    
5232  #  #
5233  # BFD boolean syntax  # BFD boolean syntax
5234  #  #
5235    
5236          echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for useable bfd_boolean" >&5
5237  echo "configure:3010: checking for useable bfd_boolean" >&5  echo $ECHO_N "checking for useable bfd_boolean... $ECHO_C" >&6
5238          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
5239    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
5240    echo "${ECHO_T}no" >&6
5241  else  else
5242    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5243  #line 3015 "configure"  #line $LINENO "configure"
5244  #include "confdefs.h"  #include "confdefs.h"
5245  #define IN_GCC  #define IN_GCC
5246                      #include <bfd.h>                      #include <bfd.h>
5247                      bfd_boolean foo() {return FALSE;}                      bfd_boolean foo() {return FALSE;}
5248                      int main() {return 0;}                      int main() {return 0;}
5249  EOF  _ACEOF
5250  if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5251  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5252    echo "$ac_t""yes" 1>&6    (eval $ac_link) 2>&5
5253                  cat >> confdefs.h <<\EOF    ac_status=$?
5254      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5256      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257      (eval $ac_try) 2>&5
5258      ac_status=$?
5259      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260      (exit $ac_status); }; }; then
5261      echo "$as_me:$LINENO: result: yes" >&5
5262    echo "${ECHO_T}yes" >&6
5263                    cat >>confdefs.h <<\_ACEOF
5264  #define HAVE_BFD_BOOLEAN 1  #define HAVE_BFD_BOOLEAN 1
5265  EOF  _ACEOF
5266    
5267  else  else
5268    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5269    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5270    rm -fr conftest*  cat conftest.$ac_ext >&5
5271    echo "$ac_t""no" 1>&6  ( exit $ac_status )
5272    echo "$as_me:$LINENO: result: no" >&5
5273    echo "${ECHO_T}no" >&6
5274  fi  fi
5275  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5276  fi  fi
5277    
5278    
   
5279  #  #
5280  # FIXME: Need to workaround mingw before this point -- CM  # FIXME: Need to workaround mingw before this point -- CM
5281  #  #
# Line 3048  fi Line 5288  fi
5288                  else                  else
5289                     echo Guessing path to libbfd.a due to gcc bug                     echo Guessing path to libbfd.a due to gcc bug
5290                     TLIBS="$TLIBS /usr/lib/libbfd.a"                     TLIBS="$TLIBS /usr/lib/libbfd.a"
5291                  fi                    fi
5292                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then
5293                     TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a`"                     TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a`"
5294                  else                  else
5295                     echo Guessing path to libiberty.a due to gcc bug                     echo Guessing path to libiberty.a due to gcc bug
5296                     TLIBS="$TLIBS /usr/lib/libiberty.a"                     TLIBS="$TLIBS /usr/lib/libiberty.a"
5297                  fi                    fi
5298          else          else
5299                  TLIBS="$TLIBS -lbfd -liberty"                  TLIBS="$TLIBS -lbfd -liberty"
5300          fi          fi
# Line 3068  if test "$enable_locbfd" = "yes" ; then Line 5308  if test "$enable_locbfd" = "yes" ; then
5308          echo "#"          echo "#"
5309          echo "#"          echo "#"
5310          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..
5311  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "
5312          echo "#"          echo "#"
5313          echo "#"          echo "#"
5314          echo "#"          echo "#"
# Line 3082  if test "$enable_locbfd" = "yes" ; then Line 5322  if test "$enable_locbfd" = "yes" ; then
5322          echo "#"          echo "#"
5323          echo "#"          echo "#"
5324          cd binutils/bfd && chmod +x configure && ./configure && cd ../..          cd binutils/bfd && chmod +x configure && ./configure && cd ../..
5325  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "
5326          echo "#"          echo "#"
5327          echo "#"          echo "#"
5328          echo "#"          echo "#"
# Line 3090  if test "$enable_locbfd" = "yes" ; then Line 5330  if test "$enable_locbfd" = "yes" ; then
5330          echo "# ------------------------"          echo "# ------------------------"
5331          echo "#"          echo "#"
5332          TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"          TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"
5333          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
5334  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
5335  EOF  _ACEOF
5336    
5337          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"
5338            
5339  fi  fi
5340    
5341  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)
# Line 3104  fi Line 5344  fi
5344  # mechanism, in the PAGE macro.  This offset is subtracted from  # mechanism, in the PAGE macro.  This offset is subtracted from
5345  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
5346    
5347  echo $ac_n "checking size of long *""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for long *" >&5
5348  echo "configure:3109: checking size of long *" >&5  echo $ECHO_N "checking for long *... $ECHO_C" >&6
5349  if eval "test \"`echo '$''{'ac_cv_sizeof_long_p'+set}'`\" = set"; then  if test "${ac_cv_type_long_p+set}" = set; then
5350    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5351  else  else
5352      cat >conftest.$ac_ext <<_ACEOF
5353    #line $LINENO "configure"
5354    #include "confdefs.h"
5355    $ac_includes_default
5356    #ifdef F77_DUMMY_MAIN
5357    #  ifdef __cplusplus
5358         extern "C"
5359    #  endif
5360       int F77_DUMMY_MAIN() { return 1; }
5361    #endif
5362    int
5363    main ()
5364    {
5365    if ((long * *) 0)
5366      return 0;
5367    if (sizeof (long *))
5368      return 0;
5369      ;
5370      return 0;
5371    }
5372    _ACEOF
5373    rm -f conftest.$ac_objext
5374    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375      (eval $ac_compile) 2>&5
5376      ac_status=$?
5377      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378      (exit $ac_status); } &&
5379             { ac_try='test -s conftest.$ac_objext'
5380      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381      (eval $ac_try) 2>&5
5382      ac_status=$?
5383      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384      (exit $ac_status); }; }; then
5385      ac_cv_type_long_p=yes
5386    else
5387      echo "$as_me: failed program was:" >&5
5388    cat conftest.$ac_ext >&5
5389    ac_cv_type_long_p=no
5390    fi
5391    rm -f conftest.$ac_objext conftest.$ac_ext
5392    fi
5393    echo "$as_me:$LINENO: result: $ac_cv_type_long_p" >&5
5394    echo "${ECHO_T}$ac_cv_type_long_p" >&6
5395    
5396    echo "$as_me:$LINENO: checking size of long *" >&5
5397    echo $ECHO_N "checking size of long *... $ECHO_C" >&6
5398    if test "${ac_cv_sizeof_long_p+set}" = set; then
5399      echo $ECHO_N "(cached) $ECHO_C" >&6
5400    else
5401      if test "$ac_cv_type_long_p" = yes; then
5402      # The cast to unsigned long works around a bug in the HP C Compiler
5403      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5404      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5405      # This bug is HP SR number 8606223364.
5406    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
5407    ac_cv_sizeof_long_p=0    # Depending upon the size, compute the lo and hi bounds.
5408    cat >conftest.$ac_ext <<_ACEOF
5409    #line $LINENO "configure"
5410    #include "confdefs.h"
5411    $ac_includes_default
5412    #ifdef F77_DUMMY_MAIN
5413    #  ifdef __cplusplus
5414         extern "C"
5415    #  endif
5416       int F77_DUMMY_MAIN() { return 1; }
5417    #endif
5418    int
5419    main ()
5420    {
5421    static int test_array [1 - 2 * !(((long) (sizeof (long *))) >= 0)];
5422    test_array [0] = 0
5423    
5424      ;
5425      return 0;
5426    }
5427    _ACEOF
5428    rm -f conftest.$ac_objext
5429    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430      (eval $ac_compile) 2>&5
5431      ac_status=$?
5432      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433      (exit $ac_status); } &&
5434             { ac_try='test -s conftest.$ac_objext'
5435      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436      (eval $ac_try) 2>&5
5437      ac_status=$?
5438      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439      (exit $ac_status); }; }; then
5440      ac_lo=0 ac_mid=0
5441      while :; do
5442        cat >conftest.$ac_ext <<_ACEOF
5443    #line $LINENO "configure"
5444    #include "confdefs.h"
5445    $ac_includes_default
5446    #ifdef F77_DUMMY_MAIN
5447    #  ifdef __cplusplus
5448         extern "C"
5449    #  endif
5450       int F77_DUMMY_MAIN() { return 1; }
5451    #endif
5452    int
5453    main ()
5454    {
5455    static int test_array [1 - 2 * !(((long) (sizeof (long *))) <= $ac_mid)];
5456    test_array [0] = 0
5457    
5458      ;
5459      return 0;
5460    }
5461    _ACEOF
5462    rm -f conftest.$ac_objext
5463    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464      (eval $ac_compile) 2>&5
5465      ac_status=$?
5466      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467      (exit $ac_status); } &&
5468             { ac_try='test -s conftest.$ac_objext'
5469      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470      (eval $ac_try) 2>&5
5471      ac_status=$?
5472      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473      (exit $ac_status); }; }; then
5474      ac_hi=$ac_mid; break
5475    else
5476      echo "$as_me: failed program was:" >&5
5477    cat conftest.$ac_ext >&5
5478    ac_lo=`expr $ac_mid + 1`
5479                        if test $ac_lo -le $ac_mid; then
5480                          ac_lo= ac_hi=
5481                          break
5482                        fi
5483                        ac_mid=`expr 2 '*' $ac_mid + 1`
5484    fi
5485    rm -f conftest.$ac_objext conftest.$ac_ext
5486      done
5487  else  else
5488    cat > conftest.$ac_ext <<EOF    echo "$as_me: failed program was:" >&5
5489  #line 3117 "configure"  cat conftest.$ac_ext >&5
5490  #include "confdefs.h"  cat >conftest.$ac_ext <<_ACEOF
5491    #line $LINENO "configure"
5492    #include "confdefs.h"
5493    $ac_includes_default
5494    #ifdef F77_DUMMY_MAIN
5495    #  ifdef __cplusplus
5496         extern "C"
5497    #  endif
5498       int F77_DUMMY_MAIN() { return 1; }
5499    #endif
5500    int
5501    main ()
5502    {
5503    static int test_array [1 - 2 * !(((long) (sizeof (long *))) < 0)];
5504    test_array [0] = 0
5505    
5506      ;
5507      return 0;
5508    }
5509    _ACEOF
5510    rm -f conftest.$ac_objext
5511    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5512      (eval $ac_compile) 2>&5
5513      ac_status=$?
5514      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515      (exit $ac_status); } &&
5516             { ac_try='test -s conftest.$ac_objext'
5517      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518      (eval $ac_try) 2>&5
5519      ac_status=$?
5520      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521      (exit $ac_status); }; }; then
5522      ac_hi=-1 ac_mid=-1
5523      while :; do
5524        cat >conftest.$ac_ext <<_ACEOF
5525    #line $LINENO "configure"
5526    #include "confdefs.h"
5527    $ac_includes_default
5528    #ifdef F77_DUMMY_MAIN
5529    #  ifdef __cplusplus
5530         extern "C"
5531    #  endif
5532       int F77_DUMMY_MAIN() { return 1; }
5533    #endif
5534    int
5535    main ()
5536    {
5537    static int test_array [1 - 2 * !(((long) (sizeof (long *))) >= $ac_mid)];
5538    test_array [0] = 0
5539    
5540      ;
5541      return 0;
5542    }
5543    _ACEOF
5544    rm -f conftest.$ac_objext
5545    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546      (eval $ac_compile) 2>&5
5547      ac_status=$?
5548      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549      (exit $ac_status); } &&
5550             { ac_try='test -s conftest.$ac_objext'
5551      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552      (eval $ac_try) 2>&5
5553      ac_status=$?
5554      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555      (exit $ac_status); }; }; then
5556      ac_lo=$ac_mid; break
5557    else
5558      echo "$as_me: failed program was:" >&5
5559    cat conftest.$ac_ext >&5
5560    ac_hi=`expr '(' $ac_mid ')' - 1`
5561                           if test $ac_mid -le $ac_hi; then
5562                             ac_lo= ac_hi=
5563                             break
5564                           fi
5565                           ac_mid=`expr 2 '*' $ac_mid`
5566    fi
5567    rm -f conftest.$ac_objext conftest.$ac_ext
5568      done
5569    else
5570      echo "$as_me: failed program was:" >&5
5571    cat conftest.$ac_ext >&5
5572    ac_lo= ac_hi=
5573    fi
5574    rm -f conftest.$ac_objext conftest.$ac_ext
5575    fi
5576    rm -f conftest.$ac_objext conftest.$ac_ext
5577    # Binary search between lo and hi bounds.
5578    while test "x$ac_lo" != "x$ac_hi"; do
5579      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5580      cat >conftest.$ac_ext <<_ACEOF
5581    #line $LINENO "configure"
5582    #include "confdefs.h"
5583    $ac_includes_default
5584    #ifdef F77_DUMMY_MAIN
5585    #  ifdef __cplusplus
5586         extern "C"
5587    #  endif
5588       int F77_DUMMY_MAIN() { return 1; }
5589    #endif
5590    int
5591    main ()
5592    {
5593    static int test_array [1 - 2 * !(((long) (sizeof (long *))) <= $ac_mid)];
5594    test_array [0] = 0
5595    
5596      ;
5597      return 0;
5598    }
5599    _ACEOF
5600    rm -f conftest.$ac_objext
5601    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602      (eval $ac_compile) 2>&5
5603      ac_status=$?
5604      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605      (exit $ac_status); } &&
5606             { ac_try='test -s conftest.$ac_objext'
5607      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608      (eval $ac_try) 2>&5
5609      ac_status=$?
5610      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611      (exit $ac_status); }; }; then
5612      ac_hi=$ac_mid
5613    else
5614      echo "$as_me: failed program was:" >&5
5615    cat conftest.$ac_ext >&5
5616    ac_lo=`expr '(' $ac_mid ')' + 1`
5617    fi
5618    rm -f conftest.$ac_objext conftest.$ac_ext
5619    done
5620    case $ac_lo in
5621    ?*) ac_cv_sizeof_long_p=$ac_lo;;
5622    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long *), 77" >&5
5623    echo "$as_me: error: cannot compute sizeof (long *), 77" >&2;}
5624       { (exit 1); exit 1; }; } ;;
5625    esac
5626    else
5627      if test "$cross_compiling" = yes; then
5628      { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5629    echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5630       { (exit 1); exit 1; }; }
5631    else
5632      cat >conftest.$ac_ext <<_ACEOF
5633    #line $LINENO "configure"
5634    #include "confdefs.h"
5635    $ac_includes_default
5636    long longval () { return (long) (sizeof (long *)); }
5637    unsigned long ulongval () { return (long) (sizeof (long *)); }
5638  #include <stdio.h>  #include <stdio.h>
5639  #include <sys/types.h>  #include <stdlib.h>
5640  main()  #ifdef F77_DUMMY_MAIN
5641    #  ifdef __cplusplus
5642         extern "C"
5643    #  endif
5644       int F77_DUMMY_MAIN() { return 1; }
5645    #endif
5646    int
5647    main ()
5648  {  {
5649    FILE *f=fopen("conftestval", "w");  
5650    if (!f) exit(1);    FILE *f = fopen ("conftest.val", "w");
5651    fprintf(f, "%d\n", sizeof(long *));    if (! f)
5652    exit(0);      exit (1);
5653      if (((long) (sizeof (long *))) < 0)
5654        {
5655          long i = longval ();
5656          if (i != ((long) (sizeof (long *))))
5657            exit (1);
5658          fprintf (f, "%ld\n", i);
5659        }
5660      else
5661        {
5662          unsigned long i = ulongval ();
5663          if (i != ((long) (sizeof (long *))))
5664            exit (1);
5665          fprintf (f, "%lu\n", i);
5666        }
5667      exit (ferror (f) || fclose (f) != 0);
5668    
5669      ;
5670      return 0;
5671  }  }
5672  EOF  _ACEOF
5673  if { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5674  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5675    ac_cv_sizeof_long_p=`cat conftestval`    (eval $ac_link) 2>&5
5676      ac_status=$?
5677      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5679      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680      (eval $ac_try) 2>&5
5681      ac_status=$?
5682      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683      (exit $ac_status); }; }; then
5684      ac_cv_sizeof_long_p=`cat conftest.val`
5685    else
5686      echo "$as_me: program exited with status $ac_status" >&5
5687    echo "$as_me: failed program was:" >&5
5688    cat conftest.$ac_ext >&5
5689    ( exit $ac_status )
5690    { { echo "$as_me:$LINENO: error: cannot compute sizeof (long *), 77" >&5
5691    echo "$as_me: error: cannot compute sizeof (long *), 77" >&2;}
5692       { (exit 1); exit 1; }; }
5693    fi
5694    rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5695    fi
5696    fi
5697    rm -f conftest.val
5698  else  else
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -fr conftest*  
5699    ac_cv_sizeof_long_p=0    ac_cv_sizeof_long_p=0
5700  fi  fi
 rm -fr conftest*  
5701  fi  fi
5702    echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_p" >&5
5703  fi  echo "${ECHO_T}$ac_cv_sizeof_long_p" >&6
5704  echo "$ac_t""$ac_cv_sizeof_long_p" 1>&6  cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
5705  #define SIZEOF_LONG_P $ac_cv_sizeof_long_p  #define SIZEOF_LONG_P $ac_cv_sizeof_long_p
5706  EOF  _ACEOF
5707    
5708    
5709    
5710  for ac_hdr in endian.h  
5711    for ac_header in endian.h
5712  do  do
5713  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5714  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
5715  echo "configure:3153: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
5716  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5717    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
5718      echo $ECHO_N "(cached) $ECHO_C" >&6
5719    fi
5720    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5721    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5722    else
5723      # Is the header compilable?
5724    echo "$as_me:$LINENO: checking $ac_header usability" >&5
5725    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5726    cat >conftest.$ac_ext <<_ACEOF
5727    #line $LINENO "configure"
5728    #include "confdefs.h"
5729    $ac_includes_default
5730    #include <$ac_header>
5731    _ACEOF
5732    rm -f conftest.$ac_objext
5733    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734      (eval $ac_compile) 2>&5
5735      ac_status=$?
5736      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737      (exit $ac_status); } &&
5738             { ac_try='test -s conftest.$ac_objext'
5739      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740      (eval $ac_try) 2>&5
5741      ac_status=$?
5742      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743      (exit $ac_status); }; }; then
5744      ac_header_compiler=yes
5745    else
5746      echo "$as_me: failed program was:" >&5
5747    cat conftest.$ac_ext >&5
5748    ac_header_compiler=no
5749    fi
5750    rm -f conftest.$ac_objext conftest.$ac_ext
5751    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5752    echo "${ECHO_T}$ac_header_compiler" >&6
5753    
5754    # Is the header present?
5755    echo "$as_me:$LINENO: checking $ac_header presence" >&5
5756    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5757    cat >conftest.$ac_ext <<_ACEOF
5758    #line $LINENO "configure"
5759    #include "confdefs.h"
5760    #include <$ac_header>
5761    _ACEOF
5762    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5763      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5764      ac_status=$?
5765      egrep -v '^ *\+' conftest.er1 >conftest.err
5766      rm -f conftest.er1
5767      cat conftest.err >&5
5768      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769      (exit $ac_status); } >/dev/null; then
5770      if test -s conftest.err; then
5771        ac_cpp_err=$ac_c_preproc_warn_flag
5772      else
5773        ac_cpp_err=
5774      fi
5775  else  else
5776    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
5777  #line 3158 "configure"  fi
5778  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
5779  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
5780  else  else
5781    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
5782    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5783    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
5784  fi  fi
5785  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
5786    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5787      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
5788    cat >> confdefs.h <<EOF  
5789  #define $ac_tr_hdr 1  # So?  What about this header?
5790  EOF  case $ac_header_compiler:$ac_header_preproc in
5791   echo $ac_n "checking "endianness"""... $ac_c" 1>&6    yes:no )
5792  echo "configure:3184: checking "endianness"" >&5      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5793    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5794        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5795    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5796      no:yes )
5797        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5798    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5799        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5800    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5801        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5802    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5803    esac
5804    echo "$as_me:$LINENO: checking for $ac_header" >&5
5805    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5806    if eval "test \"\${$as_ac_Header+set}\" = set"; then
5807      echo $ECHO_N "(cached) $ECHO_C" >&6
5808    else
5809      eval "$as_ac_Header=$ac_header_preproc"
5810    fi
5811    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5812    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5813    
5814    fi
5815    if test `eval echo '${'$as_ac_Header'}'` = yes; then
5816      cat >>confdefs.h <<_ACEOF
5817    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5818    _ACEOF
5819     echo "$as_me:$LINENO: checking \"endianness\"" >&5
5820    echo $ECHO_N "checking \"endianness\"... $ECHO_C" >&6
5821          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
5822    echo "$ac_t""big" 1>&6    echo "$as_me:$LINENO: result: big" >&5
5823    echo "${ECHO_T}big" >&6
5824  else  else
5825    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5826  #line 3189 "configure"  #line $LINENO "configure"
5827  #include "confdefs.h"  #include "confdefs.h"
5828  #define __ARMEB__  #define __ARMEB__
5829                  #include <endian.h>                  #include <endian.h>
5830                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
5831  EOF  _ACEOF
5832  if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5833  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5834    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
5835      ac_status=$?
5836      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5838      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839      (eval $ac_try) 2>&5
5840      ac_status=$?
5841      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842      (exit $ac_status); }; }; then
5843      cat >>confdefs.h <<\_ACEOF
5844  #define LITTLE_END 1  #define LITTLE_END 1
5845  EOF  _ACEOF
5846   echo "$ac_t""little" 1>&6   echo "$as_me:$LINENO: result: little" >&5
5847  else  echo "${ECHO_T}little" >&6
5848    echo "configure: failed program was:" >&5  else
5849    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
5850    rm -fr conftest*  echo "$as_me: failed program was:" >&5
5851    echo "$ac_t""big" 1>&6  cat conftest.$ac_ext >&5
5852    ( exit $ac_status )
5853    echo "$as_me:$LINENO: result: big" >&5
5854    echo "${ECHO_T}big" >&6
5855  fi  fi
5856  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5857  fi  fi
   
 else  
   echo "$ac_t""no" 1>&6  
5858  fi  fi
5859    
5860  done  done
5861    
5862    
5863    
5864  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"finding DBEGIN\"" >&5
5865  echo "configure:3218: checking "finding DBEGIN"" >&5  echo $ECHO_N "checking \"finding DBEGIN\"... $ECHO_C" >&6
5866  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5867    dbegin=0    dbegin=0
5868  else  else
5869    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5870  #line 3223 "configure"  #line $LINENO "configure"
5871  #include "confdefs.h"  #include "confdefs.h"
5872  #include <stdio.h>  #include <stdio.h>
5873              #include <stdlib.h>              #include <stdlib.h>
# Line 3235  main() Line 5883  main()
5883    fclose(fp);    fclose(fp);
5884    return 0;    return 0;
5885  }  }
5886  EOF  _ACEOF
5887  if { (eval echo configure:3240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5888  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5889      (eval $ac_link) 2>&5
5890      ac_status=$?
5891      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5893      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894      (eval $ac_try) 2>&5
5895      ac_status=$?
5896      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897      (exit $ac_status); }; }; then
5898    dbegin=`cat conftest1`    dbegin=`cat conftest1`
5899  else  else
5900    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5901    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5902    rm -fr conftest*  cat conftest.$ac_ext >&5
5903    dbegin=0  ( exit $ac_status )
5904    dbegin=0
5905  fi  fi
5906  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5907  fi  fi
5908    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
5909  #define DBEGIN $dbegin \  #define DBEGIN $dbegin \
5910  /* where data begins */  /* where data begins */
5911    
5912  EOF  _ACEOF
5913    
5914  echo "$ac_t""got $dbegin" 1>&6  echo "$as_me:$LINENO: result: got $dbegin" >&5
5915    echo "${ECHO_T}got $dbegin" >&6
5916    
5917    
5918  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"finding CSTACK_ADDRESS\"" >&5
5919  echo "configure:3262: checking "finding CSTACK_ADDRESS"" >&5  echo $ECHO_N "checking \"finding CSTACK_ADDRESS\"... $ECHO_C" >&6
5920  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5921    cstack_address=0    cstack_address=0
5922  else  else
5923    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5924  #line 3267 "configure"  #line $LINENO "configure"
5925  #include "confdefs.h"  #include "confdefs.h"
5926  #include <stdio.h>  #include <stdio.h>
5927  main()  main()
# Line 3274  main() Line 5932  main()
5932    fclose(fp);    fclose(fp);
5933    return 0;    return 0;
5934  }  }
5935  EOF  _ACEOF
5936  if { (eval echo configure:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5937  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5938      (eval $ac_link) 2>&5
5939      ac_status=$?
5940      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5942      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943      (eval $ac_try) 2>&5
5944      ac_status=$?
5945      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946      (exit $ac_status); }; }; then
5947    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
5948  else  else
5949    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5950    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5951    rm -fr conftest*  cat conftest.$ac_ext >&5
5952    cstack_address=0  ( exit $ac_status )
5953    cstack_address=0
5954  fi  fi
5955  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5956  fi  fi
5957    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
5958  #define CSTACK_ADDRESS $cstack_address \  #define CSTACK_ADDRESS $cstack_address \
5959    
5960  EOF  _ACEOF
5961    
5962  echo "$ac_t""got $cstack_address" 1>&6  echo "$as_me:$LINENO: result: got $cstack_address" >&5
5963    echo "${ECHO_T}got $cstack_address" >&6
5964    
5965    
5966    
5967  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"sizeof long long int\"" >&5
5968  echo "configure:3301: checking "sizeof long long int"" >&5  echo $ECHO_N "checking \"sizeof long long int\"... $ECHO_C" >&6
5969  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5970    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
5971    echo "${ECHO_T}no" >&6
5972    
5973  else  else
5974    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5975  #line 3307 "configure"  #line $LINENO "configure"
5976  #include "confdefs.h"  #include "confdefs.h"
5977  #include <stdio.h>  #include <stdio.h>
5978  main()  main()
# Line 3312  main() Line 5981  main()
5981    return 1;    return 1;
5982  }  }
5983    
5984  EOF  _ACEOF
5985  if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5986  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5987    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
5988      ac_status=$?
5989      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5991      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992      (eval $ac_try) 2>&5
5993      ac_status=$?
5994      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995      (exit $ac_status); }; }; then
5996      cat >>confdefs.h <<\_ACEOF
5997  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
5998  EOF  _ACEOF
5999    
6000  echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: yes" >&5
6001    echo "${ECHO_T}yes" >&6
6002  else  else
6003    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6004    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6005    rm -fr conftest*  cat conftest.$ac_ext >&5
6006    echo "$ac_t""no" 1>&6  ( exit $ac_status )
6007    echo "$as_me:$LINENO: result: no" >&5
6008    echo "${ECHO_T}no" >&6
6009  fi  fi
6010  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6011  fi  fi
6012    
6013    
6014    
   
6015  # readline  # readline
6016  # Check whether --enable-readline or --disable-readline was given.  # Check whether --enable-readline or --disable-readline was given.
6017  if test "${enable_readline+set}" = set; then  if test "${enable_readline+set}" = set; then
6018    enableval="$enable_readline"    enableval="$enable_readline"
6019    :  
6020  else  else
6021    enable_readline="yes"    enable_readline="yes"
6022  fi  fi;
   
6023    
6024  # ansi lisp  # ansi lisp
6025  # Check whether --enable-ansi or --disable-ansi was given.  # Check whether --enable-ansi or --disable-ansi was given.
6026  if test "${enable_ansi+set}" = set; then  if test "${enable_ansi+set}" = set; then
6027    enableval="$enable_ansi"    enableval="$enable_ansi"
6028    :  
6029  else  else
6030    enable_ansi="no"    enable_ansi="no"
6031  fi  fi;
   
6032    
6033  if test "$enable_ansi" = "yes" ; then  if test "$enable_ansi" = "yes" ; then
6034          FLISP=saved_ansi_gcl;          FLISP=saved_ansi_gcl;
6035          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
6036  #define ANSI_COMMON_LISP 1  #define ANSI_COMMON_LISP 1
6037  EOF  _ACEOF
6038    
6039  else  else
6040          FLISP=saved_gcl          FLISP=saved_gcl
# Line 3365  fi Line 6043  fi
6043    
6044    
6045  # pagewidth  # pagewidth
6046  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for pagewidth" >&5
6047  echo "configure:3370: checking for pagewidth" >&5  echo $ECHO_N "checking for pagewidth... $ECHO_C" >&6
6048  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6049    PAGEWIDTH=0    PAGEWIDTH=0
6050  else  else
6051    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6052  #line 3375 "configure"  #line $LINENO "configure"
6053  #include "confdefs.h"  #include "confdefs.h"
6054  #include <stdio.h>  #include <stdio.h>
6055              #include <unistd.h>              #include <unistd.h>
6056  int main() {size_t i=getpagesize(),j;  int main() {size_t i=getpagesize(),j;
6057              FILE *fp=fopen("conftest1","w");              FILE *fp=fopen("conftest1","w");
6058              for (j=0;i>>=1;j++);              for (j=0;i>>=1;j++);
6059              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
6060              return 0;}              return 0;}
6061  EOF  _ACEOF
6062  if { (eval echo configure:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6063  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6064      (eval $ac_link) 2>&5
6065      ac_status=$?
6066      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6068      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069      (eval $ac_try) 2>&5
6070      ac_status=$?
6071      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072      (exit $ac_status); }; }; then
6073    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
6074  else  else
6075    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6076    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6077    rm -fr conftest*  cat conftest.$ac_ext >&5
6078    PAGEWIDTH=0  ( exit $ac_status )
6079  fi  PAGEWIDTH=0
6080  rm -fr conftest*  fi
6081  fi  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6082    fi
6083  echo "$ac_t""$PAGEWIDTH" 1>&6  echo "$as_me:$LINENO: result: $PAGEWIDTH" >&5
6084  cat >> confdefs.h <<EOF  echo "${ECHO_T}$PAGEWIDTH" >&6
6085    cat >>confdefs.h <<_ACEOF
6086  #define PAGEWIDTH $PAGEWIDTH  #define PAGEWIDTH $PAGEWIDTH
6087  EOF  _ACEOF
6088    
6089    
6090    
# Line 3405  EOF Line 6093  EOF
6093    
6094    
6095  # Check if Posix compliant getcwd exists, if not we'll use getwd.  # Check if Posix compliant getcwd exists, if not we'll use getwd.
6096    
6097  for ac_func in getcwd  for ac_func in getcwd
6098  do  do
6099  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6100  echo "configure:3412: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
6101  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6102    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
6103      echo $ECHO_N "(cached) $ECHO_C" >&6
6104  else  else
6105    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6106  #line 3417 "configure"  #line $LINENO "configure"
6107  #include "confdefs.h"  #include "confdefs.h"
6108  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6109      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
6110  #include <assert.h>  #include <assert.h>
6111  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6112    #ifdef __cplusplus
6113    extern "C"
6114    #endif
6115  /* 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
6116      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6117  char $ac_func();  char $ac_func ();
6118    char (*f) ();
6119  int main() {  
6120    #ifdef F77_DUMMY_MAIN
6121    #  ifdef __cplusplus
6122         extern "C"
6123    #  endif
6124       int F77_DUMMY_MAIN() { return 1; }
6125    #endif
6126    int
6127    main ()
6128    {
6129  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6130      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6131      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6132  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6133  choke me  choke me
6134  #else  #else
6135  $ac_func();  f = $ac_func;
6136  #endif  #endif
6137    
6138  ; return 0; }    ;
6139  EOF    return 0;
6140  if { (eval echo configure:3440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6141    rm -rf conftest*  _ACEOF
6142    eval "ac_cv_func_$ac_func=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6143  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6144    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6145    cat conftest.$ac_ext >&5    ac_status=$?
6146    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147    eval "ac_cv_func_$ac_func=no"    (exit $ac_status); } &&
6148  fi           { ac_try='test -s conftest$ac_exeext'
6149  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150  fi    (eval $ac_try) 2>&5
6151      ac_status=$?
6152      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153      (exit $ac_status); }; }; then
6154      eval "$as_ac_var=yes"
6155    else
6156      echo "$as_me: failed program was:" >&5
6157    cat conftest.$ac_ext >&5
6158    eval "$as_ac_var=no"
6159    fi
6160    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6161    fi
6162    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6163    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6164    if test `eval echo '${'$as_ac_var'}'` = yes; then
6165      cat >>confdefs.h <<_ACEOF
6166    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6167    _ACEOF
6168    
 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  
   cat >> confdefs.h <<EOF  
 #define $ac_tr_func 1  
 EOF  
   
 else  
   echo "$ac_t""no" 1>&6  
6169  fi  fi
6170  done  done
6171    
6172    
6173  for ac_func in getwd  for ac_func in getwd
6174  do  do
6175  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6176  echo "configure:3467: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
6177  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6178    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
6179      echo $ECHO_N "(cached) $ECHO_C" >&6
6180  else  else
6181    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6182  #line 3472 "configure"  #line $LINENO "configure"
6183  #include "confdefs.h"  #include "confdefs.h"
6184  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6185      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
6186  #include <assert.h>  #include <assert.h>
6187  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6188    #ifdef __cplusplus
6189    extern "C"
6190    #endif
6191  /* 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
6192      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6193  char $ac_func();  char $ac_func ();
6194    char (*f) ();
6195  int main() {  
6196    #ifdef F77_DUMMY_MAIN
6197    #  ifdef __cplusplus
6198         extern "C"
6199    #  endif
6200       int F77_DUMMY_MAIN() { return 1; }
6201    #endif
6202    int
6203    main ()
6204    {
6205  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6206      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6207      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6208  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6209  choke me  choke me
6210  #else  #else
6211  $ac_func();  f = $ac_func;
6212  #endif  #endif
6213    
6214  ; return 0; }    ;
6215  EOF    return 0;
6216  if { (eval echo configure:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6217    rm -rf conftest*  _ACEOF
6218    eval "ac_cv_func_$ac_func=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6219  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6220    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6221    cat conftest.$ac_ext >&5    ac_status=$?
6222    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223    eval "ac_cv_func_$ac_func=no"    (exit $ac_status); } &&
6224  fi           { ac_try='test -s conftest$ac_exeext'
6225  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226  fi    (eval $ac_try) 2>&5
6227      ac_status=$?
6228      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229      (exit $ac_status); }; }; then
6230      eval "$as_ac_var=yes"
6231    else
6232      echo "$as_me: failed program was:" >&5
6233    cat conftest.$ac_ext >&5
6234    eval "$as_ac_var=no"
6235    fi
6236    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6237    fi
6238    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6239    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6240    if test `eval echo '${'$as_ac_var'}'` = yes; then
6241      cat >>confdefs.h <<_ACEOF
6242    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6243    _ACEOF
6244    
 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  
   cat >> confdefs.h <<EOF  
 #define $ac_tr_func 1  
 EOF  
   
 else  
   echo "$ac_t""no" 1>&6  
6245  fi  fi
6246  done  done
6247    
6248  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for uname" >&5
6249  echo "configure:3520: checking for uname" >&5  echo $ECHO_N "checking for uname... $ECHO_C" >&6
6250  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if test "${ac_cv_func_uname+set}" = set; then
6251    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6252  else  else
6253    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6254  #line 3525 "configure"  #line $LINENO "configure"
6255  #include "confdefs.h"  #include "confdefs.h"
6256  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6257      which can conflict with char uname(); below.  */      which can conflict with char uname (); below.  */
6258  #include <assert.h>  #include <assert.h>
6259  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6260    #ifdef __cplusplus
6261    extern "C"
6262    #endif
6263  /* 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
6264      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6265  char uname();  char uname ();
6266    char (*f) ();
6267  int main() {  
6268    #ifdef F77_DUMMY_MAIN
6269    #  ifdef __cplusplus
6270         extern "C"
6271    #  endif
6272       int F77_DUMMY_MAIN() { return 1; }
6273    #endif
6274    int
6275    main ()
6276    {
6277  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6278      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6279      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6280  #if defined (__stub_uname) || defined (__stub___uname)  #if defined (__stub_uname) || defined (__stub___uname)
6281  choke me  choke me
6282  #else  #else
6283  uname();  f = uname;
6284  #endif  #endif
6285    
6286  ; return 0; }    ;
6287  EOF    return 0;
6288  if { (eval echo configure:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6289    rm -rf conftest*  _ACEOF
6290    eval "ac_cv_func_uname=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6291  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6292    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6293    cat conftest.$ac_ext >&5    ac_status=$?
6294    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295    eval "ac_cv_func_uname=no"    (exit $ac_status); } &&
6296  fi           { ac_try='test -s conftest$ac_exeext'
6297  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298  fi    (eval $ac_try) 2>&5
6299      ac_status=$?
6300  if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6302      ac_cv_func_uname=yes
6303    else
6304      echo "$as_me: failed program was:" >&5
6305    cat conftest.$ac_ext >&5
6306    ac_cv_func_uname=no
6307    fi
6308    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6309    fi
6310    echo "$as_me:$LINENO: result: $ac_cv_func_uname" >&5
6311    echo "${ECHO_T}$ac_cv_func_uname" >&6
6312    if test $ac_cv_func_uname = yes; then
6313    :    :
6314  else  else
6315    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
6316  #define NO_UNAME 1  #define NO_UNAME 1
6317  EOF  _ACEOF
6318    
6319  fi  fi
6320    
6321  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday" >&5
6322  echo "configure:3572: checking for gettimeofday" >&5  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
6323  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_gettimeofday+set}" = set; then
6324    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6325  else  else
6326    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6327  #line 3577 "configure"  #line $LINENO "configure"
6328  #include "confdefs.h"  #include "confdefs.h"
6329  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6330      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.  */
6331  #include <assert.h>  #include <assert.h>
6332  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6333    #ifdef __cplusplus
6334    extern "C"
6335    #endif
6336  /* 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
6337      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6338  char gettimeofday();  char gettimeofday ();
6339    char (*f) ();
6340  int main() {  
6341    #ifdef F77_DUMMY_MAIN
6342    #  ifdef __cplusplus
6343         extern "C"
6344    #  endif
6345       int F77_DUMMY_MAIN() { return 1; }
6346    #endif
6347    int
6348    main ()
6349    {
6350  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6351      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6352      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6353  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
6354  choke me  choke me
6355  #else  #else
6356  gettimeofday();  f = gettimeofday;
6357  #endif  #endif
6358    
6359  ; return 0; }    ;
6360  EOF    return 0;
6361  if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6362    rm -rf conftest*  _ACEOF
6363    eval "ac_cv_func_gettimeofday=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6364  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6366    cat conftest.$ac_ext >&5    ac_status=$?
6367    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368    eval "ac_cv_func_gettimeofday=no"    (exit $ac_status); } &&
6369  fi           { ac_try='test -s conftest$ac_exeext'
6370  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371  fi    (eval $ac_try) 2>&5
6372      ac_status=$?
6373  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6375      ac_cv_func_gettimeofday=yes
6376    else
6377      echo "$as_me: failed program was:" >&5
6378    cat conftest.$ac_ext >&5
6379    ac_cv_func_gettimeofday=no
6380    fi
6381    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6382    fi
6383    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
6384    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
6385    if test $ac_cv_func_gettimeofday = yes; then
6386    :    :
6387  else  else
6388    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
6389  #define NO_GETTOD 1  #define NO_GETTOD 1
6390  EOF  _ACEOF
6391    
6392  fi  fi
6393    
6394    
6395    
6396  for ac_hdr in sys/ioctl.h  
6397    for ac_header in sys/ioctl.h
6398  do  do
6399  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6400  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6401  echo "configure:3629: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
6402  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6403    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404      echo $ECHO_N "(cached) $ECHO_C" >&6
6405    fi
6406    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6407    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6408    else
6409      # Is the header compilable?
6410    echo "$as_me:$LINENO: checking $ac_header usability" >&5
6411    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6412    cat >conftest.$ac_ext <<_ACEOF
6413    #line $LINENO "configure"
6414    #include "confdefs.h"
6415    $ac_includes_default
6416    #include <$ac_header>
6417    _ACEOF
6418    rm -f conftest.$ac_objext
6419    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6420      (eval $ac_compile) 2>&5
6421      ac_status=$?
6422      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423      (exit $ac_status); } &&
6424             { ac_try='test -s conftest.$ac_objext'
6425      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426      (eval $ac_try) 2>&5
6427      ac_status=$?
6428      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429      (exit $ac_status); }; }; then
6430      ac_header_compiler=yes
6431    else
6432      echo "$as_me: failed program was:" >&5
6433    cat conftest.$ac_ext >&5
6434    ac_header_compiler=no
6435    fi
6436    rm -f conftest.$ac_objext conftest.$ac_ext
6437    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6438    echo "${ECHO_T}$ac_header_compiler" >&6
6439    
6440    # Is the header present?
6441    echo "$as_me:$LINENO: checking $ac_header presence" >&5
6442    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6443    cat >conftest.$ac_ext <<_ACEOF
6444    #line $LINENO "configure"
6445    #include "confdefs.h"
6446    #include <$ac_header>
6447    _ACEOF
6448    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6449      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6450      ac_status=$?
6451      egrep -v '^ *\+' conftest.er1 >conftest.err
6452      rm -f conftest.er1
6453      cat conftest.err >&5
6454      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455      (exit $ac_status); } >/dev/null; then
6456      if test -s conftest.err; then
6457        ac_cpp_err=$ac_c_preproc_warn_flag
6458      else
6459        ac_cpp_err=
6460      fi
6461  else  else
6462    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
6463  #line 3634 "configure"  fi
6464  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
6465  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
6466  else  else
6467    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
6468    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6469    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
6470  fi  fi
6471  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
6472    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6473      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
6474    cat >> confdefs.h <<EOF  
6475  #define $ac_tr_hdr 1  # So?  What about this header?
6476  EOF  case $ac_header_compiler:$ac_header_preproc in
6477      yes:no )
6478        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6479    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6480        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6481    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6482      no:yes )
6483        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6484    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6485        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6486    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6487        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6488    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6489    esac
6490    echo "$as_me:$LINENO: checking for $ac_header" >&5
6491    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6492    if eval "test \"\${$as_ac_Header+set}\" = set"; then
6493      echo $ECHO_N "(cached) $ECHO_C" >&6
6494  else  else
6495    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
6496    fi
6497    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6498    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6499    
6500    fi
6501    if test `eval echo '${'$as_ac_Header'}'` = yes; then
6502      cat >>confdefs.h <<_ACEOF
6503    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6504    _ACEOF
6505    
6506  fi  fi
6507    
6508  done  done
6509    
6510    
# Line 3674  done Line 6520  done
6520  #          declare it.  #          declare it.
6521  #--------------------------------------------------------------------  #--------------------------------------------------------------------
6522    
6523  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for BSDgettimeofday" >&5
6524  echo "configure:3679: checking for BSDgettimeofday" >&5  echo $ECHO_N "checking for BSDgettimeofday... $ECHO_C" >&6
6525  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_BSDgettimeofday+set}" = set; then
6526    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6527  else  else
6528    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6529  #line 3684 "configure"  #line $LINENO "configure"
6530  #include "confdefs.h"  #include "confdefs.h"
6531  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6532      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday (); below.  */
6533  #include <assert.h>  #include <assert.h>
6534  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6535    #ifdef __cplusplus
6536    extern "C"
6537    #endif
6538  /* 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
6539      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6540  char BSDgettimeofday();  char BSDgettimeofday ();
6541    char (*f) ();
6542  int main() {  
6543    #ifdef F77_DUMMY_MAIN
6544    #  ifdef __cplusplus
6545         extern "C"
6546    #  endif
6547       int F77_DUMMY_MAIN() { return 1; }
6548    #endif
6549    int
6550    main ()
6551    {
6552  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6553      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6554      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6555  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
6556  choke me  choke me
6557  #else  #else
6558  BSDgettimeofday();  f = BSDgettimeofday;
6559  #endif  #endif
6560    
6561  ; return 0; }    ;
6562  EOF    return 0;
6563  if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6564    rm -rf conftest*  _ACEOF
6565    eval "ac_cv_func_BSDgettimeofday=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6566  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6567    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6568    cat conftest.$ac_ext >&5    ac_status=$?
6569    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570    eval "ac_cv_func_BSDgettimeofday=no"    (exit $ac_status); } &&
6571  fi           { ac_try='test -s conftest$ac_exeext'
6572  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573  fi    (eval $ac_try) 2>&5
6574      ac_status=$?
6575  if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6577    cat >> confdefs.h <<\EOF    ac_cv_func_BSDgettimeofday=yes
6578    else
6579      echo "$as_me: failed program was:" >&5
6580    cat conftest.$ac_ext >&5
6581    ac_cv_func_BSDgettimeofday=no
6582    fi
6583    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6584    fi
6585    echo "$as_me:$LINENO: result: $ac_cv_func_BSDgettimeofday" >&5
6586    echo "${ECHO_T}$ac_cv_func_BSDgettimeofday" >&6
6587    if test $ac_cv_func_BSDgettimeofday = yes; then
6588      cat >>confdefs.h <<\_ACEOF
6589  #define HAVE_BSDGETTIMEOFDAY 1  #define HAVE_BSDGETTIMEOFDAY 1
6590  EOF  _ACEOF
6591    
6592  else  else
6593    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for gettimeofday" >&5
6594  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
6595  echo "configure:3728: checking for gettimeofday" >&5  if test "${ac_cv_func_gettimeofday+set}" = set; then
6596  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
6597  else  else
6598    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6599  #line 3733 "configure"  #line $LINENO "configure"
6600  #include "confdefs.h"  #include "confdefs.h"
6601  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6602      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.  */
6603  #include <assert.h>  #include <assert.h>
6604  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6605    #ifdef __cplusplus
6606    extern "C"
6607    #endif
6608  /* 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
6609      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6610  char gettimeofday();  char gettimeofday ();
6611    char (*f) ();
6612  int main() {  
6613    #ifdef F77_DUMMY_MAIN
6614    #  ifdef __cplusplus
6615         extern "C"
6616    #  endif
6617       int F77_DUMMY_MAIN() { return 1; }
6618    #endif
6619    int
6620    main ()
6621    {
6622  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6623      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6624      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6625  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
6626  choke me  choke me
6627  #else  #else
6628  gettimeofday();  f = gettimeofday;
6629  #endif  #endif
6630    
6631  ; return 0; }    ;
6632  EOF    return 0;
6633  if { (eval echo configure:3756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6634    rm -rf conftest*  _ACEOF
6635    eval "ac_cv_func_gettimeofday=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6636  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6637    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6638    cat conftest.$ac_ext >&5    ac_status=$?
6639    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640    eval "ac_cv_func_gettimeofday=no"    (exit $ac_status); } &&
6641  fi           { ac_try='test -s conftest$ac_exeext'
6642  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643  fi    (eval $ac_try) 2>&5
6644      ac_status=$?
6645  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6647      ac_cv_func_gettimeofday=yes
6648    else
6649      echo "$as_me: failed program was:" >&5
6650    cat conftest.$ac_ext >&5
6651    ac_cv_func_gettimeofday=no
6652    fi
6653    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6654    fi
6655    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
6656    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
6657    if test $ac_cv_func_gettimeofday = yes; then
6658    :    :
6659  else  else
6660    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
6661  #define NO_GETTOD 1  #define NO_GETTOD 1
6662  EOF  _ACEOF
6663    
6664  fi  fi
6665    
6666  fi  fi
6667    
6668    
6669  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday declaration" >&5
6670  echo "configure:3783: checking for gettimeofday declaration" >&5  echo $ECHO_N "checking for gettimeofday declaration... $ECHO_C" >&6
6671    
6672  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6673  #line 3786 "configure"  #line $LINENO "configure"
6674  #include "confdefs.h"  #include "confdefs.h"
6675  #include <sys/time.h>  #include <sys/time.h>
6676  EOF  
6677    _ACEOF
6678  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6679    egrep "gettimeofday" >/dev/null 2>&1; then    egrep "gettimeofday" >/dev/null 2>&1; then
6680    rm -rf conftest*    echo "$as_me:$LINENO: result: present" >&5
6681    echo "$ac_t""present" 1>&6  echo "${ECHO_T}present" >&6
6682  else  else
6683    rm -rf conftest*    echo "$as_me:$LINENO: result: missing" >&5
6684    echo "$ac_t""missing" 1>&6  echo "${ECHO_T}missing" >&6
6685                   cat >> confdefs.h <<\EOF                   cat >>confdefs.h <<\_ACEOF
6686  #define GETTOD_NOT_DECLARED 1  #define GETTOD_NOT_DECLARED 1
6687  EOF  _ACEOF
6688    
6689  fi  fi
6690  rm -f conftest*  rm -f conftest*
6691    
6692    
6693    
6694  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sin in -lm" >&5
6695  echo "configure:3807: checking for sin in -lm" >&5  echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6696  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_m_sin+set}" = set; then
6697  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
6698  else  else
6699    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
6700  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
6701  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6702  #line 3815 "configure"  #line $LINENO "configure"
6703  #include "confdefs.h"  #include "confdefs.h"
6704    
6705  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6706    #ifdef __cplusplus
6707    extern "C"
6708    #endif
6709  /* 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
6710      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6711  char sin();  char sin ();
6712    #ifdef F77_DUMMY_MAIN
6713  int main() {  #  ifdef __cplusplus
6714  sin()       extern "C"
6715  ; return 0; }  #  endif
6716  EOF     int F77_DUMMY_MAIN() { return 1; }
6717  if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
6718    rm -rf conftest*  int
6719    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
6720  else  {
6721    echo "configure: failed program was:" >&5  sin ();
6722    cat conftest.$ac_ext >&5    ;
6723    rm -rf conftest*    return 0;
6724    eval "ac_cv_lib_$ac_lib_var=no"  }
6725  fi  _ACEOF
6726  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
6727  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6728      (eval $ac_link) 2>&5
6729  fi    ac_status=$?
6730  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
6732             { ac_try='test -s conftest$ac_exeext'
6733      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734      (eval $ac_try) 2>&5
6735      ac_status=$?
6736      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737      (exit $ac_status); }; }; then
6738      ac_cv_lib_m_sin=yes
6739    else
6740      echo "$as_me: failed program was:" >&5
6741    cat conftest.$ac_ext >&5
6742    ac_cv_lib_m_sin=no
6743    fi
6744    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6745    LIBS=$ac_check_lib_save_LIBS
6746    fi
6747    echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6748    echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6749    if test $ac_cv_lib_m_sin = yes; then
6750    LIBS="${LIBS} -lm"    LIBS="${LIBS} -lm"
6751  else  else
6752    echo "$ac_t""no" 1>&6    true
 true  
6753  fi  fi
6754    
6755  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lmingwex" >&5
6756  echo "configure:3848: checking for main in -lmingwex" >&5  echo $ECHO_N "checking for main in -lmingwex... $ECHO_C" >&6
6757  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_mingwex_main+set}" = set; then
6758  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
6759  else  else
6760    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
6761  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
6762  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6763  #line 3856 "configure"  #line $LINENO "configure"
6764  #include "confdefs.h"  #include "confdefs.h"
6765    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
6766    
6767  fi  #ifdef F77_DUMMY_MAIN
6768  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
6769    echo "$ac_t""yes" 1>&6       extern "C"
6770    #  endif
6771       int F77_DUMMY_MAIN() { return 1; }
6772    #endif
6773    int
6774    main ()
6775    {
6776    main ();
6777      ;
6778      return 0;
6779    }
6780    _ACEOF
6781    rm -f conftest.$ac_objext conftest$ac_exeext
6782    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6783      (eval $ac_link) 2>&5
6784      ac_status=$?
6785      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786      (exit $ac_status); } &&
6787             { ac_try='test -s conftest$ac_exeext'
6788      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789      (eval $ac_try) 2>&5
6790      ac_status=$?
6791      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792      (exit $ac_status); }; }; then
6793      ac_cv_lib_mingwex_main=yes
6794    else
6795      echo "$as_me: failed program was:" >&5
6796    cat conftest.$ac_ext >&5
6797    ac_cv_lib_mingwex_main=no
6798    fi
6799    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6800    LIBS=$ac_check_lib_save_LIBS
6801    fi
6802    echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_main" >&5
6803    echo "${ECHO_T}$ac_cv_lib_mingwex_main" >&6
6804    if test $ac_cv_lib_mingwex_main = yes; then
6805    LIBS="${LIBS} -lmingwex"    LIBS="${LIBS} -lmingwex"
6806  else  else
6807    echo "$ac_t""no" 1>&6    true
 true  
6808  fi  fi
6809    
6810    
6811  # Should really find a way to check for prototypes, but this  # Should really find a way to check for prototypes, but this
6812  # basically works for now.  CM  # basically works for now.  CM
6813  #  #
6814  for ac_hdr in math.h  
6815    for ac_header in math.h
6816  do  do
6817  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6818  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6819  echo "configure:3892: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
6820  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6821    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6822      echo $ECHO_N "(cached) $ECHO_C" >&6
6823    fi
6824    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6825    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6826    else
6827      # Is the header compilable?
6828    echo "$as_me:$LINENO: checking $ac_header usability" >&5
6829    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6830    cat >conftest.$ac_ext <<_ACEOF
6831    #line $LINENO "configure"
6832    #include "confdefs.h"
6833    $ac_includes_default
6834    #include <$ac_header>
6835    _ACEOF
6836    rm -f conftest.$ac_objext
6837    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6838      (eval $ac_compile) 2>&5
6839      ac_status=$?
6840      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841      (exit $ac_status); } &&
6842             { ac_try='test -s conftest.$ac_objext'
6843      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844      (eval $ac_try) 2>&5
6845      ac_status=$?
6846      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847      (exit $ac_status); }; }; then
6848      ac_header_compiler=yes
6849    else
6850      echo "$as_me: failed program was:" >&5
6851    cat conftest.$ac_ext >&5
6852    ac_header_compiler=no
6853    fi
6854    rm -f conftest.$ac_objext conftest.$ac_ext
6855    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6856    echo "${ECHO_T}$ac_header_compiler" >&6
6857    
6858    # Is the header present?
6859    echo "$as_me:$LINENO: checking $ac_header presence" >&5
6860    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6861    cat >conftest.$ac_ext <<_ACEOF
6862    #line $LINENO "configure"
6863    #include "confdefs.h"
6864    #include <$ac_header>
6865    _ACEOF
6866    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6867      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6868      ac_status=$?
6869      egrep -v '^ *\+' conftest.er1 >conftest.err
6870      rm -f conftest.er1
6871      cat conftest.err >&5
6872      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873      (exit $ac_status); } >/dev/null; then
6874      if test -s conftest.err; then
6875        ac_cpp_err=$ac_c_preproc_warn_flag
6876      else
6877        ac_cpp_err=
6878      fi
6879  else  else
6880    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
6881  #line 3897 "configure"  fi
6882  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
6883  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
6884  else  else
6885    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
6886    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6887    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
6888  fi  fi
6889  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
6890  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6891  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
6892    echo "$ac_t""yes" 1>&6  
6893      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
6894    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
6895  #define $ac_tr_hdr 1    yes:no )
6896  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6897   cat >> confdefs.h <<\EOF  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6898        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6899    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6900      no:yes )
6901        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6902    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6903        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6904    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6905        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6906    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6907    esac
6908    echo "$as_me:$LINENO: checking for $ac_header" >&5
6909    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6910    if eval "test \"\${$as_ac_Header+set}\" = set"; then
6911      echo $ECHO_N "(cached) $ECHO_C" >&6
6912    else
6913      eval "$as_ac_Header=$ac_header_preproc"
6914    fi
6915    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6916    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6917    
6918    fi
6919    if test `eval echo '${'$as_ac_Header'}'` = yes; then
6920      cat >>confdefs.h <<_ACEOF
6921    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6922    _ACEOF
6923     cat >>confdefs.h <<\_ACEOF
6924  #define HAVE_MATH_H 1  #define HAVE_MATH_H 1
6925  EOF  _ACEOF
6926    
 else  
   echo "$ac_t""no" 1>&6  
6927  fi  fi
6928    
6929  done  done
6930    
6931    
6932  #  #
6933  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM
6934  #  #
6935  for ac_hdr in values.h  
6936    for ac_header in values.h
6937  do  do
6938  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6939  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6940  echo "configure:3939: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
6941  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6942    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6943      echo $ECHO_N "(cached) $ECHO_C" >&6
6944    fi
6945    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6946    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6947    else
6948      # Is the header compilable?
6949    echo "$as_me:$LINENO: checking $ac_header usability" >&5
6950    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6951    cat >conftest.$ac_ext <<_ACEOF
6952    #line $LINENO "configure"
6953    #include "confdefs.h"
6954    $ac_includes_default
6955    #include <$ac_header>
6956    _ACEOF
6957    rm -f conftest.$ac_objext
6958    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6959      (eval $ac_compile) 2>&5
6960      ac_status=$?
6961      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962      (exit $ac_status); } &&
6963             { ac_try='test -s conftest.$ac_objext'
6964      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965      (eval $ac_try) 2>&5
6966      ac_status=$?
6967      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968      (exit $ac_status); }; }; then
6969      ac_header_compiler=yes
6970    else
6971      echo "$as_me: failed program was:" >&5
6972    cat conftest.$ac_ext >&5
6973    ac_header_compiler=no
6974    fi
6975    rm -f conftest.$ac_objext conftest.$ac_ext
6976    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6977    echo "${ECHO_T}$ac_header_compiler" >&6
6978    
6979    # Is the header present?
6980    echo "$as_me:$LINENO: checking $ac_header presence" >&5
6981    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6982    cat >conftest.$ac_ext <<_ACEOF
6983    #line $LINENO "configure"
6984    #include "confdefs.h"
6985    #include <$ac_header>
6986    _ACEOF
6987    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6988      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6989      ac_status=$?
6990      egrep -v '^ *\+' conftest.er1 >conftest.err
6991      rm -f conftest.er1
6992      cat conftest.err >&5
6993      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994      (exit $ac_status); } >/dev/null; then
6995      if test -s conftest.err; then
6996        ac_cpp_err=$ac_c_preproc_warn_flag
6997      else
6998        ac_cpp_err=
6999      fi
7000  else  else
7001    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7002  #line 3944 "configure"  fi
7003  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7004  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
7005  else  else
7006    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7007    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7008    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
7009  fi  fi
7010  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
7011    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7012      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
7013    cat >> confdefs.h <<EOF  
7014  #define $ac_tr_hdr 1  # So?  What about this header?
7015  EOF  case $ac_header_compiler:$ac_header_preproc in
7016   cat >> confdefs.h <<\EOF    yes:no )
7017        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7018    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7019        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7020    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7021      no:yes )
7022        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7023    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7024        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7025    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7026        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7027    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7028    esac
7029    echo "$as_me:$LINENO: checking for $ac_header" >&5
7030    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7031    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7032      echo $ECHO_N "(cached) $ECHO_C" >&6
7033    else
7034      eval "$as_ac_Header=$ac_header_preproc"
7035    fi
7036    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7037    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7038    
7039    fi
7040    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7041      cat >>confdefs.h <<_ACEOF
7042    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7043    _ACEOF
7044     cat >>confdefs.h <<\_ACEOF
7045  #define HAVE_VALUES_H 1  #define HAVE_VALUES_H 1
7046  EOF  _ACEOF
7047    
 else  
   echo "$ac_t""no" 1>&6  
7048  fi  fi
7049    
7050  done  done
7051    
7052    
7053  #  #
7054  # 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
7055  #  #
7056  for ac_hdr in float.h  
7057    for ac_header in float.h
7058  do  do
7059  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7060  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7061  echo "configure:3986: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7062  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7063    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7064      echo $ECHO_N "(cached) $ECHO_C" >&6
7065    fi
7066    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7067    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7068    else
7069      # Is the header compilable?
7070    echo "$as_me:$LINENO: checking $ac_header usability" >&5
7071    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7072    cat >conftest.$ac_ext <<_ACEOF
7073    #line $LINENO "configure"
7074    #include "confdefs.h"
7075    $ac_includes_default
7076    #include <$ac_header>
7077    _ACEOF
7078    rm -f conftest.$ac_objext
7079    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7080      (eval $ac_compile) 2>&5
7081      ac_status=$?
7082      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083      (exit $ac_status); } &&
7084             { ac_try='test -s conftest.$ac_objext'
7085      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086      (eval $ac_try) 2>&5
7087      ac_status=$?
7088      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089      (exit $ac_status); }; }; then
7090      ac_header_compiler=yes
7091    else
7092      echo "$as_me: failed program was:" >&5
7093    cat conftest.$ac_ext >&5
7094    ac_header_compiler=no
7095    fi
7096    rm -f conftest.$ac_objext conftest.$ac_ext
7097    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7098    echo "${ECHO_T}$ac_header_compiler" >&6
7099    
7100    # Is the header present?
7101    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7102    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7103    cat >conftest.$ac_ext <<_ACEOF
7104    #line $LINENO "configure"
7105    #include "confdefs.h"
7106    #include <$ac_header>
7107    _ACEOF
7108    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7109      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7110      ac_status=$?
7111      egrep -v '^ *\+' conftest.er1 >conftest.err
7112      rm -f conftest.er1
7113      cat conftest.err >&5
7114      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115      (exit $ac_status); } >/dev/null; then
7116      if test -s conftest.err; then
7117        ac_cpp_err=$ac_c_preproc_warn_flag
7118      else
7119        ac_cpp_err=
7120      fi
7121  else  else
7122    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7123  #line 3991 "configure"  fi
7124  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7125  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
7126  else  else
7127    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7128    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7129    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
7130  fi  fi
7131  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
7132    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7133      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
7134    cat >> confdefs.h <<EOF  
7135  #define $ac_tr_hdr 1  # So?  What about this header?
7136  EOF  case $ac_header_compiler:$ac_header_preproc in
7137   cat >> confdefs.h <<\EOF    yes:no )
7138        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7139    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7140        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7141    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7142      no:yes )
7143        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7144    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7145        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7146    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7147        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7148    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7149    esac
7150    echo "$as_me:$LINENO: checking for $ac_header" >&5
7151    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7152    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7153      echo $ECHO_N "(cached) $ECHO_C" >&6
7154    else
7155      eval "$as_ac_Header=$ac_header_preproc"
7156    fi
7157    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7158    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7159    
7160    fi
7161    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7162      cat >>confdefs.h <<_ACEOF
7163    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7164    _ACEOF
7165     cat >>confdefs.h <<\_ACEOF
7166  #define HAVE_FLOAT_H 1  #define HAVE_FLOAT_H 1
7167  EOF  _ACEOF
7168    
 else  
   echo "$ac_t""no" 1>&6  
7169  fi  fi
7170    
7171  done  done
7172    
7173    
# Line 4027  done Line 7176  done
7176  # a more comprehensive later, i.e. checking that the fpclass  # a more comprehensive later, i.e. checking that the fpclass
7177  # test makes sense.  CM  # test makes sense.  CM
7178  #  #
7179  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for isnormal" >&5
7180  echo "configure:4032: checking for isnormal" >&5  echo $ECHO_N "checking for isnormal... $ECHO_C" >&6
7181  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7182    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$as_me:$LINENO: result: no" >&5
7183    echo "${ECHO_T}no" >&6
7184  else  else
7185    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7186  #line 4037 "configure"  #line $LINENO "configure"
7187  #include "confdefs.h"  #include "confdefs.h"
7188  #define _GNU_SOURCE  #define _GNU_SOURCE
7189              #include <math.h>              #include <math.h>
# Line 4041  else Line 7191  else
7191                  float f;                  float f;
7192                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
7193                  }                  }
7194  EOF  _ACEOF
7195  if { (eval echo configure:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7196  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7197    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7198      ac_status=$?
7199      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7201      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202      (eval $ac_try) 2>&5
7203      ac_status=$?
7204      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205      (exit $ac_status); }; }; then
7206      cat >>confdefs.h <<\_ACEOF
7207  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
7208  EOF  _ACEOF
7209   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7210  else  echo "${ECHO_T}yes" >&6
7211    echo "configure: failed program was:" >&5  else
7212    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
7213    rm -fr conftest*  echo "$as_me: failed program was:" >&5
7214    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6  cat conftest.$ac_ext >&5
7215  echo "configure:4057: checking for fpclass in ieeefp.h" >&5  ( exit $ac_status )
7216    echo "$as_me:$LINENO: checking for fpclass in ieeefp.h" >&5
7217    echo $ECHO_N "checking for fpclass in ieeefp.h... $ECHO_C" >&6
7218                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
7219    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
7220    echo "${ECHO_T}no" >&6
7221  else  else
7222    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7223  #line 4062 "configure"  #line $LINENO "configure"
7224  #include "confdefs.h"  #include "confdefs.h"
7225  #include <ieeefp.h>  #include <ieeefp.h>
7226                              int main() {                              int main() {
7227                                  float f;                                  float f;
7228                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
7229                                  }                                  }
7230  EOF  _ACEOF
7231  if { (eval echo configure:4070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7232  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7233    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7234      ac_status=$?
7235      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7237      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238      (eval $ac_try) 2>&5
7239      ac_status=$?
7240      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241      (exit $ac_status); }; }; then
7242      cat >>confdefs.h <<\_ACEOF
7243  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
7244  EOF  _ACEOF
7245   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7246    echo "${ECHO_T}yes" >&6
7247  else  else
7248    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7249    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7250    rm -fr conftest*  cat conftest.$ac_ext >&5
7251    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6  ( exit $ac_status )
7252    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
7253    echo "${ECHO_T}no" >&6
7254  fi  fi
7255  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7256  fi  fi
7257    
           
7258  fi  fi
7259  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7260  fi  fi
7261    
7262    echo "$as_me:$LINENO: checking for isfinite" >&5
7263  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ECHO_N "checking for isfinite... $ECHO_C" >&6
 echo "configure:4092: checking for isfinite" >&5  
7264  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7265    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$as_me:$LINENO: result: no" >&5
7266    echo "${ECHO_T}no" >&6
7267  else  else
7268    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7269  #line 4097 "configure"  #line $LINENO "configure"
7270  #include "confdefs.h"  #include "confdefs.h"
7271  #define _GNU_SOURCE  #define _GNU_SOURCE
7272              #include <math.h>              #include <math.h>
# Line 4101  else Line 7274  else
7274                  float f;                  float f;
7275                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
7276                  }                  }
7277  EOF  _ACEOF
7278  if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7279  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7280    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7281      ac_status=$?
7282      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7284      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285      (eval $ac_try) 2>&5
7286      ac_status=$?
7287      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288      (exit $ac_status); }; }; then
7289      cat >>confdefs.h <<\_ACEOF
7290  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
7291  EOF  _ACEOF
7292   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7293  else  echo "${ECHO_T}yes" >&6
7294    echo "configure: failed program was:" >&5  else
7295    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
7296    rm -fr conftest*  echo "$as_me: failed program was:" >&5
7297    echo $ac_n "checking for finite()""... $ac_c" 1>&6  cat conftest.$ac_ext >&5
7298  echo "configure:4117: checking for finite()" >&5  ( exit $ac_status )
7299    echo "$as_me:$LINENO: checking for finite()" >&5
7300    echo $ECHO_N "checking for finite()... $ECHO_C" >&6
7301                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
7302    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
7303    echo "${ECHO_T}no" >&6
7304  else  else
7305    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7306  #line 4122 "configure"  #line $LINENO "configure"
7307  #include "confdefs.h"  #include "confdefs.h"
7308  #include <math.h>  #include <math.h>
7309                              #include <ieeefp.h>                              #include <ieeefp.h>
# Line 4126  else Line 7311  else
7311                                  float f;                                  float f;
7312                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
7313                                  }                                  }
7314  EOF  _ACEOF
7315  if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7316  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7317    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7318      ac_status=$?
7319      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7321      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322      (eval $ac_try) 2>&5
7323      ac_status=$?
7324      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325      (exit $ac_status); }; }; then
7326      cat >>confdefs.h <<\_ACEOF
7327  #define HAVE_FINITE 1  #define HAVE_FINITE 1
7328  EOF  _ACEOF
7329   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7330    echo "${ECHO_T}yes" >&6
7331  else  else
7332    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7333    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7334    rm -fr conftest*  cat conftest.$ac_ext >&5
7335    HAVE_FINITE=0 echo "$ac_t""no" 1>&6  ( exit $ac_status )
7336    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
7337    echo "${ECHO_T}no" >&6
7338  fi  fi
7339  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7340  fi  fi
7341    
           
7342  fi  fi
7343  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7344  fi  fi
7345    
7346    
7347    
   
7348  #--------------------------------------------------------------------  #--------------------------------------------------------------------
7349  #       Check for the existence of the -lsocket and -lnsl libraries.  #       Check for the existence of the -lsocket and -lnsl libraries.
7350  #       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 4167  fi Line 7362  fi
7362  #          To get around this problem, check for both libraries together  #          To get around this problem, check for both libraries together
7363  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
7364  #--------------------------------------------------------------------  #--------------------------------------------------------------------
7365  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sockets" >&5
7366  echo "configure:4172: checking for sockets" >&5  echo $ECHO_N "checking for sockets... $ECHO_C" >&6
7367  tcl_checkBoth=0  tcl_checkBoth=0
7368  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for connect" >&5
7369  echo "configure:4175: checking for connect" >&5  echo $ECHO_N "checking for connect... $ECHO_C" >&6
7370  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if test "${ac_cv_func_connect+set}" = set; then
7371    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7372  else  else
7373    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7374  #line 4180 "configure"  #line $LINENO "configure"
7375  #include "confdefs.h"  #include "confdefs.h"
7376  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7377      which can conflict with char connect(); below.  */      which can conflict with char connect (); below.  */
7378  #include <assert.h>  #include <assert.h>
7379  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7380    #ifdef __cplusplus
7381    extern "C"
7382    #endif
7383  /* 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
7384      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7385  char connect();  char connect ();
7386    char (*f) ();
7387  int main() {  
7388    #ifdef F77_DUMMY_MAIN
7389    #  ifdef __cplusplus
7390         extern "C"
7391    #  endif
7392       int F77_DUMMY_MAIN() { return 1; }
7393    #endif
7394    int
7395    main ()
7396    {
7397  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7398      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7399      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7400  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
7401  choke me  choke me
7402  #else  #else
7403  connect();  f = connect;
7404  #endif  #endif
7405    
7406  ; return 0; }    ;
7407  EOF    return 0;
7408  if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
7409    rm -rf conftest*  _ACEOF
7410    eval "ac_cv_func_connect=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
7411  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7412    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
7413    cat conftest.$ac_ext >&5    ac_status=$?
7414    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415    eval "ac_cv_func_connect=no"    (exit $ac_status); } &&
7416  fi           { ac_try='test -s conftest$ac_exeext'
7417  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418  fi    (eval $ac_try) 2>&5
7419      ac_status=$?
7420  if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
7422      ac_cv_func_connect=yes
7423    else
7424      echo "$as_me: failed program was:" >&5
7425    cat conftest.$ac_ext >&5
7426    ac_cv_func_connect=no
7427    fi
7428    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7429    fi
7430    echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7431    echo "${ECHO_T}$ac_cv_func_connect" >&6
7432    if test $ac_cv_func_connect = yes; then
7433    tcl_checkSocket=0    tcl_checkSocket=0
7434  else  else
7435    echo "$ac_t""no" 1>&6    tcl_checkSocket=1
 tcl_checkSocket=1  
7436  fi  fi
7437    
7438  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
7439      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for main in -lsocket" >&5
7440  echo "configure:4225: checking for main in -lsocket" >&5  echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
7441  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_main+set}" = set; then
7442  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
7443  else  else
7444    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
7445  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
7446  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
7447  #line 4233 "configure"  #line $LINENO "configure"
7448  #include "confdefs.h"  #include "confdefs.h"
7449    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:4240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
7450    
7451  fi  #ifdef F77_DUMMY_MAIN
7452  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
7453    echo "$ac_t""yes" 1>&6       extern "C"
7454    #  endif
7455       int F77_DUMMY_MAIN() { return 1; }
7456    #endif
7457    int
7458    main ()
7459    {
7460    main ();
7461      ;
7462      return 0;
7463    }
7464    _ACEOF
7465    rm -f conftest.$ac_objext conftest$ac_exeext
7466    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7467      (eval $ac_link) 2>&5
7468      ac_status=$?
7469      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470      (exit $ac_status); } &&
7471             { ac_try='test -s conftest$ac_exeext'
7472      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473      (eval $ac_try) 2>&5
7474      ac_status=$?
7475      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476      (exit $ac_status); }; }; then
7477      ac_cv_lib_socket_main=yes
7478    else
7479      echo "$as_me: failed program was:" >&5
7480    cat conftest.$ac_ext >&5
7481    ac_cv_lib_socket_main=no
7482    fi
7483    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7484    LIBS=$ac_check_lib_save_LIBS
7485    fi
7486    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
7487    echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
7488    if test $ac_cv_lib_socket_main = yes; then
7489    TLIBS="$TLIBS -lsocket"    TLIBS="$TLIBS -lsocket"
7490  else  else
7491    echo "$ac_t""no" 1>&6    tcl_checkBoth=1
 tcl_checkBoth=1  
7492  fi  fi
7493    
7494  fi  fi
# Line 4263  fi Line 7497  fi
7497  if test "$tcl_checkBoth" = 1; then  if test "$tcl_checkBoth" = 1; then
7498      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
7499      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
7500      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for accept" >&5
7501  echo "configure:4268: checking for accept" >&5  echo $ECHO_N "checking for accept... $ECHO_C" >&6
7502  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if test "${ac_cv_func_accept+set}" = set; then
7503    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7504  else  else
7505    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7506  #line 4273 "configure"  #line $LINENO "configure"
7507  #include "confdefs.h"  #include "confdefs.h"
7508  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7509      which can conflict with char accept(); below.  */      which can conflict with char accept (); below.  */
7510  #include <assert.h>  #include <assert.h>
7511  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7512    #ifdef __cplusplus
7513    extern "C"
7514    #endif
7515  /* 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
7516      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7517  char accept();  char accept ();
7518    char (*f) ();
7519  int main() {  
7520    #ifdef F77_DUMMY_MAIN
7521    #  ifdef __cplusplus
7522         extern "C"
7523    #  endif
7524       int F77_DUMMY_MAIN() { return 1; }
7525    #endif
7526    int
7527    main ()
7528    {
7529  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7530      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7531      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7532  #if defined (__stub_accept) || defined (__stub___accept)  #if defined (__stub_accept) || defined (__stub___accept)
7533  choke me  choke me
7534  #else  #else
7535  accept();  f = accept;
7536  #endif  #endif
7537    
7538  ; return 0; }    ;
7539  EOF    return 0;
7540  if { (eval echo configure:4296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
7541    rm -rf conftest*  _ACEOF
7542    eval "ac_cv_func_accept=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
7543  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7544    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
7545    cat conftest.$ac_ext >&5    ac_status=$?
7546    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547    eval "ac_cv_func_accept=no"    (exit $ac_status); } &&
7548  fi           { ac_try='test -s conftest$ac_exeext'
7549  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550  fi    (eval $ac_try) 2>&5
7551      ac_status=$?
7552  if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
7554      ac_cv_func_accept=yes
7555    else
7556      echo "$as_me: failed program was:" >&5
7557    cat conftest.$ac_ext >&5
7558    ac_cv_func_accept=no
7559    fi
7560    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7561    fi
7562    echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
7563    echo "${ECHO_T}$ac_cv_func_accept" >&6
7564    if test $ac_cv_func_accept = yes; then
7565    tcl_checkNsl=0    tcl_checkNsl=0
7566  else  else
7567    echo "$ac_t""no" 1>&6    TLIBS=$tk_oldLibs
 TLIBS=$tk_oldLibs  
7568  fi  fi
7569    
7570  fi  fi
7571  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gethostbyname" >&5
7572  echo "configure:4318: checking for gethostbyname" >&5  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7573  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if test "${ac_cv_func_gethostbyname+set}" = set; then
7574    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7575  else  else
7576    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7577  #line 4323 "configure"  #line $LINENO "configure"
7578  #include "confdefs.h"  #include "confdefs.h"
7579  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7580      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname (); below.  */
7581  #include <assert.h>  #include <assert.h>
7582  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7583    #ifdef __cplusplus
7584    extern "C"
7585    #endif
7586  /* 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
7587      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7588  char gethostbyname();  char gethostbyname ();
7589    char (*f) ();
7590  int main() {  
7591    #ifdef F77_DUMMY_MAIN
7592    #  ifdef __cplusplus
7593         extern "C"
7594    #  endif
7595       int F77_DUMMY_MAIN() { return 1; }
7596    #endif
7597    int
7598    main ()
7599    {
7600  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7601      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7602      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7603  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7604  choke me  choke me
7605  #else  #else
7606  gethostbyname();  f = gethostbyname;
7607  #endif  #endif
7608    
7609  ; return 0; }    ;
7610  EOF    return 0;
7611  if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
7612    rm -rf conftest*  _ACEOF
7613    eval "ac_cv_func_gethostbyname=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
7614  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7615    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
7616    cat conftest.$ac_ext >&5    ac_status=$?
7617    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618    eval "ac_cv_func_gethostbyname=no"    (exit $ac_status); } &&
7619  fi           { ac_try='test -s conftest$ac_exeext'
7620  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621  fi    (eval $ac_try) 2>&5
7622      ac_status=$?
7623  if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
7625      ac_cv_func_gethostbyname=yes
7626    else
7627      echo "$as_me: failed program was:" >&5
7628    cat conftest.$ac_ext >&5
7629    ac_cv_func_gethostbyname=no
7630    fi
7631    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7632    fi
7633    echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7634    echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7635    if test $ac_cv_func_gethostbyname = yes; then
7636    :    :
7637  else  else
7638    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for main in -lnsl" >&5
7639  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
7640  echo "configure:4364: checking for main in -lnsl" >&5  if test "${ac_cv_lib_nsl_main+set}" = set; then
7641  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`    echo $ECHO_N "(cached) $ECHO_C" >&6
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
7642  else  else
7643    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
7644  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
7645  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
7646  #line 4372 "configure"  #line $LINENO "configure"
7647  #include "confdefs.h"  #include "confdefs.h"
7648    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
7649    
7650  fi  #ifdef F77_DUMMY_MAIN
7651  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
7652    echo "$ac_t""yes" 1>&6       extern "C"
7653    #  endif
7654       int F77_DUMMY_MAIN() { return 1; }
7655    #endif
7656    int
7657    main ()
7658    {
7659    main ();
7660      ;
7661      return 0;
7662    }
7663    _ACEOF
7664    rm -f conftest.$ac_objext conftest$ac_exeext
7665    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7666      (eval $ac_link) 2>&5
7667      ac_status=$?
7668      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669      (exit $ac_status); } &&
7670             { ac_try='test -s conftest$ac_exeext'
7671      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672      (eval $ac_try) 2>&5
7673      ac_status=$?
7674      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675      (exit $ac_status); }; }; then
7676      ac_cv_lib_nsl_main=yes
7677    else
7678      echo "$as_me: failed program was:" >&5
7679    cat conftest.$ac_ext >&5
7680    ac_cv_lib_nsl_main=no
7681    fi
7682    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7683    LIBS=$ac_check_lib_save_LIBS
7684    fi
7685    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
7686    echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
7687    if test $ac_cv_lib_nsl_main = yes; then
7688    TLIBS="$TLIBS -lnsl"    TLIBS="$TLIBS -lnsl"
 else  
   echo "$ac_t""no" 1>&6  
7689  fi  fi
7690    
7691  fi  fi
7692    
7693    
7694  if test "$enable_readline" = "yes" ; then  if test "$enable_readline" = "yes" ; then
7695          echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for main in -lreadline" >&5
7696  echo "configure:4404: checking for main in -lreadline" >&5  echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
7697  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_readline_main+set}" = set; then
7698  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
7699  else  else
7700    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
7701  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
7702  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
7703  #line 4412 "configure"  #line $LINENO "configure"
7704  #include "confdefs.h"  #include "confdefs.h"
7705    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
7706    
7707  fi  #ifdef F77_DUMMY_MAIN
7708  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
7709    echo "$ac_t""yes" 1>&6       extern "C"
7710    cat >> confdefs.h <<\EOF  #  endif
7711       int F77_DUMMY_MAIN() { return 1; }
7712    #endif
7713    int
7714    main ()
7715    {
7716    main ();
7717      ;
7718      return 0;
7719    }
7720    _ACEOF
7721    rm -f conftest.$ac_objext conftest$ac_exeext
7722    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7723      (eval $ac_link) 2>&5
7724      ac_status=$?
7725      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726      (exit $ac_status); } &&
7727             { ac_try='test -s conftest$ac_exeext'
7728      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729      (eval $ac_try) 2>&5
7730      ac_status=$?
7731      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732      (exit $ac_status); }; }; then
7733      ac_cv_lib_readline_main=yes
7734    else
7735      echo "$as_me: failed program was:" >&5
7736    cat conftest.$ac_ext >&5
7737    ac_cv_lib_readline_main=no
7738    fi
7739    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7740    LIBS=$ac_check_lib_save_LIBS
7741    fi
7742    echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
7743    echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
7744    if test $ac_cv_lib_readline_main = yes; then
7745      cat >>confdefs.h <<\_ACEOF
7746  #define HAVE_READLINE 1  #define HAVE_READLINE 1
7747  EOF  _ACEOF
7748    
7749                  TLIBS="$TLIBS -lreadline -lncurses"                  TLIBS="$TLIBS -lreadline -lncurses"
7750                  RL_OBJS=readline.o                  RL_OBJS=readline.o
7751                  RL_LIB=lsp/readline.o                  RL_LIB=lsp/readline.o
 else  
   echo "$ac_t""no" 1>&6  
7752  fi  fi
7753    
7754  fi  fi
# Line 4446  fi Line 7756  fi
7756    
7757    
7758    
7759  echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking For network code for nsocket.c" >&5
7760  echo "configure:4451: checking For network code for nsocket.c" >&5  echo $ECHO_N "checking For network code for nsocket.c... $ECHO_C" >&6
7761  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
7762  #line 4453 "configure"  #line $LINENO "configure"
7763  #include "confdefs.h"  #include "confdefs.h"
7764    
7765  #include <sys/time.h>  #include <sys/time.h>
# Line 4460  cat > conftest.$ac_ext <<EOF Line 7770  cat > conftest.$ac_ext <<EOF
7770  #include <fcntl.h>  #include <fcntl.h>
7771  #include <stdio.h>  #include <stdio.h>
7772    
7773  /************* for the sockets ******************/  /************* for the sockets ******************/
7774  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */
7775  #ifndef NO_UNAME  #ifndef NO_UNAME
7776  #   include <sys/utsname.h>     /* uname system call. */  #   include <sys/utsname.h>     /* uname system call. */
# Line 4469  cat > conftest.$ac_ext <<EOF Line 7779  cat > conftest.$ac_ext <<EOF
7779  #include <arpa/inet.h>          /* inet_ntoa() */  #include <arpa/inet.h>          /* inet_ntoa() */
7780  #include <netdb.h>              /* gethostbyname() */  #include <netdb.h>              /* gethostbyname() */
7781    
7782  int main() {  #ifdef F77_DUMMY_MAIN
7783    #  ifdef __cplusplus
7784         extern "C"
7785    #  endif
7786       int F77_DUMMY_MAIN() { return 1; }
7787    #endif
7788    int
7789    main ()
7790    {
7791   connect(0,(struct sockaddr *)0,0);   connect(0,(struct sockaddr *)0,0);
7792      gethostbyname("jil");      gethostbyname("jil");
7793      socket(AF_INET, SOCK_STREAM, 0);      socket(AF_INET, SOCK_STREAM, 0);
7794            
7795  ; return 0; }    ;
7796  EOF    return 0;
7797  if { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
7798    rm -rf conftest*  _ACEOF
7799    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext conftest$ac_exeext
7800    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7801      (eval $ac_link) 2>&5
7802      ac_status=$?
7803      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804      (exit $ac_status); } &&
7805             { ac_try='test -s conftest$ac_exeext'
7806      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807      (eval $ac_try) 2>&5
7808      ac_status=$?
7809      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810      (exit $ac_status); }; }; then
7811      cat >>confdefs.h <<\_ACEOF
7812  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
7813  EOF  _ACEOF
7814    
7815   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7816    echo "${ECHO_T}yes" >&6
7817  else  else
7818    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
7819    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
7820    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
7821    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
7822  fi  fi
7823  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7824    
7825    
7826  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for listen using fcntl" >&5
7827  echo "configure:4497: checking check for listen using fcntl" >&5  echo $ECHO_N "checking check for listen using fcntl... $ECHO_C" >&6
7828  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
7829  #line 4499 "configure"  #line $LINENO "configure"
7830  #include "confdefs.h"  #include "confdefs.h"
7831  #include <stdio.h>  #include <stdio.h>
7832  #include <fcntl.h>  #include <fcntl.h>
7833    
7834  int main() {  #ifdef F77_DUMMY_MAIN
7835    #  ifdef __cplusplus
7836         extern "C"
7837    #  endif
7838       int F77_DUMMY_MAIN() { return 1; }
7839    #endif
7840    int
7841    main ()
7842    {
7843  FILE *fp=fopen("configure.in","r");  FILE *fp=fopen("configure.in","r");
7844    int orig;    int orig;
7845    orig = fcntl(fileno(fp), F_GETFL);    orig = fcntl(fileno(fp), F_GETFL);
7846    if (! (orig & O_NONBLOCK )) return 0;    if (! (orig & O_NONBLOCK )) return 0;
7847    
7848  ; return 0; }    ;
7849  EOF    return 0;
7850  if { (eval echo configure:4512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
7851    rm -rf conftest*  _ACEOF
7852    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
7853    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7854      (eval $ac_compile) 2>&5
7855      ac_status=$?
7856      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857      (exit $ac_status); } &&
7858             { ac_try='test -s conftest.$ac_objext'
7859      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860      (eval $ac_try) 2>&5
7861      ac_status=$?
7862      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863      (exit $ac_status); }; }; then
7864      cat >>confdefs.h <<\_ACEOF
7865  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
7866  EOF  _ACEOF
7867    
7868   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7869    echo "${ECHO_T}yes" >&6
7870  else  else
7871    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
7872    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
7873    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
7874    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
7875  fi  fi
7876  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
7877    
7878    
7879    
7880    
7881  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for profil" >&5
7882  echo "configure:4531: checking for profil" >&5  echo $ECHO_N "checking for profil... $ECHO_C" >&6
7883  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if test "${ac_cv_func_profil+set}" = set; then
7884    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7885  else  else
7886    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7887  #line 4536 "configure"  #line $LINENO "configure"
7888  #include "confdefs.h"  #include "confdefs.h"
7889  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7890      which can conflict with char profil(); below.  */      which can conflict with char profil (); below.  */
7891  #include <assert.h>  #include <assert.h>
7892  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7893    #ifdef __cplusplus
7894    extern "C"
7895    #endif
7896  /* 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
7897      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7898  char profil();  char profil ();
7899    char (*f) ();
7900  int main() {  
7901    #ifdef F77_DUMMY_MAIN
7902    #  ifdef __cplusplus
7903         extern "C"
7904    #  endif
7905       int F77_DUMMY_MAIN() { return 1; }
7906    #endif
7907    int
7908    main ()
7909    {
7910  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7911      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7912      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7913  #if defined (__stub_profil) || defined (__stub___profil)  #if defined (__stub_profil) || defined (__stub___profil)
7914  choke me  choke me
7915  #else  #else
7916  profil();  f = profil;
7917  #endif  #endif
7918    
7919  ; return 0; }    ;
7920  EOF    return 0;
7921  if { (eval echo configure:4559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
7922    rm -rf conftest*  _ACEOF
7923    eval "ac_cv_func_profil=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
7924  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7925    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
7926    cat conftest.$ac_ext >&5    ac_status=$?
7927    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928    eval "ac_cv_func_profil=no"    (exit $ac_status); } &&
7929  fi           { ac_try='test -s conftest$ac_exeext'
7930  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931  fi    (eval $ac_try) 2>&5
7932      ac_status=$?
7933  if eval "test \"`echo '$ac_cv_func_'profil`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
7935      ac_cv_func_profil=yes
7936    else
7937      echo "$as_me: failed program was:" >&5
7938    cat conftest.$ac_ext >&5
7939    ac_cv_func_profil=no
7940    fi
7941    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7942    fi
7943    echo "$as_me:$LINENO: result: $ac_cv_func_profil" >&5
7944    echo "${ECHO_T}$ac_cv_func_profil" >&6
7945    if test $ac_cv_func_profil = yes; then
7946    :    :
7947  else  else
7948    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
7949  #define NO_PROFILE 1  #define NO_PROFILE 1
7950  EOF  _ACEOF
7951    
7952  fi  fi
7953    
7954    
7955  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for setenv" >&5
7956  echo "configure:4584: checking for setenv" >&5  echo $ECHO_N "checking for setenv... $ECHO_C" >&6
7957  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if test "${ac_cv_func_setenv+set}" = set; then
7958    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7959  else  else
7960    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7961  #line 4589 "configure"  #line $LINENO "configure"
7962  #include "confdefs.h"  #include "confdefs.h"
7963  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7964      which can conflict with char setenv(); below.  */      which can conflict with char setenv (); below.  */
7965  #include <assert.h>  #include <assert.h>
7966  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7967    #ifdef __cplusplus
7968    extern "C"
7969    #endif
7970  /* 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
7971      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7972  char setenv();  char setenv ();
7973    char (*f) ();
7974  int main() {  
7975    #ifdef F77_DUMMY_MAIN
7976    #  ifdef __cplusplus
7977         extern "C"
7978    #  endif
7979       int F77_DUMMY_MAIN() { return 1; }
7980    #endif
7981    int
7982    main ()
7983    {
7984  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7985      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7986      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7987  #if defined (__stub_setenv) || defined (__stub___setenv)  #if defined (__stub_setenv) || defined (__stub___setenv)
7988  choke me  choke me
7989  #else  #else
7990  setenv();  f = setenv;
7991  #endif  #endif
7992    
7993  ; return 0; }    ;
7994  EOF    return 0;
7995  if { (eval echo configure:4612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
7996    rm -rf conftest*  _ACEOF
7997    eval "ac_cv_func_setenv=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
7998  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7999    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8000    cat conftest.$ac_ext >&5    ac_status=$?
8001    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002    eval "ac_cv_func_setenv=no"    (exit $ac_status); } &&
8003  fi           { ac_try='test -s conftest$ac_exeext'
8004  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005  fi    (eval $ac_try) 2>&5
8006      ac_status=$?
8007  if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8009    cat >> confdefs.h <<\EOF    ac_cv_func_setenv=yes
8010    else
8011      echo "$as_me: failed program was:" >&5
8012    cat conftest.$ac_ext >&5
8013    ac_cv_func_setenv=no
8014    fi
8015    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8016    fi
8017    echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
8018    echo "${ECHO_T}$ac_cv_func_setenv" >&6
8019    if test $ac_cv_func_setenv = yes; then
8020      cat >>confdefs.h <<\_ACEOF
8021  #define HAVE_SETENV 1  #define HAVE_SETENV 1
8022  EOF  _ACEOF
8023    
8024  else  else
8025    echo "$ac_t""no" 1>&6    no_setenv=1
 no_setenv=1  
8026  fi  fi
8027    
8028    
8029  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
8030  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for putenv" >&5
8031  echo "configure:4638: checking for putenv" >&5  echo $ECHO_N "checking for putenv... $ECHO_C" >&6
8032  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if test "${ac_cv_func_putenv+set}" = set; then
8033    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8034  else  else
8035    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8036  #line 4643 "configure"  #line $LINENO "configure"
8037  #include "confdefs.h"  #include "confdefs.h"
8038  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8039      which can conflict with char putenv(); below.  */      which can conflict with char putenv (); below.  */
8040  #include <assert.h>  #include <assert.h>
8041  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8042    #ifdef __cplusplus
8043    extern "C"
8044    #endif
8045  /* 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
8046      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8047  char putenv();  char putenv ();
8048    char (*f) ();
8049  int main() {  
8050    #ifdef F77_DUMMY_MAIN
8051    #  ifdef __cplusplus
8052         extern "C"
8053    #  endif
8054       int F77_DUMMY_MAIN() { return 1; }
8055    #endif
8056    int
8057    main ()
8058    {
8059  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8060      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8061      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8062  #if defined (__stub_putenv) || defined (__stub___putenv)  #if defined (__stub_putenv) || defined (__stub___putenv)
8063  choke me  choke me
8064  #else  #else
8065  putenv();  f = putenv;
8066  #endif  #endif
8067    
8068  ; return 0; }    ;
8069  EOF    return 0;
8070  if { (eval echo configure:4666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8071    rm -rf conftest*  _ACEOF
8072    eval "ac_cv_func_putenv=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8073  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8074    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8075    cat conftest.$ac_ext >&5    ac_status=$?
8076    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077    eval "ac_cv_func_putenv=no"    (exit $ac_status); } &&
8078  fi           { ac_try='test -s conftest$ac_exeext'
8079  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080  fi    (eval $ac_try) 2>&5
8081      ac_status=$?
8082  if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8084    cat >> confdefs.h <<\EOF    ac_cv_func_putenv=yes
8085    else
8086      echo "$as_me: failed program was:" >&5
8087    cat conftest.$ac_ext >&5
8088    ac_cv_func_putenv=no
8089    fi
8090    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8091    fi
8092    echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
8093    echo "${ECHO_T}$ac_cv_func_putenv" >&6
8094    if test $ac_cv_func_putenv = yes; then
8095      cat >>confdefs.h <<\_ACEOF
8096  #define HAVE_PUTENV 1  #define HAVE_PUTENV 1
8097  EOF  _ACEOF
8098    
 else  
   echo "$ac_t""no" 1>&6  
8099  fi  fi
8100    
8101    
8102  fi  fi
8103    
8104  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for _cleanup" >&5
8105  echo "configure:4692: checking for _cleanup" >&5  echo $ECHO_N "checking for _cleanup... $ECHO_C" >&6
8106  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if test "${ac_cv_func__cleanup+set}" = set; then
8107    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8108  else  else
8109    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8110  #line 4697 "configure"  #line $LINENO "configure"
8111  #include "confdefs.h"  #include "confdefs.h"
8112  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8113      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup (); below.  */
8114  #include <assert.h>  #include <assert.h>
8115  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8116    #ifdef __cplusplus
8117    extern "C"
8118    #endif
8119  /* 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
8120      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8121  char _cleanup();  char _cleanup ();
8122    char (*f) ();
8123  int main() {  
8124    #ifdef F77_DUMMY_MAIN
8125    #  ifdef __cplusplus
8126         extern "C"
8127    #  endif
8128       int F77_DUMMY_MAIN() { return 1; }
8129    #endif
8130    int
8131    main ()
8132    {
8133  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8134      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8135      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8136  #if defined (__stub__cleanup) || defined (__stub____cleanup)  #if defined (__stub__cleanup) || defined (__stub____cleanup)
8137  choke me  choke me
8138  #else  #else
8139  _cleanup();  f = _cleanup;
8140  #endif  #endif
8141    
8142  ; return 0; }    ;
8143  EOF    return 0;
8144  if { (eval echo configure:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8145    rm -rf conftest*  _ACEOF
8146    eval "ac_cv_func__cleanup=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8147  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8148    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8149    cat conftest.$ac_ext >&5    ac_status=$?
8150    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151    eval "ac_cv_func__cleanup=no"    (exit $ac_status); } &&
8152  fi           { ac_try='test -s conftest$ac_exeext'
8153  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154  fi    (eval $ac_try) 2>&5
8155      ac_status=$?
8156  if eval "test \"`echo '$ac_cv_func_'_cleanup`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8158    cat >> confdefs.h <<\EOF    ac_cv_func__cleanup=yes
8159    else
8160      echo "$as_me: failed program was:" >&5
8161    cat conftest.$ac_ext >&5
8162    ac_cv_func__cleanup=no
8163    fi
8164    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8165    fi
8166    echo "$as_me:$LINENO: result: $ac_cv_func__cleanup" >&5
8167    echo "${ECHO_T}$ac_cv_func__cleanup" >&6
8168    if test $ac_cv_func__cleanup = yes; then
8169      cat >>confdefs.h <<\_ACEOF
8170  #define USE_CLEANUP 1  #define USE_CLEANUP 1
8171  EOF  _ACEOF
8172    
 else  
   echo "$ac_t""no" 1>&6  
8173  fi  fi
8174    
8175    
8176  gcl_ok=no  gcl_ok=no
8177    
8178  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8179  #line 4746 "configure"  #line $LINENO "configure"
8180  #include "confdefs.h"  #include "confdefs.h"
8181  #include <ctype.h>  #include <ctype.h>
8182  EOF  
8183    _ACEOF
8184  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8185    egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then    egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then
   rm -rf conftest*  
8186    gcl_ok=yes    gcl_ok=yes
8187  else  else
   rm -rf conftest*  
8188    gcl_ok=noo    gcl_ok=noo
8189  fi  fi
8190  rm -f conftest*  rm -f conftest*
8191    
8192  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
8193  cat >> confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
8194  #define ENDIAN_ALREADY_DEFINED 1  #define ENDIAN_ALREADY_DEFINED 1
8195  EOF  _ACEOF
8196    
8197  fi  fi
8198    
# Line 4769  fi Line 8202  fi
8202    
8203    
8204  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
8205  echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
8206  echo "configure:4774: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5  echo $ECHO_N "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... $ECHO_C" >&6
8207    
8208  case $system in  case $system in
8209         OSF*)         OSF*)
8210          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8211  #define USE_FIONBIO 1  #define USE_FIONBIO 1
8212  EOF  _ACEOF
8213    
8214          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
8215    echo "${ECHO_T}FIONBIO" >&6
8216          ;;          ;;
8217      SunOS-4*)      SunOS-4*)
8218          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8219  #define USE_FIONBIO 1  #define USE_FIONBIO 1
8220  EOF  _ACEOF
8221    
8222          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
8223    echo "${ECHO_T}FIONBIO" >&6
8224          ;;          ;;
8225      ULTRIX-4.*)      ULTRIX-4.*)
8226          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8227  #define USE_FIONBIO 1  #define USE_FIONBIO 1
8228  EOF  _ACEOF
8229    
8230          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
8231    echo "${ECHO_T}FIONBIO" >&6
8232          ;;          ;;
8233      *)      *)
8234          echo "$ac_t""O_NONBLOCK" 1>&6          echo "$as_me:$LINENO: result: O_NONBLOCK" >&5
8235    echo "${ECHO_T}O_NONBLOCK" >&6
8236          ;;          ;;
8237  esac  esac
8238    
8239    
8240  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SV_ONSTACK" >&5
8241  echo "configure:4805: checking check for SV_ONSTACK" >&5  echo $ECHO_N "checking check for SV_ONSTACK... $ECHO_C" >&6
8242  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8243  #line 4807 "configure"  #line $LINENO "configure"
8244  #include "confdefs.h"  #include "confdefs.h"
8245  #include <signal.h>  #include <signal.h>
8246  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
8247    
8248  int main() {  #ifdef F77_DUMMY_MAIN
8249    #  ifdef __cplusplus
8250         extern "C"
8251    #  endif
8252       int F77_DUMMY_MAIN() { return 1; }
8253    #endif
8254    int
8255    main ()
8256    {
8257    
8258  ; return 0; }    ;
8259  EOF    return 0;
8260  if { (eval echo configure:4816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8261    rm -rf conftest*  _ACEOF
8262    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
8263    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8264      (eval $ac_compile) 2>&5
8265      ac_status=$?
8266      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267      (exit $ac_status); } &&
8268             { ac_try='test -s conftest.$ac_objext'
8269      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270      (eval $ac_try) 2>&5
8271      ac_status=$?
8272      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273      (exit $ac_status); }; }; then
8274      cat >>confdefs.h <<\_ACEOF
8275  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
8276  EOF  _ACEOF
8277    
8278    
8279     echo "$as_me:$LINENO: result: yes" >&5
8280   echo "$ac_t""yes" 1>&6  echo "${ECHO_T}yes" >&6
8281  else  else
8282    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8283    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8284    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8285    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8286  fi  fi
8287  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8288    
8289  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGSYS" >&5
8290  echo "configure:4833: checking check for SIGSYS" >&5  echo $ECHO_N "checking check for SIGSYS... $ECHO_C" >&6
8291  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8292  #line 4835 "configure"  #line $LINENO "configure"
8293  #include "confdefs.h"  #include "confdefs.h"
8294  #include <signal.h>  #include <signal.h>
8295  int joe=SIGSYS;  int joe=SIGSYS;
8296    
8297  int main() {  #ifdef F77_DUMMY_MAIN
8298    #  ifdef __cplusplus
8299         extern "C"
8300    #  endif
8301       int F77_DUMMY_MAIN() { return 1; }
8302    #endif
8303    int
8304    main ()
8305    {
8306    
8307  ; return 0; }    ;
8308  EOF    return 0;
8309  if { (eval echo configure:4844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8310    rm -rf conftest*  _ACEOF
8311    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
8312    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8313      (eval $ac_compile) 2>&5
8314      ac_status=$?
8315      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316      (exit $ac_status); } &&
8317             { ac_try='test -s conftest.$ac_objext'
8318      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319      (eval $ac_try) 2>&5
8320      ac_status=$?
8321      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322      (exit $ac_status); }; }; then
8323      cat >>confdefs.h <<\_ACEOF
8324  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
8325  EOF  _ACEOF
8326    
8327    
8328     echo "$as_me:$LINENO: result: yes" >&5
8329   echo "$ac_t""yes" 1>&6  echo "${ECHO_T}yes" >&6
8330  else  else
8331    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8332    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8333    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8334    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8335  fi  fi
8336  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8337    
8338    
8339  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGEMT" >&5
8340  echo "configure:4862: checking check for SIGEMT" >&5  echo $ECHO_N "checking check for SIGEMT... $ECHO_C" >&6
8341  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8342  #line 4864 "configure"  #line $LINENO "configure"
8343  #include "confdefs.h"  #include "confdefs.h"
8344  #include <signal.h>  #include <signal.h>
8345  int joe=SIGEMT;  int joe=SIGEMT;
8346    
8347  int main() {  #ifdef F77_DUMMY_MAIN
8348    #  ifdef __cplusplus
8349         extern "C"
8350    #  endif
8351       int F77_DUMMY_MAIN() { return 1; }
8352    #endif
8353    int
8354    main ()
8355    {
8356    
8357  ; return 0; }    ;
8358  EOF    return 0;
8359  if { (eval echo configure:4873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8360    rm -rf conftest*  _ACEOF
8361    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
8362    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8363      (eval $ac_compile) 2>&5
8364      ac_status=$?
8365      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366      (exit $ac_status); } &&
8367             { ac_try='test -s conftest.$ac_objext'
8368      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369      (eval $ac_try) 2>&5
8370      ac_status=$?
8371      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372      (exit $ac_status); }; }; then
8373      cat >>confdefs.h <<\_ACEOF
8374  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
8375  EOF  _ACEOF
8376    
8377    
8378     echo "$as_me:$LINENO: result: yes" >&5
8379   echo "$ac_t""yes" 1>&6  echo "${ECHO_T}yes" >&6
8380  else  else
8381    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8382    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8383    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8384    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8385  fi  fi
8386  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8387    
8388    
8389    
8390    
8391  #if test $use = "386-linux" ; then  #if test $use = "386-linux" ; then
8392          for ac_hdr in asm/sigcontext.h  
8393    for ac_header in asm/sigcontext.h
8394  do  do
8395  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8396  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8397  echo "configure:4897: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8398  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8399    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8400      echo $ECHO_N "(cached) $ECHO_C" >&6
8401    fi
8402    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8403    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8404    else
8405      # Is the header compilable?
8406    echo "$as_me:$LINENO: checking $ac_header usability" >&5
8407    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8408    cat >conftest.$ac_ext <<_ACEOF
8409    #line $LINENO "configure"
8410    #include "confdefs.h"
8411    $ac_includes_default
8412    #include <$ac_header>
8413    _ACEOF
8414    rm -f conftest.$ac_objext
8415    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416      (eval $ac_compile) 2>&5
8417      ac_status=$?
8418      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419      (exit $ac_status); } &&
8420             { ac_try='test -s conftest.$ac_objext'
8421      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422      (eval $ac_try) 2>&5
8423      ac_status=$?
8424      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425      (exit $ac_status); }; }; then
8426      ac_header_compiler=yes
8427    else
8428      echo "$as_me: failed program was:" >&5
8429    cat conftest.$ac_ext >&5
8430    ac_header_compiler=no
8431    fi
8432    rm -f conftest.$ac_objext conftest.$ac_ext
8433    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8434    echo "${ECHO_T}$ac_header_compiler" >&6
8435    
8436    # Is the header present?
8437    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8438    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8439    cat >conftest.$ac_ext <<_ACEOF
8440    #line $LINENO "configure"
8441    #include "confdefs.h"
8442    #include <$ac_header>
8443    _ACEOF
8444    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8445      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8446      ac_status=$?
8447      egrep -v '^ *\+' conftest.er1 >conftest.err
8448      rm -f conftest.er1
8449      cat conftest.err >&5
8450      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451      (exit $ac_status); } >/dev/null; then
8452      if test -s conftest.err; then
8453        ac_cpp_err=$ac_c_preproc_warn_flag
8454      else
8455        ac_cpp_err=
8456      fi
8457  else  else
8458    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
8459  #line 4902 "configure"  fi
8460  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
8461  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
8462  else  else
8463    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
8464    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
8465    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
8466  fi  fi
8467  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
8468  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8469  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
8470    echo "$ac_t""yes" 1>&6  
8471      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
8472    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
8473  #define $ac_tr_hdr 1    yes:no )
8474  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8475    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8476        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8477    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8478      no:yes )
8479        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8480    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8481        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8482    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8483        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8484    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8485    esac
8486    echo "$as_me:$LINENO: checking for $ac_header" >&5
8487    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8488    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8489      echo $ECHO_N "(cached) $ECHO_C" >&6
8490  else  else
8491    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
8492    fi
8493    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8494    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8495    
8496  fi  fi
8497    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8498      cat >>confdefs.h <<_ACEOF
8499    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8500    _ACEOF
8501    
8502    fi
8503    
8504  done  done
8505    
8506          for ac_hdr in asm/signal.h  
8507    for ac_header in asm/signal.h
8508  do  do
8509  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8510  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8511  echo "configure:4937: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8512  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8513    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8514      echo $ECHO_N "(cached) $ECHO_C" >&6
8515    fi
8516    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8517    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8518    else
8519      # Is the header compilable?
8520    echo "$as_me:$LINENO: checking $ac_header usability" >&5
8521    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8522    cat >conftest.$ac_ext <<_ACEOF
8523    #line $LINENO "configure"
8524    #include "confdefs.h"
8525    $ac_includes_default
8526    #include <$ac_header>
8527    _ACEOF
8528    rm -f conftest.$ac_objext
8529    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8530      (eval $ac_compile) 2>&5
8531      ac_status=$?
8532      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533      (exit $ac_status); } &&
8534             { ac_try='test -s conftest.$ac_objext'
8535      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536      (eval $ac_try) 2>&5
8537      ac_status=$?
8538      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539      (exit $ac_status); }; }; then
8540      ac_header_compiler=yes
8541    else
8542      echo "$as_me: failed program was:" >&5
8543    cat conftest.$ac_ext >&5
8544    ac_header_compiler=no
8545    fi
8546    rm -f conftest.$ac_objext conftest.$ac_ext
8547    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8548    echo "${ECHO_T}$ac_header_compiler" >&6
8549    
8550    # Is the header present?
8551    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8552    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8553    cat >conftest.$ac_ext <<_ACEOF
8554    #line $LINENO "configure"
8555    #include "confdefs.h"
8556    #include <$ac_header>
8557    _ACEOF
8558    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8559      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8560      ac_status=$?
8561      egrep -v '^ *\+' conftest.er1 >conftest.err
8562      rm -f conftest.er1
8563      cat conftest.err >&5
8564      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565      (exit $ac_status); } >/dev/null; then
8566      if test -s conftest.err; then
8567        ac_cpp_err=$ac_c_preproc_warn_flag
8568      else
8569        ac_cpp_err=
8570      fi
8571  else  else
8572    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
8573  #line 4942 "configure"  fi
8574  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
8575  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
8576  else  else
8577    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
8578    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
8579    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
8580  fi  fi
8581  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
8582    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8583      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
8584    cat >> confdefs.h <<EOF  
8585  #define $ac_tr_hdr 1  # So?  What about this header?
8586  EOF  case $ac_header_compiler:$ac_header_preproc in
8587      yes:no )
8588        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8589    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8590        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8591    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8592      no:yes )
8593        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8594    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8595        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8596    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8597        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8598    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8599    esac
8600    echo "$as_me:$LINENO: checking for $ac_header" >&5
8601    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8602    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8603      echo $ECHO_N "(cached) $ECHO_C" >&6
8604  else  else
8605    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
8606    fi
8607    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8608    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8609    
8610    fi
8611    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8612      cat >>confdefs.h <<_ACEOF
8613    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8614    _ACEOF
8615    
8616  fi  fi
8617    
8618  done  done
8619    
8620          cat > conftest.$ac_ext <<EOF          cat >conftest.$ac_ext <<_ACEOF
8621  #line 4974 "configure"  #line $LINENO "configure"
8622  #include "confdefs.h"  #include "confdefs.h"
8623  #include <signal.h>  #include <signal.h>
8624                          long code;                            long code;
8625          
8626  int main() {  #ifdef F77_DUMMY_MAIN
8627    #  ifdef __cplusplus
8628         extern "C"
8629    #  endif
8630       int F77_DUMMY_MAIN() { return 1; }
8631    #endif
8632    int
8633    main ()
8634    {
8635    
8636          void *p = ((void *)(((struct sigcontext_struct *)(&code))));          void *p = ((void *)(((struct sigcontext_struct *)(&code))));
8637          
8638  ; return 0; }    ;
8639  EOF    return 0;
8640  if { (eval echo configure:4985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8641    rm -rf conftest*  _ACEOF
8642      rm -f conftest.$ac_objext
8643    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644      (eval $ac_compile) 2>&5
8645      ac_status=$?
8646      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647      (exit $ac_status); } &&
8648             { ac_try='test -s conftest.$ac_objext'
8649      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650      (eval $ac_try) 2>&5
8651      ac_status=$?
8652      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653      (exit $ac_status); }; }; then
8654    
8655          sigcontext_struct_works=1;          sigcontext_struct_works=1;
8656          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8657  #define SIGNAL_H_HAS_SIGCONTEXT 1  #define SIGNAL_H_HAS_SIGCONTEXT 1
8658  EOF  _ACEOF
8659    
8660            echo "$as_me:$LINENO: result: \"sigcontext in signal.h\"" >&5
8661    echo "${ECHO_T}\"sigcontext in signal.h\"" >&6
8662    
         echo "$ac_t"""sigcontext in signal.h"" 1>&6  
         
8663  else  else
8664    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8665    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8666    rm -rf conftest*  sigcontext_struct_works=0;
8667    sigcontext_struct_works=0;           echo "$as_me:$LINENO: result: \"sigcontext NOT in signal.h\"" >&5
8668           echo "$ac_t"""sigcontext NOT in signal.h"" 1>&6  echo "${ECHO_T}\"sigcontext NOT in signal.h\"" >&6
8669          
8670  fi  fi
8671  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8672         if test "$sigcontext_struct_works" = 0 ; then         if test "$sigcontext_struct_works" = 0 ; then
8673         cat > conftest.$ac_ext <<EOF         cat >conftest.$ac_ext <<_ACEOF
8674  #line 5006 "configure"  #line $LINENO "configure"
8675  #include "confdefs.h"  #include "confdefs.h"
8676  #include <signal.h>  #include <signal.h>
8677               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H
8678               #include <asm/sigcontext.h>               #include <asm/sigcontext.h>
8679               #endif               #endif
8680               #ifdef HAVE_ASM_SIGNAL_H                         #ifdef HAVE_ASM_SIGNAL_H
8681               #include <asm/signal.h>               #include <asm/signal.h>
8682               #endif               #endif
8683               long code;               long code;
8684              
8685  int main() {  #ifdef F77_DUMMY_MAIN
8686    #  ifdef __cplusplus
8687         extern "C"
8688    #  endif
8689       int F77_DUMMY_MAIN() { return 1; }
8690    #endif
8691    int
8692    main ()
8693    {
8694    
8695          void *p = ((void *)(((struct sigcontext *)(&code))));          void *p = ((void *)(((struct sigcontext *)(&code))));
8696            
8697  ; return 0; }    ;
8698  EOF    return 0;
8699  if { (eval echo configure:5023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8700    rm -rf conftest*  _ACEOF
8701      rm -f conftest.$ac_objext
8702    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8703      (eval $ac_compile) 2>&5
8704      ac_status=$?
8705      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706      (exit $ac_status); } &&
8707             { ac_try='test -s conftest.$ac_objext'
8708      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709      (eval $ac_try) 2>&5
8710      ac_status=$?
8711      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712      (exit $ac_status); }; }; then
8713    
8714          sigcontext_works=1 ;          sigcontext_works=1 ;
8715          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8716  #define HAVE_SIGCONTEXT 1  #define HAVE_SIGCONTEXT 1
8717  EOF  _ACEOF
8718    
8719            echo "$as_me:$LINENO: result: \"use struct sigcontext\"" >&5
8720    echo "${ECHO_T}\"use struct sigcontext\"" >&6
8721    
         echo "$ac_t"""use struct sigcontext"" 1>&6  
           
8722  else  else
8723    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8724    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8725    rm -rf conftest*  
8726              sigcontext_works=0 ;
8727          sigcontext_works=0 ;  
       
8728  fi  fi
8729  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8730    
8731    
8732         fi         fi
8733  #       echo 'foo() {}' > conftest1.c  #       echo 'foo() {}' > conftest1.c
8734  #       $CC -S conftest1.c  #       $CC -S conftest1.c
8735  #       use_underscore=0          #       use_underscore=0
8736  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi
8737  #       if test $use_underscore = 0 ; then  #       if test $use_underscore = 0 ; then
8738  #            MPI_FILE=mpi-386_no_under.o  #            MPI_FILE=mpi-386_no_under.o
# Line 5061  rm -f conftest* Line 8750  rm -f conftest*
8750    
8751  # 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.
8752  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
8753  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
8754  echo "configure:5066: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8755  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if test "${ac_cv_path_EMACS+set}" = set; then
8756    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8757  else  else
8758    case "$EMACS" in    case $EMACS in
8759    /*)    [\\/]* | ?:[\\/]*)
8760    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.
8761    ;;    ;;
   ?:/*)                    
   ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.  
   ;;  
8762    *)    *)
8763    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764    ac_dummy="$PATH"  for as_dir in $PATH
8765    for ac_dir in $ac_dummy; do  do
8766      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
8767      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
8768        ac_cv_path_EMACS="$ac_dir/$ac_word"    for ac_exec_ext in '' $ac_executable_extensions; do
8769        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8770      fi      ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext"
8771    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8772    IFS="$ac_save_ifs"      break 2
8773      fi
8774    done
8775    done
8776    
8777    ;;    ;;
8778  esac  esac
8779  fi  fi
8780  EMACS="$ac_cv_path_EMACS"  EMACS=$ac_cv_path_EMACS
8781    
8782  if test -n "$EMACS"; then  if test -n "$EMACS"; then
8783    echo "$ac_t""$EMACS" 1>&6    echo "$as_me:$LINENO: result: $EMACS" >&5
8784    echo "${ECHO_T}$EMACS" >&6
8785  else  else
8786    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
8787    echo "${ECHO_T}no" >&6
8788  fi  fi
8789    
8790    
# Line 5109  cat >> conftest.el <<EOF Line 8802  cat >> conftest.el <<EOF
8802    (message ans))    (message ans))
8803  EOF  EOF
8804    
8805  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs site lisp directory" >&5
8806  echo "configure:5114: checking emacs site lisp directory" >&5  echo $ECHO_N "checking emacs site lisp directory... $ECHO_C" >&6
8807  if [ "$EMACS" != "" ]  && [ "$EMACS_SITE_LISP" = "unknown" ] ; then  if [ "$EMACS" != "" ]  && [ "$EMACS_SITE_LISP" = "unknown" ] ; then
8808          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 `
8809  else  else
8810          EMACS_SITE_LISP=""          EMACS_SITE_LISP=""
8811  fi  fi
8812  echo "$ac_t""$EMACS_SITE_LISP" 1>&6  echo "$as_me:$LINENO: result: $EMACS_SITE_LISP" >&5
8813    echo "${ECHO_T}$EMACS_SITE_LISP" >&6
8814    
8815    
8816  # check for where the emacs site lisp default.el is  # check for where the emacs site lisp default.el is
# Line 5131  cat >> conftest.el <<EOF Line 8825  cat >> conftest.el <<EOF
8825    (message ans))    (message ans))
8826  EOF  EOF
8827    
8828  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs default.el" >&5
8829  echo "configure:5136: checking emacs default.el" >&5  echo $ECHO_N "checking emacs default.el... $ECHO_C" >&6
8830  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
8831          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 `
8832  else  else
# Line 5143  if  test -f "${EMACS_DEFAULT_EL}"  ; the Line 8837  if  test -f "${EMACS_DEFAULT_EL}"  ; the
8837       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el
8838    fi    fi
8839  fi  fi
8840  echo "$ac_t""$EMACS_DEFAULT_EL" 1>&6  echo "$as_me:$LINENO: result: $EMACS_DEFAULT_EL" >&5
8841    echo "${ECHO_T}$EMACS_DEFAULT_EL" >&6
8842    
8843    
8844    
# Line 5154  cat >> conftest.el <<EOF Line 8849  cat >> conftest.el <<EOF
8849  (let ((ans "") file (tem Info-default-directory-list))  (let ((ans "") file (tem Info-default-directory-list))
8850   (while tem   (while tem
8851     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))
8852            (setq ans (file-name-as-directory (car tem)))                    (setq ans (file-name-as-directory (car tem)))
8853            (setq tem nil) ))            (setq tem nil) ))
8854     (setq tem (cdr tem)))     (setq tem (cdr tem)))
8855    (message ans))    (message ans))
8856  EOF  EOF
8857    
8858  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs info/dir" >&5
8859  echo "configure:5165: checking emacs info/dir" >&5  echo $ECHO_N "checking emacs info/dir... $ECHO_C" >&6
8860  if [ "$EMACS" != "" ] && [ "$INFO_DIR" = "unknown" ] ; then  if [ "$EMACS" != "" ] && [ "$INFO_DIR" = "unknown" ] ; then
8861          INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `          INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
8862  fi  fi
# Line 5171  if test -f /usr/info/dir ; then Line 8866  if test -f /usr/info/dir ; then
8866  else true;  else true;
8867  fi  fi
8868  fi  fi
8869  echo "$ac_t""$INFO_DIR" 1>&6  echo "$as_me:$LINENO: result: $INFO_DIR" >&5
8870    echo "${ECHO_T}$INFO_DIR" >&6
8871    
8872    
8873  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for tcl/tk" >&5
8874  echo "configure:5179: checking for tcl/tk" >&5  echo $ECHO_N "checking for tcl/tk... $ECHO_C" >&6
8875    
8876    
8877  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 5185  cat >> conftest.tcl <<EOF Line 8881  cat >> conftest.tcl <<EOF
8881  set dir [set tcl_library]  set dir [set tcl_library]
8882  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
8883        puts  [set dir]        puts  [set dir]
8884        exit              exit
8885    }    }
8886  set dir [file dirname [set tcl_library]]  set dir [file dirname [set tcl_library]]
8887  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
# Line 5197  EOF Line 8893  EOF
8893    
8894  # 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.
8895  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
8896  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
8897  echo "configure:5202: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8898  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if test "${ac_cv_prog_TCLSH+set}" = set; then
8899    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8900  else  else
8901    if test -n "$TCLSH"; then    if test -n "$TCLSH"; then
8902    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
8903  else  else
8904    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905    ac_dummy="$PATH"  for as_dir in $PATH
8906    for ac_dir in $ac_dummy; do  do
8907      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
8908      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
8909        ac_cv_prog_TCLSH="tclsh"    for ac_exec_ext in '' $ac_executable_extensions; do
8910        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8911      fi      ac_cv_prog_TCLSH="tclsh"
8912    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8913    IFS="$ac_save_ifs"      break 2
8914      fi
8915    done
8916    done
8917    
8918    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"
8919  fi  fi
8920  fi  fi
8921  TCLSH="$ac_cv_prog_TCLSH"  TCLSH=$ac_cv_prog_TCLSH
8922  if test -n "$TCLSH"; then  if test -n "$TCLSH"; then
8923    echo "$ac_t""$TCLSH" 1>&6    echo "$as_me:$LINENO: result: $TCLSH" >&5
8924    echo "${ECHO_T}$TCLSH" >&6
8925  else  else
8926    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
8927    echo "${ECHO_T}no" >&6
8928  fi  fi
8929    
8930  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})
# Line 5288  if test -f ${TK_CONFIG_PREFIX}/../includ Line 8990  if test -f ${TK_CONFIG_PREFIX}/../includ
8990    else    else
8991    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then
8992      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
8993    fi        fi
8994  fi  fi
8995  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then
8996    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include
# Line 5297  if test -f ${TCL_CONFIG_PREFIX}/../inclu Line 8999  if test -f ${TCL_CONFIG_PREFIX}/../inclu
8999      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
9000    fi    fi
9001  fi  fi
9002  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -llieee" >&5
9003  echo "configure:5302: checking for main in -llieee" >&5  echo $ECHO_N "checking for main in -llieee... $ECHO_C" >&6
9004  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_lieee_main+set}" = set; then
9005  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
9006  else  else
9007    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
9008  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
9009  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
9010  #line 5310 "configure"  #line $LINENO "configure"
9011  #include "confdefs.h"  #include "confdefs.h"
9012    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:5317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
9013    
9014  fi  #ifdef F77_DUMMY_MAIN
9015  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
9016    echo "$ac_t""yes" 1>&6       extern "C"
9017    #  endif
9018       int F77_DUMMY_MAIN() { return 1; }
9019    #endif
9020    int
9021    main ()
9022    {
9023    main ();
9024      ;
9025      return 0;
9026    }
9027    _ACEOF
9028    rm -f conftest.$ac_objext conftest$ac_exeext
9029    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9030      (eval $ac_link) 2>&5
9031      ac_status=$?
9032      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033      (exit $ac_status); } &&
9034             { ac_try='test -s conftest$ac_exeext'
9035      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036      (eval $ac_try) 2>&5
9037      ac_status=$?
9038      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039      (exit $ac_status); }; }; then
9040      ac_cv_lib_lieee_main=yes
9041    else
9042      echo "$as_me: failed program was:" >&5
9043    cat conftest.$ac_ext >&5
9044    ac_cv_lib_lieee_main=no
9045    fi
9046    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9047    LIBS=$ac_check_lib_save_LIBS
9048    fi
9049    echo "$as_me:$LINENO: result: $ac_cv_lib_lieee_main" >&5
9050    echo "${ECHO_T}$ac_cv_lib_lieee_main" >&6
9051    if test $ac_cv_lib_lieee_main = yes; then
9052    have_ieee=1    have_ieee=1
9053  else  else
9054    echo "$ac_t""no" 1>&6    have_ieee=0
 have_ieee=0  
9055  fi  fi
9056    
9057  if test "$have_ieee" = "0" ; then  if test "$have_ieee" = "0" ; then
# Line 5362  fi Line 9082  fi
9082    
9083    
9084  if test -d "${TK_CONFIG_PREFIX}" ; then  if test -d "${TK_CONFIG_PREFIX}" ; then
9085  echo "$ac_t""using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" 1>&6  echo "$as_me:$LINENO: result: using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" >&5
9086    echo "${ECHO_T}using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" >&6
9087  else  else
9088  echo "$ac_t""not found" 1>&6  echo "$as_me:$LINENO: result: not found" >&5
9089    echo "${ECHO_T}not found" >&6
9090  fi  fi
9091    
9092  NOTIFY=$enable_notify  NOTIFY=$enable_notify
9093    
9094    
9095          
9096    
9097    
9098  # for sgbc the mprotect capabilities.  # for sgbc the mprotect capabilities.
9099    
9100  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
9101    
9102  echo $ac_n "checking alloca""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking alloca" >&5
9103  echo "configure:5382: checking alloca" >&5  echo $ECHO_N "checking alloca... $ECHO_C" >&6
9104  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9105    gcl_ok=no    gcl_ok=no
9106  else  else
9107    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9108  #line 5387 "configure"  #line $LINENO "configure"
9109  #include "confdefs.h"  #include "confdefs.h"
9110  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
9111  EOF  _ACEOF
9112  if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9113  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9114      (eval $ac_link) 2>&5
9115      ac_status=$?
9116      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9118      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119      (eval $ac_try) 2>&5
9120      ac_status=$?
9121      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122      (exit $ac_status); }; }; then
9123    :    :
9124  else  else
9125    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9126    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9127    rm -fr conftest*  cat conftest.$ac_ext >&5
9128    gcl_ok=yes  ( exit $ac_status )
9129    gcl_ok=yes
9130  fi  fi
9131  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9132  fi  fi
   
9133  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
9134      echo "$ac_t""yes" 1>&6      echo "$as_me:$LINENO: result: yes" >&5
9135      cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
9136        cat >>confdefs.h <<\_ACEOF
9137  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
9138  EOF  _ACEOF
9139    
9140  else  else
9141    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
9142    gcl_ok=no    gcl_ok=no
9143  else  else
9144    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9145  #line 5414 "configure"  #line $LINENO "configure"
9146  #include "confdefs.h"  #include "confdefs.h"
9147  #include <alloca.h>  #include <alloca.h>
9148    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
9149  EOF  _ACEOF
9150  if { (eval echo configure:5419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9151  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9152      (eval $ac_link) 2>&5
9153      ac_status=$?
9154      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9156      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157      (eval $ac_try) 2>&5
9158      ac_status=$?
9159      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160      (exit $ac_status); }; }; then
9161    :    :
9162  else  else
9163    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9164    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9165    rm -fr conftest*  cat conftest.$ac_ext >&5
9166    gcl_ok=yes  ( exit $ac_status )
9167    gcl_ok=yes
9168  fi  fi
9169  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9170  fi  fi
   
9171   if test $gcl_ok = yes ; then   if test $gcl_ok = yes ; then
9172      echo "$ac_t""yes" 1>&6      echo "$as_me:$LINENO: result: yes" >&5
9173      cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
9174        cat >>confdefs.h <<\_ACEOF
9175  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
9176  EOF  _ACEOF
9177    
9178      cat >> confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
9179  #define NEED_ALLOCA_H 1  #define NEED_ALLOCA_H 1
9180  EOF  _ACEOF
9181    
9182   fi   fi
9183  fi  fi
9184  if test $gcl_ok = no ; then     echo "$ac_t""no" 1>&6 ; fi  if test $gcl_ok = no ; then     echo "$as_me:$LINENO: result: no" >&5
9185    echo "${ECHO_T}no" >&6 ; fi
9186    
9187    
9188    
# Line 5455  if test $gcl_ok = no ; then     echo "$a Line 9198  if test $gcl_ok = no ; then     echo "$a
9198  # dlopen etc  # dlopen etc
9199  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)
9200  # 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
9201  #  #
9202    
9203  # what machine this is, and include then a machine specific hdr.  # what machine this is, and include then a machine specific hdr.
9204  # and machine specific defs.  # and machine specific defs.
# Line 5475  if test $gcl_ok = no ; then     echo "$a Line 9218  if test $gcl_ok = no ; then     echo "$a
9218    
9219  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
9220  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
9221  echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking Checking for buggy gcc version from redhat" >&5
9222  echo "configure:5480: checking Checking for buggy gcc version from redhat" >&5  echo $ECHO_N "checking Checking for buggy gcc version from redhat... $ECHO_C" >&6
9223  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
9224     then     then
9225          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1
9226          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
9227  #define BROKEN_O4_OPT 1  #define BROKEN_O4_OPT 1
9228  EOF  _ACEOF
9229    
9230    
           
9231          echo ODIR_DEBUG=-O >> makedefsafter          echo ODIR_DEBUG=-O >> makedefsafter
9232          echo >> makedefsafter          echo >> makedefsafter
9233          echo "$ac_t""yes .. turning off -O4" 1>&6          echo "$as_me:$LINENO: result: yes .. turning off -O4" >&5
9234    echo "${ECHO_T}yes .. turning off -O4" >&6
9235     else     else
9236          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
9237  fi  echo "${ECHO_T}no" >&6
9238    fi
9239    
9240  LIBS="$LIBS $TLIBS"  LIBS="$LIBS $TLIBS"
9241    
# Line 5505  O2FLAGS=$TO2FLAGS Line 9250  O2FLAGS=$TO2FLAGS
9250    
9251  if test -f h/$use.defs  ; then  if test -f h/$use.defs  ; then
9252    
9253      
9254    trap '' 1 2 15    ac_config_files="$ac_config_files makedefc windows/gcl.iss"
9255  cat > confcache <<\EOF  cat >confcache <<\_ACEOF
9256  # This file is a shell script that caches the results of configure  # This file is a shell script that caches the results of configure
9257  # tests run on this system so they can be shared between configure  # tests run on this system so they can be shared between configure
9258  # scripts and configure runs.  It is not useful on other systems.  # scripts and configure runs, see configure's option --config-cache.
9259  # If it contains results you don't want to keep, you may remove or edit it.  # It is not useful on other systems.  If it contains results you don't
9260    # want to keep, you may remove or edit it.
9261  #  #
9262  # By default, configure uses ./config.cache as the cache file,  # config.status only pays attention to the cache file if you give it
9263  # creating it if it does not exist already.  You can give configure  # the --recheck option to rerun configure.
 # the --cache-file=FILE option to use a different cache file; that is  
 # what configure does when it calls configure scripts in  
 # subdirectories, so they share the cache.  
 # Giving --cache-file=/dev/null disables caching, for debugging configure.  
 # config.status only pays attention to the cache file if you give it the  
 # --recheck option to rerun configure.  
9264  #  #
9265  EOF  # `ac_cv_env_foo' variables (set or unset) will be overriden when
9266    # loading this file, other *unset* `ac_cv_foo' will be assigned the
9267    # following values.
9268    
9269    _ACEOF
9270    
9271  # The following way of writing the cache mishandles newlines in values,  # The following way of writing the cache mishandles newlines in values,
9272  # but we know of no workaround that is simple, portable, and efficient.  # but we know of no workaround that is simple, portable, and efficient.
9273  # So, don't put newlines in cache variables' values.  # So, don't put newlines in cache variables' values.
9274  # Ultrix sh set writes to stderr and can't be redirected directly,  # Ultrix sh set writes to stderr and can't be redirected directly,
9275  # 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.
9276  (set) 2>&1 |  {
9277    case `(ac_space=' '; set | grep ac_space) 2>&1` in    (set) 2>&1 |
9278    *ac_space=\ *)      case `(ac_space=' '; set | grep ac_space) 2>&1` in
9279      # `set' does not quote correctly, so add quotes (double-quote substitution      *ac_space=\ *)
9280      # turns \\\\ into \\, and sed turns \\ into \).        # `set' does not quote correctly, so add quotes (double-quote
9281      sed -n \        # substitution turns \\\\ into \\, and sed turns \\ into \).
9282        -e "s/'/'\\\\''/g" \        sed -n \
9283        -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"          "s/'/'\\\\''/g;
9284      ;;            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9285    *)        ;;
9286      # `set' quotes correctly as required by POSIX, so do not add quotes.      *)
9287      sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'        # `set' quotes correctly as required by POSIX, so do not add quotes.
9288      ;;        sed -n \
9289    esac >> confcache          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9290  if cmp -s $cache_file confcache; then        ;;
9291    :      esac;
9292  else  } |
9293      sed '
9294         t clear
9295         : clear
9296         s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9297         t end
9298         /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9299         : end' >>confcache
9300    if cmp -s $cache_file confcache; then :; else
9301    if test -w $cache_file; then    if test -w $cache_file; then
9302      echo "updating cache $cache_file"      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9303      cat confcache > $cache_file      cat confcache >$cache_file
9304    else    else
9305      echo "not updating unwritable cache $cache_file"      echo "not updating unwritable cache $cache_file"
9306    fi    fi
9307  fi  fi
9308  rm -f confcache  rm -f confcache
9309    
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
9310  test "x$prefix" = xNONE && prefix=$ac_default_prefix  test "x$prefix" = xNONE && prefix=$ac_default_prefix
9311  # Let make expand exec_prefix.  # Let make expand exec_prefix.
9312  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9313    
9314  # Any assignment to VPATH causes Sun make to only execute  # VPATH may cause trouble with some makes, so we remove $(srcdir),
9315  # the first set of double-colon rules, so remove it if not needed.  # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9316  # If there is a colon in the path, we need to keep it.  # trailing colons and then remove the whole line if VPATH becomes empty
9317    # (actually we leave an empty line to preserve line numbers).
9318  if test "x$srcdir" = x.; then  if test "x$srcdir" = x.; then
9319    ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'    ac_vpsub='/^[         ]*VPATH[        ]*=/{
9320    s/:*\$(srcdir):*/:/;
9321    s/:*\${srcdir}:*/:/;
9322    s/:*@srcdir@:*/:/;
9323    s/^\([^=]*=[    ]*\):*/\1/;
9324    s/:*$//;
9325    s/^[^=]*=[      ]*$//;
9326    }'
9327  fi  fi
9328    
 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15  
   
9329  DEFS=-DHAVE_CONFIG_H  DEFS=-DHAVE_CONFIG_H
9330    
 # Without the "./", some shells look in PATH for config.status.  
 : ${CONFIG_STATUS=./config.status}  
9331    
9332  echo creating $CONFIG_STATUS  : ${CONFIG_STATUS=./config.status}
9333  rm -f $CONFIG_STATUS  ac_clean_files_save=$ac_clean_files
9334  cat > $CONFIG_STATUS <<EOF  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9335  #! /bin/sh  { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9336  # Generated automatically by configure.  echo "$as_me: creating $CONFIG_STATUS" >&6;}
9337    cat >$CONFIG_STATUS <<_ACEOF
9338    #! $SHELL
9339    # Generated by $as_me.
9340  # Run this file to recreate the current configuration.  # Run this file to recreate the current configuration.
 # This directory was configured as follows,  
 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:  
 #  
 # $0 $ac_configure_args  
 #  
9341  # Compiler output produced by configure, useful for debugging  # Compiler output produced by configure, useful for debugging
9342  # configure, is in ./config.log if it exists.  # configure, is in config.log if it exists.
9343    
9344  ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"  debug=false
9345  for ac_option  SHELL=\${CONFIG_SHELL-$SHELL}
9346    _ACEOF
9347    
9348    cat >>$CONFIG_STATUS <<\_ACEOF
9349    
9350    ## --------------------- ##
9351    ## M4sh Initialization.  ##
9352    ## --------------------- ##
9353    
9354    # Be Bourne compatible
9355    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9356      emulate sh
9357      NULLCMD=:
9358    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9359      set -o posix
9360    fi
9361    
9362    # NLS nuisances.
9363    # Support unset when possible.
9364    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9365      as_unset=unset
9366    else
9367      as_unset=false
9368    fi
9369    
9370    (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9371        { $as_unset LANG || test "${LANG+set}" != set; } ||
9372          { LANG=C; export LANG; }
9373    (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9374        { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9375          { LC_ALL=C; export LC_ALL; }
9376    (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9377        { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9378          { LC_TIME=C; export LC_TIME; }
9379    (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9380        { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9381          { LC_CTYPE=C; export LC_CTYPE; }
9382    (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9383        { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9384          { LANGUAGE=C; export LANGUAGE; }
9385    (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9386        { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9387          { LC_COLLATE=C; export LC_COLLATE; }
9388    (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9389        { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9390          { LC_NUMERIC=C; export LC_NUMERIC; }
9391    (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9392        { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9393          { LC_MESSAGES=C; export LC_MESSAGES; }
9394    
9395    
9396    # Name of the executable.
9397    as_me=`(basename "$0") 2>/dev/null ||
9398    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9399             X"$0" : 'X\(//\)$' \| \
9400             X"$0" : 'X\(/\)$' \| \
9401             .     : '\(.\)' 2>/dev/null ||
9402    echo X/"$0" |
9403        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9404              /^X\/\(\/\/\)$/{ s//\1/; q; }
9405              /^X\/\(\/\).*/{ s//\1/; q; }
9406              s/.*/./; q'`
9407    
9408    # PATH needs CR, and LINENO needs CR and PATH.
9409    # Avoid depending upon Character Ranges.
9410    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9411    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9412    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9413    as_cr_digits='0123456789'
9414    as_cr_alnum=$as_cr_Letters$as_cr_digits
9415    
9416    # The user is always right.
9417    if test "${PATH_SEPARATOR+set}" != set; then
9418      echo "#! /bin/sh" >conftest.sh
9419      echo  "exit 0"   >>conftest.sh
9420      chmod +x conftest.sh
9421      if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9422        PATH_SEPARATOR=';'
9423      else
9424        PATH_SEPARATOR=:
9425      fi
9426      rm -f conftest.sh
9427    fi
9428    
9429    
9430      as_lineno_1=$LINENO
9431      as_lineno_2=$LINENO
9432      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9433      test "x$as_lineno_1" != "x$as_lineno_2" &&
9434      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9435      # Find who we are.  Look in the path if we contain no path at all
9436      # relative or not.
9437      case $0 in
9438        *[\\/]* ) as_myself=$0 ;;
9439        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9440    for as_dir in $PATH
9441    do
9442      IFS=$as_save_IFS
9443      test -z "$as_dir" && as_dir=.
9444      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9445    done
9446    
9447           ;;
9448      esac
9449      # We did not find ourselves, most probably we were run as `sh COMMAND'
9450      # in which case we are not to be found in the path.
9451      if test "x$as_myself" = x; then
9452        as_myself=$0
9453      fi
9454      if test ! -f "$as_myself"; then
9455        { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9456    echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9457       { (exit 1); exit 1; }; }
9458      fi
9459      case $CONFIG_SHELL in
9460      '')
9461        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9462    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9463  do  do
9464    case "\$ac_option" in    IFS=$as_save_IFS
9465      test -z "$as_dir" && as_dir=.
9466      for as_base in sh bash ksh sh5; do
9467             case $as_dir in
9468             /*)
9469               if ("$as_dir/$as_base" -c '
9470      as_lineno_1=$LINENO
9471      as_lineno_2=$LINENO
9472      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9473      test "x$as_lineno_1" != "x$as_lineno_2" &&
9474      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9475                 CONFIG_SHELL=$as_dir/$as_base
9476                 export CONFIG_SHELL
9477                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9478               fi;;
9479             esac
9480           done
9481    done
9482    ;;
9483      esac
9484    
9485      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9486      # uniformly replaced by the line number.  The first 'sed' inserts a
9487      # line-number line before each line; the second 'sed' does the real
9488      # work.  The second script uses 'N' to pair each line-number line
9489      # with the numbered line, and appends trailing '-' during
9490      # substitution so that $LINENO is not a special case at line end.
9491      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9492      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9493      sed '=' <$as_myself |
9494        sed '
9495          N
9496          s,$,-,
9497          : loop
9498          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9499          t loop
9500          s,-$,,
9501          s,^['$as_cr_digits']*\n,,
9502        ' >$as_me.lineno &&
9503      chmod +x $as_me.lineno ||
9504        { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9505    echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9506       { (exit 1); exit 1; }; }
9507    
9508      # Don't try to exec as it changes $[0], causing all sort of problems
9509      # (the dirname of $[0] is not the place where we might find the
9510      # original and so on.  Autoconf is especially sensible to this).
9511      . ./$as_me.lineno
9512      # Exit status is that of the last command.
9513      exit
9514    }
9515    
9516    
9517    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9518      *c*,-n*) ECHO_N= ECHO_C='
9519    ' ECHO_T='      ' ;;
9520      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9521      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9522    esac
9523    
9524    if expr a : '\(a\)' >/dev/null 2>&1; then
9525      as_expr=expr
9526    else
9527      as_expr=false
9528    fi
9529    
9530    rm -f conf$$ conf$$.exe conf$$.file
9531    echo >conf$$.file
9532    if ln -s conf$$.file conf$$ 2>/dev/null; then
9533      # We could just check for DJGPP; but this test a) works b) is more generic
9534      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9535      if test -f conf$$.exe; then
9536        # Don't use ln at all; we don't have any links
9537        as_ln_s='cp -p'
9538      else
9539        as_ln_s='ln -s'
9540      fi
9541    elif ln conf$$.file conf$$ 2>/dev/null; then
9542      as_ln_s=ln
9543    else
9544      as_ln_s='cp -p'
9545    fi
9546    rm -f conf$$ conf$$.exe conf$$.file
9547    
9548    as_executable_p="test -f"
9549    
9550    # Sed expression to map a string onto a valid CPP name.
9551    as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9552    
9553    # Sed expression to map a string onto a valid variable name.
9554    as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9555    
9556    
9557    # IFS
9558    # We need space, tab and new line, in precisely that order.
9559    as_nl='
9560    '
9561    IFS="   $as_nl"
9562    
9563    # CDPATH.
9564    $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9565    
9566    exec 6>&1
9567    
9568    # Open the log real soon, to keep \$[0] and so on meaningful, and to
9569    # report actual input values of CONFIG_FILES etc. instead of their
9570    # values after options handling.  Logging --version etc. is OK.
9571    exec 5>>config.log
9572    {
9573      echo
9574      sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9575    ## Running $as_me. ##
9576    _ASBOX
9577    } >&5
9578    cat >&5 <<_CSEOF
9579    
9580    This file was extended by $as_me, which was
9581    generated by GNU Autoconf 2.53.  Invocation command line was
9582    
9583      CONFIG_FILES    = $CONFIG_FILES
9584      CONFIG_HEADERS  = $CONFIG_HEADERS
9585      CONFIG_LINKS    = $CONFIG_LINKS
9586      CONFIG_COMMANDS = $CONFIG_COMMANDS
9587      $ $0 $@
9588    
9589    _CSEOF
9590    echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9591    echo >&5
9592    _ACEOF
9593    
9594    # Files that config.status was made for.
9595    if test -n "$ac_config_files"; then
9596      echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9597    fi
9598    
9599    if test -n "$ac_config_headers"; then
9600      echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9601    fi
9602    
9603    if test -n "$ac_config_links"; then
9604      echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9605    fi
9606    
9607    if test -n "$ac_config_commands"; then
9608      echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9609    fi
9610    
9611    cat >>$CONFIG_STATUS <<\_ACEOF
9612    
9613    ac_cs_usage="\
9614    \`$as_me' instantiates files from templates according to the
9615    current configuration.
9616    
9617    Usage: $0 [OPTIONS] [FILE]...
9618    
9619      -h, --help       print this help, then exit
9620      -V, --version    print version number, then exit
9621      -d, --debug      don't remove temporary files
9622          --recheck    update $as_me by reconfiguring in the same conditions
9623      --file=FILE[:TEMPLATE]
9624                       instantiate the configuration file FILE
9625      --header=FILE[:TEMPLATE]
9626                       instantiate the configuration header FILE
9627    
9628    Configuration files:
9629    $config_files
9630    
9631    Configuration headers:
9632    $config_headers
9633    
9634    Report bugs to <bug-autoconf@gnu.org>."
9635    _ACEOF
9636    
9637    cat >>$CONFIG_STATUS <<_ACEOF
9638    ac_cs_version="\\
9639    config.status
9640    configured by $0, generated by GNU Autoconf 2.53,
9641      with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9642    
9643    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9644    Free Software Foundation, Inc.
9645    This config.status script is free software; the Free Software Foundation
9646    gives unlimited permission to copy, distribute and modify it."
9647    srcdir=$srcdir
9648    _ACEOF
9649    
9650    cat >>$CONFIG_STATUS <<\_ACEOF
9651    # If no file are specified by the user, then we need to provide default
9652    # value.  By we need to know if files were specified by the user.
9653    ac_need_defaults=:
9654    while test $# != 0
9655    do
9656      case $1 in
9657      --*=*)
9658        ac_option=`expr "x$1" : 'x\([^=]*\)='`
9659        ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9660        shift
9661        set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9662        shift
9663        ;;
9664      -*);;
9665      *) # This is not an option, so the user has probably given explicit
9666         # arguments.
9667         ac_need_defaults=false;;
9668      esac
9669    
9670      case $1 in
9671      # Handling of the options.
9672    _ACEOF
9673    cat >>$CONFIG_STATUS <<_ACEOF
9674    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9675      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"      echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9676      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;      exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9677    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)  _ACEOF
9678      echo "$CONFIG_STATUS generated by autoconf version 2.13"  cat >>$CONFIG_STATUS <<\_ACEOF
9679      exit 0 ;;    --version | --vers* | -V )
9680    -help | --help | --hel | --he | --h)      echo "$ac_cs_version"; exit 0 ;;
9681      echo "\$ac_cs_usage"; exit 0 ;;    --he | --h)
9682    *) echo "\$ac_cs_usage"; exit 1 ;;      # Conflict between --help and --header
9683        { { echo "$as_me:$LINENO: error: ambiguous option: $1
9684    Try \`$0 --help' for more information." >&5
9685    echo "$as_me: error: ambiguous option: $1
9686    Try \`$0 --help' for more information." >&2;}
9687       { (exit 1); exit 1; }; };;
9688      --help | --hel | -h )
9689        echo "$ac_cs_usage"; exit 0 ;;
9690      --debug | --d* | -d )
9691        debug=: ;;
9692      --file | --fil | --fi | --f )
9693        shift
9694        CONFIG_FILES="$CONFIG_FILES $1"
9695        ac_need_defaults=false;;
9696      --header | --heade | --head | --hea )
9697        shift
9698        CONFIG_HEADERS="$CONFIG_HEADERS $1"
9699        ac_need_defaults=false;;
9700    
9701      # This is an error.
9702      -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9703    Try \`$0 --help' for more information." >&5
9704    echo "$as_me: error: unrecognized option: $1
9705    Try \`$0 --help' for more information." >&2;}
9706       { (exit 1); exit 1; }; } ;;
9707    
9708      *) ac_config_targets="$ac_config_targets $1" ;;
9709    
9710    esac    esac
9711      shift
9712  done  done
9713    
9714  ac_given_srcdir=$srcdir  _ACEOF
9715    
 trap 'rm -fr `echo "makedefc h/gclincl.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15  
 EOF  
 cat >> $CONFIG_STATUS <<EOF  
9716    
 # Protect against being on the right side of a sed subst in config.status.  
 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;  
  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF  
 $ac_vpsub  
 $extrasub  
 s%@SHELL@%$SHELL%g  
 s%@CFLAGS@%$CFLAGS%g  
 s%@CPPFLAGS@%$CPPFLAGS%g  
 s%@CXXFLAGS@%$CXXFLAGS%g  
 s%@FFLAGS@%$FFLAGS%g  
 s%@DEFS@%$DEFS%g  
 s%@LDFLAGS@%$LDFLAGS%g  
 s%@LIBS@%$LIBS%g  
 s%@exec_prefix@%$exec_prefix%g  
 s%@prefix@%$prefix%g  
 s%@program_transform_name@%$program_transform_name%g  
 s%@bindir@%$bindir%g  
 s%@sbindir@%$sbindir%g  
 s%@libexecdir@%$libexecdir%g  
 s%@datadir@%$datadir%g  
 s%@sysconfdir@%$sysconfdir%g  
 s%@sharedstatedir@%$sharedstatedir%g  
 s%@localstatedir@%$localstatedir%g  
 s%@libdir@%$libdir%g  
 s%@includedir@%$includedir%g  
 s%@oldincludedir@%$oldincludedir%g  
 s%@infodir@%$infodir%g  
 s%@mandir@%$mandir%g  
 s%@host@%$host%g  
 s%@host_alias@%$host_alias%g  
 s%@host_cpu@%$host_cpu%g  
 s%@host_vendor@%$host_vendor%g  
 s%@host_os@%$host_os%g  
 s%@PROCESSOR_FLAGS@%$PROCESSOR_FLAGS%g  
 s%@CC@%$CC%g  
 s%@CPP@%$CPP%g  
 s%@AWK@%$AWK%g  
 s%@MAKEINFO@%$MAKEINFO%g  
 s%@GMP@%$GMP%g  
 s%@GMPDIR@%$GMPDIR%g  
 s%@X_CFLAGS@%$X_CFLAGS%g  
 s%@X_PRE_LIBS@%$X_PRE_LIBS%g  
 s%@X_LIBS@%$X_LIBS%g  
 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g  
 s%@BUILD_BFD@%$BUILD_BFD%g  
 s%@LITTLE_END@%$LITTLE_END%g  
 s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g  
 s%@FLISP@%$FLISP%g  
 s%@PAGEWIDTH@%$PAGEWIDTH%g  
 s%@RL_OBJS@%$RL_OBJS%g  
 s%@RL_LIB@%$RL_LIB%g  
 s%@NO_PROFILE@%$NO_PROFILE%g  
 s%@HAVE_SETENV@%$HAVE_SETENV%g  
 s%@HAVE_PUTENV@%$HAVE_PUTENV%g  
 s%@USE_CLEANUP@%$USE_CLEANUP%g  
 s%@ENDIAN_ALREADY_DEFINED@%$ENDIAN_ALREADY_DEFINED%g  
 s%@HAVE_SV_ONSTACK@%$HAVE_SV_ONSTACK%g  
 s%@HAVE_SIGSYS@%$HAVE_SIGSYS%g  
 s%@HAVE_SIGEMT@%$HAVE_SIGEMT%g  
 s%@EMACS@%$EMACS%g  
 s%@EMACS_SITE_LISP@%$EMACS_SITE_LISP%g  
 s%@EMACS_DEFAULT_EL@%$EMACS_DEFAULT_EL%g  
 s%@INFO_DIR@%$INFO_DIR%g  
 s%@TCLSH@%$TCLSH%g  
 s%@TK_CONFIG_PREFIX@%$TK_CONFIG_PREFIX%g  
 s%@TK_LIBRARY@%$TK_LIBRARY%g  
 s%@TCL_LIBRARY@%$TCL_LIBRARY%g  
 s%@TK_XINCLUDES@%$TK_XINCLUDES%g  
 s%@TK_INCLUDE@%$TK_INCLUDE%g  
 s%@TCL_INCLUDE@%$TCL_INCLUDE%g  
 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g  
 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g  
 s%@TK_XLIBSW@%$TK_XLIBSW%g  
 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g  
 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g  
 s%@TCL_LIBS@%$TCL_LIBS%g  
 s%@NOTIFY@%$NOTIFY%g  
 s%@BROKEN_O4_OPT@%$BROKEN_O4_OPT%g  
 s%@FINAL_CFLAGS@%$FINAL_CFLAGS%g  
 s%@O3FLAGS@%$O3FLAGS%g  
 s%@O2FLAGS@%$O2FLAGS%g  
 s%@use@%$use%g  
9717    
9718    
9719    
9720    cat >>$CONFIG_STATUS <<\_ACEOF
9721    for ac_config_target in $ac_config_targets
9722    do
9723      case "$ac_config_target" in
9724      # Handling of arguments.
9725      "makedefc" ) CONFIG_FILES="$CONFIG_FILES makedefc" ;;
9726      "windows/gcl.iss" ) CONFIG_FILES="$CONFIG_FILES windows/gcl.iss" ;;
9727      "h/gclincl.h" ) CONFIG_HEADERS="$CONFIG_HEADERS h/gclincl.h" ;;
9728      *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9729    echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9730       { (exit 1); exit 1; }; };;
9731      esac
9732    done
9733    
9734    # If the user did not use the arguments to specify the items to instantiate,
9735    # then the envvar interface is used.  Set only those that are not.
9736    # We use the long form for the default assignment because of an extremely
9737    # bizarre bug on SunOS 4.1.3.
9738    if $ac_need_defaults; then
9739      test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9740      test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9741    fi
9742    
9743    # Create a temporary directory, and hook for its removal unless debugging.
9744    $debug ||
9745    {
9746      trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9747      trap '{ (exit 1); exit 1; }' 1 2 13 15
9748    }
9749    
9750    # Create a (secure) tmp directory for tmp files.
9751    : ${TMPDIR=/tmp}
9752    {
9753      tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9754      test -n "$tmp" && test -d "$tmp"
9755    }  ||
9756    {
9757      tmp=$TMPDIR/cs$$-$RANDOM
9758      (umask 077 && mkdir $tmp)
9759    } ||
9760    {
9761       echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9762       { (exit 1); exit 1; }
9763    }
9764    
9765    _ACEOF
9766    
9767    cat >>$CONFIG_STATUS <<_ACEOF
9768    
9769    #
9770    # CONFIG_FILES section.
9771    #
9772    
9773    # No need to generate the scripts if there are no CONFIG_FILES.
9774    # This happens for instance when ./config.status config.h
9775    if test -n "\$CONFIG_FILES"; then
9776      # Protect against being on the right side of a sed subst in config.status.
9777      sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9778       s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9779    s,@SHELL@,$SHELL,;t t
9780    s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9781    s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9782    s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9783    s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9784    s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9785    s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9786    s,@exec_prefix@,$exec_prefix,;t t
9787    s,@prefix@,$prefix,;t t
9788    s,@program_transform_name@,$program_transform_name,;t t
9789    s,@bindir@,$bindir,;t t
9790    s,@sbindir@,$sbindir,;t t
9791    s,@libexecdir@,$libexecdir,;t t
9792    s,@datadir@,$datadir,;t t
9793    s,@sysconfdir@,$sysconfdir,;t t
9794    s,@sharedstatedir@,$sharedstatedir,;t t
9795    s,@localstatedir@,$localstatedir,;t t
9796    s,@libdir@,$libdir,;t t
9797    s,@includedir@,$includedir,;t t
9798    s,@oldincludedir@,$oldincludedir,;t t
9799    s,@infodir@,$infodir,;t t
9800    s,@mandir@,$mandir,;t t
9801    s,@build_alias@,$build_alias,;t t
9802    s,@host_alias@,$host_alias,;t t
9803    s,@target_alias@,$target_alias,;t t
9804    s,@DEFS@,$DEFS,;t t
9805    s,@ECHO_C@,$ECHO_C,;t t
9806    s,@ECHO_N@,$ECHO_N,;t t
9807    s,@ECHO_T@,$ECHO_T,;t t
9808    s,@LIBS@,$LIBS,;t t
9809    s,@VERSION@,$VERSION,;t t
9810    s,@build@,$build,;t t
9811    s,@build_cpu@,$build_cpu,;t t
9812    s,@build_vendor@,$build_vendor,;t t
9813    s,@build_os@,$build_os,;t t
9814    s,@host@,$host,;t t
9815    s,@host_cpu@,$host_cpu,;t t
9816    s,@host_vendor@,$host_vendor,;t t
9817    s,@host_os@,$host_os,;t t
9818    s,@PROCESSOR_FLAGS@,$PROCESSOR_FLAGS,;t t
9819    s,@CC@,$CC,;t t
9820    s,@CFLAGS@,$CFLAGS,;t t
9821    s,@LDFLAGS@,$LDFLAGS,;t t
9822    s,@CPPFLAGS@,$CPPFLAGS,;t t
9823    s,@ac_ct_CC@,$ac_ct_CC,;t t
9824    s,@EXEEXT@,$EXEEXT,;t t
9825    s,@OBJEXT@,$OBJEXT,;t t
9826    s,@CPP@,$CPP,;t t
9827    s,@AWK@,$AWK,;t t
9828    s,@MAKEINFO@,$MAKEINFO,;t t
9829    s,@GMP@,$GMP,;t t
9830    s,@GMPDIR@,$GMPDIR,;t t
9831    s,@X_CFLAGS@,$X_CFLAGS,;t t
9832    s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9833    s,@X_LIBS@,$X_LIBS,;t t
9834    s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9835    s,@BUILD_BFD@,$BUILD_BFD,;t t
9836    s,@LITTLE_END@,$LITTLE_END,;t t
9837    s,@HAVE_LONG_LONG@,$HAVE_LONG_LONG,;t t
9838    s,@FLISP@,$FLISP,;t t
9839    s,@PAGEWIDTH@,$PAGEWIDTH,;t t
9840    s,@RL_OBJS@,$RL_OBJS,;t t
9841    s,@RL_LIB@,$RL_LIB,;t t
9842    s,@NO_PROFILE@,$NO_PROFILE,;t t
9843    s,@HAVE_SETENV@,$HAVE_SETENV,;t t
9844    s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t
9845    s,@USE_CLEANUP@,$USE_CLEANUP,;t t
9846    s,@ENDIAN_ALREADY_DEFINED@,$ENDIAN_ALREADY_DEFINED,;t t
9847    s,@HAVE_SV_ONSTACK@,$HAVE_SV_ONSTACK,;t t
9848    s,@HAVE_SIGSYS@,$HAVE_SIGSYS,;t t
9849    s,@HAVE_SIGEMT@,$HAVE_SIGEMT,;t t
9850    s,@EMACS@,$EMACS,;t t
9851    s,@EMACS_SITE_LISP@,$EMACS_SITE_LISP,;t t
9852    s,@EMACS_DEFAULT_EL@,$EMACS_DEFAULT_EL,;t t
9853    s,@INFO_DIR@,$INFO_DIR,;t t
9854    s,@TCLSH@,$TCLSH,;t t
9855    s,@TK_CONFIG_PREFIX@,$TK_CONFIG_PREFIX,;t t
9856    s,@TK_LIBRARY@,$TK_LIBRARY,;t t
9857    s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
9858    s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
9859    s,@TK_INCLUDE@,$TK_INCLUDE,;t t
9860    s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
9861    s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
9862    s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
9863    s,@TK_XLIBSW@,$TK_XLIBSW,;t t
9864    s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
9865    s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
9866    s,@TCL_LIBS@,$TCL_LIBS,;t t
9867    s,@NOTIFY@,$NOTIFY,;t t
9868    s,@BROKEN_O4_OPT@,$BROKEN_O4_OPT,;t t
9869    s,@FINAL_CFLAGS@,$FINAL_CFLAGS,;t t
9870    s,@O3FLAGS@,$O3FLAGS,;t t
9871    s,@O2FLAGS@,$O2FLAGS,;t t
9872    s,@use@,$use,;t t
9873  CEOF  CEOF
 EOF  
9874    
9875  cat >> $CONFIG_STATUS <<\EOF  _ACEOF
9876    
9877  # Split the substitutions into bite-sized pieces for seds with    cat >>$CONFIG_STATUS <<\_ACEOF
9878  # small command number limits, like on Digital OSF/1 and HP-UX.    # Split the substitutions into bite-sized pieces for seds with
9879  ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.    # small command number limits, like on Digital OSF/1 and HP-UX.
9880  ac_file=1 # Number of current file.    ac_max_sed_lines=48
9881  ac_beg=1 # First line for current file.    ac_sed_frag=1 # Number of current file.
9882  ac_end=$ac_max_sed_cmds # Line after last line for current file.    ac_beg=1 # First line for current file.
9883  ac_more_lines=:    ac_end=$ac_max_sed_lines # Line after last line for current file.
9884  ac_sed_cmds=""    ac_more_lines=:
9885  while $ac_more_lines; do    ac_sed_cmds=
9886    if test $ac_beg -gt 1; then    while $ac_more_lines; do
9887      sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file      if test $ac_beg -gt 1; then
9888    else        sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     sed "${ac_end}q" conftest.subs > conftest.s$ac_file  
   fi  
   if test ! -s conftest.s$ac_file; then  
     ac_more_lines=false  
     rm -f conftest.s$ac_file  
   else  
     if test -z "$ac_sed_cmds"; then  
       ac_sed_cmds="sed -f conftest.s$ac_file"  
9889      else      else
9890        ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"        sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9891      fi      fi
9892      ac_file=`expr $ac_file + 1`      if test ! -s $tmp/subs.frag; then
9893      ac_beg=$ac_end        ac_more_lines=false
9894      ac_end=`expr $ac_end + $ac_max_sed_cmds`      else
9895          # The purpose of the label and of the branching condition is to
9896          # speed up the sed processing (if there are no `@' at all, there
9897          # is no need to browse any of the substitutions).
9898          # These are the two extra sed commands mentioned above.
9899          (echo ':t
9900      /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9901          if test -z "$ac_sed_cmds"; then
9902            ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9903          else
9904            ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9905          fi
9906          ac_sed_frag=`expr $ac_sed_frag + 1`
9907          ac_beg=$ac_end
9908          ac_end=`expr $ac_end + $ac_max_sed_lines`
9909        fi
9910      done
9911      if test -z "$ac_sed_cmds"; then
9912        ac_sed_cmds=cat
9913    fi    fi
9914  done  fi # test -n "$CONFIG_FILES"
 if test -z "$ac_sed_cmds"; then  
   ac_sed_cmds=cat  
 fi  
 EOF  
9915    
9916  cat >> $CONFIG_STATUS <<EOF  _ACEOF
9917    cat >>$CONFIG_STATUS <<\_ACEOF
9918  CONFIG_FILES=\${CONFIG_FILES-"makedefc"}  for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 EOF  
 cat >> $CONFIG_STATUS <<\EOF  
 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then  
9919    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9920    case "$ac_file" in    case $ac_file in
9921    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
9922         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
9923    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9924            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9925      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9926            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9927      * )   ac_file_in=$ac_file.in ;;
9928      esac
9929    
9930      # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9931      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9932    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9933             X"$ac_file" : 'X\(//\)[^/]' \| \
9934             X"$ac_file" : 'X\(//\)$' \| \
9935             X"$ac_file" : 'X\(/\)' \| \
9936             .     : '\(.\)' 2>/dev/null ||
9937    echo X"$ac_file" |
9938        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9939              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9940              /^X\(\/\/\)$/{ s//\1/; q; }
9941              /^X\(\/\).*/{ s//\1/; q; }
9942              s/.*/./; q'`
9943      { case "$ac_dir" in
9944      [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9945      *)                      as_incr_dir=.;;
9946    esac
9947    as_dummy="$ac_dir"
9948    for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9949      case $as_mkdir_dir in
9950        # Skip DOS drivespec
9951        ?:) as_incr_dir=$as_mkdir_dir ;;
9952        *)
9953          as_incr_dir=$as_incr_dir/$as_mkdir_dir
9954          test -d "$as_incr_dir" ||
9955            mkdir "$as_incr_dir" ||
9956            { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9957    echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9958       { (exit 1); exit 1; }; }
9959        ;;
9960    esac    esac
9961    done; }
9962    
9963    # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.    ac_builddir=.
9964    
9965    # Remove last slash and all that follows it.  Not all systems have dirname.  if test "$ac_dir" != .; then
9966    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`    ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9967    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then    # A "../" for each directory in $ac_dir_suffix.
9968      # The file is in a subdirectory.    ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9969      test ! -d "$ac_dir" && mkdir "$ac_dir"  else
9970      ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"    ac_dir_suffix= ac_top_builddir=
9971      # A "../" for each directory in $ac_dir_suffix.  fi
     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`  
   else  
     ac_dir_suffix= ac_dots=  
   fi  
9972    
9973    case "$ac_given_srcdir" in  case $srcdir in
9974    .)  srcdir=.    .)  # No --srcdir option.  We are building in place.
9975        if test -z "$ac_dots"; then top_srcdir=.      ac_srcdir=.
9976        else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;      if test -z "$ac_top_builddir"; then
9977    /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;         ac_top_srcdir=.
9978        else
9979           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9980        fi ;;
9981      [\\/]* | ?:[\\/]* )  # Absolute path.
9982        ac_srcdir=$srcdir$ac_dir_suffix;
9983        ac_top_srcdir=$srcdir ;;
9984    *) # Relative path.    *) # Relative path.
9985      srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9986      top_srcdir="$ac_dots$ac_given_srcdir" ;;      ac_top_srcdir=$ac_top_builddir$srcdir ;;
9987    esac  esac
9988    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9989    # absolute.
9990    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9991    ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9992    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9993    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9994    
9995    
   echo creating "$ac_file"  
   rm -f "$ac_file"  
   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."  
   case "$ac_file" in  
   *Makefile*) ac_comsub="1i\\  
 # $configure_input" ;;  
   *) ac_comsub= ;;  
   esac  
9996    
9997    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`    if test x"$ac_file" != x-; then
9998    sed -e "$ac_comsub      { echo "$as_me:$LINENO: creating $ac_file" >&5
9999  s%@configure_input@%$configure_input%g  echo "$as_me: creating $ac_file" >&6;}
10000  s%@srcdir@%$srcdir%g      rm -f "$ac_file"
10001  s%@top_srcdir@%$top_srcdir%g    fi
10002  " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file    # Let's still pretend it is `configure' which instantiates (i.e., don't
10003  fi; done    # use $as_me), people would be surprised to read:
10004  rm -f conftest.s*    #    /* config.h.  Generated by config.status.  */
10005      if test x"$ac_file" = x-; then
10006        configure_input=
10007      else
10008        configure_input="$ac_file.  "
10009      fi
10010      configure_input=$configure_input"Generated from `echo $ac_file_in |
10011                                         sed 's,.*/,,'` by configure."
10012    
10013      # First look for the input files in the build tree, otherwise in the
10014      # src tree.
10015      ac_file_inputs=`IFS=:
10016        for f in $ac_file_in; do
10017          case $f in
10018          -) echo $tmp/stdin ;;
10019          [\\/$]*)
10020             # Absolute (can't be DOS-style, as IFS=:)
10021             test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10022    echo "$as_me: error: cannot find input file: $f" >&2;}
10023       { (exit 1); exit 1; }; }
10024             echo $f;;
10025          *) # Relative
10026             if test -f "$f"; then
10027               # Build tree
10028               echo $f
10029             elif test -f "$srcdir/$f"; then
10030               # Source tree
10031               echo $srcdir/$f
10032             else
10033               # /dev/null tree
10034               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10035    echo "$as_me: error: cannot find input file: $f" >&2;}
10036       { (exit 1); exit 1; }; }
10037             fi;;
10038          esac
10039        done` || { (exit 1); exit 1; }
10040    _ACEOF
10041    cat >>$CONFIG_STATUS <<_ACEOF
10042      sed "$ac_vpsub
10043    $extrasub
10044    _ACEOF
10045    cat >>$CONFIG_STATUS <<\_ACEOF
10046    :t
10047    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10048    s,@configure_input@,$configure_input,;t t
10049    s,@srcdir@,$ac_srcdir,;t t
10050    s,@abs_srcdir@,$ac_abs_srcdir,;t t
10051    s,@top_srcdir@,$ac_top_srcdir,;t t
10052    s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10053    s,@builddir@,$ac_builddir,;t t
10054    s,@abs_builddir@,$ac_abs_builddir,;t t
10055    s,@top_builddir@,$ac_top_builddir,;t t
10056    s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10057    " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10058      rm -f $tmp/stdin
10059      if test x"$ac_file" != x-; then
10060        mv $tmp/out $ac_file
10061      else
10062        cat $tmp/out
10063        rm -f $tmp/out
10064      fi
10065    
10066    done
10067    _ACEOF
10068    cat >>$CONFIG_STATUS <<\_ACEOF
10069    
10070    #
10071    # CONFIG_HEADER section.
10072    #
10073    
10074  # 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
10075  # 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.
10076  #  #
10077  # ac_d sets the value in "#define NAME VALUE" lines.  # ac_d sets the value in "#define NAME VALUE" lines.
10078  ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'  ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10079  ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'  ac_dB='[        ].*$,\1#\2'
10080  ac_dC='\3'  ac_dC=' '
10081  ac_dD='%g'  ac_dD=',;t'
10082  # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".  # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10083  ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10084  ac_uB='\([      ]\)%\1#\2define\3'  ac_uB='$,\1#\2define\3'
10085  ac_uC=' '  ac_uC=' '
10086  ac_uD='\4%g'  ac_uD=',;t'
 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".  
 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  
 ac_eB='$%\1#\2define\3'  
 ac_eC=' '  
 ac_eD='%g'  
10087    
10088  if test "${CONFIG_HEADERS+set}" != set; then  for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 EOF  
 cat >> $CONFIG_STATUS <<EOF  
   CONFIG_HEADERS="h/gclincl.h"  
 EOF  
 cat >> $CONFIG_STATUS <<\EOF  
 fi  
 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then  
10089    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10090    case "$ac_file" in    case $ac_file in
10091    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
10092         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
10093    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10094            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10095      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10096            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10097      * )   ac_file_in=$ac_file.in ;;
10098    esac    esac
10099    
10100    echo creating $ac_file    test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10101    echo "$as_me: creating $ac_file" >&6;}
   rm -f conftest.frag conftest.in conftest.out  
   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`  
   cat $ac_file_inputs > conftest.in  
   
 EOF  
10102    
10103  # Transform confdefs.h into a sed script conftest.vals that substitutes    # First look for the input files in the build tree, otherwise in the
10104  # the proper values into config.h.in to produce config.h.  And first:    # src tree.
10105  # Protect against being on the right side of a sed subst in config.status.    ac_file_inputs=`IFS=:
10106  # Protect against being in an unquoted here document in config.status.      for f in $ac_file_in; do
10107  rm -f conftest.vals        case $f in
10108  cat > conftest.hdr <<\EOF        -) echo $tmp/stdin ;;
10109  s/[\\&%]/\\&/g        [\\/$]*)
10110  s%[\\$`]%\\&%g           # Absolute (can't be DOS-style, as IFS=:)
10111  s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp           test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10112  s%ac_d%ac_u%gp  echo "$as_me: error: cannot find input file: $f" >&2;}
10113  s%ac_u%ac_e%gp     { (exit 1); exit 1; }; }
10114  EOF           echo $f;;
10115  sed -n -f conftest.hdr confdefs.h > conftest.vals        *) # Relative
10116  rm -f conftest.hdr           if test -f "$f"; then
10117               # Build tree
10118               echo $f
10119             elif test -f "$srcdir/$f"; then
10120               # Source tree
10121               echo $srcdir/$f
10122             else
10123               # /dev/null tree
10124               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10125    echo "$as_me: error: cannot find input file: $f" >&2;}
10126       { (exit 1); exit 1; }; }
10127             fi;;
10128          esac
10129        done` || { (exit 1); exit 1; }
10130      # Remove the trailing spaces.
10131      sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
10132    
10133    _ACEOF
10134    
10135    # Transform confdefs.h into two sed scripts, `conftest.defines' and
10136    # `conftest.undefs', that substitutes the proper values into
10137    # config.h.in to produce config.h.  The first handles `#define'
10138    # templates, and the second `#undef' templates.
10139    # And first: Protect against being on the right side of a sed subst in
10140    # config.status.  Protect against being in an unquoted here document
10141    # in config.status.
10142    rm -f conftest.defines conftest.undefs
10143    # Using a here document instead of a string reduces the quoting nightmare.
10144    # Putting comments in sed scripts is not portable.
10145    #
10146    # `end' is used to avoid that the second main sed command (meant for
10147    # 0-ary CPP macros) applies to n-ary macro definitions.
10148    # See the Autoconf documentation for `clear'.
10149    cat >confdef2sed.sed <<\_ACEOF
10150    s/[\\&,]/\\&/g
10151    s,[\\$`],\\&,g
10152    t clear
10153    : clear
10154    s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10155    t end
10156    s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10157    : end
10158    _ACEOF
10159    # If some macros were called several times there might be several times
10160    # the same #defines, which is useless.  Nevertheless, we may not want to
10161    # sort them, since we want the *last* AC-DEFINE to be honored.
10162    uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10163    sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10164    rm -f confdef2sed.sed
10165    
10166  # This sed command replaces #undef with comments.  This is necessary, for  # This sed command replaces #undef with comments.  This is necessary, for
10167  # example, in the case of _POSIX_SOURCE, which is predefined and required  # example, in the case of _POSIX_SOURCE, which is predefined and required
10168  # on some systems where configure will not decide to define it.  # on some systems where configure will not decide to define it.
10169  cat >> conftest.vals <<\EOF  cat >>conftest.undefs <<\_ACEOF
10170  s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%  s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10171  EOF  _ACEOF
10172    
10173  # Break up conftest.vals because some shells have a limit on  # Break up conftest.defines because some shells have a limit on the size
10174  # the size of here documents, and old seds have small limits too.  # of here documents, and old seds have small limits too (100 cmds).
10175    echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10176    echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10177    echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10178    echo '  :' >>$CONFIG_STATUS
10179    rm -f conftest.tail
10180    while grep . conftest.defines >/dev/null
10181    do
10182      # Write a limited-size here document to $tmp/defines.sed.
10183      echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10184      # Speed up: don't consider the non `#define' lines.
10185      echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
10186      # Work around the forget-to-reset-the-flag bug.
10187      echo 't clr' >>$CONFIG_STATUS
10188      echo ': clr' >>$CONFIG_STATUS
10189      sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10190      echo 'CEOF
10191      sed -f $tmp/defines.sed $tmp/in >$tmp/out
10192      rm -f $tmp/in
10193      mv $tmp/out $tmp/in
10194    ' >>$CONFIG_STATUS
10195      sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10196      rm -f conftest.defines
10197      mv conftest.tail conftest.defines
10198    done
10199    rm -f conftest.defines
10200    echo '  fi # egrep' >>$CONFIG_STATUS
10201    echo >>$CONFIG_STATUS
10202    
10203    # Break up conftest.undefs because some shells have a limit on the size
10204    # of here documents, and old seds have small limits too (100 cmds).
10205    echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10206  rm -f conftest.tail  rm -f conftest.tail
10207  while :  while grep . conftest.undefs >/dev/null
10208  do  do
10209    ac_lines=`grep -c . conftest.vals`    # Write a limited-size here document to $tmp/undefs.sed.
10210    # grep -c gives empty output for an empty file on some AIX systems.    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10211    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi    # Speed up: don't consider the non `#undef'
10212    # Write a limited-size here document to conftest.frag.    echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10213    echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS    # Work around the forget-to-reset-the-flag bug.
10214    sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS    echo 't clr' >>$CONFIG_STATUS
10215      echo ': clr' >>$CONFIG_STATUS
10216      sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10217    echo 'CEOF    echo 'CEOF
10218    sed -f conftest.frag conftest.in > conftest.out    sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10219    rm -f conftest.in    rm -f $tmp/in
10220    mv conftest.out conftest.in    mv $tmp/out $tmp/in
10221  ' >> $CONFIG_STATUS  ' >>$CONFIG_STATUS
10222    sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail    sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10223    rm -f conftest.vals    rm -f conftest.undefs
10224    mv conftest.tail conftest.vals    mv conftest.tail conftest.undefs
10225  done  done
10226  rm -f conftest.vals  rm -f conftest.undefs
10227    
10228  cat >> $CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\_ACEOF
10229    rm -f conftest.frag conftest.h    # Let's still pretend it is `configure' which instantiates (i.e., don't
10230    echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h    # use $as_me), people would be surprised to read:
10231    cat conftest.in >> conftest.h    #    /* config.h.  Generated by config.status.  */
10232    rm -f conftest.in    if test x"$ac_file" = x-; then
10233    if cmp -s $ac_file conftest.h 2>/dev/null; then      echo "/* Generated by configure.  */" >$tmp/config.h
     echo "$ac_file is unchanged"  
     rm -f conftest.h  
10234    else    else
10235      # Remove last slash and all that follows it.  Not all systems have dirname.      echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`  
       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then  
       # The file is in a subdirectory.  
       test ! -d "$ac_dir" && mkdir "$ac_dir"  
     fi  
     rm -f $ac_file  
     mv conftest.h $ac_file  
10236    fi    fi
10237  fi; done    cat $tmp/in >>$tmp/config.h
10238      rm -f $tmp/in
10239      if test x"$ac_file" != x-; then
10240        if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10241          { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10242    echo "$as_me: $ac_file is unchanged" >&6;}
10243        else
10244          ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10245    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10246             X"$ac_file" : 'X\(//\)[^/]' \| \
10247             X"$ac_file" : 'X\(//\)$' \| \
10248             X"$ac_file" : 'X\(/\)' \| \
10249             .     : '\(.\)' 2>/dev/null ||
10250    echo X"$ac_file" |
10251        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10252              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10253              /^X\(\/\/\)$/{ s//\1/; q; }
10254              /^X\(\/\).*/{ s//\1/; q; }
10255              s/.*/./; q'`
10256          { case "$ac_dir" in
10257      [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10258      *)                      as_incr_dir=.;;
10259    esac
10260    as_dummy="$ac_dir"
10261    for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10262      case $as_mkdir_dir in
10263        # Skip DOS drivespec
10264        ?:) as_incr_dir=$as_mkdir_dir ;;
10265        *)
10266          as_incr_dir=$as_incr_dir/$as_mkdir_dir
10267          test -d "$as_incr_dir" ||
10268            mkdir "$as_incr_dir" ||
10269            { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10270    echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10271       { (exit 1); exit 1; }; }
10272        ;;
10273      esac
10274    done; }
10275    
10276  EOF        rm -f $ac_file
10277  cat >> $CONFIG_STATUS <<EOF        mv $tmp/config.h $ac_file
10278        fi
10279      else
10280        cat $tmp/config.h
10281        rm -f $tmp/config.h
10282      fi
10283    done
10284    _ACEOF
10285    
10286  EOF  cat >>$CONFIG_STATUS <<\_ACEOF
 cat >> $CONFIG_STATUS <<\EOF  
10287    
10288  exit 0  { (exit 0); exit 0; }
10289  EOF  _ACEOF
10290  chmod +x $CONFIG_STATUS  chmod +x $CONFIG_STATUS
10291  rm -fr confdefs* $ac_clean_files  ac_clean_files=$ac_clean_files_save
10292  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1  
10293    
10294    # configure is writing to config.log, and then calls config.status.
10295    # config.status does its own redirection, appending to config.log.
10296    # Unfortunately, on DOS this fails, as config.log is still kept open
10297    # by configure, so config.status won't be able to write to it; its
10298    # output is simply discarded.  So we exec the FD to /dev/null,
10299    # effectively closing config.log, so it can be properly (re)opened and
10300    # appended to by config.status.  When coming back to configure, we
10301    # need to make the FD available again.
10302    if test "$no_create" != yes; then
10303      ac_cs_success=:
10304      exec 5>/dev/null
10305      $SHELL $CONFIG_STATUS || ac_cs_success=false
10306      exec 5>>config.log
10307      # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10308      # would make configure fail if this is the last instruction.
10309      $ac_cs_success || { (exit 1); exit 1; }
10310    fi
10311    
10312    echo makedefc    echo makedefc
10313    cat makedefc    cat makedefc

Legend:
Removed from v.1.101  
changed lines
  Added in v.1.102

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