source: vis_dev/vis-2.3/configure @ 74

Last change on this file since 74 was 14, checked in by cecile, 13 years ago

vis2.3

  • Property svn:executable set to *
File size: 179.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57.
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
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68         X"$0" : 'X\(//\)$' \| \
69         X"$0" : 'X\(/\)$' \| \
70         .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73          /^X\/\(\/\/\)$/{ s//\1/; q; }
74          /^X\/\(\/\).*/{ s//\1/; q; }
75          s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136         case $as_dir in
137         /*)
138           if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146             CONFIG_SHELL=$as_dir/$as_base
147             export CONFIG_SHELL
148             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149           fi;;
150         esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='      ' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS="   $as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
253ac_default_prefix=/usr/local
254ac_config_libobj_dir=.
255cross_compiling=no
256subdirs=
257MFLAGS=
258MAKEFLAGS=
259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete.  It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
266# Identity of this package.
267PACKAGE_NAME=
268PACKAGE_TARNAME=
269PACKAGE_VERSION=
270PACKAGE_STRING=
271PACKAGE_BUGREPORT=
272
273ac_unique_file="src/cmd/cmd.h"
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288#  include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293#  include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304#  include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS glulibdir gluincdir vislibdir local_srcdir BDDLIB ZCHAFF AR RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINKER PLINKER LEX LEXLIB LEX_OUTPUT_ROOT YACC CPP EGREP LIBDIRS LIBOBJS AWK LTLIBOBJS'
312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
355  # If the previous option needs an argument, assign it.
356  if test -n "$ac_prev"; then
357    eval "$ac_prev=\$ac_option"
358    ac_prev=
359    continue
360  fi
361
362  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364  # Accept the important Cygnus configure options, so we can diagnose typos.
365
366  case $ac_option in
367
368  -bindir | --bindir | --bindi | --bind | --bin | --bi)
369    ac_prev=bindir ;;
370  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371    bindir=$ac_optarg ;;
372
373  -build | --build | --buil | --bui | --bu)
374    ac_prev=build_alias ;;
375  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376    build_alias=$ac_optarg ;;
377
378  -cache-file | --cache-file | --cache-fil | --cache-fi \
379  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380    ac_prev=cache_file ;;
381  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383    cache_file=$ac_optarg ;;
384
385  --config-cache | -C)
386    cache_file=config.cache ;;
387
388  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389    ac_prev=datadir ;;
390  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391  | --da=*)
392    datadir=$ac_optarg ;;
393
394  -disable-* | --disable-*)
395    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396    # Reject names that are not valid shell variable names.
397    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399   { (exit 1); exit 1; }; }
400    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401    eval "enable_$ac_feature=no" ;;
402
403  -enable-* | --enable-*)
404    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405    # Reject names that are not valid shell variable names.
406    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408   { (exit 1); exit 1; }; }
409    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410    case $ac_option in
411      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412      *) ac_optarg=yes ;;
413    esac
414    eval "enable_$ac_feature='$ac_optarg'" ;;
415
416  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418  | --exec | --exe | --ex)
419    ac_prev=exec_prefix ;;
420  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422  | --exec=* | --exe=* | --ex=*)
423    exec_prefix=$ac_optarg ;;
424
425  -gas | --gas | --ga | --g)
426    # Obsolete; use --with-gas.
427    with_gas=yes ;;
428
429  -help | --help | --hel | --he | -h)
430    ac_init_help=long ;;
431  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432    ac_init_help=recursive ;;
433  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434    ac_init_help=short ;;
435
436  -host | --host | --hos | --ho)
437    ac_prev=host_alias ;;
438  -host=* | --host=* | --hos=* | --ho=*)
439    host_alias=$ac_optarg ;;
440
441  -includedir | --includedir | --includedi | --included | --include \
442  | --includ | --inclu | --incl | --inc)
443    ac_prev=includedir ;;
444  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445  | --includ=* | --inclu=* | --incl=* | --inc=*)
446    includedir=$ac_optarg ;;
447
448  -infodir | --infodir | --infodi | --infod | --info | --inf)
449    ac_prev=infodir ;;
450  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451    infodir=$ac_optarg ;;
452
453  -libdir | --libdir | --libdi | --libd)
454    ac_prev=libdir ;;
455  -libdir=* | --libdir=* | --libdi=* | --libd=*)
456    libdir=$ac_optarg ;;
457
458  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459  | --libexe | --libex | --libe)
460    ac_prev=libexecdir ;;
461  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462  | --libexe=* | --libex=* | --libe=*)
463    libexecdir=$ac_optarg ;;
464
465  -localstatedir | --localstatedir | --localstatedi | --localstated \
466  | --localstate | --localstat | --localsta | --localst \
467  | --locals | --local | --loca | --loc | --lo)
468    ac_prev=localstatedir ;;
469  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472    localstatedir=$ac_optarg ;;
473
474  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475    ac_prev=mandir ;;
476  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477    mandir=$ac_optarg ;;
478
479  -nfp | --nfp | --nf)
480    # Obsolete; use --without-fp.
481    with_fp=no ;;
482
483  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484  | --no-cr | --no-c | -n)
485    no_create=yes ;;
486
487  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489    no_recursion=yes ;;
490
491  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493  | --oldin | --oldi | --old | --ol | --o)
494    ac_prev=oldincludedir ;;
495  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498    oldincludedir=$ac_optarg ;;
499
500  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501    ac_prev=prefix ;;
502  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503    prefix=$ac_optarg ;;
504
505  -program-prefix | --program-prefix | --program-prefi | --program-pref \
506  | --program-pre | --program-pr | --program-p)
507    ac_prev=program_prefix ;;
508  -program-prefix=* | --program-prefix=* | --program-prefi=* \
509  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510    program_prefix=$ac_optarg ;;
511
512  -program-suffix | --program-suffix | --program-suffi | --program-suff \
513  | --program-suf | --program-su | --program-s)
514    ac_prev=program_suffix ;;
515  -program-suffix=* | --program-suffix=* | --program-suffi=* \
516  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517    program_suffix=$ac_optarg ;;
518
519  -program-transform-name | --program-transform-name \
520  | --program-transform-nam | --program-transform-na \
521  | --program-transform-n | --program-transform- \
522  | --program-transform | --program-transfor \
523  | --program-transfo | --program-transf \
524  | --program-trans | --program-tran \
525  | --progr-tra | --program-tr | --program-t)
526    ac_prev=program_transform_name ;;
527  -program-transform-name=* | --program-transform-name=* \
528  | --program-transform-nam=* | --program-transform-na=* \
529  | --program-transform-n=* | --program-transform-=* \
530  | --program-transform=* | --program-transfor=* \
531  | --program-transfo=* | --program-transf=* \
532  | --program-trans=* | --program-tran=* \
533  | --progr-tra=* | --program-tr=* | --program-t=*)
534    program_transform_name=$ac_optarg ;;
535
536  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537  | -silent | --silent | --silen | --sile | --sil)
538    silent=yes ;;
539
540  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541    ac_prev=sbindir ;;
542  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543  | --sbi=* | --sb=*)
544    sbindir=$ac_optarg ;;
545
546  -sharedstatedir | --sharedstatedir | --sharedstatedi \
547  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548  | --sharedst | --shareds | --shared | --share | --shar \
549  | --sha | --sh)
550    ac_prev=sharedstatedir ;;
551  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554  | --sha=* | --sh=*)
555    sharedstatedir=$ac_optarg ;;
556
557  -site | --site | --sit)
558    ac_prev=site ;;
559  -site=* | --site=* | --sit=*)
560    site=$ac_optarg ;;
561
562  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563    ac_prev=srcdir ;;
564  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565    srcdir=$ac_optarg ;;
566
567  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568  | --syscon | --sysco | --sysc | --sys | --sy)
569    ac_prev=sysconfdir ;;
570  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572    sysconfdir=$ac_optarg ;;
573
574  -target | --target | --targe | --targ | --tar | --ta | --t)
575    ac_prev=target_alias ;;
576  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577    target_alias=$ac_optarg ;;
578
579  -v | -verbose | --verbose | --verbos | --verbo | --verb)
580    verbose=yes ;;
581
582  -version | --version | --versio | --versi | --vers | -V)
583    ac_init_version=: ;;
584
585  -with-* | --with-*)
586    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587    # Reject names that are not valid shell variable names.
588    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589      { echo "$as_me: error: invalid package name: $ac_package" >&2
590   { (exit 1); exit 1; }; }
591    ac_package=`echo $ac_package| sed 's/-/_/g'`
592    case $ac_option in
593      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594      *) ac_optarg=yes ;;
595    esac
596    eval "with_$ac_package='$ac_optarg'" ;;
597
598  -without-* | --without-*)
599    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600    # Reject names that are not valid shell variable names.
601    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602      { echo "$as_me: error: invalid package name: $ac_package" >&2
603   { (exit 1); exit 1; }; }
604    ac_package=`echo $ac_package | sed 's/-/_/g'`
605    eval "with_$ac_package=no" ;;
606
607  --x)
608    # Obsolete; use --with-x.
609    with_x=yes ;;
610
611  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612  | --x-incl | --x-inc | --x-in | --x-i)
613    ac_prev=x_includes ;;
614  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616    x_includes=$ac_optarg ;;
617
618  -x-libraries | --x-libraries | --x-librarie | --x-librari \
619  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620    ac_prev=x_libraries ;;
621  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623    x_libraries=$ac_optarg ;;
624
625  -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627   { (exit 1); exit 1; }; }
628    ;;
629
630  *=*)
631    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632    # Reject names that are not valid shell variable names.
633    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635   { (exit 1); exit 1; }; }
636    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637    eval "$ac_envvar='$ac_optarg'"
638    export $ac_envvar ;;
639
640  *)
641    # FIXME: should be removed in autoconf 3.0.
642    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646    ;;
647
648  esac
649done
650
651if test -n "$ac_prev"; then
652  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653  { echo "$as_me: error: missing argument to $ac_option" >&2
654   { (exit 1); exit 1; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660  eval ac_val=$`echo $ac_var`
661  case $ac_val in
662    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664   { (exit 1); exit 1; }; };;
665  esac
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670              localstatedir libdir includedir oldincludedir infodir mandir
671do
672  eval ac_val=$`echo $ac_var`
673  case $ac_val in
674    [\\/$]* | ?:[\\/]* ) ;;
675    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676   { (exit 1); exit 1; }; };;
677  esac
678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
682# FIXME: To remove some day.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if test "x$host_alias" != x; then
689  if test "x$build_alias" = x; then
690    cross_compiling=maybe
691    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692    If a cross compiler is detected then cross compile mode will be used." >&2
693  elif test "x$build_alias" != "x$host_alias"; then
694    cross_compiling=yes
695  fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706  ac_srcdir_defaulted=yes
707  # Try the directory containing this script, then its parent.
708  ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710         X"$0" : 'X\(//\)[^/]' \| \
711         X"$0" : 'X\(//\)$' \| \
712         X"$0" : 'X\(/\)' \| \
713         .     : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717          /^X\(\/\/\)$/{ s//\1/; q; }
718          /^X\(\/\).*/{ s//\1/; q; }
719          s/.*/./; q'`
720  srcdir=$ac_confdir
721  if test ! -r $srcdir/$ac_unique_file; then
722    srcdir=..
723  fi
724else
725  ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728  if test "$ac_srcdir_defaulted" = yes; then
729    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730   { (exit 1); exit 1; }; }
731  else
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733   { (exit 1); exit 1; }; }
734  fi
735fi
736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738   { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768ac_env_CPP_set=${CPP+set}
769ac_env_CPP_value=$CPP
770ac_cv_env_CPP_set=${CPP+set}
771ac_cv_env_CPP_value=$CPP
772
773#
774# Report the --help message.
775#
776if test "$ac_init_help" = "long"; then
777  # Omit some internal or obsolete options to make the list less imposing.
778  # This message is too long to be a string in the A/UX 3.1 sh.
779  cat <<_ACEOF
780\`configure' configures this package to adapt to many kinds of systems.
781
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
790  -h, --help              display this help and exit
791      --help=short        display options specific to this package
792      --help=recursive    display the short help of all the included packages
793  -V, --version           display version information and exit
794  -q, --quiet, --silent   do not print \`checking...' messages
795      --cache-file=FILE   cache test results in FILE [disabled]
796  -C, --config-cache      alias for \`--cache-file=config.cache'
797  -n, --no-create         do not create output files
798      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800_ACEOF
801
802  cat <<_ACEOF
803Installation directories:
804  --prefix=PREFIX         install architecture-independent files in PREFIX
805                          [$ac_default_prefix]
806  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                          [PREFIX]
808
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine tuning of the installation directories:
817  --bindir=DIR           user executables [EPREFIX/bin]
818  --sbindir=DIR          system admin executables [EPREFIX/sbin]
819  --libexecdir=DIR       program executables [EPREFIX/libexec]
820  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824  --libdir=DIR           object code libraries [EPREFIX/lib]
825  --includedir=DIR       C header files [PREFIX/include]
826  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827  --infodir=DIR          info documentation [PREFIX/info]
828  --mandir=DIR           man documentation [PREFIX/man]
829_ACEOF
830
831  cat <<\_ACEOF
832
833System types:
834  --build=BUILD     configure for building on BUILD [guessed]
835  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
836  --target=TARGET   configure for building compilers for TARGET [HOST]
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841
842  cat <<\_ACEOF
843
844Optional Features:
845  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
846  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
847  --enable-gcc            Allow use of gcc if available
848  --enable-64             Use 64-bit pointers on 64-bit Alpha machines
849
850Optional Packages:
851  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
852  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
853  --with-glu-libdir=<libdir> Specify directories to search for the GLU library.
854                          Expects to find <libdir>/libglu.a
855  --with-glu-incdir=<incdir> Specify directories to search for the GLU headers
856  --with-vis-libdir=<libdir> Specify directories to search for the VIS
857                          and headers.  Defaults to \".\".
858                          Expects to find <libdir>/libvis.a
859  --with-local-srcdir=<srcdir> Specify the root directory to search for
860                          source for packages (the PKGS list).
861                          Expects to find, e.g., <srcdir>/tbl/tbl.c
862  --with-bdd=<bddPackage> Specify the BDD library to link against.
863                          Defaults to --with-bdd=cu.
864  --with-comp-mode=<mode> Specify a special compilation mode:
865                          optimize (the default): Produce optimized
866                                code, with symbol table information
867                                if supported on the platform/compiler,
868                                and without asserts.
869                          debug: Produce unoptimized code with symbol table
870                                information and asserts enabled
871                          purify: Unoptimized code linked with purify
872                          quantify: Optimized code without asserts
873                                linked with quantify
874
875Some influential environment variables:
876  CC          C compiler command
877  CFLAGS      C compiler flags
878  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
879              nonstandard directory <lib dir>
880  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
881              headers in a nonstandard directory <include dir>
882  CPP         C preprocessor
883
884Use these variables to override the choices made by `configure' or to help
885it to find libraries and programs with nonstandard names/locations.
886
887_ACEOF
888fi
889
890if test "$ac_init_help" = "recursive"; then
891  # If there are subdirs, report their specific --help.
892  ac_popdir=`pwd`
893  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894    test -d $ac_dir || continue
895    ac_builddir=.
896
897if test "$ac_dir" != .; then
898  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899  # A "../" for each directory in $ac_dir_suffix.
900  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901else
902  ac_dir_suffix= ac_top_builddir=
903fi
904
905case $srcdir in
906  .)  # No --srcdir option.  We are building in place.
907    ac_srcdir=.
908    if test -z "$ac_top_builddir"; then
909       ac_top_srcdir=.
910    else
911       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912    fi ;;
913  [\\/]* | ?:[\\/]* )  # Absolute path.
914    ac_srcdir=$srcdir$ac_dir_suffix;
915    ac_top_srcdir=$srcdir ;;
916  *) # Relative path.
917    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918    ac_top_srcdir=$ac_top_builddir$srcdir ;;
919esac
920# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
921# absolute.
922ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
923ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
924ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
925ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
926
927    cd $ac_dir
928    # Check for guested configure; otherwise get Cygnus style configure.
929    if test -f $ac_srcdir/configure.gnu; then
930      echo
931      $SHELL $ac_srcdir/configure.gnu  --help=recursive
932    elif test -f $ac_srcdir/configure; then
933      echo
934      $SHELL $ac_srcdir/configure  --help=recursive
935    elif test -f $ac_srcdir/configure.ac ||
936           test -f $ac_srcdir/configure.in; then
937      echo
938      $ac_configure --help
939    else
940      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
941    fi
942    cd $ac_popdir
943  done
944fi
945
946test -n "$ac_init_help" && exit 0
947if $ac_init_version; then
948  cat <<\_ACEOF
949
950Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
951Free Software Foundation, Inc.
952This configure script is free software; the Free Software Foundation
953gives unlimited permission to copy, distribute and modify it.
954_ACEOF
955  exit 0
956fi
957exec 5>config.log
958cat >&5 <<_ACEOF
959This file contains any messages produced by compilers while
960running configure, to aid debugging if configure makes a mistake.
961
962It was created by $as_me, which was
963generated by GNU Autoconf 2.57.  Invocation command line was
964
965  $ $0 $@
966
967_ACEOF
968{
969cat <<_ASUNAME
970## --------- ##
971## Platform. ##
972## --------- ##
973
974hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
975uname -m = `(uname -m) 2>/dev/null || echo unknown`
976uname -r = `(uname -r) 2>/dev/null || echo unknown`
977uname -s = `(uname -s) 2>/dev/null || echo unknown`
978uname -v = `(uname -v) 2>/dev/null || echo unknown`
979
980/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
981/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
982
983/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
984/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
985/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
986hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
987/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
988/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
989/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
990
991_ASUNAME
992
993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
994for as_dir in $PATH
995do
996  IFS=$as_save_IFS
997  test -z "$as_dir" && as_dir=.
998  echo "PATH: $as_dir"
999done
1000
1001} >&5
1002
1003cat >&5 <<_ACEOF
1004
1005
1006## ----------- ##
1007## Core tests. ##
1008## ----------- ##
1009
1010_ACEOF
1011
1012
1013# Keep a trace of the command line.
1014# Strip out --no-create and --no-recursion so they do not pile up.
1015# Strip out --silent because we don't want to record it for future runs.
1016# Also quote any args containing shell meta-characters.
1017# Make two passes to allow for proper duplicate-argument suppression.
1018ac_configure_args=
1019ac_configure_args0=
1020ac_configure_args1=
1021ac_sep=
1022ac_must_keep_next=false
1023for ac_pass in 1 2
1024do
1025  for ac_arg
1026  do
1027    case $ac_arg in
1028    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1029    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1030    | -silent | --silent | --silen | --sile | --sil)
1031      continue ;;
1032    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1033      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1034    esac
1035    case $ac_pass in
1036    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1037    2)
1038      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1039      if test $ac_must_keep_next = true; then
1040        ac_must_keep_next=false # Got value, back to normal.
1041      else
1042        case $ac_arg in
1043          *=* | --config-cache | -C | -disable-* | --disable-* \
1044          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1045          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1046          | -with-* | --with-* | -without-* | --without-* | --x)
1047            case "$ac_configure_args0 " in
1048              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1049            esac
1050            ;;
1051          -* ) ac_must_keep_next=true ;;
1052        esac
1053      fi
1054      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1055      # Get rid of the leading space.
1056      ac_sep=" "
1057      ;;
1058    esac
1059  done
1060done
1061$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1062$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1063
1064# When interrupted or exit'd, cleanup temporary files, and complete
1065# config.log.  We remove comments because anyway the quotes in there
1066# would cause problems or look ugly.
1067# WARNING: Be sure not to use single quotes in there, as some shells,
1068# such as our DU 5.0 friend, will then `close' the trap.
1069trap 'exit_status=$?
1070  # Save into config.log some information that might help in debugging.
1071  {
1072    echo
1073
1074    cat <<\_ASBOX
1075## ---------------- ##
1076## Cache variables. ##
1077## ---------------- ##
1078_ASBOX
1079    echo
1080    # The following way of writing the cache mishandles newlines in values,
1081{
1082  (set) 2>&1 |
1083    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1084    *ac_space=\ *)
1085      sed -n \
1086        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1087          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1088      ;;
1089    *)
1090      sed -n \
1091        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1092      ;;
1093    esac;
1094}
1095    echo
1096
1097    cat <<\_ASBOX
1098## ----------------- ##
1099## Output variables. ##
1100## ----------------- ##
1101_ASBOX
1102    echo
1103    for ac_var in $ac_subst_vars
1104    do
1105      eval ac_val=$`echo $ac_var`
1106      echo "$ac_var='"'"'$ac_val'"'"'"
1107    done | sort
1108    echo
1109
1110    if test -n "$ac_subst_files"; then
1111      cat <<\_ASBOX
1112## ------------- ##
1113## Output files. ##
1114## ------------- ##
1115_ASBOX
1116      echo
1117      for ac_var in $ac_subst_files
1118      do
1119        eval ac_val=$`echo $ac_var`
1120        echo "$ac_var='"'"'$ac_val'"'"'"
1121      done | sort
1122      echo
1123    fi
1124
1125    if test -s confdefs.h; then
1126      cat <<\_ASBOX
1127## ----------- ##
1128## confdefs.h. ##
1129## ----------- ##
1130_ASBOX
1131      echo
1132      sed "/^$/d" confdefs.h | sort
1133      echo
1134    fi
1135    test "$ac_signal" != 0 &&
1136      echo "$as_me: caught signal $ac_signal"
1137    echo "$as_me: exit $exit_status"
1138  } >&5
1139  rm -f core core.* *.core &&
1140  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1141    exit $exit_status
1142     ' 0
1143for ac_signal in 1 2 13 15; do
1144  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1145done
1146ac_signal=0
1147
1148# confdefs.h avoids OS command line length limits that DEFS can exceed.
1149rm -rf conftest* confdefs.h
1150# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1151echo >confdefs.h
1152
1153# Predefined preprocessor variables.
1154
1155cat >>confdefs.h <<_ACEOF
1156#define PACKAGE_NAME "$PACKAGE_NAME"
1157_ACEOF
1158
1159
1160cat >>confdefs.h <<_ACEOF
1161#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1162_ACEOF
1163
1164
1165cat >>confdefs.h <<_ACEOF
1166#define PACKAGE_VERSION "$PACKAGE_VERSION"
1167_ACEOF
1168
1169
1170cat >>confdefs.h <<_ACEOF
1171#define PACKAGE_STRING "$PACKAGE_STRING"
1172_ACEOF
1173
1174
1175cat >>confdefs.h <<_ACEOF
1176#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1177_ACEOF
1178
1179
1180# Let the site file select an alternate cache file if it wants to.
1181# Prefer explicitly selected file to automatically selected ones.
1182if test -z "$CONFIG_SITE"; then
1183  if test "x$prefix" != xNONE; then
1184    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1185  else
1186    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1187  fi
1188fi
1189for ac_site_file in $CONFIG_SITE; do
1190  if test -r "$ac_site_file"; then
1191    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1192echo "$as_me: loading site script $ac_site_file" >&6;}
1193    sed 's/^/| /' "$ac_site_file" >&5
1194    . "$ac_site_file"
1195  fi
1196done
1197
1198if test -r "$cache_file"; then
1199  # Some versions of bash will fail to source /dev/null (special
1200  # files actually), so we avoid doing that.
1201  if test -f "$cache_file"; then
1202    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1203echo "$as_me: loading cache $cache_file" >&6;}
1204    case $cache_file in
1205      [\\/]* | ?:[\\/]* ) . $cache_file;;
1206      *)                      . ./$cache_file;;
1207    esac
1208  fi
1209else
1210  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1211echo "$as_me: creating cache $cache_file" >&6;}
1212  >$cache_file
1213fi
1214
1215# Check that the precious variables saved in the cache have kept the same
1216# value.
1217ac_cache_corrupted=false
1218for ac_var in `(set) 2>&1 |
1219               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1220  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1221  eval ac_new_set=\$ac_env_${ac_var}_set
1222  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1223  eval ac_new_val="\$ac_env_${ac_var}_value"
1224  case $ac_old_set,$ac_new_set in
1225    set,)
1226      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1227echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1228      ac_cache_corrupted=: ;;
1229    ,set)
1230      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1231echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1232      ac_cache_corrupted=: ;;
1233    ,);;
1234    *)
1235      if test "x$ac_old_val" != "x$ac_new_val"; then
1236        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1237echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1238        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1239echo "$as_me:   former value:  $ac_old_val" >&2;}
1240        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1241echo "$as_me:   current value: $ac_new_val" >&2;}
1242        ac_cache_corrupted=:
1243      fi;;
1244  esac
1245  # Pass precious variables to config.status.
1246  if test "$ac_new_set" = set; then
1247    case $ac_new_val in
1248    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1250    *) ac_arg=$ac_var=$ac_new_val ;;
1251    esac
1252    case " $ac_configure_args " in
1253      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1254      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1255    esac
1256  fi
1257done
1258if $ac_cache_corrupted; then
1259  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1260echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1261  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1262echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1263   { (exit 1); exit 1; }; }
1264fi
1265
1266ac_ext=c
1267ac_cpp='$CPP $CPPFLAGS'
1268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1270ac_compiler_gnu=$ac_cv_c_compiler_gnu
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291# Look for install.sh, config.guess, and config.sub in the "helpers" dir
1292ac_aux_dir=
1293for ac_dir in helpers $srcdir/helpers; do
1294  if test -f $ac_dir/install-sh; then
1295    ac_aux_dir=$ac_dir
1296    ac_install_sh="$ac_aux_dir/install-sh -c"
1297    break
1298  elif test -f $ac_dir/install.sh; then
1299    ac_aux_dir=$ac_dir
1300    ac_install_sh="$ac_aux_dir/install.sh -c"
1301    break
1302  elif test -f $ac_dir/shtool; then
1303    ac_aux_dir=$ac_dir
1304    ac_install_sh="$ac_aux_dir/shtool install -c"
1305    break
1306  fi
1307done
1308if test -z "$ac_aux_dir"; then
1309  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in helpers $srcdir/helpers" >&5
1310echo "$as_me: error: cannot find install-sh or install.sh in helpers $srcdir/helpers" >&2;}
1311   { (exit 1); exit 1; }; }
1312fi
1313ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1314ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1315ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1316
1317
1318#----------------------------------------------------------------------
1319# Configuration options
1320#----------------------------------------------------------------------
1321
1322# Give the configurer a chance to set the location of the GLU tree
1323
1324
1325
1326# Check whether --with-glu-libdir or --without-glu-libdir was given.
1327if test "${with_glu_libdir+set}" = set; then
1328  withval="$with_glu_libdir"
1329  glulibdir=$withval
1330else
1331  glulibdir=""
1332fi;
1333
1334
1335
1336# Check whether --with-glu-incdir or --without-glu-incdir was given.
1337if test "${with_glu_incdir+set}" = set; then
1338  withval="$with_glu_incdir"
1339  gluincdir=$withval
1340else
1341  gluincdir=""
1342fi;
1343
1344# Give the configurer a chance to set a different location for the VIS
1345# headers and library
1346
1347
1348
1349# Check whether --with-vis-libdir or --without-vis-libdir was given.
1350if test "${with_vis_libdir+set}" = set; then
1351  withval="$with_vis_libdir"
1352  vislibdir=$withval
1353else
1354  vislibdir="."
1355fi;
1356
1357# Give the configurer a chance to set a different location for the VIS
1358# source.  When specified, "srcdir" points to "master" source, and
1359# "local_srcdir" points to the source under local development.
1360
1361
1362
1363# Check whether --with-local-srcdir or --without-local-srcdir was given.
1364if test "${with_local_srcdir+set}" = set; then
1365  withval="$with_local_srcdir"
1366  local_srcdir=$withval
1367else
1368  local_srcdir=$srcdir
1369fi;
1370
1371# Give the configurer a chance to set the BDD library
1372
1373
1374
1375# Check whether --with-bdd or --without-bdd was given.
1376if test "${with_bdd+set}" = set; then
1377  withval="$with_bdd"
1378  BDDLIB=$withval
1379else
1380  BDDLIB=cu
1381fi;
1382
1383#----------------------------------------------------------------------
1384# Checks for programs we need
1385#----------------------------------------------------------------------
1386# Extract the first word of "zchaff", so it can be a program name with args.
1387set dummy zchaff; ac_word=$2
1388echo "$as_me:$LINENO: checking for $ac_word" >&5
1389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1390if test "${ac_cv_path_ZCHAFF+set}" = set; then
1391  echo $ECHO_N "(cached) $ECHO_C" >&6
1392else
1393  case $ZCHAFF in
1394  [\\/]* | ?:[\\/]*)
1395  ac_cv_path_ZCHAFF="$ZCHAFF" # Let the user override the test with a path.
1396  ;;
1397  *)
1398  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1399for as_dir in $PATH
1400do
1401  IFS=$as_save_IFS
1402  test -z "$as_dir" && as_dir=.
1403  for ac_exec_ext in '' $ac_executable_extensions; do
1404  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1405    ac_cv_path_ZCHAFF="$as_dir/$ac_word$ac_exec_ext"
1406    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1407    break 2
1408  fi
1409done
1410done
1411
1412  ;;
1413esac
1414fi
1415ZCHAFF=$ac_cv_path_ZCHAFF
1416
1417if test -n "$ZCHAFF"; then
1418  echo "$as_me:$LINENO: result: $ZCHAFF" >&5
1419echo "${ECHO_T}$ZCHAFF" >&6
1420else
1421  echo "$as_me:$LINENO: result: no" >&5
1422echo "${ECHO_T}no" >&6
1423fi
1424
1425# Extract the first word of "ar", so it can be a program name with args.
1426set dummy ar; ac_word=$2
1427echo "$as_me:$LINENO: checking for $ac_word" >&5
1428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429if test "${ac_cv_path_AR+set}" = set; then
1430  echo $ECHO_N "(cached) $ECHO_C" >&6
1431else
1432  case $AR in
1433  [\\/]* | ?:[\\/]*)
1434  ac_cv_path_AR="$AR" # Let the user override the test with a path.
1435  ;;
1436  *)
1437  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438for as_dir in $PATH
1439do
1440  IFS=$as_save_IFS
1441  test -z "$as_dir" && as_dir=.
1442  for ac_exec_ext in '' $ac_executable_extensions; do
1443  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
1445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446    break 2
1447  fi
1448done
1449done
1450
1451  test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1452  ;;
1453esac
1454fi
1455AR=$ac_cv_path_AR
1456
1457if test -n "$AR"; then
1458  echo "$as_me:$LINENO: result: $AR" >&5
1459echo "${ECHO_T}$AR" >&6
1460else
1461  echo "$as_me:$LINENO: result: no" >&5
1462echo "${ECHO_T}no" >&6
1463fi
1464
1465if test -n "$ac_tool_prefix"; then
1466  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1467set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1468echo "$as_me:$LINENO: checking for $ac_word" >&5
1469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470if test "${ac_cv_prog_RANLIB+set}" = set; then
1471  echo $ECHO_N "(cached) $ECHO_C" >&6
1472else
1473  if test -n "$RANLIB"; then
1474  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1475else
1476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477for as_dir in $PATH
1478do
1479  IFS=$as_save_IFS
1480  test -z "$as_dir" && as_dir=.
1481  for ac_exec_ext in '' $ac_executable_extensions; do
1482  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1484    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485    break 2
1486  fi
1487done
1488done
1489
1490fi
1491fi
1492RANLIB=$ac_cv_prog_RANLIB
1493if test -n "$RANLIB"; then
1494  echo "$as_me:$LINENO: result: $RANLIB" >&5
1495echo "${ECHO_T}$RANLIB" >&6
1496else
1497  echo "$as_me:$LINENO: result: no" >&5
1498echo "${ECHO_T}no" >&6
1499fi
1500
1501fi
1502if test -z "$ac_cv_prog_RANLIB"; then
1503  ac_ct_RANLIB=$RANLIB
1504  # Extract the first word of "ranlib", so it can be a program name with args.
1505set dummy ranlib; ac_word=$2
1506echo "$as_me:$LINENO: checking for $ac_word" >&5
1507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1509  echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511  if test -n "$ac_ct_RANLIB"; then
1512  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1513else
1514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515for as_dir in $PATH
1516do
1517  IFS=$as_save_IFS
1518  test -z "$as_dir" && as_dir=.
1519  for ac_exec_ext in '' $ac_executable_extensions; do
1520  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521    ac_cv_prog_ac_ct_RANLIB="ranlib"
1522    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523    break 2
1524  fi
1525done
1526done
1527
1528  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1529fi
1530fi
1531ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1532if test -n "$ac_ct_RANLIB"; then
1533  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1534echo "${ECHO_T}$ac_ct_RANLIB" >&6
1535else
1536  echo "$as_me:$LINENO: result: no" >&5
1537echo "${ECHO_T}no" >&6
1538fi
1539
1540  RANLIB=$ac_ct_RANLIB
1541else
1542  RANLIB="$ac_cv_prog_RANLIB"
1543fi
1544
1545
1546# Make sure we can run config.sub.
1547$ac_config_sub sun4 >/dev/null 2>&1 ||
1548  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1549echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1550   { (exit 1); exit 1; }; }
1551
1552echo "$as_me:$LINENO: checking build system type" >&5
1553echo $ECHO_N "checking build system type... $ECHO_C" >&6
1554if test "${ac_cv_build+set}" = set; then
1555  echo $ECHO_N "(cached) $ECHO_C" >&6
1556else
1557  ac_cv_build_alias=$build_alias
1558test -z "$ac_cv_build_alias" &&
1559  ac_cv_build_alias=`$ac_config_guess`
1560test -z "$ac_cv_build_alias" &&
1561  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1562echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1563   { (exit 1); exit 1; }; }
1564ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1565  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1567   { (exit 1); exit 1; }; }
1568
1569fi
1570echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1571echo "${ECHO_T}$ac_cv_build" >&6
1572build=$ac_cv_build
1573build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578echo "$as_me:$LINENO: checking host system type" >&5
1579echo $ECHO_N "checking host system type... $ECHO_C" >&6
1580if test "${ac_cv_host+set}" = set; then
1581  echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
1583  ac_cv_host_alias=$host_alias
1584test -z "$ac_cv_host_alias" &&
1585  ac_cv_host_alias=$ac_cv_build_alias
1586ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1587  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1589   { (exit 1); exit 1; }; }
1590
1591fi
1592echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1593echo "${ECHO_T}$ac_cv_host" >&6
1594host=$ac_cv_host
1595host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598
1599
1600echo "$as_me:$LINENO: checking target system type" >&5
1601echo $ECHO_N "checking target system type... $ECHO_C" >&6
1602if test "${ac_cv_target+set}" = set; then
1603  echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605  ac_cv_target_alias=$target_alias
1606test "x$ac_cv_target_alias" = "x" &&
1607  ac_cv_target_alias=$ac_cv_host_alias
1608ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1609  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1610echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1611   { (exit 1); exit 1; }; }
1612
1613fi
1614echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1615echo "${ECHO_T}$ac_cv_target" >&6
1616target=$ac_cv_target
1617target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1620
1621
1622# The aliases save the names the user supplied, while $host etc.
1623# will get canonicalized.
1624test -n "$target_alias" &&
1625  test "$program_prefix$program_suffix$program_transform_name" = \
1626    NONENONEs,x,x, &&
1627  program_prefix=${target_alias}-
1628
1629
1630# Determine the name of the C compiler we're going to use
1631
1632# Check whether --enable-gcc or --disable-gcc was given.
1633if test "${enable_gcc+set}" = set; then
1634  enableval="$enable_gcc"
1635  gcc_ok=$enableval
1636else
1637  gcc_ok=no
1638fi;
1639
1640# We cannot set CC=g++ directly because many configuration test programs
1641# do not compile with g++.  Hence, when the user specifies --enable-gcc=g++,
1642# we set CC=gcc during configuration, and then CC=g++ at the end.
1643# The same applies to icpc and icc.
1644if test "$gcc_ok" != no; then
1645  case "$gcc_ok" in
1646    yes | g++)
1647      CC=gcc ;;
1648    icpc)
1649      CC=icc ;;
1650    *)
1651      CC=$gcc_ok
1652  esac
1653else
1654  if test -z "$CC" ; then
1655    # Balakrishna Kumthekar <kumtheka@colorado.edu>
1656    # As we do not support cc on RS6000, Cygwin and SunOS.
1657    case "$target" in
1658    rs6000-ibm-aix* | *-pc-cygwin32 | sparc-sun-sunos*)
1659      CC=gcc ;;
1660    *)
1661      CC=cc ;;
1662    esac
1663  fi
1664fi
1665ac_ext=c
1666ac_cpp='$CPP $CPPFLAGS'
1667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1669ac_compiler_gnu=$ac_cv_c_compiler_gnu
1670if test -n "$ac_tool_prefix"; then
1671  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1672set dummy ${ac_tool_prefix}gcc; ac_word=$2
1673echo "$as_me:$LINENO: checking for $ac_word" >&5
1674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675if test "${ac_cv_prog_CC+set}" = set; then
1676  echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678  if test -n "$CC"; then
1679  ac_cv_prog_CC="$CC" # Let the user override the test.
1680else
1681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682for as_dir in $PATH
1683do
1684  IFS=$as_save_IFS
1685  test -z "$as_dir" && as_dir=.
1686  for ac_exec_ext in '' $ac_executable_extensions; do
1687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690    break 2
1691  fi
1692done
1693done
1694
1695fi
1696fi
1697CC=$ac_cv_prog_CC
1698if test -n "$CC"; then
1699  echo "$as_me:$LINENO: result: $CC" >&5
1700echo "${ECHO_T}$CC" >&6
1701else
1702  echo "$as_me:$LINENO: result: no" >&5
1703echo "${ECHO_T}no" >&6
1704fi
1705
1706fi
1707if test -z "$ac_cv_prog_CC"; then
1708  ac_ct_CC=$CC
1709  # Extract the first word of "gcc", so it can be a program name with args.
1710set dummy gcc; ac_word=$2
1711echo "$as_me:$LINENO: checking for $ac_word" >&5
1712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1714  echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716  if test -n "$ac_ct_CC"; then
1717  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1718else
1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722  IFS=$as_save_IFS
1723  test -z "$as_dir" && as_dir=.
1724  for ac_exec_ext in '' $ac_executable_extensions; do
1725  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726    ac_cv_prog_ac_ct_CC="gcc"
1727    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728    break 2
1729  fi
1730done
1731done
1732
1733fi
1734fi
1735ac_ct_CC=$ac_cv_prog_ac_ct_CC
1736if test -n "$ac_ct_CC"; then
1737  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1738echo "${ECHO_T}$ac_ct_CC" >&6
1739else
1740  echo "$as_me:$LINENO: result: no" >&5
1741echo "${ECHO_T}no" >&6
1742fi
1743
1744  CC=$ac_ct_CC
1745else
1746  CC="$ac_cv_prog_CC"
1747fi
1748
1749if test -z "$CC"; then
1750  if test -n "$ac_tool_prefix"; then
1751  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1752set dummy ${ac_tool_prefix}cc; ac_word=$2
1753echo "$as_me:$LINENO: checking for $ac_word" >&5
1754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755if test "${ac_cv_prog_CC+set}" = set; then
1756  echo $ECHO_N "(cached) $ECHO_C" >&6
1757else
1758  if test -n "$CC"; then
1759  ac_cv_prog_CC="$CC" # Let the user override the test.
1760else
1761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762for as_dir in $PATH
1763do
1764  IFS=$as_save_IFS
1765  test -z "$as_dir" && as_dir=.
1766  for ac_exec_ext in '' $ac_executable_extensions; do
1767  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768    ac_cv_prog_CC="${ac_tool_prefix}cc"
1769    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770    break 2
1771  fi
1772done
1773done
1774
1775fi
1776fi
1777CC=$ac_cv_prog_CC
1778if test -n "$CC"; then
1779  echo "$as_me:$LINENO: result: $CC" >&5
1780echo "${ECHO_T}$CC" >&6
1781else
1782  echo "$as_me:$LINENO: result: no" >&5
1783echo "${ECHO_T}no" >&6
1784fi
1785
1786fi
1787if test -z "$ac_cv_prog_CC"; then
1788  ac_ct_CC=$CC
1789  # Extract the first word of "cc", so it can be a program name with args.
1790set dummy cc; ac_word=$2
1791echo "$as_me:$LINENO: checking for $ac_word" >&5
1792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1794  echo $ECHO_N "(cached) $ECHO_C" >&6
1795else
1796  if test -n "$ac_ct_CC"; then
1797  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1798else
1799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800for as_dir in $PATH
1801do
1802  IFS=$as_save_IFS
1803  test -z "$as_dir" && as_dir=.
1804  for ac_exec_ext in '' $ac_executable_extensions; do
1805  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806    ac_cv_prog_ac_ct_CC="cc"
1807    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808    break 2
1809  fi
1810done
1811done
1812
1813fi
1814fi
1815ac_ct_CC=$ac_cv_prog_ac_ct_CC
1816if test -n "$ac_ct_CC"; then
1817  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1818echo "${ECHO_T}$ac_ct_CC" >&6
1819else
1820  echo "$as_me:$LINENO: result: no" >&5
1821echo "${ECHO_T}no" >&6
1822fi
1823
1824  CC=$ac_ct_CC
1825else
1826  CC="$ac_cv_prog_CC"
1827fi
1828
1829fi
1830if test -z "$CC"; then
1831  # Extract the first word of "cc", so it can be a program name with args.
1832set dummy cc; ac_word=$2
1833echo "$as_me:$LINENO: checking for $ac_word" >&5
1834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835if test "${ac_cv_prog_CC+set}" = set; then
1836  echo $ECHO_N "(cached) $ECHO_C" >&6
1837else
1838  if test -n "$CC"; then
1839  ac_cv_prog_CC="$CC" # Let the user override the test.
1840else
1841  ac_prog_rejected=no
1842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843for as_dir in $PATH
1844do
1845  IFS=$as_save_IFS
1846  test -z "$as_dir" && as_dir=.
1847  for ac_exec_ext in '' $ac_executable_extensions; do
1848  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1850       ac_prog_rejected=yes
1851       continue
1852     fi
1853    ac_cv_prog_CC="cc"
1854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855    break 2
1856  fi
1857done
1858done
1859
1860if test $ac_prog_rejected = yes; then
1861  # We found a bogon in the path, so make sure we never use it.
1862  set dummy $ac_cv_prog_CC
1863  shift
1864  if test $# != 0; then
1865    # We chose a different compiler from the bogus one.
1866    # However, it has the same basename, so the bogon will be chosen
1867    # first if we set CC to just the basename; use the full file name.
1868    shift
1869    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1870  fi
1871fi
1872fi
1873fi
1874CC=$ac_cv_prog_CC
1875if test -n "$CC"; then
1876  echo "$as_me:$LINENO: result: $CC" >&5
1877echo "${ECHO_T}$CC" >&6
1878else
1879  echo "$as_me:$LINENO: result: no" >&5
1880echo "${ECHO_T}no" >&6
1881fi
1882
1883fi
1884if test -z "$CC"; then
1885  if test -n "$ac_tool_prefix"; then
1886  for ac_prog in cl
1887  do
1888    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1889set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1890echo "$as_me:$LINENO: checking for $ac_word" >&5
1891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892if test "${ac_cv_prog_CC+set}" = set; then
1893  echo $ECHO_N "(cached) $ECHO_C" >&6
1894else
1895  if test -n "$CC"; then
1896  ac_cv_prog_CC="$CC" # Let the user override the test.
1897else
1898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899for as_dir in $PATH
1900do
1901  IFS=$as_save_IFS
1902  test -z "$as_dir" && as_dir=.
1903  for ac_exec_ext in '' $ac_executable_extensions; do
1904  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1906    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907    break 2
1908  fi
1909done
1910done
1911
1912fi
1913fi
1914CC=$ac_cv_prog_CC
1915if test -n "$CC"; then
1916  echo "$as_me:$LINENO: result: $CC" >&5
1917echo "${ECHO_T}$CC" >&6
1918else
1919  echo "$as_me:$LINENO: result: no" >&5
1920echo "${ECHO_T}no" >&6
1921fi
1922
1923    test -n "$CC" && break
1924  done
1925fi
1926if test -z "$CC"; then
1927  ac_ct_CC=$CC
1928  for ac_prog in cl
1929do
1930  # Extract the first word of "$ac_prog", so it can be a program name with args.
1931set dummy $ac_prog; ac_word=$2
1932echo "$as_me:$LINENO: checking for $ac_word" >&5
1933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1935  echo $ECHO_N "(cached) $ECHO_C" >&6
1936else
1937  if test -n "$ac_ct_CC"; then
1938  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1939else
1940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941for as_dir in $PATH
1942do
1943  IFS=$as_save_IFS
1944  test -z "$as_dir" && as_dir=.
1945  for ac_exec_ext in '' $ac_executable_extensions; do
1946  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947    ac_cv_prog_ac_ct_CC="$ac_prog"
1948    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949    break 2
1950  fi
1951done
1952done
1953
1954fi
1955fi
1956ac_ct_CC=$ac_cv_prog_ac_ct_CC
1957if test -n "$ac_ct_CC"; then
1958  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1959echo "${ECHO_T}$ac_ct_CC" >&6
1960else
1961  echo "$as_me:$LINENO: result: no" >&5
1962echo "${ECHO_T}no" >&6
1963fi
1964
1965  test -n "$ac_ct_CC" && break
1966done
1967
1968  CC=$ac_ct_CC
1969fi
1970
1971fi
1972
1973
1974test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1975See \`config.log' for more details." >&5
1976echo "$as_me: error: no acceptable C compiler found in \$PATH
1977See \`config.log' for more details." >&2;}
1978   { (exit 1); exit 1; }; }
1979
1980# Provide some information about the compiler.
1981echo "$as_me:$LINENO:" \
1982     "checking for C compiler version" >&5
1983ac_compiler=`set X $ac_compile; echo $2`
1984{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1985  (eval $ac_compiler --version </dev/null >&5) 2>&5
1986  ac_status=$?
1987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988  (exit $ac_status); }
1989{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1990  (eval $ac_compiler -v </dev/null >&5) 2>&5
1991  ac_status=$?
1992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993  (exit $ac_status); }
1994{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1995  (eval $ac_compiler -V </dev/null >&5) 2>&5
1996  ac_status=$?
1997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998  (exit $ac_status); }
1999
2000cat >conftest.$ac_ext <<_ACEOF
2001#line $LINENO "configure"
2002/* confdefs.h.  */
2003_ACEOF
2004cat confdefs.h >>conftest.$ac_ext
2005cat >>conftest.$ac_ext <<_ACEOF
2006/* end confdefs.h.  */
2007
2008int
2009main ()
2010{
2011
2012  ;
2013  return 0;
2014}
2015_ACEOF
2016ac_clean_files_save=$ac_clean_files
2017ac_clean_files="$ac_clean_files a.out a.exe b.out"
2018# Try to create an executable without -o first, disregard a.out.
2019# It will help us diagnose broken compilers, and finding out an intuition
2020# of exeext.
2021echo "$as_me:$LINENO: checking for C compiler default output" >&5
2022echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2023ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2024if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2025  (eval $ac_link_default) 2>&5
2026  ac_status=$?
2027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028  (exit $ac_status); }; then
2029  # Find the output, starting from the most likely.  This scheme is
2030# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2031# resort.
2032
2033# Be careful to initialize this variable, since it used to be cached.
2034# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2035ac_cv_exeext=
2036# b.out is created by i960 compilers.
2037for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2038do
2039  test -f "$ac_file" || continue
2040  case $ac_file in
2041    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2042        ;;
2043    conftest.$ac_ext )
2044        # This is the source file.
2045        ;;
2046    [ab].out )
2047        # We found the default executable, but exeext='' is most
2048        # certainly right.
2049        break;;
2050    *.* )
2051        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2052        # FIXME: I believe we export ac_cv_exeext for Libtool,
2053        # but it would be cool to find out if it's true.  Does anybody
2054        # maintain Libtool? --akim.
2055        export ac_cv_exeext
2056        break;;
2057    * )
2058        break;;
2059  esac
2060done
2061else
2062  echo "$as_me: failed program was:" >&5
2063sed 's/^/| /' conftest.$ac_ext >&5
2064
2065{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2066See \`config.log' for more details." >&5
2067echo "$as_me: error: C compiler cannot create executables
2068See \`config.log' for more details." >&2;}
2069   { (exit 77); exit 77; }; }
2070fi
2071
2072ac_exeext=$ac_cv_exeext
2073echo "$as_me:$LINENO: result: $ac_file" >&5
2074echo "${ECHO_T}$ac_file" >&6
2075
2076# Check the compiler produces executables we can run.  If not, either
2077# the compiler is broken, or we cross compile.
2078echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2079echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2080# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2081# If not cross compiling, check that we can run a simple program.
2082if test "$cross_compiling" != yes; then
2083  if { ac_try='./$ac_file'
2084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085  (eval $ac_try) 2>&5
2086  ac_status=$?
2087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088  (exit $ac_status); }; }; then
2089    cross_compiling=no
2090  else
2091    if test "$cross_compiling" = maybe; then
2092        cross_compiling=yes
2093    else
2094        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2095If you meant to cross compile, use \`--host'.
2096See \`config.log' for more details." >&5
2097echo "$as_me: error: cannot run C compiled programs.
2098If you meant to cross compile, use \`--host'.
2099See \`config.log' for more details." >&2;}
2100   { (exit 1); exit 1; }; }
2101    fi
2102  fi
2103fi
2104echo "$as_me:$LINENO: result: yes" >&5
2105echo "${ECHO_T}yes" >&6
2106
2107rm -f a.out a.exe conftest$ac_cv_exeext b.out
2108ac_clean_files=$ac_clean_files_save
2109# Check the compiler produces executables we can run.  If not, either
2110# the compiler is broken, or we cross compile.
2111echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2112echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2113echo "$as_me:$LINENO: result: $cross_compiling" >&5
2114echo "${ECHO_T}$cross_compiling" >&6
2115
2116echo "$as_me:$LINENO: checking for suffix of executables" >&5
2117echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2119  (eval $ac_link) 2>&5
2120  ac_status=$?
2121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122  (exit $ac_status); }; then
2123  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2124# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2125# work properly (i.e., refer to `conftest.exe'), while it won't with
2126# `rm'.
2127for ac_file in conftest.exe conftest conftest.*; do
2128  test -f "$ac_file" || continue
2129  case $ac_file in
2130    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2131    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2132          export ac_cv_exeext
2133          break;;
2134    * ) break;;
2135  esac
2136done
2137else
2138  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2139See \`config.log' for more details." >&5
2140echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2141See \`config.log' for more details." >&2;}
2142   { (exit 1); exit 1; }; }
2143fi
2144
2145rm -f conftest$ac_cv_exeext
2146echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2147echo "${ECHO_T}$ac_cv_exeext" >&6
2148
2149rm -f conftest.$ac_ext
2150EXEEXT=$ac_cv_exeext
2151ac_exeext=$EXEEXT
2152echo "$as_me:$LINENO: checking for suffix of object files" >&5
2153echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2154if test "${ac_cv_objext+set}" = set; then
2155  echo $ECHO_N "(cached) $ECHO_C" >&6
2156else
2157  cat >conftest.$ac_ext <<_ACEOF
2158#line $LINENO "configure"
2159/* confdefs.h.  */
2160_ACEOF
2161cat confdefs.h >>conftest.$ac_ext
2162cat >>conftest.$ac_ext <<_ACEOF
2163/* end confdefs.h.  */
2164
2165int
2166main ()
2167{
2168
2169  ;
2170  return 0;
2171}
2172_ACEOF
2173rm -f conftest.o conftest.obj
2174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175  (eval $ac_compile) 2>&5
2176  ac_status=$?
2177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178  (exit $ac_status); }; then
2179  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2180  case $ac_file in
2181    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2182    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2183       break;;
2184  esac
2185done
2186else
2187  echo "$as_me: failed program was:" >&5
2188sed 's/^/| /' conftest.$ac_ext >&5
2189
2190{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2191See \`config.log' for more details." >&5
2192echo "$as_me: error: cannot compute suffix of object files: cannot compile
2193See \`config.log' for more details." >&2;}
2194   { (exit 1); exit 1; }; }
2195fi
2196
2197rm -f conftest.$ac_cv_objext conftest.$ac_ext
2198fi
2199echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2200echo "${ECHO_T}$ac_cv_objext" >&6
2201OBJEXT=$ac_cv_objext
2202ac_objext=$OBJEXT
2203echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2204echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2205if test "${ac_cv_c_compiler_gnu+set}" = set; then
2206  echo $ECHO_N "(cached) $ECHO_C" >&6
2207else
2208  cat >conftest.$ac_ext <<_ACEOF
2209#line $LINENO "configure"
2210/* confdefs.h.  */
2211_ACEOF
2212cat confdefs.h >>conftest.$ac_ext
2213cat >>conftest.$ac_ext <<_ACEOF
2214/* end confdefs.h.  */
2215
2216int
2217main ()
2218{
2219#ifndef __GNUC__
2220       choke me
2221#endif
2222
2223  ;
2224  return 0;
2225}
2226_ACEOF
2227rm -f conftest.$ac_objext
2228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229  (eval $ac_compile) 2>&5
2230  ac_status=$?
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); } &&
2233         { ac_try='test -s conftest.$ac_objext'
2234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235  (eval $ac_try) 2>&5
2236  ac_status=$?
2237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238  (exit $ac_status); }; }; then
2239  ac_compiler_gnu=yes
2240else
2241  echo "$as_me: failed program was:" >&5
2242sed 's/^/| /' conftest.$ac_ext >&5
2243
2244ac_compiler_gnu=no
2245fi
2246rm -f conftest.$ac_objext conftest.$ac_ext
2247ac_cv_c_compiler_gnu=$ac_compiler_gnu
2248
2249fi
2250echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2251echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2252GCC=`test $ac_compiler_gnu = yes && echo yes`
2253ac_test_CFLAGS=${CFLAGS+set}
2254ac_save_CFLAGS=$CFLAGS
2255CFLAGS="-g"
2256echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2257echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2258if test "${ac_cv_prog_cc_g+set}" = set; then
2259  echo $ECHO_N "(cached) $ECHO_C" >&6
2260else
2261  cat >conftest.$ac_ext <<_ACEOF
2262#line $LINENO "configure"
2263/* confdefs.h.  */
2264_ACEOF
2265cat confdefs.h >>conftest.$ac_ext
2266cat >>conftest.$ac_ext <<_ACEOF
2267/* end confdefs.h.  */
2268
2269int
2270main ()
2271{
2272
2273  ;
2274  return 0;
2275}
2276_ACEOF
2277rm -f conftest.$ac_objext
2278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279  (eval $ac_compile) 2>&5
2280  ac_status=$?
2281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282  (exit $ac_status); } &&
2283         { ac_try='test -s conftest.$ac_objext'
2284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285  (eval $ac_try) 2>&5
2286  ac_status=$?
2287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288  (exit $ac_status); }; }; then
2289  ac_cv_prog_cc_g=yes
2290else
2291  echo "$as_me: failed program was:" >&5
2292sed 's/^/| /' conftest.$ac_ext >&5
2293
2294ac_cv_prog_cc_g=no
2295fi
2296rm -f conftest.$ac_objext conftest.$ac_ext
2297fi
2298echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2299echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2300if test "$ac_test_CFLAGS" = set; then
2301  CFLAGS=$ac_save_CFLAGS
2302elif test $ac_cv_prog_cc_g = yes; then
2303  if test "$GCC" = yes; then
2304    CFLAGS="-g -O2"
2305  else
2306    CFLAGS="-g"
2307  fi
2308else
2309  if test "$GCC" = yes; then
2310    CFLAGS="-O2"
2311  else
2312    CFLAGS=
2313  fi
2314fi
2315echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2316echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2317if test "${ac_cv_prog_cc_stdc+set}" = set; then
2318  echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320  ac_cv_prog_cc_stdc=no
2321ac_save_CC=$CC
2322cat >conftest.$ac_ext <<_ACEOF
2323#line $LINENO "configure"
2324/* confdefs.h.  */
2325_ACEOF
2326cat confdefs.h >>conftest.$ac_ext
2327cat >>conftest.$ac_ext <<_ACEOF
2328/* end confdefs.h.  */
2329#include <stdarg.h>
2330#include <stdio.h>
2331#include <sys/types.h>
2332#include <sys/stat.h>
2333/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2334struct buf { int x; };
2335FILE * (*rcsopen) (struct buf *, struct stat *, int);
2336static char *e (p, i)
2337     char **p;
2338     int i;
2339{
2340  return p[i];
2341}
2342static char *f (char * (*g) (char **, int), char **p, ...)
2343{
2344  char *s;
2345  va_list v;
2346  va_start (v,p);
2347  s = g (p, va_arg (v,int));
2348  va_end (v);
2349  return s;
2350}
2351int test (int i, double x);
2352struct s1 {int (*f) (int a);};
2353struct s2 {int (*f) (double a);};
2354int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2355int argc;
2356char **argv;
2357int
2358main ()
2359{
2360return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2361  ;
2362  return 0;
2363}
2364_ACEOF
2365# Don't try gcc -ansi; that turns off useful extensions and
2366# breaks some systems' header files.
2367# AIX                   -qlanglvl=ansi
2368# Ultrix and OSF/1      -std1
2369# HP-UX 10.20 and later -Ae
2370# HP-UX older versions  -Aa -D_HPUX_SOURCE
2371# SVR4                  -Xc -D__EXTENSIONS__
2372for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2373do
2374  CC="$ac_save_CC $ac_arg"
2375  rm -f conftest.$ac_objext
2376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377  (eval $ac_compile) 2>&5
2378  ac_status=$?
2379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380  (exit $ac_status); } &&
2381         { ac_try='test -s conftest.$ac_objext'
2382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383  (eval $ac_try) 2>&5
2384  ac_status=$?
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); }; }; then
2387  ac_cv_prog_cc_stdc=$ac_arg
2388break
2389else
2390  echo "$as_me: failed program was:" >&5
2391sed 's/^/| /' conftest.$ac_ext >&5
2392
2393fi
2394rm -f conftest.$ac_objext
2395done
2396rm -f conftest.$ac_ext conftest.$ac_objext
2397CC=$ac_save_CC
2398
2399fi
2400
2401case "x$ac_cv_prog_cc_stdc" in
2402  x|xno)
2403    echo "$as_me:$LINENO: result: none needed" >&5
2404echo "${ECHO_T}none needed" >&6 ;;
2405  *)
2406    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2407echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2408    CC="$CC $ac_cv_prog_cc_stdc" ;;
2409esac
2410
2411# Some people use a C++ compiler to compile C.  Since we use `exit',
2412# in C++ we need to declare it.  In case someone uses the same compiler
2413# for both compiling C and C++ we need to have the C++ compiler decide
2414# the declaration of exit, since it's the most demanding environment.
2415cat >conftest.$ac_ext <<_ACEOF
2416#ifndef __cplusplus
2417  choke me
2418#endif
2419_ACEOF
2420rm -f conftest.$ac_objext
2421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422  (eval $ac_compile) 2>&5
2423  ac_status=$?
2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425  (exit $ac_status); } &&
2426         { ac_try='test -s conftest.$ac_objext'
2427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428  (eval $ac_try) 2>&5
2429  ac_status=$?
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); }; }; then
2432  for ac_declaration in \
2433   ''\
2434   '#include <stdlib.h>' \
2435   'extern "C" void std::exit (int) throw (); using std::exit;' \
2436   'extern "C" void std::exit (int); using std::exit;' \
2437   'extern "C" void exit (int) throw ();' \
2438   'extern "C" void exit (int);' \
2439   'void exit (int);'
2440do
2441  cat >conftest.$ac_ext <<_ACEOF
2442#line $LINENO "configure"
2443/* confdefs.h.  */
2444_ACEOF
2445cat confdefs.h >>conftest.$ac_ext
2446cat >>conftest.$ac_ext <<_ACEOF
2447/* end confdefs.h.  */
2448#include <stdlib.h>
2449$ac_declaration
2450int
2451main ()
2452{
2453exit (42);
2454  ;
2455  return 0;
2456}
2457_ACEOF
2458rm -f conftest.$ac_objext
2459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460  (eval $ac_compile) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); } &&
2464         { ac_try='test -s conftest.$ac_objext'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; }; then
2470  :
2471else
2472  echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475continue
2476fi
2477rm -f conftest.$ac_objext conftest.$ac_ext
2478  cat >conftest.$ac_ext <<_ACEOF
2479#line $LINENO "configure"
2480/* confdefs.h.  */
2481_ACEOF
2482cat confdefs.h >>conftest.$ac_ext
2483cat >>conftest.$ac_ext <<_ACEOF
2484/* end confdefs.h.  */
2485$ac_declaration
2486int
2487main ()
2488{
2489exit (42);
2490  ;
2491  return 0;
2492}
2493_ACEOF
2494rm -f conftest.$ac_objext
2495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496  (eval $ac_compile) 2>&5
2497  ac_status=$?
2498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499  (exit $ac_status); } &&
2500         { ac_try='test -s conftest.$ac_objext'
2501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502  (eval $ac_try) 2>&5
2503  ac_status=$?
2504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505  (exit $ac_status); }; }; then
2506  break
2507else
2508  echo "$as_me: failed program was:" >&5
2509sed 's/^/| /' conftest.$ac_ext >&5
2510
2511fi
2512rm -f conftest.$ac_objext conftest.$ac_ext
2513done
2514rm -f conftest*
2515if test -n "$ac_declaration"; then
2516  echo '#ifdef __cplusplus' >>confdefs.h
2517  echo $ac_declaration      >>confdefs.h
2518  echo '#endif'             >>confdefs.h
2519fi
2520
2521else
2522  echo "$as_me: failed program was:" >&5
2523sed 's/^/| /' conftest.$ac_ext >&5
2524
2525fi
2526rm -f conftest.$ac_objext conftest.$ac_ext
2527ac_ext=c
2528ac_cpp='$CPP $CPPFLAGS'
2529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532
2533
2534# Check whether --enable-64 or --disable-64 was given.
2535if test "${enable_64+set}" = set; then
2536  enableval="$enable_64"
2537  use_sixty_four=$enableval
2538else
2539  use_sixty_four=no
2540fi;
2541
2542# Gcc does not support 32-bit pointers on the Alphas.
2543if test "$gcc_ok" != no; then
2544  use_sixty_four=yes
2545fi
2546
2547
2548# Roderick Bloem (rbloem@colorado.edu): making a special case for
2549# ultrix install, since it's annoying about setting groupids.
2550case "$target" in
2551  mips-dec-ultrix*)
2552    INSTALL="helpers/install-sh -c"
2553    INSTALL_PROGRAM="\${INSTALL}"
2554    INSTALL_DATA="\${INSTALL} -m 644";;
2555
2556  *)
2557  # Find a good install program.  We prefer a C program (faster),
2558# so one script is as good as another.  But avoid the broken or
2559# incompatible versions:
2560# SysV /etc/install, /usr/sbin/install
2561# SunOS /usr/etc/install
2562# IRIX /sbin/install
2563# AIX /bin/install
2564# AmigaOS /C/install, which installs bootblocks on floppy discs
2565# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2566# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2567# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2568# ./install, which can be erroneously created by make from ./install.sh.
2569echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2570echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2571if test -z "$INSTALL"; then
2572if test "${ac_cv_path_install+set}" = set; then
2573  echo $ECHO_N "(cached) $ECHO_C" >&6
2574else
2575  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578  IFS=$as_save_IFS
2579  test -z "$as_dir" && as_dir=.
2580  # Account for people who put trailing slashes in PATH elements.
2581case $as_dir/ in
2582  ./ | .// | /cC/* | \
2583  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2584  /usr/ucb/* ) ;;
2585  *)
2586    # OSF1 and SCO ODT 3.0 have their own names for install.
2587    # Don't use installbsd from OSF since it installs stuff as root
2588    # by default.
2589    for ac_prog in ginstall scoinst install; do
2590      for ac_exec_ext in '' $ac_executable_extensions; do
2591        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2592          if test $ac_prog = install &&
2593            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2594            # AIX install.  It has an incompatible calling convention.
2595            :
2596          elif test $ac_prog = install &&
2597            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2598            # program-specific install script used by HP pwplus--don't use.
2599            :
2600          else
2601            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2602            break 3
2603          fi
2604        fi
2605      done
2606    done
2607    ;;
2608esac
2609done
2610
2611
2612fi
2613  if test "${ac_cv_path_install+set}" = set; then
2614    INSTALL=$ac_cv_path_install
2615  else
2616    # As a last resort, use the slow shell script.  We don't cache a
2617    # path for INSTALL within a source directory, because that will
2618    # break other packages using the cache if that directory is
2619    # removed, or if the path is relative.
2620    INSTALL=$ac_install_sh
2621  fi
2622fi
2623echo "$as_me:$LINENO: result: $INSTALL" >&5
2624echo "${ECHO_T}$INSTALL" >&6
2625
2626# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2627# It thinks the first close brace ends the variable substitution.
2628test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2629
2630test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2631
2632test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2633 ;;
2634esac
2635
2636# Determine the compiler flags to use
2637
2638DEBUG_CFLAGS="-g"
2639DEBUG_LDFLAGS=""
2640
2641case "$target" in
2642
2643  i686-pc-linux-gnu)
2644        # Linux with Intel compiler
2645        # -ansi: ANSI C conformance
2646        # -ip: inter-procedural optimization
2647        OPTIMIZE_CFLAGS="-g -O3 -ansi -ip"
2648        ;;
2649
2650  sparc-sun-solaris* | i386-pc-solaris*)
2651        # Sparc and X86 Solaris:
2652        # -xO3: Highest safe level of optimization
2653        # -native: Optimize for the native processor (if supported)
2654        # -dalign: Generate double-word load/store for performance
2655        #          (only for SPARC)
2656        # and other arcane compilation flags.
2657        if test "$GCC" = yes; then
2658          OPTIMIZE_CFLAGS="-O"
2659        else
2660          case "$target" in
2661            sparc-sun-solaris*)
2662              ALIGN=" -dalign" ;;
2663            *)
2664              ALIGN="" ;;
2665          esac
2666          echo "$as_me:$LINENO: checking for -native" >&5
2667echo $ECHO_N "checking for -native... $ECHO_C" >&6
2668          CFLAGS="-xO3 -native$ALIGN"
2669
2670if test "${ac_cv_have_native+set}" = set; then
2671  echo $ECHO_N "(cached) $ECHO_C" >&6
2672else
2673   if test "$cross_compiling" = yes; then
2674  ac_cv_have_native=no
2675else
2676  cat >conftest.$ac_ext <<_ACEOF
2677#line $LINENO "configure"
2678/* confdefs.h.  */
2679_ACEOF
2680cat confdefs.h >>conftest.$ac_ext
2681cat >>conftest.$ac_ext <<_ACEOF
2682/* end confdefs.h.  */
2683
2684          main(){exit(0);}
2685
2686_ACEOF
2687rm -f conftest$ac_exeext
2688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2689  (eval $ac_link) 2>&5
2690  ac_status=$?
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694  (eval $ac_try) 2>&5
2695  ac_status=$?
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); }; }; then
2698  ac_cv_have_native=yes
2699else
2700  echo "$as_me: program exited with status $ac_status" >&5
2701echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704( exit $ac_status )
2705ac_cv_have_native=no
2706fi
2707rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2708fi
2709fi
2710
2711          if test $ac_cv_have_native = yes ; then
2712            echo "$as_me:$LINENO: result: working" >&5
2713echo "${ECHO_T}working" >&6
2714            OPTIMIZE_CFLAGS="-xO3 -native$ALIGN"
2715          else
2716            echo "$as_me:$LINENO: result: broken" >&5
2717echo "${ECHO_T}broken" >&6
2718            echo "$as_me:$LINENO: checking for fallback optimization flags" >&5
2719echo $ECHO_N "checking for fallback optimization flags... $ECHO_C" >&6
2720            CFLAGS="-xO3 -fns -fsimple=2$ALIGN -ftrap=%none -xlibmil"
2721            if test "${ac_cv_have_fallback+set}" = set; then
2722  echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724   if test "$cross_compiling" = yes; then
2725  ac_cv_have_fallback=no
2726else
2727  cat >conftest.$ac_ext <<_ACEOF
2728#line $LINENO "configure"
2729/* confdefs.h.  */
2730_ACEOF
2731cat confdefs.h >>conftest.$ac_ext
2732cat >>conftest.$ac_ext <<_ACEOF
2733/* end confdefs.h.  */
2734
2735            main(){exit(0);}
2736
2737_ACEOF
2738rm -f conftest$ac_exeext
2739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2740  (eval $ac_link) 2>&5
2741  ac_status=$?
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745  (eval $ac_try) 2>&5
2746  ac_status=$?
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); }; }; then
2749  ac_cv_have_fallback=yes
2750else
2751  echo "$as_me: program exited with status $ac_status" >&5
2752echo "$as_me: failed program was:" >&5
2753sed 's/^/| /' conftest.$ac_ext >&5
2754
2755( exit $ac_status )
2756ac_cv_have_fallback=no
2757fi
2758rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2759fi
2760fi
2761
2762            if test $ac_cv_have_fallback = yes ; then
2763              echo "$as_me:$LINENO: result: working" >&5
2764echo "${ECHO_T}working" >&6
2765              OPTIMIZE_CFLAGS="-xO3 -fns -fsimple=2$ALIGN -ftrap=%none -xlibmil"
2766            else
2767              echo "$as_me:$LINENO: result: broken" >&5
2768echo "${ECHO_T}broken" >&6
2769              OPTIMIZE_CFLAGS="-O"
2770            fi
2771          fi
2772        fi
2773        ;;
2774
2775  mips-dec-ultrix*)
2776        # MIPS-based DECstations running Ultrix:
2777        # -std1: Produce non-ANSI code warnings, and define __STDC__
2778        # -O: Use the global "ucode" optimizer
2779        # -Olimit 5000: Don't optimize routines bigger than 5000 basic blocks
2780        OPTIMIZE_CFLAGS="-std1 -O -Olimit 5000" ;;
2781
2782  alpha-dec-osf*)
2783        # DEC Alpha running OSF:
2784
2785        # 64-bit mode:
2786        # -g3: Produce symbol table information for optimized code
2787        # -O4: Enable every optimization
2788        # -std: Enforce the ANSI standard with extensions, define __STDC__
2789        # -ieee_with_no_inexact: Disable (potentially slow) signaling
2790        #   for inexact floating-point results
2791        # -tune host: Tune instructions for the compilation host machine
2792        OPTIMIZE_CFLAGS="-g3 -O4 -std -ieee_with_no_inexact -tune host"
2793        DEBUG_CFLAGS="-g -std -ieee_with_no_inexact"
2794
2795        # -non_shared: Do not use shared libraries
2796        # -om: Generate an OMAGIC file for the om optimizer
2797        OPTIMIZE_LDFLAGS="-non_shared"
2798
2799        if test "$use_sixty_four" = "no"; then
2800          # 32-bit mode:
2801          # -xtaso: Make the compiler respond to #pragma pointer_size directives
2802          OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -xtaso"
2803          DEBUG_CFLAGS="$DEBUG_CFLAGS -xtaso"
2804
2805          # -taso: Load the executable into the lower 31-bit address space
2806          OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -om -taso"
2807          DEBUG_LDFLAGS="$DEBUG_LDFLAGS -taso"
2808
2809          cat >>confdefs.h <<\_ACEOF
2810#define SIZEOF_VOID_P 4
2811_ACEOF
2812
2813          ac_sizeof_voidp=4
2814        fi
2815        ;;
2816
2817  hppa*-*-hpux*)
2818        # HP running HPUX
2819        # -Aa: Behave as an ANSI compiler
2820        # -D_HPUX_SOURCE: Include "HP-specific" symbols in the header
2821        #   files (e.g., this means sys/resource.h has struct rusage)
2822        # +Onolimit: removes resource restrictions for optimization
2823        OPTIMIZE_CFLAGS="-O -Aa +Onolimit -D_HPUX_SOURCE"
2824        DEBUG_CFLAGS="-g -Aa -D_HPUX_SOURCE" ;;
2825
2826     *)
2827        # Other systems:
2828        OPTIMIZE_CFLAGS="-O" ;;
2829
2830esac
2831
2832if test "$GCC" = yes; then
2833  case "$target" in
2834    i686-pc-linux-gnu | i386-pc-solaris* | i386-pc-cygwin32 | i386-*-freebsd*)
2835      echo "$as_me:$LINENO: checking for -mcpu and -malign compiler options" >&5
2836echo $ECHO_N "checking for -mcpu and -malign compiler options... $ECHO_C" >&6
2837      CFLAGS="-g -O6 -mcpu=pentiumpro -malign-double"
2838      cat >conftest.$ac_ext <<_ACEOF
2839#line $LINENO "configure"
2840/* confdefs.h.  */
2841_ACEOF
2842cat confdefs.h >>conftest.$ac_ext
2843cat >>conftest.$ac_ext <<_ACEOF
2844/* end confdefs.h.  */
2845
2846int
2847main ()
2848{
2849
2850  ;
2851  return 0;
2852}
2853_ACEOF
2854rm -f conftest.$ac_objext
2855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2856  (eval $ac_compile) 2>&5
2857  ac_status=$?
2858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859  (exit $ac_status); } &&
2860         { ac_try='test -s conftest.$ac_objext'
2861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862  (eval $ac_try) 2>&5
2863  ac_status=$?
2864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865  (exit $ac_status); }; }; then
2866  ac_have_mcpu=yes
2867else
2868  echo "$as_me: failed program was:" >&5
2869sed 's/^/| /' conftest.$ac_ext >&5
2870
2871ac_have_mcpu=no
2872fi
2873rm -f conftest.$ac_objext conftest.$ac_ext
2874      if test "$ac_have_mcpu" = yes; then
2875        echo "$as_me:$LINENO: result: working" >&5
2876echo "${ECHO_T}working" >&6
2877        OPTIMIZE_CFLAGS="-g -O6 -mcpu=pentiumpro -malign-double"
2878      else
2879        echo "$as_me:$LINENO: result: broken" >&5
2880echo "${ECHO_T}broken" >&6
2881        OPTIMIZE_CFLAGS="-g -O3"
2882      fi
2883      ;;
2884    sparc-sun-solaris*)
2885      echo "$as_me:$LINENO: checking for -mtune compiler option" >&5
2886echo $ECHO_N "checking for -mtune compiler option... $ECHO_C" >&6
2887      CFLAGS="-g -O6 -mtune=ultrasparc"
2888      cat >conftest.$ac_ext <<_ACEOF
2889#line $LINENO "configure"
2890/* confdefs.h.  */
2891_ACEOF
2892cat confdefs.h >>conftest.$ac_ext
2893cat >>conftest.$ac_ext <<_ACEOF
2894/* end confdefs.h.  */
2895
2896int
2897main ()
2898{
2899
2900  ;
2901  return 0;
2902}
2903_ACEOF
2904rm -f conftest.$ac_objext
2905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906  (eval $ac_compile) 2>&5
2907  ac_status=$?
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); } &&
2910         { ac_try='test -s conftest.$ac_objext'
2911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912  (eval $ac_try) 2>&5
2913  ac_status=$?
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); }; }; then
2916  ac_have_mtune=yes
2917else
2918  echo "$as_me: failed program was:" >&5
2919sed 's/^/| /' conftest.$ac_ext >&5
2920
2921ac_have_mtune=no
2922fi
2923rm -f conftest.$ac_objext conftest.$ac_ext
2924      if test "$ac_have_mtune" = yes; then
2925        echo "$as_me:$LINENO: result: working" >&5
2926echo "${ECHO_T}working" >&6
2927        OPTIMIZE_CFLAGS="-g -O6 -mtune=ultrasparc"
2928      else
2929        echo "$as_me:$LINENO: result: not working" >&5
2930echo "${ECHO_T}not working" >&6
2931        OPTIMIZE_CFLAGS="-g -O3"
2932      fi
2933      ;;
2934    *)
2935      OPTIMIZE_CFLAGS="-g -O3"
2936      ;;
2937  esac
2938  OPTIMIZE_LDFLAGS=""
2939  DEBUG_CFLAGS="-g"
2940  DEBUG_LDFLAGS=""
2941fi
2942
2943
2944# Check whether --with-comp-mode or --without-comp-mode was given.
2945if test "${with_comp_mode+set}" = set; then
2946  withval="$with_comp_mode"
2947  comp_mode=$withval
2948else
2949  comp_mode=optimize
2950fi;
2951
2952
2953
2954LINKER="$CC"
2955
2956case "$comp_mode" in
2957  debug)
2958       CFLAGS="$DEBUG_CFLAGS"
2959       LDFLAGS="$DEBUG_LDFLAGS" ;;
2960  purify)
2961       CFLAGS="$DEBUG_CFLAGS"
2962       LDFLAGS="$DEBUG_LDFLAGS"
2963       cat >>confdefs.h <<\_ACEOF
2964#define PURIFY 1
2965_ACEOF
2966
2967       LINKER="purify -cache-dir=/tmp $CC"
2968       PLINKER="purify -log-file=./purify.log -cachedir=/tmp $CC" ;;
2969  quantify)
2970       CFLAGS="$OPTIMIZE_CFLAGS"
2971       LDFLAGS="$OPTIMIZE_LDFLAGS"
2972       cat >>confdefs.h <<\_ACEOF
2973#define QUANTIFY 1
2974_ACEOF
2975
2976       cat >>confdefs.h <<\_ACEOF
2977#define NDEBUG 1
2978_ACEOF
2979
2980       LINKER="quantify $CC" ;;
2981  optimize | *)
2982       CFLAGS="$OPTIMIZE_CFLAGS"
2983       LDFLAGS="$OPTIMIZE_LDFLAGS"
2984       cat >>confdefs.h <<\_ACEOF
2985#define NDEBUG 1
2986_ACEOF
2987 ;;
2988esac
2989
2990for ac_prog in flex lex
2991do
2992  # Extract the first word of "$ac_prog", so it can be a program name with args.
2993set dummy $ac_prog; ac_word=$2
2994echo "$as_me:$LINENO: checking for $ac_word" >&5
2995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2996if test "${ac_cv_prog_LEX+set}" = set; then
2997  echo $ECHO_N "(cached) $ECHO_C" >&6
2998else
2999  if test -n "$LEX"; then
3000  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3001else
3002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003for as_dir in $PATH
3004do
3005  IFS=$as_save_IFS
3006  test -z "$as_dir" && as_dir=.
3007  for ac_exec_ext in '' $ac_executable_extensions; do
3008  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3009    ac_cv_prog_LEX="$ac_prog"
3010    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011    break 2
3012  fi
3013done
3014done
3015
3016fi
3017fi
3018LEX=$ac_cv_prog_LEX
3019if test -n "$LEX"; then
3020  echo "$as_me:$LINENO: result: $LEX" >&5
3021echo "${ECHO_T}$LEX" >&6
3022else
3023  echo "$as_me:$LINENO: result: no" >&5
3024echo "${ECHO_T}no" >&6
3025fi
3026
3027  test -n "$LEX" && break
3028done
3029test -n "$LEX" || LEX=":"
3030
3031if test -z "$LEXLIB"
3032then
3033  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3034echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3035if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3036  echo $ECHO_N "(cached) $ECHO_C" >&6
3037else
3038  ac_check_lib_save_LIBS=$LIBS
3039LIBS="-lfl  $LIBS"
3040cat >conftest.$ac_ext <<_ACEOF
3041#line $LINENO "configure"
3042/* confdefs.h.  */
3043_ACEOF
3044cat confdefs.h >>conftest.$ac_ext
3045cat >>conftest.$ac_ext <<_ACEOF
3046/* end confdefs.h.  */
3047
3048/* Override any gcc2 internal prototype to avoid an error.  */
3049#ifdef __cplusplus
3050extern "C"
3051#endif
3052/* We use char because int might match the return type of a gcc2
3053   builtin and then its argument prototype would still apply.  */
3054char yywrap ();
3055int
3056main ()
3057{
3058yywrap ();
3059  ;
3060  return 0;
3061}
3062_ACEOF
3063rm -f conftest.$ac_objext conftest$ac_exeext
3064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3065  (eval $ac_link) 2>&5
3066  ac_status=$?
3067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068  (exit $ac_status); } &&
3069         { ac_try='test -s conftest$ac_exeext'
3070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071  (eval $ac_try) 2>&5
3072  ac_status=$?
3073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074  (exit $ac_status); }; }; then
3075  ac_cv_lib_fl_yywrap=yes
3076else
3077  echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080ac_cv_lib_fl_yywrap=no
3081fi
3082rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3083LIBS=$ac_check_lib_save_LIBS
3084fi
3085echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3086echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3087if test $ac_cv_lib_fl_yywrap = yes; then
3088  LEXLIB="-lfl"
3089else
3090  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3091echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3092if test "${ac_cv_lib_l_yywrap+set}" = set; then
3093  echo $ECHO_N "(cached) $ECHO_C" >&6
3094else
3095  ac_check_lib_save_LIBS=$LIBS
3096LIBS="-ll  $LIBS"
3097cat >conftest.$ac_ext <<_ACEOF
3098#line $LINENO "configure"
3099/* confdefs.h.  */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h.  */
3104
3105/* Override any gcc2 internal prototype to avoid an error.  */
3106#ifdef __cplusplus
3107extern "C"
3108#endif
3109/* We use char because int might match the return type of a gcc2
3110   builtin and then its argument prototype would still apply.  */
3111char yywrap ();
3112int
3113main ()
3114{
3115yywrap ();
3116  ;
3117  return 0;
3118}
3119_ACEOF
3120rm -f conftest.$ac_objext conftest$ac_exeext
3121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3122  (eval $ac_link) 2>&5
3123  ac_status=$?
3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); } &&
3126         { ac_try='test -s conftest$ac_exeext'
3127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128  (eval $ac_try) 2>&5
3129  ac_status=$?
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); }; }; then
3132  ac_cv_lib_l_yywrap=yes
3133else
3134  echo "$as_me: failed program was:" >&5
3135sed 's/^/| /' conftest.$ac_ext >&5
3136
3137ac_cv_lib_l_yywrap=no
3138fi
3139rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3140LIBS=$ac_check_lib_save_LIBS
3141fi
3142echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3143echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3144if test $ac_cv_lib_l_yywrap = yes; then
3145  LEXLIB="-ll"
3146fi
3147
3148fi
3149
3150fi
3151
3152if test "x$LEX" != "x:"; then
3153  echo "$as_me:$LINENO: checking lex output file root" >&5
3154echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3155if test "${ac_cv_prog_lex_root+set}" = set; then
3156  echo $ECHO_N "(cached) $ECHO_C" >&6
3157else
3158  # The minimal lex program is just a single line: %%.  But some broken lexes
3159# (Solaris, I think it was) want two %% lines, so accommodate them.
3160cat >conftest.l <<_ACEOF
3161%%
3162%%
3163_ACEOF
3164{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3165  (eval $LEX conftest.l) 2>&5
3166  ac_status=$?
3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168  (exit $ac_status); }
3169if test -f lex.yy.c; then
3170  ac_cv_prog_lex_root=lex.yy
3171elif test -f lexyy.c; then
3172  ac_cv_prog_lex_root=lexyy
3173else
3174  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3175echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3176   { (exit 1); exit 1; }; }
3177fi
3178fi
3179echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3180echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3181rm -f conftest.l
3182LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3183
3184echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3185echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3186if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3187  echo $ECHO_N "(cached) $ECHO_C" >&6
3188else
3189  # POSIX says lex can declare yytext either as a pointer or an array; the
3190# default is implementation-dependent. Figure out which it is, since
3191# not all implementations provide the %pointer and %array declarations.
3192ac_cv_prog_lex_yytext_pointer=no
3193echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3194ac_save_LIBS=$LIBS
3195LIBS="$LIBS $LEXLIB"
3196cat >conftest.$ac_ext <<_ACEOF
3197`cat $LEX_OUTPUT_ROOT.c`
3198_ACEOF
3199rm -f conftest.$ac_objext conftest$ac_exeext
3200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3201  (eval $ac_link) 2>&5
3202  ac_status=$?
3203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204  (exit $ac_status); } &&
3205         { ac_try='test -s conftest$ac_exeext'
3206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207  (eval $ac_try) 2>&5
3208  ac_status=$?
3209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210  (exit $ac_status); }; }; then
3211  ac_cv_prog_lex_yytext_pointer=yes
3212else
3213  echo "$as_me: failed program was:" >&5
3214sed 's/^/| /' conftest.$ac_ext >&5
3215
3216fi
3217rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3218LIBS=$ac_save_LIBS
3219rm -f "${LEX_OUTPUT_ROOT}.c"
3220
3221fi
3222echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3223echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3224if test $ac_cv_prog_lex_yytext_pointer = yes; then
3225
3226cat >>confdefs.h <<\_ACEOF
3227#define YYTEXT_POINTER 1
3228_ACEOF
3229
3230fi
3231
3232fi
3233echo "$as_me:$LINENO: checking if $LEX accepts the -o and -P options" >&5
3234echo $ECHO_N "checking if $LEX accepts the -o and -P options... $ECHO_C" >&6
3235
3236if test "${ac_cv_flex_accepts_op+set}" = set; then
3237  echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239   ac_cv_flex_accepts_op=yes ;
3240echo "%%\
3241%%" | $LEX -Ptest -o/dev/null >/dev/null 2>&1 || ac_cv_flex_accepts_op=no
3242fi
3243
3244if test $ac_cv_flex_accepts_op = yes ; then
3245  echo "$as_me:$LINENO: result: yes" >&5
3246echo "${ECHO_T}yes" >&6
3247else
3248  echo "$as_me:$LINENO: result: no" >&5
3249echo "${ECHO_T}no" >&6
3250  { echo "$as_me:$LINENO: WARNING: You either need a newer version of flex, or need to modify
3251the defintion of LEX in the Makefile to point to a version that does
3252accept -p -t and -o." >&5
3253echo "$as_me: WARNING: You either need a newer version of flex, or need to modify
3254the defintion of LEX in the Makefile to point to a version that does
3255accept -p -t and -o." >&2;}
3256fi
3257
3258for ac_prog in 'bison -y' byacc
3259do
3260  # Extract the first word of "$ac_prog", so it can be a program name with args.
3261set dummy $ac_prog; ac_word=$2
3262echo "$as_me:$LINENO: checking for $ac_word" >&5
3263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3264if test "${ac_cv_prog_YACC+set}" = set; then
3265  echo $ECHO_N "(cached) $ECHO_C" >&6
3266else
3267  if test -n "$YACC"; then
3268  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3269else
3270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271for as_dir in $PATH
3272do
3273  IFS=$as_save_IFS
3274  test -z "$as_dir" && as_dir=.
3275  for ac_exec_ext in '' $ac_executable_extensions; do
3276  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277    ac_cv_prog_YACC="$ac_prog"
3278    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279    break 2
3280  fi
3281done
3282done
3283
3284fi
3285fi
3286YACC=$ac_cv_prog_YACC
3287if test -n "$YACC"; then
3288  echo "$as_me:$LINENO: result: $YACC" >&5
3289echo "${ECHO_T}$YACC" >&6
3290else
3291  echo "$as_me:$LINENO: result: no" >&5
3292echo "${ECHO_T}no" >&6
3293fi
3294
3295  test -n "$YACC" && break
3296done
3297test -n "$YACC" || YACC="yacc"
3298
3299echo "$as_me:$LINENO: checking if $YACC accepts the -p, -t, and -o options" >&5
3300echo $ECHO_N "checking if $YACC accepts the -p, -t, and -o options... $ECHO_C" >&6
3301if test "${ac_cv_yacc_accepts_pto+set}" = set; then
3302  echo $ECHO_N "(cached) $ECHO_C" >&6
3303else
3304   ac_cv_yacc_accepts_pto=yes ;
3305echo "%token terminal\
3306%%\
3307nonterminal: terminal\
3308%%" > config.in
3309$YACC -ptest -o /dev/null config.in >/dev/null 2>&1 || ac_cv_yacc_accepts_pto=no
3310rm -f config.in
3311fi
3312
3313if test $ac_cv_yacc_accepts_pto = yes ; then
3314  echo "$as_me:$LINENO: result: yes" >&5
3315echo "${ECHO_T}yes" >&6
3316else
3317  echo "$as_me:$LINENO: result: no" >&5
3318echo "${ECHO_T}no" >&6
3319  { echo "$as_me:$LINENO: WARNING: You either need a newer version of bison, or need to modify
3320the defintion of YACC in the Makefile to point to a version that does
3321accept -p -t and -o." >&5
3322echo "$as_me: WARNING: You either need a newer version of bison, or need to modify
3323the defintion of YACC in the Makefile to point to a version that does
3324accept -p -t and -o." >&2;}
3325fi
3326
3327#----------------------------------------------------------------------
3328# Checks for headers and libraries
3329#----------------------------------------------------------------------
3330ac_ext=c
3331ac_cpp='$CPP $CPPFLAGS'
3332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3336echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3337# On Suns, sometimes $CPP names a directory.
3338if test -n "$CPP" && test -d "$CPP"; then
3339  CPP=
3340fi
3341if test -z "$CPP"; then
3342  if test "${ac_cv_prog_CPP+set}" = set; then
3343  echo $ECHO_N "(cached) $ECHO_C" >&6
3344else
3345      # Double quotes because CPP needs to be expanded
3346    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3347    do
3348      ac_preproc_ok=false
3349for ac_c_preproc_warn_flag in '' yes
3350do
3351  # Use a header file that comes with gcc, so configuring glibc
3352  # with a fresh cross-compiler works.
3353  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3354  # <limits.h> exists even on freestanding compilers.
3355  # On the NeXT, cc -E runs the code through the compiler's parser,
3356  # not just through cpp. "Syntax error" is here to catch this case.
3357  cat >conftest.$ac_ext <<_ACEOF
3358#line $LINENO "configure"
3359/* confdefs.h.  */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h.  */
3364#ifdef __STDC__
3365# include <limits.h>
3366#else
3367# include <assert.h>
3368#endif
3369                     Syntax error
3370_ACEOF
3371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3372  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3373  ac_status=$?
3374  grep -v '^ *+' conftest.er1 >conftest.err
3375  rm -f conftest.er1
3376  cat conftest.err >&5
3377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378  (exit $ac_status); } >/dev/null; then
3379  if test -s conftest.err; then
3380    ac_cpp_err=$ac_c_preproc_warn_flag
3381  else
3382    ac_cpp_err=
3383  fi
3384else
3385  ac_cpp_err=yes
3386fi
3387if test -z "$ac_cpp_err"; then
3388  :
3389else
3390  echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393  # Broken: fails on valid input.
3394continue
3395fi
3396rm -f conftest.err conftest.$ac_ext
3397
3398  # OK, works on sane cases.  Now check whether non-existent headers
3399  # can be detected and how.
3400  cat >conftest.$ac_ext <<_ACEOF
3401#line $LINENO "configure"
3402/* confdefs.h.  */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
3406/* end confdefs.h.  */
3407#include <ac_nonexistent.h>
3408_ACEOF
3409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3410  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3411  ac_status=$?
3412  grep -v '^ *+' conftest.er1 >conftest.err
3413  rm -f conftest.er1
3414  cat conftest.err >&5
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); } >/dev/null; then
3417  if test -s conftest.err; then
3418    ac_cpp_err=$ac_c_preproc_warn_flag
3419  else
3420    ac_cpp_err=
3421  fi
3422else
3423  ac_cpp_err=yes
3424fi
3425if test -z "$ac_cpp_err"; then
3426  # Broken: success on invalid input.
3427continue
3428else
3429  echo "$as_me: failed program was:" >&5
3430sed 's/^/| /' conftest.$ac_ext >&5
3431
3432  # Passes both tests.
3433ac_preproc_ok=:
3434break
3435fi
3436rm -f conftest.err conftest.$ac_ext
3437
3438done
3439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440rm -f conftest.err conftest.$ac_ext
3441if $ac_preproc_ok; then
3442  break
3443fi
3444
3445    done
3446    ac_cv_prog_CPP=$CPP
3447
3448fi
3449  CPP=$ac_cv_prog_CPP
3450else
3451  ac_cv_prog_CPP=$CPP
3452fi
3453echo "$as_me:$LINENO: result: $CPP" >&5
3454echo "${ECHO_T}$CPP" >&6
3455ac_preproc_ok=false
3456for ac_c_preproc_warn_flag in '' yes
3457do
3458  # Use a header file that comes with gcc, so configuring glibc
3459  # with a fresh cross-compiler works.
3460  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3461  # <limits.h> exists even on freestanding compilers.
3462  # On the NeXT, cc -E runs the code through the compiler's parser,
3463  # not just through cpp. "Syntax error" is here to catch this case.
3464  cat >conftest.$ac_ext <<_ACEOF
3465#line $LINENO "configure"
3466/* confdefs.h.  */
3467_ACEOF
3468cat confdefs.h >>conftest.$ac_ext
3469cat >>conftest.$ac_ext <<_ACEOF
3470/* end confdefs.h.  */
3471#ifdef __STDC__
3472# include <limits.h>
3473#else
3474# include <assert.h>
3475#endif
3476                     Syntax error
3477_ACEOF
3478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3479  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3480  ac_status=$?
3481  grep -v '^ *+' conftest.er1 >conftest.err
3482  rm -f conftest.er1
3483  cat conftest.err >&5
3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); } >/dev/null; then
3486  if test -s conftest.err; then
3487    ac_cpp_err=$ac_c_preproc_warn_flag
3488  else
3489    ac_cpp_err=
3490  fi
3491else
3492  ac_cpp_err=yes
3493fi
3494if test -z "$ac_cpp_err"; then
3495  :
3496else
3497  echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
3500  # Broken: fails on valid input.
3501continue
3502fi
3503rm -f conftest.err conftest.$ac_ext
3504
3505  # OK, works on sane cases.  Now check whether non-existent headers
3506  # can be detected and how.
3507  cat >conftest.$ac_ext <<_ACEOF
3508#line $LINENO "configure"
3509/* confdefs.h.  */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h.  */
3514#include <ac_nonexistent.h>
3515_ACEOF
3516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3517  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3518  ac_status=$?
3519  grep -v '^ *+' conftest.er1 >conftest.err
3520  rm -f conftest.er1
3521  cat conftest.err >&5
3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); } >/dev/null; then
3524  if test -s conftest.err; then
3525    ac_cpp_err=$ac_c_preproc_warn_flag
3526  else
3527    ac_cpp_err=
3528  fi
3529else
3530  ac_cpp_err=yes
3531fi
3532if test -z "$ac_cpp_err"; then
3533  # Broken: success on invalid input.
3534continue
3535else
3536  echo "$as_me: failed program was:" >&5
3537sed 's/^/| /' conftest.$ac_ext >&5
3538
3539  # Passes both tests.
3540ac_preproc_ok=:
3541break
3542fi
3543rm -f conftest.err conftest.$ac_ext
3544
3545done
3546# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3547rm -f conftest.err conftest.$ac_ext
3548if $ac_preproc_ok; then
3549  :
3550else
3551  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3552See \`config.log' for more details." >&5
3553echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3554See \`config.log' for more details." >&2;}
3555   { (exit 1); exit 1; }; }
3556fi
3557
3558ac_ext=c
3559ac_cpp='$CPP $CPPFLAGS'
3560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563
3564
3565echo "$as_me:$LINENO: checking for egrep" >&5
3566echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3567if test "${ac_cv_prog_egrep+set}" = set; then
3568  echo $ECHO_N "(cached) $ECHO_C" >&6
3569else
3570  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3571    then ac_cv_prog_egrep='grep -E'
3572    else ac_cv_prog_egrep='egrep'
3573    fi
3574fi
3575echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3576echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3577 EGREP=$ac_cv_prog_egrep
3578
3579
3580echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3581echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3582if test "${ac_cv_header_stdc+set}" = set; then
3583  echo $ECHO_N "(cached) $ECHO_C" >&6
3584else
3585  cat >conftest.$ac_ext <<_ACEOF
3586#line $LINENO "configure"
3587/* confdefs.h.  */
3588_ACEOF
3589cat confdefs.h >>conftest.$ac_ext
3590cat >>conftest.$ac_ext <<_ACEOF
3591/* end confdefs.h.  */
3592#include <stdlib.h>
3593#include <stdarg.h>
3594#include <string.h>
3595#include <float.h>
3596
3597int
3598main ()
3599{
3600
3601  ;
3602  return 0;
3603}
3604_ACEOF
3605rm -f conftest.$ac_objext
3606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3607  (eval $ac_compile) 2>&5
3608  ac_status=$?
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); } &&
3611         { ac_try='test -s conftest.$ac_objext'
3612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613  (eval $ac_try) 2>&5
3614  ac_status=$?
3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); }; }; then
3617  ac_cv_header_stdc=yes
3618else
3619  echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
3622ac_cv_header_stdc=no
3623fi
3624rm -f conftest.$ac_objext conftest.$ac_ext
3625
3626if test $ac_cv_header_stdc = yes; then
3627  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3628  cat >conftest.$ac_ext <<_ACEOF
3629#line $LINENO "configure"
3630/* confdefs.h.  */
3631_ACEOF
3632cat confdefs.h >>conftest.$ac_ext
3633cat >>conftest.$ac_ext <<_ACEOF
3634/* end confdefs.h.  */
3635#include <string.h>
3636
3637_ACEOF
3638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639  $EGREP "memchr" >/dev/null 2>&1; then
3640  :
3641else
3642  ac_cv_header_stdc=no
3643fi
3644rm -f conftest*
3645
3646fi
3647
3648if test $ac_cv_header_stdc = yes; then
3649  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3650  cat >conftest.$ac_ext <<_ACEOF
3651#line $LINENO "configure"
3652/* confdefs.h.  */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h.  */
3657#include <stdlib.h>
3658
3659_ACEOF
3660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3661  $EGREP "free" >/dev/null 2>&1; then
3662  :
3663else
3664  ac_cv_header_stdc=no
3665fi
3666rm -f conftest*
3667
3668fi
3669
3670if test $ac_cv_header_stdc = yes; then
3671  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3672  if test "$cross_compiling" = yes; then
3673  :
3674else
3675  cat >conftest.$ac_ext <<_ACEOF
3676#line $LINENO "configure"
3677/* confdefs.h.  */
3678_ACEOF
3679cat confdefs.h >>conftest.$ac_ext
3680cat >>conftest.$ac_ext <<_ACEOF
3681/* end confdefs.h.  */
3682#include <ctype.h>
3683#if ((' ' & 0x0FF) == 0x020)
3684# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3685# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3686#else
3687# define ISLOWER(c) \
3688                   (('a' <= (c) && (c) <= 'i') \
3689                     || ('j' <= (c) && (c) <= 'r') \
3690                     || ('s' <= (c) && (c) <= 'z'))
3691# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3692#endif
3693
3694#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3695int
3696main ()
3697{
3698  int i;
3699  for (i = 0; i < 256; i++)
3700    if (XOR (islower (i), ISLOWER (i))
3701        || toupper (i) != TOUPPER (i))
3702      exit(2);
3703  exit (0);
3704}
3705_ACEOF
3706rm -f conftest$ac_exeext
3707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3708  (eval $ac_link) 2>&5
3709  ac_status=$?
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713  (eval $ac_try) 2>&5
3714  ac_status=$?
3715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716  (exit $ac_status); }; }; then
3717  :
3718else
3719  echo "$as_me: program exited with status $ac_status" >&5
3720echo "$as_me: failed program was:" >&5
3721sed 's/^/| /' conftest.$ac_ext >&5
3722
3723( exit $ac_status )
3724ac_cv_header_stdc=no
3725fi
3726rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3727fi
3728fi
3729fi
3730echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3731echo "${ECHO_T}$ac_cv_header_stdc" >&6
3732if test $ac_cv_header_stdc = yes; then
3733
3734cat >>confdefs.h <<\_ACEOF
3735#define STDC_HEADERS 1
3736_ACEOF
3737
3738fi
3739
3740
3741
3742
3743# add -lucb to LIBS and -L/usr/ucblib to LIBDIRS
3744# if there's a libucb.a available
3745# (Solaris needs this for signals)
3746
3747ac_save_ldflags="$LDFLAGS"
3748LDFLAGS=-L/usr/ucblib
3749echo "$as_me:$LINENO: checking for main in -lucb" >&5
3750echo $ECHO_N "checking for main in -lucb... $ECHO_C" >&6
3751if test "${ac_cv_lib_ucb_main+set}" = set; then
3752  echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754  ac_check_lib_save_LIBS=$LIBS
3755LIBS="-lucb  $LIBS"
3756cat >conftest.$ac_ext <<_ACEOF
3757#line $LINENO "configure"
3758/* confdefs.h.  */
3759_ACEOF
3760cat confdefs.h >>conftest.$ac_ext
3761cat >>conftest.$ac_ext <<_ACEOF
3762/* end confdefs.h.  */
3763
3764
3765int
3766main ()
3767{
3768main ();
3769  ;
3770  return 0;
3771}
3772_ACEOF
3773rm -f conftest.$ac_objext conftest$ac_exeext
3774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3775  (eval $ac_link) 2>&5
3776  ac_status=$?
3777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778  (exit $ac_status); } &&
3779         { ac_try='test -s conftest$ac_exeext'
3780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781  (eval $ac_try) 2>&5
3782  ac_status=$?
3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784  (exit $ac_status); }; }; then
3785  ac_cv_lib_ucb_main=yes
3786else
3787  echo "$as_me: failed program was:" >&5
3788sed 's/^/| /' conftest.$ac_ext >&5
3789
3790ac_cv_lib_ucb_main=no
3791fi
3792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3793LIBS=$ac_check_lib_save_LIBS
3794fi
3795echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_main" >&5
3796echo "${ECHO_T}$ac_cv_lib_ucb_main" >&6
3797if test $ac_cv_lib_ucb_main = yes; then
3798  LIBDIRS="$LIBDIRS -L/usr/ucblib"
3799fi
3800
3801LDFLAGS="$ac_save_ldflags"
3802
3803# add -lbsd if there's a libbsd.a available
3804# (e.g., Linux needs this for bsd_ioctl)
3805
3806echo "$as_me:$LINENO: checking for main in -lbsd" >&5
3807echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
3808if test "${ac_cv_lib_bsd_main+set}" = set; then
3809  echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811  ac_check_lib_save_LIBS=$LIBS
3812LIBS="-lbsd  $LIBS"
3813cat >conftest.$ac_ext <<_ACEOF
3814#line $LINENO "configure"
3815/* confdefs.h.  */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
3819/* end confdefs.h.  */
3820
3821
3822int
3823main ()
3824{
3825main ();
3826  ;
3827  return 0;
3828}
3829_ACEOF
3830rm -f conftest.$ac_objext conftest$ac_exeext
3831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3832  (eval $ac_link) 2>&5
3833  ac_status=$?
3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835  (exit $ac_status); } &&
3836         { ac_try='test -s conftest$ac_exeext'
3837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838  (eval $ac_try) 2>&5
3839  ac_status=$?
3840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841  (exit $ac_status); }; }; then
3842  ac_cv_lib_bsd_main=yes
3843else
3844  echo "$as_me: failed program was:" >&5
3845sed 's/^/| /' conftest.$ac_ext >&5
3846
3847ac_cv_lib_bsd_main=no
3848fi
3849rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3850LIBS=$ac_check_lib_save_LIBS
3851fi
3852echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
3853echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
3854if test $ac_cv_lib_bsd_main = yes; then
3855  cat >>confdefs.h <<_ACEOF
3856#define HAVE_LIBBSD 1
3857_ACEOF
3858
3859  LIBS="-lbsd $LIBS"
3860
3861fi
3862
3863
3864# Check if libreadline exists and the function readline can be used.
3865# This implies checking for the availability of libtermcap or of a
3866# suitable replacement.  (We only look for libncurses.)
3867if test "${vis_cv_termcap_lib+set}" = set; then
3868  echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870  echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
3871echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
3872if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
3873  echo $ECHO_N "(cached) $ECHO_C" >&6
3874else
3875  ac_check_lib_save_LIBS=$LIBS
3876LIBS="-ltermcap  $LIBS"
3877cat >conftest.$ac_ext <<_ACEOF
3878#line $LINENO "configure"
3879/* confdefs.h.  */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
3883/* end confdefs.h.  */
3884
3885/* Override any gcc2 internal prototype to avoid an error.  */
3886#ifdef __cplusplus
3887extern "C"
3888#endif
3889/* We use char because int might match the return type of a gcc2
3890   builtin and then its argument prototype would still apply.  */
3891char tgetent ();
3892int
3893main ()
3894{
3895tgetent ();
3896  ;
3897  return 0;
3898}
3899_ACEOF
3900rm -f conftest.$ac_objext conftest$ac_exeext
3901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902  (eval $ac_link) 2>&5
3903  ac_status=$?
3904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905  (exit $ac_status); } &&
3906         { ac_try='test -s conftest$ac_exeext'
3907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908  (eval $ac_try) 2>&5
3909  ac_status=$?
3910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911  (exit $ac_status); }; }; then
3912  ac_cv_lib_termcap_tgetent=yes
3913else
3914  echo "$as_me: failed program was:" >&5
3915sed 's/^/| /' conftest.$ac_ext >&5
3916
3917ac_cv_lib_termcap_tgetent=no
3918fi
3919rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3920LIBS=$ac_check_lib_save_LIBS
3921fi
3922echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
3923echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
3924if test $ac_cv_lib_termcap_tgetent = yes; then
3925  vis_cv_termcap_lib=-ltermcap
3926else
3927  echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
3928echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
3929if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
3930  echo $ECHO_N "(cached) $ECHO_C" >&6
3931else
3932  ac_check_lib_save_LIBS=$LIBS
3933LIBS="-lncurses  $LIBS"
3934cat >conftest.$ac_ext <<_ACEOF
3935#line $LINENO "configure"
3936/* confdefs.h.  */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h.  */
3941
3942/* Override any gcc2 internal prototype to avoid an error.  */
3943#ifdef __cplusplus
3944extern "C"
3945#endif
3946/* We use char because int might match the return type of a gcc2
3947   builtin and then its argument prototype would still apply.  */
3948char tgetent ();
3949int
3950main ()
3951{
3952tgetent ();
3953  ;
3954  return 0;
3955}
3956_ACEOF
3957rm -f conftest.$ac_objext conftest$ac_exeext
3958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3959  (eval $ac_link) 2>&5
3960  ac_status=$?
3961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962  (exit $ac_status); } &&
3963         { ac_try='test -s conftest$ac_exeext'
3964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965  (eval $ac_try) 2>&5
3966  ac_status=$?
3967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968  (exit $ac_status); }; }; then
3969  ac_cv_lib_ncurses_tgetent=yes
3970else
3971  echo "$as_me: failed program was:" >&5
3972sed 's/^/| /' conftest.$ac_ext >&5
3973
3974ac_cv_lib_ncurses_tgetent=no
3975fi
3976rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3977LIBS=$ac_check_lib_save_LIBS
3978fi
3979echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
3980echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
3981if test $ac_cv_lib_ncurses_tgetent = yes; then
3982  vis_cv_termcap_lib=-lncurses
3983else
3984  bash_cv_termcap_lib=none
3985fi
3986
3987fi
3988
3989fi
3990
3991if test "$vis_cv_termcap_lib" != none; then
3992  echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
3993echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
3994if test "${ac_cv_lib_readline_readline+set}" = set; then
3995  echo $ECHO_N "(cached) $ECHO_C" >&6
3996else
3997  ac_check_lib_save_LIBS=$LIBS
3998LIBS="-lreadline $vis_cv_termcap_lib $LIBS"
3999cat >conftest.$ac_ext <<_ACEOF
4000#line $LINENO "configure"
4001/* confdefs.h.  */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h.  */
4006
4007/* Override any gcc2 internal prototype to avoid an error.  */
4008#ifdef __cplusplus
4009extern "C"
4010#endif
4011/* We use char because int might match the return type of a gcc2
4012   builtin and then its argument prototype would still apply.  */
4013char readline ();
4014int
4015main ()
4016{
4017readline ();
4018  ;
4019  return 0;
4020}
4021_ACEOF
4022rm -f conftest.$ac_objext conftest$ac_exeext
4023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4024  (eval $ac_link) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); } &&
4028         { ac_try='test -s conftest$ac_exeext'
4029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030  (eval $ac_try) 2>&5
4031  ac_status=$?
4032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033  (exit $ac_status); }; }; then
4034  ac_cv_lib_readline_readline=yes
4035else
4036  echo "$as_me: failed program was:" >&5
4037sed 's/^/| /' conftest.$ac_ext >&5
4038
4039ac_cv_lib_readline_readline=no
4040fi
4041rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4042LIBS=$ac_check_lib_save_LIBS
4043fi
4044echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
4045echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
4046if test $ac_cv_lib_readline_readline = yes; then
4047  ac_readline_flag=1
4048else
4049  ac_readline_flag=0
4050fi
4051
4052  if test $ac_readline_flag = 1 ; then
4053    LIBS="$LIBS -lreadline $vis_cv_termcap_lib" ; cat >>confdefs.h <<\_ACEOF
4054#define HAVE_LIBREADLINE 1
4055_ACEOF
4056
4057  fi
4058fi
4059
4060# Check for the dirent header file, which is quite a mess
4061
4062
4063
4064
4065
4066ac_header_dirent=no
4067for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4068  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4069echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4070echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4071if eval "test \"\${$as_ac_Header+set}\" = set"; then
4072  echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074  cat >conftest.$ac_ext <<_ACEOF
4075#line $LINENO "configure"
4076/* confdefs.h.  */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
4080/* end confdefs.h.  */
4081#include <sys/types.h>
4082#include <$ac_hdr>
4083
4084int
4085main ()
4086{
4087if ((DIR *) 0)
4088return 0;
4089  ;
4090  return 0;
4091}
4092_ACEOF
4093rm -f conftest.$ac_objext
4094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095  (eval $ac_compile) 2>&5
4096  ac_status=$?
4097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098  (exit $ac_status); } &&
4099         { ac_try='test -s conftest.$ac_objext'
4100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101  (eval $ac_try) 2>&5
4102  ac_status=$?
4103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104  (exit $ac_status); }; }; then
4105  eval "$as_ac_Header=yes"
4106else
4107  echo "$as_me: failed program was:" >&5
4108sed 's/^/| /' conftest.$ac_ext >&5
4109
4110eval "$as_ac_Header=no"
4111fi
4112rm -f conftest.$ac_objext conftest.$ac_ext
4113fi
4114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4116if test `eval echo '${'$as_ac_Header'}'` = yes; then
4117  cat >>confdefs.h <<_ACEOF
4118#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4119_ACEOF
4120
4121ac_header_dirent=$ac_hdr; break
4122fi
4123
4124done
4125# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4126if test $ac_header_dirent = dirent.h; then
4127  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4128echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4129if test "${ac_cv_search_opendir+set}" = set; then
4130  echo $ECHO_N "(cached) $ECHO_C" >&6
4131else
4132  ac_func_search_save_LIBS=$LIBS
4133ac_cv_search_opendir=no
4134cat >conftest.$ac_ext <<_ACEOF
4135#line $LINENO "configure"
4136/* confdefs.h.  */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h.  */
4141
4142/* Override any gcc2 internal prototype to avoid an error.  */
4143#ifdef __cplusplus
4144extern "C"
4145#endif
4146/* We use char because int might match the return type of a gcc2
4147   builtin and then its argument prototype would still apply.  */
4148char opendir ();
4149int
4150main ()
4151{
4152opendir ();
4153  ;
4154  return 0;
4155}
4156_ACEOF
4157rm -f conftest.$ac_objext conftest$ac_exeext
4158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159  (eval $ac_link) 2>&5
4160  ac_status=$?
4161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162  (exit $ac_status); } &&
4163         { ac_try='test -s conftest$ac_exeext'
4164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165  (eval $ac_try) 2>&5
4166  ac_status=$?
4167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168  (exit $ac_status); }; }; then
4169  ac_cv_search_opendir="none required"
4170else
4171  echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
4173
4174fi
4175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4176if test "$ac_cv_search_opendir" = no; then
4177  for ac_lib in dir; do
4178    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4179    cat >conftest.$ac_ext <<_ACEOF
4180#line $LINENO "configure"
4181/* confdefs.h.  */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
4185/* end confdefs.h.  */
4186
4187/* Override any gcc2 internal prototype to avoid an error.  */
4188#ifdef __cplusplus
4189extern "C"
4190#endif
4191/* We use char because int might match the return type of a gcc2
4192   builtin and then its argument prototype would still apply.  */
4193char opendir ();
4194int
4195main ()
4196{
4197opendir ();
4198  ;
4199  return 0;
4200}
4201_ACEOF
4202rm -f conftest.$ac_objext conftest$ac_exeext
4203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204  (eval $ac_link) 2>&5
4205  ac_status=$?
4206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207  (exit $ac_status); } &&
4208         { ac_try='test -s conftest$ac_exeext'
4209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210  (eval $ac_try) 2>&5
4211  ac_status=$?
4212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213  (exit $ac_status); }; }; then
4214  ac_cv_search_opendir="-l$ac_lib"
4215break
4216else
4217  echo "$as_me: failed program was:" >&5
4218sed 's/^/| /' conftest.$ac_ext >&5
4219
4220fi
4221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4222  done
4223fi
4224LIBS=$ac_func_search_save_LIBS
4225fi
4226echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4227echo "${ECHO_T}$ac_cv_search_opendir" >&6
4228if test "$ac_cv_search_opendir" != no; then
4229  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4230
4231fi
4232
4233else
4234  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4235echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4236if test "${ac_cv_search_opendir+set}" = set; then
4237  echo $ECHO_N "(cached) $ECHO_C" >&6
4238else
4239  ac_func_search_save_LIBS=$LIBS
4240ac_cv_search_opendir=no
4241cat >conftest.$ac_ext <<_ACEOF
4242#line $LINENO "configure"
4243/* confdefs.h.  */
4244_ACEOF
4245cat confdefs.h >>conftest.$ac_ext
4246cat >>conftest.$ac_ext <<_ACEOF
4247/* end confdefs.h.  */
4248
4249/* Override any gcc2 internal prototype to avoid an error.  */
4250#ifdef __cplusplus
4251extern "C"
4252#endif
4253/* We use char because int might match the return type of a gcc2
4254   builtin and then its argument prototype would still apply.  */
4255char opendir ();
4256int
4257main ()
4258{
4259opendir ();
4260  ;
4261  return 0;
4262}
4263_ACEOF
4264rm -f conftest.$ac_objext conftest$ac_exeext
4265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266  (eval $ac_link) 2>&5
4267  ac_status=$?
4268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269  (exit $ac_status); } &&
4270         { ac_try='test -s conftest$ac_exeext'
4271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272  (eval $ac_try) 2>&5
4273  ac_status=$?
4274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275  (exit $ac_status); }; }; then
4276  ac_cv_search_opendir="none required"
4277else
4278  echo "$as_me: failed program was:" >&5
4279sed 's/^/| /' conftest.$ac_ext >&5
4280
4281fi
4282rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4283if test "$ac_cv_search_opendir" = no; then
4284  for ac_lib in x; do
4285    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4286    cat >conftest.$ac_ext <<_ACEOF
4287#line $LINENO "configure"
4288/* confdefs.h.  */
4289_ACEOF
4290cat confdefs.h >>conftest.$ac_ext
4291cat >>conftest.$ac_ext <<_ACEOF
4292/* end confdefs.h.  */
4293
4294/* Override any gcc2 internal prototype to avoid an error.  */
4295#ifdef __cplusplus
4296extern "C"
4297#endif
4298/* We use char because int might match the return type of a gcc2
4299   builtin and then its argument prototype would still apply.  */
4300char opendir ();
4301int
4302main ()
4303{
4304opendir ();
4305  ;
4306  return 0;
4307}
4308_ACEOF
4309rm -f conftest.$ac_objext conftest$ac_exeext
4310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4311  (eval $ac_link) 2>&5
4312  ac_status=$?
4313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314  (exit $ac_status); } &&
4315         { ac_try='test -s conftest$ac_exeext'
4316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317  (eval $ac_try) 2>&5
4318  ac_status=$?
4319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320  (exit $ac_status); }; }; then
4321  ac_cv_search_opendir="-l$ac_lib"
4322break
4323else
4324  echo "$as_me: failed program was:" >&5
4325sed 's/^/| /' conftest.$ac_ext >&5
4326
4327fi
4328rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4329  done
4330fi
4331LIBS=$ac_func_search_save_LIBS
4332fi
4333echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4334echo "${ECHO_T}$ac_cv_search_opendir" >&6
4335if test "$ac_cv_search_opendir" != no; then
4336  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4337
4338fi
4339
4340fi
4341
4342
4343# Check for these system header files
4344# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4355                  inttypes.h stdint.h unistd.h
4356do
4357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4358echo "$as_me:$LINENO: checking for $ac_header" >&5
4359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4360if eval "test \"\${$as_ac_Header+set}\" = set"; then
4361  echo $ECHO_N "(cached) $ECHO_C" >&6
4362else
4363  cat >conftest.$ac_ext <<_ACEOF
4364#line $LINENO "configure"
4365/* confdefs.h.  */
4366_ACEOF
4367cat confdefs.h >>conftest.$ac_ext
4368cat >>conftest.$ac_ext <<_ACEOF
4369/* end confdefs.h.  */
4370$ac_includes_default
4371
4372#include <$ac_header>
4373_ACEOF
4374rm -f conftest.$ac_objext
4375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376  (eval $ac_compile) 2>&5
4377  ac_status=$?
4378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379  (exit $ac_status); } &&
4380         { ac_try='test -s conftest.$ac_objext'
4381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382  (eval $ac_try) 2>&5
4383  ac_status=$?
4384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385  (exit $ac_status); }; }; then
4386  eval "$as_ac_Header=yes"
4387else
4388  echo "$as_me: failed program was:" >&5
4389sed 's/^/| /' conftest.$ac_ext >&5
4390
4391eval "$as_ac_Header=no"
4392fi
4393rm -f conftest.$ac_objext conftest.$ac_ext
4394fi
4395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4397if test `eval echo '${'$as_ac_Header'}'` = yes; then
4398  cat >>confdefs.h <<_ACEOF
4399#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4400_ACEOF
4401
4402fi
4403
4404done
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414for ac_header in sys/termios.h sys/ioctl.h sys/time.h signal.h sys/signal.h readline/readline.h readline/history.h
4415do
4416as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4417if eval "test \"\${$as_ac_Header+set}\" = set"; then
4418  echo "$as_me:$LINENO: checking for $ac_header" >&5
4419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4420if eval "test \"\${$as_ac_Header+set}\" = set"; then
4421  echo $ECHO_N "(cached) $ECHO_C" >&6
4422fi
4423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4425else
4426  # Is the header compilable?
4427echo "$as_me:$LINENO: checking $ac_header usability" >&5
4428echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4429cat >conftest.$ac_ext <<_ACEOF
4430#line $LINENO "configure"
4431/* confdefs.h.  */
4432_ACEOF
4433cat confdefs.h >>conftest.$ac_ext
4434cat >>conftest.$ac_ext <<_ACEOF
4435/* end confdefs.h.  */
4436$ac_includes_default
4437#include <$ac_header>
4438_ACEOF
4439rm -f conftest.$ac_objext
4440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4441  (eval $ac_compile) 2>&5
4442  ac_status=$?
4443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444  (exit $ac_status); } &&
4445         { ac_try='test -s conftest.$ac_objext'
4446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447  (eval $ac_try) 2>&5
4448  ac_status=$?
4449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450  (exit $ac_status); }; }; then
4451  ac_header_compiler=yes
4452else
4453  echo "$as_me: failed program was:" >&5
4454sed 's/^/| /' conftest.$ac_ext >&5
4455
4456ac_header_compiler=no
4457fi
4458rm -f conftest.$ac_objext conftest.$ac_ext
4459echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4460echo "${ECHO_T}$ac_header_compiler" >&6
4461
4462# Is the header present?
4463echo "$as_me:$LINENO: checking $ac_header presence" >&5
4464echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4465cat >conftest.$ac_ext <<_ACEOF
4466#line $LINENO "configure"
4467/* confdefs.h.  */
4468_ACEOF
4469cat confdefs.h >>conftest.$ac_ext
4470cat >>conftest.$ac_ext <<_ACEOF
4471/* end confdefs.h.  */
4472#include <$ac_header>
4473_ACEOF
4474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4475  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4476  ac_status=$?
4477  grep -v '^ *+' conftest.er1 >conftest.err
4478  rm -f conftest.er1
4479  cat conftest.err >&5
4480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481  (exit $ac_status); } >/dev/null; then
4482  if test -s conftest.err; then
4483    ac_cpp_err=$ac_c_preproc_warn_flag
4484  else
4485    ac_cpp_err=
4486  fi
4487else
4488  ac_cpp_err=yes
4489fi
4490if test -z "$ac_cpp_err"; then
4491  ac_header_preproc=yes
4492else
4493  echo "$as_me: failed program was:" >&5
4494sed 's/^/| /' conftest.$ac_ext >&5
4495
4496  ac_header_preproc=no
4497fi
4498rm -f conftest.err conftest.$ac_ext
4499echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4500echo "${ECHO_T}$ac_header_preproc" >&6
4501
4502# So?  What about this header?
4503case $ac_header_compiler:$ac_header_preproc in
4504  yes:no )
4505    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4506echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4507    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4509    (
4510      cat <<\_ASBOX
4511## ------------------------------------ ##
4512## Report this to bug-autoconf@gnu.org. ##
4513## ------------------------------------ ##
4514_ASBOX
4515    ) |
4516      sed "s/^/$as_me: WARNING:     /" >&2
4517    ;;
4518  no:yes )
4519    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4521    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4522echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4523    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4524echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4525    (
4526      cat <<\_ASBOX
4527## ------------------------------------ ##
4528## Report this to bug-autoconf@gnu.org. ##
4529## ------------------------------------ ##
4530_ASBOX
4531    ) |
4532      sed "s/^/$as_me: WARNING:     /" >&2
4533    ;;
4534esac
4535echo "$as_me:$LINENO: checking for $ac_header" >&5
4536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4537if eval "test \"\${$as_ac_Header+set}\" = set"; then
4538  echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540  eval "$as_ac_Header=$ac_header_preproc"
4541fi
4542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4544
4545fi
4546if test `eval echo '${'$as_ac_Header'}'` = yes; then
4547  cat >>confdefs.h <<_ACEOF
4548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4549_ACEOF
4550
4551fi
4552
4553done
4554
4555
4556# This is for Linux
4557
4558for ac_header in bsd/sgtty.h
4559do
4560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4561if eval "test \"\${$as_ac_Header+set}\" = set"; then
4562  echo "$as_me:$LINENO: checking for $ac_header" >&5
4563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4564if eval "test \"\${$as_ac_Header+set}\" = set"; then
4565  echo $ECHO_N "(cached) $ECHO_C" >&6
4566fi
4567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4569else
4570  # Is the header compilable?
4571echo "$as_me:$LINENO: checking $ac_header usability" >&5
4572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4573cat >conftest.$ac_ext <<_ACEOF
4574#line $LINENO "configure"
4575/* confdefs.h.  */
4576_ACEOF
4577cat confdefs.h >>conftest.$ac_ext
4578cat >>conftest.$ac_ext <<_ACEOF
4579/* end confdefs.h.  */
4580$ac_includes_default
4581#include <$ac_header>
4582_ACEOF
4583rm -f conftest.$ac_objext
4584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585  (eval $ac_compile) 2>&5
4586  ac_status=$?
4587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588  (exit $ac_status); } &&
4589         { ac_try='test -s conftest.$ac_objext'
4590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591  (eval $ac_try) 2>&5
4592  ac_status=$?
4593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594  (exit $ac_status); }; }; then
4595  ac_header_compiler=yes
4596else
4597  echo "$as_me: failed program was:" >&5
4598sed 's/^/| /' conftest.$ac_ext >&5
4599
4600ac_header_compiler=no
4601fi
4602rm -f conftest.$ac_objext conftest.$ac_ext
4603echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4604echo "${ECHO_T}$ac_header_compiler" >&6
4605
4606# Is the header present?
4607echo "$as_me:$LINENO: checking $ac_header presence" >&5
4608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4609cat >conftest.$ac_ext <<_ACEOF
4610#line $LINENO "configure"
4611/* confdefs.h.  */
4612_ACEOF
4613cat confdefs.h >>conftest.$ac_ext
4614cat >>conftest.$ac_ext <<_ACEOF
4615/* end confdefs.h.  */
4616#include <$ac_header>
4617_ACEOF
4618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4619  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4620  ac_status=$?
4621  grep -v '^ *+' conftest.er1 >conftest.err
4622  rm -f conftest.er1
4623  cat conftest.err >&5
4624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625  (exit $ac_status); } >/dev/null; then
4626  if test -s conftest.err; then
4627    ac_cpp_err=$ac_c_preproc_warn_flag
4628  else
4629    ac_cpp_err=
4630  fi
4631else
4632  ac_cpp_err=yes
4633fi
4634if test -z "$ac_cpp_err"; then
4635  ac_header_preproc=yes
4636else
4637  echo "$as_me: failed program was:" >&5
4638sed 's/^/| /' conftest.$ac_ext >&5
4639
4640  ac_header_preproc=no
4641fi
4642rm -f conftest.err conftest.$ac_ext
4643echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4644echo "${ECHO_T}$ac_header_preproc" >&6
4645
4646# So?  What about this header?
4647case $ac_header_compiler:$ac_header_preproc in
4648  yes:no )
4649    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4650echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4651    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4652echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4653    (
4654      cat <<\_ASBOX
4655## ------------------------------------ ##
4656## Report this to bug-autoconf@gnu.org. ##
4657## ------------------------------------ ##
4658_ASBOX
4659    ) |
4660      sed "s/^/$as_me: WARNING:     /" >&2
4661    ;;
4662  no:yes )
4663    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4664echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4665    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4666echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4667    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4668echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4669    (
4670      cat <<\_ASBOX
4671## ------------------------------------ ##
4672## Report this to bug-autoconf@gnu.org. ##
4673## ------------------------------------ ##
4674_ASBOX
4675    ) |
4676      sed "s/^/$as_me: WARNING:     /" >&2
4677    ;;
4678esac
4679echo "$as_me:$LINENO: checking for $ac_header" >&5
4680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4681if eval "test \"\${$as_ac_Header+set}\" = set"; then
4682  echo $ECHO_N "(cached) $ECHO_C" >&6
4683else
4684  eval "$as_ac_Header=$ac_header_preproc"
4685fi
4686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4688
4689fi
4690if test `eval echo '${'$as_ac_Header'}'` = yes; then
4691  cat >>confdefs.h <<_ACEOF
4692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4693_ACEOF
4694
4695fi
4696
4697done
4698
4699
4700# Some systems want both sys/ioctl.h and sys/termios.h, but others can
4701# only have one -- check for that
4702
4703echo "$as_me:$LINENO: checking whether sys/termios.h and sys/ioctl.h should both be included" >&5
4704echo $ECHO_N "checking whether sys/termios.h and sys/ioctl.h should both be included... $ECHO_C" >&6
4705
4706if test "${ac_cv_ioctl_with_termios+set}" = set; then
4707  echo $ECHO_N "(cached) $ECHO_C" >&6
4708else
4709  cat >conftest.$ac_ext <<_ACEOF
4710#line $LINENO "configure"
4711/* confdefs.h.  */
4712_ACEOF
4713cat confdefs.h >>conftest.$ac_ext
4714cat >>conftest.$ac_ext <<_ACEOF
4715/* end confdefs.h.  */
4716
4717#include <sys/termios.h>
4718#include <sys/ioctl.h>
4719
4720_ACEOF
4721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4722  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4723  ac_status=$?
4724  grep -v '^ *+' conftest.er1 >conftest.err
4725  rm -f conftest.er1
4726  cat conftest.err >&5
4727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728  (exit $ac_status); } >/dev/null; then
4729  if test -s conftest.err; then
4730    ac_cpp_err=$ac_c_preproc_warn_flag
4731  else
4732    ac_cpp_err=
4733  fi
4734else
4735  ac_cpp_err=yes
4736fi
4737if test -z "$ac_cpp_err"; then
4738  ac_cv_ioctl_with_termios=1
4739else
4740  echo "$as_me: failed program was:" >&5
4741sed 's/^/| /' conftest.$ac_ext >&5
4742
4743  ac_cv_ioctl_with_termios=0
4744fi
4745rm -f conftest.err conftest.$ac_ext
4746fi
4747
4748if test $ac_cv_ioctl_with_termios = 1 ; then
4749  echo "$as_me:$LINENO: result: yes" >&5
4750echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<\_ACEOF
4751#define IOCTL_WITH_TERMIOS 1
4752_ACEOF
4753
4754else
4755  echo "$as_me:$LINENO: result: no" >&5
4756echo "${ECHO_T}no" >&6
4757fi
4758
4759# cmdFile.c wants to be able to use TIOCGETC to do file completion,
4760# but some systems (e.g., HPUX) don't have this
4761#
4762
4763echo "$as_me:$LINENO: checking for TIOCGETC" >&5
4764echo $ECHO_N "checking for TIOCGETC... $ECHO_C" >&6
4765
4766if test "${ac_cv_have_ioctl_with_tiocgetc+set}" = set; then
4767  echo $ECHO_N "(cached) $ECHO_C" >&6
4768else
4769  if test $ac_cv_ioctl_with_termios = 1 ; then
4770  cat >conftest.$ac_ext <<_ACEOF
4771#line $LINENO "configure"
4772/* confdefs.h.  */
4773_ACEOF
4774cat confdefs.h >>conftest.$ac_ext
4775cat >>conftest.$ac_ext <<_ACEOF
4776/* end confdefs.h.  */
4777#include <sys/termios.h>
4778#include <sys/ioctl.h>
4779#ifdef TIOCGETC
4780  yes
4781#endif
4782_ACEOF
4783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4784  $EGREP "yes" >/dev/null 2>&1; then
4785  ac_cv_have_ioctl_with_tiocgetc=yes
4786else
4787  ac_cv_have_ioctl_with_tiocgetc=no
4788fi
4789rm -f conftest*
4790
4791else
4792  cat >conftest.$ac_ext <<_ACEOF
4793#line $LINENO "configure"
4794/* confdefs.h.  */
4795_ACEOF
4796cat confdefs.h >>conftest.$ac_ext
4797cat >>conftest.$ac_ext <<_ACEOF
4798/* end confdefs.h.  */
4799#include <sys/ioctl.h>
4800#ifdef TIOCGETC
4801  yes
4802#endif
4803_ACEOF
4804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4805  $EGREP "yes" >/dev/null 2>&1; then
4806  ac_cv_have_ioctl_with_tiocgetc=yes
4807else
4808  ac_cv_have_ioctl_with_tiocgetc=no
4809fi
4810rm -f conftest*
4811
4812fi
4813fi
4814
4815if test $ac_cv_have_ioctl_with_tiocgetc = "yes" ; then
4816  echo "$as_me:$LINENO: result: yes" >&5
4817echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<\_ACEOF
4818#define HAVE_IOCTL_WITH_TIOCGETC 1
4819_ACEOF
4820
4821else
4822  echo "$as_me:$LINENO: result: no" >&5
4823echo "${ECHO_T}no" >&6
4824fi
4825
4826#  # cmdFile.c wants to turn off interrupts, but some systems don't
4827#  # seem to know how to do that using TIOCLBIS
4828#  #
4829#  # This is probably fairly fragile, and it's probably cmdFile.c that should
4830#  # be fixed
4831#  #
4832#  # This has been very unreliable (e.g., on Solaris), so the facility has
4833#  # been turned off
4834#
4835#  if test $ac_cv_have_ioctl_with_tiocgetc = "yes" ; then
4836#
4837#    AC_MSG_CHECKING(for TIOCLBIS)
4838#
4839#    AC_CACHE_VAL(ac_cv_have_term_interrupts,
4840#    [AC_EGREP_CPP(yes,
4841#    [#include <sys/ioctl.h>
4842#  #include <sys/termios.h>
4843#  #ifdef TIOCLBIS
4844#   yes
4845#  #endif
4846#  ], ac_cv_have_term_interrupts=1,
4847#    ac_cv_have_term_interrupts=0 )])
4848#
4849#    if test $ac_cv_have_term_interrupts = 1 ; then
4850#      AC_MSG_RESULT(yes) ; AC_DEFINE(HAVE_TERM_INTERRUPTS)
4851#    else
4852#      AC_MSG_RESULT(no)
4853#    fi
4854#
4855#  fi   # ac_cv_have_ioctl_with_tiocgetc
4856
4857#----------------------------------------------------------------------
4858# Checks for typedefs, structures, and compiler characteristics.
4859#----------------------------------------------------------------------
4860
4861# Check to see if the compiler understands "const"
4862# #define it empty otherwise
4863echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4864echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4865if test "${ac_cv_c_const+set}" = set; then
4866  echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868  cat >conftest.$ac_ext <<_ACEOF
4869#line $LINENO "configure"
4870/* confdefs.h.  */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h.  */
4875
4876int
4877main ()
4878{
4879/* FIXME: Include the comments suggested by Paul. */
4880#ifndef __cplusplus
4881  /* Ultrix mips cc rejects this.  */
4882  typedef int charset[2];
4883  const charset x;
4884  /* SunOS 4.1.1 cc rejects this.  */
4885  char const *const *ccp;
4886  char **p;
4887  /* NEC SVR4.0.2 mips cc rejects this.  */
4888  struct point {int x, y;};
4889  static struct point const zero = {0,0};
4890  /* AIX XL C 1.02.0.0 rejects this.
4891     It does not let you subtract one const X* pointer from another in
4892     an arm of an if-expression whose if-part is not a constant
4893     expression */
4894  const char *g = "string";
4895  ccp = &g + (g ? g-g : 0);
4896  /* HPUX 7.0 cc rejects these. */
4897  ++ccp;
4898  p = (char**) ccp;
4899  ccp = (char const *const *) p;
4900  { /* SCO 3.2v4 cc rejects this.  */
4901    char *t;
4902    char const *s = 0 ? (char *) 0 : (char const *) 0;
4903
4904    *t++ = 0;
4905  }
4906  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4907    int x[] = {25, 17};
4908    const int *foo = &x[0];
4909    ++foo;
4910  }
4911  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4912    typedef const int *iptr;
4913    iptr p = 0;
4914    ++p;
4915  }
4916  { /* AIX XL C 1.02.0.0 rejects this saying
4917       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4918    struct s { int j; const int *ap[3]; };
4919    struct s *b; b->j = 5;
4920  }
4921  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4922    const int foo = 10;
4923  }
4924#endif
4925
4926  ;
4927  return 0;
4928}
4929_ACEOF
4930rm -f conftest.$ac_objext
4931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4932  (eval $ac_compile) 2>&5
4933  ac_status=$?
4934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935  (exit $ac_status); } &&
4936         { ac_try='test -s conftest.$ac_objext'
4937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938  (eval $ac_try) 2>&5
4939  ac_status=$?
4940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941  (exit $ac_status); }; }; then
4942  ac_cv_c_const=yes
4943else
4944  echo "$as_me: failed program was:" >&5
4945sed 's/^/| /' conftest.$ac_ext >&5
4946
4947ac_cv_c_const=no
4948fi
4949rm -f conftest.$ac_objext conftest.$ac_ext
4950fi
4951echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4952echo "${ECHO_T}$ac_cv_c_const" >&6
4953if test $ac_cv_c_const = no; then
4954
4955cat >>confdefs.h <<\_ACEOF
4956#define const
4957_ACEOF
4958
4959fi
4960
4961
4962# Sort out "time.h" nonsense
4963echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4964echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4965if test "${ac_cv_header_time+set}" = set; then
4966  echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968  cat >conftest.$ac_ext <<_ACEOF
4969#line $LINENO "configure"
4970/* confdefs.h.  */
4971_ACEOF
4972cat confdefs.h >>conftest.$ac_ext
4973cat >>conftest.$ac_ext <<_ACEOF
4974/* end confdefs.h.  */
4975#include <sys/types.h>
4976#include <sys/time.h>
4977#include <time.h>
4978
4979int
4980main ()
4981{
4982if ((struct tm *) 0)
4983return 0;
4984  ;
4985  return 0;
4986}
4987_ACEOF
4988rm -f conftest.$ac_objext
4989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990  (eval $ac_compile) 2>&5
4991  ac_status=$?
4992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993  (exit $ac_status); } &&
4994         { ac_try='test -s conftest.$ac_objext'
4995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996  (eval $ac_try) 2>&5
4997  ac_status=$?
4998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999  (exit $ac_status); }; }; then
5000  ac_cv_header_time=yes
5001else
5002  echo "$as_me: failed program was:" >&5
5003sed 's/^/| /' conftest.$ac_ext >&5
5004
5005ac_cv_header_time=no
5006fi
5007rm -f conftest.$ac_objext conftest.$ac_ext
5008fi
5009echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5010echo "${ECHO_T}$ac_cv_header_time" >&6
5011if test $ac_cv_header_time = yes; then
5012
5013cat >>confdefs.h <<\_ACEOF
5014#define TIME_WITH_SYS_TIME 1
5015_ACEOF
5016
5017fi
5018
5019
5020echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5021echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5022if test "${ac_cv_struct_tm+set}" = set; then
5023  echo $ECHO_N "(cached) $ECHO_C" >&6
5024else
5025  cat >conftest.$ac_ext <<_ACEOF
5026#line $LINENO "configure"
5027/* confdefs.h.  */
5028_ACEOF
5029cat confdefs.h >>conftest.$ac_ext
5030cat >>conftest.$ac_ext <<_ACEOF
5031/* end confdefs.h.  */
5032#include <sys/types.h>
5033#include <time.h>
5034
5035int
5036main ()
5037{
5038struct tm *tp; tp->tm_sec;
5039  ;
5040  return 0;
5041}
5042_ACEOF
5043rm -f conftest.$ac_objext
5044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045  (eval $ac_compile) 2>&5
5046  ac_status=$?
5047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048  (exit $ac_status); } &&
5049         { ac_try='test -s conftest.$ac_objext'
5050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051  (eval $ac_try) 2>&5
5052  ac_status=$?
5053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054  (exit $ac_status); }; }; then
5055  ac_cv_struct_tm=time.h
5056else
5057  echo "$as_me: failed program was:" >&5
5058sed 's/^/| /' conftest.$ac_ext >&5
5059
5060ac_cv_struct_tm=sys/time.h
5061fi
5062rm -f conftest.$ac_objext conftest.$ac_ext
5063fi
5064echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5065echo "${ECHO_T}$ac_cv_struct_tm" >&6
5066if test $ac_cv_struct_tm = sys/time.h; then
5067
5068cat >>confdefs.h <<\_ACEOF
5069#define TM_IN_SYS_TIME 1
5070_ACEOF
5071
5072fi
5073
5074
5075# Set RETSIGTYPE to the proper return type for a signal handler (void or int)
5076echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5077echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5078if test "${ac_cv_type_signal+set}" = set; then
5079  echo $ECHO_N "(cached) $ECHO_C" >&6
5080else
5081  cat >conftest.$ac_ext <<_ACEOF
5082#line $LINENO "configure"
5083/* confdefs.h.  */
5084_ACEOF
5085cat confdefs.h >>conftest.$ac_ext
5086cat >>conftest.$ac_ext <<_ACEOF
5087/* end confdefs.h.  */
5088#include <sys/types.h>
5089#include <signal.h>
5090#ifdef signal
5091# undef signal
5092#endif
5093#ifdef __cplusplus
5094extern "C" void (*signal (int, void (*)(int)))(int);
5095#else
5096void (*signal ()) ();
5097#endif
5098
5099int
5100main ()
5101{
5102int i;
5103  ;
5104  return 0;
5105}
5106_ACEOF
5107rm -f conftest.$ac_objext
5108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5109  (eval $ac_compile) 2>&5
5110  ac_status=$?
5111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112  (exit $ac_status); } &&
5113         { ac_try='test -s conftest.$ac_objext'
5114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115  (eval $ac_try) 2>&5
5116  ac_status=$?
5117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118  (exit $ac_status); }; }; then
5119  ac_cv_type_signal=void
5120else
5121  echo "$as_me: failed program was:" >&5
5122sed 's/^/| /' conftest.$ac_ext >&5
5123
5124ac_cv_type_signal=int
5125fi
5126rm -f conftest.$ac_objext conftest.$ac_ext
5127fi
5128echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5129echo "${ECHO_T}$ac_cv_type_signal" >&6
5130
5131cat >>confdefs.h <<_ACEOF
5132#define RETSIGTYPE $ac_cv_type_signal
5133_ACEOF
5134
5135
5136
5137# Roderick Bloem (rbloem@colorado.edu) :  On Irix we need ttold
5138case "$target" in
5139  mips-sgi-irix*)
5140    cat >>confdefs.h <<\_ACEOF
5141#define NEED_TTOLD 1
5142_ACEOF
5143;;
5144esac
5145
5146#----------------------------------------------------------------------
5147# Checks for library functions.
5148#----------------------------------------------------------------------
5149
5150if test $ac_cv_c_compiler_gnu = yes; then
5151    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5152echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
5153if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5154  echo $ECHO_N "(cached) $ECHO_C" >&6
5155else
5156    ac_pattern="Autoconf.*'x'"
5157  cat >conftest.$ac_ext <<_ACEOF
5158#line $LINENO "configure"
5159/* confdefs.h.  */
5160_ACEOF
5161cat confdefs.h >>conftest.$ac_ext
5162cat >>conftest.$ac_ext <<_ACEOF
5163/* end confdefs.h.  */
5164#include <sgtty.h>
5165Autoconf TIOCGETP
5166_ACEOF
5167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5168  $EGREP "$ac_pattern" >/dev/null 2>&1; then
5169  ac_cv_prog_gcc_traditional=yes
5170else
5171  ac_cv_prog_gcc_traditional=no
5172fi
5173rm -f conftest*
5174
5175
5176  if test $ac_cv_prog_gcc_traditional = no; then
5177    cat >conftest.$ac_ext <<_ACEOF
5178#line $LINENO "configure"
5179/* confdefs.h.  */
5180_ACEOF
5181cat confdefs.h >>conftest.$ac_ext
5182cat >>conftest.$ac_ext <<_ACEOF
5183/* end confdefs.h.  */
5184#include <termio.h>
5185Autoconf TCGETA
5186_ACEOF
5187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5188  $EGREP "$ac_pattern" >/dev/null 2>&1; then
5189  ac_cv_prog_gcc_traditional=yes
5190fi
5191rm -f conftest*
5192
5193  fi
5194fi
5195echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5196echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
5197  if test $ac_cv_prog_gcc_traditional = yes; then
5198    CC="$CC -traditional"
5199  fi
5200fi
5201
5202echo "$as_me:$LINENO: checking for working memcmp" >&5
5203echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
5204if test "${ac_cv_func_memcmp_working+set}" = set; then
5205  echo $ECHO_N "(cached) $ECHO_C" >&6
5206else
5207  if test "$cross_compiling" = yes; then
5208  ac_cv_func_memcmp_working=no
5209else
5210  cat >conftest.$ac_ext <<_ACEOF
5211#line $LINENO "configure"
5212/* confdefs.h.  */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h.  */
5217
5218int
5219main ()
5220{
5221
5222  /* Some versions of memcmp are not 8-bit clean.  */
5223  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5224  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5225    exit (1);
5226
5227  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5228     or more and with at least one buffer not starting on a 4-byte boundary.
5229     William Lewis provided this test program.   */
5230  {
5231    char foo[21];
5232    char bar[21];
5233    int i;
5234    for (i = 0; i < 4; i++)
5235      {
5236        char *a = foo + i;
5237        char *b = bar + i;
5238        strcpy (a, "--------01111111");
5239        strcpy (b, "--------10000000");
5240        if (memcmp (a, b, 16) >= 0)
5241          exit (1);
5242      }
5243    exit (0);
5244  }
5245
5246  ;
5247  return 0;
5248}
5249_ACEOF
5250rm -f conftest$ac_exeext
5251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5252  (eval $ac_link) 2>&5
5253  ac_status=$?
5254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257  (eval $ac_try) 2>&5
5258  ac_status=$?
5259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260  (exit $ac_status); }; }; then
5261  ac_cv_func_memcmp_working=yes
5262else
5263  echo "$as_me: program exited with status $ac_status" >&5
5264echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
5267( exit $ac_status )
5268ac_cv_func_memcmp_working=no
5269fi
5270rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5271fi
5272fi
5273echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5274echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5275test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5276
5277echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5278echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5279if test "${ac_cv_type_signal+set}" = set; then
5280  echo $ECHO_N "(cached) $ECHO_C" >&6
5281else
5282  cat >conftest.$ac_ext <<_ACEOF
5283#line $LINENO "configure"
5284/* confdefs.h.  */
5285_ACEOF
5286cat confdefs.h >>conftest.$ac_ext
5287cat >>conftest.$ac_ext <<_ACEOF
5288/* end confdefs.h.  */
5289#include <sys/types.h>
5290#include <signal.h>
5291#ifdef signal
5292# undef signal
5293#endif
5294#ifdef __cplusplus
5295extern "C" void (*signal (int, void (*)(int)))(int);
5296#else
5297void (*signal ()) ();
5298#endif
5299
5300int
5301main ()
5302{
5303int i;
5304  ;
5305  return 0;
5306}
5307_ACEOF
5308rm -f conftest.$ac_objext
5309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310  (eval $ac_compile) 2>&5
5311  ac_status=$?
5312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313  (exit $ac_status); } &&
5314         { ac_try='test -s conftest.$ac_objext'
5315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316  (eval $ac_try) 2>&5
5317  ac_status=$?
5318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319  (exit $ac_status); }; }; then
5320  ac_cv_type_signal=void
5321else
5322  echo "$as_me: failed program was:" >&5
5323sed 's/^/| /' conftest.$ac_ext >&5
5324
5325ac_cv_type_signal=int
5326fi
5327rm -f conftest.$ac_objext conftest.$ac_ext
5328fi
5329echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5330echo "${ECHO_T}$ac_cv_type_signal" >&6
5331
5332cat >>confdefs.h <<_ACEOF
5333#define RETSIGTYPE $ac_cv_type_signal
5334_ACEOF
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345for ac_func in gettimeofday strchr strstr setvbuf getenv unlink mkstemp close
5346do
5347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5348echo "$as_me:$LINENO: checking for $ac_func" >&5
5349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5350if eval "test \"\${$as_ac_var+set}\" = set"; then
5351  echo $ECHO_N "(cached) $ECHO_C" >&6
5352else
5353  cat >conftest.$ac_ext <<_ACEOF
5354#line $LINENO "configure"
5355/* confdefs.h.  */
5356_ACEOF
5357cat confdefs.h >>conftest.$ac_ext
5358cat >>conftest.$ac_ext <<_ACEOF
5359/* end confdefs.h.  */
5360/* System header to define __stub macros and hopefully few prototypes,
5361    which can conflict with char $ac_func (); below.
5362    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363    <limits.h> exists even on freestanding compilers.  */
5364#ifdef __STDC__
5365# include <limits.h>
5366#else
5367# include <assert.h>
5368#endif
5369/* Override any gcc2 internal prototype to avoid an error.  */
5370#ifdef __cplusplus
5371extern "C"
5372{
5373#endif
5374/* We use char because int might match the return type of a gcc2
5375   builtin and then its argument prototype would still apply.  */
5376char $ac_func ();
5377/* The GNU C library defines this for functions which it implements
5378    to always fail with ENOSYS.  Some functions are actually named
5379    something starting with __ and the normal name is an alias.  */
5380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5381choke me
5382#else
5383char (*f) () = $ac_func;
5384#endif
5385#ifdef __cplusplus
5386}
5387#endif
5388
5389int
5390main ()
5391{
5392return f != $ac_func;
5393  ;
5394  return 0;
5395}
5396_ACEOF
5397rm -f conftest.$ac_objext conftest$ac_exeext
5398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5399  (eval $ac_link) 2>&5
5400  ac_status=$?
5401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402  (exit $ac_status); } &&
5403         { ac_try='test -s conftest$ac_exeext'
5404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405  (eval $ac_try) 2>&5
5406  ac_status=$?
5407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408  (exit $ac_status); }; }; then
5409  eval "$as_ac_var=yes"
5410else
5411  echo "$as_me: failed program was:" >&5
5412sed 's/^/| /' conftest.$ac_ext >&5
5413
5414eval "$as_ac_var=no"
5415fi
5416rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5417fi
5418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5419echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5420if test `eval echo '${'$as_ac_var'}'` = yes; then
5421  cat >>confdefs.h <<_ACEOF
5422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5423_ACEOF
5424
5425fi
5426done
5427
5428
5429#-----------------------------------------------------------------------
5430# Check for mawk, gawk, nawk, awk in that order
5431#-----------------------------------------------------------------------
5432for ac_prog in gawk mawk nawk awk
5433do
5434  # Extract the first word of "$ac_prog", so it can be a program name with args.
5435set dummy $ac_prog; ac_word=$2
5436echo "$as_me:$LINENO: checking for $ac_word" >&5
5437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5438if test "${ac_cv_prog_AWK+set}" = set; then
5439  echo $ECHO_N "(cached) $ECHO_C" >&6
5440else
5441  if test -n "$AWK"; then
5442  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447  IFS=$as_save_IFS
5448  test -z "$as_dir" && as_dir=.
5449  for ac_exec_ext in '' $ac_executable_extensions; do
5450  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451    ac_cv_prog_AWK="$ac_prog"
5452    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453    break 2
5454  fi
5455done
5456done
5457
5458fi
5459fi
5460AWK=$ac_cv_prog_AWK
5461if test -n "$AWK"; then
5462  echo "$as_me:$LINENO: result: $AWK" >&5
5463echo "${ECHO_T}$AWK" >&6
5464else
5465  echo "$as_me:$LINENO: result: no" >&5
5466echo "${ECHO_T}no" >&6
5467fi
5468
5469  test -n "$AWK" && break
5470done
5471
5472
5473#----------------------------------------------------------------------
5474# Create the Makefile from Makefile.in
5475#----------------------------------------------------------------------
5476if test "$gcc_ok" = "g++"; then
5477  CC=$gcc_ok
5478fi
5479          ac_config_files="$ac_config_files Makefile"
5480cat >confcache <<\_ACEOF
5481# This file is a shell script that caches the results of configure
5482# tests run on this system so they can be shared between configure
5483# scripts and configure runs, see configure's option --config-cache.
5484# It is not useful on other systems.  If it contains results you don't
5485# want to keep, you may remove or edit it.
5486#
5487# config.status only pays attention to the cache file if you give it
5488# the --recheck option to rerun configure.
5489#
5490# `ac_cv_env_foo' variables (set or unset) will be overridden when
5491# loading this file, other *unset* `ac_cv_foo' will be assigned the
5492# following values.
5493
5494_ACEOF
5495
5496# The following way of writing the cache mishandles newlines in values,
5497# but we know of no workaround that is simple, portable, and efficient.
5498# So, don't put newlines in cache variables' values.
5499# Ultrix sh set writes to stderr and can't be redirected directly,
5500# and sets the high bit in the cache file unless we assign to the vars.
5501{
5502  (set) 2>&1 |
5503    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5504    *ac_space=\ *)
5505      # `set' does not quote correctly, so add quotes (double-quote
5506      # substitution turns \\\\ into \\, and sed turns \\ into \).
5507      sed -n \
5508        "s/'/'\\\\''/g;
5509          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5510      ;;
5511    *)
5512      # `set' quotes correctly as required by POSIX, so do not add quotes.
5513      sed -n \
5514        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5515      ;;
5516    esac;
5517} |
5518  sed '
5519     t clear
5520     : clear
5521     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5522     t end
5523     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5524     : end' >>confcache
5525if diff $cache_file confcache >/dev/null 2>&1; then :; else
5526  if test -w $cache_file; then
5527    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5528    cat confcache >$cache_file
5529  else
5530    echo "not updating unwritable cache $cache_file"
5531  fi
5532fi
5533rm -f confcache
5534
5535test "x$prefix" = xNONE && prefix=$ac_default_prefix
5536# Let make expand exec_prefix.
5537test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5538
5539# VPATH may cause trouble with some makes, so we remove $(srcdir),
5540# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5541# trailing colons and then remove the whole line if VPATH becomes empty
5542# (actually we leave an empty line to preserve line numbers).
5543if test "x$srcdir" = x.; then
5544  ac_vpsub='/^[         ]*VPATH[        ]*=/{
5545s/:*\$(srcdir):*/:/;
5546s/:*\${srcdir}:*/:/;
5547s/:*@srcdir@:*/:/;
5548s/^\([^=]*=[    ]*\):*/\1/;
5549s/:*$//;
5550s/^[^=]*=[      ]*$//;
5551}'
5552fi
5553
5554# Transform confdefs.h into DEFS.
5555# Protect against shell expansion while executing Makefile rules.
5556# Protect against Makefile macro expansion.
5557#
5558# If the first sed substitution is executed (which looks for macros that
5559# take arguments), then we branch to the quote section.  Otherwise,
5560# look for a macro that doesn't take arguments.
5561cat >confdef2opt.sed <<\_ACEOF
5562t clear
5563: clear
5564s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
5565t quote
5566s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
5567t quote
5568d
5569: quote
5570s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
5571s,\[,\\&,g
5572s,\],\\&,g
5573s,\$,$$,g
5574p
5575_ACEOF
5576# We use echo to avoid assuming a particular line-breaking character.
5577# The extra dot is to prevent the shell from consuming trailing
5578# line-breaks from the sub-command output.  A line-break within
5579# single-quotes doesn't work because, if this script is created in a
5580# platform that uses two characters for line-breaks (e.g., DOS), tr
5581# would break.
5582ac_LF_and_DOT=`echo; echo .`
5583DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5584rm -f confdef2opt.sed
5585
5586
5587ac_libobjs=
5588ac_ltlibobjs=
5589for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5590  # 1. Remove the extension, and $U if already installed.
5591  ac_i=`echo "$ac_i" |
5592         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5593  # 2. Add them.
5594  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5595  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5596done
5597LIBOBJS=$ac_libobjs
5598
5599LTLIBOBJS=$ac_ltlibobjs
5600
5601
5602
5603: ${CONFIG_STATUS=./config.status}
5604ac_clean_files_save=$ac_clean_files
5605ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5606{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5607echo "$as_me: creating $CONFIG_STATUS" >&6;}
5608cat >$CONFIG_STATUS <<_ACEOF
5609#! $SHELL
5610# Generated by $as_me.
5611# Run this file to recreate the current configuration.
5612# Compiler output produced by configure, useful for debugging
5613# configure, is in config.log if it exists.
5614
5615debug=false
5616ac_cs_recheck=false
5617ac_cs_silent=false
5618SHELL=\${CONFIG_SHELL-$SHELL}
5619_ACEOF
5620
5621cat >>$CONFIG_STATUS <<\_ACEOF
5622## --------------------- ##
5623## M4sh Initialization.  ##
5624## --------------------- ##
5625
5626# Be Bourne compatible
5627if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5628  emulate sh
5629  NULLCMD=:
5630  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5631  # is contrary to our usage.  Disable this feature.
5632  alias -g '${1+"$@"}'='"$@"'
5633elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5634  set -o posix
5635fi
5636
5637# Support unset when possible.
5638if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5639  as_unset=unset
5640else
5641  as_unset=false
5642fi
5643
5644
5645# Work around bugs in pre-3.0 UWIN ksh.
5646$as_unset ENV MAIL MAILPATH
5647PS1='$ '
5648PS2='> '
5649PS4='+ '
5650
5651# NLS nuisances.
5652for as_var in \
5653  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5654  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5655  LC_TELEPHONE LC_TIME
5656do
5657  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5658    eval $as_var=C; export $as_var
5659  else
5660    $as_unset $as_var
5661  fi
5662done
5663
5664# Required to use basename.
5665if expr a : '\(a\)' >/dev/null 2>&1; then
5666  as_expr=expr
5667else
5668  as_expr=false
5669fi
5670
5671if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5672  as_basename=basename
5673else
5674  as_basename=false
5675fi
5676
5677
5678# Name of the executable.
5679as_me=`$as_basename "$0" ||
5680$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5681         X"$0" : 'X\(//\)$' \| \
5682         X"$0" : 'X\(/\)$' \| \
5683         .     : '\(.\)' 2>/dev/null ||
5684echo X/"$0" |
5685    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5686          /^X\/\(\/\/\)$/{ s//\1/; q; }
5687          /^X\/\(\/\).*/{ s//\1/; q; }
5688          s/.*/./; q'`
5689
5690
5691# PATH needs CR, and LINENO needs CR and PATH.
5692# Avoid depending upon Character Ranges.
5693as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5694as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5695as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5696as_cr_digits='0123456789'
5697as_cr_alnum=$as_cr_Letters$as_cr_digits
5698
5699# The user is always right.
5700if test "${PATH_SEPARATOR+set}" != set; then
5701  echo "#! /bin/sh" >conf$$.sh
5702  echo  "exit 0"   >>conf$$.sh
5703  chmod +x conf$$.sh
5704  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5705    PATH_SEPARATOR=';'
5706  else
5707    PATH_SEPARATOR=:
5708  fi
5709  rm -f conf$$.sh
5710fi
5711
5712
5713  as_lineno_1=$LINENO
5714  as_lineno_2=$LINENO
5715  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5716  test "x$as_lineno_1" != "x$as_lineno_2" &&
5717  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5718  # Find who we are.  Look in the path if we contain no path at all
5719  # relative or not.
5720  case $0 in
5721    *[\\/]* ) as_myself=$0 ;;
5722    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725  IFS=$as_save_IFS
5726  test -z "$as_dir" && as_dir=.
5727  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5728done
5729
5730       ;;
5731  esac
5732  # We did not find ourselves, most probably we were run as `sh COMMAND'
5733  # in which case we are not to be found in the path.
5734  if test "x$as_myself" = x; then
5735    as_myself=$0
5736  fi
5737  if test ! -f "$as_myself"; then
5738    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5739echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5740   { (exit 1); exit 1; }; }
5741  fi
5742  case $CONFIG_SHELL in
5743  '')
5744    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5746do
5747  IFS=$as_save_IFS
5748  test -z "$as_dir" && as_dir=.
5749  for as_base in sh bash ksh sh5; do
5750         case $as_dir in
5751         /*)
5752           if ("$as_dir/$as_base" -c '
5753  as_lineno_1=$LINENO
5754  as_lineno_2=$LINENO
5755  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5756  test "x$as_lineno_1" != "x$as_lineno_2" &&
5757  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5758             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5759             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5760             CONFIG_SHELL=$as_dir/$as_base
5761             export CONFIG_SHELL
5762             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5763           fi;;
5764         esac
5765       done
5766done
5767;;
5768  esac
5769
5770  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5771  # uniformly replaced by the line number.  The first 'sed' inserts a
5772  # line-number line before each line; the second 'sed' does the real
5773  # work.  The second script uses 'N' to pair each line-number line
5774  # with the numbered line, and appends trailing '-' during
5775  # substitution so that $LINENO is not a special case at line end.
5776  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5777  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5778  sed '=' <$as_myself |
5779    sed '
5780      N
5781      s,$,-,
5782      : loop
5783      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5784      t loop
5785      s,-$,,
5786      s,^['$as_cr_digits']*\n,,
5787    ' >$as_me.lineno &&
5788  chmod +x $as_me.lineno ||
5789    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5790echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5791   { (exit 1); exit 1; }; }
5792
5793  # Don't try to exec as it changes $[0], causing all sort of problems
5794  # (the dirname of $[0] is not the place where we might find the
5795  # original and so on.  Autoconf is especially sensible to this).
5796  . ./$as_me.lineno
5797  # Exit status is that of the last command.
5798  exit
5799}
5800
5801
5802case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5803  *c*,-n*) ECHO_N= ECHO_C='
5804' ECHO_T='      ' ;;
5805  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5806  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5807esac
5808
5809if expr a : '\(a\)' >/dev/null 2>&1; then
5810  as_expr=expr
5811else
5812  as_expr=false
5813fi
5814
5815rm -f conf$$ conf$$.exe conf$$.file
5816echo >conf$$.file
5817if ln -s conf$$.file conf$$ 2>/dev/null; then
5818  # We could just check for DJGPP; but this test a) works b) is more generic
5819  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5820  if test -f conf$$.exe; then
5821    # Don't use ln at all; we don't have any links
5822    as_ln_s='cp -p'
5823  else
5824    as_ln_s='ln -s'
5825  fi
5826elif ln conf$$.file conf$$ 2>/dev/null; then
5827  as_ln_s=ln
5828else
5829  as_ln_s='cp -p'
5830fi
5831rm -f conf$$ conf$$.exe conf$$.file
5832
5833if mkdir -p . 2>/dev/null; then
5834  as_mkdir_p=:
5835else
5836  as_mkdir_p=false
5837fi
5838
5839as_executable_p="test -f"
5840
5841# Sed expression to map a string onto a valid CPP name.
5842as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5843
5844# Sed expression to map a string onto a valid variable name.
5845as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5846
5847
5848# IFS
5849# We need space, tab and new line, in precisely that order.
5850as_nl='
5851'
5852IFS="   $as_nl"
5853
5854# CDPATH.
5855$as_unset CDPATH
5856
5857exec 6>&1
5858
5859# Open the log real soon, to keep \$[0] and so on meaningful, and to
5860# report actual input values of CONFIG_FILES etc. instead of their
5861# values after options handling.  Logging --version etc. is OK.
5862exec 5>>config.log
5863{
5864  echo
5865  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5866## Running $as_me. ##
5867_ASBOX
5868} >&5
5869cat >&5 <<_CSEOF
5870
5871This file was extended by $as_me, which was
5872generated by GNU Autoconf 2.57.  Invocation command line was
5873
5874  CONFIG_FILES    = $CONFIG_FILES
5875  CONFIG_HEADERS  = $CONFIG_HEADERS
5876  CONFIG_LINKS    = $CONFIG_LINKS
5877  CONFIG_COMMANDS = $CONFIG_COMMANDS
5878  $ $0 $@
5879
5880_CSEOF
5881echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5882echo >&5
5883_ACEOF
5884
5885# Files that config.status was made for.
5886if test -n "$ac_config_files"; then
5887  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5888fi
5889
5890if test -n "$ac_config_headers"; then
5891  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5892fi
5893
5894if test -n "$ac_config_links"; then
5895  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5896fi
5897
5898if test -n "$ac_config_commands"; then
5899  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5900fi
5901
5902cat >>$CONFIG_STATUS <<\_ACEOF
5903
5904ac_cs_usage="\
5905\`$as_me' instantiates files from templates according to the
5906current configuration.
5907
5908Usage: $0 [OPTIONS] [FILE]...
5909
5910  -h, --help       print this help, then exit
5911  -V, --version    print version number, then exit
5912  -q, --quiet      do not print progress messages
5913  -d, --debug      don't remove temporary files
5914      --recheck    update $as_me by reconfiguring in the same conditions
5915  --file=FILE[:TEMPLATE]
5916                   instantiate the configuration file FILE
5917
5918Configuration files:
5919$config_files
5920
5921Report bugs to <bug-autoconf@gnu.org>."
5922_ACEOF
5923
5924cat >>$CONFIG_STATUS <<_ACEOF
5925ac_cs_version="\\
5926config.status
5927configured by $0, generated by GNU Autoconf 2.57,
5928  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5929
5930Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5931Free Software Foundation, Inc.
5932This config.status script is free software; the Free Software Foundation
5933gives unlimited permission to copy, distribute and modify it."
5934srcdir=$srcdir
5935INSTALL="$INSTALL"
5936_ACEOF
5937
5938cat >>$CONFIG_STATUS <<\_ACEOF
5939# If no file are specified by the user, then we need to provide default
5940# value.  By we need to know if files were specified by the user.
5941ac_need_defaults=:
5942while test $# != 0
5943do
5944  case $1 in
5945  --*=*)
5946    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5947    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5948    ac_shift=:
5949    ;;
5950  -*)
5951    ac_option=$1
5952    ac_optarg=$2
5953    ac_shift=shift
5954    ;;
5955  *) # This is not an option, so the user has probably given explicit
5956     # arguments.
5957     ac_option=$1
5958     ac_need_defaults=false;;
5959  esac
5960
5961  case $ac_option in
5962  # Handling of the options.
5963_ACEOF
5964cat >>$CONFIG_STATUS <<\_ACEOF
5965  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5966    ac_cs_recheck=: ;;
5967  --version | --vers* | -V )
5968    echo "$ac_cs_version"; exit 0 ;;
5969  --he | --h)
5970    # Conflict between --help and --header
5971    { { echo "$as_me:$LINENO: error: ambiguous option: $1
5972Try \`$0 --help' for more information." >&5
5973echo "$as_me: error: ambiguous option: $1
5974Try \`$0 --help' for more information." >&2;}
5975   { (exit 1); exit 1; }; };;
5976  --help | --hel | -h )
5977    echo "$ac_cs_usage"; exit 0 ;;
5978  --debug | --d* | -d )
5979    debug=: ;;
5980  --file | --fil | --fi | --f )
5981    $ac_shift
5982    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5983    ac_need_defaults=false;;
5984  --header | --heade | --head | --hea )
5985    $ac_shift
5986    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5987    ac_need_defaults=false;;
5988  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5989  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5990    ac_cs_silent=: ;;
5991
5992  # This is an error.
5993  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5994Try \`$0 --help' for more information." >&5
5995echo "$as_me: error: unrecognized option: $1
5996Try \`$0 --help' for more information." >&2;}
5997   { (exit 1); exit 1; }; } ;;
5998
5999  *) ac_config_targets="$ac_config_targets $1" ;;
6000
6001  esac
6002  shift
6003done
6004
6005ac_configure_extra_args=
6006
6007if $ac_cs_silent; then
6008  exec 6>/dev/null
6009  ac_configure_extra_args="$ac_configure_extra_args --silent"
6010fi
6011
6012_ACEOF
6013cat >>$CONFIG_STATUS <<_ACEOF
6014if \$ac_cs_recheck; then
6015  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6016  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6017fi
6018
6019_ACEOF
6020
6021
6022
6023
6024
6025cat >>$CONFIG_STATUS <<\_ACEOF
6026for ac_config_target in $ac_config_targets
6027do
6028  case "$ac_config_target" in
6029  # Handling of arguments.
6030  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6031  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6032echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6033   { (exit 1); exit 1; }; };;
6034  esac
6035done
6036
6037# If the user did not use the arguments to specify the items to instantiate,
6038# then the envvar interface is used.  Set only those that are not.
6039# We use the long form for the default assignment because of an extremely
6040# bizarre bug on SunOS 4.1.3.
6041if $ac_need_defaults; then
6042  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6043fi
6044
6045# Have a temporary directory for convenience.  Make it in the build tree
6046# simply because there is no reason to put it here, and in addition,
6047# creating and moving files from /tmp can sometimes cause problems.
6048# Create a temporary directory, and hook for its removal unless debugging.
6049$debug ||
6050{
6051  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6052  trap '{ (exit 1); exit 1; }' 1 2 13 15
6053}
6054
6055# Create a (secure) tmp directory for tmp files.
6056
6057{
6058  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6059  test -n "$tmp" && test -d "$tmp"
6060}  ||
6061{
6062  tmp=./confstat$$-$RANDOM
6063  (umask 077 && mkdir $tmp)
6064} ||
6065{
6066   echo "$me: cannot create a temporary directory in ." >&2
6067   { (exit 1); exit 1; }
6068}
6069
6070_ACEOF
6071
6072cat >>$CONFIG_STATUS <<_ACEOF
6073
6074#
6075# CONFIG_FILES section.
6076#
6077
6078# No need to generate the scripts if there are no CONFIG_FILES.
6079# This happens for instance when ./config.status config.h
6080if test -n "\$CONFIG_FILES"; then
6081  # Protect against being on the right side of a sed subst in config.status.
6082  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6083   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6084s,@SHELL@,$SHELL,;t t
6085s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6086s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6087s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6088s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6089s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6090s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6091s,@exec_prefix@,$exec_prefix,;t t
6092s,@prefix@,$prefix,;t t
6093s,@program_transform_name@,$program_transform_name,;t t
6094s,@bindir@,$bindir,;t t
6095s,@sbindir@,$sbindir,;t t
6096s,@libexecdir@,$libexecdir,;t t
6097s,@datadir@,$datadir,;t t
6098s,@sysconfdir@,$sysconfdir,;t t
6099s,@sharedstatedir@,$sharedstatedir,;t t
6100s,@localstatedir@,$localstatedir,;t t
6101s,@libdir@,$libdir,;t t
6102s,@includedir@,$includedir,;t t
6103s,@oldincludedir@,$oldincludedir,;t t
6104s,@infodir@,$infodir,;t t
6105s,@mandir@,$mandir,;t t
6106s,@build_alias@,$build_alias,;t t
6107s,@host_alias@,$host_alias,;t t
6108s,@target_alias@,$target_alias,;t t
6109s,@DEFS@,$DEFS,;t t
6110s,@ECHO_C@,$ECHO_C,;t t
6111s,@ECHO_N@,$ECHO_N,;t t
6112s,@ECHO_T@,$ECHO_T,;t t
6113s,@LIBS@,$LIBS,;t t
6114s,@glulibdir@,$glulibdir,;t t
6115s,@gluincdir@,$gluincdir,;t t
6116s,@vislibdir@,$vislibdir,;t t
6117s,@local_srcdir@,$local_srcdir,;t t
6118s,@BDDLIB@,$BDDLIB,;t t
6119s,@ZCHAFF@,$ZCHAFF,;t t
6120s,@AR@,$AR,;t t
6121s,@RANLIB@,$RANLIB,;t t
6122s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6123s,@build@,$build,;t t
6124s,@build_cpu@,$build_cpu,;t t
6125s,@build_vendor@,$build_vendor,;t t
6126s,@build_os@,$build_os,;t t
6127s,@host@,$host,;t t
6128s,@host_cpu@,$host_cpu,;t t
6129s,@host_vendor@,$host_vendor,;t t
6130s,@host_os@,$host_os,;t t
6131s,@target@,$target,;t t
6132s,@target_cpu@,$target_cpu,;t t
6133s,@target_vendor@,$target_vendor,;t t
6134s,@target_os@,$target_os,;t t
6135s,@CC@,$CC,;t t
6136s,@CFLAGS@,$CFLAGS,;t t
6137s,@LDFLAGS@,$LDFLAGS,;t t
6138s,@CPPFLAGS@,$CPPFLAGS,;t t
6139s,@ac_ct_CC@,$ac_ct_CC,;t t
6140s,@EXEEXT@,$EXEEXT,;t t
6141s,@OBJEXT@,$OBJEXT,;t t
6142s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6143s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6144s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6145s,@LINKER@,$LINKER,;t t
6146s,@PLINKER@,$PLINKER,;t t
6147s,@LEX@,$LEX,;t t
6148s,@LEXLIB@,$LEXLIB,;t t
6149s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
6150s,@YACC@,$YACC,;t t
6151s,@CPP@,$CPP,;t t
6152s,@EGREP@,$EGREP,;t t
6153s,@LIBDIRS@,$LIBDIRS,;t t
6154s,@LIBOBJS@,$LIBOBJS,;t t
6155s,@AWK@,$AWK,;t t
6156s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6157CEOF
6158
6159_ACEOF
6160
6161  cat >>$CONFIG_STATUS <<\_ACEOF
6162  # Split the substitutions into bite-sized pieces for seds with
6163  # small command number limits, like on Digital OSF/1 and HP-UX.
6164  ac_max_sed_lines=48
6165  ac_sed_frag=1 # Number of current file.
6166  ac_beg=1 # First line for current file.
6167  ac_end=$ac_max_sed_lines # Line after last line for current file.
6168  ac_more_lines=:
6169  ac_sed_cmds=
6170  while $ac_more_lines; do
6171    if test $ac_beg -gt 1; then
6172      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6173    else
6174      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6175    fi
6176    if test ! -s $tmp/subs.frag; then
6177      ac_more_lines=false
6178    else
6179      # The purpose of the label and of the branching condition is to
6180      # speed up the sed processing (if there are no `@' at all, there
6181      # is no need to browse any of the substitutions).
6182      # These are the two extra sed commands mentioned above.
6183      (echo ':t
6184  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6185      if test -z "$ac_sed_cmds"; then
6186        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6187      else
6188        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6189      fi
6190      ac_sed_frag=`expr $ac_sed_frag + 1`
6191      ac_beg=$ac_end
6192      ac_end=`expr $ac_end + $ac_max_sed_lines`
6193    fi
6194  done
6195  if test -z "$ac_sed_cmds"; then
6196    ac_sed_cmds=cat
6197  fi
6198fi # test -n "$CONFIG_FILES"
6199
6200_ACEOF
6201cat >>$CONFIG_STATUS <<\_ACEOF
6202for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6203  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6204  case $ac_file in
6205  - | *:- | *:-:* ) # input from stdin
6206        cat >$tmp/stdin
6207        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6208        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6209  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6210        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6211  * )   ac_file_in=$ac_file.in ;;
6212  esac
6213
6214  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6215  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6216$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6217         X"$ac_file" : 'X\(//\)[^/]' \| \
6218         X"$ac_file" : 'X\(//\)$' \| \
6219         X"$ac_file" : 'X\(/\)' \| \
6220         .     : '\(.\)' 2>/dev/null ||
6221echo X"$ac_file" |
6222    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6223          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6224          /^X\(\/\/\)$/{ s//\1/; q; }
6225          /^X\(\/\).*/{ s//\1/; q; }
6226          s/.*/./; q'`
6227  { if $as_mkdir_p; then
6228    mkdir -p "$ac_dir"
6229  else
6230    as_dir="$ac_dir"
6231    as_dirs=
6232    while test ! -d "$as_dir"; do
6233      as_dirs="$as_dir $as_dirs"
6234      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6235$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6236         X"$as_dir" : 'X\(//\)[^/]' \| \
6237         X"$as_dir" : 'X\(//\)$' \| \
6238         X"$as_dir" : 'X\(/\)' \| \
6239         .     : '\(.\)' 2>/dev/null ||
6240echo X"$as_dir" |
6241    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6242          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6243          /^X\(\/\/\)$/{ s//\1/; q; }
6244          /^X\(\/\).*/{ s//\1/; q; }
6245          s/.*/./; q'`
6246    done
6247    test ! -n "$as_dirs" || mkdir $as_dirs
6248  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6249echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6250   { (exit 1); exit 1; }; }; }
6251
6252  ac_builddir=.
6253
6254if test "$ac_dir" != .; then
6255  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6256  # A "../" for each directory in $ac_dir_suffix.
6257  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6258else
6259  ac_dir_suffix= ac_top_builddir=
6260fi
6261
6262case $srcdir in
6263  .)  # No --srcdir option.  We are building in place.
6264    ac_srcdir=.
6265    if test -z "$ac_top_builddir"; then
6266       ac_top_srcdir=.
6267    else
6268       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6269    fi ;;
6270  [\\/]* | ?:[\\/]* )  # Absolute path.
6271    ac_srcdir=$srcdir$ac_dir_suffix;
6272    ac_top_srcdir=$srcdir ;;
6273  *) # Relative path.
6274    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6275    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6276esac
6277# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6278# absolute.
6279ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6280ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6281ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6282ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6283
6284
6285  case $INSTALL in
6286  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6287  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6288  esac
6289
6290  if test x"$ac_file" != x-; then
6291    { echo "$as_me:$LINENO: creating $ac_file" >&5
6292echo "$as_me: creating $ac_file" >&6;}
6293    rm -f "$ac_file"
6294  fi
6295  # Let's still pretend it is `configure' which instantiates (i.e., don't
6296  # use $as_me), people would be surprised to read:
6297  #    /* config.h.  Generated by config.status.  */
6298  if test x"$ac_file" = x-; then
6299    configure_input=
6300  else
6301    configure_input="$ac_file.  "
6302  fi
6303  configure_input=$configure_input"Generated from `echo $ac_file_in |
6304                                     sed 's,.*/,,'` by configure."
6305
6306  # First look for the input files in the build tree, otherwise in the
6307  # src tree.
6308  ac_file_inputs=`IFS=:
6309    for f in $ac_file_in; do
6310      case $f in
6311      -) echo $tmp/stdin ;;
6312      [\\/$]*)
6313         # Absolute (can't be DOS-style, as IFS=:)
6314         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6315echo "$as_me: error: cannot find input file: $f" >&2;}
6316   { (exit 1); exit 1; }; }
6317         echo $f;;
6318      *) # Relative
6319         if test -f "$f"; then
6320           # Build tree
6321           echo $f
6322         elif test -f "$srcdir/$f"; then
6323           # Source tree
6324           echo $srcdir/$f
6325         else
6326           # /dev/null tree
6327           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6328echo "$as_me: error: cannot find input file: $f" >&2;}
6329   { (exit 1); exit 1; }; }
6330         fi;;
6331      esac
6332    done` || { (exit 1); exit 1; }
6333_ACEOF
6334cat >>$CONFIG_STATUS <<_ACEOF
6335  sed "$ac_vpsub
6336$extrasub
6337_ACEOF
6338cat >>$CONFIG_STATUS <<\_ACEOF
6339:t
6340/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6341s,@configure_input@,$configure_input,;t t
6342s,@srcdir@,$ac_srcdir,;t t
6343s,@abs_srcdir@,$ac_abs_srcdir,;t t
6344s,@top_srcdir@,$ac_top_srcdir,;t t
6345s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6346s,@builddir@,$ac_builddir,;t t
6347s,@abs_builddir@,$ac_abs_builddir,;t t
6348s,@top_builddir@,$ac_top_builddir,;t t
6349s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6350s,@INSTALL@,$ac_INSTALL,;t t
6351" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6352  rm -f $tmp/stdin
6353  if test x"$ac_file" != x-; then
6354    mv $tmp/out $ac_file
6355  else
6356    cat $tmp/out
6357    rm -f $tmp/out
6358  fi
6359
6360done
6361_ACEOF
6362
6363cat >>$CONFIG_STATUS <<\_ACEOF
6364
6365{ (exit 0); exit 0; }
6366_ACEOF
6367chmod +x $CONFIG_STATUS
6368ac_clean_files=$ac_clean_files_save
6369
6370
6371# configure is writing to config.log, and then calls config.status.
6372# config.status does its own redirection, appending to config.log.
6373# Unfortunately, on DOS this fails, as config.log is still kept open
6374# by configure, so config.status won't be able to write to it; its
6375# output is simply discarded.  So we exec the FD to /dev/null,
6376# effectively closing config.log, so it can be properly (re)opened and
6377# appended to by config.status.  When coming back to configure, we
6378# need to make the FD available again.
6379if test "$no_create" != yes; then
6380  ac_cs_success=:
6381  ac_config_status_args=
6382  test "$silent" = yes &&
6383    ac_config_status_args="$ac_config_status_args --quiet"
6384  exec 5>/dev/null
6385  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6386  exec 5>>config.log
6387  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6388  # would make configure fail if this is the last instruction.
6389  $ac_cs_success || { (exit 1); exit 1; }
6390fi
6391
Note: See TracBrowser for help on using the repository browser.