2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="rlfe.c"
275 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 VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK WRITEPATH XTERMPATH LIBOBJS LTLIBOBJS'
278 # Initialize some variables set by options.
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
290 program_transform_name=s,x,x,
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file=$ac_optarg ;;
350 cache_file=config.cache ;;
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 datadir=$ac_optarg ;;
358 -disable-* | --disable-*)
359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
367 -enable-* | --enable-*)
368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
378 eval "enable_$ac_feature='$ac_optarg'" ;;
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
387 exec_prefix=$ac_optarg ;;
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
393 -help | --help | --hel | --he | -h)
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
410 includedir=$ac_optarg ;;
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
417 -libdir | --libdir | --libdi | --libd)
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir=$ac_optarg ;;
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436 localstatedir=$ac_optarg ;;
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
444 # Obsolete; use --without-fp.
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462 oldincludedir=$ac_optarg ;;
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474 program_prefix=$ac_optarg ;;
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481 program_suffix=$ac_optarg ;;
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
498 program_transform_name=$ac_optarg ;;
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 sbindir=$ac_optarg ;;
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 sharedstatedir=$ac_optarg ;;
521 -site | --site | --sit)
523 -site=* | --site=* | --sit=*)
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536 sysconfdir=$ac_optarg ;;
538 -target | --target | --targe | --targ | --tar | --ta | --t)
539 ac_prev=target_alias ;;
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target_alias=$ac_optarg ;;
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
546 -version | --version | --versio | --versi | --vers | -V)
550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560 eval "with_$ac_package='$ac_optarg'" ;;
562 -without-* | --without-*)
563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
572 # Obsolete; use --with-x.
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580 x_includes=$ac_optarg ;;
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587 x_libraries=$ac_optarg ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
615 if test -n "$ac_prev"; then
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
624 eval ac_val=$`echo $ac_var`
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
636 eval ac_val=$`echo $ac_var`
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665 test "$silent" = yes && exec 6>/dev/null
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
685 if test ! -r $srcdir/$ac_unique_file; then
689 ac_srcdir_defaulted=no
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_CPP_set=${CPP+set}
733 ac_env_CPP_value=$CPP
734 ac_cv_env_CPP_set=${CPP+set}
735 ac_cv_env_CPP_value=$CPP
738 # Report the --help message.
740 if test "$ac_init_help" = "long"; then
741 # Omit some internal or obsolete options to make the list less imposing.
742 # This message is too long to be a string in the A/UX 3.1 sh.
744 \`configure' configures this package to adapt to many kinds of systems.
746 Usage: $0 [OPTION]... [VAR=VALUE]...
748 To assign environment variables (e.g., CC, CFLAGS...), specify them as
749 VAR=VALUE. See below for descriptions of some of the useful variables.
751 Defaults for the options are specified in brackets.
754 -h, --help display this help and exit
755 --help=short display options specific to this package
756 --help=recursive display the short help of all the included packages
757 -V, --version display version information and exit
758 -q, --quiet, --silent do not print \`checking...' messages
759 --cache-file=FILE cache test results in FILE [disabled]
760 -C, --config-cache alias for \`--cache-file=config.cache'
761 -n, --no-create do not create output files
762 --srcdir=DIR find the sources in DIR [configure dir or \`..']
767 Installation directories:
768 --prefix=PREFIX install architecture-independent files in PREFIX
770 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
773 By default, \`make install' will install all the files in
774 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
775 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
776 for instance \`--prefix=\$HOME'.
778 For better control, use the options below.
780 Fine tuning of the installation directories:
781 --bindir=DIR user executables [EPREFIX/bin]
782 --sbindir=DIR system admin executables [EPREFIX/sbin]
783 --libexecdir=DIR program executables [EPREFIX/libexec]
784 --datadir=DIR read-only architecture-independent data [PREFIX/share]
785 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
786 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
787 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
788 --libdir=DIR object code libraries [EPREFIX/lib]
789 --includedir=DIR C header files [PREFIX/include]
790 --oldincludedir=DIR C header files for non-gcc [/usr/include]
791 --infodir=DIR info documentation [PREFIX/info]
792 --mandir=DIR man documentation [PREFIX/man]
799 if test -n "$ac_init_help"; then
804 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
805 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
806 --with-pty-mode=mode default mode for ptys
807 --with-pty-group=group default group for ptys
809 Some influential environment variables:
810 CC C compiler command
811 CFLAGS C compiler flags
812 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
813 nonstandard directory <lib dir>
814 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
815 headers in a nonstandard directory <include dir>
818 Use these variables to override the choices made by `configure' or to help
819 it to find libraries and programs with nonstandard names/locations.
824 if test "$ac_init_help" = "recursive"; then
825 # If there are subdirs, report their specific --help.
827 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
828 test -d $ac_dir || continue
831 if test "$ac_dir" != .; then
832 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
833 # A "../" for each directory in $ac_dir_suffix.
834 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
836 ac_dir_suffix= ac_top_builddir=
840 .) # No --srcdir option. We are building in place.
842 if test -z "$ac_top_builddir"; then
845 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
847 [\\/]* | ?:[\\/]* ) # Absolute path.
848 ac_srcdir=$srcdir$ac_dir_suffix;
849 ac_top_srcdir=$srcdir ;;
851 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
852 ac_top_srcdir=$ac_top_builddir$srcdir ;;
855 # Do not use `cd foo && pwd` to compute absolute paths, because
856 # the directories may not exist.
858 .) ac_abs_builddir="$ac_dir";;
861 .) ac_abs_builddir=`pwd`;;
862 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
863 *) ac_abs_builddir=`pwd`/"$ac_dir";;
866 case $ac_abs_builddir in
867 .) ac_abs_top_builddir=${ac_top_builddir}.;;
869 case ${ac_top_builddir}. in
870 .) ac_abs_top_builddir=$ac_abs_builddir;;
871 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
872 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
875 case $ac_abs_builddir in
876 .) ac_abs_srcdir=$ac_srcdir;;
879 .) ac_abs_srcdir=$ac_abs_builddir;;
880 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
881 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
884 case $ac_abs_builddir in
885 .) ac_abs_top_srcdir=$ac_top_srcdir;;
887 case $ac_top_srcdir in
888 .) ac_abs_top_srcdir=$ac_abs_builddir;;
889 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
890 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
895 # Check for guested configure; otherwise get Cygnus style configure.
896 if test -f $ac_srcdir/configure.gnu; then
898 $SHELL $ac_srcdir/configure.gnu --help=recursive
899 elif test -f $ac_srcdir/configure; then
901 $SHELL $ac_srcdir/configure --help=recursive
902 elif test -f $ac_srcdir/configure.ac ||
903 test -f $ac_srcdir/configure.in; then
907 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
913 test -n "$ac_init_help" && exit 0
914 if $ac_init_version; then
917 Copyright (C) 2003 Free Software Foundation, Inc.
918 This configure script is free software; the Free Software Foundation
919 gives unlimited permission to copy, distribute and modify it.
925 This file contains any messages produced by compilers while
926 running configure, to aid debugging if configure makes a mistake.
928 It was created by $as_me, which was
929 generated by GNU Autoconf 2.59. Invocation command line was
940 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
941 uname -m = `(uname -m) 2>/dev/null || echo unknown`
942 uname -r = `(uname -r) 2>/dev/null || echo unknown`
943 uname -s = `(uname -s) 2>/dev/null || echo unknown`
944 uname -v = `(uname -v) 2>/dev/null || echo unknown`
946 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
947 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
949 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
950 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
951 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
952 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
953 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
954 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
955 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
963 test -z "$as_dir" && as_dir=.
979 # Keep a trace of the command line.
980 # Strip out --no-create and --no-recursion so they do not pile up.
981 # Strip out --silent because we don't want to record it for future runs.
982 # Also quote any args containing shell meta-characters.
983 # Make two passes to allow for proper duplicate-argument suppression.
988 ac_must_keep_next=false
994 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
996 | -silent | --silent | --silen | --sile | --sil)
998 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
999 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1002 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1004 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1005 if test $ac_must_keep_next = true; then
1006 ac_must_keep_next=false # Got value, back to normal.
1009 *=* | --config-cache | -C | -disable-* | --disable-* \
1010 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1011 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1012 | -with-* | --with-* | -without-* | --without-* | --x)
1013 case "$ac_configure_args0 " in
1014 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1017 -* ) ac_must_keep_next=true ;;
1020 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1021 # Get rid of the leading space.
1027 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1028 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1030 # When interrupted or exit'd, cleanup temporary files, and complete
1031 # config.log. We remove comments because anyway the quotes in there
1032 # would cause problems or look ugly.
1033 # WARNING: Be sure not to use single quotes in there, as some shells,
1034 # such as our DU 5.0 friend, will then `close' the trap.
1035 trap 'exit_status=$?
1036 # Save into config.log some information that might help in debugging.
1041 ## ---------------- ##
1042 ## Cache variables. ##
1043 ## ---------------- ##
1046 # The following way of writing the cache mishandles newlines in values,
1049 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1052 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1057 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1064 ## ----------------- ##
1065 ## Output variables. ##
1066 ## ----------------- ##
1069 for ac_var in $ac_subst_vars
1071 eval ac_val=$`echo $ac_var`
1072 echo "$ac_var='"'"'$ac_val'"'"'"
1076 if test -n "$ac_subst_files"; then
1083 for ac_var in $ac_subst_files
1085 eval ac_val=$`echo $ac_var`
1086 echo "$ac_var='"'"'$ac_val'"'"'"
1091 if test -s confdefs.h; then
1098 sed "/^$/d" confdefs.h | sort
1101 test "$ac_signal" != 0 &&
1102 echo "$as_me: caught signal $ac_signal"
1103 echo "$as_me: exit $exit_status"
1105 rm -f core *.core &&
1106 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1109 for ac_signal in 1 2 13 15; do
1110 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1114 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1115 rm -rf conftest* confdefs.h
1116 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1119 # Predefined preprocessor variables.
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_NAME "$PACKAGE_NAME"
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1136 cat >>confdefs.h <<_ACEOF
1137 #define PACKAGE_STRING "$PACKAGE_STRING"
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1146 # Let the site file select an alternate cache file if it wants to.
1147 # Prefer explicitly selected file to automatically selected ones.
1148 if test -z "$CONFIG_SITE"; then
1149 if test "x$prefix" != xNONE; then
1150 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1152 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1155 for ac_site_file in $CONFIG_SITE; do
1156 if test -r "$ac_site_file"; then
1157 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1158 echo "$as_me: loading site script $ac_site_file" >&6;}
1159 sed 's/^/| /' "$ac_site_file" >&5
1164 if test -r "$cache_file"; then
1165 # Some versions of bash will fail to source /dev/null (special
1166 # files actually), so we avoid doing that.
1167 if test -f "$cache_file"; then
1168 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1169 echo "$as_me: loading cache $cache_file" >&6;}
1171 [\\/]* | ?:[\\/]* ) . $cache_file;;
1172 *) . ./$cache_file;;
1176 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1177 echo "$as_me: creating cache $cache_file" >&6;}
1181 # Check that the precious variables saved in the cache have kept the same
1183 ac_cache_corrupted=false
1184 for ac_var in `(set) 2>&1 |
1185 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1186 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1187 eval ac_new_set=\$ac_env_${ac_var}_set
1188 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1189 eval ac_new_val="\$ac_env_${ac_var}_value"
1190 case $ac_old_set,$ac_new_set in
1192 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1193 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1194 ac_cache_corrupted=: ;;
1196 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1197 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1198 ac_cache_corrupted=: ;;
1201 if test "x$ac_old_val" != "x$ac_new_val"; then
1202 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1203 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1204 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1205 echo "$as_me: former value: $ac_old_val" >&2;}
1206 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1207 echo "$as_me: current value: $ac_new_val" >&2;}
1208 ac_cache_corrupted=:
1211 # Pass precious variables to config.status.
1212 if test "$ac_new_set" = set; then
1214 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1215 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1216 *) ac_arg=$ac_var=$ac_new_val ;;
1218 case " $ac_configure_args " in
1219 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1220 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1224 if $ac_cache_corrupted; then
1225 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1226 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1227 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1228 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1229 { (exit 1); exit 1; }; }
1233 ac_cpp='$CPP $CPPFLAGS'
1234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256 ac_config_headers="$ac_config_headers config.h"
1262 old_CFLAGS="$CFLAGS"
1264 ac_cpp='$CPP $CPPFLAGS'
1265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1268 if test -n "$ac_tool_prefix"; then
1269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1271 echo "$as_me:$LINENO: checking for $ac_word" >&5
1272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1273 if test "${ac_cv_prog_CC+set}" = set; then
1274 echo $ECHO_N "(cached) $ECHO_C" >&6
1276 if test -n "$CC"; then
1277 ac_cv_prog_CC="$CC" # Let the user override the test.
1279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1283 test -z "$as_dir" && as_dir=.
1284 for ac_exec_ext in '' $ac_executable_extensions; do
1285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1296 if test -n "$CC"; then
1297 echo "$as_me:$LINENO: result: $CC" >&5
1298 echo "${ECHO_T}$CC" >&6
1300 echo "$as_me:$LINENO: result: no" >&5
1301 echo "${ECHO_T}no" >&6
1305 if test -z "$ac_cv_prog_CC"; then
1307 # Extract the first word of "gcc", so it can be a program name with args.
1308 set dummy gcc; ac_word=$2
1309 echo "$as_me:$LINENO: checking for $ac_word" >&5
1310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1312 echo $ECHO_N "(cached) $ECHO_C" >&6
1314 if test -n "$ac_ct_CC"; then
1315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1321 test -z "$as_dir" && as_dir=.
1322 for ac_exec_ext in '' $ac_executable_extensions; do
1323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1324 ac_cv_prog_ac_ct_CC="gcc"
1325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1334 if test -n "$ac_ct_CC"; then
1335 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1336 echo "${ECHO_T}$ac_ct_CC" >&6
1338 echo "$as_me:$LINENO: result: no" >&5
1339 echo "${ECHO_T}no" >&6
1347 if test -z "$CC"; then
1348 if test -n "$ac_tool_prefix"; then
1349 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1350 set dummy ${ac_tool_prefix}cc; ac_word=$2
1351 echo "$as_me:$LINENO: checking for $ac_word" >&5
1352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353 if test "${ac_cv_prog_CC+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1356 if test -n "$CC"; then
1357 ac_cv_prog_CC="$CC" # Let the user override the test.
1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363 test -z "$as_dir" && as_dir=.
1364 for ac_exec_ext in '' $ac_executable_extensions; do
1365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1366 ac_cv_prog_CC="${ac_tool_prefix}cc"
1367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1376 if test -n "$CC"; then
1377 echo "$as_me:$LINENO: result: $CC" >&5
1378 echo "${ECHO_T}$CC" >&6
1380 echo "$as_me:$LINENO: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1385 if test -z "$ac_cv_prog_CC"; then
1387 # Extract the first word of "cc", so it can be a program name with args.
1388 set dummy cc; ac_word=$2
1389 echo "$as_me:$LINENO: checking for $ac_word" >&5
1390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1391 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1392 echo $ECHO_N "(cached) $ECHO_C" >&6
1394 if test -n "$ac_ct_CC"; then
1395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401 test -z "$as_dir" && as_dir=.
1402 for ac_exec_ext in '' $ac_executable_extensions; do
1403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1404 ac_cv_prog_ac_ct_CC="cc"
1405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1414 if test -n "$ac_ct_CC"; then
1415 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1416 echo "${ECHO_T}$ac_ct_CC" >&6
1418 echo "$as_me:$LINENO: result: no" >&5
1419 echo "${ECHO_T}no" >&6
1428 if test -z "$CC"; then
1429 # Extract the first word of "cc", so it can be a program name with args.
1430 set dummy cc; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_CC+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 if test -n "$CC"; then
1437 ac_cv_prog_CC="$CC" # Let the user override the test.
1440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444 test -z "$as_dir" && as_dir=.
1445 for ac_exec_ext in '' $ac_executable_extensions; do
1446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1447 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1448 ac_prog_rejected=yes
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 if test $ac_prog_rejected = yes; then
1459 # We found a bogon in the path, so make sure we never use it.
1460 set dummy $ac_cv_prog_CC
1462 if test $# != 0; then
1463 # We chose a different compiler from the bogus one.
1464 # However, it has the same basename, so the bogon will be chosen
1465 # first if we set CC to just the basename; use the full file name.
1467 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1473 if test -n "$CC"; then
1474 echo "$as_me:$LINENO: result: $CC" >&5
1475 echo "${ECHO_T}$CC" >&6
1477 echo "$as_me:$LINENO: result: no" >&5
1478 echo "${ECHO_T}no" >&6
1482 if test -z "$CC"; then
1483 if test -n "$ac_tool_prefix"; then
1486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1487 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1488 echo "$as_me:$LINENO: checking for $ac_word" >&5
1489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1490 if test "${ac_cv_prog_CC+set}" = set; then
1491 echo $ECHO_N "(cached) $ECHO_C" >&6
1493 if test -n "$CC"; then
1494 ac_cv_prog_CC="$CC" # Let the user override the test.
1496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 test -z "$as_dir" && as_dir=.
1501 for ac_exec_ext in '' $ac_executable_extensions; do
1502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1503 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513 if test -n "$CC"; then
1514 echo "$as_me:$LINENO: result: $CC" >&5
1515 echo "${ECHO_T}$CC" >&6
1517 echo "$as_me:$LINENO: result: no" >&5
1518 echo "${ECHO_T}no" >&6
1521 test -n "$CC" && break
1524 if test -z "$CC"; then
1528 # Extract the first word of "$ac_prog", so it can be a program name with args.
1529 set dummy $ac_prog; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1535 if test -n "$ac_ct_CC"; then
1536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542 test -z "$as_dir" && as_dir=.
1543 for ac_exec_ext in '' $ac_executable_extensions; do
1544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545 ac_cv_prog_ac_ct_CC="$ac_prog"
1546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1555 if test -n "$ac_ct_CC"; then
1556 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1557 echo "${ECHO_T}$ac_ct_CC" >&6
1559 echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1563 test -n "$ac_ct_CC" && break
1572 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1573 See \`config.log' for more details." >&5
1574 echo "$as_me: error: no acceptable C compiler found in \$PATH
1575 See \`config.log' for more details." >&2;}
1576 { (exit 1); exit 1; }; }
1578 # Provide some information about the compiler.
1579 echo "$as_me:$LINENO:" \
1580 "checking for C compiler version" >&5
1581 ac_compiler=`set X $ac_compile; echo $2`
1582 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1583 (eval $ac_compiler --version </dev/null >&5) 2>&5
1585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1586 (exit $ac_status); }
1587 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1588 (eval $ac_compiler -v </dev/null >&5) 2>&5
1590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1591 (exit $ac_status); }
1592 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1593 (eval $ac_compiler -V </dev/null >&5) 2>&5
1595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1596 (exit $ac_status); }
1598 cat >conftest.$ac_ext <<_ACEOF
1601 cat confdefs.h >>conftest.$ac_ext
1602 cat >>conftest.$ac_ext <<_ACEOF
1603 /* end confdefs.h. */
1613 ac_clean_files_save=$ac_clean_files
1614 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1615 # Try to create an executable without -o first, disregard a.out.
1616 # It will help us diagnose broken compilers, and finding out an intuition
1618 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1619 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1620 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1621 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1622 (eval $ac_link_default) 2>&5
1624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1625 (exit $ac_status); }; then
1626 # Find the output, starting from the most likely. This scheme is
1627 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1630 # Be careful to initialize this variable, since it used to be cached.
1631 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1633 # b.out is created by i960 compilers.
1634 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1636 test -f "$ac_file" || continue
1638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1641 # This is the source file.
1644 # We found the default executable, but exeext='' is most
1648 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1649 # FIXME: I believe we export ac_cv_exeext for Libtool,
1650 # but it would be cool to find out if it's true. Does anybody
1651 # maintain Libtool? --akim.
1659 echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1662 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1663 See \`config.log' for more details." >&5
1664 echo "$as_me: error: C compiler cannot create executables
1665 See \`config.log' for more details." >&2;}
1666 { (exit 77); exit 77; }; }
1669 ac_exeext=$ac_cv_exeext
1670 echo "$as_me:$LINENO: result: $ac_file" >&5
1671 echo "${ECHO_T}$ac_file" >&6
1673 # Check the compiler produces executables we can run. If not, either
1674 # the compiler is broken, or we cross compile.
1675 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1676 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1677 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1678 # If not cross compiling, check that we can run a simple program.
1679 if test "$cross_compiling" != yes; then
1680 if { ac_try='./$ac_file'
1681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685 (exit $ac_status); }; }; then
1688 if test "$cross_compiling" = maybe; then
1691 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1692 If you meant to cross compile, use \`--host'.
1693 See \`config.log' for more details." >&5
1694 echo "$as_me: error: cannot run C compiled programs.
1695 If you meant to cross compile, use \`--host'.
1696 See \`config.log' for more details." >&2;}
1697 { (exit 1); exit 1; }; }
1701 echo "$as_me:$LINENO: result: yes" >&5
1702 echo "${ECHO_T}yes" >&6
1704 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1705 ac_clean_files=$ac_clean_files_save
1706 # Check the compiler produces executables we can run. If not, either
1707 # the compiler is broken, or we cross compile.
1708 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1709 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1710 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1711 echo "${ECHO_T}$cross_compiling" >&6
1713 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1714 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1716 (eval $ac_link) 2>&5
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }; then
1720 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1721 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1722 # work properly (i.e., refer to `conftest.exe'), while it won't with
1724 for ac_file in conftest.exe conftest conftest.*; do
1725 test -f "$ac_file" || continue
1727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1728 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1735 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1736 See \`config.log' for more details." >&5
1737 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1738 See \`config.log' for more details." >&2;}
1739 { (exit 1); exit 1; }; }
1742 rm -f conftest$ac_cv_exeext
1743 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1744 echo "${ECHO_T}$ac_cv_exeext" >&6
1746 rm -f conftest.$ac_ext
1747 EXEEXT=$ac_cv_exeext
1749 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1750 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1751 if test "${ac_cv_objext+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 cat >conftest.$ac_ext <<_ACEOF
1757 cat confdefs.h >>conftest.$ac_ext
1758 cat >>conftest.$ac_ext <<_ACEOF
1759 /* end confdefs.h. */
1769 rm -f conftest.o conftest.obj
1770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1771 (eval $ac_compile) 2>&5
1773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774 (exit $ac_status); }; then
1775 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1778 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1783 echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1786 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1787 See \`config.log' for more details." >&5
1788 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1789 See \`config.log' for more details." >&2;}
1790 { (exit 1); exit 1; }; }
1793 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1795 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1796 echo "${ECHO_T}$ac_cv_objext" >&6
1797 OBJEXT=$ac_cv_objext
1799 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1800 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1801 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 cat >conftest.$ac_ext <<_ACEOF
1807 cat confdefs.h >>conftest.$ac_ext
1808 cat >>conftest.$ac_ext <<_ACEOF
1809 /* end confdefs.h. */
1822 rm -f conftest.$ac_objext
1823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1824 (eval $ac_compile) 2>conftest.er1
1826 grep -v '^ *+' conftest.er1 >conftest.err
1828 cat conftest.err >&5
1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830 (exit $ac_status); } &&
1831 { ac_try='test -z "$ac_c_werror_flag"
1832 || test ! -s conftest.err'
1833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837 (exit $ac_status); }; } &&
1838 { ac_try='test -s conftest.$ac_objext'
1839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }; }; then
1846 echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1852 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1855 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1856 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1857 GCC=`test $ac_compiler_gnu = yes && echo yes`
1858 ac_test_CFLAGS=${CFLAGS+set}
1859 ac_save_CFLAGS=$CFLAGS
1861 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1862 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1863 if test "${ac_cv_prog_cc_g+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 cat >conftest.$ac_ext <<_ACEOF
1869 cat confdefs.h >>conftest.$ac_ext
1870 cat >>conftest.$ac_ext <<_ACEOF
1871 /* end confdefs.h. */
1881 rm -f conftest.$ac_objext
1882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1883 (eval $ac_compile) 2>conftest.er1
1885 grep -v '^ *+' conftest.er1 >conftest.err
1887 cat conftest.err >&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); } &&
1890 { ac_try='test -z "$ac_c_werror_flag"
1891 || test ! -s conftest.err'
1892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; } &&
1897 { ac_try='test -s conftest.$ac_objext'
1898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902 (exit $ac_status); }; }; then
1905 echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1912 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1913 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1914 if test "$ac_test_CFLAGS" = set; then
1915 CFLAGS=$ac_save_CFLAGS
1916 elif test $ac_cv_prog_cc_g = yes; then
1917 if test "$GCC" = yes; then
1923 if test "$GCC" = yes; then
1929 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1930 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1931 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 ac_cv_prog_cc_stdc=no
1936 cat >conftest.$ac_ext <<_ACEOF
1939 cat confdefs.h >>conftest.$ac_ext
1940 cat >>conftest.$ac_ext <<_ACEOF
1941 /* end confdefs.h. */
1944 #include <sys/types.h>
1945 #include <sys/stat.h>
1946 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1947 struct buf { int x; };
1948 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1949 static char *e (p, i)
1955 static char *f (char * (*g) (char **, int), char **p, ...)
1960 s = g (p, va_arg (v,int));
1965 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1966 function prototypes and stuff, but not '\xHH' hex character constants.
1967 These don't provoke an error unfortunately, instead are silently treated
1968 as 'x'. The following induces an error, until -std1 is added to get
1969 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1970 array size at least. It's necessary to write '\x00'==0 to get something
1971 that's true only with -std1. */
1972 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1974 int test (int i, double x);
1975 struct s1 {int (*f) (int a);};
1976 struct s2 {int (*f) (double a);};
1977 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1983 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1988 # Don't try gcc -ansi; that turns off useful extensions and
1989 # breaks some systems' header files.
1990 # AIX -qlanglvl=ansi
1991 # Ultrix and OSF/1 -std1
1992 # HP-UX 10.20 and later -Ae
1993 # HP-UX older versions -Aa -D_HPUX_SOURCE
1994 # SVR4 -Xc -D__EXTENSIONS__
1995 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1997 CC="$ac_save_CC $ac_arg"
1998 rm -f conftest.$ac_objext
1999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2000 (eval $ac_compile) 2>conftest.er1
2002 grep -v '^ *+' conftest.er1 >conftest.err
2004 cat conftest.err >&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); } &&
2007 { ac_try='test -z "$ac_c_werror_flag"
2008 || test ! -s conftest.err'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; } &&
2014 { ac_try='test -s conftest.$ac_objext'
2015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }; }; then
2020 ac_cv_prog_cc_stdc=$ac_arg
2023 echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2027 rm -f conftest.err conftest.$ac_objext
2029 rm -f conftest.$ac_ext conftest.$ac_objext
2034 case "x$ac_cv_prog_cc_stdc" in
2036 echo "$as_me:$LINENO: result: none needed" >&5
2037 echo "${ECHO_T}none needed" >&6 ;;
2039 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2040 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2041 CC="$CC $ac_cv_prog_cc_stdc" ;;
2044 # Some people use a C++ compiler to compile C. Since we use `exit',
2045 # in C++ we need to declare it. In case someone uses the same compiler
2046 # for both compiling C and C++ we need to have the C++ compiler decide
2047 # the declaration of exit, since it's the most demanding environment.
2048 cat >conftest.$ac_ext <<_ACEOF
2053 rm -f conftest.$ac_objext
2054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2055 (eval $ac_compile) 2>conftest.er1
2057 grep -v '^ *+' conftest.er1 >conftest.err
2059 cat conftest.err >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); } &&
2062 { ac_try='test -z "$ac_c_werror_flag"
2063 || test ! -s conftest.err'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; } &&
2069 { ac_try='test -s conftest.$ac_objext'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; }; then
2075 for ac_declaration in \
2077 'extern "C" void std::exit (int) throw (); using std::exit;' \
2078 'extern "C" void std::exit (int); using std::exit;' \
2079 'extern "C" void exit (int) throw ();' \
2080 'extern "C" void exit (int);' \
2083 cat >conftest.$ac_ext <<_ACEOF
2086 cat confdefs.h >>conftest.$ac_ext
2087 cat >>conftest.$ac_ext <<_ACEOF
2088 /* end confdefs.h. */
2099 rm -f conftest.$ac_objext
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101 (eval $ac_compile) 2>conftest.er1
2103 grep -v '^ *+' conftest.er1 >conftest.err
2105 cat conftest.err >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -z "$ac_c_werror_flag"
2109 || test ! -s conftest.err'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; } &&
2115 { ac_try='test -s conftest.$ac_objext'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; }; then
2123 echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2129 cat >conftest.$ac_ext <<_ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2144 rm -f conftest.$ac_objext
2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>conftest.er1
2148 grep -v '^ *+' conftest.er1 >conftest.err
2150 cat conftest.err >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); } &&
2153 { ac_try='test -z "$ac_c_werror_flag"
2154 || test ! -s conftest.err'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; } &&
2160 { ac_try='test -s conftest.$ac_objext'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; }; then
2168 echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2175 if test -n "$ac_declaration"; then
2176 echo '#ifdef __cplusplus' >>confdefs.h
2177 echo $ac_declaration >>confdefs.h
2178 echo '#endif' >>confdefs.h
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2188 ac_cpp='$CPP $CPPFLAGS'
2189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194 ac_cpp='$CPP $CPPFLAGS'
2195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2198 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2199 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2200 # On Suns, sometimes $CPP names a directory.
2201 if test -n "$CPP" && test -d "$CPP"; then
2204 if test -z "$CPP"; then
2205 if test "${ac_cv_prog_CPP+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 # Double quotes because CPP needs to be expanded
2209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2212 for ac_c_preproc_warn_flag in '' yes
2214 # Use a header file that comes with gcc, so configuring glibc
2215 # with a fresh cross-compiler works.
2216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2217 # <limits.h> exists even on freestanding compilers.
2218 # On the NeXT, cc -E runs the code through the compiler's parser,
2219 # not just through cpp. "Syntax error" is here to catch this case.
2220 cat >conftest.$ac_ext <<_ACEOF
2223 cat confdefs.h >>conftest.$ac_ext
2224 cat >>conftest.$ac_ext <<_ACEOF
2225 /* end confdefs.h. */
2227 # include <limits.h>
2229 # include <assert.h>
2233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2236 grep -v '^ *+' conftest.er1 >conftest.err
2238 cat conftest.err >&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); } >/dev/null; then
2241 if test -s conftest.err; then
2242 ac_cpp_err=$ac_c_preproc_warn_flag
2243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2250 if test -z "$ac_cpp_err"; then
2253 echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2256 # Broken: fails on valid input.
2259 rm -f conftest.err conftest.$ac_ext
2261 # OK, works on sane cases. Now check whether non-existent headers
2262 # can be detected and how.
2263 cat >conftest.$ac_ext <<_ACEOF
2266 cat confdefs.h >>conftest.$ac_ext
2267 cat >>conftest.$ac_ext <<_ACEOF
2268 /* end confdefs.h. */
2269 #include <ac_nonexistent.h>
2271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2274 grep -v '^ *+' conftest.er1 >conftest.err
2276 cat conftest.err >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } >/dev/null; then
2279 if test -s conftest.err; then
2280 ac_cpp_err=$ac_c_preproc_warn_flag
2281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2288 if test -z "$ac_cpp_err"; then
2289 # Broken: success on invalid input.
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2295 # Passes both tests.
2299 rm -f conftest.err conftest.$ac_ext
2302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2303 rm -f conftest.err conftest.$ac_ext
2304 if $ac_preproc_ok; then
2316 echo "$as_me:$LINENO: result: $CPP" >&5
2317 echo "${ECHO_T}$CPP" >&6
2319 for ac_c_preproc_warn_flag in '' yes
2321 # Use a header file that comes with gcc, so configuring glibc
2322 # with a fresh cross-compiler works.
2323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2324 # <limits.h> exists even on freestanding compilers.
2325 # On the NeXT, cc -E runs the code through the compiler's parser,
2326 # not just through cpp. "Syntax error" is here to catch this case.
2327 cat >conftest.$ac_ext <<_ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2334 # include <limits.h>
2336 # include <assert.h>
2340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2343 grep -v '^ *+' conftest.er1 >conftest.err
2345 cat conftest.err >&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } >/dev/null; then
2348 if test -s conftest.err; then
2349 ac_cpp_err=$ac_c_preproc_warn_flag
2350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2357 if test -z "$ac_cpp_err"; then
2360 echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2363 # Broken: fails on valid input.
2366 rm -f conftest.err conftest.$ac_ext
2368 # OK, works on sane cases. Now check whether non-existent headers
2369 # can be detected and how.
2370 cat >conftest.$ac_ext <<_ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2376 #include <ac_nonexistent.h>
2378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2381 grep -v '^ *+' conftest.er1 >conftest.err
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } >/dev/null; then
2386 if test -s conftest.err; then
2387 ac_cpp_err=$ac_c_preproc_warn_flag
2388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2395 if test -z "$ac_cpp_err"; then
2396 # Broken: success on invalid input.
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2402 # Passes both tests.
2406 rm -f conftest.err conftest.$ac_ext
2409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2410 rm -f conftest.err conftest.$ac_ext
2411 if $ac_preproc_ok; then
2414 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2415 See \`config.log' for more details." >&5
2416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2417 See \`config.log' for more details." >&2;}
2418 { (exit 1); exit 1; }; }
2422 ac_cpp='$CPP $CPPFLAGS'
2423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429 echo "$as_me:$LINENO: checking for egrep" >&5
2430 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2431 if test "${ac_cv_prog_egrep+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2435 then ac_cv_prog_egrep='grep -E'
2436 else ac_cv_prog_egrep='egrep'
2439 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2440 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2441 EGREP=$ac_cv_prog_egrep
2444 if test $ac_cv_c_compiler_gnu = yes; then
2445 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2446 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2447 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 ac_pattern="Autoconf.*'x'"
2451 cat >conftest.$ac_ext <<_ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2461 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2462 ac_cv_prog_gcc_traditional=yes
2464 ac_cv_prog_gcc_traditional=no
2469 if test $ac_cv_prog_gcc_traditional = no; then
2470 cat >conftest.$ac_ext <<_ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2480 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2481 ac_cv_prog_gcc_traditional=yes
2487 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2488 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2489 if test $ac_cv_prog_gcc_traditional = yes; then
2490 CC="$CC -traditional"
2494 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2495 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2496 if test "${ac_cv_search_strerror+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 ac_func_search_save_LIBS=$LIBS
2500 ac_cv_search_strerror=no
2501 cat >conftest.$ac_ext <<_ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2508 /* Override any gcc2 internal prototype to avoid an error. */
2512 /* We use char because int might match the return type of a gcc2
2513 builtin and then its argument prototype would still apply. */
2523 rm -f conftest.$ac_objext conftest$ac_exeext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2525 (eval $ac_link) 2>conftest.er1
2527 grep -v '^ *+' conftest.er1 >conftest.err
2529 cat conftest.err >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 { ac_try='test -z "$ac_c_werror_flag"
2533 || test ! -s conftest.err'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; } &&
2539 { ac_try='test -s conftest$ac_exeext'
2540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2545 ac_cv_search_strerror="none required"
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2551 rm -f conftest.err conftest.$ac_objext \
2552 conftest$ac_exeext conftest.$ac_ext
2553 if test "$ac_cv_search_strerror" = no; then
2554 for ac_lib in cposix; do
2555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2556 cat >conftest.$ac_ext <<_ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2563 /* Override any gcc2 internal prototype to avoid an error. */
2567 /* We use char because int might match the return type of a gcc2
2568 builtin and then its argument prototype would still apply. */
2578 rm -f conftest.$ac_objext conftest$ac_exeext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580 (eval $ac_link) 2>conftest.er1
2582 grep -v '^ *+' conftest.er1 >conftest.err
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest$ac_exeext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2600 ac_cv_search_strerror="-l$ac_lib"
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2607 rm -f conftest.err conftest.$ac_objext \
2608 conftest$ac_exeext conftest.$ac_ext
2611 LIBS=$ac_func_search_save_LIBS
2613 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2614 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2615 if test "$ac_cv_search_strerror" != no; then
2616 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2621 if test "$cross_compiling" = yes; then
2622 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2623 See \`config.log' for more details." >&5
2624 echo "$as_me: error: cannot run test program while cross compiling
2625 See \`config.log' for more details." >&2;}
2626 { (exit 1); exit 1; }; }
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2636 rm -f conftest$ac_exeext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2638 (eval $ac_link) 2>&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2649 echo "$as_me: program exited with status $ac_status" >&5
2650 echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2655 if test $CC != cc ; then
2656 echo "Your $CC failed - restarting with CC=cc" 1>&6
2662 exec $0 $configure_args
2666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2669 if test "$cross_compiling" = yes; then
2670 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2671 See \`config.log' for more details." >&5
2672 echo "$as_me: error: cannot run test program while cross compiling
2673 See \`config.log' for more details." >&2;}
2674 { (exit 1); exit 1; }; }
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2684 rm -f conftest$ac_exeext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2686 (eval $ac_link) 2>&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2697 echo "$as_me: program exited with status $ac_status" >&5
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2704 echo "CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;" 1>&6
2706 echo "$ac_compile" 1>&6
2708 { { echo "$as_me:$LINENO: error: Can't run the compiler - sorry" >&5
2709 echo "$as_me: error: Can't run the compiler - sorry" >&2;}
2710 { (exit 1); exit 1; }; }
2712 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2715 if test "$cross_compiling" = yes; then
2716 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2717 See \`config.log' for more details." >&5
2718 echo "$as_me: error: cannot run test program while cross compiling
2719 See \`config.log' for more details." >&2;}
2720 { (exit 1); exit 1; }; }
2722 cat >conftest.$ac_ext <<_ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2731 int __something_strange_();
2732 __something_strange_(0);
2736 rm -f conftest$ac_exeext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2738 (eval $ac_link) 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 { { echo "$as_me:$LINENO: error: Your compiler does not set the exit status - sorry" >&5
2748 echo "$as_me: error: Your compiler does not set the exit status - sorry" >&2;}
2749 { (exit 1); exit 1; }; }
2751 echo "$as_me: program exited with status $ac_status" >&5
2752 echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2756 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2759 for ac_prog in gawk mawk nawk awk
2761 # Extract the first word of "$ac_prog", so it can be a program name with args.
2762 set dummy $ac_prog; ac_word=$2
2763 echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2765 if test "${ac_cv_prog_AWK+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 if test -n "$AWK"; then
2769 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_AWK="$ac_prog"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 if test -n "$AWK"; then
2789 echo "$as_me:$LINENO: result: $AWK" >&5
2790 echo "${ECHO_T}$AWK" >&6
2792 echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2796 test -n "$AWK" && break
2800 if test -f etc/toolcheck; then
2801 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2802 echo "$as_me: checking for buggy tools..." >&6;}
2803 sh etc/toolcheck 1>&6
2807 { echo "$as_me:$LINENO: checking for System V..." >&5
2808 echo "$as_me: checking for System V..." >&6;}
2809 cat >conftest.$ac_ext <<_ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815 #include <sys/types.h>
2821 int x = SIGCHLD | FNDELAY;
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>conftest.er1
2830 grep -v '^ *+' conftest.er1 >conftest.err
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try='test -z "$ac_c_werror_flag"
2836 || test ! -s conftest.err'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; } &&
2842 { ac_try='test -s conftest.$ac_objext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2853 cat >>confdefs.h <<\_ACEOF
2858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860 { echo "$as_me:$LINENO: checking for Solaris 2.x..." >&5
2861 echo "$as_me: checking for Solaris 2.x..." >&6;}
2862 cat >conftest.$ac_ext <<_ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868 #if defined(SVR4) && defined(sun)
2873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2874 $EGREP "yes" >/dev/null 2>&1; then
2875 LIBS="$LIBS -lsocket -lnsl -lkstat"
2881 { echo "$as_me:$LINENO: checking select..." >&5
2882 echo "$as_me: checking select..." >&6;}
2883 cat >conftest.$ac_ext <<_ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2893 select(0, 0, 0, 0, 0);
2898 rm -f conftest.$ac_objext conftest$ac_exeext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2900 (eval $ac_link) 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
2907 { ac_try='test -z "$ac_c_werror_flag"
2908 || test ! -s conftest.err'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; } &&
2914 { ac_try='test -s conftest$ac_exeext'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2925 LIBS="$LIBS -lnet -lnsl"
2926 { echo "$as_me:$LINENO: checking select with $LIBS..." >&5
2927 echo "$as_me: checking select with $LIBS..." >&6;}
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2938 select(0, 0, 0, 0, 0);
2943 rm -f conftest.$ac_objext conftest$ac_exeext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945 (eval $ac_link) 2>conftest.er1
2947 grep -v '^ *+' conftest.er1 >conftest.err
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -z "$ac_c_werror_flag"
2953 || test ! -s conftest.err'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest$ac_exeext'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; }; then
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 { { echo "$as_me:$LINENO: error: !!! no select - no screen" >&5
2971 echo "$as_me: error: !!! no select - no screen" >&2;}
2972 { (exit 1); exit 1; }; }
2974 rm -f conftest.err conftest.$ac_objext \
2975 conftest$ac_exeext conftest.$ac_ext
2978 rm -f conftest.err conftest.$ac_objext \
2979 conftest$ac_exeext conftest.$ac_ext
2981 { echo "$as_me:$LINENO: checking select return value..." >&5
2982 echo "$as_me: checking select return value..." >&6;}
2983 if test "$cross_compiling" = yes; then
2984 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2985 See \`config.log' for more details." >&5
2986 echo "$as_me: error: cannot run test program while cross compiling
2987 See \`config.log' for more details." >&2;}
2988 { (exit 1); exit 1; }; }
2990 cat >conftest.$ac_ext <<_ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2997 #include <sys/types.h>
2998 #include <sys/stat.h>
3001 char *nam = "/tmp/conftest$$";
3006 #define O_NONBLOCK O_NDELAY
3009 #define S_IFIFO 0010000
3022 /* From Andrew A. Chernov (ache@astral.msk.su):
3023 * opening RDWR fifo fails in BSD 4.4, but select return values are
3030 if (mkfifo(nam, 0777))
3032 if (mknod(nam, S_IFIFO|0777, 0))
3036 if (open(nam, O_RDWR | O_NONBLOCK))
3038 if (write(0, "TEST", 4) == -1)
3043 #include <sys/types.h>
3044 #include <sys/socket.h>
3050 struct sockaddr_un a;
3058 if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
3060 a.sun_family = AF_UNIX;
3061 strcpy(a.sun_path, nam);
3063 if (bind(s1, (struct sockaddr *) &a, strlen(nam)+2) == -1)
3069 if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
3071 (void)connect(s2, (struct sockaddr *)&a, strlen(nam) + 2);
3072 if (write(s2, "HELLO", 5) == -1)
3078 if (accept(s1, (struct sockaddr *)&a, &l))
3088 if (select(1, &f, 0, 0, 0) == -1)
3090 if (select(1, &f, &f, 0, 0) != 2)
3096 rm -f conftest$ac_exeext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3098 (eval $ac_link) 2>&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3107 echo "- select is ok" 1>&6
3110 echo "$as_me: program exited with status $ac_status" >&5
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3115 echo "- select can't count" 1>&6
3116 cat >>confdefs.h <<\_ACEOF
3117 #define SELECT_BROKEN 1
3121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3124 { echo "$as_me:$LINENO: checking for tgetent..." >&5
3125 echo "$as_me: checking for tgetent..." >&6;}
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3136 tgetent((char *)0, (char *)0);
3141 rm -f conftest.$ac_objext conftest$ac_exeext
3142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3143 (eval $ac_link) 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_c_werror_flag"
3151 || test ! -s conftest.err'
3152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; } &&
3157 { ac_try='test -s conftest$ac_exeext'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3169 LIBS="-lcurses $olibs"
3170 { echo "$as_me:$LINENO: checking libcurses..." >&5
3171 echo "$as_me: checking libcurses..." >&6;}
3172 cat >conftest.$ac_ext <<_ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3184 __sorry_hpux_libcurses_is_totally_broken_in_10_10();
3186 tgetent((char *)0, (char *)0);
3193 rm -f conftest.$ac_objext conftest$ac_exeext
3194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3195 (eval $ac_link) 2>conftest.er1
3197 grep -v '^ *+' conftest.er1 >conftest.err
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } &&
3202 { ac_try='test -z "$ac_c_werror_flag"
3203 || test ! -s conftest.err'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try='test -s conftest$ac_exeext'
3210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 LIBS="-ltermcap $olibs"
3221 { echo "$as_me:$LINENO: checking libtermcap..." >&5
3222 echo "$as_me: checking libtermcap..." >&6;}
3223 cat >conftest.$ac_ext <<_ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3233 tgetent((char *)0, (char *)0);
3238 rm -f conftest.$ac_objext conftest$ac_exeext
3239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240 (eval $ac_link) 2>conftest.er1
3242 grep -v '^ *+' conftest.er1 >conftest.err
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -z "$ac_c_werror_flag"
3248 || test ! -s conftest.err'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; } &&
3254 { ac_try='test -s conftest$ac_exeext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 LIBS="-ltermlib $olibs"
3266 { echo "$as_me:$LINENO: checking libtermlib..." >&5
3267 echo "$as_me: checking libtermlib..." >&6;}
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3278 tgetent((char *)0, (char *)0);
3283 rm -f conftest.$ac_objext conftest$ac_exeext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3285 (eval $ac_link) 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try='test -z "$ac_c_werror_flag"
3293 || test ! -s conftest.err'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; } &&
3299 { ac_try='test -s conftest$ac_exeext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 LIBS="-lncurses $olibs"
3311 { echo "$as_me:$LINENO: checking libncurses..." >&5
3312 echo "$as_me: checking libncurses..." >&6;}
3313 cat >conftest.$ac_ext <<_ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3323 tgetent((char *)0, (char *)0);
3328 rm -f conftest.$ac_objext conftest$ac_exeext
3329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3330 (eval $ac_link) 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } &&
3337 { ac_try='test -z "$ac_c_werror_flag"
3338 || test ! -s conftest.err'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; } &&
3344 { ac_try='test -s conftest$ac_exeext'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3355 { { echo "$as_me:$LINENO: error: !!! no tgetent - no screen" >&5
3356 echo "$as_me: error: !!! no tgetent - no screen" >&2;}
3357 { (exit 1); exit 1; }; }
3359 rm -f conftest.err conftest.$ac_objext \
3360 conftest$ac_exeext conftest.$ac_ext
3362 rm -f conftest.err conftest.$ac_objext \
3363 conftest$ac_exeext conftest.$ac_ext
3365 rm -f conftest.err conftest.$ac_objext \
3366 conftest$ac_exeext conftest.$ac_ext
3368 rm -f conftest.err conftest.$ac_objext \
3369 conftest$ac_exeext conftest.$ac_ext
3371 rm -f conftest.err conftest.$ac_objext \
3372 conftest$ac_exeext conftest.$ac_ext
3374 if test "$cross_compiling" = yes; then
3375 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3376 See \`config.log' for more details." >&5
3377 echo "$as_me: error: cannot run test program while cross compiling
3378 See \`config.log' for more details." >&2;}
3379 { (exit 1); exit 1; }; }
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3390 exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
3393 rm -f conftest$ac_exeext
3394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3395 (eval $ac_link) 2>&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3404 echo "- you use the termcap database" 1>&6
3407 echo "$as_me: program exited with status $ac_status" >&5
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3412 echo "- you use the terminfo database" 1>&6
3413 cat >>confdefs.h <<\_ACEOF
3418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3420 { echo "$as_me:$LINENO: checking ospeed..." >&5
3421 echo "$as_me: checking ospeed..." >&6;}
3422 cat >conftest.$ac_ext <<_ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 extern short ospeed;
3437 rm -f conftest.$ac_objext conftest$ac_exeext
3438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3439 (eval $ac_link) 2>conftest.er1
3441 grep -v '^ *+' conftest.er1 >conftest.err
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } &&
3446 { ac_try='test -z "$ac_c_werror_flag"
3447 || test ! -s conftest.err'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; } &&
3453 { ac_try='test -s conftest$ac_exeext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 cat >>confdefs.h <<\_ACEOF
3465 #define NEED_OSPEED 1
3469 rm -f conftest.err conftest.$ac_objext \
3470 conftest$ac_exeext conftest.$ac_ext
3472 { echo "$as_me:$LINENO: checking for /dev/ptc..." >&5
3473 echo "$as_me: checking for /dev/ptc..." >&6;}
3474 if test -r /dev/ptc; then
3475 cat >>confdefs.h <<\_ACEOF
3476 #define HAVE_DEV_PTC 1
3481 { echo "$as_me:$LINENO: checking for SVR4 ptys..." >&5
3482 echo "$as_me: checking for SVR4 ptys..." >&6;}
3484 if test -c /dev/ptmx ; then
3485 cat >conftest.$ac_ext <<_ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3495 ptsname(0);grantpt(0);unlockpt(0);
3500 rm -f conftest.$ac_objext conftest$ac_exeext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3502 (eval $ac_link) 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -z "$ac_c_werror_flag"
3510 || test ! -s conftest.err'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try='test -s conftest$ac_exeext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 cat >>confdefs.h <<\_ACEOF
3523 #define HAVE_SVR4_PTYS 1
3528 echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3532 rm -f conftest.err conftest.$ac_objext \
3533 conftest$ac_exeext conftest.$ac_ext
3537 for ac_func in getpt
3539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3540 echo "$as_me:$LINENO: checking for $ac_func" >&5
3541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3542 if eval "test \"\${$as_ac_var+set}\" = set"; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 cat >conftest.$ac_ext <<_ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3553 #define $ac_func innocuous_$ac_func
3555 /* System header to define __stub macros and hopefully few prototypes,
3556 which can conflict with char $ac_func (); below.
3557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3558 <limits.h> exists even on freestanding compilers. */
3561 # include <limits.h>
3563 # include <assert.h>
3568 /* Override any gcc2 internal prototype to avoid an error. */
3573 /* We use char because int might match the return type of a gcc2
3574 builtin and then its argument prototype would still apply. */
3576 /* The GNU C library defines this for functions which it implements
3577 to always fail with ENOSYS. Some functions are actually named
3578 something starting with __ and the normal name is an alias. */
3579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3582 char (*f) () = $ac_func;
3591 return f != $ac_func;
3596 rm -f conftest.$ac_objext conftest$ac_exeext
3597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3598 (eval $ac_link) 2>conftest.er1
3600 grep -v '^ *+' conftest.er1 >conftest.err
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest$ac_exeext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 eval "$as_ac_var=yes"
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 eval "$as_ac_var=no"
3625 rm -f conftest.err conftest.$ac_objext \
3626 conftest$ac_exeext conftest.$ac_ext
3628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3630 if test `eval echo '${'$as_ac_var'}'` = yes; then
3631 cat >>confdefs.h <<_ACEOF
3632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3639 if test -z "$sysvr4ptys"; then
3641 for ac_func in openpty
3643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3644 echo "$as_me:$LINENO: checking for $ac_func" >&5
3645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3646 if eval "test \"\${$as_ac_var+set}\" = set"; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 cat >conftest.$ac_ext <<_ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3657 #define $ac_func innocuous_$ac_func
3659 /* System header to define __stub macros and hopefully few prototypes,
3660 which can conflict with char $ac_func (); below.
3661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3662 <limits.h> exists even on freestanding compilers. */
3665 # include <limits.h>
3667 # include <assert.h>
3672 /* Override any gcc2 internal prototype to avoid an error. */
3677 /* We use char because int might match the return type of a gcc2
3678 builtin and then its argument prototype would still apply. */
3680 /* The GNU C library defines this for functions which it implements
3681 to always fail with ENOSYS. Some functions are actually named
3682 something starting with __ and the normal name is an alias. */
3683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3686 char (*f) () = $ac_func;
3695 return f != $ac_func;
3700 rm -f conftest.$ac_objext conftest$ac_exeext
3701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3702 (eval $ac_link) 2>conftest.er1
3704 grep -v '^ *+' conftest.er1 >conftest.err
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -z "$ac_c_werror_flag"
3710 || test ! -s conftest.err'
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; } &&
3716 { ac_try='test -s conftest$ac_exeext'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; }; then
3722 eval "$as_ac_var=yes"
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 eval "$as_ac_var=no"
3729 rm -f conftest.err conftest.$ac_objext \
3730 conftest$ac_exeext conftest.$ac_ext
3732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3734 if test `eval echo '${'$as_ac_var'}'` = yes; then
3735 cat >>confdefs.h <<_ACEOF
3736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3740 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
3741 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
3742 if test "${ac_cv_lib_util_openpty+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 ac_check_lib_save_LIBS=$LIBS
3747 cat >conftest.$ac_ext <<_ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3754 /* Override any gcc2 internal prototype to avoid an error. */
3758 /* We use char because int might match the return type of a gcc2
3759 builtin and then its argument prototype would still apply. */
3769 rm -f conftest.$ac_objext conftest$ac_exeext
3770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3771 (eval $ac_link) 2>conftest.er1
3773 grep -v '^ *+' conftest.er1 >conftest.err
3775 cat conftest.err >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } &&
3778 { ac_try='test -z "$ac_c_werror_flag"
3779 || test ! -s conftest.err'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; } &&
3785 { ac_try='test -s conftest$ac_exeext'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; }; then
3791 ac_cv_lib_util_openpty=yes
3793 echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3796 ac_cv_lib_util_openpty=no
3798 rm -f conftest.err conftest.$ac_objext \
3799 conftest$ac_exeext conftest.$ac_ext
3800 LIBS=$ac_check_lib_save_LIBS
3802 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
3803 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
3804 if test $ac_cv_lib_util_openpty = yes; then
3805 cat >>confdefs.h <<\_ACEOF
3806 #define HAVE_OPENPTY 1
3816 { echo "$as_me:$LINENO: checking for ptyranges..." >&5
3817 echo "$as_me: checking for ptyranges..." >&6;}
3818 if test -d /dev/ptym ; then
3823 cat >conftest.$ac_ext <<_ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3835 $EGREP "yes" >/dev/null 2>&1; then
3836 ptys=`echo /dev/ptyp??`
3838 ptys=`echo $pdir/pty??`
3842 if test "$ptys" != "$pdir/pty??" ; then
3843 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
3844 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
3845 cat >>confdefs.h <<_ACEOF
3846 #define PTYRANGE0 "$p0"
3849 cat >>confdefs.h <<_ACEOF
3850 #define PTYRANGE1 "$p1"
3856 # Check whether --with-pty-mode or --without-pty-mode was given.
3857 if test "${with_pty_mode+set}" = set; then
3858 withval="$with_pty_mode"
3859 ptymode="${withval}"
3862 # Check whether --with-pty-group or --without-pty-group was given.
3863 if test "${with_pty_group+set}" = set; then
3864 withval="$with_pty_group"
3867 test -n "$ptymode" || ptymode=0620
3868 if test -n "$ptygrp" ; then
3869 cat >>confdefs.h <<_ACEOF
3870 #define PTYMODE $ptymode
3873 cat >>confdefs.h <<_ACEOF
3874 #define PTYGROUP $ptygrp
3879 { echo "$as_me:$LINENO: checking default tty permissions/group..." >&5
3880 echo "$as_me: checking default tty permissions/group..." >&6;}
3882 if test "$cross_compiling" = yes; then
3883 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3884 See \`config.log' for more details." >&5
3885 echo "$as_me: error: cannot run test program while cross compiling
3886 See \`config.log' for more details." >&2;}
3887 { (exit 1); exit 1; }; }
3889 cat >conftest.$ac_ext <<_ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3896 #include <sys/types.h>
3897 #include <sys/stat.h>
3906 if (!(x = ttyname(0))) exit(1);
3907 if (stat(x, &sb)) exit(1);
3909 if (om & 002) exit(0);
3910 m = system("mesg y");
3911 if (m == -1 || m == 127) exit(1);
3912 if (stat(x, &sb)) exit(1);
3914 if (chmod(x, om)) exit(1);
3915 if (m & 002) exit(0);
3916 if (sb.st_gid == getgid()) exit(1);
3917 if (!(fp=fopen("conftest_grp", "w")))
3919 fprintf(fp, "%d\n", sb.st_gid);
3925 rm -f conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3937 if test -f conftest_grp; then
3938 ptygrp=`cat conftest_grp`
3939 echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
3941 cat >>confdefs.h <<_ACEOF
3942 #define PTYMODE $ptymode
3945 cat >>confdefs.h <<_ACEOF
3946 #define PTYGROUP $ptygrp
3950 echo "- ptys are world accessable" 1>&6
3955 echo "$as_me: program exited with status $ac_status" >&5
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3963 # Extract the first word of "write", so it can be a program name with args.
3964 set dummy write; ac_word=$2
3965 echo "$as_me:$LINENO: checking for $ac_word" >&5
3966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3967 if test "${ac_cv_path_WRITEPATH+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 ac_cv_path_WRITEPATH="$WRITEPATH" # Let the user override the test with a path.
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3982 ac_cv_path_WRITEPATH="$as_dir/$ac_word$ac_exec_ext"
3983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 WRITEPATH=$ac_cv_path_WRITEPATH
3994 if test -n "$WRITEPATH"; then
3995 echo "$as_me:$LINENO: result: $WRITEPATH" >&5
3996 echo "${ECHO_T}$WRITEPATH" >&6
3998 echo "$as_me:$LINENO: result: no" >&5
3999 echo "${ECHO_T}no" >&6
4002 # Extract the first word of "xterm", so it can be a program name with args.
4003 set dummy xterm; ac_word=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_path_XTERMPATH+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 ac_cv_path_XTERMPATH="$XTERMPATH" # Let the user override the test with a path.
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_path_XTERMPATH="$as_dir/$ac_word$ac_exec_ext"
4022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 XTERMPATH=$ac_cv_path_XTERMPATH
4033 if test -n "$XTERMPATH"; then
4034 echo "$as_me:$LINENO: result: $XTERMPATH" >&5
4035 echo "${ECHO_T}$XTERMPATH" >&6
4037 echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4042 if test -n "$WRITEPATH$XTERMPATH"; then
4045 found=`find $WRITEPATH $XTERMPATH -follow -print 2>/dev/null`
4046 if test -n "$found"; then
4050 if test -n "$XTERMPATH"; then
4051 ptygrpn=`ls -l$lsfollow $XTERMPATH | sed -n -e 1p | $AWK '{print $4}'`
4052 if test tty != "$ptygrpn"; then
4057 if test -n "$WRITEPATH$XTERMPATH"; then
4058 found=`find $WRITEPATH $XTERMPATH $findfollow -perm -2000 -print`
4059 if test -n "$found"; then
4060 ptygrp=`ls -ln$lsfollow $found | sed -n -e 1p | $AWK '{print $4}'`
4061 echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
4063 cat >>confdefs.h <<_ACEOF
4064 #define PTYMODE $ptymode
4067 cat >>confdefs.h <<_ACEOF
4068 #define PTYGROUP $ptygrp
4072 echo "- ptys are world accessable" 1>&6
4076 echo "- can't determine - assume ptys are world accessable" 1>&6
4082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4087 if test -n "$posix" ; then
4089 echo "assuming posix signal definition" 1>&6
4091 cat >>confdefs.h <<\_ACEOF
4098 { echo "$as_me:$LINENO: checking return type of signal handlers..." >&5
4099 echo "$as_me: checking return type of signal handlers..." >&6;}
4100 cat >conftest.$ac_ext <<_ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4106 #include <sys/types.h>
4111 extern void (*signal ()) ();
4120 rm -f conftest.$ac_objext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 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); } &&
4129 { ac_try='test -z "$ac_c_werror_flag"
4130 || test ! -s conftest.err'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4142 cat >>confdefs.h <<\_ACEOF
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4152 { echo "$as_me:$LINENO: checking sigset..." >&5
4153 echo "$as_me: checking sigset..." >&6;}
4154 cat >conftest.$ac_ext <<_ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4161 #include <sys/types.h>
4169 sigset(0, (void (*)())0);
4171 sigset(0, (int (*)())0);
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180 (eval $ac_link) 2>conftest.er1
4182 grep -v '^ *+' conftest.er1 >conftest.err
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -z "$ac_c_werror_flag"
4188 || test ! -s conftest.err'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; } &&
4194 { ac_try='test -s conftest$ac_exeext'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 cat >>confdefs.h <<\_ACEOF
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4209 rm -f conftest.err conftest.$ac_objext \
4210 conftest$ac_exeext conftest.$ac_ext
4211 { echo "$as_me:$LINENO: checking signal implementation..." >&5
4212 echo "$as_me: checking signal implementation..." >&6;}
4213 if test "$cross_compiling" = yes; then
4214 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4215 See \`config.log' for more details." >&5
4216 echo "$as_me: error: cannot run test program while cross compiling
4217 See \`config.log' for more details." >&2;}
4218 { (exit 1); exit 1; }; }
4220 cat >conftest.$ac_ext <<_ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4227 #include <sys/types.h>
4231 #define SIGCLD SIGCHLD
4234 #define signal sigset
4249 /* on hpux we use sigvec to get bsd signals */
4251 (void)signal(SIGCLD, hand);
4252 kill(getpid(), SIGCLD);
4253 kill(getpid(), SIGCLD);
4261 rm -f conftest$ac_exeext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4263 (eval $ac_link) 2>&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4274 echo "$as_me: program exited with status $ac_status" >&5
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4279 cat >>confdefs.h <<\_ACEOF
4284 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4289 ac_config_files="$ac_config_files Makefile"
4290 cat >confcache <<\_ACEOF
4291 # This file is a shell script that caches the results of configure
4292 # tests run on this system so they can be shared between configure
4293 # scripts and configure runs, see configure's option --config-cache.
4294 # It is not useful on other systems. If it contains results you don't
4295 # want to keep, you may remove or edit it.
4297 # config.status only pays attention to the cache file if you give it
4298 # the --recheck option to rerun configure.
4300 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4301 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4306 # The following way of writing the cache mishandles newlines in values,
4307 # but we know of no workaround that is simple, portable, and efficient.
4308 # So, don't put newlines in cache variables' values.
4309 # Ultrix sh set writes to stderr and can't be redirected directly,
4310 # and sets the high bit in the cache file unless we assign to the vars.
4313 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4315 # `set' does not quote correctly, so add quotes (double-quote
4316 # substitution turns \\\\ into \\, and sed turns \\ into \).
4319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4322 # `set' quotes correctly as required by POSIX, so do not add quotes.
4324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4331 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4333 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4335 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4336 if test -w $cache_file; then
4337 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4338 cat confcache >$cache_file
4340 echo "not updating unwritable cache $cache_file"
4345 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4346 # Let make expand exec_prefix.
4347 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4349 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4350 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4351 # trailing colons and then remove the whole line if VPATH becomes empty
4352 # (actually we leave an empty line to preserve line numbers).
4353 if test "x$srcdir" = x.; then
4354 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4355 s/:*\$(srcdir):*/:/;
4356 s/:*\${srcdir}:*/:/;
4358 s/^\([^=]*=[ ]*\):*/\1/;
4364 DEFS=-DHAVE_CONFIG_H
4368 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4369 # 1. Remove the extension, and $U if already installed.
4370 ac_i=`echo "$ac_i" |
4371 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4373 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4374 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4378 LTLIBOBJS=$ac_ltlibobjs
4382 : ${CONFIG_STATUS=./config.status}
4383 ac_clean_files_save=$ac_clean_files
4384 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4385 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4386 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4387 cat >$CONFIG_STATUS <<_ACEOF
4389 # Generated by $as_me.
4390 # Run this file to recreate the current configuration.
4391 # Compiler output produced by configure, useful for debugging
4392 # configure, is in config.log if it exists.
4397 SHELL=\${CONFIG_SHELL-$SHELL}
4400 cat >>$CONFIG_STATUS <<\_ACEOF
4401 ## --------------------- ##
4402 ## M4sh Initialization. ##
4403 ## --------------------- ##
4405 # Be Bourne compatible
4406 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4409 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4410 # is contrary to our usage. Disable this feature.
4411 alias -g '${1+"$@"}'='"$@"'
4412 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4415 DUALCASE=1; export DUALCASE # for MKS sh
4417 # Support unset when possible.
4418 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4425 # Work around bugs in pre-3.0 UWIN ksh.
4426 $as_unset ENV MAIL MAILPATH
4433 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4434 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4435 LC_TELEPHONE LC_TIME
4437 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4438 eval $as_var=C; export $as_var
4444 # Required to use basename.
4445 if expr a : '\(a\)' >/dev/null 2>&1; then
4451 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4452 as_basename=basename
4458 # Name of the executable.
4459 as_me=`$as_basename "$0" ||
4460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4461 X"$0" : 'X\(//\)$' \| \
4462 X"$0" : 'X\(/\)$' \| \
4463 . : '\(.\)' 2>/dev/null ||
4465 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4466 /^X\/\(\/\/\)$/{ s//\1/; q; }
4467 /^X\/\(\/\).*/{ s//\1/; q; }
4471 # PATH needs CR, and LINENO needs CR and PATH.
4472 # Avoid depending upon Character Ranges.
4473 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4474 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4475 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4476 as_cr_digits='0123456789'
4477 as_cr_alnum=$as_cr_Letters$as_cr_digits
4479 # The user is always right.
4480 if test "${PATH_SEPARATOR+set}" != set; then
4481 echo "#! /bin/sh" >conf$$.sh
4482 echo "exit 0" >>conf$$.sh
4484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4495 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4496 test "x$as_lineno_1" != "x$as_lineno_2" &&
4497 test "x$as_lineno_3" = "x$as_lineno_2" || {
4498 # Find who we are. Look in the path if we contain no path at all
4501 *[\\/]* ) as_myself=$0 ;;
4502 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 test -z "$as_dir" && as_dir=.
4507 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4512 # We did not find ourselves, most probably we were run as `sh COMMAND'
4513 # in which case we are not to be found in the path.
4514 if test "x$as_myself" = x; then
4517 if test ! -f "$as_myself"; then
4518 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4519 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4520 { (exit 1); exit 1; }; }
4522 case $CONFIG_SHELL in
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4528 test -z "$as_dir" && as_dir=.
4529 for as_base in sh bash ksh sh5; do
4532 if ("$as_dir/$as_base" -c '
4535 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4536 test "x$as_lineno_1" != "x$as_lineno_2" &&
4537 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4538 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4539 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4540 CONFIG_SHELL=$as_dir/$as_base
4542 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4550 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4551 # uniformly replaced by the line number. The first 'sed' inserts a
4552 # line-number line before each line; the second 'sed' does the real
4553 # work. The second script uses 'N' to pair each line-number line
4554 # with the numbered line, and appends trailing '-' during
4555 # substitution so that $LINENO is not a special case at line end.
4556 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4557 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4558 sed '=' <$as_myself |
4563 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4566 s,^['$as_cr_digits']*\n,,
4568 chmod +x $as_me.lineno ||
4569 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4570 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4571 { (exit 1); exit 1; }; }
4573 # Don't try to exec as it changes $[0], causing all sort of problems
4574 # (the dirname of $[0] is not the place where we might find the
4575 # original and so on. Autoconf is especially sensible to this).
4577 # Exit status is that of the last command.
4582 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4583 *c*,-n*) ECHO_N= ECHO_C='
4585 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4586 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4589 if expr a : '\(a\)' >/dev/null 2>&1; then
4595 rm -f conf$$ conf$$.exe conf$$.file
4597 if ln -s conf$$.file conf$$ 2>/dev/null; then
4598 # We could just check for DJGPP; but this test a) works b) is more generic
4599 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4600 if test -f conf$$.exe; then
4601 # Don't use ln at all; we don't have any links
4606 elif ln conf$$.file conf$$ 2>/dev/null; then
4611 rm -f conf$$ conf$$.exe conf$$.file
4613 if mkdir -p . 2>/dev/null; then
4616 test -d ./-p && rmdir ./-p
4620 as_executable_p="test -f"
4622 # Sed expression to map a string onto a valid CPP name.
4623 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4625 # Sed expression to map a string onto a valid variable name.
4626 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4630 # We need space, tab and new line, in precisely that order.
4640 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4641 # report actual input values of CONFIG_FILES etc. instead of their
4642 # values after options handling. Logging --version etc. is OK.
4646 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4647 ## Running $as_me. ##
4652 This file was extended by $as_me, which was
4653 generated by GNU Autoconf 2.59. Invocation command line was
4655 CONFIG_FILES = $CONFIG_FILES
4656 CONFIG_HEADERS = $CONFIG_HEADERS
4657 CONFIG_LINKS = $CONFIG_LINKS
4658 CONFIG_COMMANDS = $CONFIG_COMMANDS
4662 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4666 # Files that config.status was made for.
4667 if test -n "$ac_config_files"; then
4668 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4671 if test -n "$ac_config_headers"; then
4672 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4675 if test -n "$ac_config_links"; then
4676 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4679 if test -n "$ac_config_commands"; then
4680 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4683 cat >>$CONFIG_STATUS <<\_ACEOF
4686 \`$as_me' instantiates files from templates according to the
4687 current configuration.
4689 Usage: $0 [OPTIONS] [FILE]...
4691 -h, --help print this help, then exit
4692 -V, --version print version number, then exit
4693 -q, --quiet do not print progress messages
4694 -d, --debug don't remove temporary files
4695 --recheck update $as_me by reconfiguring in the same conditions
4696 --file=FILE[:TEMPLATE]
4697 instantiate the configuration file FILE
4698 --header=FILE[:TEMPLATE]
4699 instantiate the configuration header FILE
4701 Configuration files:
4704 Configuration headers:
4707 Report bugs to <bug-autoconf@gnu.org>."
4710 cat >>$CONFIG_STATUS <<_ACEOF
4713 configured by $0, generated by GNU Autoconf 2.59,
4714 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4716 Copyright (C) 2003 Free Software Foundation, Inc.
4717 This config.status script is free software; the Free Software Foundation
4718 gives unlimited permission to copy, distribute and modify it."
4722 cat >>$CONFIG_STATUS <<\_ACEOF
4723 # If no file are specified by the user, then we need to provide default
4724 # value. By we need to know if files were specified by the user.
4730 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4731 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4739 *) # This is not an option, so the user has probably given explicit
4742 ac_need_defaults=false;;
4746 # Handling of the options.
4748 cat >>$CONFIG_STATUS <<\_ACEOF
4749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4751 --version | --vers* | -V )
4752 echo "$ac_cs_version"; exit 0 ;;
4754 # Conflict between --help and --header
4755 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4756 Try \`$0 --help' for more information." >&5
4757 echo "$as_me: error: ambiguous option: $1
4758 Try \`$0 --help' for more information." >&2;}
4759 { (exit 1); exit 1; }; };;
4760 --help | --hel | -h )
4761 echo "$ac_cs_usage"; exit 0 ;;
4762 --debug | --d* | -d )
4764 --file | --fil | --fi | --f )
4766 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4767 ac_need_defaults=false;;
4768 --header | --heade | --head | --hea )
4770 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4771 ac_need_defaults=false;;
4772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4777 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4778 Try \`$0 --help' for more information." >&5
4779 echo "$as_me: error: unrecognized option: $1
4780 Try \`$0 --help' for more information." >&2;}
4781 { (exit 1); exit 1; }; } ;;
4783 *) ac_config_targets="$ac_config_targets $1" ;;
4789 ac_configure_extra_args=
4791 if $ac_cs_silent; then
4793 ac_configure_extra_args="$ac_configure_extra_args --silent"
4797 cat >>$CONFIG_STATUS <<_ACEOF
4798 if \$ac_cs_recheck; then
4799 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4800 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4809 cat >>$CONFIG_STATUS <<\_ACEOF
4810 for ac_config_target in $ac_config_targets
4812 case "$ac_config_target" in
4813 # Handling of arguments.
4814 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4815 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4816 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4817 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4818 { (exit 1); exit 1; }; };;
4822 # If the user did not use the arguments to specify the items to instantiate,
4823 # then the envvar interface is used. Set only those that are not.
4824 # We use the long form for the default assignment because of an extremely
4825 # bizarre bug on SunOS 4.1.3.
4826 if $ac_need_defaults; then
4827 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4828 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4831 # Have a temporary directory for convenience. Make it in the build tree
4832 # simply because there is no reason to put it here, and in addition,
4833 # creating and moving files from /tmp can sometimes cause problems.
4834 # Create a temporary directory, and hook for its removal unless debugging.
4837 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4838 trap '{ (exit 1); exit 1; }' 1 2 13 15
4841 # Create a (secure) tmp directory for tmp files.
4844 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4845 test -n "$tmp" && test -d "$tmp"
4848 tmp=./confstat$$-$RANDOM
4849 (umask 077 && mkdir $tmp)
4852 echo "$me: cannot create a temporary directory in ." >&2
4853 { (exit 1); exit 1; }
4858 cat >>$CONFIG_STATUS <<_ACEOF
4861 # CONFIG_FILES section.
4864 # No need to generate the scripts if there are no CONFIG_FILES.
4865 # This happens for instance when ./config.status config.h
4866 if test -n "\$CONFIG_FILES"; then
4867 # Protect against being on the right side of a sed subst in config.status.
4868 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4869 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4870 s,@SHELL@,$SHELL,;t t
4871 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4872 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4873 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4874 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4875 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4876 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4877 s,@exec_prefix@,$exec_prefix,;t t
4878 s,@prefix@,$prefix,;t t
4879 s,@program_transform_name@,$program_transform_name,;t t
4880 s,@bindir@,$bindir,;t t
4881 s,@sbindir@,$sbindir,;t t
4882 s,@libexecdir@,$libexecdir,;t t
4883 s,@datadir@,$datadir,;t t
4884 s,@sysconfdir@,$sysconfdir,;t t
4885 s,@sharedstatedir@,$sharedstatedir,;t t
4886 s,@localstatedir@,$localstatedir,;t t
4887 s,@libdir@,$libdir,;t t
4888 s,@includedir@,$includedir,;t t
4889 s,@oldincludedir@,$oldincludedir,;t t
4890 s,@infodir@,$infodir,;t t
4891 s,@mandir@,$mandir,;t t
4892 s,@build_alias@,$build_alias,;t t
4893 s,@host_alias@,$host_alias,;t t
4894 s,@target_alias@,$target_alias,;t t
4896 s,@ECHO_C@,$ECHO_C,;t t
4897 s,@ECHO_N@,$ECHO_N,;t t
4898 s,@ECHO_T@,$ECHO_T,;t t
4900 s,@VERSION@,$VERSION,;t t
4902 s,@CFLAGS@,$CFLAGS,;t t
4903 s,@LDFLAGS@,$LDFLAGS,;t t
4904 s,@CPPFLAGS@,$CPPFLAGS,;t t
4905 s,@ac_ct_CC@,$ac_ct_CC,;t t
4906 s,@EXEEXT@,$EXEEXT,;t t
4907 s,@OBJEXT@,$OBJEXT,;t t
4909 s,@EGREP@,$EGREP,;t t
4911 s,@WRITEPATH@,$WRITEPATH,;t t
4912 s,@XTERMPATH@,$XTERMPATH,;t t
4913 s,@LIBOBJS@,$LIBOBJS,;t t
4914 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4919 cat >>$CONFIG_STATUS <<\_ACEOF
4920 # Split the substitutions into bite-sized pieces for seds with
4921 # small command number limits, like on Digital OSF/1 and HP-UX.
4923 ac_sed_frag=1 # Number of current file.
4924 ac_beg=1 # First line for current file.
4925 ac_end=$ac_max_sed_lines # Line after last line for current file.
4928 while $ac_more_lines; do
4929 if test $ac_beg -gt 1; then
4930 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4932 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4934 if test ! -s $tmp/subs.frag; then
4937 # The purpose of the label and of the branching condition is to
4938 # speed up the sed processing (if there are no `@' at all, there
4939 # is no need to browse any of the substitutions).
4940 # These are the two extra sed commands mentioned above.
4942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4943 if test -z "$ac_sed_cmds"; then
4944 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4946 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4948 ac_sed_frag=`expr $ac_sed_frag + 1`
4950 ac_end=`expr $ac_end + $ac_max_sed_lines`
4953 if test -z "$ac_sed_cmds"; then
4956 fi # test -n "$CONFIG_FILES"
4959 cat >>$CONFIG_STATUS <<\_ACEOF
4960 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4961 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4963 - | *:- | *:-:* ) # input from stdin
4965 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4966 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4967 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4968 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4969 * ) ac_file_in=$ac_file.in ;;
4972 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4973 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4974 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4975 X"$ac_file" : 'X\(//\)[^/]' \| \
4976 X"$ac_file" : 'X\(//\)$' \| \
4977 X"$ac_file" : 'X\(/\)' \| \
4978 . : '\(.\)' 2>/dev/null ||
4980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4981 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4982 /^X\(\/\/\)$/{ s//\1/; q; }
4983 /^X\(\/\).*/{ s//\1/; q; }
4985 { if $as_mkdir_p; then
4990 while test ! -d "$as_dir"; do
4991 as_dirs="$as_dir $as_dirs"
4992 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4994 X"$as_dir" : 'X\(//\)[^/]' \| \
4995 X"$as_dir" : 'X\(//\)$' \| \
4996 X"$as_dir" : 'X\(/\)' \| \
4997 . : '\(.\)' 2>/dev/null ||
4999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5001 /^X\(\/\/\)$/{ s//\1/; q; }
5002 /^X\(\/\).*/{ s//\1/; q; }
5005 test ! -n "$as_dirs" || mkdir $as_dirs
5006 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5007 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5008 { (exit 1); exit 1; }; }; }
5012 if test "$ac_dir" != .; then
5013 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5014 # A "../" for each directory in $ac_dir_suffix.
5015 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5017 ac_dir_suffix= ac_top_builddir=
5021 .) # No --srcdir option. We are building in place.
5023 if test -z "$ac_top_builddir"; then
5026 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5028 [\\/]* | ?:[\\/]* ) # Absolute path.
5029 ac_srcdir=$srcdir$ac_dir_suffix;
5030 ac_top_srcdir=$srcdir ;;
5032 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5033 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5036 # Do not use `cd foo && pwd` to compute absolute paths, because
5037 # the directories may not exist.
5039 .) ac_abs_builddir="$ac_dir";;
5042 .) ac_abs_builddir=`pwd`;;
5043 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5044 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5047 case $ac_abs_builddir in
5048 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5050 case ${ac_top_builddir}. in
5051 .) ac_abs_top_builddir=$ac_abs_builddir;;
5052 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5053 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5056 case $ac_abs_builddir in
5057 .) ac_abs_srcdir=$ac_srcdir;;
5060 .) ac_abs_srcdir=$ac_abs_builddir;;
5061 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5062 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5065 case $ac_abs_builddir in
5066 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5068 case $ac_top_srcdir in
5069 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5070 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5071 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5077 if test x"$ac_file" != x-; then
5078 { echo "$as_me:$LINENO: creating $ac_file" >&5
5079 echo "$as_me: creating $ac_file" >&6;}
5082 # Let's still pretend it is `configure' which instantiates (i.e., don't
5083 # use $as_me), people would be surprised to read:
5084 # /* config.h. Generated by config.status. */
5085 if test x"$ac_file" = x-; then
5088 configure_input="$ac_file. "
5090 configure_input=$configure_input"Generated from `echo $ac_file_in |
5091 sed 's,.*/,,'` by configure."
5093 # First look for the input files in the build tree, otherwise in the
5095 ac_file_inputs=`IFS=:
5096 for f in $ac_file_in; do
5098 -) echo $tmp/stdin ;;
5100 # Absolute (can't be DOS-style, as IFS=:)
5101 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5102 echo "$as_me: error: cannot find input file: $f" >&2;}
5103 { (exit 1); exit 1; }; }
5106 if test -f "$f"; then
5109 elif test -f "$srcdir/$f"; then
5114 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5115 echo "$as_me: error: cannot find input file: $f" >&2;}
5116 { (exit 1); exit 1; }; }
5119 done` || { (exit 1); exit 1; }
5121 cat >>$CONFIG_STATUS <<_ACEOF
5125 cat >>$CONFIG_STATUS <<\_ACEOF
5127 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5128 s,@configure_input@,$configure_input,;t t
5129 s,@srcdir@,$ac_srcdir,;t t
5130 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5131 s,@top_srcdir@,$ac_top_srcdir,;t t
5132 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5133 s,@builddir@,$ac_builddir,;t t
5134 s,@abs_builddir@,$ac_abs_builddir,;t t
5135 s,@top_builddir@,$ac_top_builddir,;t t
5136 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5137 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5139 if test x"$ac_file" != x-; then
5140 mv $tmp/out $ac_file
5148 cat >>$CONFIG_STATUS <<\_ACEOF
5151 # CONFIG_HEADER section.
5154 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5155 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5157 # ac_d sets the value in "#define NAME VALUE" lines.
5158 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5159 ac_dB='[ ].*$,\1#\2'
5162 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5163 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5164 ac_uB='$,\1#\2define\3'
5168 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5169 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5171 - | *:- | *:-:* ) # input from stdin
5173 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5174 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5175 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5176 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5177 * ) ac_file_in=$ac_file.in ;;
5180 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5181 echo "$as_me: creating $ac_file" >&6;}
5183 # First look for the input files in the build tree, otherwise in the
5185 ac_file_inputs=`IFS=:
5186 for f in $ac_file_in; do
5188 -) echo $tmp/stdin ;;
5190 # Absolute (can't be DOS-style, as IFS=:)
5191 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5192 echo "$as_me: error: cannot find input file: $f" >&2;}
5193 { (exit 1); exit 1; }; }
5194 # Do quote $f, to prevent DOS paths from being IFS'd.
5197 if test -f "$f"; then
5200 elif test -f "$srcdir/$f"; then
5205 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5206 echo "$as_me: error: cannot find input file: $f" >&2;}
5207 { (exit 1); exit 1; }; }
5210 done` || { (exit 1); exit 1; }
5211 # Remove the trailing spaces.
5212 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5216 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5217 # `conftest.undefs', that substitutes the proper values into
5218 # config.h.in to produce config.h. The first handles `#define'
5219 # templates, and the second `#undef' templates.
5220 # And first: Protect against being on the right side of a sed subst in
5221 # config.status. Protect against being in an unquoted here document
5223 rm -f conftest.defines conftest.undefs
5224 # Using a here document instead of a string reduces the quoting nightmare.
5225 # Putting comments in sed scripts is not portable.
5227 # `end' is used to avoid that the second main sed command (meant for
5228 # 0-ary CPP macros) applies to n-ary macro definitions.
5229 # See the Autoconf documentation for `clear'.
5230 cat >confdef2sed.sed <<\_ACEOF
5235 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5237 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5240 # If some macros were called several times there might be several times
5241 # the same #defines, which is useless. Nevertheless, we may not want to
5242 # sort them, since we want the *last* AC-DEFINE to be honored.
5243 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5244 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5245 rm -f confdef2sed.sed
5247 # This sed command replaces #undef with comments. This is necessary, for
5248 # example, in the case of _POSIX_SOURCE, which is predefined and required
5249 # on some systems where configure will not decide to define it.
5250 cat >>conftest.undefs <<\_ACEOF
5251 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5254 # Break up conftest.defines because some shells have a limit on the size
5255 # of here documents, and old seds have small limits too (100 cmds).
5256 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5257 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5258 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5259 echo ' :' >>$CONFIG_STATUS
5261 while grep . conftest.defines >/dev/null
5263 # Write a limited-size here document to $tmp/defines.sed.
5264 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5265 # Speed up: don't consider the non `#define' lines.
5266 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5267 # Work around the forget-to-reset-the-flag bug.
5268 echo 't clr' >>$CONFIG_STATUS
5269 echo ': clr' >>$CONFIG_STATUS
5270 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5272 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5276 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5277 rm -f conftest.defines
5278 mv conftest.tail conftest.defines
5280 rm -f conftest.defines
5281 echo ' fi # grep' >>$CONFIG_STATUS
5282 echo >>$CONFIG_STATUS
5284 # Break up conftest.undefs because some shells have a limit on the size
5285 # of here documents, and old seds have small limits too (100 cmds).
5286 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5288 while grep . conftest.undefs >/dev/null
5290 # Write a limited-size here document to $tmp/undefs.sed.
5291 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5292 # Speed up: don't consider the non `#undef'
5293 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5294 # Work around the forget-to-reset-the-flag bug.
5295 echo 't clr' >>$CONFIG_STATUS
5296 echo ': clr' >>$CONFIG_STATUS
5297 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5299 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5303 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5304 rm -f conftest.undefs
5305 mv conftest.tail conftest.undefs
5307 rm -f conftest.undefs
5309 cat >>$CONFIG_STATUS <<\_ACEOF
5310 # Let's still pretend it is `configure' which instantiates (i.e., don't
5311 # use $as_me), people would be surprised to read:
5312 # /* config.h. Generated by config.status. */
5313 if test x"$ac_file" = x-; then
5314 echo "/* Generated by configure. */" >$tmp/config.h
5316 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5318 cat $tmp/in >>$tmp/config.h
5320 if test x"$ac_file" != x-; then
5321 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5322 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5323 echo "$as_me: $ac_file is unchanged" >&6;}
5325 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5326 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5327 X"$ac_file" : 'X\(//\)[^/]' \| \
5328 X"$ac_file" : 'X\(//\)$' \| \
5329 X"$ac_file" : 'X\(/\)' \| \
5330 . : '\(.\)' 2>/dev/null ||
5332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5334 /^X\(\/\/\)$/{ s//\1/; q; }
5335 /^X\(\/\).*/{ s//\1/; q; }
5337 { if $as_mkdir_p; then
5342 while test ! -d "$as_dir"; do
5343 as_dirs="$as_dir $as_dirs"
5344 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5346 X"$as_dir" : 'X\(//\)[^/]' \| \
5347 X"$as_dir" : 'X\(//\)$' \| \
5348 X"$as_dir" : 'X\(/\)' \| \
5349 . : '\(.\)' 2>/dev/null ||
5351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5353 /^X\(\/\/\)$/{ s//\1/; q; }
5354 /^X\(\/\).*/{ s//\1/; q; }
5357 test ! -n "$as_dirs" || mkdir $as_dirs
5358 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5359 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5360 { (exit 1); exit 1; }; }; }
5363 mv $tmp/config.h $ac_file
5372 cat >>$CONFIG_STATUS <<\_ACEOF
5374 { (exit 0); exit 0; }
5376 chmod +x $CONFIG_STATUS
5377 ac_clean_files=$ac_clean_files_save
5380 # configure is writing to config.log, and then calls config.status.
5381 # config.status does its own redirection, appending to config.log.
5382 # Unfortunately, on DOS this fails, as config.log is still kept open
5383 # by configure, so config.status won't be able to write to it; its
5384 # output is simply discarded. So we exec the FD to /dev/null,
5385 # effectively closing config.log, so it can be properly (re)opened and
5386 # appended to by config.status. When coming back to configure, we
5387 # need to make the FD available again.
5388 if test "$no_create" != yes; then
5390 ac_config_status_args=
5391 test "$silent" = yes &&
5392 ac_config_status_args="$ac_config_status_args --quiet"
5394 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5396 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5397 # would make configure fail if this is the last instruction.
5398 $ac_cs_success || { (exit 1); exit 1; }