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
3908 cat >>confdefs.h <<_ACEOF
3909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3918 for ac_header in fcntl.h sys/fcntl.h
3920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3922 echo "$as_me:$LINENO: checking for $ac_header" >&5
3923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3930 # Is the header compilable?
3931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3933 cat >conftest.$ac_ext <<_ACEOF
3934 #line $LINENO "configure"
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 $ac_includes_default
3941 #include <$ac_header>
3943 rm -f conftest.$ac_objext
3944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3945 (eval $ac_compile) 2>&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } &&
3949 { ac_try='test -s conftest.$ac_objext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_header_compiler=yes
3957 echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3960 ac_header_compiler=no
3962 rm -f conftest.$ac_objext conftest.$ac_ext
3963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3964 echo "${ECHO_T}$ac_header_compiler" >&6
3966 # Is the header present?
3967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3969 cat >conftest.$ac_ext <<_ACEOF
3970 #line $LINENO "configure"
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976 #include <$ac_header>
3978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3981 grep -v '^ *+' conftest.er1 >conftest.err
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } >/dev/null; then
3986 if test -s conftest.err; then
3987 ac_cpp_err=$ac_c_preproc_warn_flag
3994 if test -z "$ac_cpp_err"; then
3995 ac_header_preproc=yes
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 ac_header_preproc=no
4002 rm -f conftest.err conftest.$ac_ext
4003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4004 echo "${ECHO_T}$ac_header_preproc" >&6
4006 # So? What about this header?
4007 case $ac_header_compiler:$ac_header_preproc in
4009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4015 ## ------------------------------------ ##
4016 ## Report this to bug-autoconf@gnu.org. ##
4017 ## ------------------------------------ ##
4020 sed "s/^/$as_me: WARNING: /" >&2
4023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4031 ## ------------------------------------ ##
4032 ## Report this to bug-autoconf@gnu.org. ##
4033 ## ------------------------------------ ##
4036 sed "s/^/$as_me: WARNING: /" >&2
4039 echo "$as_me:$LINENO: checking for $ac_header" >&5
4040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 eval "$as_ac_Header=$ac_header_preproc"
4046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4051 cat >>confdefs.h <<_ACEOF
4052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4061 for ac_header in sys/socket.h lan/socket.h
4063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4065 echo "$as_me:$LINENO: checking for $ac_header" >&5
4066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4073 # Is the header compilable?
4074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4076 cat >conftest.$ac_ext <<_ACEOF
4077 #line $LINENO "configure"
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 $ac_includes_default
4084 #include <$ac_header>
4086 rm -f conftest.$ac_objext
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088 (eval $ac_compile) 2>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -s conftest.$ac_objext'
4093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4098 ac_header_compiler=yes
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 ac_header_compiler=no
4105 rm -f conftest.$ac_objext conftest.$ac_ext
4106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4107 echo "${ECHO_T}$ac_header_compiler" >&6
4109 # Is the header present?
4110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4112 cat >conftest.$ac_ext <<_ACEOF
4113 #line $LINENO "configure"
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4119 #include <$ac_header>
4121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4124 grep -v '^ *+' conftest.er1 >conftest.err
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } >/dev/null; then
4129 if test -s conftest.err; then
4130 ac_cpp_err=$ac_c_preproc_warn_flag
4137 if test -z "$ac_cpp_err"; then
4138 ac_header_preproc=yes
4140 echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4143 ac_header_preproc=no
4145 rm -f conftest.err conftest.$ac_ext
4146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4147 echo "${ECHO_T}$ac_header_preproc" >&6
4149 # So? What about this header?
4150 case $ac_header_compiler:$ac_header_preproc in
4152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4158 ## ------------------------------------ ##
4159 ## Report this to bug-autoconf@gnu.org. ##
4160 ## ------------------------------------ ##
4163 sed "s/^/$as_me: WARNING: /" >&2
4166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4174 ## ------------------------------------ ##
4175 ## Report this to bug-autoconf@gnu.org. ##
4176 ## ------------------------------------ ##
4179 sed "s/^/$as_me: WARNING: /" >&2
4182 echo "$as_me:$LINENO: checking for $ac_header" >&5
4183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 eval "$as_ac_Header=$ac_header_preproc"
4189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4194 cat >>confdefs.h <<_ACEOF
4195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4202 if test "${ac_cv_header_stddef_h+set}" = set; then
4203 echo "$as_me:$LINENO: checking for stddef.h" >&5
4204 echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
4205 if test "${ac_cv_header_stddef_h+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
4209 echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
4211 # Is the header compilable?
4212 echo "$as_me:$LINENO: checking stddef.h usability" >&5
4213 echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
4214 cat >conftest.$ac_ext <<_ACEOF
4215 #line $LINENO "configure"
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 $ac_includes_default
4224 rm -f conftest.$ac_objext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -s conftest.$ac_objext'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 ac_header_compiler=yes
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 ac_header_compiler=no
4243 rm -f conftest.$ac_objext conftest.$ac_ext
4244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4245 echo "${ECHO_T}$ac_header_compiler" >&6
4247 # Is the header present?
4248 echo "$as_me:$LINENO: checking stddef.h presence" >&5
4249 echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
4250 cat >conftest.$ac_ext <<_ACEOF
4251 #line $LINENO "configure"
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4262 grep -v '^ *+' conftest.er1 >conftest.err
4264 cat conftest.err >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } >/dev/null; then
4267 if test -s conftest.err; then
4268 ac_cpp_err=$ac_c_preproc_warn_flag
4275 if test -z "$ac_cpp_err"; then
4276 ac_header_preproc=yes
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 ac_header_preproc=no
4283 rm -f conftest.err conftest.$ac_ext
4284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4285 echo "${ECHO_T}$ac_header_preproc" >&6
4287 # So? What about this header?
4288 case $ac_header_compiler:$ac_header_preproc in
4290 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
4291 echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4292 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
4293 echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
4296 ## ------------------------------------ ##
4297 ## Report this to bug-autoconf@gnu.org. ##
4298 ## ------------------------------------ ##
4301 sed "s/^/$as_me: WARNING: /" >&2
4304 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
4305 echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
4306 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
4307 echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
4308 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
4309 echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
4312 ## ------------------------------------ ##
4313 ## Report this to bug-autoconf@gnu.org. ##
4314 ## ------------------------------------ ##
4317 sed "s/^/$as_me: WARNING: /" >&2
4320 echo "$as_me:$LINENO: checking for stddef.h" >&5
4321 echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
4322 if test "${ac_cv_header_stddef_h+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 ac_cv_header_stddef_h=$ac_header_preproc
4327 echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
4328 echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
4331 if test $ac_cv_header_stddef_h = yes; then
4334 cat >>confdefs.h <<\_ACEOF
4346 for ac_func in _getpty grantpt setitimer usleep
4348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4349 echo "$as_me:$LINENO: checking for $ac_func" >&5
4350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4351 if eval "test \"\${$as_ac_var+set}\" = set"; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 cat >conftest.$ac_ext <<_ACEOF
4355 #line $LINENO "configure"
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 /* System header to define __stub macros and hopefully few prototypes,
4362 which can conflict with char $ac_func (); below.
4363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4364 <limits.h> exists even on freestanding compilers. */
4366 # include <limits.h>
4368 # include <assert.h>
4370 /* Override any gcc2 internal prototype to avoid an error. */
4375 /* We use char because int might match the return type of a gcc2
4376 builtin and then its argument prototype would still apply. */
4378 /* The GNU C library defines this for functions which it implements
4379 to always fail with ENOSYS. Some functions are actually named
4380 something starting with __ and the normal name is an alias. */
4381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4384 char (*f) () = $ac_func;
4393 return f != $ac_func;
4398 rm -f conftest.$ac_objext conftest$ac_exeext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4400 (eval $ac_link) 2>&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try='test -s conftest$ac_exeext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 eval "$as_ac_var=yes"
4412 echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4415 eval "$as_ac_var=no"
4417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4421 if test `eval echo '${'$as_ac_var'}'` = yes; then
4422 cat >>confdefs.h <<_ACEOF
4423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4431 for ac_func in gettimeofday ftime
4433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4434 echo "$as_me:$LINENO: checking for $ac_func" >&5
4435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4436 if eval "test \"\${$as_ac_var+set}\" = set"; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 cat >conftest.$ac_ext <<_ACEOF
4440 #line $LINENO "configure"
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 /* System header to define __stub macros and hopefully few prototypes,
4447 which can conflict with char $ac_func (); below.
4448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4449 <limits.h> exists even on freestanding compilers. */
4451 # include <limits.h>
4453 # include <assert.h>
4455 /* Override any gcc2 internal prototype to avoid an error. */
4460 /* We use char because int might match the return type of a gcc2
4461 builtin and then its argument prototype would still apply. */
4463 /* The GNU C library defines this for functions which it implements
4464 to always fail with ENOSYS. Some functions are actually named
4465 something starting with __ and the normal name is an alias. */
4466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4469 char (*f) () = $ac_func;
4478 return f != $ac_func;
4483 rm -f conftest.$ac_objext conftest$ac_exeext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4485 (eval $ac_link) 2>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -s conftest$ac_exeext'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 eval "$as_ac_var=yes"
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 eval "$as_ac_var=no"
4502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4506 if test `eval echo '${'$as_ac_var'}'` = yes; then
4507 cat >>confdefs.h <<_ACEOF
4508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4516 for ac_func in random rand48
4518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4519 echo "$as_me:$LINENO: checking for $ac_func" >&5
4520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4521 if eval "test \"\${$as_ac_var+set}\" = set"; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 cat >conftest.$ac_ext <<_ACEOF
4525 #line $LINENO "configure"
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 /* System header to define __stub macros and hopefully few prototypes,
4532 which can conflict with char $ac_func (); below.
4533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4534 <limits.h> exists even on freestanding compilers. */
4536 # include <limits.h>
4538 # include <assert.h>
4540 /* Override any gcc2 internal prototype to avoid an error. */
4545 /* We use char because int might match the return type of a gcc2
4546 builtin and then its argument prototype would still apply. */
4548 /* The GNU C library defines this for functions which it implements
4549 to always fail with ENOSYS. Some functions are actually named
4550 something starting with __ and the normal name is an alias. */
4551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4554 char (*f) () = $ac_func;
4563 return f != $ac_func;
4568 rm -f conftest.$ac_objext conftest$ac_exeext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4570 (eval $ac_link) 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try='test -s conftest$ac_exeext'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; }; then
4580 eval "$as_ac_var=yes"
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4585 eval "$as_ac_var=no"
4587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4591 if test `eval echo '${'$as_ac_var'}'` = yes; then
4592 cat >>confdefs.h <<_ACEOF
4593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4601 for ac_func in gethostname sysinfo
4603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4604 echo "$as_me:$LINENO: checking for $ac_func" >&5
4605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4606 if eval "test \"\${$as_ac_var+set}\" = set"; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 cat >conftest.$ac_ext <<_ACEOF
4610 #line $LINENO "configure"
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 /* System header to define __stub macros and hopefully few prototypes,
4617 which can conflict with char $ac_func (); below.
4618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4619 <limits.h> exists even on freestanding compilers. */
4621 # include <limits.h>
4623 # include <assert.h>
4625 /* Override any gcc2 internal prototype to avoid an error. */
4630 /* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4633 /* The GNU C library defines this for functions which it implements
4634 to always fail with ENOSYS. Some functions are actually named
4635 something starting with __ and the normal name is an alias. */
4636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4639 char (*f) () = $ac_func;
4648 return f != $ac_func;
4653 rm -f conftest.$ac_objext conftest$ac_exeext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4655 (eval $ac_link) 2>&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } &&
4659 { ac_try='test -s conftest$ac_exeext'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; }; then
4665 eval "$as_ac_var=yes"
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4670 eval "$as_ac_var=no"
4672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4675 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4676 if test `eval echo '${'$as_ac_var'}'` = yes; then
4677 cat >>confdefs.h <<_ACEOF
4678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4684 echo "$as_me:$LINENO: checking for setlocale" >&5
4685 echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
4686 if test "${ac_cv_func_setlocale+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 cat >conftest.$ac_ext <<_ACEOF
4690 #line $LINENO "configure"
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 /* System header to define __stub macros and hopefully few prototypes,
4697 which can conflict with char setlocale (); below.
4698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4699 <limits.h> exists even on freestanding compilers. */
4701 # include <limits.h>
4703 # include <assert.h>
4705 /* Override any gcc2 internal prototype to avoid an error. */
4710 /* We use char because int might match the return type of a gcc2
4711 builtin and then its argument prototype would still apply. */
4713 /* The GNU C library defines this for functions which it implements
4714 to always fail with ENOSYS. Some functions are actually named
4715 something starting with __ and the normal name is an alias. */
4716 #if defined (__stub_setlocale) || defined (__stub___setlocale)
4719 char (*f) () = setlocale;
4728 return f != setlocale;
4733 rm -f conftest.$ac_objext conftest$ac_exeext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4735 (eval $ac_link) 2>&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -s conftest$ac_exeext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 ac_cv_func_setlocale=yes
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4750 ac_cv_func_setlocale=no
4752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4754 echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
4755 echo "${ECHO_T}$ac_cv_func_setlocale" >&6
4756 if test $ac_cv_func_setlocale = yes; then
4760 echo "$as_me:$LINENO: checking for setlocale in -li" >&5
4761 echo $ECHO_N "checking for setlocale in -li... $ECHO_C" >&6
4762 if test "${ac_cv_lib_i_setlocale+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 ac_check_lib_save_LIBS=$LIBS
4767 cat >conftest.$ac_ext <<_ACEOF
4768 #line $LINENO "configure"
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4775 /* Override any gcc2 internal prototype to avoid an error. */
4779 /* We use char because int might match the return type of a gcc2
4780 builtin and then its argument prototype would still apply. */
4790 rm -f conftest.$ac_objext conftest$ac_exeext
4791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4792 (eval $ac_link) 2>&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -s conftest$ac_exeext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 ac_cv_lib_i_setlocale=yes
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4807 ac_cv_lib_i_setlocale=no
4809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4810 LIBS=$ac_check_lib_save_LIBS
4812 echo "$as_me:$LINENO: result: $ac_cv_lib_i_setlocale" >&5
4813 echo "${ECHO_T}$ac_cv_lib_i_setlocale" >&6
4814 if test $ac_cv_lib_i_setlocale = yes; then
4815 cat >>confdefs.h <<_ACEOF
4822 cat >>confdefs.h <<\_ACEOF
4832 echo "$as_me:$LINENO: checking for getpseudotty in -lseq" >&5
4833 echo $ECHO_N "checking for getpseudotty in -lseq... $ECHO_C" >&6
4834 if test "${ac_cv_lib_seq_getpseudotty+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 ac_check_lib_save_LIBS=$LIBS
4839 cat >conftest.$ac_ext <<_ACEOF
4840 #line $LINENO "configure"
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4847 /* Override any gcc2 internal prototype to avoid an error. */
4851 /* We use char because int might match the return type of a gcc2
4852 builtin and then its argument prototype would still apply. */
4853 char getpseudotty ();
4862 rm -f conftest.$ac_objext conftest$ac_exeext
4863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4864 (eval $ac_link) 2>&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } &&
4868 { ac_try='test -s conftest$ac_exeext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4874 ac_cv_lib_seq_getpseudotty=yes
4876 echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4879 ac_cv_lib_seq_getpseudotty=no
4881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4882 LIBS=$ac_check_lib_save_LIBS
4884 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getpseudotty" >&5
4885 echo "${ECHO_T}$ac_cv_lib_seq_getpseudotty" >&6
4886 if test $ac_cv_lib_seq_getpseudotty = yes; then
4887 cat >>confdefs.h <<_ACEOF
4888 #define HAVE_LIBSEQ 1
4896 echo "$as_me:$LINENO: checking for X" >&5
4897 echo $ECHO_N "checking for X... $ECHO_C" >&6
4900 # Check whether --with-x or --without-x was given.
4901 if test "${with_x+set}" = set; then
4905 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4906 if test "x$with_x" = xno; then
4907 # The user explicitly disabled X.
4910 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4911 # Both variables are already set.
4914 if test "${ac_cv_have_x+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 # One or both of the vars are not set, and there is no cached value.
4918 ac_x_includes=no ac_x_libraries=no
4920 if mkdir conftest.dir; then
4922 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4923 cat >Imakefile <<'_ACEOF'
4925 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4927 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4929 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4930 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4931 for ac_extension in a so sl; do
4932 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4933 test -f $ac_im_libdir/libX11.$ac_extension; then
4934 ac_im_usrlibdir=$ac_im_libdir; break
4937 # Screen out bogus values from the imake configuration. They are
4938 # bogus both because they are the default anyway, and because
4939 # using them would break gcc on systems where it needs fixed includes.
4940 case $ac_im_incroot in
4942 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4944 case $ac_im_usrlibdir in
4946 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4953 # Standard set of common directories for X headers.
4954 # Check X11 before X11Rn because it is often a symlink to the current release.
4966 /usr/local/X11/include
4967 /usr/local/X11R6/include
4968 /usr/local/X11R5/include
4969 /usr/local/X11R4/include
4971 /usr/local/include/X11
4972 /usr/local/include/X11R6
4973 /usr/local/include/X11R5
4974 /usr/local/include/X11R4
4978 /usr/XFree86/include/X11
4982 /usr/unsupported/include
4984 /usr/local/x11r5/include
4985 /usr/lpp/Xamples/include
4987 /usr/openwin/include
4988 /usr/openwin/share/include'
4990 if test "$ac_x_includes" = no; then
4991 # Guess where to find include files, by looking for Intrinsic.h.
4992 # First, try using that file with no special directory specified.
4993 cat >conftest.$ac_ext <<_ACEOF
4994 #line $LINENO "configure"
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5000 #include <X11/Intrinsic.h>
5002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5005 grep -v '^ *+' conftest.er1 >conftest.err
5007 cat conftest.err >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } >/dev/null; then
5010 if test -s conftest.err; then
5011 ac_cpp_err=$ac_c_preproc_warn_flag
5018 if test -z "$ac_cpp_err"; then
5019 # We can compile using X headers with no special include directory.
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5025 for ac_dir in $ac_x_header_dirs; do
5026 if test -r "$ac_dir/X11/Intrinsic.h"; then
5027 ac_x_includes=$ac_dir
5032 rm -f conftest.err conftest.$ac_ext
5033 fi # $ac_x_includes = no
5035 if test "$ac_x_libraries" = no; then
5036 # Check for the libraries.
5037 # See if we find them without any special options.
5038 # Don't add to $LIBS permanently.
5041 cat >conftest.$ac_ext <<_ACEOF
5042 #line $LINENO "configure"
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048 #include <X11/Intrinsic.h>
5057 rm -f conftest.$ac_objext conftest$ac_exeext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -s conftest$ac_exeext'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
5070 # We can link X programs with no special library path.
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5077 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5079 # Don't even attempt the hair of trying to link an X program!
5080 for ac_extension in a so sl; do
5081 if test -r $ac_dir/libXt.$ac_extension; then
5082 ac_x_libraries=$ac_dir
5088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5089 fi # $ac_x_libraries = no
5091 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5092 # Didn't find X anywhere. Cache the known absence of X.
5093 ac_cv_have_x="have_x=no"
5095 # Record where we found X for the cache.
5096 ac_cv_have_x="have_x=yes \
5097 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5102 eval "$ac_cv_have_x"
5105 if test "$have_x" != yes; then
5106 echo "$as_me:$LINENO: result: $have_x" >&5
5107 echo "${ECHO_T}$have_x" >&6
5110 # If each of the values was on the command line, it overrides each guess.
5111 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5112 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5113 # Update the cache value to reflect the command line values.
5114 ac_cv_have_x="have_x=yes \
5115 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5116 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5117 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5120 if test "$no_x" = yes; then
5121 # Not all programs may use this symbol, but it does not hurt to define it.
5123 cat >>confdefs.h <<\_ACEOF
5124 #define X_DISPLAY_MISSING 1
5127 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5129 if test -n "$x_includes"; then
5130 X_CFLAGS="$X_CFLAGS -I$x_includes"
5133 # It would also be nice to do this for all -L options, not just this one.
5134 if test -n "$x_libraries"; then
5135 X_LIBS="$X_LIBS -L$x_libraries"
5136 # For Solaris; some versions of Sun CC require a space after -R and
5137 # others require no space. Words are not sufficient . . . .
5138 case `(uname -sr) 2>/dev/null` in
5140 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5141 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5142 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5143 cat >conftest.$ac_ext <<_ACEOF
5144 #line $LINENO "configure"
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5159 rm -f conftest.$ac_objext conftest$ac_exeext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5161 (eval $ac_link) 2>&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try='test -s conftest$ac_exeext'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5173 echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5179 if test $ac_R_nospace = yes; then
5180 echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6
5182 X_LIBS="$X_LIBS -R$x_libraries"
5184 LIBS="$ac_xsave_LIBS -R $x_libraries"
5185 cat >conftest.$ac_ext <<_ACEOF
5186 #line $LINENO "configure"
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5201 rm -f conftest.$ac_objext conftest$ac_exeext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5203 (eval $ac_link) 2>&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } &&
5207 { ac_try='test -s conftest$ac_exeext'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; }; then
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5221 if test $ac_R_space = yes; then
5222 echo "$as_me:$LINENO: result: yes" >&5
5223 echo "${ECHO_T}yes" >&6
5224 X_LIBS="$X_LIBS -R $x_libraries"
5226 echo "$as_me:$LINENO: result: neither works" >&5
5227 echo "${ECHO_T}neither works" >&6
5234 # Check for system-dependent libraries X programs must link with.
5235 # Do this before checking for the system-independent R6 libraries
5236 # (-lICE), since we may need -lsocket or whatever for X linking.
5238 if test "$ISC" = yes; then
5239 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5241 # Martyn Johnson says this is needed for Ultrix, if the X
5242 # libraries were built with DECnet support. And Karl Berry says
5243 # the Alpha needs dnet_stub (dnet does not exist).
5244 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5245 cat >conftest.$ac_ext <<_ACEOF
5246 #line $LINENO "configure"
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5253 /* Override any gcc2 internal prototype to avoid an error. */
5257 /* We use char because int might match the return type of a gcc2
5258 builtin and then its argument prototype would still apply. */
5259 char XOpenDisplay ();
5268 rm -f conftest.$ac_objext conftest$ac_exeext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5270 (eval $ac_link) 2>&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
5274 { ac_try='test -s conftest$ac_exeext'
5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5286 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5287 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 ac_check_lib_save_LIBS=$LIBS
5292 cat >conftest.$ac_ext <<_ACEOF
5293 #line $LINENO "configure"
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5300 /* Override any gcc2 internal prototype to avoid an error. */
5304 /* We use char because int might match the return type of a gcc2
5305 builtin and then its argument prototype would still apply. */
5315 rm -f conftest.$ac_objext conftest$ac_exeext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5317 (eval $ac_link) 2>&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } &&
5321 { ac_try='test -s conftest$ac_exeext'
5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; }; then
5327 ac_cv_lib_dnet_dnet_ntoa=yes
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5332 ac_cv_lib_dnet_dnet_ntoa=no
5334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5335 LIBS=$ac_check_lib_save_LIBS
5337 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5338 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5339 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5340 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5343 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5344 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5345 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5346 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 ac_check_lib_save_LIBS=$LIBS
5350 LIBS="-ldnet_stub $LIBS"
5351 cat >conftest.$ac_ext <<_ACEOF
5352 #line $LINENO "configure"
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5359 /* Override any gcc2 internal prototype to avoid an error. */
5363 /* We use char because int might match the return type of a gcc2
5364 builtin and then its argument prototype would still apply. */
5374 rm -f conftest.$ac_objext conftest$ac_exeext
5375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5376 (eval $ac_link) 2>&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } &&
5380 { ac_try='test -s conftest$ac_exeext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5386 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 ac_cv_lib_dnet_stub_dnet_ntoa=no
5393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5394 LIBS=$ac_check_lib_save_LIBS
5396 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5397 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5398 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5399 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5405 LIBS="$ac_xsave_LIBS"
5407 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5408 # to get the SysV transport functions.
5409 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5411 # The nsl library prevents programs from opening the X display
5412 # on Irix 5.2, according to T.E. Dickey.
5413 # The functions gethostbyname, getservbyname, and inet_addr are
5414 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5415 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5416 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5417 if test "${ac_cv_func_gethostbyname+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 cat >conftest.$ac_ext <<_ACEOF
5421 #line $LINENO "configure"
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 /* System header to define __stub macros and hopefully few prototypes,
5428 which can conflict with char gethostbyname (); below.
5429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5430 <limits.h> exists even on freestanding compilers. */
5432 # include <limits.h>
5434 # include <assert.h>
5436 /* Override any gcc2 internal prototype to avoid an error. */
5441 /* We use char because int might match the return type of a gcc2
5442 builtin and then its argument prototype would still apply. */
5443 char gethostbyname ();
5444 /* The GNU C library defines this for functions which it implements
5445 to always fail with ENOSYS. Some functions are actually named
5446 something starting with __ and the normal name is an alias. */
5447 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5450 char (*f) () = gethostbyname;
5459 return f != gethostbyname;
5464 rm -f conftest.$ac_objext conftest$ac_exeext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5466 (eval $ac_link) 2>&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } &&
5470 { ac_try='test -s conftest$ac_exeext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 ac_cv_func_gethostbyname=yes
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 ac_cv_func_gethostbyname=no
5483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5485 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5486 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5488 if test $ac_cv_func_gethostbyname = no; then
5489 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5490 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5491 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 ac_check_lib_save_LIBS=$LIBS
5496 cat >conftest.$ac_ext <<_ACEOF
5497 #line $LINENO "configure"
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5504 /* Override any gcc2 internal prototype to avoid an error. */
5508 /* We use char because int might match the return type of a gcc2
5509 builtin and then its argument prototype would still apply. */
5510 char gethostbyname ();
5519 rm -f conftest.$ac_objext conftest$ac_exeext
5520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521 (eval $ac_link) 2>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 { ac_try='test -s conftest$ac_exeext'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 ac_cv_lib_nsl_gethostbyname=yes
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 ac_cv_lib_nsl_gethostbyname=no
5538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5539 LIBS=$ac_check_lib_save_LIBS
5541 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5542 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5543 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5544 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5547 if test $ac_cv_lib_nsl_gethostbyname = no; then
5548 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5549 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5550 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 ac_check_lib_save_LIBS=$LIBS
5555 cat >conftest.$ac_ext <<_ACEOF
5556 #line $LINENO "configure"
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5563 /* Override any gcc2 internal prototype to avoid an error. */
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5569 char gethostbyname ();
5578 rm -f conftest.$ac_objext conftest$ac_exeext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580 (eval $ac_link) 2>&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try='test -s conftest$ac_exeext'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5590 ac_cv_lib_bsd_gethostbyname=yes
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5595 ac_cv_lib_bsd_gethostbyname=no
5597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5598 LIBS=$ac_check_lib_save_LIBS
5600 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5601 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5602 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5609 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5610 # socket/setsockopt and other routines are undefined under SCO ODT
5611 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5612 # on later versions), says Simon Leinen: it contains gethostby*
5613 # variants that don't use the name server (or something). -lsocket
5614 # must be given before -lnsl if both are needed. We assume that
5615 # if connect needs -lnsl, so does gethostbyname.
5616 echo "$as_me:$LINENO: checking for connect" >&5
5617 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5618 if test "${ac_cv_func_connect+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 /* System header to define __stub macros and hopefully few prototypes,
5629 which can conflict with char connect (); below.
5630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631 <limits.h> exists even on freestanding compilers. */
5633 # include <limits.h>
5635 # include <assert.h>
5637 /* Override any gcc2 internal prototype to avoid an error. */
5642 /* We use char because int might match the return type of a gcc2
5643 builtin and then its argument prototype would still apply. */
5645 /* The GNU C library defines this for functions which it implements
5646 to always fail with ENOSYS. Some functions are actually named
5647 something starting with __ and the normal name is an alias. */
5648 #if defined (__stub_connect) || defined (__stub___connect)
5651 char (*f) () = connect;
5660 return f != connect;
5665 rm -f conftest.$ac_objext conftest$ac_exeext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5667 (eval $ac_link) 2>&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -s conftest$ac_exeext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 ac_cv_func_connect=yes
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5682 ac_cv_func_connect=no
5684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5686 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5687 echo "${ECHO_T}$ac_cv_func_connect" >&6
5689 if test $ac_cv_func_connect = no; then
5690 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5691 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5692 if test "${ac_cv_lib_socket_connect+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 ac_check_lib_save_LIBS=$LIBS
5696 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5697 cat >conftest.$ac_ext <<_ACEOF
5698 #line $LINENO "configure"
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5705 /* Override any gcc2 internal prototype to avoid an error. */
5709 /* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5720 rm -f conftest.$ac_objext conftest$ac_exeext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5722 (eval $ac_link) 2>&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -s conftest$ac_exeext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_cv_lib_socket_connect=yes
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 ac_cv_lib_socket_connect=no
5739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5740 LIBS=$ac_check_lib_save_LIBS
5742 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5743 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5744 if test $ac_cv_lib_socket_connect = yes; then
5745 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5750 # Guillermo Gomez says -lposix is necessary on A/UX.
5751 echo "$as_me:$LINENO: checking for remove" >&5
5752 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5753 if test "${ac_cv_func_remove+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 cat >conftest.$ac_ext <<_ACEOF
5757 #line $LINENO "configure"
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 /* System header to define __stub macros and hopefully few prototypes,
5764 which can conflict with char remove (); below.
5765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5766 <limits.h> exists even on freestanding compilers. */
5768 # include <limits.h>
5770 # include <assert.h>
5772 /* Override any gcc2 internal prototype to avoid an error. */
5777 /* We use char because int might match the return type of a gcc2
5778 builtin and then its argument prototype would still apply. */
5780 /* The GNU C library defines this for functions which it implements
5781 to always fail with ENOSYS. Some functions are actually named
5782 something starting with __ and the normal name is an alias. */
5783 #if defined (__stub_remove) || defined (__stub___remove)
5786 char (*f) () = remove;
5800 rm -f conftest.$ac_objext conftest$ac_exeext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5802 (eval $ac_link) 2>&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } &&
5806 { ac_try='test -s conftest$ac_exeext'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5812 ac_cv_func_remove=yes
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5817 ac_cv_func_remove=no
5819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5821 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5822 echo "${ECHO_T}$ac_cv_func_remove" >&6
5824 if test $ac_cv_func_remove = no; then
5825 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5826 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5827 if test "${ac_cv_lib_posix_remove+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 ac_check_lib_save_LIBS=$LIBS
5831 LIBS="-lposix $LIBS"
5832 cat >conftest.$ac_ext <<_ACEOF
5833 #line $LINENO "configure"
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5840 /* Override any gcc2 internal prototype to avoid an error. */
5844 /* We use char because int might match the return type of a gcc2
5845 builtin and then its argument prototype would still apply. */
5855 rm -f conftest.$ac_objext conftest$ac_exeext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5857 (eval $ac_link) 2>&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -s conftest$ac_exeext'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; }; then
5867 ac_cv_lib_posix_remove=yes
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5872 ac_cv_lib_posix_remove=no
5874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5875 LIBS=$ac_check_lib_save_LIBS
5877 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5878 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5879 if test $ac_cv_lib_posix_remove = yes; then
5880 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5885 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5886 echo "$as_me:$LINENO: checking for shmat" >&5
5887 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5888 if test "${ac_cv_func_shmat+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 cat >conftest.$ac_ext <<_ACEOF
5892 #line $LINENO "configure"
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 /* System header to define __stub macros and hopefully few prototypes,
5899 which can conflict with char shmat (); below.
5900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5901 <limits.h> exists even on freestanding compilers. */
5903 # include <limits.h>
5905 # include <assert.h>
5907 /* Override any gcc2 internal prototype to avoid an error. */
5912 /* We use char because int might match the return type of a gcc2
5913 builtin and then its argument prototype would still apply. */
5915 /* The GNU C library defines this for functions which it implements
5916 to always fail with ENOSYS. Some functions are actually named
5917 something starting with __ and the normal name is an alias. */
5918 #if defined (__stub_shmat) || defined (__stub___shmat)
5921 char (*f) () = shmat;
5935 rm -f conftest.$ac_objext conftest$ac_exeext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937 (eval $ac_link) 2>&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -s conftest$ac_exeext'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5947 ac_cv_func_shmat=yes
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5956 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5957 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5959 if test $ac_cv_func_shmat = no; then
5960 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5961 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5962 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 ac_check_lib_save_LIBS=$LIBS
5967 cat >conftest.$ac_ext <<_ACEOF
5968 #line $LINENO "configure"
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5975 /* Override any gcc2 internal prototype to avoid an error. */
5979 /* We use char because int might match the return type of a gcc2
5980 builtin and then its argument prototype would still apply. */
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5992 (eval $ac_link) 2>&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try='test -s conftest$ac_exeext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 ac_cv_lib_ipc_shmat=yes
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 ac_cv_lib_ipc_shmat=no
6009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6010 LIBS=$ac_check_lib_save_LIBS
6012 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6013 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6014 if test $ac_cv_lib_ipc_shmat = yes; then
6015 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6021 # Check for libraries that X11R6 Xt/Xaw programs need.
6022 ac_save_LDFLAGS=$LDFLAGS
6023 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6024 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6025 # check for ICE first), but we must link in the order -lSM -lICE or
6026 # we get undefined symbols. So assume we have SM if we have ICE.
6027 # These have to be linked with before -lX11, unlike the other
6028 # libraries we check for below, so use a different variable.
6029 # John Interrante, Karl Berry
6030 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6031 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6032 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 ac_check_lib_save_LIBS=$LIBS
6036 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6037 cat >conftest.$ac_ext <<_ACEOF
6038 #line $LINENO "configure"
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6045 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6051 char IceConnectionNumber ();
6055 IceConnectionNumber ();
6060 rm -f conftest.$ac_objext conftest$ac_exeext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6062 (eval $ac_link) 2>&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -s conftest$ac_exeext'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }; then
6072 ac_cv_lib_ICE_IceConnectionNumber=yes
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6077 ac_cv_lib_ICE_IceConnectionNumber=no
6079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6080 LIBS=$ac_check_lib_save_LIBS
6082 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6083 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6084 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6085 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6088 LDFLAGS=$ac_save_LDFLAGS
6092 if test -n "$no_x" ; then
6093 echo $PRODUCT requires the X Window System header files and libraries!
6094 echo They were not found on your system. See FAQ topic C.2.
6095 echo configure failed
6099 # Make sure we can run config.sub.
6100 $ac_config_sub sun4 >/dev/null 2>&1 ||
6101 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6102 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6103 { (exit 1); exit 1; }; }
6105 echo "$as_me:$LINENO: checking build system type" >&5
6106 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6107 if test "${ac_cv_build+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 ac_cv_build_alias=$build_alias
6111 test -z "$ac_cv_build_alias" &&
6112 ac_cv_build_alias=`$ac_config_guess`
6113 test -z "$ac_cv_build_alias" &&
6114 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6115 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6116 { (exit 1); exit 1; }; }
6117 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6118 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6119 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6120 { (exit 1); exit 1; }; }
6123 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6124 echo "${ECHO_T}$ac_cv_build" >&6
6126 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6127 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6128 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6131 echo "$as_me:$LINENO: checking host system type" >&5
6132 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6133 if test "${ac_cv_host+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 ac_cv_host_alias=$host_alias
6137 test -z "$ac_cv_host_alias" &&
6138 ac_cv_host_alias=$ac_cv_build_alias
6139 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6140 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6141 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6142 { (exit 1); exit 1; }; }
6145 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6146 echo "${ECHO_T}$ac_cv_host" >&6
6148 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6149 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6150 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6159 cat >>confdefs.h <<\_ACEOF
6160 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
6163 cat >>confdefs.h <<\_ACEOF
6164 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
6167 if test "$GCC" = yes; then
6168 CONF_CFLAGS="-fwritable-strings"
6172 CONF_CFLAGS="-Aa -D_HPUX_SOURCE"
6176 if test -d /opt/hppd/include/X11; then
6177 X_CFLAGS="$X_CFLAGS -I/opt/hppd/include"
6178 X_LIBS="$X_LIBS -L/opt/hppd/lib"
6179 elif test -d /usr/contrib/X11R5/include; then
6180 X_CFLAGS="$X_CFLAGS -I/usr/contrib/X11R5/include"
6181 X_LIBS="$X_LIBS -L/usr/contrib/X11R5/lib"
6182 elif test -d /usr/contrib/mitX11R5/include; then
6183 X_CFLAGS="$X_CFLAGS -I/usr/contrib/mitX11R5/include"
6184 X_LIBS="$X_LIBS -L/usr/contrib/mitX11R5/lib"
6185 elif test -d /MIT/X11R5/include; then
6186 X_CFLAGS="$X_CFLAGS -I/MIT/X11R5/include"
6187 X_LIBS="$X_LIBS -L/MIT/X11R5/lib"
6188 elif test -d /usr/local/include/X11R5; then
6189 X_CFLAGS="$X_CFLAGS -I/usr/local/include/X11R5"
6190 X_LIBS="$X_LIBS -L/usr/local/lib/X11R5"
6192 if test -d /usr/include/X11R5; then
6193 X_CFLAGS="$X_CFLAGS -I/usr/include/X11R5"
6194 X_LIBS="$X_LIBS -L/usr/lib/X11R5 -L/usr/lib/X11R4"
6195 elif test -d /usr/include/X11R4; then
6196 X_CFLAGS="$X_CFLAGS -I/usr/include/X11R4"
6197 X_LIBS="$X_LIBS -L/usr/lib/X11R4"
6202 cat >>confdefs.h <<\_ACEOF
6209 if test "$GCC" = yes; then
6210 CONF_CFLAGS="-fwritable-strings"
6214 *-*-aix3* | *-*-bosx* )
6215 cat >>confdefs.h <<\_ACEOF
6216 #define PTY_ITERATION for (c = 0; !c; c++)
6219 cat >>confdefs.h <<\_ACEOF
6220 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
6223 cat >>confdefs.h <<\_ACEOF
6224 #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));
6230 cat >>confdefs.h <<\_ACEOF
6231 #define FIRST_PTY_LETTER 'A'
6234 cat >>confdefs.h <<\_ACEOF
6235 #define LAST_PTY_LETTER 'P'
6241 cat >>confdefs.h <<\_ACEOF
6248 cat >>confdefs.h <<\_ACEOF
6249 #define FIRST_PTY_LETTER 'z'
6252 cat >>confdefs.h <<\_ACEOF
6253 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%x", i);
6256 cat >>confdefs.h <<\_ACEOF
6257 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty%x", i);
6260 cat >>confdefs.h <<\_ACEOF
6266 *-*-iris* | *-*-irix3* )
6267 cat >>confdefs.h <<\_ACEOF
6268 #define PTY_ITERATION for (c = 0; !c; c++)
6271 cat >>confdefs.h <<\_ACEOF
6272 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
6275 cat >>confdefs.h <<\_ACEOF
6276 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyq%d", minor(stb.st_rdev));
6284 *-*-sunos4* | *-*-solaris1* )
6287 if test "$GCC" = yes; then
6288 PRE_XMULIB="-static"
6289 POST_XMULIB="-dynamic"
6291 PRE_XMULIB="-Bstatic"
6292 POST_XMULIB="-Bdynamic"
6296 *-*-sunos5* | *-*-solaris2* )
6299 X_LIBS="$X_LIBS -lelf"
6303 cat >>confdefs.h <<\_ACEOF
6304 #define PTY_ITERATION for (i = 0; ; i++)
6307 cat >>confdefs.h <<\_ACEOF
6308 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptyp%d", i);
6311 cat >>confdefs.h <<\_ACEOF
6312 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%d", i);
6317 *-*-dynix* | *-*-ptx* )
6323 *-*-usg5-4* | *-*-sysvr4* )
6326 *-*-usg* | *-*-sysv* | *-*-aix* )
6330 if test "$GCC" = yes; then
6331 CONF_CFLAGS="-fwritable-strings"
6336 # Check whether --enable-xpm or --disable-xpm was given.
6337 if test "${enable_xpm+set}" = set; then
6338 enableval="$enable_xpm"
6339 enable_xpm="$enableval"
6344 if test "$enable_xpm" = "yes"; then
6345 save_cflags="$CFLAGS"
6346 CFLAGS="$CFLAGS $X_CFLAGS"
6347 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6349 for ac_header in X11/xpm.h
6351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353 echo "$as_me:$LINENO: checking for $ac_header" >&5
6354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6361 # Is the header compilable?
6362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6364 cat >conftest.$ac_ext <<_ACEOF
6365 #line $LINENO "configure"
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 $ac_includes_default
6372 #include <$ac_header>
6374 rm -f conftest.$ac_objext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6376 (eval $ac_compile) 2>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -s conftest.$ac_objext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_header_compiler=yes
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6391 ac_header_compiler=no
6393 rm -f conftest.$ac_objext conftest.$ac_ext
6394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6395 echo "${ECHO_T}$ac_header_compiler" >&6
6397 # Is the header present?
6398 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6400 cat >conftest.$ac_ext <<_ACEOF
6401 #line $LINENO "configure"
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 #include <$ac_header>
6409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6412 grep -v '^ *+' conftest.er1 >conftest.err
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } >/dev/null; then
6417 if test -s conftest.err; then
6418 ac_cpp_err=$ac_c_preproc_warn_flag
6425 if test -z "$ac_cpp_err"; then
6426 ac_header_preproc=yes
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6431 ac_header_preproc=no
6433 rm -f conftest.err conftest.$ac_ext
6434 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6435 echo "${ECHO_T}$ac_header_preproc" >&6
6437 # So? What about this header?
6438 case $ac_header_compiler:$ac_header_preproc in
6440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6446 ## ------------------------------------ ##
6447 ## Report this to bug-autoconf@gnu.org. ##
6448 ## ------------------------------------ ##
6451 sed "s/^/$as_me: WARNING: /" >&2
6454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6462 ## ------------------------------------ ##
6463 ## Report this to bug-autoconf@gnu.org. ##
6464 ## ------------------------------------ ##
6467 sed "s/^/$as_me: WARNING: /" >&2
6470 echo "$as_me:$LINENO: checking for $ac_header" >&5
6471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 eval "$as_ac_Header=$ac_header_preproc"
6477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6482 cat >>confdefs.h <<_ACEOF
6483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6490 CFLAGS="$save_cflags"
6491 if test "$ac_cv_header_X11_xpm_h" = "yes"; then
6492 save_ldflags="$LDFLAGS"
6493 LDFLAGS="$LDFLAGS $X_LIBS"
6494 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
6495 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
6496 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 ac_check_lib_save_LIBS=$LIBS
6500 LIBS="-lXpm $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
6501 cat >conftest.$ac_ext <<_ACEOF
6502 #line $LINENO "configure"
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6509 /* Override any gcc2 internal prototype to avoid an error. */
6513 /* We use char because int might match the return type of a gcc2
6514 builtin and then its argument prototype would still apply. */
6515 char XpmReadFileToPixmap ();
6519 XpmReadFileToPixmap ();
6524 rm -f conftest.$ac_objext conftest$ac_exeext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6526 (eval $ac_link) 2>&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -s conftest$ac_exeext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6541 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
6543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6544 LIBS=$ac_check_lib_save_LIBS
6546 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
6547 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
6548 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
6549 X_PRE_LIBS="-lXpm $X_PRE_LIBS"; cat >>confdefs.h <<\_ACEOF
6550 #define HAVE_LIBXPM 1
6555 LDFLAGS="$save_ldflags"
6564 echo "$as_me:$LINENO: checking whether ptys or pipes should be used" >&5
6565 echo $ECHO_N "checking whether ptys or pipes should be used... $ECHO_C" >&6
6566 # Check whether --enable-ptys or --disable-ptys was given.
6567 if test "${enable_ptys+set}" = set; then
6568 enableval="$enable_ptys"
6569 if test "$enableval" = yes; then
6571 echo "$as_me:$LINENO: result: ptys (user override)" >&5
6572 echo "${ECHO_T}ptys (user override)" >&6
6574 if test "$enableval" = no; then
6576 echo "$as_me:$LINENO: result: pipes (user override)" >&5
6577 echo "${ECHO_T}pipes (user override)" >&6
6580 if test "$USE_PTYS" = 1; then
6581 echo "$as_me:$LINENO: result: ptys" >&5
6582 echo "${ECHO_T}ptys" >&6
6584 echo "$as_me:$LINENO: result: pipes" >&5
6585 echo "${ECHO_T}pipes" >&6
6588 cat >>confdefs.h <<_ACEOF
6589 #define USE_PTYS $USE_PTYS
6593 # Check whether --enable-zippy or --disable-zippy was given.
6594 if test "${enable_zippy+set}" = set; then
6595 enableval="$enable_zippy"
6596 enable_zippy="$enableval"
6600 if test "$enable_zippy" = yes; then
6601 cat >>confdefs.h <<\_ACEOF
6611 # Check whether --enable-sigint or --disable-sigint was given.
6612 if test "${enable_sigint+set}" = set; then
6613 enableval="$enable_sigint"
6614 if test "$enableval" = yes; then
6615 cat >>confdefs.h <<\_ACEOF
6621 cat >>confdefs.h <<\_ACEOF
6627 cat >>confdefs.h <<_ACEOF
6628 #define PRODUCT "$PRODUCT"
6631 cat >>confdefs.h <<_ACEOF
6632 #define VERSION "$VERSION"
6635 cat >>confdefs.h <<_ACEOF
6636 #define PATCHLEVEL "$PATCHLEVEL"
6643 ac_config_files="$ac_config_files Makefile cmail xboard.texinfo"
6644 ac_config_commands="$ac_config_commands default"
6645 cat >confcache <<\_ACEOF
6646 # This file is a shell script that caches the results of configure
6647 # tests run on this system so they can be shared between configure
6648 # scripts and configure runs, see configure's option --config-cache.
6649 # It is not useful on other systems. If it contains results you don't
6650 # want to keep, you may remove or edit it.
6652 # config.status only pays attention to the cache file if you give it
6653 # the --recheck option to rerun configure.
6655 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6656 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6661 # The following way of writing the cache mishandles newlines in values,
6662 # but we know of no workaround that is simple, portable, and efficient.
6663 # So, don't put newlines in cache variables' values.
6664 # Ultrix sh set writes to stderr and can't be redirected directly,
6665 # and sets the high bit in the cache file unless we assign to the vars.
6668 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6670 # `set' does not quote correctly, so add quotes (double-quote
6671 # substitution turns \\\\ into \\, and sed turns \\ into \).
6674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6677 # `set' quotes correctly as required by POSIX, so do not add quotes.
6679 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6686 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6688 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6690 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6691 if test -w $cache_file; then
6692 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6693 cat confcache >$cache_file
6695 echo "not updating unwritable cache $cache_file"
6700 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6701 # Let make expand exec_prefix.
6702 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6704 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6705 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6706 # trailing colons and then remove the whole line if VPATH becomes empty
6707 # (actually we leave an empty line to preserve line numbers).
6708 if test "x$srcdir" = x.; then
6709 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6710 s/:*\$(srcdir):*/:/;
6711 s/:*\${srcdir}:*/:/;
6713 s/^\([^=]*=[ ]*\):*/\1/;
6719 DEFS=-DHAVE_CONFIG_H
6723 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6724 # 1. Remove the extension, and $U if already installed.
6725 ac_i=`echo "$ac_i" |
6726 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6728 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6729 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6733 LTLIBOBJS=$ac_ltlibobjs
6737 : ${CONFIG_STATUS=./config.status}
6738 ac_clean_files_save=$ac_clean_files
6739 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6740 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6741 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6742 cat >$CONFIG_STATUS <<_ACEOF
6744 # Generated by $as_me.
6745 # Run this file to recreate the current configuration.
6746 # Compiler output produced by configure, useful for debugging
6747 # configure, is in config.log if it exists.
6752 SHELL=\${CONFIG_SHELL-$SHELL}
6755 cat >>$CONFIG_STATUS <<\_ACEOF
6756 ## --------------------- ##
6757 ## M4sh Initialization. ##
6758 ## --------------------- ##
6760 # Be Bourne compatible
6761 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6764 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6765 # is contrary to our usage. Disable this feature.
6766 alias -g '${1+"$@"}'='"$@"'
6767 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6771 # Support unset when possible.
6772 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6779 # Work around bugs in pre-3.0 UWIN ksh.
6780 $as_unset ENV MAIL MAILPATH
6787 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6788 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6789 LC_TELEPHONE LC_TIME
6791 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6792 eval $as_var=C; export $as_var
6798 # Required to use basename.
6799 if expr a : '\(a\)' >/dev/null 2>&1; then
6805 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6806 as_basename=basename
6812 # Name of the executable.
6813 as_me=`$as_basename "$0" ||
6814 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6815 X"$0" : 'X\(//\)$' \| \
6816 X"$0" : 'X\(/\)$' \| \
6817 . : '\(.\)' 2>/dev/null ||
6819 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6820 /^X\/\(\/\/\)$/{ s//\1/; q; }
6821 /^X\/\(\/\).*/{ s//\1/; q; }
6825 # PATH needs CR, and LINENO needs CR and PATH.
6826 # Avoid depending upon Character Ranges.
6827 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6828 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6829 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6830 as_cr_digits='0123456789'
6831 as_cr_alnum=$as_cr_Letters$as_cr_digits
6833 # The user is always right.
6834 if test "${PATH_SEPARATOR+set}" != set; then
6835 echo "#! /bin/sh" >conf$$.sh
6836 echo "exit 0" >>conf$$.sh
6838 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6849 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6850 test "x$as_lineno_1" != "x$as_lineno_2" &&
6851 test "x$as_lineno_3" = "x$as_lineno_2" || {
6852 # Find who we are. Look in the path if we contain no path at all
6855 *[\\/]* ) as_myself=$0 ;;
6856 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 test -z "$as_dir" && as_dir=.
6861 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6866 # We did not find ourselves, most probably we were run as `sh COMMAND'
6867 # in which case we are not to be found in the path.
6868 if test "x$as_myself" = x; then
6871 if test ! -f "$as_myself"; then
6872 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6873 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6874 { (exit 1); exit 1; }; }
6876 case $CONFIG_SHELL in
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6882 test -z "$as_dir" && as_dir=.
6883 for as_base in sh bash ksh sh5; do
6886 if ("$as_dir/$as_base" -c '
6889 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6890 test "x$as_lineno_1" != "x$as_lineno_2" &&
6891 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6892 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6893 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6894 CONFIG_SHELL=$as_dir/$as_base
6896 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6904 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6905 # uniformly replaced by the line number. The first 'sed' inserts a
6906 # line-number line before each line; the second 'sed' does the real
6907 # work. The second script uses 'N' to pair each line-number line
6908 # with the numbered line, and appends trailing '-' during
6909 # substitution so that $LINENO is not a special case at line end.
6910 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6911 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6912 sed '=' <$as_myself |
6917 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6920 s,^['$as_cr_digits']*\n,,
6922 chmod +x $as_me.lineno ||
6923 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6924 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6925 { (exit 1); exit 1; }; }
6927 # Don't try to exec as it changes $[0], causing all sort of problems
6928 # (the dirname of $[0] is not the place where we might find the
6929 # original and so on. Autoconf is especially sensible to this).
6931 # Exit status is that of the last command.
6936 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6937 *c*,-n*) ECHO_N= ECHO_C='
6939 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6940 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6943 if expr a : '\(a\)' >/dev/null 2>&1; then
6949 rm -f conf$$ conf$$.exe conf$$.file
6951 if ln -s conf$$.file conf$$ 2>/dev/null; then
6952 # We could just check for DJGPP; but this test a) works b) is more generic
6953 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6954 if test -f conf$$.exe; then
6955 # Don't use ln at all; we don't have any links
6960 elif ln conf$$.file conf$$ 2>/dev/null; then
6965 rm -f conf$$ conf$$.exe conf$$.file
6967 if mkdir -p . 2>/dev/null; then
6973 as_executable_p="test -f"
6975 # Sed expression to map a string onto a valid CPP name.
6976 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6978 # Sed expression to map a string onto a valid variable name.
6979 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6983 # We need space, tab and new line, in precisely that order.
6993 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6994 # report actual input values of CONFIG_FILES etc. instead of their
6995 # values after options handling. Logging --version etc. is OK.
6999 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7000 ## Running $as_me. ##
7005 This file was extended by $as_me, which was
7006 generated by GNU Autoconf 2.57. Invocation command line was
7008 CONFIG_FILES = $CONFIG_FILES
7009 CONFIG_HEADERS = $CONFIG_HEADERS
7010 CONFIG_LINKS = $CONFIG_LINKS
7011 CONFIG_COMMANDS = $CONFIG_COMMANDS
7015 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7019 # Files that config.status was made for.
7020 if test -n "$ac_config_files"; then
7021 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7024 if test -n "$ac_config_headers"; then
7025 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7028 if test -n "$ac_config_links"; then
7029 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7032 if test -n "$ac_config_commands"; then
7033 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7036 cat >>$CONFIG_STATUS <<\_ACEOF
7039 \`$as_me' instantiates files from templates according to the
7040 current configuration.
7042 Usage: $0 [OPTIONS] [FILE]...
7044 -h, --help print this help, then exit
7045 -V, --version print version number, then exit
7046 -q, --quiet do not print progress messages
7047 -d, --debug don't remove temporary files
7048 --recheck update $as_me by reconfiguring in the same conditions
7049 --file=FILE[:TEMPLATE]
7050 instantiate the configuration file FILE
7051 --header=FILE[:TEMPLATE]
7052 instantiate the configuration header FILE
7054 Configuration files:
7057 Configuration headers:
7060 Configuration commands:
7063 Report bugs to <bug-autoconf@gnu.org>."
7066 cat >>$CONFIG_STATUS <<_ACEOF
7069 configured by $0, generated by GNU Autoconf 2.57,
7070 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7072 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7073 Free Software Foundation, Inc.
7074 This config.status script is free software; the Free Software Foundation
7075 gives unlimited permission to copy, distribute and modify it."
7080 cat >>$CONFIG_STATUS <<\_ACEOF
7081 # If no file are specified by the user, then we need to provide default
7082 # value. By we need to know if files were specified by the user.
7088 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7089 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7097 *) # This is not an option, so the user has probably given explicit
7100 ac_need_defaults=false;;
7104 # Handling of the options.
7106 cat >>$CONFIG_STATUS <<\_ACEOF
7107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7109 --version | --vers* | -V )
7110 echo "$ac_cs_version"; exit 0 ;;
7112 # Conflict between --help and --header
7113 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7114 Try \`$0 --help' for more information." >&5
7115 echo "$as_me: error: ambiguous option: $1
7116 Try \`$0 --help' for more information." >&2;}
7117 { (exit 1); exit 1; }; };;
7118 --help | --hel | -h )
7119 echo "$ac_cs_usage"; exit 0 ;;
7120 --debug | --d* | -d )
7122 --file | --fil | --fi | --f )
7124 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7125 ac_need_defaults=false;;
7126 --header | --heade | --head | --hea )
7128 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7129 ac_need_defaults=false;;
7130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7131 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7135 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7136 Try \`$0 --help' for more information." >&5
7137 echo "$as_me: error: unrecognized option: $1
7138 Try \`$0 --help' for more information." >&2;}
7139 { (exit 1); exit 1; }; } ;;
7141 *) ac_config_targets="$ac_config_targets $1" ;;
7147 ac_configure_extra_args=
7149 if $ac_cs_silent; then
7151 ac_configure_extra_args="$ac_configure_extra_args --silent"
7155 cat >>$CONFIG_STATUS <<_ACEOF
7156 if \$ac_cs_recheck; then
7157 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7158 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7167 cat >>$CONFIG_STATUS <<\_ACEOF
7168 for ac_config_target in $ac_config_targets
7170 case "$ac_config_target" in
7171 # Handling of arguments.
7172 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7173 "cmail" ) CONFIG_FILES="$CONFIG_FILES cmail" ;;
7174 "xboard.texinfo" ) CONFIG_FILES="$CONFIG_FILES xboard.texinfo" ;;
7175 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7176 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7177 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7178 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7179 { (exit 1); exit 1; }; };;
7183 # If the user did not use the arguments to specify the items to instantiate,
7184 # then the envvar interface is used. Set only those that are not.
7185 # We use the long form for the default assignment because of an extremely
7186 # bizarre bug on SunOS 4.1.3.
7187 if $ac_need_defaults; then
7188 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7189 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7190 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7193 # Have a temporary directory for convenience. Make it in the build tree
7194 # simply because there is no reason to put it here, and in addition,
7195 # creating and moving files from /tmp can sometimes cause problems.
7196 # Create a temporary directory, and hook for its removal unless debugging.
7199 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7200 trap '{ (exit 1); exit 1; }' 1 2 13 15
7203 # Create a (secure) tmp directory for tmp files.
7206 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7207 test -n "$tmp" && test -d "$tmp"
7210 tmp=./confstat$$-$RANDOM
7211 (umask 077 && mkdir $tmp)
7214 echo "$me: cannot create a temporary directory in ." >&2
7215 { (exit 1); exit 1; }
7220 cat >>$CONFIG_STATUS <<_ACEOF
7223 # CONFIG_FILES section.
7226 # No need to generate the scripts if there are no CONFIG_FILES.
7227 # This happens for instance when ./config.status config.h
7228 if test -n "\$CONFIG_FILES"; then
7229 # Protect against being on the right side of a sed subst in config.status.
7230 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7231 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7232 s,@SHELL@,$SHELL,;t t
7233 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7234 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7235 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7236 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7237 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7238 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7239 s,@exec_prefix@,$exec_prefix,;t t
7240 s,@prefix@,$prefix,;t t
7241 s,@program_transform_name@,$program_transform_name,;t t
7242 s,@bindir@,$bindir,;t t
7243 s,@sbindir@,$sbindir,;t t
7244 s,@libexecdir@,$libexecdir,;t t
7245 s,@datadir@,$datadir,;t t
7246 s,@sysconfdir@,$sysconfdir,;t t
7247 s,@sharedstatedir@,$sharedstatedir,;t t
7248 s,@localstatedir@,$localstatedir,;t t
7249 s,@libdir@,$libdir,;t t
7250 s,@includedir@,$includedir,;t t
7251 s,@oldincludedir@,$oldincludedir,;t t
7252 s,@infodir@,$infodir,;t t
7253 s,@mandir@,$mandir,;t t
7254 s,@build_alias@,$build_alias,;t t
7255 s,@host_alias@,$host_alias,;t t
7256 s,@target_alias@,$target_alias,;t t
7258 s,@ECHO_C@,$ECHO_C,;t t
7259 s,@ECHO_N@,$ECHO_N,;t t
7260 s,@ECHO_T@,$ECHO_T,;t t
7263 s,@CFLAGS@,$CFLAGS,;t t
7264 s,@LDFLAGS@,$LDFLAGS,;t t
7265 s,@CPPFLAGS@,$CPPFLAGS,;t t
7266 s,@ac_ct_CC@,$ac_ct_CC,;t t
7267 s,@EXEEXT@,$EXEEXT,;t t
7268 s,@OBJEXT@,$OBJEXT,;t t
7270 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7271 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7272 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7274 s,@LEXLIB@,$LEXLIB,;t t
7275 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7277 s,@NROFF@,$NROFF,;t t
7278 s,@NROFFFLAGS@,$NROFFFLAGS,;t t
7279 s,@AWKPATH@,$AWKPATH,;t t
7280 s,@PERLPATH@,$PERLPATH,;t t
7281 s,@XAW_LIBS@,$XAW_LIBS,;t t
7282 s,@EGREP@,$EGREP,;t t
7283 s,@X_CFLAGS@,$X_CFLAGS,;t t
7284 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
7285 s,@X_LIBS@,$X_LIBS,;t t
7286 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
7287 s,@build@,$build,;t t
7288 s,@build_cpu@,$build_cpu,;t t
7289 s,@build_vendor@,$build_vendor,;t t
7290 s,@build_os@,$build_os,;t t
7292 s,@host_cpu@,$host_cpu,;t t
7293 s,@host_vendor@,$host_vendor,;t t
7294 s,@host_os@,$host_os,;t t
7295 s,@PRE_XMULIB@,$PRE_XMULIB,;t t
7296 s,@POST_XMULIB@,$POST_XMULIB,;t t
7297 s,@CONF_CFLAGS@,$CONF_CFLAGS,;t t
7298 s,@CONF_LDFLAGS@,$CONF_LDFLAGS,;t t
7299 s,@ZIPPY_O@,$ZIPPY_O,;t t
7300 s,@ZIPPY_H@,$ZIPPY_H,;t t
7301 s,@PRODUCT@,$PRODUCT,;t t
7302 s,@VERSION@,$VERSION,;t t
7303 s,@PATCHLEVEL@,$PATCHLEVEL,;t t
7304 s,@LIBOBJS@,$LIBOBJS,;t t
7305 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7310 cat >>$CONFIG_STATUS <<\_ACEOF
7311 # Split the substitutions into bite-sized pieces for seds with
7312 # small command number limits, like on Digital OSF/1 and HP-UX.
7314 ac_sed_frag=1 # Number of current file.
7315 ac_beg=1 # First line for current file.
7316 ac_end=$ac_max_sed_lines # Line after last line for current file.
7319 while $ac_more_lines; do
7320 if test $ac_beg -gt 1; then
7321 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7323 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7325 if test ! -s $tmp/subs.frag; then
7328 # The purpose of the label and of the branching condition is to
7329 # speed up the sed processing (if there are no `@' at all, there
7330 # is no need to browse any of the substitutions).
7331 # These are the two extra sed commands mentioned above.
7333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7334 if test -z "$ac_sed_cmds"; then
7335 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7337 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7339 ac_sed_frag=`expr $ac_sed_frag + 1`
7341 ac_end=`expr $ac_end + $ac_max_sed_lines`
7344 if test -z "$ac_sed_cmds"; then
7347 fi # test -n "$CONFIG_FILES"
7350 cat >>$CONFIG_STATUS <<\_ACEOF
7351 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7352 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7354 - | *:- | *:-:* ) # input from stdin
7356 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7358 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7360 * ) ac_file_in=$ac_file.in ;;
7363 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7364 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7365 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7366 X"$ac_file" : 'X\(//\)[^/]' \| \
7367 X"$ac_file" : 'X\(//\)$' \| \
7368 X"$ac_file" : 'X\(/\)' \| \
7369 . : '\(.\)' 2>/dev/null ||
7371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7373 /^X\(\/\/\)$/{ s//\1/; q; }
7374 /^X\(\/\).*/{ s//\1/; q; }
7376 { if $as_mkdir_p; then
7381 while test ! -d "$as_dir"; do
7382 as_dirs="$as_dir $as_dirs"
7383 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7385 X"$as_dir" : 'X\(//\)[^/]' \| \
7386 X"$as_dir" : 'X\(//\)$' \| \
7387 X"$as_dir" : 'X\(/\)' \| \
7388 . : '\(.\)' 2>/dev/null ||
7390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7391 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7392 /^X\(\/\/\)$/{ s//\1/; q; }
7393 /^X\(\/\).*/{ s//\1/; q; }
7396 test ! -n "$as_dirs" || mkdir $as_dirs
7397 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7398 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7399 { (exit 1); exit 1; }; }; }
7403 if test "$ac_dir" != .; then
7404 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7405 # A "../" for each directory in $ac_dir_suffix.
7406 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7408 ac_dir_suffix= ac_top_builddir=
7412 .) # No --srcdir option. We are building in place.
7414 if test -z "$ac_top_builddir"; then
7417 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7419 [\\/]* | ?:[\\/]* ) # Absolute path.
7420 ac_srcdir=$srcdir$ac_dir_suffix;
7421 ac_top_srcdir=$srcdir ;;
7423 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7424 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7426 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7428 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7429 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7430 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7431 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7435 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7436 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7439 if test x"$ac_file" != x-; then
7440 { echo "$as_me:$LINENO: creating $ac_file" >&5
7441 echo "$as_me: creating $ac_file" >&6;}
7444 # Let's still pretend it is `configure' which instantiates (i.e., don't
7445 # use $as_me), people would be surprised to read:
7446 # /* config.h. Generated by config.status. */
7447 if test x"$ac_file" = x-; then
7450 configure_input="$ac_file. "
7452 configure_input=$configure_input"Generated from `echo $ac_file_in |
7453 sed 's,.*/,,'` by configure."
7455 # First look for the input files in the build tree, otherwise in the
7457 ac_file_inputs=`IFS=:
7458 for f in $ac_file_in; do
7460 -) echo $tmp/stdin ;;
7462 # Absolute (can't be DOS-style, as IFS=:)
7463 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7464 echo "$as_me: error: cannot find input file: $f" >&2;}
7465 { (exit 1); exit 1; }; }
7468 if test -f "$f"; then
7471 elif test -f "$srcdir/$f"; then
7476 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7477 echo "$as_me: error: cannot find input file: $f" >&2;}
7478 { (exit 1); exit 1; }; }
7481 done` || { (exit 1); exit 1; }
7483 cat >>$CONFIG_STATUS <<_ACEOF
7487 cat >>$CONFIG_STATUS <<\_ACEOF
7489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7490 s,@configure_input@,$configure_input,;t t
7491 s,@srcdir@,$ac_srcdir,;t t
7492 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7493 s,@top_srcdir@,$ac_top_srcdir,;t t
7494 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7495 s,@builddir@,$ac_builddir,;t t
7496 s,@abs_builddir@,$ac_abs_builddir,;t t
7497 s,@top_builddir@,$ac_top_builddir,;t t
7498 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7499 s,@INSTALL@,$ac_INSTALL,;t t
7500 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7502 if test x"$ac_file" != x-; then
7503 mv $tmp/out $ac_file
7511 cat >>$CONFIG_STATUS <<\_ACEOF
7514 # CONFIG_HEADER section.
7517 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7518 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7520 # ac_d sets the value in "#define NAME VALUE" lines.
7521 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7522 ac_dB='[ ].*$,\1#\2'
7525 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7526 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7527 ac_uB='$,\1#\2define\3'
7531 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7532 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7534 - | *:- | *:-:* ) # input from stdin
7536 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7537 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7538 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7539 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7540 * ) ac_file_in=$ac_file.in ;;
7543 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7544 echo "$as_me: creating $ac_file" >&6;}
7546 # First look for the input files in the build tree, otherwise in the
7548 ac_file_inputs=`IFS=:
7549 for f in $ac_file_in; do
7551 -) echo $tmp/stdin ;;
7553 # Absolute (can't be DOS-style, as IFS=:)
7554 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7555 echo "$as_me: error: cannot find input file: $f" >&2;}
7556 { (exit 1); exit 1; }; }
7559 if test -f "$f"; then
7562 elif test -f "$srcdir/$f"; then
7567 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7568 echo "$as_me: error: cannot find input file: $f" >&2;}
7569 { (exit 1); exit 1; }; }
7572 done` || { (exit 1); exit 1; }
7573 # Remove the trailing spaces.
7574 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7578 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7579 # `conftest.undefs', that substitutes the proper values into
7580 # config.h.in to produce config.h. The first handles `#define'
7581 # templates, and the second `#undef' templates.
7582 # And first: Protect against being on the right side of a sed subst in
7583 # config.status. Protect against being in an unquoted here document
7585 rm -f conftest.defines conftest.undefs
7586 # Using a here document instead of a string reduces the quoting nightmare.
7587 # Putting comments in sed scripts is not portable.
7589 # `end' is used to avoid that the second main sed command (meant for
7590 # 0-ary CPP macros) applies to n-ary macro definitions.
7591 # See the Autoconf documentation for `clear'.
7592 cat >confdef2sed.sed <<\_ACEOF
7597 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7599 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7602 # If some macros were called several times there might be several times
7603 # the same #defines, which is useless. Nevertheless, we may not want to
7604 # sort them, since we want the *last* AC-DEFINE to be honored.
7605 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7606 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7607 rm -f confdef2sed.sed
7609 # This sed command replaces #undef with comments. This is necessary, for
7610 # example, in the case of _POSIX_SOURCE, which is predefined and required
7611 # on some systems where configure will not decide to define it.
7612 cat >>conftest.undefs <<\_ACEOF
7613 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7616 # Break up conftest.defines because some shells have a limit on the size
7617 # of here documents, and old seds have small limits too (100 cmds).
7618 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7619 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7620 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7621 echo ' :' >>$CONFIG_STATUS
7623 while grep . conftest.defines >/dev/null
7625 # Write a limited-size here document to $tmp/defines.sed.
7626 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7627 # Speed up: don't consider the non `#define' lines.
7628 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7629 # Work around the forget-to-reset-the-flag bug.
7630 echo 't clr' >>$CONFIG_STATUS
7631 echo ': clr' >>$CONFIG_STATUS
7632 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7634 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7638 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7639 rm -f conftest.defines
7640 mv conftest.tail conftest.defines
7642 rm -f conftest.defines
7643 echo ' fi # grep' >>$CONFIG_STATUS
7644 echo >>$CONFIG_STATUS
7646 # Break up conftest.undefs because some shells have a limit on the size
7647 # of here documents, and old seds have small limits too (100 cmds).
7648 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7650 while grep . conftest.undefs >/dev/null
7652 # Write a limited-size here document to $tmp/undefs.sed.
7653 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7654 # Speed up: don't consider the non `#undef'
7655 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7656 # Work around the forget-to-reset-the-flag bug.
7657 echo 't clr' >>$CONFIG_STATUS
7658 echo ': clr' >>$CONFIG_STATUS
7659 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7661 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7665 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7666 rm -f conftest.undefs
7667 mv conftest.tail conftest.undefs
7669 rm -f conftest.undefs
7671 cat >>$CONFIG_STATUS <<\_ACEOF
7672 # Let's still pretend it is `configure' which instantiates (i.e., don't
7673 # use $as_me), people would be surprised to read:
7674 # /* config.h. Generated by config.status. */
7675 if test x"$ac_file" = x-; then
7676 echo "/* Generated by configure. */" >$tmp/config.h
7678 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7680 cat $tmp/in >>$tmp/config.h
7682 if test x"$ac_file" != x-; then
7683 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7684 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7685 echo "$as_me: $ac_file is unchanged" >&6;}
7687 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7688 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7689 X"$ac_file" : 'X\(//\)[^/]' \| \
7690 X"$ac_file" : 'X\(//\)$' \| \
7691 X"$ac_file" : 'X\(/\)' \| \
7692 . : '\(.\)' 2>/dev/null ||
7694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7696 /^X\(\/\/\)$/{ s//\1/; q; }
7697 /^X\(\/\).*/{ s//\1/; q; }
7699 { if $as_mkdir_p; then
7704 while test ! -d "$as_dir"; do
7705 as_dirs="$as_dir $as_dirs"
7706 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7708 X"$as_dir" : 'X\(//\)[^/]' \| \
7709 X"$as_dir" : 'X\(//\)$' \| \
7710 X"$as_dir" : 'X\(/\)' \| \
7711 . : '\(.\)' 2>/dev/null ||
7713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7715 /^X\(\/\/\)$/{ s//\1/; q; }
7716 /^X\(\/\).*/{ s//\1/; q; }
7719 test ! -n "$as_dirs" || mkdir $as_dirs
7720 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7721 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7722 { (exit 1); exit 1; }; }; }
7725 mv $tmp/config.h $ac_file
7733 cat >>$CONFIG_STATUS <<\_ACEOF
7736 # CONFIG_COMMANDS section.
7738 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7739 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7740 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7741 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7742 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7743 X"$ac_dest" : 'X\(//\)[^/]' \| \
7744 X"$ac_dest" : 'X\(//\)$' \| \
7745 X"$ac_dest" : 'X\(/\)' \| \
7746 . : '\(.\)' 2>/dev/null ||
7748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7750 /^X\(\/\/\)$/{ s//\1/; q; }
7751 /^X\(\/\).*/{ s//\1/; q; }
7755 if test "$ac_dir" != .; then
7756 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7757 # A "../" for each directory in $ac_dir_suffix.
7758 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7760 ac_dir_suffix= ac_top_builddir=
7764 .) # No --srcdir option. We are building in place.
7766 if test -z "$ac_top_builddir"; then
7769 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7771 [\\/]* | ?:[\\/]* ) # Absolute path.
7772 ac_srcdir=$srcdir$ac_dir_suffix;
7773 ac_top_srcdir=$srcdir ;;
7775 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7776 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7778 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7780 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7781 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7782 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7783 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7786 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7787 echo "$as_me: executing $ac_dest commands" >&6;}
7789 default ) test -z "$CONFIG_HEADERS" || date > stamp-h
7796 cat >>$CONFIG_STATUS <<\_ACEOF
7798 { (exit 0); exit 0; }
7800 chmod +x $CONFIG_STATUS
7801 ac_clean_files=$ac_clean_files_save
7804 # configure is writing to config.log, and then calls config.status.
7805 # config.status does its own redirection, appending to config.log.
7806 # Unfortunately, on DOS this fails, as config.log is still kept open
7807 # by configure, so config.status won't be able to write to it; its
7808 # output is simply discarded. So we exec the FD to /dev/null,
7809 # effectively closing config.log, so it can be properly (re)opened and
7810 # appended to by config.status. When coming back to configure, we
7811 # need to make the FD available again.
7812 if test "$no_create" != yes; then
7814 ac_config_status_args=
7815 test "$silent" = yes &&
7816 ac_config_status_args="$ac_config_status_args --quiet"
7818 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7820 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7821 # would make configure fail if this is the last instruction.
7822 $ac_cs_success || { (exit 1); exit 1; }