2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
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 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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; }; }
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
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}
266 # Identity of this package.
273 ac_unique_file="xboard.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LEX LEXLIB LEX_OUTPUT_ROOT RSH NROFF NROFFFLAGS AWKPATH PERLPATH XAW_LIBS EGREP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os PRE_XMULIB POST_XMULIB CONF_CFLAGS CONF_LDFLAGS ZIPPY_O ZIPPY_H PRODUCT VERSION PATCHLEVEL LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
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.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
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 ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
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" ;;
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'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
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 ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
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 ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
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'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
608 # Obsolete; use --with-x.
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 ;;
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 ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
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'"
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}
651 if 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; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
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.
687 # FIXME: To remove some day.
688 if 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
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if 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 ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if 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; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
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; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if 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.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
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 \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine 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]
834 --x-includes=DIR X include files are in DIR
835 --x-libraries=DIR X library files are in DIR
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 if test -n "$ac_init_help"; then
848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 --enable-xpm libXpm will be used if found (default)
851 --disable-xpm libXpm will not be used
852 --enable-ptys force use of pseudo-ttys with child processes
853 --disable-ptys force use of pipes with child processes
854 --enable-zippy support interfacing a chess program to ICS (default)
855 --disable-zippy do not support interfacing a chess program to ICS
856 --enable-sigint sending SIGINT (^C) wakes up GNU Chess (default)
857 --disable-sigint typing a command wakes up GNU Chess
860 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
861 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
862 --with-Xaw3d use Xaw3d instead of Xaw
863 --with-x use the X Window System
865 Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
874 Use these variables to override the choices made by `configure' or to help
875 it to find libraries and programs with nonstandard names/locations.
880 if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
887 if test "$ac_dir" != .; then
888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892 ac_dir_suffix= ac_top_builddir=
896 .) # No --srcdir option. We are building in place.
898 if test -z "$ac_top_builddir"; then
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
910 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
912 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
913 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
914 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
915 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
918 # Check for guested configure; otherwise get Cygnus style configure.
919 if test -f $ac_srcdir/configure.gnu; then
921 $SHELL $ac_srcdir/configure.gnu --help=recursive
922 elif test -f $ac_srcdir/configure; then
924 $SHELL $ac_srcdir/configure --help=recursive
925 elif test -f $ac_srcdir/configure.ac ||
926 test -f $ac_srcdir/configure.in; then
930 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
936 test -n "$ac_init_help" && exit 0
937 if $ac_init_version; then
940 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
941 Free Software Foundation, Inc.
942 This configure script is free software; the Free Software Foundation
943 gives unlimited permission to copy, distribute and modify it.
949 This file contains any messages produced by compilers while
950 running configure, to aid debugging if configure makes a mistake.
952 It was created by $as_me, which was
953 generated by GNU Autoconf 2.57. Invocation command line was
964 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
965 uname -m = `(uname -m) 2>/dev/null || echo unknown`
966 uname -r = `(uname -r) 2>/dev/null || echo unknown`
967 uname -s = `(uname -s) 2>/dev/null || echo unknown`
968 uname -v = `(uname -v) 2>/dev/null || echo unknown`
970 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
971 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
973 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
974 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
975 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
976 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
977 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
978 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
979 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
987 test -z "$as_dir" && as_dir=.
1003 # Keep a trace of the command line.
1004 # Strip out --no-create and --no-recursion so they do not pile up.
1005 # Strip out --silent because we don't want to record it for future runs.
1006 # Also quote any args containing shell meta-characters.
1007 # Make two passes to allow for proper duplicate-argument suppression.
1012 ac_must_keep_next=false
1018 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1022 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1023 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1026 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1028 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1029 if test $ac_must_keep_next = true; then
1030 ac_must_keep_next=false # Got value, back to normal.
1033 *=* | --config-cache | -C | -disable-* | --disable-* \
1034 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1035 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1036 | -with-* | --with-* | -without-* | --without-* | --x)
1037 case "$ac_configure_args0 " in
1038 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1041 -* ) ac_must_keep_next=true ;;
1044 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1045 # Get rid of the leading space.
1051 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1052 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1054 # When interrupted or exit'd, cleanup temporary files, and complete
1055 # config.log. We remove comments because anyway the quotes in there
1056 # would cause problems or look ugly.
1057 # WARNING: Be sure not to use single quotes in there, as some shells,
1058 # such as our DU 5.0 friend, will then `close' the trap.
1059 trap 'exit_status=$?
1060 # Save into config.log some information that might help in debugging.
1065 ## ---------------- ##
1066 ## Cache variables. ##
1067 ## ---------------- ##
1070 # The following way of writing the cache mishandles newlines in values,
1073 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1088 ## ----------------- ##
1089 ## Output variables. ##
1090 ## ----------------- ##
1093 for ac_var in $ac_subst_vars
1095 eval ac_val=$`echo $ac_var`
1096 echo "$ac_var='"'"'$ac_val'"'"'"
1100 if test -n "$ac_subst_files"; then
1107 for ac_var in $ac_subst_files
1109 eval ac_val=$`echo $ac_var`
1110 echo "$ac_var='"'"'$ac_val'"'"'"
1115 if test -s confdefs.h; then
1122 sed "/^$/d" confdefs.h | sort
1125 test "$ac_signal" != 0 &&
1126 echo "$as_me: caught signal $ac_signal"
1127 echo "$as_me: exit $exit_status"
1129 rm -f core core.* *.core &&
1130 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133 for ac_signal in 1 2 13 15; do
1134 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1138 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1139 rm -rf conftest* confdefs.h
1140 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143 # Predefined preprocessor variables.
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_NAME "$PACKAGE_NAME"
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_STRING "$PACKAGE_STRING"
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1170 # Let the site file select an alternate cache file if it wants to.
1171 # Prefer explicitly selected file to automatically selected ones.
1172 if test -z "$CONFIG_SITE"; then
1173 if test "x$prefix" != xNONE; then
1174 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1179 for ac_site_file in $CONFIG_SITE; do
1180 if test -r "$ac_site_file"; then
1181 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1182 echo "$as_me: loading site script $ac_site_file" >&6;}
1183 sed 's/^/| /' "$ac_site_file" >&5
1188 if test -r "$cache_file"; then
1189 # Some versions of bash will fail to source /dev/null (special
1190 # files actually), so we avoid doing that.
1191 if test -f "$cache_file"; then
1192 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1193 echo "$as_me: loading cache $cache_file" >&6;}
1195 [\\/]* | ?:[\\/]* ) . $cache_file;;
1196 *) . ./$cache_file;;
1200 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1201 echo "$as_me: creating cache $cache_file" >&6;}
1205 # Check that the precious variables saved in the cache have kept the same
1207 ac_cache_corrupted=false
1208 for ac_var in `(set) 2>&1 |
1209 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1210 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1211 eval ac_new_set=\$ac_env_${ac_var}_set
1212 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1213 eval ac_new_val="\$ac_env_${ac_var}_value"
1214 case $ac_old_set,$ac_new_set in
1216 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1217 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1218 ac_cache_corrupted=: ;;
1220 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1221 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1222 ac_cache_corrupted=: ;;
1225 if test "x$ac_old_val" != "x$ac_new_val"; then
1226 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1227 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1228 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1229 echo "$as_me: former value: $ac_old_val" >&2;}
1230 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1231 echo "$as_me: current value: $ac_new_val" >&2;}
1232 ac_cache_corrupted=:
1235 # Pass precious variables to config.status.
1236 if test "$ac_new_set" = set; then
1238 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1239 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1240 *) ac_arg=$ac_var=$ac_new_val ;;
1242 case " $ac_configure_args " in
1243 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1244 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1248 if $ac_cache_corrupted; then
1249 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1250 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1251 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1252 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1253 { (exit 1); exit 1; }; }
1257 ac_cpp='$CPP $CPPFLAGS'
1258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1280 ac_config_headers="$ac_config_headers config.h"
1287 if test -z "$CFLAGS" ; then
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1295 if test -n "$ac_tool_prefix"; then
1296 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1297 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1298 echo "$as_me:$LINENO: checking for $ac_word" >&5
1299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1300 if test "${ac_cv_prog_CC+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 if test -n "$CC"; then
1304 ac_cv_prog_CC="$CC" # Let the user override the test.
1306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1310 test -z "$as_dir" && as_dir=.
1311 for ac_exec_ext in '' $ac_executable_extensions; do
1312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1313 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1323 if test -n "$CC"; then
1324 echo "$as_me:$LINENO: result: $CC" >&5
1325 echo "${ECHO_T}$CC" >&6
1327 echo "$as_me:$LINENO: result: no" >&5
1328 echo "${ECHO_T}no" >&6
1332 if test -z "$ac_cv_prog_CC"; then
1334 # Extract the first word of "gcc", so it can be a program name with args.
1335 set dummy gcc; ac_word=$2
1336 echo "$as_me:$LINENO: checking for $ac_word" >&5
1337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1338 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1339 echo $ECHO_N "(cached) $ECHO_C" >&6
1341 if test -n "$ac_ct_CC"; then
1342 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1348 test -z "$as_dir" && as_dir=.
1349 for ac_exec_ext in '' $ac_executable_extensions; do
1350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1351 ac_cv_prog_ac_ct_CC="gcc"
1352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1361 if test -n "$ac_ct_CC"; then
1362 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1363 echo "${ECHO_T}$ac_ct_CC" >&6
1365 echo "$as_me:$LINENO: result: no" >&5
1366 echo "${ECHO_T}no" >&6
1374 if test -z "$CC"; then
1375 if test -n "$ac_tool_prefix"; then
1376 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1377 set dummy ${ac_tool_prefix}cc; ac_word=$2
1378 echo "$as_me:$LINENO: checking for $ac_word" >&5
1379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380 if test "${ac_cv_prog_CC+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 if test -n "$CC"; then
1384 ac_cv_prog_CC="$CC" # Let the user override the test.
1386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1390 test -z "$as_dir" && as_dir=.
1391 for ac_exec_ext in '' $ac_executable_extensions; do
1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393 ac_cv_prog_CC="${ac_tool_prefix}cc"
1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1403 if test -n "$CC"; then
1404 echo "$as_me:$LINENO: result: $CC" >&5
1405 echo "${ECHO_T}$CC" >&6
1407 echo "$as_me:$LINENO: result: no" >&5
1408 echo "${ECHO_T}no" >&6
1412 if test -z "$ac_cv_prog_CC"; then
1414 # Extract the first word of "cc", so it can be a program name with args.
1415 set dummy cc; ac_word=$2
1416 echo "$as_me:$LINENO: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 if test -n "$ac_ct_CC"; then
1422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 test -z "$as_dir" && as_dir=.
1429 for ac_exec_ext in '' $ac_executable_extensions; do
1430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1431 ac_cv_prog_ac_ct_CC="cc"
1432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1441 if test -n "$ac_ct_CC"; then
1442 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1443 echo "${ECHO_T}$ac_ct_CC" >&6
1445 echo "$as_me:$LINENO: result: no" >&5
1446 echo "${ECHO_T}no" >&6
1455 if test -z "$CC"; then
1456 # Extract the first word of "cc", so it can be a program name with args.
1457 set dummy cc; ac_word=$2
1458 echo "$as_me:$LINENO: checking for $ac_word" >&5
1459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1460 if test "${ac_cv_prog_CC+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 if test -n "$CC"; then
1464 ac_cv_prog_CC="$CC" # Let the user override the test.
1467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471 test -z "$as_dir" && as_dir=.
1472 for ac_exec_ext in '' $ac_executable_extensions; do
1473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1474 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1475 ac_prog_rejected=yes
1479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 if test $ac_prog_rejected = yes; then
1486 # We found a bogon in the path, so make sure we never use it.
1487 set dummy $ac_cv_prog_CC
1489 if test $# != 0; then
1490 # We chose a different compiler from the bogus one.
1491 # However, it has the same basename, so the bogon will be chosen
1492 # first if we set CC to just the basename; use the full file name.
1494 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1500 if test -n "$CC"; then
1501 echo "$as_me:$LINENO: result: $CC" >&5
1502 echo "${ECHO_T}$CC" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1509 if test -z "$CC"; then
1510 if test -n "$ac_tool_prefix"; then
1513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_CC+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 if test -n "$CC"; then
1521 ac_cv_prog_CC="$CC" # Let the user override the test.
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 test -z "$as_dir" && as_dir=.
1528 for ac_exec_ext in '' $ac_executable_extensions; do
1529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 if test -n "$CC"; then
1541 echo "$as_me:$LINENO: result: $CC" >&5
1542 echo "${ECHO_T}$CC" >&6
1544 echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1548 test -n "$CC" && break
1551 if test -z "$CC"; then
1555 # Extract the first word of "$ac_prog", so it can be a program name with args.
1556 set dummy $ac_prog; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 if test -n "$ac_ct_CC"; then
1563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 test -z "$as_dir" && as_dir=.
1570 for ac_exec_ext in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572 ac_cv_prog_ac_ct_CC="$ac_prog"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1590 test -n "$ac_ct_CC" && break
1599 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1600 See \`config.log' for more details." >&5
1601 echo "$as_me: error: no acceptable C compiler found in \$PATH
1602 See \`config.log' for more details." >&2;}
1603 { (exit 1); exit 1; }; }
1605 # Provide some information about the compiler.
1606 echo "$as_me:$LINENO:" \
1607 "checking for C compiler version" >&5
1608 ac_compiler=`set X $ac_compile; echo $2`
1609 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1610 (eval $ac_compiler --version </dev/null >&5) 2>&5
1612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1613 (exit $ac_status); }
1614 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1615 (eval $ac_compiler -v </dev/null >&5) 2>&5
1617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1618 (exit $ac_status); }
1619 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1620 (eval $ac_compiler -V </dev/null >&5) 2>&5
1622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1623 (exit $ac_status); }
1625 cat >conftest.$ac_ext <<_ACEOF
1626 #line $LINENO "configure"
1629 cat confdefs.h >>conftest.$ac_ext
1630 cat >>conftest.$ac_ext <<_ACEOF
1631 /* end confdefs.h. */
1641 ac_clean_files_save=$ac_clean_files
1642 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1643 # Try to create an executable without -o first, disregard a.out.
1644 # It will help us diagnose broken compilers, and finding out an intuition
1646 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1647 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1648 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1649 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1650 (eval $ac_link_default) 2>&5
1652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653 (exit $ac_status); }; then
1654 # Find the output, starting from the most likely. This scheme is
1655 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1658 # Be careful to initialize this variable, since it used to be cached.
1659 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1661 # b.out is created by i960 compilers.
1662 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1664 test -f "$ac_file" || continue
1666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1669 # This is the source file.
1672 # We found the default executable, but exeext='' is most
1676 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1677 # FIXME: I believe we export ac_cv_exeext for Libtool,
1678 # but it would be cool to find out if it's true. Does anybody
1679 # maintain Libtool? --akim.
1687 echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1690 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1691 See \`config.log' for more details." >&5
1692 echo "$as_me: error: C compiler cannot create executables
1693 See \`config.log' for more details." >&2;}
1694 { (exit 77); exit 77; }; }
1697 ac_exeext=$ac_cv_exeext
1698 echo "$as_me:$LINENO: result: $ac_file" >&5
1699 echo "${ECHO_T}$ac_file" >&6
1701 # Check the compiler produces executables we can run. If not, either
1702 # the compiler is broken, or we cross compile.
1703 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1704 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1705 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1706 # If not cross compiling, check that we can run a simple program.
1707 if test "$cross_compiling" != yes; then
1708 if { ac_try='./$ac_file'
1709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713 (exit $ac_status); }; }; then
1716 if test "$cross_compiling" = maybe; then
1719 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1720 If you meant to cross compile, use \`--host'.
1721 See \`config.log' for more details." >&5
1722 echo "$as_me: error: cannot run C compiled programs.
1723 If you meant to cross compile, use \`--host'.
1724 See \`config.log' for more details." >&2;}
1725 { (exit 1); exit 1; }; }
1729 echo "$as_me:$LINENO: result: yes" >&5
1730 echo "${ECHO_T}yes" >&6
1732 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1733 ac_clean_files=$ac_clean_files_save
1734 # Check the compiler produces executables we can run. If not, either
1735 # the compiler is broken, or we cross compile.
1736 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1737 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1738 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1739 echo "${ECHO_T}$cross_compiling" >&6
1741 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1742 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1744 (eval $ac_link) 2>&5
1746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1747 (exit $ac_status); }; then
1748 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1749 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1750 # work properly (i.e., refer to `conftest.exe'), while it won't with
1752 for ac_file in conftest.exe conftest conftest.*; do
1753 test -f "$ac_file" || continue
1755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1756 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1763 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1764 See \`config.log' for more details." >&5
1765 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1766 See \`config.log' for more details." >&2;}
1767 { (exit 1); exit 1; }; }
1770 rm -f conftest$ac_cv_exeext
1771 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1772 echo "${ECHO_T}$ac_cv_exeext" >&6
1774 rm -f conftest.$ac_ext
1775 EXEEXT=$ac_cv_exeext
1777 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1778 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1779 if test "${ac_cv_objext+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 cat >conftest.$ac_ext <<_ACEOF
1783 #line $LINENO "configure"
1786 cat confdefs.h >>conftest.$ac_ext
1787 cat >>conftest.$ac_ext <<_ACEOF
1788 /* end confdefs.h. */
1798 rm -f conftest.o conftest.obj
1799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1800 (eval $ac_compile) 2>&5
1802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803 (exit $ac_status); }; then
1804 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1807 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1812 echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1815 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1816 See \`config.log' for more details." >&5
1817 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1818 See \`config.log' for more details." >&2;}
1819 { (exit 1); exit 1; }; }
1822 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1824 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1825 echo "${ECHO_T}$ac_cv_objext" >&6
1826 OBJEXT=$ac_cv_objext
1828 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1829 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1830 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 cat >conftest.$ac_ext <<_ACEOF
1834 #line $LINENO "configure"
1837 cat confdefs.h >>conftest.$ac_ext
1838 cat >>conftest.$ac_ext <<_ACEOF
1839 /* end confdefs.h. */
1852 rm -f conftest.$ac_objext
1853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1854 (eval $ac_compile) 2>&5
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); } &&
1858 { ac_try='test -s conftest.$ac_objext'
1859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }; }; then
1866 echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1871 rm -f conftest.$ac_objext conftest.$ac_ext
1872 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1875 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1876 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1877 GCC=`test $ac_compiler_gnu = yes && echo yes`
1878 ac_test_CFLAGS=${CFLAGS+set}
1879 ac_save_CFLAGS=$CFLAGS
1881 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1882 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1883 if test "${ac_cv_prog_cc_g+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 cat >conftest.$ac_ext <<_ACEOF
1887 #line $LINENO "configure"
1890 cat confdefs.h >>conftest.$ac_ext
1891 cat >>conftest.$ac_ext <<_ACEOF
1892 /* end confdefs.h. */
1902 rm -f conftest.$ac_objext
1903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1904 (eval $ac_compile) 2>&5
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); } &&
1908 { ac_try='test -s conftest.$ac_objext'
1909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; }; then
1916 echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1921 rm -f conftest.$ac_objext conftest.$ac_ext
1923 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1924 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1925 if test "$ac_test_CFLAGS" = set; then
1926 CFLAGS=$ac_save_CFLAGS
1927 elif test $ac_cv_prog_cc_g = yes; then
1928 if test "$GCC" = yes; then
1934 if test "$GCC" = yes; then
1940 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1941 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1942 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 ac_cv_prog_cc_stdc=no
1947 cat >conftest.$ac_ext <<_ACEOF
1948 #line $LINENO "configure"
1951 cat confdefs.h >>conftest.$ac_ext
1952 cat >>conftest.$ac_ext <<_ACEOF
1953 /* end confdefs.h. */
1956 #include <sys/types.h>
1957 #include <sys/stat.h>
1958 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1959 struct buf { int x; };
1960 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1961 static char *e (p, i)
1967 static char *f (char * (*g) (char **, int), char **p, ...)
1972 s = g (p, va_arg (v,int));
1976 int test (int i, double x);
1977 struct s1 {int (*f) (int a);};
1978 struct s2 {int (*f) (double a);};
1979 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1985 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1990 # Don't try gcc -ansi; that turns off useful extensions and
1991 # breaks some systems' header files.
1992 # AIX -qlanglvl=ansi
1993 # Ultrix and OSF/1 -std1
1994 # HP-UX 10.20 and later -Ae
1995 # HP-UX older versions -Aa -D_HPUX_SOURCE
1996 # SVR4 -Xc -D__EXTENSIONS__
1997 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1999 CC="$ac_save_CC $ac_arg"
2000 rm -f conftest.$ac_objext
2001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2002 (eval $ac_compile) 2>&5
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 ac_cv_prog_cc_stdc=$ac_arg
2015 echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2019 rm -f conftest.$ac_objext
2021 rm -f conftest.$ac_ext conftest.$ac_objext
2026 case "x$ac_cv_prog_cc_stdc" in
2028 echo "$as_me:$LINENO: result: none needed" >&5
2029 echo "${ECHO_T}none needed" >&6 ;;
2031 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2032 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2033 CC="$CC $ac_cv_prog_cc_stdc" ;;
2036 # Some people use a C++ compiler to compile C. Since we use `exit',
2037 # in C++ we need to declare it. In case someone uses the same compiler
2038 # for both compiling C and C++ we need to have the C++ compiler decide
2039 # the declaration of exit, since it's the most demanding environment.
2040 cat >conftest.$ac_ext <<_ACEOF
2045 rm -f conftest.$ac_objext
2046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2047 (eval $ac_compile) 2>&5
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); } &&
2051 { ac_try='test -s conftest.$ac_objext'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2057 for ac_declaration in \
2059 '#include <stdlib.h>' \
2060 'extern "C" void std::exit (int) throw (); using std::exit;' \
2061 'extern "C" void std::exit (int); using std::exit;' \
2062 'extern "C" void exit (int) throw ();' \
2063 'extern "C" void exit (int);' \
2066 cat >conftest.$ac_ext <<_ACEOF
2067 #line $LINENO "configure"
2070 cat confdefs.h >>conftest.$ac_ext
2071 cat >>conftest.$ac_ext <<_ACEOF
2072 /* end confdefs.h. */
2083 rm -f conftest.$ac_objext
2084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085 (eval $ac_compile) 2>&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); } &&
2089 { ac_try='test -s conftest.$ac_objext'
2090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; }; then
2097 echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2102 rm -f conftest.$ac_objext conftest.$ac_ext
2103 cat >conftest.$ac_ext <<_ACEOF
2104 #line $LINENO "configure"
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2119 rm -f conftest.$ac_objext
2120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121 (eval $ac_compile) 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); } &&
2125 { ac_try='test -s conftest.$ac_objext'
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; }; then
2133 echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2137 rm -f conftest.$ac_objext conftest.$ac_ext
2140 if test -n "$ac_declaration"; then
2141 echo '#ifdef __cplusplus' >>confdefs.h
2142 echo $ac_declaration >>confdefs.h
2143 echo '#endif' >>confdefs.h
2147 echo "$as_me: failed program was:" >&5
2148 sed 's/^/| /' conftest.$ac_ext >&5
2151 rm -f conftest.$ac_objext conftest.$ac_ext
2153 ac_cpp='$CPP $CPPFLAGS'
2154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2159 ac_cpp='$CPP $CPPFLAGS'
2160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2163 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2164 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2165 # On Suns, sometimes $CPP names a directory.
2166 if test -n "$CPP" && test -d "$CPP"; then
2169 if test -z "$CPP"; then
2170 if test "${ac_cv_prog_CPP+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 # Double quotes because CPP needs to be expanded
2174 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2177 for ac_c_preproc_warn_flag in '' yes
2179 # Use a header file that comes with gcc, so configuring glibc
2180 # with a fresh cross-compiler works.
2181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2182 # <limits.h> exists even on freestanding compilers.
2183 # On the NeXT, cc -E runs the code through the compiler's parser,
2184 # not just through cpp. "Syntax error" is here to catch this case.
2185 cat >conftest.$ac_ext <<_ACEOF
2186 #line $LINENO "configure"
2189 cat confdefs.h >>conftest.$ac_ext
2190 cat >>conftest.$ac_ext <<_ACEOF
2191 /* end confdefs.h. */
2193 # include <limits.h>
2195 # include <assert.h>
2199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2202 grep -v '^ *+' conftest.er1 >conftest.err
2204 cat conftest.err >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } >/dev/null; then
2207 if test -s conftest.err; then
2208 ac_cpp_err=$ac_c_preproc_warn_flag
2215 if test -z "$ac_cpp_err"; then
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2221 # Broken: fails on valid input.
2224 rm -f conftest.err conftest.$ac_ext
2226 # OK, works on sane cases. Now check whether non-existent headers
2227 # can be detected and how.
2228 cat >conftest.$ac_ext <<_ACEOF
2229 #line $LINENO "configure"
2232 cat confdefs.h >>conftest.$ac_ext
2233 cat >>conftest.$ac_ext <<_ACEOF
2234 /* end confdefs.h. */
2235 #include <ac_nonexistent.h>
2237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2240 grep -v '^ *+' conftest.er1 >conftest.err
2242 cat conftest.err >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } >/dev/null; then
2245 if test -s conftest.err; then
2246 ac_cpp_err=$ac_c_preproc_warn_flag
2253 if test -z "$ac_cpp_err"; then
2254 # Broken: success on invalid input.
2257 echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2260 # Passes both tests.
2264 rm -f conftest.err conftest.$ac_ext
2267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2268 rm -f conftest.err conftest.$ac_ext
2269 if $ac_preproc_ok; then
2281 echo "$as_me:$LINENO: result: $CPP" >&5
2282 echo "${ECHO_T}$CPP" >&6
2284 for ac_c_preproc_warn_flag in '' yes
2286 # Use a header file that comes with gcc, so configuring glibc
2287 # with a fresh cross-compiler works.
2288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2289 # <limits.h> exists even on freestanding compilers.
2290 # On the NeXT, cc -E runs the code through the compiler's parser,
2291 # not just through cpp. "Syntax error" is here to catch this case.
2292 cat >conftest.$ac_ext <<_ACEOF
2293 #line $LINENO "configure"
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h. */
2300 # include <limits.h>
2302 # include <assert.h>
2306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1 >conftest.err
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } >/dev/null; then
2314 if test -s conftest.err; then
2315 ac_cpp_err=$ac_c_preproc_warn_flag
2322 if test -z "$ac_cpp_err"; then
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2328 # Broken: fails on valid input.
2331 rm -f conftest.err conftest.$ac_ext
2333 # OK, works on sane cases. Now check whether non-existent headers
2334 # can be detected and how.
2335 cat >conftest.$ac_ext <<_ACEOF
2336 #line $LINENO "configure"
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2342 #include <ac_nonexistent.h>
2344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347 grep -v '^ *+' conftest.er1 >conftest.err
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } >/dev/null; then
2352 if test -s conftest.err; then
2353 ac_cpp_err=$ac_c_preproc_warn_flag
2360 if test -z "$ac_cpp_err"; then
2361 # Broken: success on invalid input.
2364 echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2367 # Passes both tests.
2371 rm -f conftest.err conftest.$ac_ext
2374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2375 rm -f conftest.err conftest.$ac_ext
2376 if $ac_preproc_ok; then
2379 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2382 See \`config.log' for more details." >&2;}
2383 { (exit 1); exit 1; }; }
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2394 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2395 if test "${ac_cv_search_strerror+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 ac_func_search_save_LIBS=$LIBS
2399 ac_cv_search_strerror=no
2400 cat >conftest.$ac_ext <<_ACEOF
2401 #line $LINENO "configure"
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h. */
2408 /* Override any gcc2 internal prototype to avoid an error. */
2412 /* We use char because int might match the return type of a gcc2
2413 builtin and then its argument prototype would still apply. */
2423 rm -f conftest.$ac_objext conftest$ac_exeext
2424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2425 (eval $ac_link) 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -s conftest$ac_exeext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 ac_cv_search_strerror="none required"
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2442 if test "$ac_cv_search_strerror" = no; then
2443 for ac_lib in cposix; do
2444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2445 cat >conftest.$ac_ext <<_ACEOF
2446 #line $LINENO "configure"
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2453 /* Override any gcc2 internal prototype to avoid an error. */
2457 /* We use char because int might match the return type of a gcc2
2458 builtin and then its argument prototype would still apply. */
2468 rm -f conftest.$ac_objext conftest$ac_exeext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2470 (eval $ac_link) 2>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -s conftest$ac_exeext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2480 ac_cv_search_strerror="-l$ac_lib"
2483 echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2490 LIBS=$ac_func_search_save_LIBS
2492 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2493 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2494 if test "$ac_cv_search_strerror" != no; then
2495 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2500 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2501 if test -f $ac_dir/install-sh; then
2503 ac_install_sh="$ac_aux_dir/install-sh -c"
2505 elif test -f $ac_dir/install.sh; then
2507 ac_install_sh="$ac_aux_dir/install.sh -c"
2509 elif test -f $ac_dir/shtool; then
2511 ac_install_sh="$ac_aux_dir/shtool install -c"
2515 if test -z "$ac_aux_dir"; then
2516 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2517 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2518 { (exit 1); exit 1; }; }
2520 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2521 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2522 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2524 # Find a good install program. We prefer a C program (faster),
2525 # so one script is as good as another. But avoid the broken or
2526 # incompatible versions:
2527 # SysV /etc/install, /usr/sbin/install
2528 # SunOS /usr/etc/install
2529 # IRIX /sbin/install
2531 # AmigaOS /C/install, which installs bootblocks on floppy discs
2532 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2533 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2534 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2535 # ./install, which can be erroneously created by make from ./install.sh.
2536 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2537 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2538 if test -z "$INSTALL"; then
2539 if test "${ac_cv_path_install+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir=.
2547 # Account for people who put trailing slashes in PATH elements.
2549 ./ | .// | /cC/* | \
2550 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2553 # OSF1 and SCO ODT 3.0 have their own names for install.
2554 # Don't use installbsd from OSF since it installs stuff as root
2556 for ac_prog in ginstall scoinst install; do
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2559 if test $ac_prog = install &&
2560 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2561 # AIX install. It has an incompatible calling convention.
2563 elif test $ac_prog = install &&
2564 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565 # program-specific install script used by HP pwplus--don't use.
2568 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2580 if test "${ac_cv_path_install+set}" = set; then
2581 INSTALL=$ac_cv_path_install
2583 # As a last resort, use the slow shell script. We don't cache a
2584 # path for INSTALL within a source directory, because that will
2585 # break other packages using the cache if that directory is
2586 # removed, or if the path is relative.
2587 INSTALL=$ac_install_sh
2590 echo "$as_me:$LINENO: result: $INSTALL" >&5
2591 echo "${ECHO_T}$INSTALL" >&6
2593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2594 # It thinks the first close brace ends the variable substitution.
2595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2597 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2599 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2601 for ac_prog in lex flex
2603 # Extract the first word of "$ac_prog", so it can be a program name with args.
2604 set dummy $ac_prog; ac_word=$2
2605 echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2607 if test "${ac_cv_prog_LEX+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 if test -n "$LEX"; then
2611 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2620 ac_cv_prog_LEX="$ac_prog"
2621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 if test -n "$LEX"; then
2631 echo "$as_me:$LINENO: result: $LEX" >&5
2632 echo "${ECHO_T}$LEX" >&6
2634 echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6
2638 test -n "$LEX" && break
2640 test -n "$LEX" || LEX="lex_not_found"
2642 if test "$LEX" != lex_not_found ; then
2643 for ac_prog in flex lex
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646 set dummy $ac_prog; ac_word=$2
2647 echo "$as_me:$LINENO: checking for $ac_word" >&5
2648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2649 if test "${ac_cv_prog_LEX+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 if test -n "$LEX"; then
2653 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2662 ac_cv_prog_LEX="$ac_prog"
2663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 if test -n "$LEX"; then
2673 echo "$as_me:$LINENO: result: $LEX" >&5
2674 echo "${ECHO_T}$LEX" >&6
2676 echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6
2680 test -n "$LEX" && break
2682 test -n "$LEX" || LEX=":"
2684 if test -z "$LEXLIB"
2686 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2687 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2688 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 ac_check_lib_save_LIBS=$LIBS
2693 cat >conftest.$ac_ext <<_ACEOF
2694 #line $LINENO "configure"
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h. */
2701 /* Override any gcc2 internal prototype to avoid an error. */
2705 /* We use char because int might match the return type of a gcc2
2706 builtin and then its argument prototype would still apply. */
2716 rm -f conftest.$ac_objext conftest$ac_exeext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2718 (eval $ac_link) 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -s conftest$ac_exeext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_lib_fl_yywrap=yes
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2733 ac_cv_lib_fl_yywrap=no
2735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2736 LIBS=$ac_check_lib_save_LIBS
2738 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2739 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2740 if test $ac_cv_lib_fl_yywrap = yes; then
2743 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2744 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2745 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 ac_check_lib_save_LIBS=$LIBS
2750 cat >conftest.$ac_ext <<_ACEOF
2751 #line $LINENO "configure"
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2758 /* Override any gcc2 internal prototype to avoid an error. */
2762 /* We use char because int might match the return type of a gcc2
2763 builtin and then its argument prototype would still apply. */
2773 rm -f conftest.$ac_objext conftest$ac_exeext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2775 (eval $ac_link) 2>&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } &&
2779 { ac_try='test -s conftest$ac_exeext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 ac_cv_lib_l_yywrap=yes
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 ac_cv_lib_l_yywrap=no
2792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2793 LIBS=$ac_check_lib_save_LIBS
2795 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2796 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2797 if test $ac_cv_lib_l_yywrap = yes; then
2805 if test "x$LEX" != "x:"; then
2806 echo "$as_me:$LINENO: checking lex output file root" >&5
2807 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2808 if test "${ac_cv_prog_lex_root+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 # The minimal lex program is just a single line: %%. But some broken lexes
2812 # (Solaris, I think it was) want two %% lines, so accommodate them.
2813 cat >conftest.l <<_ACEOF
2817 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2818 (eval $LEX conftest.l) 2>&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }
2822 if test -f lex.yy.c; then
2823 ac_cv_prog_lex_root=lex.yy
2824 elif test -f lexyy.c; then
2825 ac_cv_prog_lex_root=lexyy
2827 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2828 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2829 { (exit 1); exit 1; }; }
2832 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2833 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2835 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2837 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2838 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2839 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 # POSIX says lex can declare yytext either as a pointer or an array; the
2843 # default is implementation-dependent. Figure out which it is, since
2844 # not all implementations provide the %pointer and %array declarations.
2845 ac_cv_prog_lex_yytext_pointer=no
2846 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2848 LIBS="$LIBS $LEXLIB"
2849 cat >conftest.$ac_ext <<_ACEOF
2850 `cat $LEX_OUTPUT_ROOT.c`
2852 rm -f conftest.$ac_objext conftest$ac_exeext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2854 (eval $ac_link) 2>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } &&
2858 { ac_try='test -s conftest$ac_exeext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 ac_cv_prog_lex_yytext_pointer=yes
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2872 rm -f "${LEX_OUTPUT_ROOT}.c"
2875 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2876 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2877 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2879 cat >>confdefs.h <<\_ACEOF
2880 #define YYTEXT_POINTER 1
2887 for ac_prog in remsh rsh
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 echo "$as_me:$LINENO: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2893 if test "${ac_cv_prog_RSH+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 if test -n "$RSH"; then
2897 ac_cv_prog_RSH="$RSH" # Let the user override the test.
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_RSH="$ac_prog"
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 if test -n "$RSH"; then
2917 echo "$as_me:$LINENO: result: $RSH" >&5
2918 echo "${ECHO_T}$RSH" >&6
2920 echo "$as_me:$LINENO: result: no" >&5
2921 echo "${ECHO_T}no" >&6
2924 test -n "$RSH" && break
2926 test -n "$RSH" || RSH="rsh"
2928 cat >>confdefs.h <<_ACEOF
2929 #define REMOTE_SHELL "$RSH"
2932 # Extract the first word of "nroff", so it can be a program name with args.
2933 set dummy nroff; ac_word=$2
2934 echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2936 if test "${ac_cv_prog_NROFF+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 if test -n "$NROFF"; then
2940 ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_NROFF="nroff -man"
2950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 test -z "$ac_cv_prog_NROFF" && ac_cv_prog_NROFF="cat"
2959 NROFF=$ac_cv_prog_NROFF
2960 if test -n "$NROFF"; then
2961 echo "$as_me:$LINENO: result: $NROFF" >&5
2962 echo "${ECHO_T}$NROFF" >&6
2964 echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2969 for ac_prog in awk mawk gawk nawk
2971 # Extract the first word of "$ac_prog", so it can be a program name with args.
2972 set dummy $ac_prog; ac_word=$2
2973 echo "$as_me:$LINENO: checking for $ac_word" >&5
2974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2975 if test "${ac_cv_path_AWKPATH+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 ac_cv_path_AWKPATH="$AWKPATH" # Let the user override the test with a path.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_path_AWKPATH="$as_dir/$ac_word$ac_exec_ext"
2991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 AWKPATH=$ac_cv_path_AWKPATH
3002 if test -n "$AWKPATH"; then
3003 echo "$as_me:$LINENO: result: $AWKPATH" >&5
3004 echo "${ECHO_T}$AWKPATH" >&6
3006 echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6
3010 test -n "$AWKPATH" && break
3015 # Extract the first word of "$ac_prog", so it can be a program name with args.
3016 set dummy $ac_prog; ac_word=$2
3017 echo "$as_me:$LINENO: checking for $ac_word" >&5
3018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3019 if test "${ac_cv_path_PERLPATH+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
3035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 PERLPATH=$ac_cv_path_PERLPATH
3046 if test -n "$PERLPATH"; then
3047 echo "$as_me:$LINENO: result: $PERLPATH" >&5
3048 echo "${ECHO_T}$PERLPATH" >&6
3050 echo "$as_me:$LINENO: result: no" >&5
3051 echo "${ECHO_T}no" >&6
3054 test -n "$PERLPATH" && break
3059 # Check whether --with-Xaw3d or --without-Xaw3d was given.
3060 if test "${with_Xaw3d+set}" = set; then
3061 withval="$with_Xaw3d"
3062 cat >>confdefs.h <<\_ACEOF
3073 echo "$as_me:$LINENO: checking for egrep" >&5
3074 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3075 if test "${ac_cv_prog_egrep+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3079 then ac_cv_prog_egrep='grep -E'
3080 else ac_cv_prog_egrep='egrep'
3083 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3084 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3085 EGREP=$ac_cv_prog_egrep
3088 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3089 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3090 if test "${ac_cv_header_stdc+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 cat >conftest.$ac_ext <<_ACEOF
3094 #line $LINENO "configure"
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3113 rm -f conftest.$ac_objext
3114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3115 (eval $ac_compile) 2>&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); } &&
3119 { ac_try='test -s conftest.$ac_objext'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; }; then
3125 ac_cv_header_stdc=yes
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3130 ac_cv_header_stdc=no
3132 rm -f conftest.$ac_objext conftest.$ac_ext
3134 if test $ac_cv_header_stdc = yes; then
3135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3136 cat >conftest.$ac_ext <<_ACEOF
3137 #line $LINENO "configure"
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3147 $EGREP "memchr" >/dev/null 2>&1; then
3150 ac_cv_header_stdc=no
3156 if test $ac_cv_header_stdc = yes; then
3157 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3158 cat >conftest.$ac_ext <<_ACEOF
3159 #line $LINENO "configure"
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3169 $EGREP "free" >/dev/null 2>&1; then
3172 ac_cv_header_stdc=no
3178 if test $ac_cv_header_stdc = yes; then
3179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3180 if test "$cross_compiling" = yes; then
3183 cat >conftest.$ac_ext <<_ACEOF
3184 #line $LINENO "configure"
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3191 #if ((' ' & 0x0FF) == 0x020)
3192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3195 # define ISLOWER(c) \
3196 (('a' <= (c) && (c) <= 'i') \
3197 || ('j' <= (c) && (c) <= 'r') \
3198 || ('s' <= (c) && (c) <= 'z'))
3199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3207 for (i = 0; i < 256; i++)
3208 if (XOR (islower (i), ISLOWER (i))
3209 || toupper (i) != TOUPPER (i))
3214 rm -f conftest$ac_exeext
3215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3216 (eval $ac_link) 2>&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; }; then
3227 echo "$as_me: program exited with status $ac_status" >&5
3228 echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3232 ac_cv_header_stdc=no
3234 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3238 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3239 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3240 if test $ac_cv_header_stdc = yes; then
3242 cat >>confdefs.h <<\_ACEOF
3243 #define STDC_HEADERS 1
3248 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3249 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3250 if test "${ac_cv_header_time+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 cat >conftest.$ac_ext <<_ACEOF
3254 #line $LINENO "configure"
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260 #include <sys/types.h>
3261 #include <sys/time.h>
3267 if ((struct tm *) 0)
3273 rm -f conftest.$ac_objext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } &&
3279 { ac_try='test -s conftest.$ac_objext'
3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; }; then
3285 ac_cv_header_time=yes
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 ac_cv_header_time=no
3292 rm -f conftest.$ac_objext conftest.$ac_ext
3294 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3295 echo "${ECHO_T}$ac_cv_header_time" >&6
3296 if test $ac_cv_header_time = yes; then
3298 cat >>confdefs.h <<\_ACEOF
3299 #define TIME_WITH_SYS_TIME 1
3304 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3305 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3306 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 cat >conftest.$ac_ext <<_ACEOF
3310 #line $LINENO "configure"
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3316 #include <sys/types.h>
3317 #include <sys/wait.h>
3319 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3322 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3330 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3335 rm -f conftest.$ac_objext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337 (eval $ac_compile) 2>&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3347 ac_cv_header_sys_wait_h=yes
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 ac_cv_header_sys_wait_h=no
3354 rm -f conftest.$ac_objext conftest.$ac_ext
3356 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3357 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3358 if test $ac_cv_header_sys_wait_h = yes; then
3360 cat >>confdefs.h <<\_ACEOF
3361 #define HAVE_SYS_WAIT_H 1
3372 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3373 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3374 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3375 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 cat >conftest.$ac_ext <<_ACEOF
3380 #line $LINENO "configure"
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386 #include <sys/types.h>
3398 rm -f conftest.$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -s conftest.$ac_objext'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; }; then
3410 eval "$as_ac_Header=yes"
3412 echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3415 eval "$as_ac_Header=no"
3417 rm -f conftest.$ac_objext conftest.$ac_ext
3419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3422 cat >>confdefs.h <<_ACEOF
3423 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3426 ac_header_dirent=$ac_hdr; break
3430 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3431 if test $ac_header_dirent = dirent.h; then
3432 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3433 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3434 if test "${ac_cv_search_opendir+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 ac_func_search_save_LIBS=$LIBS
3438 ac_cv_search_opendir=no
3439 cat >conftest.$ac_ext <<_ACEOF
3440 #line $LINENO "configure"
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3447 /* Override any gcc2 internal prototype to avoid an error. */
3451 /* We use char because int might match the return type of a gcc2
3452 builtin and then its argument prototype would still apply. */
3462 rm -f conftest.$ac_objext conftest$ac_exeext
3463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3464 (eval $ac_link) 2>&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } &&
3468 { ac_try='test -s conftest$ac_exeext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 ac_cv_search_opendir="none required"
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3481 if test "$ac_cv_search_opendir" = no; then
3482 for ac_lib in dir; do
3483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3484 cat >conftest.$ac_ext <<_ACEOF
3485 #line $LINENO "configure"
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3492 /* Override any gcc2 internal prototype to avoid an error. */
3496 /* We use char because int might match the return type of a gcc2
3497 builtin and then its argument prototype would still apply. */
3507 rm -f conftest.$ac_objext conftest$ac_exeext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3509 (eval $ac_link) 2>&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try='test -s conftest$ac_exeext'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; }; then
3519 ac_cv_search_opendir="-l$ac_lib"
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3529 LIBS=$ac_func_search_save_LIBS
3531 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3532 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3533 if test "$ac_cv_search_opendir" != no; then
3534 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3539 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3540 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3541 if test "${ac_cv_search_opendir+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 ac_func_search_save_LIBS=$LIBS
3545 ac_cv_search_opendir=no
3546 cat >conftest.$ac_ext <<_ACEOF
3547 #line $LINENO "configure"
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3554 /* Override any gcc2 internal prototype to avoid an error. */
3558 /* We use char because int might match the return type of a gcc2
3559 builtin and then its argument prototype would still apply. */
3569 rm -f conftest.$ac_objext conftest$ac_exeext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3571 (eval $ac_link) 2>&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try='test -s conftest$ac_exeext'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 ac_cv_search_opendir="none required"
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3588 if test "$ac_cv_search_opendir" = no; then
3590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3591 cat >conftest.$ac_ext <<_ACEOF
3592 #line $LINENO "configure"
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3599 /* Override any gcc2 internal prototype to avoid an error. */
3603 /* We use char because int might match the return type of a gcc2
3604 builtin and then its argument prototype would still apply. */
3614 rm -f conftest.$ac_objext conftest$ac_exeext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3616 (eval $ac_link) 2>&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } &&
3620 { ac_try='test -s conftest$ac_exeext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 ac_cv_search_opendir="-l$ac_lib"
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3636 LIBS=$ac_func_search_save_LIBS
3638 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3639 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3640 if test "$ac_cv_search_opendir" != no; then
3641 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3647 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3648 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3649 if test "${ac_cv_type_signal+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 cat >conftest.$ac_ext <<_ACEOF
3653 #line $LINENO "configure"
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3659 #include <sys/types.h>
3665 extern "C" void (*signal (int, void (*)(int)))(int);
3667 void (*signal ()) ();
3678 rm -f conftest.$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } &&
3684 { ac_try='test -s conftest.$ac_objext'
3685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; }; then
3690 ac_cv_type_signal=void
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3695 ac_cv_type_signal=int
3697 rm -f conftest.$ac_objext conftest.$ac_ext
3699 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3700 echo "${ECHO_T}$ac_cv_type_signal" >&6
3702 cat >>confdefs.h <<_ACEOF
3703 #define RETSIGTYPE $ac_cv_type_signal
3707 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3717 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3718 inttypes.h stdint.h unistd.h
3720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3721 echo "$as_me:$LINENO: checking for $ac_header" >&5
3722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 cat >conftest.$ac_ext <<_ACEOF
3727 #line $LINENO "configure"
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 $ac_includes_default
3735 #include <$ac_header>
3737 rm -f conftest.$ac_objext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3739 (eval $ac_compile) 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 { ac_try='test -s conftest.$ac_objext'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3749 eval "$as_ac_Header=yes"
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3754 eval "$as_ac_Header=no"
3756 rm -f conftest.$ac_objext conftest.$ac_ext
3758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3761 cat >>confdefs.h <<_ACEOF
3762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3775 for ac_header in stropts.h sys/time.h string.h unistd.h sys/systeminfo.h
3777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3779 echo "$as_me:$LINENO: checking for $ac_header" >&5
3780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3787 # Is the header compilable?
3788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3790 cat >conftest.$ac_ext <<_ACEOF
3791 #line $LINENO "configure"
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h. */
3797 $ac_includes_default
3798 #include <$ac_header>
3800 rm -f conftest.$ac_objext
3801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802 (eval $ac_compile) 2>&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } &&
3806 { ac_try='test -s conftest.$ac_objext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3812 ac_header_compiler=yes
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3817 ac_header_compiler=no
3819 rm -f conftest.$ac_objext conftest.$ac_ext
3820 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3821 echo "${ECHO_T}$ac_header_compiler" >&6
3823 # Is the header present?
3824 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3826 cat >conftest.$ac_ext <<_ACEOF
3827 #line $LINENO "configure"
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3833 #include <$ac_header>
3835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3838 grep -v '^ *+' conftest.er1 >conftest.err
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } >/dev/null; then
3843 if test -s conftest.err; then
3844 ac_cpp_err=$ac_c_preproc_warn_flag
3851 if test -z "$ac_cpp_err"; then
3852 ac_header_preproc=yes
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 ac_header_preproc=no
3859 rm -f conftest.err conftest.$ac_ext
3860 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3861 echo "${ECHO_T}$ac_header_preproc" >&6
3863 # So? What about this header?
3864 case $ac_header_compiler:$ac_header_preproc in
3866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3872 ## ------------------------------------ ##
3873 ## Report this to bug-autoconf@gnu.org. ##
3874 ## ------------------------------------ ##
3877 sed "s/^/$as_me: WARNING: /" >&2
3880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3888 ## ------------------------------------ ##
3889 ## Report this to bug-autoconf@gnu.org. ##
3890 ## ------------------------------------ ##
3893 sed "s/^/$as_me: WARNING: /" >&2
3896 echo "$as_me:$LINENO: checking for $ac_header" >&5
3897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 eval "$as_ac_Header=$ac_header_preproc"
3903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3907 if test `eval echo '${'$as_ac_Header'}'` = yes; then