/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

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

revision 1.107 by camm, Sun Mar 2 15:23:17 2003 UTC revision 1.108 by mjthomas, Tue Apr 8 23:15:55 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-japi=yes will compile in support for the JAPI graphical interface if present on your system"  # include <sys/types.h>
266  ac_help="$ac_help  #endif
267   --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images  #if HAVE_SYS_STAT_H
268          "  # include <sys/stat.h>
269  ac_help="$ac_help  #endif
270   --enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files  #if STDC_HEADERS
271          "  # include <stdlib.h>
272  ac_help="$ac_help  # include <stddef.h>
273   --enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files  #else
274          "  # if HAVE_STDLIB_H
275  ac_help="$ac_help  #  include <stdlib.h>
276   --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files  # endif
277          "  #endif
278  ac_help="$ac_help  #if HAVE_STRING_H
279   --enable-custreloc uses custom gcl code if available for loading  and relocationing object files  # if !STDC_HEADERS && HAVE_MEMORY_H
280          "  #  include <memory.h>
281  ac_help="$ac_help  # endif
282   --enable-debug builds gcl with -g in CFLAGS to enable running under gdb  # include <string.h>
283          "  #endif
284  ac_help="$ac_help  #if HAVE_STRINGS_H
285   --enable-pic builds gcl with -fPIC in CFLAGS  # include <strings.h>
286          "  #endif
287  ac_help="$ac_help  #if HAVE_INTTYPES_H
288   --enable-oldgmp will link against gmp2 instead of gmp3  # include <inttypes.h>
289          "  #else
290  ac_help="$ac_help  # if HAVE_STDINT_H
291   --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source  #  include <stdint.h>
292          "  # endif
293  ac_help="$ac_help  #endif
294    --with-x                use the X Window System"  #if HAVE_UNISTD_H
295  ac_help="$ac_help  # include <unistd.h>
296  --enable-readine    enables command line completion via the readline library "  #endif"
297  ac_help="$ac_help  
 --enable-ansi builds a large gcl aiming for ansi compliance,  
                     --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 85  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 102  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 120  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 181  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 278  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 304  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 340  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 350  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 361  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 423  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 525  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-japi=yes will compile in support for the JAPI graphical interface if present on your system
843     --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images
844    
845     --enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files
846    
847     --enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files
848    
849     --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files
850    
851     --enable-custreloc uses custom gcl code if available for loading  and relocationing object files
852    
853     --enable-debug builds gcl with -g in CFLAGS to enable running under gdb
854    
855     --enable-pic builds gcl with -fPIC in CFLAGS
856    
857     --enable-oldgmp will link against gmp2 instead of gmp3
858    
859     --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source
860    
861    --enable-readine    enables command line completion via the readline library
862    --enable-ansi builds a large gcl aiming for ansi compliance,
863                        --disable-ansi builds the smaller traditional CLtL1 image
864    
865    Optional Packages:
866      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
867      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
868      --with-x                use the X Window System
869    
870    Some influential environment variables:
871      CC          C compiler command
872      CFLAGS      C compiler flags
873      LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
874                  nonstandard directory <lib dir>
875      CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
876                  headers in a nonstandard directory <include dir>
877      CPP         C preprocessor
878    
879    Use these variables to override the choices made by `configure' or to help
880    it to find libraries and programs with nonstandard names/locations.
881    
882    _ACEOF
883    fi
884    
885    if test "$ac_init_help" = "recursive"; then
886      # If there are subdirs, report their specific --help.
887      ac_popdir=`pwd`
888      for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889        test -d $ac_dir || continue
890        ac_builddir=.
891    
892    if test "$ac_dir" != .; then
893      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894      # A "../" for each directory in $ac_dir_suffix.
895      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896    else
897      ac_dir_suffix= ac_top_builddir=
898    fi
899    
900    case $srcdir in
901      .)  # No --srcdir option.  We are building in place.
902        ac_srcdir=.
903        if test -z "$ac_top_builddir"; then
904           ac_top_srcdir=.
905        else
906           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907        fi ;;
908      [\\/]* | ?:[\\/]* )  # Absolute path.
909        ac_srcdir=$srcdir$ac_dir_suffix;
910        ac_top_srcdir=$srcdir ;;
911      *) # Relative path.
912        ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913        ac_top_srcdir=$ac_top_builddir$srcdir ;;
914    esac
915    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
916    # absolute.
917    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
918    ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
919    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
920    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
921    
922        cd $ac_dir
923        # Check for guested configure; otherwise get Cygnus style configure.
924        if test -f $ac_srcdir/configure.gnu; then
925          echo
926          $SHELL $ac_srcdir/configure.gnu  --help=recursive
927        elif test -f $ac_srcdir/configure; then
928          echo
929          $SHELL $ac_srcdir/configure  --help=recursive
930        elif test -f $ac_srcdir/configure.ac ||
931               test -f $ac_srcdir/configure.in; then
932          echo
933          $ac_configure --help
934        else
935          echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
936        fi
937        cd $ac_popdir
938      done
939    fi
940    
941    test -n "$ac_init_help" && exit 0
942    if $ac_init_version; then
943      cat <<\_ACEOF
944    
945    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
946    Free Software Foundation, Inc.
947    This configure script is free software; the Free Software Foundation
948    gives unlimited permission to copy, distribute and modify it.
949    _ACEOF
950      exit 0
951    fi
952    exec 5>config.log
953    cat >&5 <<_ACEOF
954    This file contains any messages produced by compilers while
955    running configure, to aid debugging if configure makes a mistake.
956    
957    It was created by $as_me, which was
958    generated by GNU Autoconf 2.53.  Invocation command line was
959    
960      $ $0 $@
961    
962    _ACEOF
963    {
964    cat <<_ASUNAME
965    ## --------- ##
966    ## Platform. ##
967    ## --------- ##
968    
969    hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
970    uname -m = `(uname -m) 2>/dev/null || echo unknown`
971    uname -r = `(uname -r) 2>/dev/null || echo unknown`
972    uname -s = `(uname -s) 2>/dev/null || echo unknown`
973    uname -v = `(uname -v) 2>/dev/null || echo unknown`
974    
975    /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
976    /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
977    
978    /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
979    /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
980    /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
981    hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
982    /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
983    /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
984    /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
985    
986    _ASUNAME
987    
988    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
989    for as_dir in $PATH
990    do
991      IFS=$as_save_IFS
992      test -z "$as_dir" && as_dir=.
993      echo "PATH: $as_dir"
994    done
995    
996    } >&5
997    
998    cat >&5 <<_ACEOF
999    
1000    
1001    ## ----------- ##
1002    ## Core tests. ##
1003    ## ----------- ##
1004    
1005    _ACEOF
1006    
1007    
1008    # Keep a trace of the command line.
1009    # Strip out --no-create and --no-recursion so they do not pile up.
1010    # Also quote any args containing shell meta-characters.
1011    ac_configure_args=
1012    ac_sep=
1013    for ac_arg
1014    do
1015      case $ac_arg in
1016      -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017      | --no-cr | --no-c | -n ) continue ;;
1018      -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019      | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020        continue ;;
1021      *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1022        ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1023      esac
1024      case " $ac_configure_args " in
1025        *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1026        *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1027           ac_sep=" " ;;
1028      esac
1029      # Get rid of the leading space.
1030    done
1031    
1032    # When interrupted or exit'd, cleanup temporary files, and complete
1033    # config.log.  We remove comments because anyway the quotes in there
1034    # would cause problems or look ugly.
1035    # WARNING: Be sure not to use single quotes in there, as some shells,
1036    # such as our DU 5.0 friend, will then `close' the trap.
1037    trap 'exit_status=$?
1038      # Save into config.log some information that might help in debugging.
1039      {
1040        echo
1041        cat <<\_ASBOX
1042    ## ---------------- ##
1043    ## Cache variables. ##
1044    ## ---------------- ##
1045    _ASBOX
1046        echo
1047        # The following way of writing the cache mishandles newlines in values,
1048    {
1049      (set) 2>&1 |
1050        case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1051        *ac_space=\ *)
1052          sed -n \
1053            "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1054              s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1055          ;;
1056        *)
1057          sed -n \
1058            "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1059          ;;
1060        esac;
1061    }
1062        echo
1063        if test -s confdefs.h; then
1064          cat <<\_ASBOX
1065    ## ----------- ##
1066    ## confdefs.h. ##
1067    ## ----------- ##
1068    _ASBOX
1069          echo
1070          sed "/^$/d" confdefs.h
1071          echo
1072        fi
1073        test "$ac_signal" != 0 &&
1074          echo "$as_me: caught signal $ac_signal"
1075        echo "$as_me: exit $exit_status"
1076      } >&5
1077      rm -f core core.* *.core &&
1078      rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1079        exit $exit_status
1080         ' 0
1081    for ac_signal in 1 2 13 15; do
1082      trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1083    done
1084    ac_signal=0
1085    
1086    # confdefs.h avoids OS command line length limits that DEFS can exceed.
1087    rm -rf conftest* confdefs.h
1088    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1089    echo >confdefs.h
1090    
1091    # Predefined preprocessor variables.
1092    
1093    cat >>confdefs.h <<_ACEOF
1094    #define PACKAGE_NAME "$PACKAGE_NAME"
1095    _ACEOF
1096    
1097    
1098    cat >>confdefs.h <<_ACEOF
1099    #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1100    _ACEOF
1101    
1102    
1103    cat >>confdefs.h <<_ACEOF
1104    #define PACKAGE_VERSION "$PACKAGE_VERSION"
1105    _ACEOF
1106    
1107    
1108    cat >>confdefs.h <<_ACEOF
1109    #define PACKAGE_STRING "$PACKAGE_STRING"
1110    _ACEOF
1111    
1112    
1113    cat >>confdefs.h <<_ACEOF
1114    #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1115    _ACEOF
1116    
1117    
1118    # Let the site file select an alternate cache file if it wants to.
1119  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
1120  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
1121    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 542  if test -z "$CONFIG_SITE"; then Line 1126  if test -z "$CONFIG_SITE"; then
1126  fi  fi
1127  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
1128    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
1129      echo "loading site script $ac_site_file"      { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1130    echo "$as_me: loading site script $ac_site_file" >&6;}
1131        sed 's/^/| /' "$ac_site_file" >&5
1132      . "$ac_site_file"      . "$ac_site_file"
1133    fi    fi
1134  done  done
1135    
1136  if test -r "$cache_file"; then  if test -r "$cache_file"; then
1137    echo "loading cache $cache_file"    # Some versions of bash will fail to source /dev/null (special
1138    . $cache_file    # files actually), so we avoid doing that.
1139      if test -f "$cache_file"; then
1140        { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1141    echo "$as_me: loading cache $cache_file" >&6;}
1142        case $cache_file in
1143          [\\/]* | ?:[\\/]* ) . $cache_file;;
1144          *)                      . ./$cache_file;;
1145        esac
1146      fi
1147  else  else
1148    echo "creating cache $cache_file"    { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1149    > $cache_file  echo "$as_me: creating cache $cache_file" >&6;}
1150      >$cache_file
1151    fi
1152    
1153    # Check that the precious variables saved in the cache have kept the same
1154    # value.
1155    ac_cache_corrupted=false
1156    for ac_var in `(set) 2>&1 |
1157                   sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1158      eval ac_old_set=\$ac_cv_env_${ac_var}_set
1159      eval ac_new_set=\$ac_env_${ac_var}_set
1160      eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1161      eval ac_new_val="\$ac_env_${ac_var}_value"
1162      case $ac_old_set,$ac_new_set in
1163        set,)
1164          { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1165    echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1166          ac_cache_corrupted=: ;;
1167        ,set)
1168          { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1169    echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1170          ac_cache_corrupted=: ;;
1171        ,);;
1172        *)
1173          if test "x$ac_old_val" != "x$ac_new_val"; then
1174            { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1175    echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1176            { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1177    echo "$as_me:   former value:  $ac_old_val" >&2;}
1178            { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1179    echo "$as_me:   current value: $ac_new_val" >&2;}
1180            ac_cache_corrupted=:
1181          fi;;
1182      esac
1183      # Pass precious variables to config.status.
1184      if test "$ac_new_set" = set; then
1185        case $ac_new_val in
1186        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1187          ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1188        *) ac_arg=$ac_var=$ac_new_val ;;
1189        esac
1190        case " $ac_configure_args " in
1191          *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1192          *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1193        esac
1194      fi
1195    done
1196    if $ac_cache_corrupted; then
1197      { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1198    echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1199      { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1200    echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1201       { (exit 1); exit 1; }; }
1202  fi  fi
1203    
1204  ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
1205  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
1206  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1207  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'
1208  cross_compiling=$ac_cv_prog_cc_cross  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1209    
1210  ac_exeext=  
1211  ac_objext=o  
1212  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  
1213    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  
1214    if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then  
1215      ac_n= ac_c='  
1216  ' ac_t='        '  
   else  
     ac_n=-n ac_c= ac_t=  
   fi  
 else  
   ac_n= ac_c='\c' ac_t=  
 fi  
1217    
1218    
1219    
1220    
1221    
1222    
1223    
1224    
1225    
1226    
1227    ac_config_headers="$ac_config_headers h/gclincl.h"
1228    
1229    
1230  VERSION=2.5.0  VERSION=2.5.0
1231    
1232    
# Line 592  help="--enable-maxpage=XXXX will compile Line 1240  help="--enable-maxpage=XXXX will compile
1240  # Check whether --enable-maxpage or --disable-maxpage was given.  # Check whether --enable-maxpage or --disable-maxpage was given.
1241  if test "${enable_maxpage+set}" = set; then  if test "${enable_maxpage+set}" = set; then
1242    enableval="$enable_maxpage"    enableval="$enable_maxpage"
1243    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1244  #define MAXPAGE $enable_maxpage  #define MAXPAGE $enable_maxpage
1245  EOF  _ACEOF
1246    
1247    
1248  fi  fi;
   
1249    
1250  # Check whether --enable-vssize or --disable-vssize was given.  # Check whether --enable-vssize or --disable-vssize was given.
1251  if test "${enable_vssize+set}" = set; then  if test "${enable_vssize+set}" = set; then
1252    enableval="$enable_vssize"    enableval="$enable_vssize"
1253    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1254  #define VSSIZE $enable_vssize  #define VSSIZE $enable_vssize
1255  EOF  _ACEOF
   
1256    
 fi  
1257    
1258    fi;
1259    
1260  # Check whether --enable-machine or --disable-machine was given.  # Check whether --enable-machine or --disable-machine was given.
1261  if test "${enable_machine+set}" = set; then  if test "${enable_machine+set}" = set; then
# Line 617  if test "${enable_machine+set}" = set; t Line 1263  if test "${enable_machine+set}" = set; t
1263    enable_machine=$enableval    enable_machine=$enableval
1264  else  else
1265    enable_machine=""    enable_machine=""
1266  fi  fi;
   
1267    
1268  # Check whether --enable-gmp or --disable-gmp was given.  # Check whether --enable-gmp or --disable-gmp was given.
1269  if test "${enable_gmp+set}" = set; then  if test "${enable_gmp+set}" = set; then
# Line 626  if test "${enable_gmp+set}" = set; then Line 1271  if test "${enable_gmp+set}" = set; then
1271    use_gmp=$enableval    use_gmp=$enableval
1272  else  else
1273    use_gmp="yes"    use_gmp="yes"
1274  fi  fi;
   
1275    
1276  # Check whether --enable-notify or --disable-notify was given.  # Check whether --enable-notify or --disable-notify was given.
1277  if test "${enable_notify+set}" = set; then  if test "${enable_notify+set}" = set; then
# Line 635  if test "${enable_notify+set}" = set; th Line 1279  if test "${enable_notify+set}" = set; th
1279    enable_notify=$enableval    enable_notify=$enableval
1280  else  else
1281    enable_notify="yes"    enable_notify="yes"
1282  fi  fi;
   
1283    
1284  # Check whether --enable-tkconfig or --disable-tkconfig was given.  # Check whether --enable-tkconfig or --disable-tkconfig was given.
1285  if test "${enable_tkconfig+set}" = set; then  if test "${enable_tkconfig+set}" = set; then
# Line 644  if test "${enable_tkconfig+set}" = set; Line 1287  if test "${enable_tkconfig+set}" = set;
1287    TK_CONFIG_PREFIX=$enableval    TK_CONFIG_PREFIX=$enableval
1288  else  else
1289    TK_CONFIG_PREFIX="unknown"    TK_CONFIG_PREFIX="unknown"
1290  fi  fi;
   
1291    
1292    
1293  # Check whether --enable-tclconfig or --disable-tclconfig was given.  # Check whether --enable-tclconfig or --disable-tclconfig was given.
# Line 654  if test "${enable_tclconfig+set}" = set; Line 1296  if test "${enable_tclconfig+set}" = set;
1296    TCL_CONFIG_PREFIX=$enableval    TCL_CONFIG_PREFIX=$enableval
1297  else  else
1298    TCL_CONFIG_PREFIX="unknown"    TCL_CONFIG_PREFIX="unknown"
1299  fi  fi;
   
1300    
1301  # Check whether --enable-infodir or --disable-infodir was given.  # Check whether --enable-infodir or --disable-infodir was given.
1302  if test "${enable_infodir+set}" = set; then  if test "${enable_infodir+set}" = set; then
# Line 663  if test "${enable_infodir+set}" = set; t Line 1304  if test "${enable_infodir+set}" = set; t
1304    INFO_DIR=$enableval    INFO_DIR=$enableval
1305  else  else
1306    INFO_DIR="unknown"    INFO_DIR="unknown"
1307  fi  fi;
   
1308    
1309  # Check whether --enable-emacsdir or --disable-emacsdir was given.  # Check whether --enable-emacsdir or --disable-emacsdir was given.
1310  if test "${enable_emacsdir+set}" = set; then  if test "${enable_emacsdir+set}" = set; then
# Line 672  if test "${enable_emacsdir+set}" = set; Line 1312  if test "${enable_emacsdir+set}" = set;
1312    EMACS_SITE_LISP=$enableval    EMACS_SITE_LISP=$enableval
1313  else  else
1314    EMACS_SITE_LISP="unknown"    EMACS_SITE_LISP="unknown"
1315  fi  fi;
   
1316    
1317  # Check whether --enable-common-binary or --disable-common-binary was given.  # Check whether --enable-common-binary or --disable-common-binary was given.
1318  if test "${enable_common_binary+set}" = set; then  if test "${enable_common_binary+set}" = set; then
# Line 681  if test "${enable_common_binary+set}" = Line 1320  if test "${enable_common_binary+set}" =
1320    use_common_binary=$enableval    use_common_binary=$enableval
1321  else  else
1322    use_common_binary="yes"    use_common_binary="yes"
1323  fi  fi;
   
1324    
1325  # Check whether --enable-japi or --disable-japi was given.  # Check whether --enable-japi or --disable-japi was given.
1326  if test "${enable_japi+set}" = set; then  if test "${enable_japi+set}" = set; then
# Line 690  if test "${enable_japi+set}" = set; then Line 1328  if test "${enable_japi+set}" = set; then
1328    try_japi=$enableval    try_japi=$enableval
1329  else  else
1330    try_japi="no"    try_japi="no"
1331  fi  fi;
   
1332    
1333  #  #
1334  # Host information  # Host information
1335  #  #
1336    
1337    
# Line 708  for ac_dir in $srcdir $srcdir/.. $srcdir Line 1345  for ac_dir in $srcdir $srcdir/.. $srcdir
1345      ac_aux_dir=$ac_dir      ac_aux_dir=$ac_dir
1346      ac_install_sh="$ac_aux_dir/install.sh -c"      ac_install_sh="$ac_aux_dir/install.sh -c"
1347      break      break
1348      elif test -f $ac_dir/shtool; then
1349        ac_aux_dir=$ac_dir
1350        ac_install_sh="$ac_aux_dir/shtool install -c"
1351        break
1352    fi    fi
1353  done  done
1354  if test -z "$ac_aux_dir"; then  if test -z "$ac_aux_dir"; then
1355    { 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
1356  fi  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1357  ac_config_guess=$ac_aux_dir/config.guess     { (exit 1); exit 1; }; }
1358  ac_config_sub=$ac_aux_dir/config.sub  fi
1359  ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.  ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360    ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361    ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362    
1363  # Make sure we can run config.sub.  # Make sure we can run config.sub.
1364  if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :  $ac_config_sub sun4 >/dev/null 2>&1 ||
1365  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
1366  fi  echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1367       { (exit 1); exit 1; }; }
1368    
1369    echo "$as_me:$LINENO: checking build system type" >&5
1370    echo $ECHO_N "checking build system type... $ECHO_C" >&6
1371    if test "${ac_cv_build+set}" = set; then
1372      echo $ECHO_N "(cached) $ECHO_C" >&6
1373    else
1374      ac_cv_build_alias=$build_alias
1375    test -z "$ac_cv_build_alias" &&
1376      ac_cv_build_alias=`$ac_config_guess`
1377    test -z "$ac_cv_build_alias" &&
1378      { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1379    echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1380       { (exit 1); exit 1; }; }
1381    ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1382      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1383    echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1384       { (exit 1); exit 1; }; }
1385    
1386    fi
1387    echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1388    echo "${ECHO_T}$ac_cv_build" >&6
1389    build=$ac_cv_build
1390    build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1391    build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1392    build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1393    
1394    
1395    echo "$as_me:$LINENO: checking host system type" >&5
1396    echo $ECHO_N "checking host system type... $ECHO_C" >&6
1397    if test "${ac_cv_host+set}" = set; then
1398      echo $ECHO_N "(cached) $ECHO_C" >&6
1399    else
1400      ac_cv_host_alias=$host_alias
1401    test -z "$ac_cv_host_alias" &&
1402      ac_cv_host_alias=$ac_cv_build_alias
1403    ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1404      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1405    echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1406       { (exit 1); exit 1; }; }
1407    
1408    fi
1409    echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1410    echo "${ECHO_T}$ac_cv_host" >&6
1411    host=$ac_cv_host
1412    host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1413    host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1414    host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1415    
 echo $ac_n "checking host system type""... $ac_c" 1>&6  
 echo "configure:728: checking host system type" >&5  
   
 host_alias=$host  
 case "$host_alias" in  
 NONE)  
   case $nonopt in  
   NONE)  
     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :  
     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }  
     fi ;;  
   *) host_alias=$nonopt ;;  
   esac ;;  
 esac  
   
 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`  
 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  
 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  
 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  
 echo "$ac_t""$host" 1>&6  
1416    
1417  canonical=$host  canonical=$host
1418  ## host=CPU-COMPANY-SYSTEM  ## host=CPU-COMPANY-SYSTEM
1419  echo "$ac_t""host=$host" 1>&6  echo "$as_me:$LINENO: result: host=$host" >&5
1420    echo "${ECHO_T}host=$host" >&6
1421    
1422  PROCESSOR_FLAGS=""  PROCESSOR_FLAGS=""
1423    
# Line 823  case $canonical in Line 1494  case $canonical in
1494             IRIX3*)             IRIX3*)
1495              use=sgi4d;;              use=sgi4d;;
1496         esac ;;         esac ;;
1497    
1498    
1499       m68k-apple-aux*)       m68k-apple-aux*)
1500       use=mac2;;       use=mac2;;
# Line 894  case $canonical in Line 1565  case $canonical in
1565       i*mingw*)       i*mingw*)
1566         if test "$use_common_binary" = "yes"; then         if test "$use_common_binary" = "yes"; then
1567           host=i386-pc-mingw32           host=i386-pc-mingw32
1568           PROCESSOR_FLAGS="-march=i386 "           PROCESSOR_FLAGS="-mcpu=i386 -march=i386 "
1569           echo "The host is canonicalised to $host"           echo "The host is canonicalised to $host"
1570         fi         fi
1571       use=mingw;;       use=mingw;;
# Line 904  case $canonical in Line 1575  case $canonical in
1575              then use=mingw              then use=mingw
1576            else  use=gnuwin95            else  use=gnuwin95
1577          fi;;          fi;;
1578      
1579  esac  esac
1580    
1581    
# Line 919  def_statsysbfd="yes" Line 1590  def_statsysbfd="yes"
1590  def_custreloc="no"  def_custreloc="no"
1591  def_oldgmp="no"  def_oldgmp="no"
1592  def_pic="no";  def_pic="no";
1593  case $use in  case $use in
1594       *linux)       *linux)
1595          ln -snf linux.defs h/$use.defs;          ln -snf linux.defs h/$use.defs;
1596          case $use in          case $use in
# Line 941  esac Line 1612  esac
1612  # Check whether --enable-dlopen or --disable-dlopen was given.  # Check whether --enable-dlopen or --disable-dlopen was given.
1613  if test "${enable_dlopen+set}" = set; then  if test "${enable_dlopen+set}" = set; then
1614    enableval="$enable_dlopen"    enableval="$enable_dlopen"
1615    :  
1616  else  else
1617    enable_dlopen="$def_dlopen"    enable_dlopen="$def_dlopen"
1618  fi  fi;
   
1619  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.
1620  if test "${enable_statsysbfd+set}" = set; then  if test "${enable_statsysbfd+set}" = set; then
1621    enableval="$enable_statsysbfd"    enableval="$enable_statsysbfd"
1622    :  
1623  else  else
1624    enable_statsysbfd="$def_statsysbfd"    enable_statsysbfd="$def_statsysbfd"
1625  fi  fi;
   
1626  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.
1627  if test "${enable_dynsysbfd+set}" = set; then  if test "${enable_dynsysbfd+set}" = set; then
1628    enableval="$enable_dynsysbfd"    enableval="$enable_dynsysbfd"
1629    :  
1630  else  else
1631    enable_dynsysbfd="no"    enable_dynsysbfd="no"
1632  fi  fi;
   
1633  # Check whether --enable-locbfd or --disable-locbfd was given.  # Check whether --enable-locbfd or --disable-locbfd was given.
1634  if test "${enable_locbfd+set}" = set; then  if test "${enable_locbfd+set}" = set; then
1635    enableval="$enable_locbfd"    enableval="$enable_locbfd"
1636    :  
1637  else  else
1638    enable_locbfd="no"    enable_locbfd="no"
1639  fi  fi;
   
1640  # Check whether --enable-custreloc or --disable-custreloc was given.  # Check whether --enable-custreloc or --disable-custreloc was given.
1641  if test "${enable_custreloc+set}" = set; then  if test "${enable_custreloc+set}" = set; then
1642    enableval="$enable_custreloc"    enableval="$enable_custreloc"
1643    :  
1644  else  else
1645    enable_custreloc="$def_custreloc"    enable_custreloc="$def_custreloc"
1646  fi  fi;
   
1647  # Check whether --enable-debug or --disable-debug was given.  # Check whether --enable-debug or --disable-debug was given.
1648  if test "${enable_debug+set}" = set; then  if test "${enable_debug+set}" = set; then
1649    enableval="$enable_debug"    enableval="$enable_debug"
1650    :  
1651  else  else
1652    enable_debug="no"    enable_debug="no"
1653  fi  fi;
   
1654  # Check whether --enable-pic or --disable-pic was given.  # Check whether --enable-pic or --disable-pic was given.
1655  if test "${enable_pic+set}" = set; then  if test "${enable_pic+set}" = set; then
1656    enableval="$enable_pic"    enableval="$enable_pic"
1657    :  
1658  else  else
1659    enable_pic="$def_pic"    enable_pic="$def_pic"
1660  fi  fi;
   
1661    
1662  # Check whether --enable-oldgmp or --disable-oldgmp was given.  # Check whether --enable-oldgmp or --disable-oldgmp was given.
1663  if test "${enable_oldgmp+set}" = set; then  if test "${enable_oldgmp+set}" = set; then
1664    enableval="$enable_oldgmp"    enableval="$enable_oldgmp"
1665    :  
1666  else  else
1667    enable_oldgmp="$def_oldgmp"    enable_oldgmp="$def_oldgmp"
1668  fi  fi;
   
1669    
1670  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.
1671  if test "${enable_dynsysgmp+set}" = set; then  if test "${enable_dynsysgmp+set}" = set; then
1672    enableval="$enable_dynsysgmp"    enableval="$enable_dynsysgmp"
1673    :  
1674  else  else
1675    enable_dynsysgmp="no"    enable_dynsysgmp="no"
1676  fi  fi;
   
1677    
1678  load_opt="0"  load_opt="0"
1679  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
# Line 1057  fi Line 1719  fi
1719  ##  ##
1720  #if test "$use" = "unknown" ; then  #if test "$use" = "unknown" ; then
1721  #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"`
1722  #echo got canonical=$canonical, but was not recognized.  #echo got canonical=$canonical, but was not recognized.
1723  #echo Unable to guess type to use.  Try one of  #echo Unable to guess type to use.  Try one of
1724  #exit(1)  #exit(1)
1725  #fi  #fi
1726    
1727  echo "$ac_t""use=$use" 1>&6      echo "$as_me:$LINENO: result: use=$use" >&5
1728    echo "${ECHO_T}use=$use" >&6
1729    
1730    
1731  #  #
1732  # System programs  # System programs
1733  #  #
1734    
1735  # Extract the first word of "gcc", so it can be a program name with args.  ac_ext=c
1736    ac_cpp='$CPP $CPPFLAGS'
1737    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1738    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1739    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1740    if test -n "$ac_tool_prefix"; then
1741      # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1742    set dummy ${ac_tool_prefix}gcc; ac_word=$2
1743    echo "$as_me:$LINENO: checking for $ac_word" >&5
1744    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745    if test "${ac_cv_prog_CC+set}" = set; then
1746      echo $ECHO_N "(cached) $ECHO_C" >&6
1747    else
1748      if test -n "$CC"; then
1749      ac_cv_prog_CC="$CC" # Let the user override the test.
1750    else
1751    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752    for as_dir in $PATH
1753    do
1754      IFS=$as_save_IFS
1755      test -z "$as_dir" && as_dir=.
1756      for ac_exec_ext in '' $ac_executable_extensions; do
1757      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758        ac_cv_prog_CC="${ac_tool_prefix}gcc"
1759        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760        break 2
1761      fi
1762    done
1763    done
1764    
1765    fi
1766    fi
1767    CC=$ac_cv_prog_CC
1768    if test -n "$CC"; then
1769      echo "$as_me:$LINENO: result: $CC" >&5
1770    echo "${ECHO_T}$CC" >&6
1771    else
1772      echo "$as_me:$LINENO: result: no" >&5
1773    echo "${ECHO_T}no" >&6
1774    fi
1775    
1776    fi
1777    if test -z "$ac_cv_prog_CC"; then
1778      ac_ct_CC=$CC
1779      # Extract the first word of "gcc", so it can be a program name with args.
1780  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1781  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
1782  echo "configure:1076: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1784    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1785    else
1786      if test -n "$ac_ct_CC"; then
1787      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1788    else
1789    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790    for as_dir in $PATH
1791    do
1792      IFS=$as_save_IFS
1793      test -z "$as_dir" && as_dir=.
1794      for ac_exec_ext in '' $ac_executable_extensions; do
1795      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796        ac_cv_prog_ac_ct_CC="gcc"
1797        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798        break 2
1799      fi
1800    done
1801    done
1802    
1803    fi
1804    fi
1805    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1806    if test -n "$ac_ct_CC"; then
1807      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1808    echo "${ECHO_T}$ac_ct_CC" >&6
1809    else
1810      echo "$as_me:$LINENO: result: no" >&5
1811    echo "${ECHO_T}no" >&6
1812    fi
1813    
1814      CC=$ac_ct_CC
1815    else
1816      CC="$ac_cv_prog_CC"
1817    fi
1818    
1819    if test -z "$CC"; then
1820      if test -n "$ac_tool_prefix"; then
1821      # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1822    set dummy ${ac_tool_prefix}cc; ac_word=$2
1823    echo "$as_me:$LINENO: checking for $ac_word" >&5
1824    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825    if test "${ac_cv_prog_CC+set}" = set; then
1826      echo $ECHO_N "(cached) $ECHO_C" >&6
1827  else  else
1828    if test -n "$CC"; then    if test -n "$CC"; then
1829    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1830  else  else
1831    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832    ac_dummy="$PATH"  for as_dir in $PATH
1833    for ac_dir in $ac_dummy; do  do
1834      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
1835      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
1836        ac_cv_prog_CC="gcc"    for ac_exec_ext in '' $ac_executable_extensions; do
1837        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838      fi      ac_cv_prog_CC="${ac_tool_prefix}cc"
1839    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840    IFS="$ac_save_ifs"      break 2
1841      fi
1842    done
1843    done
1844    
1845  fi  fi
1846  fi  fi
1847  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1848  if test -n "$CC"; then  if test -n "$CC"; then
1849    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1850    echo "${ECHO_T}$CC" >&6
1851    else
1852      echo "$as_me:$LINENO: result: no" >&5
1853    echo "${ECHO_T}no" >&6
1854    fi
1855    
1856    fi
1857    if test -z "$ac_cv_prog_CC"; then
1858      ac_ct_CC=$CC
1859      # Extract the first word of "cc", so it can be a program name with args.
1860    set dummy cc; ac_word=$2
1861    echo "$as_me:$LINENO: checking for $ac_word" >&5
1862    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1864      echo $ECHO_N "(cached) $ECHO_C" >&6
1865  else  else
1866    echo "$ac_t""no" 1>&6    if test -n "$ac_ct_CC"; then
1867      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868    else
1869    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870    for as_dir in $PATH
1871    do
1872      IFS=$as_save_IFS
1873      test -z "$as_dir" && as_dir=.
1874      for ac_exec_ext in '' $ac_executable_extensions; do
1875      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876        ac_cv_prog_ac_ct_CC="cc"
1877        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878        break 2
1879      fi
1880    done
1881    done
1882    
1883    fi
1884    fi
1885    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1886    if test -n "$ac_ct_CC"; then
1887      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1888    echo "${ECHO_T}$ac_ct_CC" >&6
1889    else
1890      echo "$as_me:$LINENO: result: no" >&5
1891    echo "${ECHO_T}no" >&6
1892  fi  fi
1893    
1894      CC=$ac_ct_CC
1895    else
1896      CC="$ac_cv_prog_CC"
1897    fi
1898    
1899    fi
1900  if test -z "$CC"; then  if test -z "$CC"; then
1901    # 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.
1902  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1903  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
1904  echo "configure:1106: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_CC+set}" = set; then
1906    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1907  else  else
1908    if test -n "$CC"; then    if test -n "$CC"; then
1909    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1910  else  else
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
1911    ac_prog_rejected=no    ac_prog_rejected=no
1912    ac_dummy="$PATH"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913    for ac_dir in $ac_dummy; do  for as_dir in $PATH
1914      test -z "$ac_dir" && ac_dir=.  do
1915      if test -f $ac_dir/$ac_word; then    IFS=$as_save_IFS
1916        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then    test -z "$as_dir" && as_dir=.
1917          ac_prog_rejected=yes    for ac_exec_ext in '' $ac_executable_extensions; do
1918          continue    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919        fi      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1920        ac_cv_prog_CC="cc"         ac_prog_rejected=yes
1921        break         continue
1922      fi       fi
1923    done      ac_cv_prog_CC="cc"
1924    IFS="$ac_save_ifs"      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925        break 2
1926      fi
1927    done
1928    done
1929    
1930  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
1931    # 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.
1932    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
1933    shift    shift
1934    if test $# -gt 0; then    if test $# != 0; then
1935      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
1936      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
1937      # 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.
1938      shift      shift
1939      set dummy "$ac_dir/$ac_word" "$@"      set dummy "$as_dir/$ac_word" ${1+"$@"}
1940      shift      shift
1941      ac_cv_prog_CC="$@"      ac_cv_prog_CC="$@"
1942    fi    fi
1943  fi  fi
1944  fi  fi
1945  fi  fi
1946  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1947  if test -n "$CC"; then  if test -n "$CC"; then
1948    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1949    echo "${ECHO_T}$CC" >&6
1950  else  else
1951    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
1952    echo "${ECHO_T}no" >&6
1953  fi  fi
1954    
1955    if test -z "$CC"; then  fi
1956      case "`uname -s`" in  if test -z "$CC"; then
1957      *win32* | *WIN32*)    if test -n "$ac_tool_prefix"; then
1958        # Extract the first word of "cl", so it can be a program name with args.    for ac_prog in cl
1959  set dummy cl; ac_word=$2    do
1960  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.
1961  echo "configure:1157: checking for $ac_word" >&5  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1962  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo "$as_me:$LINENO: checking for $ac_word" >&5
1963    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964    if test "${ac_cv_prog_CC+set}" = set; then
1965      echo $ECHO_N "(cached) $ECHO_C" >&6
1966  else  else
1967    if test -n "$CC"; then    if test -n "$CC"; then
1968    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1969  else  else
1970    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971    ac_dummy="$PATH"  for as_dir in $PATH
1972    for ac_dir in $ac_dummy; do  do
1973      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
1974      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
1975        ac_cv_prog_CC="cl"    for ac_exec_ext in '' $ac_executable_extensions; do
1976        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977      fi      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1978    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979    IFS="$ac_save_ifs"      break 2
1980      fi
1981    done
1982    done
1983    
1984  fi  fi
1985  fi  fi
1986  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1987  if test -n "$CC"; then  if test -n "$CC"; then
1988    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1989    echo "${ECHO_T}$CC" >&6
1990  else  else
1991    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
1992    echo "${ECHO_T}no" >&6
1993  fi  fi
1994   ;;  
1995      esac      test -n "$CC" && break
1996      done
1997    fi
1998    if test -z "$CC"; then
1999      ac_ct_CC=$CC
2000      for ac_prog in cl
2001    do
2002      # Extract the first word of "$ac_prog", so it can be a program name with args.
2003    set dummy $ac_prog; ac_word=$2
2004    echo "$as_me:$LINENO: checking for $ac_word" >&5
2005    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2007      echo $ECHO_N "(cached) $ECHO_C" >&6
2008    else
2009      if test -n "$ac_ct_CC"; then
2010      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2011    else
2012    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013    for as_dir in $PATH
2014    do
2015      IFS=$as_save_IFS
2016      test -z "$as_dir" && as_dir=.
2017      for ac_exec_ext in '' $ac_executable_extensions; do
2018      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019        ac_cv_prog_ac_ct_CC="$ac_prog"
2020        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021        break 2
2022    fi    fi
2023    test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }  done
2024    done
2025    
2026    fi
2027    fi
2028    ac_ct_CC=$ac_cv_prog_ac_ct_CC
2029    if test -n "$ac_ct_CC"; then
2030      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2031    echo "${ECHO_T}$ac_ct_CC" >&6
2032    else
2033      echo "$as_me:$LINENO: result: no" >&5
2034    echo "${ECHO_T}no" >&6
2035  fi  fi
2036    
2037  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6    test -n "$ac_ct_CC" && break
2038  echo "configure:1189: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  done
2039    
2040  ac_ext=c    CC=$ac_ct_CC
2041  # 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  
2042    
2043  cat > conftest.$ac_ext << EOF  fi
2044    
 #line 1200 "configure"  
 #include "confdefs.h"  
2045    
2046  main(){return(0);}  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2047  EOF  echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2048  if { (eval echo configure:1205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then     { (exit 1); exit 1; }; }
2049    ac_cv_prog_cc_works=yes  
2050    # If we can't run a trivial program, we are probably using a cross compiler.  # Provide some information about the compiler.
2051    if (./conftest; exit) 2>/dev/null; then  echo "$as_me:$LINENO:" \
2052      ac_cv_prog_cc_cross=no       "checking for C compiler version" >&5
2053    else  ac_compiler=`set X $ac_compile; echo $2`
2054      ac_cv_prog_cc_cross=yes  { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2055    fi    (eval $ac_compiler --version </dev/null >&5) 2>&5
2056  else    ac_status=$?
2057    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058    cat conftest.$ac_ext >&5    (exit $ac_status); }
2059    ac_cv_prog_cc_works=no  { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2060  fi    (eval $ac_compiler -v </dev/null >&5) 2>&5
2061  rm -fr conftest*    ac_status=$?
2062  ac_ext=c    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.    (exit $ac_status); }
2064  ac_cpp='$CPP $CPPFLAGS'  { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2065  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'    (eval $ac_compiler -V </dev/null >&5) 2>&5
2066  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'    ac_status=$?
2067  cross_compiling=$ac_cv_prog_cc_cross    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068      (exit $ac_status); }
2069  echo "$ac_t""$ac_cv_prog_cc_works" 1>&6  
2070  if test $ac_cv_prog_cc_works = no; then  cat >conftest.$ac_ext <<_ACEOF
2071    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }  #line $LINENO "configure"
2072  fi  #include "confdefs.h"
2073  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  
2074  echo "configure:1231: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  #ifdef F77_DUMMY_MAIN
2075  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  #  ifdef __cplusplus
2076  cross_compiling=$ac_cv_prog_cc_cross       extern "C"
2077    #  endif
2078  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6     int F77_DUMMY_MAIN() { return 1; }
 echo "configure:1236: 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;  
2079  #endif  #endif
2080  EOF  int
2081  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  main ()
2082    ac_cv_prog_gcc=yes  {
2083    
2084      ;
2085      return 0;
2086    }
2087    _ACEOF
2088    ac_clean_files_save=$ac_clean_files
2089    ac_clean_files="$ac_clean_files a.out a.exe"
2090    # Try to create an executable without -o first, disregard a.out.
2091    # It will help us diagnose broken compilers, and finding out an intuition
2092    # of exeext.
2093    echo "$as_me:$LINENO: checking for C compiler default output" >&5
2094    echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2095    ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2096    if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2097      (eval $ac_link_default) 2>&5
2098      ac_status=$?
2099      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100      (exit $ac_status); }; then
2101      # Find the output, starting from the most likely.  This scheme is
2102    # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2103    # resort.
2104    
2105    # Be careful to initialize this variable, since it used to be cached.
2106    # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2107    ac_cv_exeext=
2108    for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2109                    ls a.out conftest 2>/dev/null;
2110                    ls a.* conftest.* 2>/dev/null`; do
2111      case $ac_file in
2112        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2113        a.out ) # We found the default executable, but exeext='' is most
2114                # certainly right.
2115                break;;
2116        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2117              # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2118              export ac_cv_exeext
2119              break;;
2120        * ) break;;
2121      esac
2122    done
2123  else  else
2124    ac_cv_prog_gcc=no    echo "$as_me: failed program was:" >&5
2125  fi  cat conftest.$ac_ext >&5
2126    { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2127    echo "$as_me: error: C compiler cannot create executables" >&2;}
2128       { (exit 77); exit 77; }; }
2129    fi
2130    
2131    ac_exeext=$ac_cv_exeext
2132    echo "$as_me:$LINENO: result: $ac_file" >&5
2133    echo "${ECHO_T}$ac_file" >&6
2134    
2135    # Check the compiler produces executables we can run.  If not, either
2136    # the compiler is broken, or we cross compile.
2137    echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2138    echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2139    # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2140    # If not cross compiling, check that we can run a simple program.
2141    if test "$cross_compiling" != yes; then
2142      if { ac_try='./$ac_file'
2143      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144      (eval $ac_try) 2>&5
2145      ac_status=$?
2146      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147      (exit $ac_status); }; }; then
2148        cross_compiling=no
2149      else
2150        if test "$cross_compiling" = maybe; then
2151            cross_compiling=yes
2152        else
2153            { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2154    If you meant to cross compile, use \`--host'." >&5
2155    echo "$as_me: error: cannot run C compiled programs.
2156    If you meant to cross compile, use \`--host'." >&2;}
2157       { (exit 1); exit 1; }; }
2158        fi
2159      fi
2160  fi  fi
2161    echo "$as_me:$LINENO: result: yes" >&5
2162    echo "${ECHO_T}yes" >&6
2163    
2164  echo "$ac_t""$ac_cv_prog_gcc" 1>&6  rm -f a.out a.exe conftest$ac_cv_exeext
2165    ac_clean_files=$ac_clean_files_save
2166  if test $ac_cv_prog_gcc = yes; then  # Check the compiler produces executables we can run.  If not, either
2167    GCC=yes  # the compiler is broken, or we cross compile.
2168    echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2169    echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2170    echo "$as_me:$LINENO: result: $cross_compiling" >&5
2171    echo "${ECHO_T}$cross_compiling" >&6
2172    
2173    echo "$as_me:$LINENO: checking for suffix of executables" >&5
2174    echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2175    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2176      (eval $ac_link) 2>&5
2177      ac_status=$?
2178      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179      (exit $ac_status); }; then
2180      # If both `conftest.exe' and `conftest' are `present' (well, observable)
2181    # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2182    # work properly (i.e., refer to `conftest.exe'), while it won't with
2183    # `rm'.
2184    for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2185      case $ac_file in
2186        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2187        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188              export ac_cv_exeext
2189              break;;
2190        * ) break;;
2191      esac
2192    done
2193  else  else
2194    GCC=    { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2195  fi  echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2196       { (exit 1); exit 1; }; }
2197    fi
2198    
2199    rm -f conftest$ac_cv_exeext
2200    echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2201    echo "${ECHO_T}$ac_cv_exeext" >&6
2202    
2203    rm -f conftest.$ac_ext
2204    EXEEXT=$ac_cv_exeext
2205    ac_exeext=$EXEEXT
2206    echo "$as_me:$LINENO: checking for suffix of object files" >&5
2207    echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2208    if test "${ac_cv_objext+set}" = set; then
2209      echo $ECHO_N "(cached) $ECHO_C" >&6
2210    else
2211      cat >conftest.$ac_ext <<_ACEOF
2212    #line $LINENO "configure"
2213    #include "confdefs.h"
2214    
2215    #ifdef F77_DUMMY_MAIN
2216    #  ifdef __cplusplus
2217         extern "C"
2218    #  endif
2219       int F77_DUMMY_MAIN() { return 1; }
2220    #endif
2221    int
2222    main ()
2223    {
2224    
2225  ac_test_CFLAGS="${CFLAGS+set}"    ;
2226  ac_save_CFLAGS="$CFLAGS"    return 0;
2227  CFLAGS=  }
2228  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  _ACEOF
2229  echo "configure:1264: checking whether ${CC-cc} accepts -g" >&5  rm -f conftest.o conftest.obj
2230  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231    echo $ac_n "(cached) $ac_c" 1>&6    (eval $ac_compile) 2>&5
2232      ac_status=$?
2233      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234      (exit $ac_status); }; then
2235      for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2236      case $ac_file in
2237        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2238        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2239           break;;
2240      esac
2241    done
2242  else  else
2243    echo 'void f(){}' > conftest.c    echo "$as_me: failed program was:" >&5
2244  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  cat conftest.$ac_ext >&5
2245    { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2246    echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2247       { (exit 1); exit 1; }; }
2248    fi
2249    
2250    rm -f conftest.$ac_cv_objext conftest.$ac_ext
2251    fi
2252    echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2253    echo "${ECHO_T}$ac_cv_objext" >&6
2254    OBJEXT=$ac_cv_objext
2255    ac_objext=$OBJEXT
2256    echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2257    echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2258    if test "${ac_cv_c_compiler_gnu+set}" = set; then
2259      echo $ECHO_N "(cached) $ECHO_C" >&6
2260    else
2261      cat >conftest.$ac_ext <<_ACEOF
2262    #line $LINENO "configure"
2263    #include "confdefs.h"
2264    
2265    #ifdef F77_DUMMY_MAIN
2266    #  ifdef __cplusplus
2267         extern "C"
2268    #  endif
2269       int F77_DUMMY_MAIN() { return 1; }
2270    #endif
2271    int
2272    main ()
2273    {
2274    #ifndef __GNUC__
2275           choke me
2276    #endif
2277    
2278      ;
2279      return 0;
2280    }
2281    _ACEOF
2282    rm -f conftest.$ac_objext
2283    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284      (eval $ac_compile) 2>&5
2285      ac_status=$?
2286      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287      (exit $ac_status); } &&
2288             { ac_try='test -s conftest.$ac_objext'
2289      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290      (eval $ac_try) 2>&5
2291      ac_status=$?
2292      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293      (exit $ac_status); }; }; then
2294      ac_compiler_gnu=yes
2295    else
2296      echo "$as_me: failed program was:" >&5
2297    cat conftest.$ac_ext >&5
2298    ac_compiler_gnu=no
2299    fi
2300    rm -f conftest.$ac_objext conftest.$ac_ext
2301    ac_cv_c_compiler_gnu=$ac_compiler_gnu
2302    
2303    fi
2304    echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2305    echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2306    GCC=`test $ac_compiler_gnu = yes && echo yes`
2307    ac_test_CFLAGS=${CFLAGS+set}
2308    ac_save_CFLAGS=$CFLAGS
2309    CFLAGS="-g"
2310    echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2311    echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2312    if test "${ac_cv_prog_cc_g+set}" = set; then
2313      echo $ECHO_N "(cached) $ECHO_C" >&6
2314    else
2315      cat >conftest.$ac_ext <<_ACEOF
2316    #line $LINENO "configure"
2317    #include "confdefs.h"
2318    
2319    #ifdef F77_DUMMY_MAIN
2320    #  ifdef __cplusplus
2321         extern "C"
2322    #  endif
2323       int F77_DUMMY_MAIN() { return 1; }
2324    #endif
2325    int
2326    main ()
2327    {
2328    
2329      ;
2330      return 0;
2331    }
2332    _ACEOF
2333    rm -f conftest.$ac_objext
2334    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335      (eval $ac_compile) 2>&5
2336      ac_status=$?
2337      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338      (exit $ac_status); } &&
2339             { ac_try='test -s conftest.$ac_objext'
2340      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341      (eval $ac_try) 2>&5
2342      ac_status=$?
2343      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344      (exit $ac_status); }; }; then
2345    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
2346  else  else
2347    ac_cv_prog_cc_g=no    echo "$as_me: failed program was:" >&5
2348    cat conftest.$ac_ext >&5
2349    ac_cv_prog_cc_g=no
2350  fi  fi
2351  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
   
2352  fi  fi
2353    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2354  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2355  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
2356    CFLAGS="$ac_save_CFLAGS"    CFLAGS=$ac_save_CFLAGS
2357  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
2358    if test "$GCC" = yes; then    if test "$GCC" = yes; then
2359      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 1290  else Line 2367  else
2367      CFLAGS=      CFLAGS=
2368    fi    fi
2369  fi  fi
2370    # Some people use a C++ compiler to compile C.  Since we use `exit',
2371    # in C++ we need to declare it.  In case someone uses the same compiler
2372    # for both compiling C and C++ we need to have the C++ compiler decide
2373    # the declaration of exit, since it's the most demanding environment.
2374    cat >conftest.$ac_ext <<_ACEOF
2375    #ifndef __cplusplus
2376      choke me
2377    #endif
2378    _ACEOF
2379    rm -f conftest.$ac_objext
2380    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381      (eval $ac_compile) 2>&5
2382      ac_status=$?
2383      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384      (exit $ac_status); } &&
2385             { ac_try='test -s conftest.$ac_objext'
2386      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387      (eval $ac_try) 2>&5
2388      ac_status=$?
2389      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390      (exit $ac_status); }; }; then
2391      for ac_declaration in \
2392       ''\
2393       '#include <stdlib.h>' \
2394       'extern "C" void std::exit (int) throw (); using std::exit;' \
2395       'extern "C" void std::exit (int); using std::exit;' \
2396       'extern "C" void exit (int) throw ();' \
2397       'extern "C" void exit (int);' \
2398       'void exit (int);'
2399    do
2400      cat >conftest.$ac_ext <<_ACEOF
2401    #line $LINENO "configure"
2402    #include "confdefs.h"
2403    #include <stdlib.h>
2404    $ac_declaration
2405    #ifdef F77_DUMMY_MAIN
2406    #  ifdef __cplusplus
2407         extern "C"
2408    #  endif
2409       int F77_DUMMY_MAIN() { return 1; }
2410    #endif
2411    int
2412    main ()
2413    {
2414    exit (42);
2415      ;
2416      return 0;
2417    }
2418    _ACEOF
2419    rm -f conftest.$ac_objext
2420    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421      (eval $ac_compile) 2>&5
2422      ac_status=$?
2423      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424      (exit $ac_status); } &&
2425             { ac_try='test -s conftest.$ac_objext'
2426      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427      (eval $ac_try) 2>&5
2428      ac_status=$?
2429      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430      (exit $ac_status); }; }; then
2431      :
2432    else
2433      echo "$as_me: failed program was:" >&5
2434    cat conftest.$ac_ext >&5
2435    continue
2436    fi
2437    rm -f conftest.$ac_objext conftest.$ac_ext
2438      cat >conftest.$ac_ext <<_ACEOF
2439    #line $LINENO "configure"
2440    #include "confdefs.h"
2441    $ac_declaration
2442    #ifdef F77_DUMMY_MAIN
2443    #  ifdef __cplusplus
2444         extern "C"
2445    #  endif
2446       int F77_DUMMY_MAIN() { return 1; }
2447    #endif
2448    int
2449    main ()
2450    {
2451    exit (42);
2452      ;
2453      return 0;
2454    }
2455    _ACEOF
2456    rm -f conftest.$ac_objext
2457    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2458      (eval $ac_compile) 2>&5
2459      ac_status=$?
2460      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461      (exit $ac_status); } &&
2462             { ac_try='test -s conftest.$ac_objext'
2463      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464      (eval $ac_try) 2>&5
2465      ac_status=$?
2466      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467      (exit $ac_status); }; }; then
2468      break
2469    else
2470      echo "$as_me: failed program was:" >&5
2471    cat conftest.$ac_ext >&5
2472    fi
2473    rm -f conftest.$ac_objext conftest.$ac_ext
2474    done
2475    rm -f conftest*
2476    if test -n "$ac_declaration"; then
2477      echo '#ifdef __cplusplus' >>confdefs.h
2478      echo $ac_declaration      >>confdefs.h
2479      echo '#endif'             >>confdefs.h
2480    fi
2481    
2482    else
2483      echo "$as_me: failed program was:" >&5
2484    cat conftest.$ac_ext >&5
2485    fi
2486    rm -f conftest.$ac_objext conftest.$ac_ext
2487    ac_ext=c
2488    ac_cpp='$CPP $CPPFLAGS'
2489    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492    
2493  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  ac_ext=c
2494  echo "configure:1296: checking how to run the C preprocessor" >&5  ac_cpp='$CPP $CPPFLAGS'
2495    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498    echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2499    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2500  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
2501  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
2502    CPP=    CPP=
2503  fi  fi
2504  if test -z "$CPP"; then  if test -z "$CPP"; then
2505  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then    if test "${ac_cv_prog_CPP+set}" = set; then
2506    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2507  else  else
2508      # This must be in double quotes, not single quotes, because CPP may get        # Double quotes because CPP needs to be expanded
2509    # substituted into the Makefile and "${CC-cc}" will confuse make.      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2510    CPP="${CC-cc} -E"      do
2511          ac_preproc_ok=false
2512    for ac_c_preproc_warn_flag in '' yes
2513    do
2514      # Use a header file that comes with gcc, so configuring glibc
2515      # with a fresh cross-compiler works.
2516    # 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,
2517    # not just through cpp.    # not just through cpp. "Syntax error" is here to catch this case.
2518    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2519  #line 1311 "configure"  #line $LINENO "configure"
2520  #include "confdefs.h"  #include "confdefs.h"
2521  #include <assert.h>  #include <assert.h>
2522  Syntax Error                       Syntax error
2523  EOF  _ACEOF
2524  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2525  { (eval echo configure:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2526  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2527  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2528      rm -f conftest.er1
2529      cat conftest.err >&5
2530      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531      (exit $ac_status); } >/dev/null; then
2532      if test -s conftest.err; then
2533        ac_cpp_err=$ac_c_preproc_warn_flag
2534      else
2535        ac_cpp_err=
2536      fi
2537    else
2538      ac_cpp_err=yes
2539    fi
2540    if test -z "$ac_cpp_err"; then
2541    :    :
2542  else  else
2543    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2544    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2545    rm -rf conftest*    # Broken: fails on valid input.
2546    CPP="${CC-cc} -E -traditional-cpp"  continue
2547    cat > conftest.$ac_ext <<EOF  fi
2548  #line 1328 "configure"  rm -f conftest.err conftest.$ac_ext
2549  #include "confdefs.h"  
2550  #include <assert.h>    # OK, works on sane cases.  Now check whether non-existent headers
2551  Syntax Error    # can be detected and how.
2552  EOF    cat >conftest.$ac_ext <<_ACEOF
2553  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  #line $LINENO "configure"
2554  { (eval echo configure:1334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  #include "confdefs.h"
2555  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  #include <ac_nonexistent.h>
2556  if test -z "$ac_err"; then  _ACEOF
2557    :  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2558      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2559      ac_status=$?
2560      egrep -v '^ *\+' conftest.er1 >conftest.err
2561      rm -f conftest.er1
2562      cat conftest.err >&5
2563      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564      (exit $ac_status); } >/dev/null; then
2565      if test -s conftest.err; then
2566        ac_cpp_err=$ac_c_preproc_warn_flag
2567      else
2568        ac_cpp_err=
2569      fi
2570  else  else
2571    echo "$ac_err" >&5    ac_cpp_err=yes
2572    echo "configure: failed program was:" >&5  fi
2573    if test -z "$ac_cpp_err"; then
2574      # Broken: success on invalid input.
2575    continue
2576    else
2577      echo "$as_me: failed program was:" >&5
2578    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2579    rm -rf conftest*    # Passes both tests.
2580    CPP="${CC-cc} -nologo -E"  ac_preproc_ok=:
2581    cat > conftest.$ac_ext <<EOF  break
2582  #line 1345 "configure"  fi
2583    rm -f conftest.err conftest.$ac_ext
2584    
2585    done
2586    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2587    rm -f conftest.err conftest.$ac_ext
2588    if $ac_preproc_ok; then
2589      break
2590    fi
2591    
2592        done
2593        ac_cv_prog_CPP=$CPP
2594    
2595    fi
2596      CPP=$ac_cv_prog_CPP
2597    else
2598      ac_cv_prog_CPP=$CPP
2599    fi
2600    echo "$as_me:$LINENO: result: $CPP" >&5
2601    echo "${ECHO_T}$CPP" >&6
2602    ac_preproc_ok=false
2603    for ac_c_preproc_warn_flag in '' yes
2604    do
2605      # Use a header file that comes with gcc, so configuring glibc
2606      # with a fresh cross-compiler works.
2607      # On the NeXT, cc -E runs the code through the compiler's parser,
2608      # not just through cpp. "Syntax error" is here to catch this case.
2609      cat >conftest.$ac_ext <<_ACEOF
2610    #line $LINENO "configure"
2611  #include "confdefs.h"  #include "confdefs.h"
2612  #include <assert.h>  #include <assert.h>
2613  Syntax Error                       Syntax error
2614  EOF  _ACEOF
2615  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2616  { (eval echo configure:1351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2617  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2618  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2619      rm -f conftest.er1
2620      cat conftest.err >&5
2621      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622      (exit $ac_status); } >/dev/null; then
2623      if test -s conftest.err; then
2624        ac_cpp_err=$ac_c_preproc_warn_flag
2625      else
2626        ac_cpp_err=
2627      fi
2628    else
2629      ac_cpp_err=yes
2630    fi
2631    if test -z "$ac_cpp_err"; then
2632    :    :
2633  else  else
2634    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2635    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2636    rm -rf conftest*    # Broken: fails on valid input.
2637    CPP=/lib/cpp  continue
 fi  
 rm -f conftest*  
2638  fi  fi
2639  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2640    
2641      # OK, works on sane cases.  Now check whether non-existent headers
2642      # can be detected and how.
2643      cat >conftest.$ac_ext <<_ACEOF
2644    #line $LINENO "configure"
2645    #include "confdefs.h"
2646    #include <ac_nonexistent.h>
2647    _ACEOF
2648    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2649      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2650      ac_status=$?
2651      egrep -v '^ *\+' conftest.er1 >conftest.err
2652      rm -f conftest.er1
2653      cat conftest.err >&5
2654      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655      (exit $ac_status); } >/dev/null; then
2656      if test -s conftest.err; then
2657        ac_cpp_err=$ac_c_preproc_warn_flag
2658      else
2659        ac_cpp_err=
2660      fi
2661    else
2662      ac_cpp_err=yes
2663  fi  fi
2664  rm -f conftest*  if test -z "$ac_cpp_err"; then
2665    ac_cv_prog_CPP="$CPP"    # Broken: success on invalid input.
2666    continue
2667    else
2668      echo "$as_me: failed program was:" >&5
2669      cat conftest.$ac_ext >&5
2670      # Passes both tests.
2671    ac_preproc_ok=:
2672    break
2673  fi  fi
2674    CPP="$ac_cv_prog_CPP"  rm -f conftest.err conftest.$ac_ext
2675    
2676    done
2677    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2678    rm -f conftest.err conftest.$ac_ext
2679    if $ac_preproc_ok; then
2680      :
2681  else  else
2682    ac_cv_prog_CPP="$CPP"    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2683    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2684       { (exit 1); exit 1; }; }
2685  fi  fi
2686  echo "$ac_t""$CPP" 1>&6  
2687    ac_ext=c
2688    ac_cpp='$CPP $CPPFLAGS'
2689    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692    
2693    
2694    
# Line 1403  fi Line 2722  fi
2722    
2723  for ac_prog in gawk nawk awk  for ac_prog in gawk nawk awk
2724  do  do
2725  # 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.
2726  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2727  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
2728  echo "configure:1410: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2729  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  if test "${ac_cv_prog_AWK+set}" = set; then
2730    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2731  else  else
2732    if test -n "$AWK"; then    if test -n "$AWK"; then
2733    ac_cv_prog_AWK="$AWK" # Let the user override the test.    ac_cv_prog_AWK="$AWK" # Let the user override the test.
2734  else  else
2735    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736    ac_dummy="$PATH"  for as_dir in $PATH
2737    for ac_dir in $ac_dummy; do  do
2738      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2739      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2740        ac_cv_prog_AWK="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
2741        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742      fi      ac_cv_prog_AWK="$ac_prog"
2743    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744    IFS="$ac_save_ifs"      break 2
2745      fi
2746    done
2747    done
2748    
2749  fi  fi
2750  fi  fi
2751  AWK="$ac_cv_prog_AWK"  AWK=$ac_cv_prog_AWK
2752  if test -n "$AWK"; then  if test -n "$AWK"; then
2753    echo "$ac_t""$AWK" 1>&6    echo "$as_me:$LINENO: result: $AWK" >&5
2754    echo "${ECHO_T}$AWK" >&6
2755  else  else
2756    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2757    echo "${ECHO_T}no" >&6
2758  fi  fi
2759    
2760  test -n "$AWK" && break    test -n "$AWK" && break
2761  done  done
2762  test -n "$AWK" || AWK=""""  test -n "$AWK" || AWK=""""
2763    
2764    
2765  case $use in  case $use in
2766       *linux)       *linux)
2767          case $use in          case $use in
2768                  alpha*)                  alpha*)
# Line 1450  case $use in Line 2775  case $use in
2775                          TO2FLAGS="-O"                          TO2FLAGS="-O"
2776                          ;;                          ;;
2777                  arm*)                  arm*)
2778                          TCFLAGS="$TCFLAGS -mlong-calls";;                                TCFLAGS="$TCFLAGS -mlong-calls";;
2779                  powerpc*)                  powerpc*)
2780                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then
2781                             echo Reducing optimization for buggy gcc-3.2                             echo Reducing optimization for buggy gcc-3.2
2782                             TO3FLAGS="-O -fomit-frame-pointer"                             TO3FLAGS="-O -fomit-frame-pointer"
# Line 1474  fi Line 2799  fi
2799  # 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
2800  # there are a few systems, like Next, where this doesn't work.  # there are a few systems, like Next, where this doesn't work.
2801    
2802  echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5
2803  echo "configure:1479: checking system version (for dynamic loading)" >&5  echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6
2804  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
2805    
2806  for ac_prog in makeinfo  for ac_prog in makeinfo
2807  do  do
2808  # 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.
2809  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2810  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
2811  echo "configure:1487: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then  if test "${ac_cv_prog_MAKEINFO+set}" = set; then
2813    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2814  else  else
2815    if test -n "$MAKEINFO"; then    if test -n "$MAKEINFO"; then
2816    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2817  else  else
2818    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819    ac_dummy="$PATH"  for as_dir in $PATH
2820    for ac_dir in $ac_dummy; do  do
2821      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2822      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2823        ac_cv_prog_MAKEINFO="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
2824        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825      fi      ac_cv_prog_MAKEINFO="$ac_prog"
2826    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827    IFS="$ac_save_ifs"      break 2
2828      fi
2829    done
2830    done
2831    
2832  fi  fi
2833  fi  fi
2834  MAKEINFO="$ac_cv_prog_MAKEINFO"  MAKEINFO=$ac_cv_prog_MAKEINFO
2835  if test -n "$MAKEINFO"; then  if test -n "$MAKEINFO"; then
2836    echo "$ac_t""$MAKEINFO" 1>&6    echo "$as_me:$LINENO: result: $MAKEINFO" >&5
2837    echo "${ECHO_T}$MAKEINFO" >&6
2838  else  else
2839    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2840    echo "${ECHO_T}no" >&6
2841  fi  fi
2842    
2843  test -n "$MAKEINFO" && break    test -n "$MAKEINFO" && break
2844  done  done
2845  test -n "$MAKEINFO" || MAKEINFO=""false""  test -n "$MAKEINFO" || MAKEINFO=""false""
2846    
# Line 1520  if test -f /usr/lib/NextStep/software_ve Line 2851  if test -f /usr/lib/NextStep/software_ve
2851  else  else
2852      system=`uname -s`-`uname -r`      system=`uname -s`-`uname -r`
2853      if test "$?" -ne 0 ; then      if test "$?" -ne 0 ; then
2854          echo "$ac_t""unknown (can't find uname command)" 1>&6          echo "$as_me:$LINENO: result: unknown (can't find uname command)" >&5
2855    echo "${ECHO_T}unknown (can't find uname command)" >&6
2856          system=unknown          system=unknown
2857      else      else
2858          # Special check for weird MP-RAS system (uname returns weird          # Special check for weird MP-RAS system (uname returns weird
2859          # results, and the version is kept in special file).          # results, and the version is kept in special file).
2860        
2861          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
2862              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`
2863          fi          fi
2864          if test "`uname -s`" = "AIX" ; then          if test "`uname -s`" = "AIX" ; then
2865              system=AIX-`uname -v`.`uname -r`              system=AIX-`uname -v`.`uname -r`
2866          fi          fi
2867          echo "$ac_t""$system" 1>&6          echo "$as_me:$LINENO: result: $system" >&5
2868    echo "${ECHO_T}$system" >&6
2869      fi      fi
2870  fi  fi
2871    
# Line 1547  rm -f makedefsafter Line 2880  rm -f makedefsafter
2880  MP_INLCUDE=""  MP_INLCUDE=""
2881  if test $use_gmp = yes ; then  if test $use_gmp = yes ; then
2882    
2883   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
2884  echo "configure:1552: 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
2885   echo   echo
2886   echo "#"   echo "#"
2887   echo "#"   echo "#"
# Line 1568  echo "configure:1552: checking use_gmp=y Line 2901  echo "configure:1552: checking use_gmp=y
2901   else   else
2902     cd $GMPDIR && ./configure && cd ..     cd $GMPDIR && ./configure && cd ..
2903   fi   fi
2904  #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"  #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"
2905    
2906   echo "#"   echo "#"
2907   echo "#"   echo "#"
# Line 1579  echo "configure:1552: checking use_gmp=y Line 2912  echo "configure:1552: checking use_gmp=y
2912    
2913   PATCHED_SYMBOLS=""   PATCHED_SYMBOLS=""
2914   if test "$enable_dynsysgmp" = "yes" ; then   if test "$enable_dynsysgmp" = "yes" ; then
2915          ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`  
2916  echo $ac_n "checking for gmp.h""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2917  echo "configure:1585: checking for gmp.h" >&5  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2918  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_stdc+set}" = set; then
2919    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2920    else
2921      cat >conftest.$ac_ext <<_ACEOF
2922    #line $LINENO "configure"
2923    #include "confdefs.h"
2924    #include <stdlib.h>
2925    #include <stdarg.h>
2926    #include <string.h>
2927    #include <float.h>
2928    
2929    _ACEOF
2930    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2931      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2932      ac_status=$?
2933      egrep -v '^ *\+' conftest.er1 >conftest.err
2934      rm -f conftest.er1
2935      cat conftest.err >&5
2936      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937      (exit $ac_status); } >/dev/null; then
2938      if test -s conftest.err; then
2939        ac_cpp_err=$ac_c_preproc_warn_flag
2940      else
2941        ac_cpp_err=
2942      fi
2943  else  else
2944    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
2945  #line 1590 "configure"  fi
2946  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
2947  #include <gmp.h>    ac_cv_header_stdc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:1595: \"$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"  
2948  else  else
2949    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2950    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2951    rm -rf conftest*    ac_cv_header_stdc=no
2952    eval "ac_cv_header_$ac_safe=no"  fi
2953    rm -f conftest.err conftest.$ac_ext
2954    
2955    if test $ac_cv_header_stdc = yes; then
2956      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2957      cat >conftest.$ac_ext <<_ACEOF
2958    #line $LINENO "configure"
2959    #include "confdefs.h"
2960    #include <string.h>
2961    
2962    _ACEOF
2963    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2964      egrep "memchr" >/dev/null 2>&1; then
2965      :
2966    else
2967      ac_cv_header_stdc=no
2968  fi  fi
2969  rm -f conftest*  rm -f conftest*
2970    
2971  fi  fi
2972  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  
2973    echo "$ac_t""yes" 1>&6  if test $ac_cv_header_stdc = yes; then
2974    echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2975  echo "configure:1612: checking for __gmpz_init in -lgmp" >&5    cat >conftest.$ac_ext <<_ACEOF
2976  ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`  #line $LINENO "configure"
2977  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  #include "confdefs.h"
2978    echo $ac_n "(cached) $ac_c" 1>&6  #include <stdlib.h>
2979    
2980    _ACEOF
2981    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2982      egrep "free" >/dev/null 2>&1; then
2983      :
2984  else  else
2985    ac_save_LIBS="$LIBS"    ac_cv_header_stdc=no
2986  LIBS="-lgmp  $LIBS"  fi
2987  cat > conftest.$ac_ext <<EOF  rm -f conftest*
2988  #line 1620 "configure"  
2989    fi
2990    
2991    if test $ac_cv_header_stdc = yes; then
2992      # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2993      if test "$cross_compiling" = yes; then
2994      :
2995    else
2996      cat >conftest.$ac_ext <<_ACEOF
2997    #line $LINENO "configure"
2998  #include "confdefs.h"  #include "confdefs.h"
2999  /* Override any gcc2 internal prototype to avoid an error.  */  #include <ctype.h>
3000  /* We use char because int might match the return type of a gcc2  #if ((' ' & 0x0FF) == 0x020)
3001      builtin and then its argument prototype would still apply.  */  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3002  char __gmpz_init();  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3003    #else
3004    # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3005                         || ('j' <= (c) && (c) <= 'r') \
3006                         || ('s' <= (c) && (c) <= 'z'))
3007    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3008    #endif
3009    
3010  int main() {  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3011  __gmpz_init()  int
3012  ; return 0; }  main ()
3013  EOF  {
3014  if { (eval echo configure:1631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    int i;
3015    rm -rf conftest*    for (i = 0; i < 256; i++)
3016    eval "ac_cv_lib_$ac_lib_var=yes"      if (XOR (islower (i), ISLOWER (i))
3017            || toupper (i) != TOUPPER (i))
3018          exit(2);
3019      exit (0);
3020    }
3021    _ACEOF
3022    rm -f conftest$ac_exeext
3023    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3024      (eval $ac_link) 2>&5
3025      ac_status=$?
3026      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3028      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029      (eval $ac_try) 2>&5
3030      ac_status=$?
3031      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032      (exit $ac_status); }; }; then
3033      :
3034    else
3035      echo "$as_me: program exited with status $ac_status" >&5
3036    echo "$as_me: failed program was:" >&5
3037    cat conftest.$ac_ext >&5
3038    ( exit $ac_status )
3039    ac_cv_header_stdc=no
3040    fi
3041    rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3042    fi
3043    fi
3044    fi
3045    echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3046    echo "${ECHO_T}$ac_cv_header_stdc" >&6
3047    if test $ac_cv_header_stdc = yes; then
3048    
3049    cat >>confdefs.h <<\_ACEOF
3050    #define STDC_HEADERS 1
3051    _ACEOF
3052    
3053    fi
3054    
3055    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3056    
3057    
3058    
3059    
3060    
3061    
3062    
3063    
3064    
3065    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3066                      inttypes.h stdint.h unistd.h
3067    do
3068    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3069    echo "$as_me:$LINENO: checking for $ac_header" >&5
3070    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3071    if eval "test \"\${$as_ac_Header+set}\" = set"; then
3072      echo $ECHO_N "(cached) $ECHO_C" >&6
3073    else
3074      cat >conftest.$ac_ext <<_ACEOF
3075    #line $LINENO "configure"
3076    #include "confdefs.h"
3077    $ac_includes_default
3078    
3079    #include <$ac_header>
3080    _ACEOF
3081    rm -f conftest.$ac_objext
3082    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3083      (eval $ac_compile) 2>&5
3084      ac_status=$?
3085      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086      (exit $ac_status); } &&
3087             { ac_try='test -s conftest.$ac_objext'
3088      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089      (eval $ac_try) 2>&5
3090      ac_status=$?
3091      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092      (exit $ac_status); }; }; then
3093      eval "$as_ac_Header=yes"
3094    else
3095      echo "$as_me: failed program was:" >&5
3096    cat conftest.$ac_ext >&5
3097    eval "$as_ac_Header=no"
3098    fi
3099    rm -f conftest.$ac_objext conftest.$ac_ext
3100    fi
3101    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3102    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3103    if test `eval echo '${'$as_ac_Header'}'` = yes; then
3104      cat >>confdefs.h <<_ACEOF
3105    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3106    _ACEOF
3107    
3108    fi
3109    
3110    done
3111    
3112    
3113    if test "${ac_cv_header_gmp_h+set}" = set; then
3114      echo "$as_me:$LINENO: checking for gmp.h" >&5
3115    echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
3116    if test "${ac_cv_header_gmp_h+set}" = set; then
3117      echo $ECHO_N "(cached) $ECHO_C" >&6
3118    fi
3119    echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
3120    echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
3121    else
3122      # Is the header compilable?
3123    echo "$as_me:$LINENO: checking gmp.h usability" >&5
3124    echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6
3125    cat >conftest.$ac_ext <<_ACEOF
3126    #line $LINENO "configure"
3127    #include "confdefs.h"
3128    $ac_includes_default
3129    #include <gmp.h>
3130    _ACEOF
3131    rm -f conftest.$ac_objext
3132    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133      (eval $ac_compile) 2>&5
3134      ac_status=$?
3135      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136      (exit $ac_status); } &&
3137             { ac_try='test -s conftest.$ac_objext'
3138      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139      (eval $ac_try) 2>&5
3140      ac_status=$?
3141      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142      (exit $ac_status); }; }; then
3143      ac_header_compiler=yes
3144    else
3145      echo "$as_me: failed program was:" >&5
3146    cat conftest.$ac_ext >&5
3147    ac_header_compiler=no
3148    fi
3149    rm -f conftest.$ac_objext conftest.$ac_ext
3150    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3151    echo "${ECHO_T}$ac_header_compiler" >&6
3152    
3153    # Is the header present?
3154    echo "$as_me:$LINENO: checking gmp.h presence" >&5
3155    echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6
3156    cat >conftest.$ac_ext <<_ACEOF
3157    #line $LINENO "configure"
3158    #include "confdefs.h"
3159    #include <gmp.h>
3160    _ACEOF
3161    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3162      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3163      ac_status=$?
3164      egrep -v '^ *\+' conftest.er1 >conftest.err
3165      rm -f conftest.er1
3166      cat conftest.err >&5
3167      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168      (exit $ac_status); } >/dev/null; then
3169      if test -s conftest.err; then
3170        ac_cpp_err=$ac_c_preproc_warn_flag
3171      else
3172        ac_cpp_err=
3173      fi
3174  else  else
3175    echo "configure: failed program was:" >&5    ac_cpp_err=yes
3176    fi
3177    if test -z "$ac_cpp_err"; then
3178      ac_header_preproc=yes
3179    else
3180      echo "$as_me: failed program was:" >&5
3181    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3182    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_lib_$ac_lib_var=no"  
3183  fi  fi
3184  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
3185  LIBS="$ac_save_LIBS"  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3186    echo "${ECHO_T}$ac_header_preproc" >&6
3187    
3188    # So?  What about this header?
3189    case $ac_header_compiler:$ac_header_preproc in
3190      yes:no )
3191        { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
3192    echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3193        { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
3194    echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;};;
3195      no:yes )
3196        { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
3197    echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
3198        { echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5
3199    echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;}
3200        { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
3201    echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;};;
3202    esac
3203    echo "$as_me:$LINENO: checking for gmp.h" >&5
3204    echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
3205    if test "${ac_cv_header_gmp_h+set}" = set; then
3206      echo $ECHO_N "(cached) $ECHO_C" >&6
3207    else
3208      ac_cv_header_gmp_h=$ac_header_preproc
3209    fi
3210    echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
3211    echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
3212    
3213  fi  fi
3214  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if test $ac_cv_header_gmp_h = yes; then
3215    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
3216    echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6
3217    if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
3218      echo $ECHO_N "(cached) $ECHO_C" >&6
3219    else
3220      ac_check_lib_save_LIBS=$LIBS
3221    LIBS="-lgmp  $LIBS"
3222    
3223    cat >conftest.$ac_ext <<_ACEOF
3224    #line $LINENO "configure"
3225    #include "confdefs.h"
3226    
3227    /* Override any gcc2 internal prototype to avoid an error.  */
3228    #ifdef __cplusplus
3229    extern "C"
3230    #endif
3231    /* We use char because int might match the return type of a gcc2
3232       builtin and then its argument prototype would still apply.  */
3233    char __gmpz_init ();
3234    #ifdef F77_DUMMY_MAIN
3235    #  ifdef __cplusplus
3236         extern "C"
3237    #  endif
3238       int F77_DUMMY_MAIN() { return 1; }
3239    #endif
3240    int
3241    main ()
3242    {
3243    __gmpz_init ();
3244      ;
3245      return 0;
3246    }
3247    _ACEOF
3248    rm -f conftest.$ac_objext conftest$ac_exeext
3249    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3250      (eval $ac_link) 2>&5
3251      ac_status=$?
3252      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253      (exit $ac_status); } &&
3254             { ac_try='test -s conftest$ac_exeext'
3255      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256      (eval $ac_try) 2>&5
3257      ac_status=$?
3258      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259      (exit $ac_status); }; }; then
3260      ac_cv_lib_gmp___gmpz_init=yes
3261    else
3262      echo "$as_me: failed program was:" >&5
3263    cat conftest.$ac_ext >&5
3264    ac_cv_lib_gmp___gmpz_init=no
3265    fi
3266    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3267    LIBS=$ac_check_lib_save_LIBS
3268    fi
3269    echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
3270    echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6
3271    if test $ac_cv_lib_gmp___gmpz_init = yes; then
3272    MPFILES=$GMPDIR/mpn/mul_n.o    MPFILES=$GMPDIR/mpn/mul_n.o
3273                          PATCHED_SYMBOLS=__gmpn_toom3_mul_n                          PATCHED_SYMBOLS=__gmpn_toom3_mul_n
3274                          if test "$use" = "m68k-linux" ; then                          if test "$use" = "m68k-linux" ; then
# Line 1654  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 3281  if eval "test \"`echo '$ac_cv_lib_'$ac_l
3281                          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 '"'`
3282                          rm -f foo.c                          rm -f foo.c
3283  else  else
3284    echo "$ac_t""no" 1>&6    echo "Cannot use dynamic gmp lib" ; exit 1
 echo "Cannot use dynamic gmp lib" ; exit 1  
3285  fi  fi
3286    
3287  else  else
3288    echo "$ac_t""no" 1>&6    echo "Cannot use dynamic gmp lib" ; exit 1
 echo "Cannot use dynamic gmp lib" ; exit 1  
3289  fi  fi
3290    
3291    
3292  else                      
3293    else
3294    
3295          cp $GMPDIR/gmp.h h/gmp.h          cp $GMPDIR/gmp.h h/gmp.h
3296          MP_INCLUDE=h/gmp.h          MP_INCLUDE=h/gmp.h
# Line 1672  else Line 3298  else
3298    
3299  fi  fi
3300    
3301   echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking \"for size of gmp limbs\"" >&5
3302  echo "configure:1677: checking "for size of gmp limbs"" >&5  echo $ECHO_N "checking \"for size of gmp limbs\"... $ECHO_C" >&6
3303   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3304    mpsize=0    mpsize=0
3305  else  else
3306    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3307  #line 1682 "configure"  #line $LINENO "configure"
3308  #include "confdefs.h"  #include "confdefs.h"
3309  #include <stdio.h>  #include <stdio.h>
3310          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1688  else Line 3314  else
3314          fclose(fp);          fclose(fp);
3315          return 0;          return 0;
3316          }          }
3317  EOF  _ACEOF
3318  if { (eval echo configure:1693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3319  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3320      (eval $ac_link) 2>&5
3321      ac_status=$?
3322      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3324      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325      (eval $ac_try) 2>&5
3326      ac_status=$?
3327      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328      (exit $ac_status); }; }; then
3329    mpsize=`cat conftest1`    mpsize=`cat conftest1`
3330  else  else
3331    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3332    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
3333    rm -fr conftest*  cat conftest.$ac_ext >&5
3334    mpsize=0  ( exit $ac_status )
3335    mpsize=0
3336  fi  fi
3337  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3338  fi  fi
   
3339   if test "$mpsize" = "0" ; then   if test "$mpsize" = "0" ; then
3340          echo "Cannot determine mpsize"          echo "Cannot determine mpsize"
3341          exit 1          exit 1
3342   fi   fi
3343   cat >> confdefs.h <<EOF   cat >>confdefs.h <<_ACEOF
3344  #define MP_LIMB_BYTES $mpsize  #define MP_LIMB_BYTES $mpsize
3345  EOF  _ACEOF
3346    
3347   echo "$ac_t""$mpsize" 1>&6   echo "$as_me:$LINENO: result: $mpsize" >&5
3348    echo "${ECHO_T}$mpsize" >&6
3349    
3350   echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking \"_SHORT_LIMB\"" >&5
3351  echo "configure:1716: checking "_SHORT_LIMB"" >&5  echo $ECHO_N "checking \"_SHORT_LIMB\"... $ECHO_C" >&6
3352   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3353    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3354    echo "${ECHO_T}no" >&6
3355  else  else
3356    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3357  #line 1721 "configure"  #line $LINENO "configure"
3358  #include "confdefs.h"  #include "confdefs.h"
3359  #include <stdio.h>  #include <stdio.h>
3360          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1728  else Line 3365  else
3365          return 1;          return 1;
3366          #endif          #endif
3367          }          }
3368  EOF  _ACEOF
3369  if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3370  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3371    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
3372      ac_status=$?
3373      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3375      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376      (eval $ac_try) 2>&5
3377      ac_status=$?
3378      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379      (exit $ac_status); }; }; then
3380      cat >>confdefs.h <<\_ACEOF
3381  #define __SHORT_LIMB 1  #define __SHORT_LIMB 1
3382  EOF  _ACEOF
3383   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
3384  else  echo "${ECHO_T}yes" >&6
3385    echo "configure: failed program was:" >&5  else
3386    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
3387    rm -fr conftest*  echo "$as_me: failed program was:" >&5
3388    echo "$ac_t""no" 1>&6  cat conftest.$ac_ext >&5
3389    ( exit $ac_status )
3390    echo "$as_me:$LINENO: result: no" >&5
3391    echo "${ECHO_T}no" >&6
3392  fi  fi
3393  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3394  fi  fi
3395     echo "$as_me:$LINENO: checking \"_LONG_LONG_LIMB\"" >&5
3396   echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6  echo $ECHO_N "checking \"_LONG_LONG_LIMB\"... $ECHO_C" >&6
 echo "configure:1749: checking "_LONG_LONG_LIMB"" >&5  
3397   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3398    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3399    echo "${ECHO_T}no" >&6
3400  else  else
3401    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3402  #line 1754 "configure"  #line $LINENO "configure"
3403  #include "confdefs.h"  #include "confdefs.h"
3404  #include <stdio.h>  #include <stdio.h>
3405          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1761  else Line 3410  else
3410          return 1;          return 1;
3411          #endif          #endif
3412          }          }
3413  EOF  _ACEOF
3414  if { (eval echo configure:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3415  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3416    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
3417      ac_status=$?
3418      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3420      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421      (eval $ac_try) 2>&5
3422      ac_status=$?
3423      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424      (exit $ac_status); }; }; then
3425      cat >>confdefs.h <<\_ACEOF
3426  #define __LONG_LONG_LIMB 1  #define __LONG_LONG_LIMB 1
3427  EOF  _ACEOF
3428   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
3429  else  echo "${ECHO_T}yes" >&6
3430    echo "configure: failed program was:" >&5  else
3431    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
3432    rm -fr conftest*  echo "$as_me: failed program was:" >&5
3433    echo "$ac_t""no" 1>&6  cat conftest.$ac_ext >&5
3434    ( exit $ac_status )
3435    echo "$as_me:$LINENO: result: no" >&5
3436    echo "${ECHO_T}no" >&6
3437  fi  fi
3438  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3439  fi  fi
3440    
   
3441   GMP=1   GMP=1
3442   cat >> confdefs.h <<\EOF   cat >>confdefs.h <<\_ACEOF
3443  #define GMP 1  #define GMP 1
3444  EOF  _ACEOF
3445    
3446    
3447    
   
   
3448   echo > makedefsafter   echo > makedefsafter
3449   echo "MPFILES=$MPFILES" >> makedefsafter   echo "MPFILES=$MPFILES" >> makedefsafter
3450   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter
# Line 1794  fi Line 3454  fi
3454    
3455  #  #
3456  # X windows  # X windows
3457  #  #
3458    
3459    echo "$as_me:$LINENO: checking for X" >&5
3460    echo $ECHO_N "checking for X... $ECHO_C" >&6
3461    
 # 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:1805: checking for X" >&5  
3462    
3463  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
3464  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
3465    withval="$with_x"    withval="$with_x"
   :  
 fi  
3466    
3467    fi;
3468  # $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.
3469  if test "x$with_x" = xno; then  if test "x$with_x" = xno; then
3470    # The user explicitly disabled X.    # The user explicitly disabled X.
# Line 1818  else Line 3474  else
3474      # Both variables are already set.      # Both variables are already set.
3475      have_x=yes      have_x=yes
3476    else    else
3477  if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then      if test "${ac_cv_have_x+set}" = set; then
3478    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3479  else  else
3480    # 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.
3481  ac_x_includes=NO ac_x_libraries=NO  ac_x_includes=no ac_x_libraries=no
3482  rm -fr conftestdir  rm -fr conftest.dir
3483  if mkdir conftestdir; then  if mkdir conftest.dir; then
3484    cd conftestdir    cd conftest.dir
3485    # 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.
3486    cat > Imakefile <<'EOF'    cat >Imakefile <<'_ACEOF'
3487  acfindx:  acfindx:
3488          @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}"'
3489  EOF  _ACEOF
3490    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3491      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3492      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3493      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3494      for ac_extension in a so sl; do      for ac_extension in a so sl; do
3495        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3496          test -f $ac_im_libdir/libX11.$ac_extension; then           test -f $ac_im_libdir/libX11.$ac_extension; then
3497          ac_im_usrlibdir=$ac_im_libdir; break          ac_im_usrlibdir=$ac_im_libdir; break
3498        fi        fi
3499      done      done
3500      # Screen out bogus values from the imake configuration.  They are      # Screen out bogus values from the imake configuration.  They are
3501      # bogus both because they are the default anyway, and because      # bogus both because they are the default anyway, and because
3502      # using them would break gcc on systems where it needs fixed includes.      # using them would break gcc on systems where it needs fixed includes.
3503      case "$ac_im_incroot" in      case $ac_im_incroot in
3504          /usr/include) ;;          /usr/include) ;;
3505          *) 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;;
3506      esac      esac
3507      case "$ac_im_usrlibdir" in      case $ac_im_usrlibdir in
3508          /usr/lib | /lib) ;;          /usr/lib | /lib) ;;
3509          *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;          *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3510      esac      esac
3511    fi    fi
3512    cd ..    cd ..
3513    rm -fr conftestdir    rm -fr conftest.dir
3514  fi  fi
3515    
3516  if test "$ac_x_includes" = NO; then  # Standard set of common directories for X headers.
3517    # 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.
3518    test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h  ac_x_header_dirs='
3519    /usr/X11/include
3520    /usr/X11R6/include
3521    /usr/X11R5/include
3522    /usr/X11R4/include
3523    
3524    /usr/include/X11
3525    /usr/include/X11R6
3526    /usr/include/X11R5
3527    /usr/include/X11R4
3528    
3529    /usr/local/X11/include
3530    /usr/local/X11R6/include
3531    /usr/local/X11R5/include
3532    /usr/local/X11R4/include
3533    
3534    /usr/local/include/X11
3535    /usr/local/include/X11R6
3536    /usr/local/include/X11R5
3537    /usr/local/include/X11R4
3538    
3539    /usr/X386/include
3540    /usr/x386/include
3541    /usr/XFree86/include/X11
3542    
3543    /usr/include
3544    /usr/local/include
3545    /usr/unsupported/include
3546    /usr/athena/include
3547    /usr/local/x11r5/include
3548    /usr/lpp/Xamples/include
3549    
3550    /usr/openwin/include
3551    /usr/openwin/share/include'
3552    
3553    if test "$ac_x_includes" = no; then
3554      # Guess where to find include files, by looking for Intrinsic.h.
3555    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
3556  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3557  #line 1867 "configure"  #line $LINENO "configure"
3558  #include "confdefs.h"  #include "confdefs.h"
3559  #include <$x_direct_test_include>  #include <X11/Intrinsic.h>
3560  EOF  _ACEOF
3561  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3562  { (eval echo configure:1872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3563  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
3564  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
3565    rm -rf conftest*    rm -f conftest.er1
3566      cat conftest.err >&5
3567      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568      (exit $ac_status); } >/dev/null; then
3569      if test -s conftest.err; then
3570        ac_cpp_err=$ac_c_preproc_warn_flag
3571      else
3572        ac_cpp_err=
3573      fi
3574    else
3575      ac_cpp_err=yes
3576    fi
3577    if test -z "$ac_cpp_err"; then
3578    # We can compile using X headers with no special include directory.    # We can compile using X headers with no special include directory.
3579  ac_x_includes=  ac_x_includes=
3580  else  else
3581    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
3582    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3583    rm -rf conftest*    for ac_dir in $ac_x_header_dirs; do
3584    # Look for the header file in a standard set of common directories.    if test -r "$ac_dir/X11/Intrinsic.h"; then
3585  # Check X11 before X11Rn because it is often a symlink to the current release.      ac_x_includes=$ac_dir
3586    for ac_dir in               \      break
3587      /usr/X11/include          \    fi
3588      /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  
3589  fi  fi
3590  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
3591  fi # $ac_x_includes = NO  fi # $ac_x_includes = no
3592    
3593  if test "$ac_x_libraries" = NO; then  if test "$ac_x_libraries" = no; then
3594    # 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  
   
3595    # See if we find them without any special options.    # See if we find them without any special options.
3596    # Don't add to $LIBS permanently.    # Don't add to $LIBS permanently.
3597    ac_save_LIBS="$LIBS"    ac_save_LIBS=$LIBS
3598    LIBS="-l$x_direct_test_library $LIBS"    LIBS="-lXt $LIBS"
3599  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3600  #line 1941 "configure"  #line $LINENO "configure"
3601  #include "confdefs.h"  #include "confdefs.h"
3602    #include <X11/Intrinsic.h>
3603  int main() {  #ifdef F77_DUMMY_MAIN
3604  ${x_direct_test_function}()  #  ifdef __cplusplus
3605  ; return 0; }       extern "C"
3606  EOF  #  endif
3607  if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then     int F77_DUMMY_MAIN() { return 1; }
3608    rm -rf conftest*  #endif
3609    LIBS="$ac_save_LIBS"  int
3610    main ()
3611    {
3612    XtMalloc (0)
3613      ;
3614      return 0;
3615    }
3616    _ACEOF
3617    rm -f conftest.$ac_objext conftest$ac_exeext
3618    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3619      (eval $ac_link) 2>&5
3620      ac_status=$?
3621      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622      (exit $ac_status); } &&
3623             { ac_try='test -s conftest$ac_exeext'
3624      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625      (eval $ac_try) 2>&5
3626      ac_status=$?
3627      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628      (exit $ac_status); }; }; then
3629      LIBS=$ac_save_LIBS
3630  # We can link X programs with no special library path.  # We can link X programs with no special library path.
3631  ac_x_libraries=  ac_x_libraries=
3632  else  else
3633    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3634    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3635    rm -rf conftest*  LIBS=$ac_save_LIBS
3636    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 \  
     ; \  
3637  do  do
3638      # Don't even attempt the hair of trying to link an X program!
3639    for ac_extension in a so sl; do    for ac_extension in a so sl; do
3640      if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then      if test -r $ac_dir/libXt.$ac_extension; then
3641        ac_x_libraries=$ac_dir        ac_x_libraries=$ac_dir
3642        break 2        break 2
3643      fi      fi
3644    done    done
3645  done  done
3646  fi  fi
3647  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3648  fi # $ac_x_libraries = NO  fi # $ac_x_libraries = no
3649    
3650  if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then  if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3651    # Didn't find X anywhere.  Cache the known absence of X.    # Didn't find X anywhere.  Cache the known absence of X.
3652    ac_cv_have_x="have_x=no"    ac_cv_have_x="have_x=no"
3653  else  else
# Line 2013  else Line 3656  else
3656                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3657  fi  fi
3658  fi  fi
3659    
3660    fi    fi
3661    eval "$ac_cv_have_x"    eval "$ac_cv_have_x"
3662  fi # $with_x != no  fi # $with_x != no
3663    
3664  if test "$have_x" != yes; then  if test "$have_x" != yes; then
3665    echo "$ac_t""$have_x" 1>&6    echo "$as_me:$LINENO: result: $have_x" >&5
3666    echo "${ECHO_T}$have_x" >&6
3667    no_x=yes    no_x=yes
3668  else  else
3669    # 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 2027  else Line 3672  else
3672    # Update the cache value to reflect the command line values.    # Update the cache value to reflect the command line values.
3673    ac_cv_have_x="have_x=yes \    ac_cv_have_x="have_x=yes \
3674                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3675    echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6    echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3676    echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3677  fi  fi
3678    
3679  if test "$no_x" = yes; then  if test "$no_x" = yes; then
3680    # 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.
3681    cat >> confdefs.h <<\EOF  
3682    cat >>confdefs.h <<\_ACEOF
3683  #define X_DISPLAY_MISSING 1  #define X_DISPLAY_MISSING 1
3684  EOF  _ACEOF
3685    
3686    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3687  else  else
# Line 2047  else Line 3694  else
3694      X_LIBS="$X_LIBS -L$x_libraries"      X_LIBS="$X_LIBS -L$x_libraries"
3695      # 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
3696      # others require no space.  Words are not sufficient . . . .      # others require no space.  Words are not sufficient . . . .
3697      case "`(uname -sr) 2>/dev/null`" in      case `(uname -sr) 2>/dev/null` in
3698      "SunOS 5"*)      "SunOS 5"*)
3699        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
3700  echo "configure:2054: 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
3701        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"        ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3702        cat > conftest.$ac_ext <<EOF        cat >conftest.$ac_ext <<_ACEOF
3703  #line 2057 "configure"  #line $LINENO "configure"
3704  #include "confdefs.h"  #include "confdefs.h"
3705    
3706  int main() {  #ifdef F77_DUMMY_MAIN
3707    #  ifdef __cplusplus
3708         extern "C"
3709    #  endif
3710       int F77_DUMMY_MAIN() { return 1; }
3711    #endif
3712    int
3713    main ()
3714    {
3715    
3716  ; return 0; }    ;
3717  EOF    return 0;
3718  if { (eval echo configure:2064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3719    rm -rf conftest*  _ACEOF
3720    rm -f conftest.$ac_objext conftest$ac_exeext
3721    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3722      (eval $ac_link) 2>&5
3723      ac_status=$?
3724      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725      (exit $ac_status); } &&
3726             { ac_try='test -s conftest$ac_exeext'
3727      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728      (eval $ac_try) 2>&5
3729      ac_status=$?
3730      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731      (exit $ac_status); }; }; then
3732    ac_R_nospace=yes    ac_R_nospace=yes
3733  else  else
3734    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3735    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3736    rm -rf conftest*  ac_R_nospace=no
   ac_R_nospace=no  
3737  fi  fi
3738  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3739        if test $ac_R_nospace = yes; then        if test $ac_R_nospace = yes; then
3740          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
3741    echo "${ECHO_T}no" >&6
3742          X_LIBS="$X_LIBS -R$x_libraries"          X_LIBS="$X_LIBS -R$x_libraries"
3743        else        else
3744          LIBS="$ac_xsave_LIBS -R $x_libraries"          LIBS="$ac_xsave_LIBS -R $x_libraries"
3745          cat > conftest.$ac_ext <<EOF          cat >conftest.$ac_ext <<_ACEOF
3746  #line 2080 "configure"  #line $LINENO "configure"
3747  #include "confdefs.h"  #include "confdefs.h"
3748    
3749  int main() {  #ifdef F77_DUMMY_MAIN
3750    #  ifdef __cplusplus
3751         extern "C"
3752    #  endif
3753       int F77_DUMMY_MAIN() { return 1; }
3754    #endif
3755    int
3756    main ()
3757    {
3758    
3759  ; return 0; }    ;
3760  EOF    return 0;
3761  if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3762    rm -rf conftest*  _ACEOF
3763    rm -f conftest.$ac_objext conftest$ac_exeext
3764    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3765      (eval $ac_link) 2>&5
3766      ac_status=$?
3767      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768      (exit $ac_status); } &&
3769             { ac_try='test -s conftest$ac_exeext'
3770      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771      (eval $ac_try) 2>&5
3772      ac_status=$?
3773      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774      (exit $ac_status); }; }; then
3775    ac_R_space=yes    ac_R_space=yes
3776  else  else
3777    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3778    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3779    rm -rf conftest*  ac_R_space=no
   ac_R_space=no  
3780  fi  fi
3781  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3782          if test $ac_R_space = yes; then          if test $ac_R_space = yes; then
3783            echo "$ac_t""yes" 1>&6            echo "$as_me:$LINENO: result: yes" >&5
3784    echo "${ECHO_T}yes" >&6
3785            X_LIBS="$X_LIBS -R $x_libraries"            X_LIBS="$X_LIBS -R $x_libraries"
3786          else          else
3787            echo "$ac_t""neither works" 1>&6            echo "$as_me:$LINENO: result: neither works" >&5
3788    echo "${ECHO_T}neither works" >&6
3789          fi          fi
3790        fi        fi
3791        LIBS="$ac_xsave_LIBS"        LIBS=$ac_xsave_LIBS
3792      esac      esac
3793    fi    fi
3794    
# Line 2111  rm -f conftest* Line 3799  rm -f conftest*
3799    if test "$ISC" = yes; then    if test "$ISC" = yes; then
3800      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3801    else    else
3802      # 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
3803      # libraries were built with DECnet support.  And karl@cs.umb.edu says      # libraries were built with DECnet support.  And Karl Berry says
3804      # the Alpha needs dnet_stub (dnet does not exist).      # the Alpha needs dnet_stub (dnet does not exist).
3805      echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3806  echo "configure:2119: checking for dnet_ntoa in -ldnet" >&5      cat >conftest.$ac_ext <<_ACEOF
3807  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 2127 "configure"  
3808  #include "confdefs.h"  #include "confdefs.h"
3809    
3810  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3811    #ifdef __cplusplus
3812    extern "C"
3813    #endif
3814  /* 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
3815      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3816  char dnet_ntoa();  char XOpenDisplay ();
3817    #ifdef F77_DUMMY_MAIN
3818  int main() {  #  ifdef __cplusplus
3819  dnet_ntoa()       extern "C"
3820  ; return 0; }  #  endif
3821  EOF     int F77_DUMMY_MAIN() { return 1; }
3822  if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
3823    rm -rf conftest*  int
3824    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
3825    {
3826    XOpenDisplay ();
3827      ;
3828      return 0;
3829    }
3830    _ACEOF
3831    rm -f conftest.$ac_objext conftest$ac_exeext
3832    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3833      (eval $ac_link) 2>&5
3834      ac_status=$?
3835      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836      (exit $ac_status); } &&
3837             { ac_try='test -s conftest$ac_exeext'
3838      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839      (eval $ac_try) 2>&5
3840      ac_status=$?
3841      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842      (exit $ac_status); }; }; then
3843      :
3844  else  else
3845    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3846    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3847    rm -rf conftest*  echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3848    eval "ac_cv_lib_$ac_lib_var=no"  echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3849  fi  if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3850  rm -f conftest*    echo $ECHO_N "(cached) $ECHO_C" >&6
3851  LIBS="$ac_save_LIBS"  else
3852      ac_check_lib_save_LIBS=$LIBS
3853    LIBS="-ldnet  $LIBS"
3854    cat >conftest.$ac_ext <<_ACEOF
3855    #line $LINENO "configure"
3856    #include "confdefs.h"
3857    
3858  fi  /* Override any gcc2 internal prototype to avoid an error.  */
3859  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
3860    echo "$ac_t""yes" 1>&6  extern "C"
3861    #endif
3862    /* We use char because int might match the return type of a gcc2
3863       builtin and then its argument prototype would still apply.  */
3864    char dnet_ntoa ();
3865    #ifdef F77_DUMMY_MAIN
3866    #  ifdef __cplusplus
3867         extern "C"
3868    #  endif
3869       int F77_DUMMY_MAIN() { return 1; }
3870    #endif
3871    int
3872    main ()
3873    {
3874    dnet_ntoa ();
3875      ;
3876      return 0;
3877    }
3878    _ACEOF
3879    rm -f conftest.$ac_objext conftest$ac_exeext
3880    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3881      (eval $ac_link) 2>&5
3882      ac_status=$?
3883      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884      (exit $ac_status); } &&
3885             { ac_try='test -s conftest$ac_exeext'
3886      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887      (eval $ac_try) 2>&5
3888      ac_status=$?
3889      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890      (exit $ac_status); }; }; then
3891      ac_cv_lib_dnet_dnet_ntoa=yes
3892    else
3893      echo "$as_me: failed program was:" >&5
3894    cat conftest.$ac_ext >&5
3895    ac_cv_lib_dnet_dnet_ntoa=no
3896    fi
3897    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3898    LIBS=$ac_check_lib_save_LIBS
3899    fi
3900    echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3901    echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3902    if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3903    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 else  
   echo "$ac_t""no" 1>&6  
3904  fi  fi
3905    
3906      if test $ac_cv_lib_dnet_dnet_ntoa = no; then      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3907        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
3908  echo "configure:2160: checking for dnet_ntoa in -ldnet_stub" >&5  echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3909  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3910  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  
3911  else  else
3912    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
3913  LIBS="-ldnet_stub  $LIBS"  LIBS="-ldnet_stub  $LIBS"
3914  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
3915  #line 2168 "configure"  #line $LINENO "configure"
3916  #include "confdefs.h"  #include "confdefs.h"
3917    
3918  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3919    #ifdef __cplusplus
3920    extern "C"
3921    #endif
3922  /* 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
3923      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3924  char dnet_ntoa();  char dnet_ntoa ();
3925    #ifdef F77_DUMMY_MAIN
3926  int main() {  #  ifdef __cplusplus
3927  dnet_ntoa()       extern "C"
3928  ; return 0; }  #  endif
3929  EOF     int F77_DUMMY_MAIN() { return 1; }
3930  if { (eval echo configure:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
3931    rm -rf conftest*  int
3932    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
3933  else  {
3934    echo "configure: failed program was:" >&5  dnet_ntoa ();
3935    cat conftest.$ac_ext >&5    ;
3936    rm -rf conftest*    return 0;
3937    eval "ac_cv_lib_$ac_lib_var=no"  }
3938  fi  _ACEOF
3939  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
3940  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3941      (eval $ac_link) 2>&5
3942  fi    ac_status=$?
3943  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
3945             { ac_try='test -s conftest$ac_exeext'
3946      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947      (eval $ac_try) 2>&5
3948      ac_status=$?
3949      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950      (exit $ac_status); }; }; then
3951      ac_cv_lib_dnet_stub_dnet_ntoa=yes
3952    else
3953      echo "$as_me: failed program was:" >&5
3954    cat conftest.$ac_ext >&5
3955    ac_cv_lib_dnet_stub_dnet_ntoa=no
3956    fi
3957    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3958    LIBS=$ac_check_lib_save_LIBS
3959    fi
3960    echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3961    echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3962    if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3963    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 else  
   echo "$ac_t""no" 1>&6  
3964  fi  fi
3965    
3966      fi      fi
3967    fi
3968    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3969        LIBS="$ac_xsave_LIBS"
3970    
3971      # 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,
3972      # to get the SysV transport functions.      # to get the SysV transport functions.
3973      # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)      # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3974      # needs -lnsl.      # needs -lnsl.
3975      # The nsl library prevents programs from opening the X display      # The nsl library prevents programs from opening the X display
3976      # on Irix 5.2, according to dickey@clark.net.      # on Irix 5.2, according to T.E. Dickey.
3977      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6      # The functions gethostbyname, getservbyname, and inet_addr are
3978  echo "configure:2208: checking for gethostbyname" >&5      # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3979  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then      echo "$as_me:$LINENO: checking for gethostbyname" >&5
3980    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3981    if test "${ac_cv_func_gethostbyname+set}" = set; then
3982      echo $ECHO_N "(cached) $ECHO_C" >&6
3983  else  else
3984    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3985  #line 2213 "configure"  #line $LINENO "configure"
3986  #include "confdefs.h"  #include "confdefs.h"
3987  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3988      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname (); below.  */
3989  #include <assert.h>  #include <assert.h>
3990  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3991    #ifdef __cplusplus
3992    extern "C"
3993    #endif
3994  /* 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
3995      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3996  char gethostbyname();  char gethostbyname ();
3997    char (*f) ();
3998  int main() {  
3999    #ifdef F77_DUMMY_MAIN
4000    #  ifdef __cplusplus
4001         extern "C"
4002    #  endif
4003       int F77_DUMMY_MAIN() { return 1; }
4004    #endif
4005    int
4006    main ()
4007    {
4008  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4009      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4010      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4011  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4012  choke me  choke me
4013  #else  #else
4014  gethostbyname();  f = gethostbyname;
4015  #endif  #endif
4016    
4017  ; return 0; }    ;
4018  EOF    return 0;
4019  if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4020    rm -rf conftest*  _ACEOF
4021    eval "ac_cv_func_gethostbyname=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4022  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4023    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4024    cat conftest.$ac_ext >&5    ac_status=$?
4025    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026    eval "ac_cv_func_gethostbyname=no"    (exit $ac_status); } &&
4027  fi           { ac_try='test -s conftest$ac_exeext'
4028  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029      (eval $ac_try) 2>&5
4030      ac_status=$?
4031      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032      (exit $ac_status); }; }; then
4033      ac_cv_func_gethostbyname=yes
4034    else
4035      echo "$as_me: failed program was:" >&5
4036    cat conftest.$ac_ext >&5
4037    ac_cv_func_gethostbyname=no
4038  fi  fi
4039    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  
4040  fi  fi
4041    echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4042    echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4043    
4044      if test $ac_cv_func_gethostbyname = no; then      if test $ac_cv_func_gethostbyname = no; then
4045        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4046  echo "configure:2257: checking for gethostbyname in -lnsl" >&5  echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4047  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4048  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  
4049  else  else
4050    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4051  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
4052  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4053  #line 2265 "configure"  #line $LINENO "configure"
4054  #include "confdefs.h"  #include "confdefs.h"
4055    
4056  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4057    #ifdef __cplusplus
4058    extern "C"
4059    #endif
4060  /* 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
4061      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4062  char gethostbyname();  char gethostbyname ();
4063    #ifdef F77_DUMMY_MAIN
4064  int main() {  #  ifdef __cplusplus
4065  gethostbyname()       extern "C"
4066  ; return 0; }  #  endif
4067  EOF     int F77_DUMMY_MAIN() { return 1; }
4068  if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4069    rm -rf conftest*  int
4070    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4071  else  {
4072    echo "configure: failed program was:" >&5  gethostbyname ();
4073    cat conftest.$ac_ext >&5    ;
4074    rm -rf conftest*    return 0;
4075    eval "ac_cv_lib_$ac_lib_var=no"  }
4076    _ACEOF
4077    rm -f conftest.$ac_objext conftest$ac_exeext
4078    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4079      (eval $ac_link) 2>&5
4080      ac_status=$?
4081      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082      (exit $ac_status); } &&
4083             { ac_try='test -s conftest$ac_exeext'
4084      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085      (eval $ac_try) 2>&5
4086      ac_status=$?
4087      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088      (exit $ac_status); }; }; then
4089      ac_cv_lib_nsl_gethostbyname=yes
4090    else
4091      echo "$as_me: failed program was:" >&5
4092    cat conftest.$ac_ext >&5
4093    ac_cv_lib_nsl_gethostbyname=no
4094    fi
4095    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4096    LIBS=$ac_check_lib_save_LIBS
4097    fi
4098    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4099    echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4100    if test $ac_cv_lib_nsl_gethostbyname = yes; then
4101      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4102  fi  fi
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4103    
4104  fi        if test $ac_cv_lib_nsl_gethostbyname = no; then
4105  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then          echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4106    echo "$ac_t""yes" 1>&6  echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4107    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"  if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4108  else    echo $ECHO_N "(cached) $ECHO_C" >&6
4109    echo "$ac_t""no" 1>&6  else
4110      ac_check_lib_save_LIBS=$LIBS
4111    LIBS="-lbsd  $LIBS"
4112    cat >conftest.$ac_ext <<_ACEOF
4113    #line $LINENO "configure"
4114    #include "confdefs.h"
4115    
4116    /* Override any gcc2 internal prototype to avoid an error.  */
4117    #ifdef __cplusplus
4118    extern "C"
4119    #endif
4120    /* We use char because int might match the return type of a gcc2
4121       builtin and then its argument prototype would still apply.  */
4122    char gethostbyname ();
4123    #ifdef F77_DUMMY_MAIN
4124    #  ifdef __cplusplus
4125         extern "C"
4126    #  endif
4127       int F77_DUMMY_MAIN() { return 1; }
4128    #endif
4129    int
4130    main ()
4131    {
4132    gethostbyname ();
4133      ;
4134      return 0;
4135    }
4136    _ACEOF
4137    rm -f conftest.$ac_objext conftest$ac_exeext
4138    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4139      (eval $ac_link) 2>&5
4140      ac_status=$?
4141      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142      (exit $ac_status); } &&
4143             { ac_try='test -s conftest$ac_exeext'
4144      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145      (eval $ac_try) 2>&5
4146      ac_status=$?
4147      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148      (exit $ac_status); }; }; then
4149      ac_cv_lib_bsd_gethostbyname=yes
4150    else
4151      echo "$as_me: failed program was:" >&5
4152    cat conftest.$ac_ext >&5
4153    ac_cv_lib_bsd_gethostbyname=no
4154    fi
4155    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4156    LIBS=$ac_check_lib_save_LIBS
4157    fi
4158    echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4159    echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4160    if test $ac_cv_lib_bsd_gethostbyname = yes; then
4161      X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4162  fi  fi
4163    
4164          fi
4165      fi      fi
4166    
4167      # lieder@skyler.mavd.honeywell.com says without -lsocket,      # lieder@skyler.mavd.honeywell.com says without -lsocket,
4168      # socket/setsockopt and other routines are undefined under SCO ODT      # socket/setsockopt and other routines are undefined under SCO ODT
4169      # 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
4170      # on later versions), says simon@lia.di.epfl.ch: it contains      # on later versions), says Simon Leinen: it contains gethostby*
4171      # gethostby* variants that don't use the nameserver (or something).      # variants that don't use the nameserver (or something).  -lsocket
4172      # -lsocket must be given before -lnsl if both are needed.      # must be given before -lnsl if both are needed.  We assume that
4173      # We assume that if connect needs -lnsl, so does gethostbyname.      # if connect needs -lnsl, so does gethostbyname.
4174      echo $ac_n "checking for connect""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for connect" >&5
4175  echo "configure:2306: checking for connect" >&5  echo $ECHO_N "checking for connect... $ECHO_C" >&6
4176  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if test "${ac_cv_func_connect+set}" = set; then
4177    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4178  else  else
4179    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4180  #line 2311 "configure"  #line $LINENO "configure"
4181  #include "confdefs.h"  #include "confdefs.h"
4182  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4183      which can conflict with char connect(); below.  */      which can conflict with char connect (); below.  */
4184  #include <assert.h>  #include <assert.h>
4185  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4186    #ifdef __cplusplus
4187    extern "C"
4188    #endif
4189  /* 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
4190      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4191  char connect();  char connect ();
4192    char (*f) ();
4193  int main() {  
4194    #ifdef F77_DUMMY_MAIN
4195    #  ifdef __cplusplus
4196         extern "C"
4197    #  endif
4198       int F77_DUMMY_MAIN() { return 1; }
4199    #endif
4200    int
4201    main ()
4202    {
4203  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4204      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4205      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4206  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
4207  choke me  choke me
4208  #else  #else
4209  connect();  f = connect;
4210  #endif  #endif
4211    
4212  ; return 0; }    ;
4213  EOF    return 0;
4214  if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4215    rm -rf conftest*  _ACEOF
4216    eval "ac_cv_func_connect=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4217  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4218    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4219    cat conftest.$ac_ext >&5    ac_status=$?
4220    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221    eval "ac_cv_func_connect=no"    (exit $ac_status); } &&
4222  fi           { ac_try='test -s conftest$ac_exeext'
4223  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224      (eval $ac_try) 2>&5
4225      ac_status=$?
4226      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227      (exit $ac_status); }; }; then
4228      ac_cv_func_connect=yes
4229    else
4230      echo "$as_me: failed program was:" >&5
4231    cat conftest.$ac_ext >&5
4232    ac_cv_func_connect=no
4233  fi  fi
4234    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  
4235  fi  fi
4236    echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4237    echo "${ECHO_T}$ac_cv_func_connect" >&6
4238    
4239      if test $ac_cv_func_connect = no; then      if test $ac_cv_func_connect = no; then
4240        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4241  echo "configure:2355: checking for connect in -lsocket" >&5  echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4242  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_connect+set}" = set; then
4243  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  
4244  else  else
4245    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4246  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4247  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4248  #line 2363 "configure"  #line $LINENO "configure"
4249  #include "confdefs.h"  #include "confdefs.h"
4250    
4251  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4252    #ifdef __cplusplus
4253    extern "C"
4254    #endif
4255  /* 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
4256      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4257  char connect();  char connect ();
4258    #ifdef F77_DUMMY_MAIN
4259  int main() {  #  ifdef __cplusplus
4260  connect()       extern "C"
4261  ; return 0; }  #  endif
4262  EOF     int F77_DUMMY_MAIN() { return 1; }
4263  if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4264    rm -rf conftest*  int
4265    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4266  else  {
4267    echo "configure: failed program was:" >&5  connect ();
4268    cat conftest.$ac_ext >&5    ;
4269    rm -rf conftest*    return 0;
4270    eval "ac_cv_lib_$ac_lib_var=no"  }
4271  fi  _ACEOF
4272  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4273  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4274      (eval $ac_link) 2>&5
4275  fi    ac_status=$?
4276  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4278             { ac_try='test -s conftest$ac_exeext'
4279      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280      (eval $ac_try) 2>&5
4281      ac_status=$?
4282      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283      (exit $ac_status); }; }; then
4284      ac_cv_lib_socket_connect=yes
4285    else
4286      echo "$as_me: failed program was:" >&5
4287    cat conftest.$ac_ext >&5
4288    ac_cv_lib_socket_connect=no
4289    fi
4290    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4291    LIBS=$ac_check_lib_save_LIBS
4292    fi
4293    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4294    echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4295    if test $ac_cv_lib_socket_connect = yes; then
4296    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 else  
   echo "$ac_t""no" 1>&6  
4297  fi  fi
4298    
4299      fi      fi
4300    
4301      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.      # Guillermo Gomez says -lposix is necessary on A/UX.
4302      echo $ac_n "checking for remove""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for remove" >&5
4303  echo "configure:2398: checking for remove" >&5  echo $ECHO_N "checking for remove... $ECHO_C" >&6
4304  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then  if test "${ac_cv_func_remove+set}" = set; then
4305    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4306  else  else
4307    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4308  #line 2403 "configure"  #line $LINENO "configure"
4309  #include "confdefs.h"  #include "confdefs.h"
4310  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4311      which can conflict with char remove(); below.  */      which can conflict with char remove (); below.  */
4312  #include <assert.h>  #include <assert.h>
4313  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4314    #ifdef __cplusplus
4315    extern "C"
4316    #endif
4317  /* 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
4318      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4319  char remove();  char remove ();
4320    char (*f) ();
4321  int main() {  
4322    #ifdef F77_DUMMY_MAIN
4323    #  ifdef __cplusplus
4324         extern "C"
4325    #  endif
4326       int F77_DUMMY_MAIN() { return 1; }
4327    #endif
4328    int
4329    main ()
4330    {
4331  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4332      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4333      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4334  #if defined (__stub_remove) || defined (__stub___remove)  #if defined (__stub_remove) || defined (__stub___remove)
4335  choke me  choke me
4336  #else  #else
4337  remove();  f = remove;
4338  #endif  #endif
4339    
4340  ; return 0; }    ;
4341  EOF    return 0;
4342  if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4343    rm -rf conftest*  _ACEOF
4344    eval "ac_cv_func_remove=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4345  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4347    cat conftest.$ac_ext >&5    ac_status=$?
4348    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349    eval "ac_cv_func_remove=no"    (exit $ac_status); } &&
4350  fi           { ac_try='test -s conftest$ac_exeext'
4351  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352      (eval $ac_try) 2>&5
4353      ac_status=$?
4354      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355      (exit $ac_status); }; }; then
4356      ac_cv_func_remove=yes
4357    else
4358      echo "$as_me: failed program was:" >&5
4359    cat conftest.$ac_ext >&5
4360    ac_cv_func_remove=no
4361  fi  fi
4362    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   :  
 else  
   echo "$ac_t""no" 1>&6  
4363  fi  fi
4364    echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4365    echo "${ECHO_T}$ac_cv_func_remove" >&6
4366    
4367      if test $ac_cv_func_remove = no; then      if test $ac_cv_func_remove = no; then
4368        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4369  echo "configure:2447: checking for remove in -lposix" >&5  echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4370  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_posix_remove+set}" = set; then
4371  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  
4372  else  else
4373    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4374  LIBS="-lposix  $LIBS"  LIBS="-lposix  $LIBS"
4375  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4376  #line 2455 "configure"  #line $LINENO "configure"
4377  #include "confdefs.h"  #include "confdefs.h"
4378    
4379  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4380    #ifdef __cplusplus
4381    extern "C"
4382    #endif
4383  /* 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
4384      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4385  char remove();  char remove ();
4386    #ifdef F77_DUMMY_MAIN
4387  int main() {  #  ifdef __cplusplus
4388  remove()       extern "C"
4389  ; return 0; }  #  endif
4390  EOF     int F77_DUMMY_MAIN() { return 1; }
4391  if { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4392    rm -rf conftest*  int
4393    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4394  else  {
4395    echo "configure: failed program was:" >&5  remove ();
4396    cat conftest.$ac_ext >&5    ;
4397    rm -rf conftest*    return 0;
4398    eval "ac_cv_lib_$ac_lib_var=no"  }
4399  fi  _ACEOF
4400  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4401  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4402      (eval $ac_link) 2>&5
4403  fi    ac_status=$?
4404  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4406             { ac_try='test -s conftest$ac_exeext'
4407      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408      (eval $ac_try) 2>&5
4409      ac_status=$?
4410      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411      (exit $ac_status); }; }; then
4412      ac_cv_lib_posix_remove=yes
4413    else
4414      echo "$as_me: failed program was:" >&5
4415    cat conftest.$ac_ext >&5
4416    ac_cv_lib_posix_remove=no
4417    fi
4418    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4419    LIBS=$ac_check_lib_save_LIBS
4420    fi
4421    echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4422    echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4423    if test $ac_cv_lib_posix_remove = yes; then
4424    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 else  
   echo "$ac_t""no" 1>&6  
4425  fi  fi
4426    
4427      fi      fi
4428    
4429      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4430      echo $ac_n "checking for shmat""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for shmat" >&5
4431  echo "configure:2490: checking for shmat" >&5  echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4432  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then  if test "${ac_cv_func_shmat+set}" = set; then
4433    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4434  else  else
4435    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4436  #line 2495 "configure"  #line $LINENO "configure"
4437  #include "confdefs.h"  #include "confdefs.h"
4438  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4439      which can conflict with char shmat(); below.  */      which can conflict with char shmat (); below.  */
4440  #include <assert.h>  #include <assert.h>
4441  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4442    #ifdef __cplusplus
4443    extern "C"
4444    #endif
4445  /* 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
4446      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4447  char shmat();  char shmat ();
4448    char (*f) ();
4449  int main() {  
4450    #ifdef F77_DUMMY_MAIN
4451    #  ifdef __cplusplus
4452         extern "C"
4453    #  endif
4454       int F77_DUMMY_MAIN() { return 1; }
4455    #endif
4456    int
4457    main ()
4458    {
4459  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4460      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4461      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4462  #if defined (__stub_shmat) || defined (__stub___shmat)  #if defined (__stub_shmat) || defined (__stub___shmat)
4463  choke me  choke me
4464  #else  #else
4465  shmat();  f = shmat;
4466  #endif  #endif
4467    
4468  ; return 0; }    ;
4469  EOF    return 0;
4470  if { (eval echo configure:2518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4471    rm -rf conftest*  _ACEOF
4472    eval "ac_cv_func_shmat=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4473  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4474    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4475    cat conftest.$ac_ext >&5    ac_status=$?
4476    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477    eval "ac_cv_func_shmat=no"    (exit $ac_status); } &&
4478  fi           { ac_try='test -s conftest$ac_exeext'
4479  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480      (eval $ac_try) 2>&5
4481      ac_status=$?
4482      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483      (exit $ac_status); }; }; then
4484      ac_cv_func_shmat=yes
4485    else
4486      echo "$as_me: failed program was:" >&5
4487    cat conftest.$ac_ext >&5
4488    ac_cv_func_shmat=no
4489  fi  fi
4490    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  
4491  fi  fi
4492    echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4493    echo "${ECHO_T}$ac_cv_func_shmat" >&6
4494    
4495      if test $ac_cv_func_shmat = no; then      if test $ac_cv_func_shmat = no; then
4496        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4497  echo "configure:2539: checking for shmat in -lipc" >&5  echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4498  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4499  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  
4500  else  else
4501    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4502  LIBS="-lipc  $LIBS"  LIBS="-lipc  $LIBS"
4503  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4504  #line 2547 "configure"  #line $LINENO "configure"
4505  #include "confdefs.h"  #include "confdefs.h"
4506    
4507  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4508    #ifdef __cplusplus
4509    extern "C"
4510    #endif
4511  /* 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
4512      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4513  char shmat();  char shmat ();
4514    #ifdef F77_DUMMY_MAIN
4515  int main() {  #  ifdef __cplusplus
4516  shmat()       extern "C"
4517  ; return 0; }  #  endif
4518  EOF     int F77_DUMMY_MAIN() { return 1; }
4519  if { (eval echo configure:2558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4520    rm -rf conftest*  int
4521    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4522  else  {
4523    echo "configure: failed program was:" >&5  shmat ();
4524    cat conftest.$ac_ext >&5    ;
4525    rm -rf conftest*    return 0;
4526    eval "ac_cv_lib_$ac_lib_var=no"  }
4527  fi  _ACEOF
4528  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4529  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4530      (eval $ac_link) 2>&5
4531  fi    ac_status=$?
4532  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4534             { ac_try='test -s conftest$ac_exeext'
4535      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536      (eval $ac_try) 2>&5
4537      ac_status=$?
4538      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539      (exit $ac_status); }; }; then
4540      ac_cv_lib_ipc_shmat=yes
4541    else
4542      echo "$as_me: failed program was:" >&5
4543    cat conftest.$ac_ext >&5
4544    ac_cv_lib_ipc_shmat=no
4545    fi
4546    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4547    LIBS=$ac_check_lib_save_LIBS
4548    fi
4549    echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4550    echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4551    if test $ac_cv_lib_ipc_shmat = yes; then
4552    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 else  
   echo "$ac_t""no" 1>&6  
4553  fi  fi
4554    
4555      fi      fi
4556    fi    fi
4557    
4558    # Check for libraries that X11R6 Xt/Xaw programs need.    # Check for libraries that X11R6 Xt/Xaw programs need.
4559    ac_save_LDFLAGS="$LDFLAGS"    ac_save_LDFLAGS=$LDFLAGS
4560    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4561    # 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
4562    # 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
4563    # 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.
4564    # These have to be linked with before -lX11, unlike the other    # These have to be linked with before -lX11, unlike the other
4565    # libraries we check for below, so use a different variable.    # libraries we check for below, so use a different variable.
4566    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.    # John Interrante, Karl Berry
4567    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4568  echo "configure:2591: checking for IceConnectionNumber in -lICE" >&5  echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4569  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4570  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  
4571  else  else
4572    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4573  LIBS="-lICE $X_EXTRA_LIBS $LIBS"  LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4574  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4575  #line 2599 "configure"  #line $LINENO "configure"
4576  #include "confdefs.h"  #include "confdefs.h"
4577    
4578  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4579    #ifdef __cplusplus
4580    extern "C"
4581    #endif
4582  /* 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
4583      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4584  char IceConnectionNumber();  char IceConnectionNumber ();
4585    #ifdef F77_DUMMY_MAIN
4586  int main() {  #  ifdef __cplusplus
4587  IceConnectionNumber()       extern "C"
4588  ; return 0; }  #  endif
4589  EOF     int F77_DUMMY_MAIN() { return 1; }
4590  if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4591    rm -rf conftest*  int
4592    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4593  else  {
4594    echo "configure: failed program was:" >&5  IceConnectionNumber ();
4595    cat conftest.$ac_ext >&5    ;
4596    rm -rf conftest*    return 0;
4597    eval "ac_cv_lib_$ac_lib_var=no"  }
4598  fi  _ACEOF
4599  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4600  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4601      (eval $ac_link) 2>&5
4602  fi    ac_status=$?
4603  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4605             { ac_try='test -s conftest$ac_exeext'
4606      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607      (eval $ac_try) 2>&5
4608      ac_status=$?
4609      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610      (exit $ac_status); }; }; then
4611      ac_cv_lib_ICE_IceConnectionNumber=yes
4612    else
4613      echo "$as_me: failed program was:" >&5
4614    cat conftest.$ac_ext >&5
4615    ac_cv_lib_ICE_IceConnectionNumber=no
4616    fi
4617    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4618    LIBS=$ac_check_lib_save_LIBS
4619    fi
4620    echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4621    echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4622    if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4623    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 else  
   echo "$ac_t""no" 1>&6  
4624  fi  fi
4625    
4626    LDFLAGS="$ac_save_LDFLAGS"    LDFLAGS=$ac_save_LDFLAGS
4627    
4628  fi  fi
4629    
# Line 2636  echo $X_EXTRA_LIBS Line 4633  echo $X_EXTRA_LIBS
4633  echo $X_PRE_LIBS  echo $X_PRE_LIBS
4634    
4635  miss=0  miss=0
4636  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXmu" >&5
4637  echo "configure:2641: checking for main in -lXmu" >&5  echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6
4638  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xmu_main+set}" = set; then
4639  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  
4640  else  else
4641    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4642  LIBS="-lXmu $X_LIBS $LIBS"  LIBS="-lXmu $X_LIBS $LIBS"
4643  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4644  #line 2649 "configure"  #line $LINENO "configure"
4645  #include "confdefs.h"  #include "confdefs.h"
4646    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2656: \"$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"  
4647    
4648  fi  #ifdef F77_DUMMY_MAIN
4649  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4650    echo "$ac_t""yes" 1>&6       extern "C"
4651    #  endif
4652       int F77_DUMMY_MAIN() { return 1; }
4653    #endif
4654    int
4655    main ()
4656    {
4657    main ();
4658      ;
4659      return 0;
4660    }
4661    _ACEOF
4662    rm -f conftest.$ac_objext conftest$ac_exeext
4663    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4664      (eval $ac_link) 2>&5
4665      ac_status=$?
4666      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667      (exit $ac_status); } &&
4668             { ac_try='test -s conftest$ac_exeext'
4669      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670      (eval $ac_try) 2>&5
4671      ac_status=$?
4672      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673      (exit $ac_status); }; }; then
4674      ac_cv_lib_Xmu_main=yes
4675    else
4676      echo "$as_me: failed program was:" >&5
4677    cat conftest.$ac_ext >&5
4678    ac_cv_lib_Xmu_main=no
4679    fi
4680    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4681    LIBS=$ac_check_lib_save_LIBS
4682    fi
4683    echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5
4684    echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6
4685    if test $ac_cv_lib_Xmu_main = yes; then
4686    X_LIBS="$X_LIBS -lXmu"    X_LIBS="$X_LIBS -lXmu"
4687  else  else
4688    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4689  fi  fi
4690    
4691  echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXt" >&5
4692  echo "configure:2678: checking for main in -lXt" >&5  echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
4693  ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xt_main+set}" = set; then
4694  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  
4695  else  else
4696    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4697  LIBS="-lXt $X_LIBS $LIBS"  LIBS="-lXt $X_LIBS $LIBS"
4698  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4699  #line 2686 "configure"  #line $LINENO "configure"
4700  #include "confdefs.h"  #include "confdefs.h"
4701    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2693: \"$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"  
4702    
4703  fi  #ifdef F77_DUMMY_MAIN
4704  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4705    echo "$ac_t""yes" 1>&6       extern "C"
4706    #  endif
4707       int F77_DUMMY_MAIN() { return 1; }
4708    #endif
4709    int
4710    main ()
4711    {
4712    main ();
4713      ;
4714      return 0;
4715    }
4716    _ACEOF
4717    rm -f conftest.$ac_objext conftest$ac_exeext
4718    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4719      (eval $ac_link) 2>&5
4720      ac_status=$?
4721      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722      (exit $ac_status); } &&
4723             { ac_try='test -s conftest$ac_exeext'
4724      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725      (eval $ac_try) 2>&5
4726      ac_status=$?
4727      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728      (exit $ac_status); }; }; then
4729      ac_cv_lib_Xt_main=yes
4730    else
4731      echo "$as_me: failed program was:" >&5
4732    cat conftest.$ac_ext >&5
4733    ac_cv_lib_Xt_main=no
4734    fi
4735    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4736    LIBS=$ac_check_lib_save_LIBS
4737    fi
4738    echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
4739    echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
4740    if test $ac_cv_lib_Xt_main = yes; then
4741    X_LIBS="$X_LIBS -lXt"    X_LIBS="$X_LIBS -lXt"
4742  else  else
4743    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4744  fi  fi
4745    
4746  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXext" >&5
4747  echo "configure:2715: checking for main in -lXext" >&5  echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6
4748  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xext_main+set}" = set; then
4749  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  
4750  else  else
4751    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4752  LIBS="-lXext $X_LIBS $LIBS"  LIBS="-lXext $X_LIBS $LIBS"
4753  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4754  #line 2723 "configure"  #line $LINENO "configure"
4755  #include "confdefs.h"  #include "confdefs.h"
4756    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2730: \"$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"  
4757    
4758  fi  #ifdef F77_DUMMY_MAIN
4759  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4760    echo "$ac_t""yes" 1>&6       extern "C"
4761    #  endif
4762       int F77_DUMMY_MAIN() { return 1; }
4763    #endif
4764    int
4765    main ()
4766    {
4767    main ();
4768      ;
4769      return 0;
4770    }
4771    _ACEOF
4772    rm -f conftest.$ac_objext conftest$ac_exeext
4773    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4774      (eval $ac_link) 2>&5
4775      ac_status=$?
4776      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777      (exit $ac_status); } &&
4778             { ac_try='test -s conftest$ac_exeext'
4779      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780      (eval $ac_try) 2>&5
4781      ac_status=$?
4782      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783      (exit $ac_status); }; }; then
4784      ac_cv_lib_Xext_main=yes
4785    else
4786      echo "$as_me: failed program was:" >&5
4787    cat conftest.$ac_ext >&5
4788    ac_cv_lib_Xext_main=no
4789    fi
4790    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4791    LIBS=$ac_check_lib_save_LIBS
4792    fi
4793    echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5
4794    echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6
4795    if test $ac_cv_lib_Xext_main = yes; then
4796    X_LIBS="$X_LIBS -lXext"    X_LIBS="$X_LIBS -lXext"
4797  else  else
4798    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4799  fi  fi
4800    
4801  echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXaw" >&5
4802  echo "configure:2752: checking for main in -lXaw" >&5  echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6
4803  ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xaw_main+set}" = set; then
4804  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  
4805  else  else
4806    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4807  LIBS="-lXaw $X_LIBS $LIBS"  LIBS="-lXaw $X_LIBS $LIBS"
4808  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4809  #line 2760 "configure"  #line $LINENO "configure"
4810  #include "confdefs.h"  #include "confdefs.h"
4811    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2767: \"$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"  
4812    
4813  fi  #ifdef F77_DUMMY_MAIN
4814  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4815    echo "$ac_t""yes" 1>&6       extern "C"
4816    #  endif
4817       int F77_DUMMY_MAIN() { return 1; }
4818    #endif
4819    int
4820    main ()
4821    {
4822    main ();
4823      ;
4824      return 0;
4825    }
4826    _ACEOF
4827    rm -f conftest.$ac_objext conftest$ac_exeext
4828    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4829      (eval $ac_link) 2>&5
4830      ac_status=$?
4831      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832      (exit $ac_status); } &&
4833             { ac_try='test -s conftest$ac_exeext'
4834      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835      (eval $ac_try) 2>&5
4836      ac_status=$?
4837      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838      (exit $ac_status); }; }; then
4839      ac_cv_lib_Xaw_main=yes
4840    else
4841      echo "$as_me: failed program was:" >&5
4842    cat conftest.$ac_ext >&5
4843    ac_cv_lib_Xaw_main=no
4844    fi
4845    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4846    LIBS=$ac_check_lib_save_LIBS
4847    fi
4848    echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5
4849    echo "${ECHO_T}$ac_cv_lib_Xaw_main" >&6
4850    if test $ac_cv_lib_Xaw_main = yes; then
4851    X_LIBS="$X_LIBS -lXaw"    X_LIBS="$X_LIBS -lXaw"
4852  else  else
4853    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4854  fi  fi
4855    
4856  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lX11" >&5
4857  echo "configure:2789: checking for main in -lX11" >&5  echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
4858  ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_X11_main+set}" = set; then
4859  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  
4860  else  else
4861    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4862  LIBS="-lX11 $X_LIBS $LIBS"  LIBS="-lX11 $X_LIBS $LIBS"
4863  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4864  #line 2797 "configure"  #line $LINENO "configure"
4865  #include "confdefs.h"  #include "confdefs.h"
4866    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2804: \"$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"  
4867    
4868  fi  #ifdef F77_DUMMY_MAIN
4869  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4870    echo "$ac_t""yes" 1>&6       extern "C"
4871    #  endif
4872       int F77_DUMMY_MAIN() { return 1; }
4873    #endif
4874    int
4875    main ()
4876    {
4877    main ();
4878      ;
4879      return 0;
4880    }
4881    _ACEOF
4882    rm -f conftest.$ac_objext conftest$ac_exeext
4883    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4884      (eval $ac_link) 2>&5
4885      ac_status=$?
4886      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887      (exit $ac_status); } &&
4888             { ac_try='test -s conftest$ac_exeext'
4889      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890      (eval $ac_try) 2>&5
4891      ac_status=$?
4892      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893      (exit $ac_status); }; }; then
4894      ac_cv_lib_X11_main=yes
4895    else
4896      echo "$as_me: failed program was:" >&5
4897    cat conftest.$ac_ext >&5
4898    ac_cv_lib_X11_main=no
4899    fi
4900    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4901    LIBS=$ac_check_lib_save_LIBS
4902    fi
4903    echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
4904    echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
4905    if test $ac_cv_lib_X11_main = yes; then
4906    X_LIBS="$X_LIBS -lX11"    X_LIBS="$X_LIBS -lX11"
4907  else  else
4908    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4909  fi  fi
4910    
4911    
4912  if test "$miss" = "1" ; then  if test "$miss" = "1" ; then
4913          X_CFLAGS=          X_CFLAGS=
4914          X_LIBS=          X_LIBS=
# Line 2838  fi Line 4925  fi
4925    
4926  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
4927    
4928          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4929  echo "configure:2843: checking for dlopen in -ldl" >&5  echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4930  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4931  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  
4932  else  else
4933    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4934  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
4935  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4936  #line 2851 "configure"  #line $LINENO "configure"
4937  #include "confdefs.h"  #include "confdefs.h"
4938    
4939  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4940    #ifdef __cplusplus
4941    extern "C"
4942    #endif
4943  /* 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
4944      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4945  char dlopen();  char dlopen ();
4946    #ifdef F77_DUMMY_MAIN
4947  int main() {  #  ifdef __cplusplus
4948  dlopen()       extern "C"
4949  ; return 0; }  #  endif
4950  EOF     int F77_DUMMY_MAIN() { return 1; }
4951  if { (eval echo configure:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4952    rm -rf conftest*  int
4953    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4954  else  {
4955    echo "configure: failed program was:" >&5  dlopen ();
4956    cat conftest.$ac_ext >&5    ;
4957    rm -rf conftest*    return 0;
4958    eval "ac_cv_lib_$ac_lib_var=no"  }
4959  fi  _ACEOF
4960  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4961  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4962      (eval $ac_link) 2>&5
4963  fi    ac_status=$?
4964  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4966             { ac_try='test -s conftest$ac_exeext'
4967      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968      (eval $ac_try) 2>&5
4969      ac_status=$?
4970      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971      (exit $ac_status); }; }; then
4972      ac_cv_lib_dl_dlopen=yes
4973    else
4974      echo "$as_me: failed program was:" >&5
4975    cat conftest.$ac_ext >&5
4976    ac_cv_lib_dl_dlopen=no
4977    fi
4978    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4979    LIBS=$ac_check_lib_save_LIBS
4980    fi
4981    echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4982    echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4983    if test $ac_cv_lib_dl_dlopen = yes; then
4984    have_dl=1    have_dl=1
4985  else  else
4986    echo "$ac_t""no" 1>&6    have_dl=0
 have_dl=0  
4987  fi  fi
4988    
4989          if test "$have_dl" = "0" ; then          if test "$have_dl" = "0" ; then
# Line 2885  fi Line 4992  fi
4992          fi          fi
4993    
4994          TLIBS="$TLIBS -ldl -rdynamic"          TLIBS="$TLIBS -ldl -rdynamic"
4995          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
4996  #define USE_DLOPEN 1  #define USE_DLOPEN 1
4997  EOF  _ACEOF
4998    
4999  fi  fi
5000    
5001  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
5002          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`          if test "${ac_cv_header_bfd_h+set}" = set; then
5003  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for bfd.h" >&5
5004  echo "configure:2898: checking for bfd.h" >&5  echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
5005  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_bfd_h+set}" = set; then
5006    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5007  else  fi
5008    cat > conftest.$ac_ext <<EOF  echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
5009  #line 2903 "configure"  echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
5010    else
5011      # Is the header compilable?
5012    echo "$as_me:$LINENO: checking bfd.h usability" >&5
5013    echo $ECHO_N "checking bfd.h usability... $ECHO_C" >&6
5014    cat >conftest.$ac_ext <<_ACEOF
5015    #line $LINENO "configure"
5016  #include "confdefs.h"  #include "confdefs.h"
5017    $ac_includes_default
5018  #include <bfd.h>  #include <bfd.h>
5019  EOF  _ACEOF
5020  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  rm -f conftest.$ac_objext
5021  { (eval echo configure:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5022  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    (eval $ac_compile) 2>&5
5023  if test -z "$ac_err"; then    ac_status=$?
5024    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025    eval "ac_cv_header_$ac_safe=yes"    (exit $ac_status); } &&
5026             { ac_try='test -s conftest.$ac_objext'
5027      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028      (eval $ac_try) 2>&5
5029      ac_status=$?
5030      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031      (exit $ac_status); }; }; then
5032      ac_header_compiler=yes
5033    else
5034      echo "$as_me: failed program was:" >&5
5035    cat conftest.$ac_ext >&5
5036    ac_header_compiler=no
5037    fi
5038    rm -f conftest.$ac_objext conftest.$ac_ext
5039    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5040    echo "${ECHO_T}$ac_header_compiler" >&6
5041    
5042    # Is the header present?
5043    echo "$as_me:$LINENO: checking bfd.h presence" >&5
5044    echo $ECHO_N "checking bfd.h presence... $ECHO_C" >&6
5045    cat >conftest.$ac_ext <<_ACEOF
5046    #line $LINENO "configure"
5047    #include "confdefs.h"
5048    #include <bfd.h>
5049    _ACEOF
5050    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5051      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5052      ac_status=$?
5053      egrep -v '^ *\+' conftest.er1 >conftest.err
5054      rm -f conftest.er1
5055      cat conftest.err >&5
5056      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057      (exit $ac_status); } >/dev/null; then
5058      if test -s conftest.err; then
5059        ac_cpp_err=$ac_c_preproc_warn_flag
5060      else
5061        ac_cpp_err=
5062      fi
5063  else  else
5064    echo "$ac_err" >&5    ac_cpp_err=yes
5065    echo "configure: failed program was:" >&5  fi
5066    if test -z "$ac_cpp_err"; then
5067      ac_header_preproc=yes
5068    else
5069      echo "$as_me: failed program was:" >&5
5070    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5071    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
5072  fi  fi
5073  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
5074    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5075    echo "${ECHO_T}$ac_header_preproc" >&6
5076    
5077    # So?  What about this header?
5078    case $ac_header_compiler:$ac_header_preproc in
5079      yes:no )
5080        { echo "$as_me:$LINENO: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&5
5081    echo "$as_me: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5082        { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
5083    echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;};;
5084      no:yes )
5085        { echo "$as_me:$LINENO: WARNING: bfd.h: present but cannot be compiled" >&5
5086    echo "$as_me: WARNING: bfd.h: present but cannot be compiled" >&2;}
5087        { echo "$as_me:$LINENO: WARNING: bfd.h: check for missing prerequisite headers?" >&5
5088    echo "$as_me: WARNING: bfd.h: check for missing prerequisite headers?" >&2;}
5089        { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
5090    echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;};;
5091    esac
5092    echo "$as_me:$LINENO: checking for bfd.h" >&5
5093    echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
5094    if test "${ac_cv_header_bfd_h+set}" = set; then
5095      echo $ECHO_N "(cached) $ECHO_C" >&6
5096    else
5097      ac_cv_header_bfd_h=$ac_header_preproc
5098    fi
5099    echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
5100    echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
5101    
5102  fi  fi
5103  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test $ac_cv_header_bfd_h = yes; then
5104    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5
5105    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
5106  echo "configure:2925: checking for bfd_init in -lbfd" >&5  if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then
5107  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  
5108  else  else
5109    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5110  LIBS="-lbfd -liberty $LIBS"  LIBS="-lbfd -liberty $LIBS"
5111  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5112  #line 2933 "configure"  #line $LINENO "configure"
5113  #include "confdefs.h"  #include "confdefs.h"
5114    
5115  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5116    #ifdef __cplusplus
5117    extern "C"
5118    #endif
5119  /* 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
5120      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5121  char bfd_init();  char bfd_init ();
5122    #ifdef F77_DUMMY_MAIN
5123  int main() {  #  ifdef __cplusplus
5124  bfd_init()       extern "C"
5125  ; return 0; }  #  endif
5126  EOF     int F77_DUMMY_MAIN() { return 1; }
5127  if { (eval echo configure:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
5128    rm -rf conftest*  int
5129    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
5130  else  {
5131    echo "configure: failed program was:" >&5  bfd_init ();
5132    cat conftest.$ac_ext >&5    ;
5133    rm -rf conftest*    return 0;
5134    eval "ac_cv_lib_$ac_lib_var=no"  }
5135  fi  _ACEOF
5136  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
5137  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138      (eval $ac_link) 2>&5
5139  fi    ac_status=$?
5140  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
5142             { ac_try='test -s conftest$ac_exeext'
5143      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144      (eval $ac_try) 2>&5
5145      ac_status=$?
5146      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147      (exit $ac_status); }; }; then
5148      ac_cv_lib_bfd_bfd_init=yes
5149    else
5150      echo "$as_me: failed program was:" >&5
5151    cat conftest.$ac_ext >&5
5152    ac_cv_lib_bfd_bfd_init=no
5153    fi
5154    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5155    LIBS=$ac_check_lib_save_LIBS
5156    fi
5157    echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_init" >&5
5158    echo "${ECHO_T}$ac_cv_lib_bfd_bfd_init" >&6
5159    if test $ac_cv_lib_bfd_bfd_init = yes; then
5160    #    #
5161                  # Old binutils appear to need CONST defined to const                  # Old binutils appear to need CONST defined to const
5162                  #                  #
5163                          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
5164  echo "configure:2963: checking if need to define CONST for bfd" >&5  echo $ECHO_N "checking if need to define CONST for bfd... $ECHO_C" >&6
5165                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
5166    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$as_me:$LINENO: result: cannot use bfd" >&5
5167    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5168  else  else
5169    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5170  #line 2968 "configure"  #line $LINENO "configure"
5171  #include "confdefs.h"  #include "confdefs.h"
5172  #define IN_GCC  #define IN_GCC
5173                                      #include <bfd.h>                                      #include <bfd.h>
5174                                      int main() { symbol_info t; return 0;}                                      int main() { symbol_info t; return 0;}
5175  EOF  _ACEOF
5176  if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5177  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5178    echo "$ac_t""no" 1>&6    (eval $ac_link) 2>&5
5179  else    ac_status=$?
5180    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181    cat conftest.$ac_ext >&5    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5182    rm -fr conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183    if test "$cross_compiling" = yes; then    (eval $ac_try) 2>&5
5184    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    ac_status=$?
5185      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186      (exit $ac_status); }; }; then
5187      echo "$as_me:$LINENO: result: no" >&5
5188    echo "${ECHO_T}no" >&6
5189    else
5190      echo "$as_me: program exited with status $ac_status" >&5
5191    echo "$as_me: failed program was:" >&5
5192    cat conftest.$ac_ext >&5
5193    ( exit $ac_status )
5194    if test "$cross_compiling" = yes; then
5195      echo "$as_me:$LINENO: result: cannot use bfd" >&5
5196    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5197  else  else
5198    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5199  #line 2985 "configure"  #line $LINENO "configure"
5200  #include "confdefs.h"  #include "confdefs.h"
5201  #define CONST const  #define CONST const
5202                                              #define IN_GCC                                              #define IN_GCC
5203                                              #include <bfd.h>                                              #include <bfd.h>
5204                                              int main() {symbol_info t; return 0;}                                              int main() {symbol_info t; return 0;}
5205  EOF  _ACEOF
5206  if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5207  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208    echo "$ac_t""yes" 1>&6    (eval $ac_link) 2>&5
5209                                          cat >> confdefs.h <<\EOF    ac_status=$?
5210      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5212      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213      (eval $ac_try) 2>&5
5214      ac_status=$?
5215      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216      (exit $ac_status); }; }; then
5217      echo "$as_me:$LINENO: result: yes" >&5
5218    echo "${ECHO_T}yes" >&6
5219                                            cat >>confdefs.h <<\_ACEOF
5220  #define NEED_CONST 1  #define NEED_CONST 1
5221  EOF  _ACEOF
5222    
5223  else  else
5224    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5225    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5226    rm -fr conftest*  cat conftest.$ac_ext >&5
5227    echo "$ac_t""cannot use bfd" 1>&6 exit 1;  ( exit $ac_status )
5228    echo "$as_me:$LINENO: result: cannot use bfd" >&5
5229    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5230  fi  fi
5231  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5232  fi  fi
   
5233  fi  fi
5234  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5235  fi  fi
5236    
                           
 else  
   echo "$ac_t""no" 1>&6  
5237  fi  fi
5238    
 else  
   echo "$ac_t""no" 1>&6  
5239  fi  fi
5240    
5241    
5242          cat >> confdefs.h <<\EOF  
5243            cat >>confdefs.h <<\_ACEOF
5244  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
5245  EOF  _ACEOF
5246    
5247    
5248  #  #
5249  # BFD boolean syntax  # BFD boolean syntax
5250  #  #
5251    
5252          echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for useable bfd_boolean" >&5
5253  echo "configure:3032: checking for useable bfd_boolean" >&5  echo $ECHO_N "checking for useable bfd_boolean... $ECHO_C" >&6
5254          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
5255    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
5256    echo "${ECHO_T}no" >&6
5257  else  else
5258    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5259  #line 3037 "configure"  #line $LINENO "configure"
5260  #include "confdefs.h"  #include "confdefs.h"
5261  #define IN_GCC  #define IN_GCC
5262                      #include <bfd.h>                      #include <bfd.h>
5263                      bfd_boolean foo() {return FALSE;}                      bfd_boolean foo() {return FALSE;}
5264                      int main() {return 0;}                      int main() {return 0;}
5265  EOF  _ACEOF
5266  if { (eval echo configure:3044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5267  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5268    echo "$ac_t""yes" 1>&6    (eval $ac_link) 2>&5
5269                  cat >> confdefs.h <<\EOF    ac_status=$?
5270      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5272      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273      (eval $ac_try) 2>&5
5274      ac_status=$?
5275      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276      (exit $ac_status); }; }; then
5277      echo "$as_me:$LINENO: result: yes" >&5
5278    echo "${ECHO_T}yes" >&6
5279                    cat >>confdefs.h <<\_ACEOF
5280  #define HAVE_BFD_BOOLEAN 1  #define HAVE_BFD_BOOLEAN 1
5281  EOF  _ACEOF
5282    
5283  else  else
5284    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5285    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5286    rm -fr conftest*  cat conftest.$ac_ext >&5
5287    echo "$ac_t""no" 1>&6  ( exit $ac_status )
5288    echo "$as_me:$LINENO: result: no" >&5
5289    echo "${ECHO_T}no" >&6
5290  fi  fi
5291  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5292  fi  fi
5293    
5294    
   
5295  #  #
5296  # FIXME: Need to workaround mingw before this point -- CM  # FIXME: Need to workaround mingw before this point -- CM
5297  #  #
# Line 3070  fi Line 5304  fi
5304                  else                  else
5305                     echo Guessing path to libbfd.a due to gcc bug                     echo Guessing path to libbfd.a due to gcc bug
5306                     TLIBS="$TLIBS /usr/lib/libbfd.a"                     TLIBS="$TLIBS /usr/lib/libbfd.a"
5307                  fi                    fi
5308                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then
5309                     TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a`"                     TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a`"
5310                  else                  else
5311                     echo Guessing path to libiberty.a due to gcc bug                     echo Guessing path to libiberty.a due to gcc bug
5312                     TLIBS="$TLIBS /usr/lib/libiberty.a"                     TLIBS="$TLIBS /usr/lib/libiberty.a"
5313                  fi                    fi
5314          else          else
5315                  TLIBS="$TLIBS -lbfd -liberty"                  TLIBS="$TLIBS -lbfd -liberty"
5316          fi          fi
# Line 3090  if test "$enable_locbfd" = "yes" ; then Line 5324  if test "$enable_locbfd" = "yes" ; then
5324          echo "#"          echo "#"
5325          echo "#"          echo "#"
5326          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..
5327  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "
5328          echo "#"          echo "#"
5329          echo "#"          echo "#"
5330          echo "#"          echo "#"
# Line 3104  if test "$enable_locbfd" = "yes" ; then Line 5338  if test "$enable_locbfd" = "yes" ; then
5338          echo "#"          echo "#"
5339          echo "#"          echo "#"
5340          cd binutils/bfd && chmod +x configure && ./configure && cd ../..          cd binutils/bfd && chmod +x configure && ./configure && cd ../..
5341  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "
5342          echo "#"          echo "#"
5343          echo "#"          echo "#"
5344          echo "#"          echo "#"
# Line 3112  if test "$enable_locbfd" = "yes" ; then Line 5346  if test "$enable_locbfd" = "yes" ; then
5346          echo "# ------------------------"          echo "# ------------------------"
5347          echo "#"          echo "#"
5348          TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"          TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"
5349          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
5350  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
5351  EOF  _ACEOF
5352    
5353          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"
5354            
5355  fi  fi
5356    
5357  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)
# Line 3126  fi Line 5360  fi
5360  # mechanism, in the PAGE macro.  This offset is subtracted from  # mechanism, in the PAGE macro.  This offset is subtracted from
5361  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
5362    
5363  echo $ac_n "checking size of long *""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for long *" >&5
5364  echo "configure:3131: checking size of long *" >&5  echo $ECHO_N "checking for long *... $ECHO_C" >&6
5365  if eval "test \"`echo '$''{'ac_cv_sizeof_long_p'+set}'`\" = set"; then  if test "${ac_cv_type_long_p+set}" = set; then
5366    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5367  else  else
5368      cat >conftest.$ac_ext <<_ACEOF
5369    #line $LINENO "configure"
5370    #include "confdefs.h"
5371    $ac_includes_default
5372    #ifdef F77_DUMMY_MAIN
5373    #  ifdef __cplusplus
5374         extern "C"
5375    #  endif
5376       int F77_DUMMY_MAIN() { return 1; }
5377    #endif
5378    int
5379    main ()
5380    {
5381    if ((long * *) 0)
5382      return 0;
5383    if (sizeof (long *))
5384      return 0;
5385      ;
5386      return 0;
5387    }
5388    _ACEOF
5389    rm -f conftest.$ac_objext
5390    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5391      (eval $ac_compile) 2>&5
5392      ac_status=$?
5393      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394      (exit $ac_status); } &&
5395             { ac_try='test -s conftest.$ac_objext'
5396      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397      (eval $ac_try) 2>&5
5398      ac_status=$?
5399      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400      (exit $ac_status); }; }; then
5401      ac_cv_type_long_p=yes
5402    else
5403      echo "$as_me: failed program was:" >&5
5404    cat conftest.$ac_ext >&5
5405    ac_cv_type_long_p=no
5406    fi
5407    rm -f conftest.$ac_objext conftest.$ac_ext
5408    fi
5409    echo "$as_me:$LINENO: result: $ac_cv_type_long_p" >&5
5410    echo "${ECHO_T}$ac_cv_type_long_p" >&6
5411    
5412    echo "$as_me:$LINENO: checking size of long *" >&5
5413    echo $ECHO_N "checking size of long *... $ECHO_C" >&6
5414    if test "${ac_cv_sizeof_long_p+set}" = set; then
5415      echo $ECHO_N "(cached) $ECHO_C" >&6
5416    else
5417      if test "$ac_cv_type_long_p" = yes; then
5418      # The cast to unsigned long works around a bug in the HP C Compiler
5419      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5420      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5421      # This bug is HP SR number 8606223364.
5422    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
5423    ac_cv_sizeof_long_p=0    # Depending upon the size, compute the lo and hi bounds.
5424    cat >conftest.$ac_ext <<_ACEOF
5425    #line $LINENO "configure"
5426    #include "confdefs.h"
5427    $ac_includes_default
5428    #ifdef F77_DUMMY_MAIN
5429    #  ifdef __cplusplus
5430         extern "C"
5431    #  endif
5432       int F77_DUMMY_MAIN() { return 1; }
5433    #endif
5434    int
5435    main ()
5436    {
5437    static int test_array [1 - 2 * !(((long) (sizeof (long *))) >= 0)];
5438    test_array [0] = 0
5439    
5440      ;
5441      return 0;
5442    }
5443    _ACEOF
5444    rm -f conftest.$ac_objext
5445    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446      (eval $ac_compile) 2>&5
5447      ac_status=$?
5448      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449      (exit $ac_status); } &&
5450             { ac_try='test -s conftest.$ac_objext'
5451      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452      (eval $ac_try) 2>&5
5453      ac_status=$?
5454      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455      (exit $ac_status); }; }; then
5456      ac_lo=0 ac_mid=0
5457      while :; do
5458        cat >conftest.$ac_ext <<_ACEOF
5459    #line $LINENO "configure"
5460    #include "confdefs.h"
5461    $ac_includes_default
5462    #ifdef F77_DUMMY_MAIN
5463    #  ifdef __cplusplus
5464         extern "C"
5465    #  endif
5466       int F77_DUMMY_MAIN() { return 1; }
5467    #endif
5468    int
5469    main ()
5470    {
5471    static int test_array [1 - 2 * !(((long) (sizeof (long *))) <= $ac_mid)];
5472    test_array [0] = 0
5473    
5474      ;
5475      return 0;
5476    }
5477    _ACEOF
5478    rm -f conftest.$ac_objext
5479    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5480      (eval $ac_compile) 2>&5
5481      ac_status=$?
5482      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483      (exit $ac_status); } &&
5484             { ac_try='test -s conftest.$ac_objext'
5485      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486      (eval $ac_try) 2>&5
5487      ac_status=$?
5488      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489      (exit $ac_status); }; }; then
5490      ac_hi=$ac_mid; break
5491    else
5492      echo "$as_me: failed program was:" >&5
5493    cat conftest.$ac_ext >&5
5494    ac_lo=`expr $ac_mid + 1`
5495                        if test $ac_lo -le $ac_mid; then
5496                          ac_lo= ac_hi=
5497                          break
5498                        fi
5499                        ac_mid=`expr 2 '*' $ac_mid + 1`
5500    fi
5501    rm -f conftest.$ac_objext conftest.$ac_ext
5502      done
5503  else  else
5504    cat > conftest.$ac_ext <<EOF    echo "$as_me: failed program was:" >&5
5505  #line 3139 "configure"  cat conftest.$ac_ext >&5
5506  #include "confdefs.h"  cat >conftest.$ac_ext <<_ACEOF
5507    #line $LINENO "configure"
5508    #include "confdefs.h"
5509    $ac_includes_default
5510    #ifdef F77_DUMMY_MAIN
5511    #  ifdef __cplusplus
5512         extern "C"
5513    #  endif
5514       int F77_DUMMY_MAIN() { return 1; }
5515    #endif
5516    int
5517    main ()
5518    {
5519    static int test_array [1 - 2 * !(((long) (sizeof (long *))) < 0)];
5520    test_array [0] = 0
5521    
5522      ;
5523      return 0;
5524    }
5525    _ACEOF
5526    rm -f conftest.$ac_objext
5527    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5528      (eval $ac_compile) 2>&5
5529      ac_status=$?
5530      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531      (exit $ac_status); } &&
5532             { ac_try='test -s conftest.$ac_objext'
5533      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534      (eval $ac_try) 2>&5
5535      ac_status=$?
5536      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537      (exit $ac_status); }; }; then
5538      ac_hi=-1 ac_mid=-1
5539      while :; do
5540        cat >conftest.$ac_ext <<_ACEOF
5541    #line $LINENO "configure"
5542    #include "confdefs.h"
5543    $ac_includes_default
5544    #ifdef F77_DUMMY_MAIN
5545    #  ifdef __cplusplus
5546         extern "C"
5547    #  endif
5548       int F77_DUMMY_MAIN() { return 1; }
5549    #endif
5550    int
5551    main ()
5552    {
5553    static int test_array [1 - 2 * !(((long) (sizeof (long *))) >= $ac_mid)];
5554    test_array [0] = 0
5555    
5556      ;
5557      return 0;
5558    }
5559    _ACEOF
5560    rm -f conftest.$ac_objext
5561    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562      (eval $ac_compile) 2>&5
5563      ac_status=$?
5564      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565      (exit $ac_status); } &&
5566             { ac_try='test -s conftest.$ac_objext'
5567      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568      (eval $ac_try) 2>&5
5569      ac_status=$?
5570      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571      (exit $ac_status); }; }; then
5572      ac_lo=$ac_mid; break
5573    else
5574      echo "$as_me: failed program was:" >&5
5575    cat conftest.$ac_ext >&5
5576    ac_hi=`expr '(' $ac_mid ')' - 1`
5577                           if test $ac_mid -le $ac_hi; then
5578                             ac_lo= ac_hi=
5579                             break
5580                           fi
5581                           ac_mid=`expr 2 '*' $ac_mid`
5582    fi
5583    rm -f conftest.$ac_objext conftest.$ac_ext
5584      done
5585    else
5586      echo "$as_me: failed program was:" >&5
5587    cat conftest.$ac_ext >&5
5588    ac_lo= ac_hi=
5589    fi
5590    rm -f conftest.$ac_objext conftest.$ac_ext
5591    fi
5592    rm -f conftest.$ac_objext conftest.$ac_ext
5593    # Binary search between lo and hi bounds.
5594    while test "x$ac_lo" != "x$ac_hi"; do
5595      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5596      cat >conftest.$ac_ext <<_ACEOF
5597    #line $LINENO "configure"
5598    #include "confdefs.h"
5599    $ac_includes_default
5600    #ifdef F77_DUMMY_MAIN
5601    #  ifdef __cplusplus
5602         extern "C"
5603    #  endif
5604       int F77_DUMMY_MAIN() { return 1; }
5605    #endif
5606    int
5607    main ()
5608    {
5609    static int test_array [1 - 2 * !(((long) (sizeof (long *))) <= $ac_mid)];
5610    test_array [0] = 0
5611    
5612      ;
5613      return 0;
5614    }
5615    _ACEOF
5616    rm -f conftest.$ac_objext
5617    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5618      (eval $ac_compile) 2>&5
5619      ac_status=$?
5620      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621      (exit $ac_status); } &&
5622             { ac_try='test -s conftest.$ac_objext'
5623      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624      (eval $ac_try) 2>&5
5625      ac_status=$?
5626      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627      (exit $ac_status); }; }; then
5628      ac_hi=$ac_mid
5629    else
5630      echo "$as_me: failed program was:" >&5
5631    cat conftest.$ac_ext >&5
5632    ac_lo=`expr '(' $ac_mid ')' + 1`
5633    fi
5634    rm -f conftest.$ac_objext conftest.$ac_ext
5635    done
5636    case $ac_lo in
5637    ?*) ac_cv_sizeof_long_p=$ac_lo;;
5638    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long *), 77" >&5
5639    echo "$as_me: error: cannot compute sizeof (long *), 77" >&2;}
5640       { (exit 1); exit 1; }; } ;;
5641    esac
5642    else
5643      if test "$cross_compiling" = yes; then
5644      { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5645    echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5646       { (exit 1); exit 1; }; }
5647    else
5648      cat >conftest.$ac_ext <<_ACEOF
5649    #line $LINENO "configure"
5650    #include "confdefs.h"
5651    $ac_includes_default
5652    long longval () { return (long) (sizeof (long *)); }
5653    unsigned long ulongval () { return (long) (sizeof (long *)); }
5654  #include <stdio.h>  #include <stdio.h>
5655  #include <sys/types.h>  #include <stdlib.h>
5656  main()  #ifdef F77_DUMMY_MAIN
5657    #  ifdef __cplusplus
5658         extern "C"
5659    #  endif
5660       int F77_DUMMY_MAIN() { return 1; }
5661    #endif
5662    int
5663    main ()
5664  {  {
5665    FILE *f=fopen("conftestval", "w");  
5666    if (!f) exit(1);    FILE *f = fopen ("conftest.val", "w");
5667    fprintf(f, "%d\n", sizeof(long *));    if (! f)
5668    exit(0);      exit (1);
5669      if (((long) (sizeof (long *))) < 0)
5670        {
5671          long i = longval ();
5672          if (i != ((long) (sizeof (long *))))
5673            exit (1);
5674          fprintf (f, "%ld\n", i);
5675        }
5676      else
5677        {
5678          unsigned long i = ulongval ();
5679          if (i != ((long) (sizeof (long *))))
5680            exit (1);
5681          fprintf (f, "%lu\n", i);
5682        }
5683      exit (ferror (f) || fclose (f) != 0);
5684    
5685      ;
5686      return 0;
5687  }  }
5688  EOF  _ACEOF
5689  if { (eval echo configure:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5690  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5691    ac_cv_sizeof_long_p=`cat conftestval`    (eval $ac_link) 2>&5
5692      ac_status=$?
5693      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5695      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696      (eval $ac_try) 2>&5
5697      ac_status=$?
5698      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699      (exit $ac_status); }; }; then
5700      ac_cv_sizeof_long_p=`cat conftest.val`
5701    else
5702      echo "$as_me: program exited with status $ac_status" >&5
5703    echo "$as_me: failed program was:" >&5
5704    cat conftest.$ac_ext >&5
5705    ( exit $ac_status )
5706    { { echo "$as_me:$LINENO: error: cannot compute sizeof (long *), 77" >&5
5707    echo "$as_me: error: cannot compute sizeof (long *), 77" >&2;}
5708       { (exit 1); exit 1; }; }
5709    fi
5710    rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5711    fi
5712    fi
5713    rm -f conftest.val
5714  else  else
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -fr conftest*  
5715    ac_cv_sizeof_long_p=0    ac_cv_sizeof_long_p=0
5716  fi  fi
 rm -fr conftest*  
 fi  
   
5717  fi  fi
5718  echo "$ac_t""$ac_cv_sizeof_long_p" 1>&6  echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_p" >&5
5719  cat >> confdefs.h <<EOF  echo "${ECHO_T}$ac_cv_sizeof_long_p" >&6
5720    cat >>confdefs.h <<_ACEOF
5721  #define SIZEOF_LONG_P $ac_cv_sizeof_long_p  #define SIZEOF_LONG_P $ac_cv_sizeof_long_p
5722  EOF  _ACEOF
5723    
5724    
5725    
5726    
5727  for ac_hdr in endian.h  for ac_header in endian.h
5728  do  do
5729  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5730  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
5731  echo "configure:3175: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
5732  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5733    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
5734      echo $ECHO_N "(cached) $ECHO_C" >&6
5735    fi
5736    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5737    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5738    else
5739      # Is the header compilable?
5740    echo "$as_me:$LINENO: checking $ac_header usability" >&5
5741    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5742    cat >conftest.$ac_ext <<_ACEOF
5743    #line $LINENO "configure"
5744    #include "confdefs.h"
5745    $ac_includes_default
5746    #include <$ac_header>
5747    _ACEOF
5748    rm -f conftest.$ac_objext
5749    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5750      (eval $ac_compile) 2>&5
5751      ac_status=$?
5752      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753      (exit $ac_status); } &&
5754             { ac_try='test -s conftest.$ac_objext'
5755      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756      (eval $ac_try) 2>&5
5757      ac_status=$?
5758      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759      (exit $ac_status); }; }; then
5760      ac_header_compiler=yes
5761    else
5762      echo "$as_me: failed program was:" >&5
5763    cat conftest.$ac_ext >&5
5764    ac_header_compiler=no
5765    fi
5766    rm -f conftest.$ac_objext conftest.$ac_ext
5767    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5768    echo "${ECHO_T}$ac_header_compiler" >&6
5769    
5770    # Is the header present?
5771    echo "$as_me:$LINENO: checking $ac_header presence" >&5
5772    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5773    cat >conftest.$ac_ext <<_ACEOF
5774    #line $LINENO "configure"
5775    #include "confdefs.h"
5776    #include <$ac_header>
5777    _ACEOF
5778    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5779      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5780      ac_status=$?
5781      egrep -v '^ *\+' conftest.er1 >conftest.err
5782      rm -f conftest.er1
5783      cat conftest.err >&5
5784      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785      (exit $ac_status); } >/dev/null; then
5786      if test -s conftest.err; then
5787        ac_cpp_err=$ac_c_preproc_warn_flag
5788      else
5789        ac_cpp_err=
5790      fi
5791  else  else
5792    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
5793  #line 3180 "configure"  fi
5794  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
5795  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3185: \"$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"  
5796  else  else
5797    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
5798    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5799    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
5800  fi  fi
5801  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
5802  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5803  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
5804    echo "$ac_t""yes" 1>&6  
5805      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
5806    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
5807  #define $ac_tr_hdr 1    yes:no )
5808  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5809   echo $ac_n "checking "endianness"""... $ac_c" 1>&6  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5810  echo "configure:3206: checking "endianness"" >&5      { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5811    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5812      no:yes )
5813        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5814    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5815        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5816    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5817        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5818    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5819    esac
5820    echo "$as_me:$LINENO: checking for $ac_header" >&5
5821    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5822    if eval "test \"\${$as_ac_Header+set}\" = set"; then
5823      echo $ECHO_N "(cached) $ECHO_C" >&6
5824    else
5825      eval "$as_ac_Header=$ac_header_preproc"
5826    fi
5827    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5828    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5829    
5830    fi
5831    if test `eval echo '${'$as_ac_Header'}'` = yes; then
5832      cat >>confdefs.h <<_ACEOF
5833    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5834    _ACEOF
5835     echo "$as_me:$LINENO: checking \"endianness\"" >&5
5836    echo $ECHO_N "checking \"endianness\"... $ECHO_C" >&6
5837          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
5838    echo "$ac_t""big" 1>&6    echo "$as_me:$LINENO: result: big" >&5
5839    echo "${ECHO_T}big" >&6
5840  else  else
5841    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5842  #line 3211 "configure"  #line $LINENO "configure"
5843  #include "confdefs.h"  #include "confdefs.h"
5844  #define __ARMEB__  #define __ARMEB__
5845                  #include <endian.h>                  #include <endian.h>
5846                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
5847  EOF  _ACEOF
5848  if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5849  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
5851      ac_status=$?
5852      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5854      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855      (eval $ac_try) 2>&5
5856      ac_status=$?
5857      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858      (exit $ac_status); }; }; then
5859      cat >>confdefs.h <<\_ACEOF
5860  #define LITTLE_END 1  #define LITTLE_END 1
5861  EOF  _ACEOF
5862   echo "$ac_t""little" 1>&6   echo "$as_me:$LINENO: result: little" >&5
5863  else  echo "${ECHO_T}little" >&6
5864    echo "configure: failed program was:" >&5  else
5865    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
5866    rm -fr conftest*  echo "$as_me: failed program was:" >&5
5867    echo "$ac_t""big" 1>&6  cat conftest.$ac_ext >&5
5868    ( exit $ac_status )
5869    echo "$as_me:$LINENO: result: big" >&5
5870    echo "${ECHO_T}big" >&6
5871  fi  fi
5872  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5873  fi  fi
   
 else  
   echo "$ac_t""no" 1>&6  
5874  fi  fi
5875    
5876  done  done
5877    
5878    
5879    
5880  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"finding DBEGIN\"" >&5
5881  echo "configure:3240: checking "finding DBEGIN"" >&5  echo $ECHO_N "checking \"finding DBEGIN\"... $ECHO_C" >&6
5882  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5883    dbegin=0    dbegin=0
5884  else  else
5885    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5886  #line 3245 "configure"  #line $LINENO "configure"
5887  #include "confdefs.h"  #include "confdefs.h"
5888  #include <stdio.h>  #include <stdio.h>
5889              #include <stdlib.h>              #include <stdlib.h>
# Line 3257  main() Line 5899  main()
5899    fclose(fp);    fclose(fp);
5900    return 0;    return 0;
5901  }  }
5902  EOF  _ACEOF
5903  if { (eval echo configure:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5904  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905      (eval $ac_link) 2>&5
5906      ac_status=$?
5907      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5909      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910      (eval $ac_try) 2>&5
5911      ac_status=$?
5912      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913      (exit $ac_status); }; }; then
5914    dbegin=`cat conftest1`    dbegin=`cat conftest1`
5915  else  else
5916    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5917    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5918    rm -fr conftest*  cat conftest.$ac_ext >&5
5919    dbegin=0  ( exit $ac_status )
5920    dbegin=0
5921  fi  fi
5922  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5923  fi  fi
5924    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
5925  #define DBEGIN $dbegin \  #define DBEGIN $dbegin \
5926  /* where data begins */  /* where data begins */
5927    
5928  EOF  _ACEOF
5929    
5930  echo "$ac_t""got $dbegin" 1>&6  echo "$as_me:$LINENO: result: got $dbegin" >&5
5931    echo "${ECHO_T}got $dbegin" >&6
5932    
5933    
5934  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"finding CSTACK_ADDRESS\"" >&5
5935  echo "configure:3284: checking "finding CSTACK_ADDRESS"" >&5  echo $ECHO_N "checking \"finding CSTACK_ADDRESS\"... $ECHO_C" >&6
5936  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5937    cstack_address=0    cstack_address=0
5938  else  else
5939    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5940  #line 3289 "configure"  #line $LINENO "configure"
5941  #include "confdefs.h"  #include "confdefs.h"
5942  #include <stdio.h>  #include <stdio.h>
5943  main()  main()
# Line 3296  main() Line 5948  main()
5948    fclose(fp);    fclose(fp);
5949    return 0;    return 0;
5950  }  }
5951  EOF  _ACEOF
5952  if { (eval echo configure:3301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5953  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954      (eval $ac_link) 2>&5
5955      ac_status=$?
5956      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5958      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959      (eval $ac_try) 2>&5
5960      ac_status=$?
5961      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962      (exit $ac_status); }; }; then
5963    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
5964  else  else
5965    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5966    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5967    rm -fr conftest*  cat conftest.$ac_ext >&5
5968    cstack_address=0  ( exit $ac_status )
5969    cstack_address=0
5970  fi  fi
5971  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5972  fi  fi
5973    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
5974  #define CSTACK_ADDRESS $cstack_address \  #define CSTACK_ADDRESS $cstack_address \
5975    
5976  EOF  _ACEOF
5977    
5978  echo "$ac_t""got $cstack_address" 1>&6  echo "$as_me:$LINENO: result: got $cstack_address" >&5
5979    echo "${ECHO_T}got $cstack_address" >&6
5980    
5981    
5982    
5983  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"sizeof long long int\"" >&5
5984  echo "configure:3323: checking "sizeof long long int"" >&5  echo $ECHO_N "checking \"sizeof long long int\"... $ECHO_C" >&6
5985  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5986    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
5987    echo "${ECHO_T}no" >&6
5988    
5989  else  else
5990    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5991  #line 3329 "configure"  #line $LINENO "configure"
5992  #include "confdefs.h"  #include "confdefs.h"
5993  #include <stdio.h>  #include <stdio.h>
5994  main()  main()
# Line 3334  main() Line 5997  main()
5997    return 1;    return 1;
5998  }  }
5999    
6000  EOF  _ACEOF
6001  if { (eval echo configure:3339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6002  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6003    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
6004      ac_status=$?
6005      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6007      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008      (eval $ac_try) 2>&5
6009      ac_status=$?
6010      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011      (exit $ac_status); }; }; then
6012      cat >>confdefs.h <<\_ACEOF
6013  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
6014  EOF  _ACEOF
6015    
6016  echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: yes" >&5
6017    echo "${ECHO_T}yes" >&6
6018  else  else
6019    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6020    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6021    rm -fr conftest*  cat conftest.$ac_ext >&5
6022    echo "$ac_t""no" 1>&6  ( exit $ac_status )
6023    echo "$as_me:$LINENO: result: no" >&5
6024    echo "${ECHO_T}no" >&6
6025  fi  fi
6026  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6027  fi  fi
6028    
6029    
6030    
   
6031  # readline  # readline
6032  # Check whether --enable-readline or --disable-readline was given.  # Check whether --enable-readline or --disable-readline was given.
6033  if test "${enable_readline+set}" = set; then  if test "${enable_readline+set}" = set; then
6034    enableval="$enable_readline"    enableval="$enable_readline"
6035    :  
6036  else  else
6037    enable_readline="yes"    enable_readline="yes"
6038  fi  fi;
   
6039    
6040  # ansi lisp  # ansi lisp
6041  # Check whether --enable-ansi or --disable-ansi was given.  # Check whether --enable-ansi or --disable-ansi was given.
6042  if test "${enable_ansi+set}" = set; then  if test "${enable_ansi+set}" = set; then
6043    enableval="$enable_ansi"    enableval="$enable_ansi"
6044    :  
6045  else  else
6046    enable_ansi="no"    enable_ansi="no"
6047  fi  fi;
   
6048    
6049  if test "$enable_ansi" = "yes" ; then  if test "$enable_ansi" = "yes" ; then
6050          SYSTEM=ansi_gcl          SYSTEM=ansi_gcl
6051          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
6052  #define ANSI_COMMON_LISP 1  #define ANSI_COMMON_LISP 1
6053  EOF  _ACEOF
6054    
6055  else  else
6056          SYSTEM=gcl          SYSTEM=gcl
# Line 3389  FLISP="saved_$SYSTEM" Line 6061  FLISP="saved_$SYSTEM"
6061    
6062    
6063  # pagewidth  # pagewidth
6064  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for pagewidth" >&5
6065  echo "configure:3394: checking for pagewidth" >&5  echo $ECHO_N "checking for pagewidth... $ECHO_C" >&6
6066  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6067    PAGEWIDTH=0    PAGEWIDTH=0
6068  else  else
6069    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6070  #line 3399 "configure"  #line $LINENO "configure"
6071  #include "confdefs.h"  #include "confdefs.h"
6072  #include <stdio.h>  #include <stdio.h>
6073              #include <unistd.h>              #include <unistd.h>
6074  int main() {size_t i=getpagesize(),j;  int main() {size_t i=getpagesize(),j;
6075              FILE *fp=fopen("conftest1","w");              FILE *fp=fopen("conftest1","w");
6076              for (j=0;i>>=1;j++);              for (j=0;i>>=1;j++);
6077              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
6078              return 0;}              return 0;}
6079  EOF  _ACEOF
6080  if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6081  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6082      (eval $ac_link) 2>&5
6083      ac_status=$?
6084      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6086      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087      (eval $ac_try) 2>&5
6088      ac_status=$?
6089      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090      (exit $ac_status); }; }; then
6091    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
6092  else  else
6093    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6094    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6095    rm -fr conftest*  cat conftest.$ac_ext >&5
6096    PAGEWIDTH=0  ( exit $ac_status )
6097  fi  PAGEWIDTH=0
6098  rm -fr conftest*  fi
6099  fi  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6100    fi
6101  echo "$ac_t""$PAGEWIDTH" 1>&6  echo "$as_me:$LINENO: result: $PAGEWIDTH" >&5
6102  cat >> confdefs.h <<EOF  echo "${ECHO_T}$PAGEWIDTH" >&6
6103    cat >>confdefs.h <<_ACEOF
6104  #define PAGEWIDTH $PAGEWIDTH  #define PAGEWIDTH $PAGEWIDTH
6105  EOF  _ACEOF
6106    
6107    
6108    
# Line 3429  EOF Line 6111  EOF
6111    
6112    
6113  # Check if Posix compliant getcwd exists, if not we'll use getwd.  # Check if Posix compliant getcwd exists, if not we'll use getwd.
6114    
6115  for ac_func in getcwd  for ac_func in getcwd
6116  do  do
6117  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6118  echo "configure:3436: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
6119  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6120    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
6121      echo $ECHO_N "(cached) $ECHO_C" >&6
6122  else  else
6123    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6124  #line 3441 "configure"  #line $LINENO "configure"
6125  #include "confdefs.h"  #include "confdefs.h"
6126  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6127      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
6128  #include <assert.h>  #include <assert.h>
6129  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6130    #ifdef __cplusplus
6131    extern "C"
6132    #endif
6133  /* 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
6134      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6135  char $ac_func();  char $ac_func ();
6136    char (*f) ();
6137  int main() {  
6138    #ifdef F77_DUMMY_MAIN
6139    #  ifdef __cplusplus
6140         extern "C"
6141    #  endif
6142       int F77_DUMMY_MAIN() { return 1; }
6143    #endif
6144    int
6145    main ()
6146    {
6147  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6148      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6149      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6150  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6151  choke me  choke me
6152  #else  #else
6153  $ac_func();  f = $ac_func;
6154  #endif  #endif
6155    
6156  ; return 0; }    ;
6157  EOF    return 0;
6158  if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6159    rm -rf conftest*  _ACEOF
6160    eval "ac_cv_func_$ac_func=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6161  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6162    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6163    cat conftest.$ac_ext >&5    ac_status=$?
6164    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165    eval "ac_cv_func_$ac_func=no"    (exit $ac_status); } &&
6166  fi           { ac_try='test -s conftest$ac_exeext'
6167  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168  fi    (eval $ac_try) 2>&5
6169      ac_status=$?
6170      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171      (exit $ac_status); }; }; then
6172      eval "$as_ac_var=yes"
6173    else
6174      echo "$as_me: failed program was:" >&5
6175    cat conftest.$ac_ext >&5
6176    eval "$as_ac_var=no"
6177    fi
6178    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6179    fi
6180    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6181    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6182    if test `eval echo '${'$as_ac_var'}'` = yes; then
6183      cat >>confdefs.h <<_ACEOF
6184    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6185    _ACEOF
6186    
 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  
6187  fi  fi
6188  done  done
6189    
6190    
6191  for ac_func in getwd  for ac_func in getwd
6192  do  do
6193  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6194  echo "configure:3491: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
6195  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6196    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
6197      echo $ECHO_N "(cached) $ECHO_C" >&6
6198  else  else
6199    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6200  #line 3496 "configure"  #line $LINENO "configure"
6201  #include "confdefs.h"  #include "confdefs.h"
6202  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6203      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
6204  #include <assert.h>  #include <assert.h>
6205  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6206    #ifdef __cplusplus
6207    extern "C"
6208    #endif
6209  /* 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
6210      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6211  char $ac_func();  char $ac_func ();
6212    char (*f) ();
6213  int main() {  
6214    #ifdef F77_DUMMY_MAIN
6215    #  ifdef __cplusplus
6216         extern "C"
6217    #  endif
6218       int F77_DUMMY_MAIN() { return 1; }
6219    #endif
6220    int
6221    main ()
6222    {
6223  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6224      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6225      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6226  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6227  choke me  choke me
6228  #else  #else
6229  $ac_func();  f = $ac_func;
6230  #endif  #endif
6231    
6232  ; return 0; }    ;
6233  EOF    return 0;
6234  if { (eval echo configure:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6235    rm -rf conftest*  _ACEOF
6236    eval "ac_cv_func_$ac_func=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6237  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6238    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6239    cat conftest.$ac_ext >&5    ac_status=$?
6240    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241    eval "ac_cv_func_$ac_func=no"    (exit $ac_status); } &&
6242  fi           { ac_try='test -s conftest$ac_exeext'
6243  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244  fi    (eval $ac_try) 2>&5
6245      ac_status=$?
6246      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247      (exit $ac_status); }; }; then
6248      eval "$as_ac_var=yes"
6249    else
6250      echo "$as_me: failed program was:" >&5
6251    cat conftest.$ac_ext >&5
6252    eval "$as_ac_var=no"
6253    fi
6254    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6255    fi
6256    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6257    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6258    if test `eval echo '${'$as_ac_var'}'` = yes; then
6259      cat >>confdefs.h <<_ACEOF
6260    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6261    _ACEOF
6262    
 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  
6263  fi  fi
6264  done  done
6265    
6266  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for uname" >&5
6267  echo "configure:3544: checking for uname" >&5  echo $ECHO_N "checking for uname... $ECHO_C" >&6
6268  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if test "${ac_cv_func_uname+set}" = set; then
6269    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6270  else  else
6271    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6272  #line 3549 "configure"  #line $LINENO "configure"
6273  #include "confdefs.h"  #include "confdefs.h"
6274  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6275      which can conflict with char uname(); below.  */      which can conflict with char uname (); below.  */
6276  #include <assert.h>  #include <assert.h>
6277  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6278    #ifdef __cplusplus
6279    extern "C"
6280    #endif
6281  /* 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
6282      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6283  char uname();  char uname ();
6284    char (*f) ();
6285  int main() {  
6286    #ifdef F77_DUMMY_MAIN
6287    #  ifdef __cplusplus
6288         extern "C"
6289    #  endif
6290       int F77_DUMMY_MAIN() { return 1; }
6291    #endif
6292    int
6293    main ()
6294    {
6295  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6296      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6297      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6298  #if defined (__stub_uname) || defined (__stub___uname)  #if defined (__stub_uname) || defined (__stub___uname)
6299  choke me  choke me
6300  #else  #else
6301  uname();  f = uname;
6302  #endif  #endif
6303    
6304  ; return 0; }    ;
6305  EOF    return 0;
6306  if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6307    rm -rf conftest*  _ACEOF
6308    eval "ac_cv_func_uname=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6309  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6310    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6311    cat conftest.$ac_ext >&5    ac_status=$?
6312    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313    eval "ac_cv_func_uname=no"    (exit $ac_status); } &&
6314  fi           { ac_try='test -s conftest$ac_exeext'
6315  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316  fi    (eval $ac_try) 2>&5
6317      ac_status=$?
6318  if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6320      ac_cv_func_uname=yes
6321    else
6322      echo "$as_me: failed program was:" >&5
6323    cat conftest.$ac_ext >&5
6324    ac_cv_func_uname=no
6325    fi
6326    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6327    fi
6328    echo "$as_me:$LINENO: result: $ac_cv_func_uname" >&5
6329    echo "${ECHO_T}$ac_cv_func_uname" >&6
6330    if test $ac_cv_func_uname = yes; then
6331    :    :
6332  else  else
6333    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
6334  #define NO_UNAME 1  #define NO_UNAME 1
6335  EOF  _ACEOF
6336    
6337  fi  fi
6338    
6339  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday" >&5
6340  echo "configure:3596: checking for gettimeofday" >&5  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
6341  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_gettimeofday+set}" = set; then
6342    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6343  else  else
6344    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6345  #line 3601 "configure"  #line $LINENO "configure"
6346  #include "confdefs.h"  #include "confdefs.h"
6347  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6348      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.  */
6349  #include <assert.h>  #include <assert.h>
6350  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6351    #ifdef __cplusplus
6352    extern "C"
6353    #endif
6354  /* 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
6355      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6356  char gettimeofday();  char gettimeofday ();
6357    char (*f) ();
6358  int main() {  
6359    #ifdef F77_DUMMY_MAIN
6360    #  ifdef __cplusplus
6361         extern "C"
6362    #  endif
6363       int F77_DUMMY_MAIN() { return 1; }
6364    #endif
6365    int
6366    main ()
6367    {
6368  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6369      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6370      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6371  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
6372  choke me  choke me
6373  #else  #else
6374  gettimeofday();  f = gettimeofday;
6375  #endif  #endif
6376    
6377  ; return 0; }    ;
6378  EOF    return 0;
6379  if { (eval echo configure:3624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6380    rm -rf conftest*  _ACEOF
6381    eval "ac_cv_func_gettimeofday=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6382  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6383    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6384    cat conftest.$ac_ext >&5    ac_status=$?
6385    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386    eval "ac_cv_func_gettimeofday=no"    (exit $ac_status); } &&
6387  fi           { ac_try='test -s conftest$ac_exeext'
6388  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389  fi    (eval $ac_try) 2>&5
6390      ac_status=$?
6391  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6393      ac_cv_func_gettimeofday=yes
6394    else
6395      echo "$as_me: failed program was:" >&5
6396    cat conftest.$ac_ext >&5
6397    ac_cv_func_gettimeofday=no
6398    fi
6399    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6400    fi
6401    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
6402    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
6403    if test $ac_cv_func_gettimeofday = yes; then
6404    :    :
6405  else  else
6406    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
6407  #define NO_GETTOD 1  #define NO_GETTOD 1
6408  EOF  _ACEOF
6409    
6410  fi  fi
6411    
6412    
6413    
6414  for ac_hdr in sys/ioctl.h  
6415    for ac_header in sys/ioctl.h
6416  do  do
6417  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6418  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6419  echo "configure:3653: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
6420  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6421    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6422      echo $ECHO_N "(cached) $ECHO_C" >&6
6423    fi
6424    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6425    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6426    else
6427      # Is the header compilable?
6428    echo "$as_me:$LINENO: checking $ac_header usability" >&5
6429    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6430    cat >conftest.$ac_ext <<_ACEOF
6431    #line $LINENO "configure"
6432    #include "confdefs.h"
6433    $ac_includes_default
6434    #include <$ac_header>
6435    _ACEOF
6436    rm -f conftest.$ac_objext
6437    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6438      (eval $ac_compile) 2>&5
6439      ac_status=$?
6440      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441      (exit $ac_status); } &&
6442             { ac_try='test -s conftest.$ac_objext'
6443      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444      (eval $ac_try) 2>&5
6445      ac_status=$?
6446      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447      (exit $ac_status); }; }; then
6448      ac_header_compiler=yes
6449    else
6450      echo "$as_me: failed program was:" >&5
6451    cat conftest.$ac_ext >&5
6452    ac_header_compiler=no
6453    fi
6454    rm -f conftest.$ac_objext conftest.$ac_ext
6455    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6456    echo "${ECHO_T}$ac_header_compiler" >&6
6457    
6458    # Is the header present?
6459    echo "$as_me:$LINENO: checking $ac_header presence" >&5
6460    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6461    cat >conftest.$ac_ext <<_ACEOF
6462    #line $LINENO "configure"
6463    #include "confdefs.h"
6464    #include <$ac_header>
6465    _ACEOF
6466    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468      ac_status=$?
6469      egrep -v '^ *\+' conftest.er1 >conftest.err
6470      rm -f conftest.er1
6471      cat conftest.err >&5
6472      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473      (exit $ac_status); } >/dev/null; then
6474      if test -s conftest.err; then
6475        ac_cpp_err=$ac_c_preproc_warn_flag
6476      else
6477        ac_cpp_err=
6478      fi
6479  else  else
6480    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
6481  #line 3658 "configure"  fi
6482  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
6483  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3663: \"$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"  
6484  else  else
6485    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
6486    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6487    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
6488  fi  fi
6489  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
6490    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6491      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
6492    cat >> confdefs.h <<EOF  
6493  #define $ac_tr_hdr 1  # So?  What about this header?
6494  EOF  case $ac_header_compiler:$ac_header_preproc in
6495      yes:no )
6496        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6497    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6498        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6499    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6500      no:yes )
6501        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6502    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6503        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6504    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6505        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6506    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6507    esac
6508    echo "$as_me:$LINENO: checking for $ac_header" >&5
6509    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6510    if eval "test \"\${$as_ac_Header+set}\" = set"; then
6511      echo $ECHO_N "(cached) $ECHO_C" >&6
6512  else  else
6513    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
6514    fi
6515    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6516    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6517    
6518  fi  fi
6519    if test `eval echo '${'$as_ac_Header'}'` = yes; then
6520      cat >>confdefs.h <<_ACEOF
6521    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6522    _ACEOF
6523    
6524    fi
6525    
6526  done  done
6527    
6528    
# Line 3698  done Line 6538  done
6538  #          declare it.  #          declare it.
6539  #--------------------------------------------------------------------  #--------------------------------------------------------------------
6540    
6541  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for BSDgettimeofday" >&5
6542  echo "configure:3703: checking for BSDgettimeofday" >&5  echo $ECHO_N "checking for BSDgettimeofday... $ECHO_C" >&6
6543  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_BSDgettimeofday+set}" = set; then
6544    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6545  else  else
6546    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6547  #line 3708 "configure"  #line $LINENO "configure"
6548  #include "confdefs.h"  #include "confdefs.h"
6549  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6550      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday (); below.  */
6551  #include <assert.h>  #include <assert.h>
6552  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6553    #ifdef __cplusplus
6554    extern "C"
6555    #endif
6556  /* 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
6557      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6558  char BSDgettimeofday();  char BSDgettimeofday ();
6559    char (*f) ();
6560  int main() {  
6561    #ifdef F77_DUMMY_MAIN
6562    #  ifdef __cplusplus
6563         extern "C"
6564    #  endif
6565       int F77_DUMMY_MAIN() { return 1; }
6566    #endif
6567    int
6568    main ()
6569    {
6570  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6571      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6572      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6573  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
6574  choke me  choke me
6575  #else  #else
6576  BSDgettimeofday();  f = BSDgettimeofday;
6577  #endif  #endif
6578    
6579  ; return 0; }    ;
6580  EOF    return 0;
6581  if { (eval echo configure:3731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6582    rm -rf conftest*  _ACEOF
6583    eval "ac_cv_func_BSDgettimeofday=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6584  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6585    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6586    cat conftest.$ac_ext >&5    ac_status=$?
6587    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588    eval "ac_cv_func_BSDgettimeofday=no"    (exit $ac_status); } &&
6589  fi           { ac_try='test -s conftest$ac_exeext'
6590  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591  fi    (eval $ac_try) 2>&5
6592      ac_status=$?
6593  if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6595    cat >> confdefs.h <<\EOF    ac_cv_func_BSDgettimeofday=yes
6596    else
6597      echo "$as_me: failed program was:" >&5
6598    cat conftest.$ac_ext >&5
6599    ac_cv_func_BSDgettimeofday=no
6600    fi
6601    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6602    fi
6603    echo "$as_me:$LINENO: result: $ac_cv_func_BSDgettimeofday" >&5
6604    echo "${ECHO_T}$ac_cv_func_BSDgettimeofday" >&6
6605    if test $ac_cv_func_BSDgettimeofday = yes; then
6606      cat >>confdefs.h <<\_ACEOF
6607  #define HAVE_BSDGETTIMEOFDAY 1  #define HAVE_BSDGETTIMEOFDAY 1
6608  EOF  _ACEOF
6609    
6610  else  else
6611    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for gettimeofday" >&5
6612  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
6613  echo "configure:3752: checking for gettimeofday" >&5  if test "${ac_cv_func_gettimeofday+set}" = set; then
6614  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  
6615  else  else
6616    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6617  #line 3757 "configure"  #line $LINENO "configure"
6618  #include "confdefs.h"  #include "confdefs.h"
6619  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6620      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.  */
6621  #include <assert.h>  #include <assert.h>
6622  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6623    #ifdef __cplusplus
6624    extern "C"
6625    #endif
6626  /* 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
6627      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6628  char gettimeofday();  char gettimeofday ();
6629    char (*f) ();
6630  int main() {  
6631    #ifdef F77_DUMMY_MAIN
6632    #  ifdef __cplusplus
6633         extern "C"
6634    #  endif
6635       int F77_DUMMY_MAIN() { return 1; }
6636    #endif
6637    int
6638    main ()
6639    {
6640  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6641      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6642      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6643  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
6644  choke me  choke me
6645  #else  #else
6646  gettimeofday();  f = gettimeofday;
6647  #endif  #endif
6648    
6649  ; return 0; }    ;
6650  EOF    return 0;
6651  if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6652    rm -rf conftest*  _ACEOF
6653    eval "ac_cv_func_gettimeofday=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6654  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6655    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6656    cat conftest.$ac_ext >&5    ac_status=$?
6657    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658    eval "ac_cv_func_gettimeofday=no"    (exit $ac_status); } &&
6659  fi           { ac_try='test -s conftest$ac_exeext'
6660  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661  fi    (eval $ac_try) 2>&5
6662      ac_status=$?
6663  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6665      ac_cv_func_gettimeofday=yes
6666    else
6667      echo "$as_me: failed program was:" >&5
6668    cat conftest.$ac_ext >&5
6669    ac_cv_func_gettimeofday=no
6670    fi
6671    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6672    fi
6673    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
6674    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
6675    if test $ac_cv_func_gettimeofday = yes; then
6676    :    :
6677  else  else
6678    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
6679  #define NO_GETTOD 1  #define NO_GETTOD 1
6680  EOF  _ACEOF
6681    
6682  fi  fi
6683    
6684  fi  fi
6685    
6686    
6687  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday declaration" >&5
6688  echo "configure:3807: checking for gettimeofday declaration" >&5  echo $ECHO_N "checking for gettimeofday declaration... $ECHO_C" >&6
6689    
6690  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6691  #line 3810 "configure"  #line $LINENO "configure"
6692  #include "confdefs.h"  #include "confdefs.h"
6693  #include <sys/time.h>  #include <sys/time.h>
6694  EOF  
6695    _ACEOF
6696  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6697    egrep "gettimeofday" >/dev/null 2>&1; then    egrep "gettimeofday" >/dev/null 2>&1; then
6698    rm -rf conftest*    echo "$as_me:$LINENO: result: present" >&5
6699    echo "$ac_t""present" 1>&6  echo "${ECHO_T}present" >&6
6700  else  else
6701    rm -rf conftest*    echo "$as_me:$LINENO: result: missing" >&5
6702    echo "$ac_t""missing" 1>&6  echo "${ECHO_T}missing" >&6
6703                   cat >> confdefs.h <<\EOF                   cat >>confdefs.h <<\_ACEOF
6704  #define GETTOD_NOT_DECLARED 1  #define GETTOD_NOT_DECLARED 1
6705  EOF  _ACEOF
6706    
6707  fi  fi
6708  rm -f conftest*  rm -f conftest*
6709    
6710    
6711    
6712  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sin in -lm" >&5
6713  echo "configure:3831: checking for sin in -lm" >&5  echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6714  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_m_sin+set}" = set; then
6715  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  
6716  else  else
6717    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
6718  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
6719  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6720  #line 3839 "configure"  #line $LINENO "configure"
6721  #include "confdefs.h"  #include "confdefs.h"
6722    
6723  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6724    #ifdef __cplusplus
6725    extern "C"
6726    #endif
6727  /* 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
6728      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6729  char sin();  char sin ();
6730    #ifdef F77_DUMMY_MAIN
6731  int main() {  #  ifdef __cplusplus
6732  sin()       extern "C"
6733  ; return 0; }  #  endif
6734  EOF     int F77_DUMMY_MAIN() { return 1; }
6735  if { (eval echo configure:3850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
6736    rm -rf conftest*  int
6737    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
6738  else  {
6739    echo "configure: failed program was:" >&5  sin ();
6740    cat conftest.$ac_ext >&5    ;
6741    rm -rf conftest*    return 0;
6742    eval "ac_cv_lib_$ac_lib_var=no"  }
6743  fi  _ACEOF
6744  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
6745  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6746      (eval $ac_link) 2>&5
6747  fi    ac_status=$?
6748  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
6750             { ac_try='test -s conftest$ac_exeext'
6751      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752      (eval $ac_try) 2>&5
6753      ac_status=$?
6754      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755      (exit $ac_status); }; }; then
6756      ac_cv_lib_m_sin=yes
6757    else
6758      echo "$as_me: failed program was:" >&5
6759    cat conftest.$ac_ext >&5
6760    ac_cv_lib_m_sin=no
6761    fi
6762    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6763    LIBS=$ac_check_lib_save_LIBS
6764    fi
6765    echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6766    echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6767    if test $ac_cv_lib_m_sin = yes; then
6768    LIBS="${LIBS} -lm"    LIBS="${LIBS} -lm"
6769  else  else
6770    echo "$ac_t""no" 1>&6    true
 true  
6771  fi  fi
6772    
6773  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lmingwex" >&5
6774  echo "configure:3872: checking for main in -lmingwex" >&5  echo $ECHO_N "checking for main in -lmingwex... $ECHO_C" >&6
6775  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_mingwex_main+set}" = set; then
6776  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  
6777  else  else
6778    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
6779  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
6780  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6781  #line 3880 "configure"  #line $LINENO "configure"
6782  #include "confdefs.h"  #include "confdefs.h"
6783    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3887: \"$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"  
6784    
6785  fi  #ifdef F77_DUMMY_MAIN
6786  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
6787    echo "$ac_t""yes" 1>&6       extern "C"
6788    #  endif
6789       int F77_DUMMY_MAIN() { return 1; }
6790    #endif
6791    int
6792    main ()
6793    {
6794    main ();
6795      ;
6796      return 0;
6797    }
6798    _ACEOF
6799    rm -f conftest.$ac_objext conftest$ac_exeext
6800    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6801      (eval $ac_link) 2>&5
6802      ac_status=$?
6803      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804      (exit $ac_status); } &&
6805             { ac_try='test -s conftest$ac_exeext'
6806      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807      (eval $ac_try) 2>&5
6808      ac_status=$?
6809      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810      (exit $ac_status); }; }; then
6811      ac_cv_lib_mingwex_main=yes
6812    else
6813      echo "$as_me: failed program was:" >&5
6814    cat conftest.$ac_ext >&5
6815    ac_cv_lib_mingwex_main=no
6816    fi
6817    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6818    LIBS=$ac_check_lib_save_LIBS
6819    fi
6820    echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_main" >&5
6821    echo "${ECHO_T}$ac_cv_lib_mingwex_main" >&6
6822    if test $ac_cv_lib_mingwex_main = yes; then
6823    LIBS="${LIBS} -lmingwex"    LIBS="${LIBS} -lmingwex"
6824  else  else
6825    echo "$ac_t""no" 1>&6    true
 true  
6826  fi  fi
6827    
6828  # AC_CHECK_LIB(japi,j_start,LIBS="${LIBS} -ljapi -lwsock32",true)  # AC_CHECK_LIB(japi,j_start,LIBS="${LIBS} -ljapi -lwsock32",true)
6829  EXTRA_LOBJS=  EXTRA_LOBJS=
6830  if test "$try_japi" = "yes" ; then  if test "$try_japi" = "yes" ; then
6831     for ac_hdr in japi.h  
6832    for ac_header in japi.h
6833  do  do
6834  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6835  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6836  echo "configure:3915: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
6837  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6838    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6839      echo $ECHO_N "(cached) $ECHO_C" >&6
6840    fi
6841    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6842    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6843    else
6844      # Is the header compilable?
6845    echo "$as_me:$LINENO: checking $ac_header usability" >&5
6846    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6847    cat >conftest.$ac_ext <<_ACEOF
6848    #line $LINENO "configure"
6849    #include "confdefs.h"
6850    $ac_includes_default
6851    #include <$ac_header>
6852    _ACEOF
6853    rm -f conftest.$ac_objext
6854    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855      (eval $ac_compile) 2>&5
6856      ac_status=$?
6857      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858      (exit $ac_status); } &&
6859             { ac_try='test -s conftest.$ac_objext'
6860      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861      (eval $ac_try) 2>&5
6862      ac_status=$?
6863      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864      (exit $ac_status); }; }; then
6865      ac_header_compiler=yes
6866    else
6867      echo "$as_me: failed program was:" >&5
6868    cat conftest.$ac_ext >&5
6869    ac_header_compiler=no
6870    fi
6871    rm -f conftest.$ac_objext conftest.$ac_ext
6872    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6873    echo "${ECHO_T}$ac_header_compiler" >&6
6874    
6875    # Is the header present?
6876    echo "$as_me:$LINENO: checking $ac_header presence" >&5
6877    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6878    cat >conftest.$ac_ext <<_ACEOF
6879    #line $LINENO "configure"
6880    #include "confdefs.h"
6881    #include <$ac_header>
6882    _ACEOF
6883    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6884      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6885      ac_status=$?
6886      egrep -v '^ *\+' conftest.er1 >conftest.err
6887      rm -f conftest.er1
6888      cat conftest.err >&5
6889      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890      (exit $ac_status); } >/dev/null; then
6891      if test -s conftest.err; then
6892        ac_cpp_err=$ac_c_preproc_warn_flag
6893      else
6894        ac_cpp_err=
6895      fi
6896  else  else
6897    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
6898  #line 3920 "configure"  fi
6899  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
6900  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3925: \"$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"  
6901  else  else
6902    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
6903    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6904    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
6905  fi  fi
6906  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
6907    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6908      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
6909    cat >> confdefs.h <<EOF  
6910  #define $ac_tr_hdr 1  # So?  What about this header?
6911  EOF  case $ac_header_compiler:$ac_header_preproc in
6912   cat >> confdefs.h <<\EOF    yes:no )
6913        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6914    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6915        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6916    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6917      no:yes )
6918        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6919    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6920        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6921    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6922        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6923    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6924    esac
6925    echo "$as_me:$LINENO: checking for $ac_header" >&5
6926    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6927    if eval "test \"\${$as_ac_Header+set}\" = set"; then
6928      echo $ECHO_N "(cached) $ECHO_C" >&6
6929    else
6930      eval "$as_ac_Header=$ac_header_preproc"
6931    fi
6932    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6933    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6934    
6935    fi
6936    if test `eval echo '${'$as_ac_Header'}'` = yes; then
6937      cat >>confdefs.h <<_ACEOF
6938    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6939    _ACEOF
6940     cat >>confdefs.h <<\_ACEOF
6941  #define HAVE_JAPI_H 1  #define HAVE_JAPI_H 1
6942  EOF  _ACEOF
6943    
6944                                   EXTRA_LOBJS="${EXTRA_LOBJS} japi.o"                                   EXTRA_LOBJS="${EXTRA_LOBJS} japi.o"
6945                                   LIBS="${LIBS} -ljapi -lwsock32"                                   LIBS="${LIBS} -ljapi -lwsock32"
 else  
   echo "$ac_t""no" 1>&6  
6946  fi  fi
6947    
6948  done  done
6949    
6950  fi  fi
6951    
6952  # Should really find a way to check for prototypes, but this  # Should really find a way to check for prototypes, but this
6953  # basically works for now.  CM  # basically works for now.  CM
6954  #  #
6955  for ac_hdr in math.h  
6956    for ac_header in math.h
6957  do  do
6958  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6959  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6960  echo "configure:3965: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
6961  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6962    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6963      echo $ECHO_N "(cached) $ECHO_C" >&6
6964    fi
6965    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6966    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6967    else
6968      # Is the header compilable?
6969    echo "$as_me:$LINENO: checking $ac_header usability" >&5
6970    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6971    cat >conftest.$ac_ext <<_ACEOF
6972    #line $LINENO "configure"
6973    #include "confdefs.h"
6974    $ac_includes_default
6975    #include <$ac_header>
6976    _ACEOF
6977    rm -f conftest.$ac_objext
6978    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979      (eval $ac_compile) 2>&5
6980      ac_status=$?
6981      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982      (exit $ac_status); } &&
6983             { ac_try='test -s conftest.$ac_objext'
6984      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985      (eval $ac_try) 2>&5
6986      ac_status=$?
6987      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988      (exit $ac_status); }; }; then
6989      ac_header_compiler=yes
6990    else
6991      echo "$as_me: failed program was:" >&5
6992    cat conftest.$ac_ext >&5
6993    ac_header_compiler=no
6994    fi
6995    rm -f conftest.$ac_objext conftest.$ac_ext
6996    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6997    echo "${ECHO_T}$ac_header_compiler" >&6
6998    
6999    # Is the header present?
7000    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7001    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7002    cat >conftest.$ac_ext <<_ACEOF
7003    #line $LINENO "configure"
7004    #include "confdefs.h"
7005    #include <$ac_header>
7006    _ACEOF
7007    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7008      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7009      ac_status=$?
7010      egrep -v '^ *\+' conftest.er1 >conftest.err
7011      rm -f conftest.er1
7012      cat conftest.err >&5
7013      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014      (exit $ac_status); } >/dev/null; then
7015      if test -s conftest.err; then
7016        ac_cpp_err=$ac_c_preproc_warn_flag
7017      else
7018        ac_cpp_err=
7019      fi
7020  else  else
7021    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7022  #line 3970 "configure"  fi
7023  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7024  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3975: \"$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"  
7025  else  else
7026    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7027    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7028    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
7029  fi  fi
7030  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
7031  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7032  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
7033    echo "$ac_t""yes" 1>&6  
7034      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
7035    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
7036  #define $ac_tr_hdr 1    yes:no )
7037  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7038   cat >> confdefs.h <<\EOF  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7039        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7040    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7041      no:yes )
7042        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7043    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7044        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7045    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7046        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7047    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7048    esac
7049    echo "$as_me:$LINENO: checking for $ac_header" >&5
7050    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7051    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7052      echo $ECHO_N "(cached) $ECHO_C" >&6
7053    else
7054      eval "$as_ac_Header=$ac_header_preproc"
7055    fi
7056    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7057    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7058    
7059    fi
7060    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7061      cat >>confdefs.h <<_ACEOF
7062    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7063    _ACEOF
7064     cat >>confdefs.h <<\_ACEOF
7065  #define HAVE_MATH_H 1  #define HAVE_MATH_H 1
7066  EOF  _ACEOF
7067    
 else  
   echo "$ac_t""no" 1>&6  
7068  fi  fi
7069    
7070  done  done
7071    
7072    
7073  #  #
7074  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM
7075  #  #
7076  for ac_hdr in values.h  
7077    for ac_header in values.h
7078  do  do
7079  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7080  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7081  echo "configure:4012: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7082  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7083    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7084      echo $ECHO_N "(cached) $ECHO_C" >&6
7085    fi
7086    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7087    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7088    else
7089      # Is the header compilable?
7090    echo "$as_me:$LINENO: checking $ac_header usability" >&5
7091    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7092    cat >conftest.$ac_ext <<_ACEOF
7093    #line $LINENO "configure"
7094    #include "confdefs.h"
7095    $ac_includes_default
7096    #include <$ac_header>
7097    _ACEOF
7098    rm -f conftest.$ac_objext
7099    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100      (eval $ac_compile) 2>&5
7101      ac_status=$?
7102      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103      (exit $ac_status); } &&
7104             { ac_try='test -s conftest.$ac_objext'
7105      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106      (eval $ac_try) 2>&5
7107      ac_status=$?
7108      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109      (exit $ac_status); }; }; then
7110      ac_header_compiler=yes
7111    else
7112      echo "$as_me: failed program was:" >&5
7113    cat conftest.$ac_ext >&5
7114    ac_header_compiler=no
7115    fi
7116    rm -f conftest.$ac_objext conftest.$ac_ext
7117    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7118    echo "${ECHO_T}$ac_header_compiler" >&6
7119    
7120    # Is the header present?
7121    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7122    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7123    cat >conftest.$ac_ext <<_ACEOF
7124    #line $LINENO "configure"
7125    #include "confdefs.h"
7126    #include <$ac_header>
7127    _ACEOF
7128    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7129      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7130      ac_status=$?
7131      egrep -v '^ *\+' conftest.er1 >conftest.err
7132      rm -f conftest.er1
7133      cat conftest.err >&5
7134      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135      (exit $ac_status); } >/dev/null; then
7136      if test -s conftest.err; then
7137        ac_cpp_err=$ac_c_preproc_warn_flag
7138      else
7139        ac_cpp_err=
7140      fi
7141  else  else
7142    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7143  #line 4017 "configure"  fi
7144  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7145  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4022: \"$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"  
7146  else  else
7147    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7148    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7149    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
7150  fi  fi
7151  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
7152    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7153      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
7154    cat >> confdefs.h <<EOF  
7155  #define $ac_tr_hdr 1  # So?  What about this header?
7156  EOF  case $ac_header_compiler:$ac_header_preproc in
7157   cat >> confdefs.h <<\EOF    yes:no )
7158        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7159    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7160        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7161    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7162      no:yes )
7163        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7164    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7165        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7166    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7167        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7168    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7169    esac
7170    echo "$as_me:$LINENO: checking for $ac_header" >&5
7171    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7172    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7173      echo $ECHO_N "(cached) $ECHO_C" >&6
7174    else
7175      eval "$as_ac_Header=$ac_header_preproc"
7176    fi
7177    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7178    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7179    
7180    fi
7181    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7182      cat >>confdefs.h <<_ACEOF
7183    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7184    _ACEOF
7185     cat >>confdefs.h <<\_ACEOF
7186  #define HAVE_VALUES_H 1  #define HAVE_VALUES_H 1
7187  EOF  _ACEOF
7188    
 else  
   echo "$ac_t""no" 1>&6  
7189  fi  fi
7190    
7191  done  done
7192    
7193    
7194  #  #
7195  # 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
7196  #  #
7197  for ac_hdr in float.h  
7198    for ac_header in float.h
7199  do  do
7200  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7201  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7202  echo "configure:4059: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7203  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7204    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7205      echo $ECHO_N "(cached) $ECHO_C" >&6
7206    fi
7207    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7208    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7209    else
7210      # Is the header compilable?
7211    echo "$as_me:$LINENO: checking $ac_header usability" >&5
7212    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7213    cat >conftest.$ac_ext <<_ACEOF
7214    #line $LINENO "configure"
7215    #include "confdefs.h"
7216    $ac_includes_default
7217    #include <$ac_header>
7218    _ACEOF
7219    rm -f conftest.$ac_objext
7220    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7221      (eval $ac_compile) 2>&5
7222      ac_status=$?
7223      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224      (exit $ac_status); } &&
7225             { ac_try='test -s conftest.$ac_objext'
7226      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227      (eval $ac_try) 2>&5
7228      ac_status=$?
7229      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230      (exit $ac_status); }; }; then
7231      ac_header_compiler=yes
7232    else
7233      echo "$as_me: failed program was:" >&5
7234    cat conftest.$ac_ext >&5
7235    ac_header_compiler=no
7236    fi
7237    rm -f conftest.$ac_objext conftest.$ac_ext
7238    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7239    echo "${ECHO_T}$ac_header_compiler" >&6
7240    
7241    # Is the header present?
7242    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7243    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7244    cat >conftest.$ac_ext <<_ACEOF
7245    #line $LINENO "configure"
7246    #include "confdefs.h"
7247    #include <$ac_header>
7248    _ACEOF
7249    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7250      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7251      ac_status=$?
7252      egrep -v '^ *\+' conftest.er1 >conftest.err
7253      rm -f conftest.er1
7254      cat conftest.err >&5
7255      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256      (exit $ac_status); } >/dev/null; then
7257      if test -s conftest.err; then
7258        ac_cpp_err=$ac_c_preproc_warn_flag
7259      else
7260        ac_cpp_err=
7261      fi
7262  else  else
7263    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7264  #line 4064 "configure"  fi
7265  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7266  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4069: \"$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"  
7267  else  else
7268    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7269    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7270    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
7271  fi  fi
7272  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
7273    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7274      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
7275    cat >> confdefs.h <<EOF  
7276  #define $ac_tr_hdr 1  # So?  What about this header?
7277  EOF  case $ac_header_compiler:$ac_header_preproc in
7278   cat >> confdefs.h <<\EOF    yes:no )
7279        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7280    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7281        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7282    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7283      no:yes )
7284        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7285    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7286        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7287    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7288        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7289    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7290    esac
7291    echo "$as_me:$LINENO: checking for $ac_header" >&5
7292    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7293    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7294      echo $ECHO_N "(cached) $ECHO_C" >&6
7295    else
7296      eval "$as_ac_Header=$ac_header_preproc"
7297    fi
7298    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7299    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7300    
7301    fi
7302    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7303      cat >>confdefs.h <<_ACEOF
7304    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7305    _ACEOF
7306     cat >>confdefs.h <<\_ACEOF
7307  #define HAVE_FLOAT_H 1  #define HAVE_FLOAT_H 1
7308  EOF  _ACEOF
7309    
 else  
   echo "$ac_t""no" 1>&6  
7310  fi  fi
7311    
7312  done  done
7313    
7314    
# Line 4100  done Line 7317  done
7317  # a more comprehensive later, i.e. checking that the fpclass  # a more comprehensive later, i.e. checking that the fpclass
7318  # test makes sense.  CM  # test makes sense.  CM
7319  #  #
7320  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for isnormal" >&5
7321  echo "configure:4105: checking for isnormal" >&5  echo $ECHO_N "checking for isnormal... $ECHO_C" >&6
7322  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7323    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$as_me:$LINENO: result: no" >&5
7324    echo "${ECHO_T}no" >&6
7325  else  else
7326    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7327  #line 4110 "configure"  #line $LINENO "configure"
7328  #include "confdefs.h"  #include "confdefs.h"
7329  #define _GNU_SOURCE  #define _GNU_SOURCE
7330              #include <math.h>              #include <math.h>
# Line 4114  else Line 7332  else
7332                  float f;                  float f;
7333                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
7334                  }                  }
7335  EOF  _ACEOF
7336  if { (eval echo configure:4119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7337  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7338    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7339      ac_status=$?
7340      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7342      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343      (eval $ac_try) 2>&5
7344      ac_status=$?
7345      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346      (exit $ac_status); }; }; then
7347      cat >>confdefs.h <<\_ACEOF
7348  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
7349  EOF  _ACEOF
7350   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7351  else  echo "${ECHO_T}yes" >&6
7352    echo "configure: failed program was:" >&5  else
7353    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
7354    rm -fr conftest*  echo "$as_me: failed program was:" >&5
7355    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6  cat conftest.$ac_ext >&5
7356  echo "configure:4130: checking for fpclass in ieeefp.h" >&5  ( exit $ac_status )
7357    echo "$as_me:$LINENO: checking for fpclass in ieeefp.h" >&5
7358    echo $ECHO_N "checking for fpclass in ieeefp.h... $ECHO_C" >&6
7359                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
7360    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
7361    echo "${ECHO_T}no" >&6
7362  else  else
7363    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7364  #line 4135 "configure"  #line $LINENO "configure"
7365  #include "confdefs.h"  #include "confdefs.h"
7366  #include <ieeefp.h>  #include <ieeefp.h>
7367                              int main() {                              int main() {
7368                                  float f;                                  float f;
7369                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
7370                                  }                                  }
7371  EOF  _ACEOF
7372  if { (eval echo configure:4143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7373  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7374    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7375      ac_status=$?
7376      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7378      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379      (eval $ac_try) 2>&5
7380      ac_status=$?
7381      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382      (exit $ac_status); }; }; then
7383      cat >>confdefs.h <<\_ACEOF
7384  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
7385  EOF  _ACEOF
7386   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7387    echo "${ECHO_T}yes" >&6
7388  else  else
7389    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7390    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7391    rm -fr conftest*  cat conftest.$ac_ext >&5
7392    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6  ( exit $ac_status )
7393    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
7394    echo "${ECHO_T}no" >&6
7395  fi  fi
7396  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7397  fi  fi
7398    
           
7399  fi  fi
7400  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7401  fi  fi
7402    
7403    echo "$as_me:$LINENO: checking for isfinite" >&5
7404  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ECHO_N "checking for isfinite... $ECHO_C" >&6
 echo "configure:4165: checking for isfinite" >&5  
7405  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7406    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$as_me:$LINENO: result: no" >&5
7407    echo "${ECHO_T}no" >&6
7408  else  else
7409    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7410  #line 4170 "configure"  #line $LINENO "configure"
7411  #include "confdefs.h"  #include "confdefs.h"
7412  #define _GNU_SOURCE  #define _GNU_SOURCE
7413              #include <math.h>              #include <math.h>
# Line 4174  else Line 7415  else
7415                  float f;                  float f;
7416                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
7417                  }                  }
7418  EOF  _ACEOF
7419  if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7420  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7421    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7422      ac_status=$?
7423      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7425      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426      (eval $ac_try) 2>&5
7427      ac_status=$?
7428      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429      (exit $ac_status); }; }; then
7430      cat >>confdefs.h <<\_ACEOF
7431  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
7432  EOF  _ACEOF
7433   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7434  else  echo "${ECHO_T}yes" >&6
7435    echo "configure: failed program was:" >&5  else
7436    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
7437    rm -fr conftest*  echo "$as_me: failed program was:" >&5
7438    echo $ac_n "checking for finite()""... $ac_c" 1>&6  cat conftest.$ac_ext >&5
7439  echo "configure:4190: checking for finite()" >&5  ( exit $ac_status )
7440    echo "$as_me:$LINENO: checking for finite()" >&5
7441    echo $ECHO_N "checking for finite()... $ECHO_C" >&6
7442                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
7443    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
7444    echo "${ECHO_T}no" >&6
7445  else  else
7446    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7447  #line 4195 "configure"  #line $LINENO "configure"
7448  #include "confdefs.h"  #include "confdefs.h"
7449  #include <math.h>  #include <math.h>
7450                              #include <ieeefp.h>                              #include <ieeefp.h>
# Line 4199  else Line 7452  else
7452                                  float f;                                  float f;
7453                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
7454                                  }                                  }
7455  EOF  _ACEOF
7456  if { (eval echo configure:4204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7457  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7458    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7459      ac_status=$?
7460      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7462      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463      (eval $ac_try) 2>&5
7464      ac_status=$?
7465      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466      (exit $ac_status); }; }; then
7467      cat >>confdefs.h <<\_ACEOF
7468  #define HAVE_FINITE 1  #define HAVE_FINITE 1
7469  EOF  _ACEOF
7470   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7471    echo "${ECHO_T}yes" >&6
7472  else  else
7473    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7474    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7475    rm -fr conftest*  cat conftest.$ac_ext >&5
7476    HAVE_FINITE=0 echo "$ac_t""no" 1>&6  ( exit $ac_status )
7477    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
7478    echo "${ECHO_T}no" >&6
7479  fi  fi
7480  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7481  fi  fi
7482    
           
7483  fi  fi
7484  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7485  fi  fi
7486    
7487    
7488    
   
7489  #--------------------------------------------------------------------  #--------------------------------------------------------------------
7490  #       Check for the existence of the -lsocket and -lnsl libraries.  #       Check for the existence of the -lsocket and -lnsl libraries.
7491  #       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 4240  fi Line 7503  fi
7503  #          To get around this problem, check for both libraries together  #          To get around this problem, check for both libraries together
7504  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
7505  #--------------------------------------------------------------------  #--------------------------------------------------------------------
7506  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sockets" >&5
7507  echo "configure:4245: checking for sockets" >&5  echo $ECHO_N "checking for sockets... $ECHO_C" >&6
7508  tcl_checkBoth=0  tcl_checkBoth=0
7509  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for connect" >&5
7510  echo "configure:4248: checking for connect" >&5  echo $ECHO_N "checking for connect... $ECHO_C" >&6
7511  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if test "${ac_cv_func_connect+set}" = set; then
7512    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7513  else  else
7514    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7515  #line 4253 "configure"  #line $LINENO "configure"
7516  #include "confdefs.h"  #include "confdefs.h"
7517  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7518      which can conflict with char connect(); below.  */      which can conflict with char connect (); below.  */
7519  #include <assert.h>  #include <assert.h>
7520  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7521    #ifdef __cplusplus
7522    extern "C"
7523    #endif
7524  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
7525      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7526  char connect();  char connect ();
7527    char (*f) ();
7528  int main() {  
7529    #ifdef F77_DUMMY_MAIN
7530    #  ifdef __cplusplus
7531         extern "C"
7532    #  endif
7533       int F77_DUMMY_MAIN() { return 1; }
7534    #endif
7535    int
7536    main ()
7537    {
7538  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7539      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7540      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7541  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
7542  choke me  choke me
7543  #else  #else
7544  connect();  f = connect;
7545  #endif  #endif
7546    
7547  ; return 0; }    ;
7548  EOF    return 0;
7549  if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
7550    rm -rf conftest*  _ACEOF
7551    eval "ac_cv_func_connect=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
7552  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
7554    cat conftest.$ac_ext >&5    ac_status=$?
7555    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556    eval "ac_cv_func_connect=no"    (exit $ac_status); } &&
7557  fi           { ac_try='test -s conftest$ac_exeext'
7558  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559  fi    (eval $ac_try) 2>&5
7560      ac_status=$?
7561  if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
7563      ac_cv_func_connect=yes
7564    else
7565      echo "$as_me: failed program was:" >&5
7566    cat conftest.$ac_ext >&5
7567    ac_cv_func_connect=no
7568    fi
7569    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7570    fi
7571    echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7572    echo "${ECHO_T}$ac_cv_func_connect" >&6
7573    if test $ac_cv_func_connect = yes; then
7574    tcl_checkSocket=0    tcl_checkSocket=0
7575  else  else
7576    echo "$ac_t""no" 1>&6    tcl_checkSocket=1
 tcl_checkSocket=1  
7577  fi  fi
7578    
7579  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
7580      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for main in -lsocket" >&5
7581  echo "configure:4298: checking for main in -lsocket" >&5  echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
7582  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_main+set}" = set; then
7583  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  
7584  else  else
7585    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
7586  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
7587  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
7588  #line 4306 "configure"  #line $LINENO "configure"
7589  #include "confdefs.h"  #include "confdefs.h"
7590    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:4313: \"$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"  
7591    
7592  fi  #ifdef F77_DUMMY_MAIN
7593  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
7594    echo "$ac_t""yes" 1>&6       extern "C"
7595    #  endif
7596       int F77_DUMMY_MAIN() { return 1; }
7597    #endif
7598    int
7599    main ()
7600    {
7601    main ();
7602      ;
7603      return 0;
7604    }
7605    _ACEOF
7606    rm -f conftest.$ac_objext conftest$ac_exeext
7607    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7608      (eval $ac_link) 2>&5
7609      ac_status=$?
7610      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611      (exit $ac_status); } &&
7612             { ac_try='test -s conftest$ac_exeext'
7613      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614      (eval $ac_try) 2>&5
7615      ac_status=$?
7616      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617      (exit $ac_status); }; }; then
7618      ac_cv_lib_socket_main=yes
7619    else
7620      echo "$as_me: failed program was:" >&5
7621    cat conftest.$ac_ext >&5
7622    ac_cv_lib_socket_main=no
7623    fi
7624    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7625    LIBS=$ac_check_lib_save_LIBS
7626    fi
7627    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
7628    echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
7629    if test $ac_cv_lib_socket_main = yes; then
7630    TLIBS="$TLIBS -lsocket"    TLIBS="$TLIBS -lsocket"
7631  else  else
7632    echo "$ac_t""no" 1>&6    tcl_checkBoth=1
 tcl_checkBoth=1  
7633  fi  fi
7634    
7635  fi  fi
# Line 4336  fi Line 7638  fi
7638  if test "$tcl_checkBoth" = 1; then  if test "$tcl_checkBoth" = 1; then
7639      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
7640      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
7641      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for accept" >&5
7642  echo "configure:4341: checking for accept" >&5  echo $ECHO_N "checking for accept... $ECHO_C" >&6
7643  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if test "${ac_cv_func_accept+set}" = set; then
7644    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7645  else  else
7646    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7647  #line 4346 "configure"  #line $LINENO "configure"
7648  #include "confdefs.h"  #include "confdefs.h"
7649  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7650      which can conflict with char accept(); below.  */      which can conflict with char accept (); below.  */
7651  #include <assert.h>  #include <assert.h>
7652  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7653    #ifdef __cplusplus
7654    extern "C"
7655    #endif
7656  /* 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
7657      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7658  char accept();  char accept ();
7659    char (*f) ();
7660  int main() {  
7661    #ifdef F77_DUMMY_MAIN
7662    #  ifdef __cplusplus
7663         extern "C"
7664    #  endif
7665       int F77_DUMMY_MAIN() { return 1; }
7666    #endif
7667    int
7668    main ()
7669    {
7670  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7671      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7672      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7673  #if defined (__stub_accept) || defined (__stub___accept)  #if defined (__stub_accept) || defined (__stub___accept)
7674  choke me  choke me
7675  #else  #else
7676  accept();  f = accept;
7677  #endif  #endif
7678    
7679  ; return 0; }    ;
7680  EOF    return 0;
7681  if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
7682    rm -rf conftest*  _ACEOF
7683    eval "ac_cv_func_accept=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
7684  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7685    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
7686    cat conftest.$ac_ext >&5    ac_status=$?
7687    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688    eval "ac_cv_func_accept=no"    (exit $ac_status); } &&
7689  fi           { ac_try='test -s conftest$ac_exeext'
7690  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691  fi    (eval $ac_try) 2>&5
7692      ac_status=$?
7693  if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
7695      ac_cv_func_accept=yes
7696    else
7697      echo "$as_me: failed program was:" >&5
7698    cat conftest.$ac_ext >&5
7699    ac_cv_func_accept=no
7700    fi
7701    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7702    fi
7703    echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
7704    echo "${ECHO_T}$ac_cv_func_accept" >&6
7705    if test $ac_cv_func_accept = yes; then
7706    tcl_checkNsl=0    tcl_checkNsl=0
7707  else  else
7708    echo "$ac_t""no" 1>&6    TLIBS=$tk_oldLibs
 TLIBS=$tk_oldLibs  
7709  fi  fi
7710    
7711  fi  fi
7712  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gethostbyname" >&5
7713  echo "configure:4391: checking for gethostbyname" >&5  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7714  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if test "${ac_cv_func_gethostbyname+set}" = set; then
7715    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7716  else  else
7717    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7718  #line 4396 "configure"  #line $LINENO "configure"
7719  #include "confdefs.h"  #include "confdefs.h"
7720  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7721      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname (); below.  */
7722  #include <assert.h>  #include <assert.h>
7723  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7724    #ifdef __cplusplus
7725    extern "C"
7726    #endif
7727  /* 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
7728      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7729  char gethostbyname();  char gethostbyname ();
7730    char (*f) ();
7731  int main() {  
7732    #ifdef F77_DUMMY_MAIN
7733    #  ifdef __cplusplus
7734         extern "C"
7735    #  endif
7736       int F77_DUMMY_MAIN() { return 1; }
7737    #endif
7738    int
7739    main ()
7740    {
7741  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7742      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7743      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7744  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7745  choke me  choke me
7746  #else  #else
7747  gethostbyname();  f = gethostbyname;
7748  #endif  #endif
7749    
7750  ; return 0; }    ;
7751  EOF    return 0;
7752  if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
7753    rm -rf conftest*  _ACEOF
7754    eval "ac_cv_func_gethostbyname=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
7755  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7756    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
7757    cat conftest.$ac_ext >&5    ac_status=$?
7758    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759    eval "ac_cv_func_gethostbyname=no"    (exit $ac_status); } &&
7760  fi           { ac_try='test -s conftest$ac_exeext'
7761  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762  fi    (eval $ac_try) 2>&5
7763      ac_status=$?
7764  if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
7766      ac_cv_func_gethostbyname=yes
7767    else
7768      echo "$as_me: failed program was:" >&5
7769    cat conftest.$ac_ext >&5
7770    ac_cv_func_gethostbyname=no
7771    fi
7772    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7773    fi
7774    echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7775    echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7776    if test $ac_cv_func_gethostbyname = yes; then
7777    :    :
7778  else  else
7779    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for main in -lnsl" >&5
7780  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
7781  echo "configure:4437: checking for main in -lnsl" >&5  if test "${ac_cv_lib_nsl_main+set}" = set; then
7782  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  
7783  else  else
7784    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
7785  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
7786  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
7787  #line 4445 "configure"  #line $LINENO "configure"
7788  #include "confdefs.h"  #include "confdefs.h"
7789    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:4452: \"$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"  
7790    
7791  fi  #ifdef F77_DUMMY_MAIN
7792  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
7793    echo "$ac_t""yes" 1>&6       extern "C"
7794    #  endif
7795       int F77_DUMMY_MAIN() { return 1; }
7796    #endif
7797    int
7798    main ()
7799    {
7800    main ();
7801      ;
7802      return 0;
7803    }
7804    _ACEOF
7805    rm -f conftest.$ac_objext conftest$ac_exeext
7806    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7807      (eval $ac_link) 2>&5
7808      ac_status=$?
7809      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810      (exit $ac_status); } &&
7811             { ac_try='test -s conftest$ac_exeext'
7812      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813      (eval $ac_try) 2>&5
7814      ac_status=$?
7815      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816      (exit $ac_status); }; }; then
7817      ac_cv_lib_nsl_main=yes
7818    else
7819      echo "$as_me: failed program was:" >&5
7820    cat conftest.$ac_ext >&5
7821    ac_cv_lib_nsl_main=no
7822    fi
7823    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7824    LIBS=$ac_check_lib_save_LIBS
7825    fi
7826    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
7827    echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
7828    if test $ac_cv_lib_nsl_main = yes; then
7829    TLIBS="$TLIBS -lnsl"    TLIBS="$TLIBS -lnsl"
 else  
   echo "$ac_t""no" 1>&6  
7830  fi  fi
7831    
7832  fi  fi
7833    
7834    
7835  if test "$enable_readline" = "yes" ; then  if test "$enable_readline" = "yes" ; then
7836          echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for main in -lreadline" >&5
7837  echo "configure:4477: checking for main in -lreadline" >&5  echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
7838  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_readline_main+set}" = set; then
7839  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  
7840  else  else
7841    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
7842  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
7843  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
7844  #line 4485 "configure"  #line $LINENO "configure"
7845  #include "confdefs.h"  #include "confdefs.h"
7846    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:4492: \"$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"  
7847    
7848  fi  #ifdef F77_DUMMY_MAIN
7849  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
7850    echo "$ac_t""yes" 1>&6       extern "C"
7851    cat >> confdefs.h <<\EOF  #  endif
7852       int F77_DUMMY_MAIN() { return 1; }
7853    #endif
7854    int
7855    main ()
7856    {
7857    main ();
7858      ;
7859      return 0;
7860    }
7861    _ACEOF
7862    rm -f conftest.$ac_objext conftest$ac_exeext
7863    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7864      (eval $ac_link) 2>&5
7865      ac_status=$?
7866      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867      (exit $ac_status); } &&
7868             { ac_try='test -s conftest$ac_exeext'
7869      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870      (eval $ac_try) 2>&5
7871      ac_status=$?
7872      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873      (exit $ac_status); }; }; then
7874      ac_cv_lib_readline_main=yes
7875    else
7876      echo "$as_me: failed program was:" >&5
7877    cat conftest.$ac_ext >&5
7878    ac_cv_lib_readline_main=no
7879    fi
7880    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7881    LIBS=$ac_check_lib_save_LIBS
7882    fi
7883    echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
7884    echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
7885    if test $ac_cv_lib_readline_main = yes; then
7886      cat >>confdefs.h <<\_ACEOF
7887  #define HAVE_READLINE 1  #define HAVE_READLINE 1
7888  EOF  _ACEOF
7889    
7890                  TLIBS="$TLIBS -lreadline -lncurses"                  TLIBS="$TLIBS -lreadline -lncurses"
7891                  RL_OBJS=readline.o                  RL_OBJS=readline.o
7892                  RL_LIB=lsp/readline.o                  RL_LIB=lsp/readline.o
 else  
   echo "$ac_t""no" 1>&6  
7893  fi  fi
7894    
7895  fi  fi
# Line 4519  fi Line 7897  fi
7897    
7898    
7899    
7900  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
7901  echo "configure:4524: checking For network code for nsocket.c" >&5  echo $ECHO_N "checking For network code for nsocket.c... $ECHO_C" >&6
7902  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
7903  #line 4526 "configure"  #line $LINENO "configure"
7904  #include "confdefs.h"  #include "confdefs.h"
7905    
7906  #include <sys/time.h>  #include <sys/time.h>
# Line 4533  cat > conftest.$ac_ext <<EOF Line 7911  cat > conftest.$ac_ext <<EOF
7911  #include <fcntl.h>  #include <fcntl.h>
7912  #include <stdio.h>  #include <stdio.h>
7913    
7914  /************* for the sockets ******************/  /************* for the sockets ******************/
7915  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */
7916  #ifndef NO_UNAME  #ifndef NO_UNAME
7917  #   include <sys/utsname.h>     /* uname system call. */  #   include <sys/utsname.h>     /* uname system call. */
# Line 4542  cat > conftest.$ac_ext <<EOF Line 7920  cat > conftest.$ac_ext <<EOF
7920  #include <arpa/inet.h>          /* inet_ntoa() */  #include <arpa/inet.h>          /* inet_ntoa() */
7921  #include <netdb.h>              /* gethostbyname() */  #include <netdb.h>              /* gethostbyname() */
7922    
7923  int main() {  #ifdef F77_DUMMY_MAIN
7924    #  ifdef __cplusplus
7925         extern "C"
7926    #  endif
7927       int F77_DUMMY_MAIN() { return 1; }
7928    #endif
7929    int
7930    main ()
7931    {
7932   connect(0,(struct sockaddr *)0,0);   connect(0,(struct sockaddr *)0,0);
7933      gethostbyname("jil");      gethostbyname("jil");
7934      socket(AF_INET, SOCK_STREAM, 0);      socket(AF_INET, SOCK_STREAM, 0);
7935            
7936  ; return 0; }    ;
7937  EOF    return 0;
7938  if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
7939    rm -rf conftest*  _ACEOF
7940    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext conftest$ac_exeext
7941    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7942      (eval $ac_link) 2>&5
7943      ac_status=$?
7944      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945      (exit $ac_status); } &&
7946             { ac_try='test -s conftest$ac_exeext'
7947      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948      (eval $ac_try) 2>&5
7949      ac_status=$?
7950      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951      (exit $ac_status); }; }; then
7952      cat >>confdefs.h <<\_ACEOF
7953  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
7954  EOF  _ACEOF
7955    
7956   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7957    echo "${ECHO_T}yes" >&6
7958  else  else
7959    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
7960    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
7961    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
7962    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
7963  fi  fi
7964  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7965    
7966    
7967  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for listen using fcntl" >&5
7968  echo "configure:4570: checking check for listen using fcntl" >&5  echo $ECHO_N "checking check for listen using fcntl... $ECHO_C" >&6
7969  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
7970  #line 4572 "configure"  #line $LINENO "configure"
7971  #include "confdefs.h"  #include "confdefs.h"
7972  #include <stdio.h>  #include <stdio.h>
7973  #include <fcntl.h>  #include <fcntl.h>
7974    
7975  int main() {  #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  FILE *fp=fopen("configure.in","r");  FILE *fp=fopen("configure.in","r");
7985    int orig;    int orig;
7986    orig = fcntl(fileno(fp), F_GETFL);    orig = fcntl(fileno(fp), F_GETFL);
7987    if (! (orig & O_NONBLOCK )) return 0;    if (! (orig & O_NONBLOCK )) return 0;
7988    
7989  ; return 0; }    ;
7990  EOF    return 0;
7991  if { (eval echo configure:4585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
7992    rm -rf conftest*  _ACEOF
7993    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
7994    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7995      (eval $ac_compile) 2>&5
7996      ac_status=$?
7997      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998      (exit $ac_status); } &&
7999             { ac_try='test -s conftest.$ac_objext'
8000      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001      (eval $ac_try) 2>&5
8002      ac_status=$?
8003      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004      (exit $ac_status); }; }; then
8005      cat >>confdefs.h <<\_ACEOF
8006  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
8007  EOF  _ACEOF
8008    
8009   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
8010    echo "${ECHO_T}yes" >&6
8011  else  else
8012    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8013    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8014    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8015    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8016  fi  fi
8017  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8018    
8019    
8020    
8021    
8022  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for profil" >&5
8023  echo "configure:4604: checking for profil" >&5  echo $ECHO_N "checking for profil... $ECHO_C" >&6
8024  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if test "${ac_cv_func_profil+set}" = set; then
8025    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8026  else  else
8027    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8028  #line 4609 "configure"  #line $LINENO "configure"
8029  #include "confdefs.h"  #include "confdefs.h"
8030  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8031      which can conflict with char profil(); below.  */      which can conflict with char profil (); below.  */
8032  #include <assert.h>  #include <assert.h>
8033  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8034    #ifdef __cplusplus
8035    extern "C"
8036    #endif
8037  /* 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
8038      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8039  char profil();  char profil ();
8040    char (*f) ();
8041  int main() {  
8042    #ifdef F77_DUMMY_MAIN
8043    #  ifdef __cplusplus
8044         extern "C"
8045    #  endif
8046       int F77_DUMMY_MAIN() { return 1; }
8047    #endif
8048    int
8049    main ()
8050    {
8051  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8052      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8053      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8054  #if defined (__stub_profil) || defined (__stub___profil)  #if defined (__stub_profil) || defined (__stub___profil)
8055  choke me  choke me
8056  #else  #else
8057  profil();  f = profil;
8058  #endif  #endif
8059    
8060  ; return 0; }    ;
8061  EOF    return 0;
8062  if { (eval echo configure:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8063    rm -rf conftest*  _ACEOF
8064    eval "ac_cv_func_profil=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8065  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8066    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8067    cat conftest.$ac_ext >&5    ac_status=$?
8068    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069    eval "ac_cv_func_profil=no"    (exit $ac_status); } &&
8070  fi           { ac_try='test -s conftest$ac_exeext'
8071  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072  fi    (eval $ac_try) 2>&5
8073      ac_status=$?
8074  if eval "test \"`echo '$ac_cv_func_'profil`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8076      ac_cv_func_profil=yes
8077    else
8078      echo "$as_me: failed program was:" >&5
8079    cat conftest.$ac_ext >&5
8080    ac_cv_func_profil=no
8081    fi
8082    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8083    fi
8084    echo "$as_me:$LINENO: result: $ac_cv_func_profil" >&5
8085    echo "${ECHO_T}$ac_cv_func_profil" >&6
8086    if test $ac_cv_func_profil = yes; then
8087    :    :
8088  else  else
8089    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
8090  #define NO_PROFILE 1  #define NO_PROFILE 1
8091  EOF  _ACEOF
8092    
8093  fi  fi
8094    
8095    
8096  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for setenv" >&5
8097  echo "configure:4657: checking for setenv" >&5  echo $ECHO_N "checking for setenv... $ECHO_C" >&6
8098  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if test "${ac_cv_func_setenv+set}" = set; then
8099    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8100  else  else
8101    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8102  #line 4662 "configure"  #line $LINENO "configure"
8103  #include "confdefs.h"  #include "confdefs.h"
8104  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8105      which can conflict with char setenv(); below.  */      which can conflict with char setenv (); below.  */
8106  #include <assert.h>  #include <assert.h>
8107  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8108    #ifdef __cplusplus
8109    extern "C"
8110    #endif
8111  /* 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
8112      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8113  char setenv();  char setenv ();
8114    char (*f) ();
8115  int main() {  
8116    #ifdef F77_DUMMY_MAIN
8117    #  ifdef __cplusplus
8118         extern "C"
8119    #  endif
8120       int F77_DUMMY_MAIN() { return 1; }
8121    #endif
8122    int
8123    main ()
8124    {
8125  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8126      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8127      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8128  #if defined (__stub_setenv) || defined (__stub___setenv)  #if defined (__stub_setenv) || defined (__stub___setenv)
8129  choke me  choke me
8130  #else  #else
8131  setenv();  f = setenv;
8132  #endif  #endif
8133    
8134  ; return 0; }    ;
8135  EOF    return 0;
8136  if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8137    rm -rf conftest*  _ACEOF
8138    eval "ac_cv_func_setenv=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8139  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8140    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8141    cat conftest.$ac_ext >&5    ac_status=$?
8142    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143    eval "ac_cv_func_setenv=no"    (exit $ac_status); } &&
8144  fi           { ac_try='test -s conftest$ac_exeext'
8145  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146  fi    (eval $ac_try) 2>&5
8147      ac_status=$?
8148  if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8150    cat >> confdefs.h <<\EOF    ac_cv_func_setenv=yes
8151    else
8152      echo "$as_me: failed program was:" >&5
8153    cat conftest.$ac_ext >&5
8154    ac_cv_func_setenv=no
8155    fi
8156    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8157    fi
8158    echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
8159    echo "${ECHO_T}$ac_cv_func_setenv" >&6
8160    if test $ac_cv_func_setenv = yes; then
8161      cat >>confdefs.h <<\_ACEOF
8162  #define HAVE_SETENV 1  #define HAVE_SETENV 1
8163  EOF  _ACEOF
8164    
8165  else  else
8166    echo "$ac_t""no" 1>&6    no_setenv=1
 no_setenv=1  
8167  fi  fi
8168    
8169    
8170  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
8171  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for putenv" >&5
8172  echo "configure:4711: checking for putenv" >&5  echo $ECHO_N "checking for putenv... $ECHO_C" >&6
8173  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if test "${ac_cv_func_putenv+set}" = set; then
8174    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8175  else  else
8176    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8177  #line 4716 "configure"  #line $LINENO "configure"
8178  #include "confdefs.h"  #include "confdefs.h"
8179  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8180      which can conflict with char putenv(); below.  */      which can conflict with char putenv (); below.  */
8181  #include <assert.h>  #include <assert.h>
8182  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8183    #ifdef __cplusplus
8184    extern "C"
8185    #endif
8186  /* 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
8187      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8188  char putenv();  char putenv ();
8189    char (*f) ();
8190  int main() {  
8191    #ifdef F77_DUMMY_MAIN
8192    #  ifdef __cplusplus
8193         extern "C"
8194    #  endif
8195       int F77_DUMMY_MAIN() { return 1; }
8196    #endif
8197    int
8198    main ()
8199    {
8200  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8201      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8202      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8203  #if defined (__stub_putenv) || defined (__stub___putenv)  #if defined (__stub_putenv) || defined (__stub___putenv)
8204  choke me  choke me
8205  #else  #else
8206  putenv();  f = putenv;
8207  #endif  #endif
8208    
8209  ; return 0; }    ;
8210  EOF    return 0;
8211  if { (eval echo configure:4739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8212    rm -rf conftest*  _ACEOF
8213    eval "ac_cv_func_putenv=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8214  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8215    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8216    cat conftest.$ac_ext >&5    ac_status=$?
8217    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218    eval "ac_cv_func_putenv=no"    (exit $ac_status); } &&
8219  fi           { ac_try='test -s conftest$ac_exeext'
8220  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221  fi    (eval $ac_try) 2>&5
8222      ac_status=$?
8223  if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8225    cat >> confdefs.h <<\EOF    ac_cv_func_putenv=yes
8226    else
8227      echo "$as_me: failed program was:" >&5
8228    cat conftest.$ac_ext >&5
8229    ac_cv_func_putenv=no
8230    fi
8231    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8232    fi
8233    echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
8234    echo "${ECHO_T}$ac_cv_func_putenv" >&6
8235    if test $ac_cv_func_putenv = yes; then
8236      cat >>confdefs.h <<\_ACEOF
8237  #define HAVE_PUTENV 1  #define HAVE_PUTENV 1
8238  EOF  _ACEOF
8239    
 else  
   echo "$ac_t""no" 1>&6  
8240  fi  fi
8241    
8242    
8243  fi  fi
8244    
8245  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for _cleanup" >&5
8246  echo "configure:4765: checking for _cleanup" >&5  echo $ECHO_N "checking for _cleanup... $ECHO_C" >&6
8247  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if test "${ac_cv_func__cleanup+set}" = set; then
8248    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8249  else  else
8250    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8251  #line 4770 "configure"  #line $LINENO "configure"
8252  #include "confdefs.h"  #include "confdefs.h"
8253  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8254      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup (); below.  */
8255  #include <assert.h>  #include <assert.h>
8256  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8257    #ifdef __cplusplus
8258    extern "C"
8259    #endif
8260  /* 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
8261      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8262  char _cleanup();  char _cleanup ();
8263    char (*f) ();
8264  int main() {  
8265    #ifdef F77_DUMMY_MAIN
8266    #  ifdef __cplusplus
8267         extern "C"
8268    #  endif
8269       int F77_DUMMY_MAIN() { return 1; }
8270    #endif
8271    int
8272    main ()
8273    {
8274  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8275      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8276      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8277  #if defined (__stub__cleanup) || defined (__stub____cleanup)  #if defined (__stub__cleanup) || defined (__stub____cleanup)
8278  choke me  choke me
8279  #else  #else
8280  _cleanup();  f = _cleanup;
8281  #endif  #endif
8282    
8283  ; return 0; }    ;
8284  EOF    return 0;
8285  if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8286    rm -rf conftest*  _ACEOF
8287    eval "ac_cv_func__cleanup=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8288  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8289    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8290    cat conftest.$ac_ext >&5    ac_status=$?
8291    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292    eval "ac_cv_func__cleanup=no"    (exit $ac_status); } &&
8293  fi           { ac_try='test -s conftest$ac_exeext'
8294  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295  fi    (eval $ac_try) 2>&5
8296      ac_status=$?
8297  if eval "test \"`echo '$ac_cv_func_'_cleanup`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8299    cat >> confdefs.h <<\EOF    ac_cv_func__cleanup=yes
8300    else
8301      echo "$as_me: failed program was:" >&5
8302    cat conftest.$ac_ext >&5
8303    ac_cv_func__cleanup=no
8304    fi
8305    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8306    fi
8307    echo "$as_me:$LINENO: result: $ac_cv_func__cleanup" >&5
8308    echo "${ECHO_T}$ac_cv_func__cleanup" >&6
8309    if test $ac_cv_func__cleanup = yes; then
8310      cat >>confdefs.h <<\_ACEOF
8311  #define USE_CLEANUP 1  #define USE_CLEANUP 1
8312  EOF  _ACEOF
8313    
 else  
   echo "$ac_t""no" 1>&6  
8314  fi  fi
8315    
8316    
8317  gcl_ok=no  gcl_ok=no
8318    
8319  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8320  #line 4819 "configure"  #line $LINENO "configure"
8321  #include "confdefs.h"  #include "confdefs.h"
8322  #include <ctype.h>  #include <ctype.h>
8323  EOF  
8324    _ACEOF
8325  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8326    egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then    egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then
   rm -rf conftest*  
8327    gcl_ok=yes    gcl_ok=yes
8328  else  else
   rm -rf conftest*  
8329    gcl_ok=noo    gcl_ok=noo
8330  fi  fi
8331  rm -f conftest*  rm -f conftest*
8332    
8333  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
8334  cat >> confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
8335  #define ENDIAN_ALREADY_DEFINED 1  #define ENDIAN_ALREADY_DEFINED 1
8336  EOF  _ACEOF
8337    
8338  fi  fi
8339    
# Line 4842  fi Line 8343  fi
8343    
8344    
8345  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
8346  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
8347  echo "configure:4847: 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
8348    
8349  case $system in  case $system in
8350         OSF*)         OSF*)
8351          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8352  #define USE_FIONBIO 1  #define USE_FIONBIO 1
8353  EOF  _ACEOF
8354    
8355          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
8356    echo "${ECHO_T}FIONBIO" >&6
8357          ;;          ;;
8358      SunOS-4*)      SunOS-4*)
8359          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8360  #define USE_FIONBIO 1  #define USE_FIONBIO 1
8361  EOF  _ACEOF
8362    
8363          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
8364    echo "${ECHO_T}FIONBIO" >&6
8365          ;;          ;;
8366      ULTRIX-4.*)      ULTRIX-4.*)
8367          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8368  #define USE_FIONBIO 1  #define USE_FIONBIO 1
8369  EOF  _ACEOF
8370    
8371          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
8372    echo "${ECHO_T}FIONBIO" >&6
8373          ;;          ;;
8374      *)      *)
8375          echo "$ac_t""O_NONBLOCK" 1>&6          echo "$as_me:$LINENO: result: O_NONBLOCK" >&5
8376    echo "${ECHO_T}O_NONBLOCK" >&6
8377          ;;          ;;
8378  esac  esac
8379    
8380    
8381  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SV_ONSTACK" >&5
8382  echo "configure:4878: checking check for SV_ONSTACK" >&5  echo $ECHO_N "checking check for SV_ONSTACK... $ECHO_C" >&6
8383  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8384  #line 4880 "configure"  #line $LINENO "configure"
8385  #include "confdefs.h"  #include "confdefs.h"
8386  #include <signal.h>  #include <signal.h>
8387  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
8388    
8389  int main() {  #ifdef F77_DUMMY_MAIN
8390    #  ifdef __cplusplus
8391         extern "C"
8392    #  endif
8393       int F77_DUMMY_MAIN() { return 1; }
8394    #endif
8395    int
8396    main ()
8397    {
8398    
8399  ; return 0; }    ;
8400  EOF    return 0;
8401  if { (eval echo configure:4889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8402    rm -rf conftest*  _ACEOF
8403    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
8404    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8405      (eval $ac_compile) 2>&5
8406      ac_status=$?
8407      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408      (exit $ac_status); } &&
8409             { ac_try='test -s conftest.$ac_objext'
8410      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411      (eval $ac_try) 2>&5
8412      ac_status=$?
8413      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414      (exit $ac_status); }; }; then
8415      cat >>confdefs.h <<\_ACEOF
8416  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
8417  EOF  _ACEOF
8418    
8419    
8420     echo "$as_me:$LINENO: result: yes" >&5
8421   echo "$ac_t""yes" 1>&6  echo "${ECHO_T}yes" >&6
8422  else  else
8423    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8424    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8425    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8426    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8427  fi  fi
8428  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8429    
8430  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGSYS" >&5
8431  echo "configure:4906: checking check for SIGSYS" >&5  echo $ECHO_N "checking check for SIGSYS... $ECHO_C" >&6
8432  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8433  #line 4908 "configure"  #line $LINENO "configure"
8434  #include "confdefs.h"  #include "confdefs.h"
8435  #include <signal.h>  #include <signal.h>
8436  int joe=SIGSYS;  int joe=SIGSYS;
8437    
8438  int main() {  #ifdef F77_DUMMY_MAIN
8439    #  ifdef __cplusplus
8440         extern "C"
8441    #  endif
8442       int F77_DUMMY_MAIN() { return 1; }
8443    #endif
8444    int
8445    main ()
8446    {
8447    
8448  ; return 0; }    ;
8449  EOF    return 0;
8450  if { (eval echo configure:4917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8451    rm -rf conftest*  _ACEOF
8452    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
8453    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454      (eval $ac_compile) 2>&5
8455      ac_status=$?
8456      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457      (exit $ac_status); } &&
8458             { ac_try='test -s conftest.$ac_objext'
8459      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460      (eval $ac_try) 2>&5
8461      ac_status=$?
8462      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463      (exit $ac_status); }; }; then
8464      cat >>confdefs.h <<\_ACEOF
8465  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
8466  EOF  _ACEOF
8467    
8468    
8469     echo "$as_me:$LINENO: result: yes" >&5
8470   echo "$ac_t""yes" 1>&6  echo "${ECHO_T}yes" >&6
8471  else  else
8472    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8473    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8474    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8475    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8476  fi  fi
8477  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8478    
8479    
8480  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGEMT" >&5
8481  echo "configure:4935: checking check for SIGEMT" >&5  echo $ECHO_N "checking check for SIGEMT... $ECHO_C" >&6
8482  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8483  #line 4937 "configure"  #line $LINENO "configure"
8484  #include "confdefs.h"  #include "confdefs.h"
8485  #include <signal.h>  #include <signal.h>
8486  int joe=SIGEMT;  int joe=SIGEMT;
8487    
8488  int main() {  #ifdef F77_DUMMY_MAIN
8489    #  ifdef __cplusplus
8490         extern "C"
8491    #  endif
8492       int F77_DUMMY_MAIN() { return 1; }
8493    #endif
8494    int
8495    main ()
8496    {
8497    
8498  ; return 0; }    ;
8499  EOF    return 0;
8500  if { (eval echo configure:4946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8501    rm -rf conftest*  _ACEOF
8502    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
8503    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8504      (eval $ac_compile) 2>&5
8505      ac_status=$?
8506      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507      (exit $ac_status); } &&
8508             { ac_try='test -s conftest.$ac_objext'
8509      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510      (eval $ac_try) 2>&5
8511      ac_status=$?
8512      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513      (exit $ac_status); }; }; then
8514      cat >>confdefs.h <<\_ACEOF
8515  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
8516  EOF  _ACEOF
8517    
8518    
8519   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
8520    echo "${ECHO_T}yes" >&6
8521  else  else
8522    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8523    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8524    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8525    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8526  fi  fi
8527  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8528    
8529    
8530    
8531    
8532  #if test $use = "386-linux" ; then  #if test $use = "386-linux" ; then
8533          for ac_hdr in asm/sigcontext.h  
8534    for ac_header in asm/sigcontext.h
8535  do  do
8536  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8537  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8538  echo "configure:4970: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8539  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8540    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8541      echo $ECHO_N "(cached) $ECHO_C" >&6
8542    fi
8543    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8544    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8545    else
8546      # Is the header compilable?
8547    echo "$as_me:$LINENO: checking $ac_header usability" >&5
8548    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8549    cat >conftest.$ac_ext <<_ACEOF
8550    #line $LINENO "configure"
8551    #include "confdefs.h"
8552    $ac_includes_default
8553    #include <$ac_header>
8554    _ACEOF
8555    rm -f conftest.$ac_objext
8556    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8557      (eval $ac_compile) 2>&5
8558      ac_status=$?
8559      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560      (exit $ac_status); } &&
8561             { ac_try='test -s conftest.$ac_objext'
8562      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563      (eval $ac_try) 2>&5
8564      ac_status=$?
8565      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566      (exit $ac_status); }; }; then
8567      ac_header_compiler=yes
8568    else
8569      echo "$as_me: failed program was:" >&5
8570    cat conftest.$ac_ext >&5
8571    ac_header_compiler=no
8572    fi
8573    rm -f conftest.$ac_objext conftest.$ac_ext
8574    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8575    echo "${ECHO_T}$ac_header_compiler" >&6
8576    
8577    # Is the header present?
8578    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8579    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8580    cat >conftest.$ac_ext <<_ACEOF
8581    #line $LINENO "configure"
8582    #include "confdefs.h"
8583    #include <$ac_header>
8584    _ACEOF
8585    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8586      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8587      ac_status=$?
8588      egrep -v '^ *\+' conftest.er1 >conftest.err
8589      rm -f conftest.er1
8590      cat conftest.err >&5
8591      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592      (exit $ac_status); } >/dev/null; then
8593      if test -s conftest.err; then
8594        ac_cpp_err=$ac_c_preproc_warn_flag
8595      else
8596        ac_cpp_err=
8597      fi
8598  else  else
8599    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
8600  #line 4975 "configure"  fi
8601  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
8602  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4980: \"$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"  
8603  else  else
8604    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
8605    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
8606    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
8607  fi  fi
8608  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
8609    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8610      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
8611    cat >> confdefs.h <<EOF  
8612  #define $ac_tr_hdr 1  # So?  What about this header?
8613  EOF  case $ac_header_compiler:$ac_header_preproc in
8614      yes:no )
8615        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8616    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8617        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8618    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8619      no:yes )
8620        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8621    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8622        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8623    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8624        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8625    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8626    esac
8627    echo "$as_me:$LINENO: checking for $ac_header" >&5
8628    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8629    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8630      echo $ECHO_N "(cached) $ECHO_C" >&6
8631  else  else
8632    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
8633  fi  fi
8634    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8635    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8636    
8637    fi
8638    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8639      cat >>confdefs.h <<_ACEOF
8640    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8641    _ACEOF
8642    
8643    fi
8644    
8645  done  done
8646    
8647          for ac_hdr in asm/signal.h  
8648    for ac_header in asm/signal.h
8649  do  do
8650  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8651  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8652  echo "configure:5010: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8653  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8654    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8655      echo $ECHO_N "(cached) $ECHO_C" >&6
8656    fi
8657    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8658    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8659    else
8660      # Is the header compilable?
8661    echo "$as_me:$LINENO: checking $ac_header usability" >&5
8662    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8663    cat >conftest.$ac_ext <<_ACEOF
8664    #line $LINENO "configure"
8665    #include "confdefs.h"
8666    $ac_includes_default
8667    #include <$ac_header>
8668    _ACEOF
8669    rm -f conftest.$ac_objext
8670    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8671      (eval $ac_compile) 2>&5
8672      ac_status=$?
8673      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674      (exit $ac_status); } &&
8675             { ac_try='test -s conftest.$ac_objext'
8676      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677      (eval $ac_try) 2>&5
8678      ac_status=$?
8679      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680      (exit $ac_status); }; }; then
8681      ac_header_compiler=yes
8682    else
8683      echo "$as_me: failed program was:" >&5
8684    cat conftest.$ac_ext >&5
8685    ac_header_compiler=no
8686    fi
8687    rm -f conftest.$ac_objext conftest.$ac_ext
8688    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8689    echo "${ECHO_T}$ac_header_compiler" >&6
8690    
8691    # Is the header present?
8692    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8693    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8694    cat >conftest.$ac_ext <<_ACEOF
8695    #line $LINENO "configure"
8696    #include "confdefs.h"
8697    #include <$ac_header>
8698    _ACEOF
8699    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8700      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8701      ac_status=$?
8702      egrep -v '^ *\+' conftest.er1 >conftest.err
8703      rm -f conftest.er1
8704      cat conftest.err >&5
8705      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706      (exit $ac_status); } >/dev/null; then
8707      if test -s conftest.err; then
8708        ac_cpp_err=$ac_c_preproc_warn_flag
8709      else
8710        ac_cpp_err=
8711      fi
8712  else  else
8713    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
8714  #line 5015 "configure"  fi
8715  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
8716  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:5020: \"$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"  
8717  else  else
8718    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
8719    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
8720    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
8721  fi  fi
8722  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
8723  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8724  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
8725    echo "$ac_t""yes" 1>&6  
8726      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
8727    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
8728  #define $ac_tr_hdr 1    yes:no )
8729  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8730    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8731        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8732    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8733      no:yes )
8734        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8735    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8736        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8737    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8738        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8739    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8740    esac
8741    echo "$as_me:$LINENO: checking for $ac_header" >&5
8742    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8743    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8744      echo $ECHO_N "(cached) $ECHO_C" >&6
8745  else  else
8746    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
8747  fi  fi
8748    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8749    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8750    
8751    fi
8752    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8753      cat >>confdefs.h <<_ACEOF
8754    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8755    _ACEOF
8756    
8757    fi
8758    
8759  done  done
8760    
8761          cat > conftest.$ac_ext <<EOF          cat >conftest.$ac_ext <<_ACEOF
8762  #line 5047 "configure"  #line $LINENO "configure"
8763  #include "confdefs.h"  #include "confdefs.h"
8764  #include <signal.h>  #include <signal.h>
8765                          long code;                            long code;
8766          
8767  int main() {  #ifdef F77_DUMMY_MAIN
8768    #  ifdef __cplusplus
8769         extern "C"
8770    #  endif
8771       int F77_DUMMY_MAIN() { return 1; }
8772    #endif
8773    int
8774    main ()
8775    {
8776    
8777          void *p = ((void *)(((struct sigcontext_struct *)(&code))));          void *p = ((void *)(((struct sigcontext_struct *)(&code))));
8778          
8779  ; return 0; }    ;
8780  EOF    return 0;
8781  if { (eval echo configure:5058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8782    rm -rf conftest*  _ACEOF
8783      rm -f conftest.$ac_objext
8784    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8785      (eval $ac_compile) 2>&5
8786      ac_status=$?
8787      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788      (exit $ac_status); } &&
8789             { ac_try='test -s conftest.$ac_objext'
8790      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791      (eval $ac_try) 2>&5
8792      ac_status=$?
8793      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794      (exit $ac_status); }; }; then
8795    
8796          sigcontext_struct_works=1;          sigcontext_struct_works=1;
8797          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8798  #define SIGNAL_H_HAS_SIGCONTEXT 1  #define SIGNAL_H_HAS_SIGCONTEXT 1
8799  EOF  _ACEOF
8800    
8801            echo "$as_me:$LINENO: result: \"sigcontext in signal.h\"" >&5
8802    echo "${ECHO_T}\"sigcontext in signal.h\"" >&6
8803    
         echo "$ac_t"""sigcontext in signal.h"" 1>&6  
         
8804  else  else
8805    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8806    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8807    rm -rf conftest*  sigcontext_struct_works=0;
8808    sigcontext_struct_works=0;           echo "$as_me:$LINENO: result: \"sigcontext NOT in signal.h\"" >&5
8809           echo "$ac_t"""sigcontext NOT in signal.h"" 1>&6  echo "${ECHO_T}\"sigcontext NOT in signal.h\"" >&6
8810          
8811  fi  fi
8812  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8813         if test "$sigcontext_struct_works" = 0 ; then         if test "$sigcontext_struct_works" = 0 ; then
8814         cat > conftest.$ac_ext <<EOF         cat >conftest.$ac_ext <<_ACEOF
8815  #line 5079 "configure"  #line $LINENO "configure"
8816  #include "confdefs.h"  #include "confdefs.h"
8817  #include <signal.h>  #include <signal.h>
8818               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H
8819               #include <asm/sigcontext.h>               #include <asm/sigcontext.h>
8820               #endif               #endif
8821               #ifdef HAVE_ASM_SIGNAL_H                         #ifdef HAVE_ASM_SIGNAL_H
8822               #include <asm/signal.h>               #include <asm/signal.h>
8823               #endif               #endif
8824               long code;               long code;
8825              
8826  int main() {  #ifdef F77_DUMMY_MAIN
8827    #  ifdef __cplusplus
8828         extern "C"
8829    #  endif
8830       int F77_DUMMY_MAIN() { return 1; }
8831    #endif
8832    int
8833    main ()
8834    {
8835    
8836          void *p = ((void *)(((struct sigcontext *)(&code))));          void *p = ((void *)(((struct sigcontext *)(&code))));
8837            
8838  ; return 0; }    ;
8839  EOF    return 0;
8840  if { (eval echo configure:5096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8841    rm -rf conftest*  _ACEOF
8842      rm -f conftest.$ac_objext
8843    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8844      (eval $ac_compile) 2>&5
8845      ac_status=$?
8846      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847      (exit $ac_status); } &&
8848             { ac_try='test -s conftest.$ac_objext'
8849      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850      (eval $ac_try) 2>&5
8851      ac_status=$?
8852      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853      (exit $ac_status); }; }; then
8854    
8855          sigcontext_works=1 ;          sigcontext_works=1 ;
8856          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8857  #define HAVE_SIGCONTEXT 1  #define HAVE_SIGCONTEXT 1
8858  EOF  _ACEOF
8859    
8860            echo "$as_me:$LINENO: result: \"use struct sigcontext\"" >&5
8861    echo "${ECHO_T}\"use struct sigcontext\"" >&6
8862    
         echo "$ac_t"""use struct sigcontext"" 1>&6  
           
8863  else  else
8864    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8865    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8866    rm -rf conftest*  
8867              sigcontext_works=0 ;
8868          sigcontext_works=0 ;  
       
8869  fi  fi
8870  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8871    
8872    
8873         fi         fi
8874  #       echo 'foo() {}' > conftest1.c  #       echo 'foo() {}' > conftest1.c
8875  #       $CC -S conftest1.c  #       $CC -S conftest1.c
8876  #       use_underscore=0          #       use_underscore=0
8877  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi
8878  #       if test $use_underscore = 0 ; then  #       if test $use_underscore = 0 ; then
8879  #            MPI_FILE=mpi-386_no_under.o  #            MPI_FILE=mpi-386_no_under.o
# Line 5134  rm -f conftest* Line 8891  rm -f conftest*
8891    
8892  # 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.
8893  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
8894  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
8895  echo "configure:5139: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8896  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if test "${ac_cv_path_EMACS+set}" = set; then
8897    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8898  else  else
8899    case "$EMACS" in    case $EMACS in
8900    /*)    [\\/]* | ?:[\\/]*)
8901    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.
8902    ;;    ;;
   ?:/*)                    
   ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.  
   ;;  
8903    *)    *)
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_path_EMACS="$ac_dir/$ac_word"    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_path_EMACS="$as_dir/$ac_word$ac_exec_ext"
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    ;;    ;;
8919  esac  esac
8920  fi  fi
8921  EMACS="$ac_cv_path_EMACS"  EMACS=$ac_cv_path_EMACS
8922    
8923  if test -n "$EMACS"; then  if test -n "$EMACS"; then
8924    echo "$ac_t""$EMACS" 1>&6    echo "$as_me:$LINENO: result: $EMACS" >&5
8925    echo "${ECHO_T}$EMACS" >&6
8926  else  else
8927    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
8928    echo "${ECHO_T}no" >&6
8929  fi  fi
8930    
8931    
# Line 5182  cat >> conftest.el <<EOF Line 8943  cat >> conftest.el <<EOF
8943    (message ans))    (message ans))
8944  EOF  EOF
8945    
8946  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs site lisp directory" >&5
8947  echo "configure:5187: checking emacs site lisp directory" >&5  echo $ECHO_N "checking emacs site lisp directory... $ECHO_C" >&6
8948  if [ "$EMACS" != "" ]  && [ "$EMACS_SITE_LISP" = "unknown" ] ; then  if [ "$EMACS" != "" ]  && [ "$EMACS_SITE_LISP" = "unknown" ] ; then
8949          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 `
8950  else  else
8951          EMACS_SITE_LISP=""          EMACS_SITE_LISP=""
8952  fi  fi
8953  echo "$ac_t""$EMACS_SITE_LISP" 1>&6  echo "$as_me:$LINENO: result: $EMACS_SITE_LISP" >&5
8954    echo "${ECHO_T}$EMACS_SITE_LISP" >&6
8955    
8956    
8957  # check for where the emacs site lisp default.el is  # check for where the emacs site lisp default.el is
# Line 5204  cat >> conftest.el <<EOF Line 8966  cat >> conftest.el <<EOF
8966    (message ans))    (message ans))
8967  EOF  EOF
8968    
8969  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs default.el" >&5
8970  echo "configure:5209: checking emacs default.el" >&5  echo $ECHO_N "checking emacs default.el... $ECHO_C" >&6
8971  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
8972          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 `
8973  else  else
# Line 5216  if  test -f "${EMACS_DEFAULT_EL}"  ; the Line 8978  if  test -f "${EMACS_DEFAULT_EL}"  ; the
8978       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el
8979    fi    fi
8980  fi  fi
8981  echo "$ac_t""$EMACS_DEFAULT_EL" 1>&6  echo "$as_me:$LINENO: result: $EMACS_DEFAULT_EL" >&5
8982    echo "${ECHO_T}$EMACS_DEFAULT_EL" >&6
8983    
8984    
8985    
# Line 5227  cat >> conftest.el <<EOF Line 8990  cat >> conftest.el <<EOF
8990  (let ((ans "") file (tem Info-default-directory-list))  (let ((ans "") file (tem Info-default-directory-list))
8991   (while tem   (while tem
8992     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))
8993            (setq ans (file-name-as-directory (car tem)))                    (setq ans (file-name-as-directory (car tem)))
8994            (setq tem nil) ))            (setq tem nil) ))
8995     (setq tem (cdr tem)))     (setq tem (cdr tem)))
8996    (message ans))    (message ans))
8997  EOF  EOF
8998    
8999  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs info/dir" >&5
9000  echo "configure:5238: checking emacs info/dir" >&5  echo $ECHO_N "checking emacs info/dir... $ECHO_C" >&6
9001  if [ "$EMACS" != "" ] && [ "$INFO_DIR" = "unknown" ] ; then  if [ "$EMACS" != "" ] && [ "$INFO_DIR" = "unknown" ] ; then
9002          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 `
9003  fi  fi
# Line 5244  if test -f /usr/info/dir ; then Line 9007  if test -f /usr/info/dir ; then
9007  else true;  else true;
9008  fi  fi
9009  fi  fi
9010  echo "$ac_t""$INFO_DIR" 1>&6  echo "$as_me:$LINENO: result: $INFO_DIR" >&5
9011    echo "${ECHO_T}$INFO_DIR" >&6
9012    
9013    
9014  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for tcl/tk" >&5
9015  echo "configure:5252: checking for tcl/tk" >&5  echo $ECHO_N "checking for tcl/tk... $ECHO_C" >&6
9016    
9017    
9018  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 5258  cat >> conftest.tcl <<EOF Line 9022  cat >> conftest.tcl <<EOF
9022  set dir [set tcl_library]  set dir [set tcl_library]
9023  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
9024        puts  [set dir]        puts  [set dir]
9025        exit              exit
9026    }    }
9027  set dir [file dirname [set tcl_library]]  set dir [file dirname [set tcl_library]]
9028  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
# Line 5270  EOF Line 9034  EOF
9034    
9035  # 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.
9036  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
9037  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
9038  echo "configure:5275: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9039  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if test "${ac_cv_prog_TCLSH+set}" = set; then
9040    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9041  else  else
9042    if test -n "$TCLSH"; then    if test -n "$TCLSH"; then
9043    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
9044  else  else
9045    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046    ac_dummy="$PATH"  for as_dir in $PATH
9047    for ac_dir in $ac_dummy; do  do
9048      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
9049      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
9050        ac_cv_prog_TCLSH="tclsh"    for ac_exec_ext in '' $ac_executable_extensions; do
9051        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9052      fi      ac_cv_prog_TCLSH="tclsh"
9053    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9054    IFS="$ac_save_ifs"      break 2
9055      fi
9056    done
9057    done
9058    
9059    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"
9060  fi  fi
9061  fi  fi
9062  TCLSH="$ac_cv_prog_TCLSH"  TCLSH=$ac_cv_prog_TCLSH
9063  if test -n "$TCLSH"; then  if test -n "$TCLSH"; then
9064    echo "$ac_t""$TCLSH" 1>&6    echo "$as_me:$LINENO: result: $TCLSH" >&5
9065    echo "${ECHO_T}$TCLSH" >&6
9066  else  else
9067    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
9068    echo "${ECHO_T}no" >&6
9069  fi  fi
9070    
9071  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})
# Line 5361  if test -f ${TK_CONFIG_PREFIX}/../includ Line 9131  if test -f ${TK_CONFIG_PREFIX}/../includ
9131    else    else
9132    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then
9133      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
9134    fi        fi
9135  fi  fi
9136  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then
9137    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include
# Line 5370  if test -f ${TCL_CONFIG_PREFIX}/../inclu Line 9140  if test -f ${TCL_CONFIG_PREFIX}/../inclu
9140      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
9141    fi    fi
9142  fi  fi
9143  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -llieee" >&5
9144  echo "configure:5375: checking for main in -llieee" >&5  echo $ECHO_N "checking for main in -llieee... $ECHO_C" >&6
9145  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_lieee_main+set}" = set; then
9146  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  
9147  else  else
9148    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
9149  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
9150  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
9151  #line 5383 "configure"  #line $LINENO "configure"
9152  #include "confdefs.h"  #include "confdefs.h"
9153    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:5390: \"$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"  
9154    
9155  fi  #ifdef F77_DUMMY_MAIN
9156  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
9157    echo "$ac_t""yes" 1>&6       extern "C"
9158    #  endif
9159       int F77_DUMMY_MAIN() { return 1; }
9160    #endif
9161    int
9162    main ()
9163    {
9164    main ();
9165      ;
9166      return 0;
9167    }
9168    _ACEOF
9169    rm -f conftest.$ac_objext conftest$ac_exeext
9170    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9171      (eval $ac_link) 2>&5
9172      ac_status=$?
9173      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174      (exit $ac_status); } &&
9175             { ac_try='test -s conftest$ac_exeext'
9176      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177      (eval $ac_try) 2>&5
9178      ac_status=$?
9179      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180      (exit $ac_status); }; }; then
9181      ac_cv_lib_lieee_main=yes
9182    else
9183      echo "$as_me: failed program was:" >&5
9184    cat conftest.$ac_ext >&5
9185    ac_cv_lib_lieee_main=no
9186    fi
9187    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9188    LIBS=$ac_check_lib_save_LIBS
9189    fi
9190    echo "$as_me:$LINENO: result: $ac_cv_lib_lieee_main" >&5
9191    echo "${ECHO_T}$ac_cv_lib_lieee_main" >&6
9192    if test $ac_cv_lib_lieee_main = yes; then
9193    have_ieee=1    have_ieee=1
9194  else  else
9195    echo "$ac_t""no" 1>&6    have_ieee=0
 have_ieee=0  
9196  fi  fi
9197    
9198  if test "$have_ieee" = "0" ; then  if test "$have_ieee" = "0" ; then
# Line 5435  fi Line 9223  fi
9223    
9224    
9225  if test -d "${TK_CONFIG_PREFIX}" ; then  if test -d "${TK_CONFIG_PREFIX}" ; then
9226  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
9227    echo "${ECHO_T}using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" >&6
9228  else  else
9229  echo "$ac_t""not found" 1>&6  echo "$as_me:$LINENO: result: not found" >&5
9230    echo "${ECHO_T}not found" >&6
9231  fi  fi
9232    
9233  NOTIFY=$enable_notify  NOTIFY=$enable_notify
9234    
9235    
9236          
9237    
9238    
9239  # for sgbc the mprotect capabilities.  # for sgbc the mprotect capabilities.
9240    
9241  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
9242    
9243  echo $ac_n "checking alloca""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking alloca" >&5
9244  echo "configure:5455: checking alloca" >&5  echo $ECHO_N "checking alloca... $ECHO_C" >&6
9245  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9246    gcl_ok=no    gcl_ok=no
9247  else  else
9248    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9249  #line 5460 "configure"  #line $LINENO "configure"
9250  #include "confdefs.h"  #include "confdefs.h"
9251  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
9252  EOF  _ACEOF
9253  if { (eval echo configure:5464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9254  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255      (eval $ac_link) 2>&5
9256      ac_status=$?
9257      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9259      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260      (eval $ac_try) 2>&5
9261      ac_status=$?
9262      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263      (exit $ac_status); }; }; then
9264    :    :
9265  else  else
9266    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9267    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9268    rm -fr conftest*  cat conftest.$ac_ext >&5
9269    gcl_ok=yes  ( exit $ac_status )
9270    gcl_ok=yes
9271  fi  fi
9272  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9273  fi  fi
   
9274  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
9275      echo "$ac_t""yes" 1>&6      echo "$as_me:$LINENO: result: yes" >&5
9276      cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
9277        cat >>confdefs.h <<\_ACEOF
9278  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
9279  EOF  _ACEOF
9280    
9281  else  else
9282    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
9283    gcl_ok=no    gcl_ok=no
9284  else  else
9285    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9286  #line 5487 "configure"  #line $LINENO "configure"
9287  #include "confdefs.h"  #include "confdefs.h"
9288  #include <alloca.h>  #include <alloca.h>
9289    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
9290  EOF  _ACEOF
9291  if { (eval echo configure:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9292  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293      (eval $ac_link) 2>&5
9294      ac_status=$?
9295      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9297      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298      (eval $ac_try) 2>&5
9299      ac_status=$?
9300      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301      (exit $ac_status); }; }; then
9302    :    :
9303  else  else
9304    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9305    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9306    rm -fr conftest*  cat conftest.$ac_ext >&5
9307    gcl_ok=yes  ( exit $ac_status )
9308    gcl_ok=yes
9309  fi  fi
9310  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9311  fi  fi
   
9312   if test $gcl_ok = yes ; then   if test $gcl_ok = yes ; then
9313      echo "$ac_t""yes" 1>&6      echo "$as_me:$LINENO: result: yes" >&5
9314      cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
9315        cat >>confdefs.h <<\_ACEOF
9316  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
9317  EOF  _ACEOF
9318    
9319      cat >> confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
9320  #define NEED_ALLOCA_H 1  #define NEED_ALLOCA_H 1
9321  EOF  _ACEOF
9322    
9323   fi   fi
9324  fi  fi
9325  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
9326    echo "${ECHO_T}no" >&6 ; fi
9327    
9328    
9329    
# Line 5528  if test $gcl_ok = no ; then     echo "$a Line 9339  if test $gcl_ok = no ; then     echo "$a
9339  # dlopen etc  # dlopen etc
9340  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)
9341  # 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
9342  #  #
9343    
9344  # what machine this is, and include then a machine specific hdr.  # what machine this is, and include then a machine specific hdr.
9345  # and machine specific defs.  # and machine specific defs.
# Line 5548  if test $gcl_ok = no ; then     echo "$a Line 9359  if test $gcl_ok = no ; then     echo "$a
9359    
9360  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
9361  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
9362  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
9363  echo "configure:5553: checking Checking for buggy gcc version from redhat" >&5  echo $ECHO_N "checking Checking for buggy gcc version from redhat... $ECHO_C" >&6
9364  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
9365     then     then
9366          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1
9367          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
9368  #define BROKEN_O4_OPT 1  #define BROKEN_O4_OPT 1
9369  EOF  _ACEOF
9370    
9371    
           
9372          echo ODIR_DEBUG=-O >> makedefsafter          echo ODIR_DEBUG=-O >> makedefsafter
9373          echo >> makedefsafter          echo >> makedefsafter
9374          echo "$ac_t""yes .. turning off -O4" 1>&6          echo "$as_me:$LINENO: result: yes .. turning off -O4" >&5
9375    echo "${ECHO_T}yes .. turning off -O4" >&6
9376     else     else
9377          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
9378  fi  echo "${ECHO_T}no" >&6
9379    fi
9380    
9381  LIBS="$LIBS $TLIBS"  LIBS="$LIBS $TLIBS"
9382    
# Line 5579  O2FLAGS=$TO2FLAGS Line 9392  O2FLAGS=$TO2FLAGS
9392    
9393  if test -f h/$use.defs  ; then  if test -f h/$use.defs  ; then
9394    
9395      
9396    trap '' 1 2 15    ac_config_files="$ac_config_files makedefc windows/gcl.iss"
9397  cat > confcache <<\EOF  cat >confcache <<\_ACEOF
9398  # This file is a shell script that caches the results of configure  # This file is a shell script that caches the results of configure
9399  # tests run on this system so they can be shared between configure  # tests run on this system so they can be shared between configure
9400  # scripts and configure runs.  It is not useful on other systems.  # scripts and configure runs, see configure's option --config-cache.
9401  # 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
9402    # want to keep, you may remove or edit it.
9403  #  #
9404  # By default, configure uses ./config.cache as the cache file,  # config.status only pays attention to the cache file if you give it
9405  # 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.  
9406  #  #
9407  EOF  # `ac_cv_env_foo' variables (set or unset) will be overriden when
9408    # loading this file, other *unset* `ac_cv_foo' will be assigned the
9409    # following values.
9410    
9411    _ACEOF
9412    
9413  # The following way of writing the cache mishandles newlines in values,  # The following way of writing the cache mishandles newlines in values,
9414  # but we know of no workaround that is simple, portable, and efficient.  # but we know of no workaround that is simple, portable, and efficient.
9415  # So, don't put newlines in cache variables' values.  # So, don't put newlines in cache variables' values.
9416  # Ultrix sh set writes to stderr and can't be redirected directly,  # Ultrix sh set writes to stderr and can't be redirected directly,
9417  # 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.
9418  (set) 2>&1 |  {
9419    case `(ac_space=' '; set | grep ac_space) 2>&1` in    (set) 2>&1 |
9420    *ac_space=\ *)      case `(ac_space=' '; set | grep ac_space) 2>&1` in
9421      # `set' does not quote correctly, so add quotes (double-quote substitution      *ac_space=\ *)
9422      # turns \\\\ into \\, and sed turns \\ into \).        # `set' does not quote correctly, so add quotes (double-quote
9423      sed -n \        # substitution turns \\\\ into \\, and sed turns \\ into \).
9424        -e "s/'/'\\\\''/g" \        sed -n \
9425        -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"          "s/'/'\\\\''/g;
9426      ;;            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9427    *)        ;;
9428      # `set' quotes correctly as required by POSIX, so do not add quotes.      *)
9429      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.
9430      ;;        sed -n \
9431    esac >> confcache          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9432  if cmp -s $cache_file confcache; then        ;;
9433    :      esac;
9434  else  } |
9435      sed '
9436         t clear
9437         : clear
9438         s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9439         t end
9440         /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9441         : end' >>confcache
9442    if cmp -s $cache_file confcache; then :; else
9443    if test -w $cache_file; then    if test -w $cache_file; then
9444      echo "updating cache $cache_file"      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9445      cat confcache > $cache_file      cat confcache >$cache_file
9446    else    else
9447      echo "not updating unwritable cache $cache_file"      echo "not updating unwritable cache $cache_file"
9448    fi    fi
9449  fi  fi
9450  rm -f confcache  rm -f confcache
9451    
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
9452  test "x$prefix" = xNONE && prefix=$ac_default_prefix  test "x$prefix" = xNONE && prefix=$ac_default_prefix
9453  # Let make expand exec_prefix.  # Let make expand exec_prefix.
9454  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9455    
9456  # Any assignment to VPATH causes Sun make to only execute  # VPATH may cause trouble with some makes, so we remove $(srcdir),
9457  # the first set of double-colon rules, so remove it if not needed.  # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9458  # 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
9459    # (actually we leave an empty line to preserve line numbers).
9460  if test "x$srcdir" = x.; then  if test "x$srcdir" = x.; then
9461    ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'    ac_vpsub='/^[         ]*VPATH[        ]*=/{
9462    s/:*\$(srcdir):*/:/;
9463    s/:*\${srcdir}:*/:/;
9464    s/:*@srcdir@:*/:/;
9465    s/^\([^=]*=[    ]*\):*/\1/;
9466    s/:*$//;
9467    s/^[^=]*=[      ]*$//;
9468    }'
9469  fi  fi
9470    
 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15  
   
9471  DEFS=-DHAVE_CONFIG_H  DEFS=-DHAVE_CONFIG_H
9472    
 # Without the "./", some shells look in PATH for config.status.  
 : ${CONFIG_STATUS=./config.status}  
9473    
9474  echo creating $CONFIG_STATUS  : ${CONFIG_STATUS=./config.status}
9475  rm -f $CONFIG_STATUS  ac_clean_files_save=$ac_clean_files
9476  cat > $CONFIG_STATUS <<EOF  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9477  #! /bin/sh  { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9478  # Generated automatically by configure.  echo "$as_me: creating $CONFIG_STATUS" >&6;}
9479    cat >$CONFIG_STATUS <<_ACEOF
9480    #! $SHELL
9481    # Generated by $as_me.
9482  # 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  
 #  
9483  # Compiler output produced by configure, useful for debugging  # Compiler output produced by configure, useful for debugging
9484  # configure, is in ./config.log if it exists.  # configure, is in config.log if it exists.
9485    
9486  ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"  debug=false
9487  for ac_option  SHELL=\${CONFIG_SHELL-$SHELL}
9488    _ACEOF
9489    
9490    cat >>$CONFIG_STATUS <<\_ACEOF
9491    
9492    ## --------------------- ##
9493    ## M4sh Initialization.  ##
9494    ## --------------------- ##
9495    
9496    # Be Bourne compatible
9497    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9498      emulate sh
9499      NULLCMD=:
9500    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9501      set -o posix
9502    fi
9503    
9504    # NLS nuisances.
9505    # Support unset when possible.
9506    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9507      as_unset=unset
9508    else
9509      as_unset=false
9510    fi
9511    
9512    (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9513        { $as_unset LANG || test "${LANG+set}" != set; } ||
9514          { LANG=C; export LANG; }
9515    (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9516        { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9517          { LC_ALL=C; export LC_ALL; }
9518    (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9519        { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9520          { LC_TIME=C; export LC_TIME; }
9521    (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9522        { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9523          { LC_CTYPE=C; export LC_CTYPE; }
9524    (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9525        { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9526          { LANGUAGE=C; export LANGUAGE; }
9527    (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9528        { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9529          { LC_COLLATE=C; export LC_COLLATE; }
9530    (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9531        { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9532          { LC_NUMERIC=C; export LC_NUMERIC; }
9533    (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9534        { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9535          { LC_MESSAGES=C; export LC_MESSAGES; }
9536    
9537    
9538    # Name of the executable.
9539    as_me=`(basename "$0") 2>/dev/null ||
9540    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9541             X"$0" : 'X\(//\)$' \| \
9542             X"$0" : 'X\(/\)$' \| \
9543             .     : '\(.\)' 2>/dev/null ||
9544    echo X/"$0" |
9545        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9546              /^X\/\(\/\/\)$/{ s//\1/; q; }
9547              /^X\/\(\/\).*/{ s//\1/; q; }
9548              s/.*/./; q'`
9549    
9550    # PATH needs CR, and LINENO needs CR and PATH.
9551    # Avoid depending upon Character Ranges.
9552    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9553    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9554    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9555    as_cr_digits='0123456789'
9556    as_cr_alnum=$as_cr_Letters$as_cr_digits
9557    
9558    # The user is always right.
9559    if test "${PATH_SEPARATOR+set}" != set; then
9560      echo "#! /bin/sh" >conftest.sh
9561      echo  "exit 0"   >>conftest.sh
9562      chmod +x conftest.sh
9563      if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9564        PATH_SEPARATOR=';'
9565      else
9566        PATH_SEPARATOR=:
9567      fi
9568      rm -f conftest.sh
9569    fi
9570    
9571    
9572      as_lineno_1=$LINENO
9573      as_lineno_2=$LINENO
9574      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9575      test "x$as_lineno_1" != "x$as_lineno_2" &&
9576      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9577      # Find who we are.  Look in the path if we contain no path at all
9578      # relative or not.
9579      case $0 in
9580        *[\\/]* ) as_myself=$0 ;;
9581        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9582    for as_dir in $PATH
9583    do
9584      IFS=$as_save_IFS
9585      test -z "$as_dir" && as_dir=.
9586      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9587    done
9588    
9589           ;;
9590      esac
9591      # We did not find ourselves, most probably we were run as `sh COMMAND'
9592      # in which case we are not to be found in the path.
9593      if test "x$as_myself" = x; then
9594        as_myself=$0
9595      fi
9596      if test ! -f "$as_myself"; then
9597        { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9598    echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9599       { (exit 1); exit 1; }; }
9600      fi
9601      case $CONFIG_SHELL in
9602      '')
9603        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9605    do
9606      IFS=$as_save_IFS
9607      test -z "$as_dir" && as_dir=.
9608      for as_base in sh bash ksh sh5; do
9609             case $as_dir in
9610             /*)
9611               if ("$as_dir/$as_base" -c '
9612      as_lineno_1=$LINENO
9613      as_lineno_2=$LINENO
9614      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9615      test "x$as_lineno_1" != "x$as_lineno_2" &&
9616      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9617                 CONFIG_SHELL=$as_dir/$as_base
9618                 export CONFIG_SHELL
9619                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9620               fi;;
9621             esac
9622           done
9623    done
9624    ;;
9625      esac
9626    
9627      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9628      # uniformly replaced by the line number.  The first 'sed' inserts a
9629      # line-number line before each line; the second 'sed' does the real
9630      # work.  The second script uses 'N' to pair each line-number line
9631      # with the numbered line, and appends trailing '-' during
9632      # substitution so that $LINENO is not a special case at line end.
9633      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9634      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9635      sed '=' <$as_myself |
9636        sed '
9637          N
9638          s,$,-,
9639          : loop
9640          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9641          t loop
9642          s,-$,,
9643          s,^['$as_cr_digits']*\n,,
9644        ' >$as_me.lineno &&
9645      chmod +x $as_me.lineno ||
9646        { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9647    echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9648       { (exit 1); exit 1; }; }
9649    
9650      # Don't try to exec as it changes $[0], causing all sort of problems
9651      # (the dirname of $[0] is not the place where we might find the
9652      # original and so on.  Autoconf is especially sensible to this).
9653      . ./$as_me.lineno
9654      # Exit status is that of the last command.
9655      exit
9656    }
9657    
9658    
9659    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9660      *c*,-n*) ECHO_N= ECHO_C='
9661    ' ECHO_T='      ' ;;
9662      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9663      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9664    esac
9665    
9666    if expr a : '\(a\)' >/dev/null 2>&1; then
9667      as_expr=expr
9668    else
9669      as_expr=false
9670    fi
9671    
9672    rm -f conf$$ conf$$.exe conf$$.file
9673    echo >conf$$.file
9674    if ln -s conf$$.file conf$$ 2>/dev/null; then
9675      # We could just check for DJGPP; but this test a) works b) is more generic
9676      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9677      if test -f conf$$.exe; then
9678        # Don't use ln at all; we don't have any links
9679        as_ln_s='cp -p'
9680      else
9681        as_ln_s='ln -s'
9682      fi
9683    elif ln conf$$.file conf$$ 2>/dev/null; then
9684      as_ln_s=ln
9685    else
9686      as_ln_s='cp -p'
9687    fi
9688    rm -f conf$$ conf$$.exe conf$$.file
9689    
9690    as_executable_p="test -f"
9691    
9692    # Sed expression to map a string onto a valid CPP name.
9693    as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9694    
9695    # Sed expression to map a string onto a valid variable name.
9696    as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9697    
9698    
9699    # IFS
9700    # We need space, tab and new line, in precisely that order.
9701    as_nl='
9702    '
9703    IFS="   $as_nl"
9704    
9705    # CDPATH.
9706    $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9707    
9708    exec 6>&1
9709    
9710    # Open the log real soon, to keep \$[0] and so on meaningful, and to
9711    # report actual input values of CONFIG_FILES etc. instead of their
9712    # values after options handling.  Logging --version etc. is OK.
9713    exec 5>>config.log
9714    {
9715      echo
9716      sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9717    ## Running $as_me. ##
9718    _ASBOX
9719    } >&5
9720    cat >&5 <<_CSEOF
9721    
9722    This file was extended by $as_me, which was
9723    generated by GNU Autoconf 2.53.  Invocation command line was
9724    
9725      CONFIG_FILES    = $CONFIG_FILES
9726      CONFIG_HEADERS  = $CONFIG_HEADERS
9727      CONFIG_LINKS    = $CONFIG_LINKS
9728      CONFIG_COMMANDS = $CONFIG_COMMANDS
9729      $ $0 $@
9730    
9731    _CSEOF
9732    echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9733    echo >&5
9734    _ACEOF
9735    
9736    # Files that config.status was made for.
9737    if test -n "$ac_config_files"; then
9738      echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9739    fi
9740    
9741    if test -n "$ac_config_headers"; then
9742      echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9743    fi
9744    
9745    if test -n "$ac_config_links"; then
9746      echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9747    fi
9748    
9749    if test -n "$ac_config_commands"; then
9750      echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9751    fi
9752    
9753    cat >>$CONFIG_STATUS <<\_ACEOF
9754    
9755    ac_cs_usage="\
9756    \`$as_me' instantiates files from templates according to the
9757    current configuration.
9758    
9759    Usage: $0 [OPTIONS] [FILE]...
9760    
9761      -h, --help       print this help, then exit
9762      -V, --version    print version number, then exit
9763      -d, --debug      don't remove temporary files
9764          --recheck    update $as_me by reconfiguring in the same conditions
9765      --file=FILE[:TEMPLATE]
9766                       instantiate the configuration file FILE
9767      --header=FILE[:TEMPLATE]
9768                       instantiate the configuration header FILE
9769    
9770    Configuration files:
9771    $config_files
9772    
9773    Configuration headers:
9774    $config_headers
9775    
9776    Report bugs to <bug-autoconf@gnu.org>."
9777    _ACEOF
9778    
9779    cat >>$CONFIG_STATUS <<_ACEOF
9780    ac_cs_version="\\
9781    config.status
9782    configured by $0, generated by GNU Autoconf 2.53,
9783      with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9784    
9785    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9786    Free Software Foundation, Inc.
9787    This config.status script is free software; the Free Software Foundation
9788    gives unlimited permission to copy, distribute and modify it."
9789    srcdir=$srcdir
9790    _ACEOF
9791    
9792    cat >>$CONFIG_STATUS <<\_ACEOF
9793    # If no file are specified by the user, then we need to provide default
9794    # value.  By we need to know if files were specified by the user.
9795    ac_need_defaults=:
9796    while test $# != 0
9797  do  do
9798    case "\$ac_option" in    case $1 in
9799      --*=*)
9800        ac_option=`expr "x$1" : 'x\([^=]*\)='`
9801        ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9802        shift
9803        set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9804        shift
9805        ;;
9806      -*);;
9807      *) # This is not an option, so the user has probably given explicit
9808         # arguments.
9809         ac_need_defaults=false;;
9810      esac
9811    
9812      case $1 in
9813      # Handling of the options.
9814    _ACEOF
9815    cat >>$CONFIG_STATUS <<_ACEOF
9816    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9817      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"
9818      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;      exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9819    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)  _ACEOF
9820      echo "$CONFIG_STATUS generated by autoconf version 2.13"  cat >>$CONFIG_STATUS <<\_ACEOF
9821      exit 0 ;;    --version | --vers* | -V )
9822    -help | --help | --hel | --he | --h)      echo "$ac_cs_version"; exit 0 ;;
9823      echo "\$ac_cs_usage"; exit 0 ;;    --he | --h)
9824    *) echo "\$ac_cs_usage"; exit 1 ;;      # Conflict between --help and --header
9825        { { echo "$as_me:$LINENO: error: ambiguous option: $1
9826    Try \`$0 --help' for more information." >&5
9827    echo "$as_me: error: ambiguous option: $1
9828    Try \`$0 --help' for more information." >&2;}
9829       { (exit 1); exit 1; }; };;
9830      --help | --hel | -h )
9831        echo "$ac_cs_usage"; exit 0 ;;
9832      --debug | --d* | -d )
9833        debug=: ;;
9834      --file | --fil | --fi | --f )
9835        shift
9836        CONFIG_FILES="$CONFIG_FILES $1"
9837        ac_need_defaults=false;;
9838      --header | --heade | --head | --hea )
9839        shift
9840        CONFIG_HEADERS="$CONFIG_HEADERS $1"
9841        ac_need_defaults=false;;
9842    
9843      # This is an error.
9844      -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9845    Try \`$0 --help' for more information." >&5
9846    echo "$as_me: error: unrecognized option: $1
9847    Try \`$0 --help' for more information." >&2;}
9848       { (exit 1); exit 1; }; } ;;
9849    
9850      *) ac_config_targets="$ac_config_targets $1" ;;
9851    
9852    esac    esac
9853      shift
9854  done  done
9855    
9856  ac_given_srcdir=$srcdir  _ACEOF
9857    
 trap 'rm -fr `echo "makedefc windows/gcl.iss bin/gcl.bat h/gclincl.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15  
 EOF  
 cat >> $CONFIG_STATUS <<EOF  
9858    
 # 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%@VERSION@%$VERSION%g  
 s%@host@%$host%g  
 s%@host_alias@%$host_alias%g  
 s%@host_cpu@%$host_cpu%g  
 s%@host_vendor@%$host_vendor%g  
 s%@host_os@%$host_os%g  
 s%@PROCESSOR_FLAGS@%$PROCESSOR_FLAGS%g  
 s%@CC@%$CC%g  
 s%@CPP@%$CPP%g  
 s%@AWK@%$AWK%g  
 s%@MAKEINFO@%$MAKEINFO%g  
 s%@GMP@%$GMP%g  
 s%@GMPDIR@%$GMPDIR%g  
 s%@X_CFLAGS@%$X_CFLAGS%g  
 s%@X_PRE_LIBS@%$X_PRE_LIBS%g  
 s%@X_LIBS@%$X_LIBS%g  
 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g  
 s%@BUILD_BFD@%$BUILD_BFD%g  
 s%@LITTLE_END@%$LITTLE_END%g  
 s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g  
 s%@FLISP@%$FLISP%g  
 s%@SYSTEM@%$SYSTEM%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%@EXTRA_LOBJS@%$EXTRA_LOBJS%g  
 s%@use@%$use%g  
9859    
9860    
9861    
9862    cat >>$CONFIG_STATUS <<\_ACEOF
9863    for ac_config_target in $ac_config_targets
9864    do
9865      case "$ac_config_target" in
9866      # Handling of arguments.
9867      "makedefc" ) CONFIG_FILES="$CONFIG_FILES makedefc" ;;
9868      "windows/gcl.iss" ) CONFIG_FILES="$CONFIG_FILES windows/gcl.iss" ;;
9869      "h/gclincl.h" ) CONFIG_HEADERS="$CONFIG_HEADERS h/gclincl.h" ;;
9870      *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9871    echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9872       { (exit 1); exit 1; }; };;
9873      esac
9874    done
9875    
9876    # If the user did not use the arguments to specify the items to instantiate,
9877    # then the envvar interface is used.  Set only those that are not.
9878    # We use the long form for the default assignment because of an extremely
9879    # bizarre bug on SunOS 4.1.3.
9880    if $ac_need_defaults; then
9881      test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9882      test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9883    fi
9884    
9885    # Create a temporary directory, and hook for its removal unless debugging.
9886    $debug ||
9887    {
9888      trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9889      trap '{ (exit 1); exit 1; }' 1 2 13 15
9890    }
9891    
9892    # Create a (secure) tmp directory for tmp files.
9893    : ${TMPDIR=/tmp}
9894    {
9895      tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9896      test -n "$tmp" && test -d "$tmp"
9897    }  ||
9898    {
9899      tmp=$TMPDIR/cs$$-$RANDOM
9900      (umask 077 && mkdir $tmp)
9901    } ||
9902    {
9903       echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9904       { (exit 1); exit 1; }
9905    }
9906    
9907    _ACEOF
9908    
9909    cat >>$CONFIG_STATUS <<_ACEOF
9910    
9911    #
9912    # CONFIG_FILES section.
9913    #
9914    
9915    # No need to generate the scripts if there are no CONFIG_FILES.
9916    # This happens for instance when ./config.status config.h
9917    if test -n "\$CONFIG_FILES"; then
9918      # Protect against being on the right side of a sed subst in config.status.
9919      sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9920       s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9921    s,@SHELL@,$SHELL,;t t
9922    s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9923    s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9924    s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9925    s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9926    s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9927    s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9928    s,@exec_prefix@,$exec_prefix,;t t
9929    s,@prefix@,$prefix,;t t
9930    s,@program_transform_name@,$program_transform_name,;t t
9931    s,@bindir@,$bindir,;t t
9932    s,@sbindir@,$sbindir,;t t
9933    s,@libexecdir@,$libexecdir,;t t
9934    s,@datadir@,$datadir,;t t
9935    s,@sysconfdir@,$sysconfdir,;t t
9936    s,@sharedstatedir@,$sharedstatedir,;t t
9937    s,@localstatedir@,$localstatedir,;t t
9938    s,@libdir@,$libdir,;t t
9939    s,@includedir@,$includedir,;t t
9940    s,@oldincludedir@,$oldincludedir,;t t
9941    s,@infodir@,$infodir,;t t
9942    s,@mandir@,$mandir,;t t
9943    s,@build_alias@,$build_alias,;t t
9944    s,@host_alias@,$host_alias,;t t
9945    s,@target_alias@,$target_alias,;t t
9946    s,@DEFS@,$DEFS,;t t
9947    s,@ECHO_C@,$ECHO_C,;t t
9948    s,@ECHO_N@,$ECHO_N,;t t
9949    s,@ECHO_T@,$ECHO_T,;t t
9950    s,@LIBS@,$LIBS,;t t
9951    s,@VERSION@,$VERSION,;t t
9952    s,@build@,$build,;t t
9953    s,@build_cpu@,$build_cpu,;t t
9954    s,@build_vendor@,$build_vendor,;t t
9955    s,@build_os@,$build_os,;t t
9956    s,@host@,$host,;t t
9957    s,@host_cpu@,$host_cpu,;t t
9958    s,@host_vendor@,$host_vendor,;t t
9959    s,@host_os@,$host_os,;t t
9960    s,@PROCESSOR_FLAGS@,$PROCESSOR_FLAGS,;t t
9961    s,@CC@,$CC,;t t
9962    s,@CFLAGS@,$CFLAGS,;t t
9963    s,@LDFLAGS@,$LDFLAGS,;t t
9964    s,@CPPFLAGS@,$CPPFLAGS,;t t
9965    s,@ac_ct_CC@,$ac_ct_CC,;t t
9966    s,@EXEEXT@,$EXEEXT,;t t
9967    s,@OBJEXT@,$OBJEXT,;t t
9968    s,@CPP@,$CPP,;t t
9969    s,@AWK@,$AWK,;t t
9970    s,@MAKEINFO@,$MAKEINFO,;t t
9971    s,@GMP@,$GMP,;t t
9972    s,@GMPDIR@,$GMPDIR,;t t
9973    s,@X_CFLAGS@,$X_CFLAGS,;t t
9974    s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9975    s,@X_LIBS@,$X_LIBS,;t t
9976    s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9977    s,@BUILD_BFD@,$BUILD_BFD,;t t
9978    s,@LITTLE_END@,$LITTLE_END,;t t
9979    s,@HAVE_LONG_LONG@,$HAVE_LONG_LONG,;t t
9980    s,@FLISP@,$FLISP,;t t
9981    s,@SYSTEM@,$SYSTEM,;t t
9982    s,@PAGEWIDTH@,$PAGEWIDTH,;t t
9983    s,@RL_OBJS@,$RL_OBJS,;t t
9984    s,@RL_LIB@,$RL_LIB,;t t
9985    s,@NO_PROFILE@,$NO_PROFILE,;t t
9986    s,@HAVE_SETENV@,$HAVE_SETENV,;t t
9987    s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t
9988    s,@USE_CLEANUP@,$USE_CLEANUP,;t t
9989    s,@ENDIAN_ALREADY_DEFINED@,$ENDIAN_ALREADY_DEFINED,;t t
9990    s,@HAVE_SV_ONSTACK@,$HAVE_SV_ONSTACK,;t t
9991    s,@HAVE_SIGSYS@,$HAVE_SIGSYS,;t t
9992    s,@HAVE_SIGEMT@,$HAVE_SIGEMT,;t t
9993    s,@EMACS@,$EMACS,;t t
9994    s,@EMACS_SITE_LISP@,$EMACS_SITE_LISP,;t t
9995    s,@EMACS_DEFAULT_EL@,$EMACS_DEFAULT_EL,;t t
9996    s,@INFO_DIR@,$INFO_DIR,;t t
9997    s,@TCLSH@,$TCLSH,;t t
9998    s,@TK_CONFIG_PREFIX@,$TK_CONFIG_PREFIX,;t t
9999    s,@TK_LIBRARY@,$TK_LIBRARY,;t t
10000    s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
10001    s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
10002    s,@TK_INCLUDE@,$TK_INCLUDE,;t t
10003    s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
10004    s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
10005    s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
10006    s,@TK_XLIBSW@,$TK_XLIBSW,;t t
10007    s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
10008    s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
10009    s,@TCL_LIBS@,$TCL_LIBS,;t t
10010    s,@NOTIFY@,$NOTIFY,;t t
10011    s,@BROKEN_O4_OPT@,$BROKEN_O4_OPT,;t t
10012    s,@FINAL_CFLAGS@,$FINAL_CFLAGS,;t t
10013    s,@O3FLAGS@,$O3FLAGS,;t t
10014    s,@O2FLAGS@,$O2FLAGS,;t t
10015    s,@EXTRA_LOBJS@,$EXTRA_LOBJS,;t t
10016    s,@use@,$use,;t t
10017  CEOF  CEOF
 EOF  
10018    
10019  cat >> $CONFIG_STATUS <<\EOF  _ACEOF
10020    
10021  # Split the substitutions into bite-sized pieces for seds with    cat >>$CONFIG_STATUS <<\_ACEOF
10022  # small command number limits, like on Digital OSF/1 and HP-UX.    # Split the substitutions into bite-sized pieces for seds with
10023  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.
10024  ac_file=1 # Number of current file.    ac_max_sed_lines=48
10025  ac_beg=1 # First line for current file.    ac_sed_frag=1 # Number of current file.
10026  ac_end=$ac_max_sed_cmds # Line after last line for current file.    ac_beg=1 # First line for current file.
10027  ac_more_lines=:    ac_end=$ac_max_sed_lines # Line after last line for current file.
10028  ac_sed_cmds=""    ac_more_lines=:
10029  while $ac_more_lines; do    ac_sed_cmds=
10030    if test $ac_beg -gt 1; then    while $ac_more_lines; do
10031      sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file      if test $ac_beg -gt 1; then
10032    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"  
10033      else      else
10034        ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"        sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10035      fi      fi
10036      ac_file=`expr $ac_file + 1`      if test ! -s $tmp/subs.frag; then
10037      ac_beg=$ac_end        ac_more_lines=false
10038      ac_end=`expr $ac_end + $ac_max_sed_cmds`      else
10039          # The purpose of the label and of the branching condition is to
10040          # speed up the sed processing (if there are no `@' at all, there
10041          # is no need to browse any of the substitutions).
10042          # These are the two extra sed commands mentioned above.
10043          (echo ':t
10044      /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10045          if test -z "$ac_sed_cmds"; then
10046            ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10047          else
10048            ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10049          fi
10050          ac_sed_frag=`expr $ac_sed_frag + 1`
10051          ac_beg=$ac_end
10052          ac_end=`expr $ac_end + $ac_max_sed_lines`
10053        fi
10054      done
10055      if test -z "$ac_sed_cmds"; then
10056        ac_sed_cmds=cat
10057    fi    fi
10058  done  fi # test -n "$CONFIG_FILES"
 if test -z "$ac_sed_cmds"; then  
   ac_sed_cmds=cat  
 fi  
 EOF  
   
 cat >> $CONFIG_STATUS <<EOF  
10059    
10060  CONFIG_FILES=\${CONFIG_FILES-"makedefc windows/gcl.iss bin/gcl.bat"}  _ACEOF
10061  EOF  cat >>$CONFIG_STATUS <<\_ACEOF
10062  cat >> $CONFIG_STATUS <<\EOF  for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then  
10063    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10064    case "$ac_file" in    case $ac_file in
10065    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
10066         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
10067    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10068            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10069      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10070            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10071      * )   ac_file_in=$ac_file.in ;;
10072    esac    esac
10073    
10074    # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10075      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10076    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10077             X"$ac_file" : 'X\(//\)[^/]' \| \
10078             X"$ac_file" : 'X\(//\)$' \| \
10079             X"$ac_file" : 'X\(/\)' \| \
10080             .     : '\(.\)' 2>/dev/null ||
10081    echo X"$ac_file" |
10082        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10083              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10084              /^X\(\/\/\)$/{ s//\1/; q; }
10085              /^X\(\/\).*/{ s//\1/; q; }
10086              s/.*/./; q'`
10087      { case "$ac_dir" in
10088      [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10089      *)                      as_incr_dir=.;;
10090    esac
10091    as_dummy="$ac_dir"
10092    for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10093      case $as_mkdir_dir in
10094        # Skip DOS drivespec
10095        ?:) as_incr_dir=$as_mkdir_dir ;;
10096        *)
10097          as_incr_dir=$as_incr_dir/$as_mkdir_dir
10098          test -d "$as_incr_dir" ||
10099            mkdir "$as_incr_dir" ||
10100            { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10101    echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10102       { (exit 1); exit 1; }; }
10103        ;;
10104      esac
10105    done; }
10106    
10107    # Remove last slash and all that follows it.  Not all systems have dirname.    ac_builddir=.
   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"  
     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"  
     # A "../" for each directory in $ac_dir_suffix.  
     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`  
   else  
     ac_dir_suffix= ac_dots=  
   fi  
10108    
10109    case "$ac_given_srcdir" in  if test "$ac_dir" != .; then
10110    .)  srcdir=.    ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10111        if test -z "$ac_dots"; then top_srcdir=.    # A "../" for each directory in $ac_dir_suffix.
10112        else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;    ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10113    /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;  else
10114      ac_dir_suffix= ac_top_builddir=
10115    fi
10116    
10117    case $srcdir in
10118      .)  # No --srcdir option.  We are building in place.
10119        ac_srcdir=.
10120        if test -z "$ac_top_builddir"; then
10121           ac_top_srcdir=.
10122        else
10123           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10124        fi ;;
10125      [\\/]* | ?:[\\/]* )  # Absolute path.
10126        ac_srcdir=$srcdir$ac_dir_suffix;
10127        ac_top_srcdir=$srcdir ;;
10128    *) # Relative path.    *) # Relative path.
10129      srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10130      top_srcdir="$ac_dots$ac_given_srcdir" ;;      ac_top_srcdir=$ac_top_builddir$srcdir ;;
10131    esac  esac
10132    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10133    # absolute.
10134    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10135    ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10136    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10137    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10138    
10139    
   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  
10140    
10141    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
10142    sed -e "$ac_comsub      { echo "$as_me:$LINENO: creating $ac_file" >&5
10143  s%@configure_input@%$configure_input%g  echo "$as_me: creating $ac_file" >&6;}
10144  s%@srcdir@%$srcdir%g      rm -f "$ac_file"
10145  s%@top_srcdir@%$top_srcdir%g    fi
10146  " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file    # Let's still pretend it is `configure' which instantiates (i.e., don't
10147  fi; done    # use $as_me), people would be surprised to read:
10148  rm -f conftest.s*    #    /* config.h.  Generated by config.status.  */
10149      if test x"$ac_file" = x-; then
10150        configure_input=
10151      else
10152        configure_input="$ac_file.  "
10153      fi
10154      configure_input=$configure_input"Generated from `echo $ac_file_in |
10155                                         sed 's,.*/,,'` by configure."
10156    
10157      # First look for the input files in the build tree, otherwise in the
10158      # src tree.
10159      ac_file_inputs=`IFS=:
10160        for f in $ac_file_in; do
10161          case $f in
10162          -) echo $tmp/stdin ;;
10163          [\\/$]*)
10164             # Absolute (can't be DOS-style, as IFS=:)
10165             test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10166    echo "$as_me: error: cannot find input file: $f" >&2;}
10167       { (exit 1); exit 1; }; }
10168             echo $f;;
10169          *) # Relative
10170             if test -f "$f"; then
10171               # Build tree
10172               echo $f
10173             elif test -f "$srcdir/$f"; then
10174               # Source tree
10175               echo $srcdir/$f
10176             else
10177               # /dev/null tree
10178               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10179    echo "$as_me: error: cannot find input file: $f" >&2;}
10180       { (exit 1); exit 1; }; }
10181             fi;;
10182          esac
10183        done` || { (exit 1); exit 1; }
10184    _ACEOF
10185    cat >>$CONFIG_STATUS <<_ACEOF
10186      sed "$ac_vpsub
10187    $extrasub
10188    _ACEOF
10189    cat >>$CONFIG_STATUS <<\_ACEOF
10190    :t
10191    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10192    s,@configure_input@,$configure_input,;t t
10193    s,@srcdir@,$ac_srcdir,;t t
10194    s,@abs_srcdir@,$ac_abs_srcdir,;t t
10195    s,@top_srcdir@,$ac_top_srcdir,;t t
10196    s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10197    s,@builddir@,$ac_builddir,;t t
10198    s,@abs_builddir@,$ac_abs_builddir,;t t
10199    s,@top_builddir@,$ac_top_builddir,;t t
10200    s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10201    " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10202      rm -f $tmp/stdin
10203      if test x"$ac_file" != x-; then
10204        mv $tmp/out $ac_file
10205      else
10206        cat $tmp/out
10207        rm -f $tmp/out
10208      fi
10209    
10210    done
10211    _ACEOF
10212    cat >>$CONFIG_STATUS <<\_ACEOF
10213    
10214    #
10215    # CONFIG_HEADER section.
10216    #
10217    
10218  # 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
10219  # 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.
10220  #  #
10221  # ac_d sets the value in "#define NAME VALUE" lines.  # ac_d sets the value in "#define NAME VALUE" lines.
10222  ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'  ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10223  ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'  ac_dB='[        ].*$,\1#\2'
10224  ac_dC='\3'  ac_dC=' '
10225  ac_dD='%g'  ac_dD=',;t'
10226  # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".  # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10227  ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10228  ac_uB='\([      ]\)%\1#\2define\3'  ac_uB='$,\1#\2define\3'
10229  ac_uC=' '  ac_uC=' '
10230  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'  
10231    
10232  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  
10233    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10234    case "$ac_file" in    case $ac_file in
10235    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
10236         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
10237    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10238            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10239      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10240            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10241      * )   ac_file_in=$ac_file.in ;;
10242    esac    esac
10243    
10244    echo creating $ac_file    test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10245    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  
10246    
10247  # Transform confdefs.h into a sed script conftest.vals that substitutes    # First look for the input files in the build tree, otherwise in the
10248  # the proper values into config.h.in to produce config.h.  And first:    # src tree.
10249  # Protect against being on the right side of a sed subst in config.status.    ac_file_inputs=`IFS=:
10250  # Protect against being in an unquoted here document in config.status.      for f in $ac_file_in; do
10251  rm -f conftest.vals        case $f in
10252  cat > conftest.hdr <<\EOF        -) echo $tmp/stdin ;;
10253  s/[\\&%]/\\&/g        [\\/$]*)
10254  s%[\\$`]%\\&%g           # Absolute (can't be DOS-style, as IFS=:)
10255  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
10256  s%ac_d%ac_u%gp  echo "$as_me: error: cannot find input file: $f" >&2;}
10257  s%ac_u%ac_e%gp     { (exit 1); exit 1; }; }
10258  EOF           echo $f;;
10259  sed -n -f conftest.hdr confdefs.h > conftest.vals        *) # Relative
10260  rm -f conftest.hdr           if test -f "$f"; then
10261               # Build tree
10262               echo $f
10263             elif test -f "$srcdir/$f"; then
10264               # Source tree
10265               echo $srcdir/$f
10266             else
10267               # /dev/null tree
10268               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10269    echo "$as_me: error: cannot find input file: $f" >&2;}
10270       { (exit 1); exit 1; }; }
10271             fi;;
10272          esac
10273        done` || { (exit 1); exit 1; }
10274      # Remove the trailing spaces.
10275      sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
10276    
10277    _ACEOF
10278    
10279    # Transform confdefs.h into two sed scripts, `conftest.defines' and
10280    # `conftest.undefs', that substitutes the proper values into
10281    # config.h.in to produce config.h.  The first handles `#define'
10282    # templates, and the second `#undef' templates.
10283    # And first: Protect against being on the right side of a sed subst in
10284    # config.status.  Protect against being in an unquoted here document
10285    # in config.status.
10286    rm -f conftest.defines conftest.undefs
10287    # Using a here document instead of a string reduces the quoting nightmare.
10288    # Putting comments in sed scripts is not portable.
10289    #
10290    # `end' is used to avoid that the second main sed command (meant for
10291    # 0-ary CPP macros) applies to n-ary macro definitions.
10292    # See the Autoconf documentation for `clear'.
10293    cat >confdef2sed.sed <<\_ACEOF
10294    s/[\\&,]/\\&/g
10295    s,[\\$`],\\&,g
10296    t clear
10297    : clear
10298    s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10299    t end
10300    s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10301    : end
10302    _ACEOF
10303    # If some macros were called several times there might be several times
10304    # the same #defines, which is useless.  Nevertheless, we may not want to
10305    # sort them, since we want the *last* AC-DEFINE to be honored.
10306    uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10307    sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10308    rm -f confdef2sed.sed
10309    
10310  # This sed command replaces #undef with comments.  This is necessary, for  # This sed command replaces #undef with comments.  This is necessary, for
10311  # example, in the case of _POSIX_SOURCE, which is predefined and required  # example, in the case of _POSIX_SOURCE, which is predefined and required
10312  # on some systems where configure will not decide to define it.  # on some systems where configure will not decide to define it.
10313  cat >> conftest.vals <<\EOF  cat >>conftest.undefs <<\_ACEOF
10314  s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%  s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10315  EOF  _ACEOF
10316    
10317  # Break up conftest.vals because some shells have a limit on  # Break up conftest.defines because some shells have a limit on the size
10318  # the size of here documents, and old seds have small limits too.  # of here documents, and old seds have small limits too (100 cmds).
10319    echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10320    echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10321    echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10322    echo '  :' >>$CONFIG_STATUS
10323    rm -f conftest.tail
10324    while grep . conftest.defines >/dev/null
10325    do
10326      # Write a limited-size here document to $tmp/defines.sed.
10327      echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10328      # Speed up: don't consider the non `#define' lines.
10329      echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
10330      # Work around the forget-to-reset-the-flag bug.
10331      echo 't clr' >>$CONFIG_STATUS
10332      echo ': clr' >>$CONFIG_STATUS
10333      sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10334      echo 'CEOF
10335      sed -f $tmp/defines.sed $tmp/in >$tmp/out
10336      rm -f $tmp/in
10337      mv $tmp/out $tmp/in
10338    ' >>$CONFIG_STATUS
10339      sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10340      rm -f conftest.defines
10341      mv conftest.tail conftest.defines
10342    done
10343    rm -f conftest.defines
10344    echo '  fi # egrep' >>$CONFIG_STATUS
10345    echo >>$CONFIG_STATUS
10346    
10347    # Break up conftest.undefs because some shells have a limit on the size
10348    # of here documents, and old seds have small limits too (100 cmds).
10349    echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10350  rm -f conftest.tail  rm -f conftest.tail
10351  while :  while grep . conftest.undefs >/dev/null
10352  do  do
10353    ac_lines=`grep -c . conftest.vals`    # Write a limited-size here document to $tmp/undefs.sed.
10354    # grep -c gives empty output for an empty file on some AIX systems.    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10355    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi    # Speed up: don't consider the non `#undef'
10356    # Write a limited-size here document to conftest.frag.    echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10357    echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS    # Work around the forget-to-reset-the-flag bug.
10358    sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS    echo 't clr' >>$CONFIG_STATUS
10359      echo ': clr' >>$CONFIG_STATUS
10360      sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10361    echo 'CEOF    echo 'CEOF
10362    sed -f conftest.frag conftest.in > conftest.out    sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10363    rm -f conftest.in    rm -f $tmp/in
10364    mv conftest.out conftest.in    mv $tmp/out $tmp/in
10365  ' >> $CONFIG_STATUS  ' >>$CONFIG_STATUS
10366    sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail    sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10367    rm -f conftest.vals    rm -f conftest.undefs
10368    mv conftest.tail conftest.vals    mv conftest.tail conftest.undefs
10369  done  done
10370  rm -f conftest.vals  rm -f conftest.undefs
10371    
10372  cat >> $CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\_ACEOF
10373    rm -f conftest.frag conftest.h    # Let's still pretend it is `configure' which instantiates (i.e., don't
10374    echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h    # use $as_me), people would be surprised to read:
10375    cat conftest.in >> conftest.h    #    /* config.h.  Generated by config.status.  */
10376    rm -f conftest.in    if test x"$ac_file" = x-; then
10377    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  
10378    else    else
10379      # 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  
10380    fi    fi
10381  fi; done    cat $tmp/in >>$tmp/config.h
10382      rm -f $tmp/in
10383      if test x"$ac_file" != x-; then
10384        if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10385          { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10386    echo "$as_me: $ac_file is unchanged" >&6;}
10387        else
10388          ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10389    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10390             X"$ac_file" : 'X\(//\)[^/]' \| \
10391             X"$ac_file" : 'X\(//\)$' \| \
10392             X"$ac_file" : 'X\(/\)' \| \
10393             .     : '\(.\)' 2>/dev/null ||
10394    echo X"$ac_file" |
10395        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10396              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10397              /^X\(\/\/\)$/{ s//\1/; q; }
10398              /^X\(\/\).*/{ s//\1/; q; }
10399              s/.*/./; q'`
10400          { case "$ac_dir" in
10401      [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10402      *)                      as_incr_dir=.;;
10403    esac
10404    as_dummy="$ac_dir"
10405    for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10406      case $as_mkdir_dir in
10407        # Skip DOS drivespec
10408        ?:) as_incr_dir=$as_mkdir_dir ;;
10409        *)
10410          as_incr_dir=$as_incr_dir/$as_mkdir_dir
10411          test -d "$as_incr_dir" ||
10412            mkdir "$as_incr_dir" ||
10413            { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10414    echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10415       { (exit 1); exit 1; }; }
10416        ;;
10417      esac
10418    done; }
10419    
10420  EOF        rm -f $ac_file
10421  cat >> $CONFIG_STATUS <<EOF        mv $tmp/config.h $ac_file
10422        fi
10423      else
10424        cat $tmp/config.h
10425        rm -f $tmp/config.h
10426      fi
10427    done
10428    _ACEOF
10429    
10430  EOF  cat >>$CONFIG_STATUS <<\_ACEOF
 cat >> $CONFIG_STATUS <<\EOF  
10431    
10432  exit 0  { (exit 0); exit 0; }
10433  EOF  _ACEOF
10434  chmod +x $CONFIG_STATUS  chmod +x $CONFIG_STATUS
10435  rm -fr confdefs* $ac_clean_files  ac_clean_files=$ac_clean_files_save
10436  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1  
10437    
10438    # configure is writing to config.log, and then calls config.status.
10439    # config.status does its own redirection, appending to config.log.
10440    # Unfortunately, on DOS this fails, as config.log is still kept open
10441    # by configure, so config.status won't be able to write to it; its
10442    # output is simply discarded.  So we exec the FD to /dev/null,
10443    # effectively closing config.log, so it can be properly (re)opened and
10444    # appended to by config.status.  When coming back to configure, we
10445    # need to make the FD available again.
10446    if test "$no_create" != yes; then
10447      ac_cs_success=:
10448      exec 5>/dev/null
10449      $SHELL $CONFIG_STATUS || ac_cs_success=false
10450      exec 5>>config.log
10451      # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10452      # would make configure fail if this is the last instruction.
10453      $ac_cs_success || { (exit 1); exit 1; }
10454    fi
10455    
10456    echo makedefc    echo makedefc
10457    cat makedefc    cat makedefc

Legend:
Removed from v.1.107  
changed lines
  Added in v.1.108

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