2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="abook.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 if test -n "$ac_init_help"; then
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --disable-dependency-tracking Speeds up one-time builds
852 --enable-dependency-tracking Do not reject slow dependency extractors
853 --enable-debug Enable debugging support
856 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
857 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
858 --with-curses=DIR Where ncurses is installed
859 --with-readline=DIR Where readline is installed
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 ac_dir_suffix= ac_top_builddir=
892 .) # No --srcdir option. We are building in place.
894 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
909 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
910 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
911 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
914 # Check for guested configure; otherwise get Cygnus style configure.
915 if test -f $ac_srcdir/configure.gnu; then
917 $SHELL $ac_srcdir/configure.gnu --help=recursive
918 elif test -f $ac_srcdir/configure; then
920 $SHELL $ac_srcdir/configure --help=recursive
921 elif test -f $ac_srcdir/configure.ac ||
922 test -f $ac_srcdir/configure.in; then
926 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
932 test -n "$ac_init_help" && exit 0
933 if $ac_init_version; then
936 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
937 Free Software Foundation, Inc.
938 This configure script is free software; the Free Software Foundation
939 gives unlimited permission to copy, distribute and modify it.
945 This file contains any messages produced by compilers while
946 running configure, to aid debugging if configure makes a mistake.
948 It was created by $as_me, which was
949 generated by GNU Autoconf 2.57. Invocation command line was
960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
967 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
969 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
970 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
972 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
973 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
974 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
975 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
983 test -z "$as_dir" && as_dir=.
999 # Keep a trace of the command line.
1000 # Strip out --no-create and --no-recursion so they do not pile up.
1001 # Strip out --silent because we don't want to record it for future runs.
1002 # Also quote any args containing shell meta-characters.
1003 # Make two passes to allow for proper duplicate-argument suppression.
1008 ac_must_keep_next=false
1014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016 | -silent | --silent | --silen | --sile | --sil)
1018 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1019 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1022 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1024 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1025 if test $ac_must_keep_next = true; then
1026 ac_must_keep_next=false # Got value, back to normal.
1029 *=* | --config-cache | -C | -disable-* | --disable-* \
1030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1032 | -with-* | --with-* | -without-* | --without-* | --x)
1033 case "$ac_configure_args0 " in
1034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1037 -* ) ac_must_keep_next=true ;;
1040 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1047 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1048 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1050 # When interrupted or exit'd, cleanup temporary files, and complete
1051 # config.log. We remove comments because anyway the quotes in there
1052 # would cause problems or look ugly.
1053 # WARNING: Be sure not to use single quotes in there, as some shells,
1054 # such as our DU 5.0 friend, will then `close' the trap.
1055 trap 'exit_status=$?
1056 # Save into config.log some information that might help in debugging.
1061 ## ---------------- ##
1062 ## Cache variables. ##
1063 ## ---------------- ##
1066 # The following way of writing the cache mishandles newlines in values,
1069 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1072 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1077 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084 ## ----------------- ##
1085 ## Output variables. ##
1086 ## ----------------- ##
1089 for ac_var in $ac_subst_vars
1091 eval ac_val=$`echo $ac_var`
1092 echo "$ac_var='"'"'$ac_val'"'"'"
1096 if test -n "$ac_subst_files"; then
1103 for ac_var in $ac_subst_files
1105 eval ac_val=$`echo $ac_var`
1106 echo "$ac_var='"'"'$ac_val'"'"'"
1111 if test -s confdefs.h; then
1118 sed "/^$/d" confdefs.h | sort
1121 test "$ac_signal" != 0 &&
1122 echo "$as_me: caught signal $ac_signal"
1123 echo "$as_me: exit $exit_status"
1125 rm -f core core.* *.core &&
1126 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1129 for ac_signal in 1 2 13 15; do
1130 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1135 rm -rf conftest* confdefs.h
1136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1139 # Predefined preprocessor variables.
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_NAME "$PACKAGE_NAME"
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_STRING "$PACKAGE_STRING"
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1166 # Let the site file select an alternate cache file if it wants to.
1167 # Prefer explicitly selected file to automatically selected ones.
1168 if test -z "$CONFIG_SITE"; then
1169 if test "x$prefix" != xNONE; then
1170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1175 for ac_site_file in $CONFIG_SITE; do
1176 if test -r "$ac_site_file"; then
1177 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1178 echo "$as_me: loading site script $ac_site_file" >&6;}
1179 sed 's/^/| /' "$ac_site_file" >&5
1184 if test -r "$cache_file"; then
1185 # Some versions of bash will fail to source /dev/null (special
1186 # files actually), so we avoid doing that.
1187 if test -f "$cache_file"; then
1188 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1189 echo "$as_me: loading cache $cache_file" >&6;}
1191 [\\/]* | ?:[\\/]* ) . $cache_file;;
1192 *) . ./$cache_file;;
1196 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1197 echo "$as_me: creating cache $cache_file" >&6;}
1201 # Check that the precious variables saved in the cache have kept the same
1203 ac_cache_corrupted=false
1204 for ac_var in `(set) 2>&1 |
1205 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1207 eval ac_new_set=\$ac_env_${ac_var}_set
1208 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1209 eval ac_new_val="\$ac_env_${ac_var}_value"
1210 case $ac_old_set,$ac_new_set in
1212 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1214 ac_cache_corrupted=: ;;
1216 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1217 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1218 ac_cache_corrupted=: ;;
1221 if test "x$ac_old_val" != "x$ac_new_val"; then
1222 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1223 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1224 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1225 echo "$as_me: former value: $ac_old_val" >&2;}
1226 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1227 echo "$as_me: current value: $ac_new_val" >&2;}
1228 ac_cache_corrupted=:
1231 # Pass precious variables to config.status.
1232 if test "$ac_new_set" = set; then
1234 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1235 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1236 *) ac_arg=$ac_var=$ac_new_val ;;
1238 case " $ac_configure_args " in
1239 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1240 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1244 if $ac_cache_corrupted; then
1245 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1246 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1247 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1248 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1249 { (exit 1); exit 1; }; }
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1276 am__api_version="1.7"
1278 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1279 if test -f $ac_dir/install-sh; then
1281 ac_install_sh="$ac_aux_dir/install-sh -c"
1283 elif test -f $ac_dir/install.sh; then
1285 ac_install_sh="$ac_aux_dir/install.sh -c"
1287 elif test -f $ac_dir/shtool; then
1289 ac_install_sh="$ac_aux_dir/shtool install -c"
1293 if test -z "$ac_aux_dir"; then
1294 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1295 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1296 { (exit 1); exit 1; }; }
1298 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1299 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1300 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1302 # Find a good install program. We prefer a C program (faster),
1303 # so one script is as good as another. But avoid the broken or
1304 # incompatible versions:
1305 # SysV /etc/install, /usr/sbin/install
1306 # SunOS /usr/etc/install
1307 # IRIX /sbin/install
1309 # AmigaOS /C/install, which installs bootblocks on floppy discs
1310 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1311 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1312 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1313 # ./install, which can be erroneously created by make from ./install.sh.
1314 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1315 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1316 if test -z "$INSTALL"; then
1317 if test "${ac_cv_path_install+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1324 test -z "$as_dir" && as_dir=.
1325 # Account for people who put trailing slashes in PATH elements.
1327 ./ | .// | /cC/* | \
1328 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1331 # OSF1 and SCO ODT 3.0 have their own names for install.
1332 # Don't use installbsd from OSF since it installs stuff as root
1334 for ac_prog in ginstall scoinst install; do
1335 for ac_exec_ext in '' $ac_executable_extensions; do
1336 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1337 if test $ac_prog = install &&
1338 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1339 # AIX install. It has an incompatible calling convention.
1341 elif test $ac_prog = install &&
1342 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1343 # program-specific install script used by HP pwplus--don't use.
1346 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1358 if test "${ac_cv_path_install+set}" = set; then
1359 INSTALL=$ac_cv_path_install
1361 # As a last resort, use the slow shell script. We don't cache a
1362 # path for INSTALL within a source directory, because that will
1363 # break other packages using the cache if that directory is
1364 # removed, or if the path is relative.
1365 INSTALL=$ac_install_sh
1368 echo "$as_me:$LINENO: result: $INSTALL" >&5
1369 echo "${ECHO_T}$INSTALL" >&6
1371 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1372 # It thinks the first close brace ends the variable substitution.
1373 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1375 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1377 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1379 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1380 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1383 echo timestamp > conftest.file
1384 # Do `set' in a subshell so we don't clobber the current shell's
1385 # arguments. Must try -L first in case configure is actually a
1386 # symlink; some systems play weird games with the mod time of symlinks
1387 # (eg FreeBSD returns the mod time of the symlink's containing
1390 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1391 if test "$*" = "X"; then
1393 set X `ls -t $srcdir/configure conftest.file`
1396 if test "$*" != "X $srcdir/configure conftest.file" \
1397 && test "$*" != "X conftest.file $srcdir/configure"; then
1399 # If neither matched, then we have a broken ls. This can happen
1400 # if, for instance, CONFIG_SHELL is bash and it inherits a
1401 # broken ls alias from the environment. This has actually
1402 # happened. Such a system could not be considered "sane".
1403 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1404 alias in your environment" >&5
1405 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1406 alias in your environment" >&2;}
1407 { (exit 1); exit 1; }; }
1410 test "$2" = conftest.file
1416 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1417 Check your system clock" >&5
1418 echo "$as_me: error: newly created file is older than distributed files!
1419 Check your system clock" >&2;}
1420 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: result: yes" >&5
1423 echo "${ECHO_T}yes" >&6
1424 test "$program_prefix" != NONE &&
1425 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1426 # Use a double $ so make ignores it.
1427 test "$program_suffix" != NONE &&
1428 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1429 # Double any \ or $. echo might interpret backslashes.
1430 # By default was `s,x,x', remove it if useless.
1431 cat <<\_ACEOF >conftest.sed
1432 s/[\\$]/&&/g;s/;s,x,x,$//
1434 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1438 # expand $ac_aux_dir to an absolute path
1439 am_aux_dir=`cd $ac_aux_dir && pwd`
1441 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1442 # Use eval to expand $SHELL
1443 if eval "$MISSING --run true"; then
1444 am_missing_run="$MISSING --run "
1447 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1448 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1451 for ac_prog in gawk mawk nawk awk
1453 # Extract the first word of "$ac_prog", so it can be a program name with args.
1454 set dummy $ac_prog; ac_word=$2
1455 echo "$as_me:$LINENO: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_prog_AWK+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 if test -n "$AWK"; then
1461 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467 test -z "$as_dir" && as_dir=.
1468 for ac_exec_ext in '' $ac_executable_extensions; do
1469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1470 ac_cv_prog_AWK="$ac_prog"
1471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480 if test -n "$AWK"; then
1481 echo "$as_me:$LINENO: result: $AWK" >&5
1482 echo "${ECHO_T}$AWK" >&6
1484 echo "$as_me:$LINENO: result: no" >&5
1485 echo "${ECHO_T}no" >&6
1488 test -n "$AWK" && break
1491 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1492 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1493 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1494 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1497 cat >conftest.make <<\_ACEOF
1499 @echo 'ac_maketemp="$(MAKE)"'
1501 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1502 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1503 if test -n "$ac_maketemp"; then
1504 eval ac_cv_prog_make_${ac_make}_set=yes
1506 eval ac_cv_prog_make_${ac_make}_set=no
1510 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1511 echo "$as_me:$LINENO: result: yes" >&5
1512 echo "${ECHO_T}yes" >&6
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1517 SET_MAKE="MAKE=${MAKE-make}"
1520 rm -rf .tst 2>/dev/null
1521 mkdir .tst 2>/dev/null
1522 if test -d .tst; then
1527 rmdir .tst 2>/dev/null
1529 # test to see if srcdir already configured
1530 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1531 test -f $srcdir/config.status; then
1532 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1533 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1534 { (exit 1); exit 1; }; }
1537 # test whether we have cygpath
1538 if test -z "$CYGPATH_W"; then
1539 if (cygpath --version) >/dev/null 2>/dev/null; then
1540 CYGPATH_W='cygpath -w'
1547 # Define the identity of the package.
1552 cat >>confdefs.h <<_ACEOF
1553 #define PACKAGE "$PACKAGE"
1557 cat >>confdefs.h <<_ACEOF
1558 #define VERSION "$VERSION"
1561 # Some tools Automake needs.
1563 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1566 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1569 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1572 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1575 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1578 AMTAR=${AMTAR-"${am_missing_run}tar"}
1580 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1582 # Installed binaries are usually stripped using `strip' when the user
1583 # run `make install-strip'. However `strip' might not be the right
1584 # tool to use in cross-compilation environments, therefore Automake
1585 # will honor the `STRIP' environment variable to overrule this program.
1586 if test "$cross_compiling" != no; then
1587 if test -n "$ac_tool_prefix"; then
1588 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1589 set dummy ${ac_tool_prefix}strip; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_STRIP+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 if test -n "$STRIP"; then
1596 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 STRIP=$ac_cv_prog_STRIP
1615 if test -n "$STRIP"; then
1616 echo "$as_me:$LINENO: result: $STRIP" >&5
1617 echo "${ECHO_T}$STRIP" >&6
1619 echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1624 if test -z "$ac_cv_prog_STRIP"; then
1626 # Extract the first word of "strip", so it can be a program name with args.
1627 set dummy strip; ac_word=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 if test -n "$ac_ct_STRIP"; then
1634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 test -z "$as_dir" && as_dir=.
1641 for ac_exec_ext in '' $ac_executable_extensions; do
1642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643 ac_cv_prog_ac_ct_STRIP="strip"
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1654 if test -n "$ac_ct_STRIP"; then
1655 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1656 echo "${ECHO_T}$ac_ct_STRIP" >&6
1658 echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1664 STRIP="$ac_cv_prog_STRIP"
1668 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1670 # We need awk for the "check" target. The system "awk" is bad on
1675 ac_config_headers="$ac_config_headers config.h"
1679 cat >>confdefs.h <<\_ACEOF
1680 #define HAVE_SNPRINTF 0
1684 cat >>confdefs.h <<\_ACEOF
1685 #define HAVE_VSNPRINTF 0
1689 cat >>confdefs.h <<\_ACEOF
1690 #define HAVE_STDARG_H 0
1694 cat >>confdefs.h <<\_ACEOF
1695 #define HAVE_NCURSES 0
1699 # Make sure we can run config.sub.
1700 $ac_config_sub sun4 >/dev/null 2>&1 ||
1701 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1702 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1703 { (exit 1); exit 1; }; }
1705 echo "$as_me:$LINENO: checking build system type" >&5
1706 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1707 if test "${ac_cv_build+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 ac_cv_build_alias=$build_alias
1711 test -z "$ac_cv_build_alias" &&
1712 ac_cv_build_alias=`$ac_config_guess`
1713 test -z "$ac_cv_build_alias" &&
1714 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1715 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1716 { (exit 1); exit 1; }; }
1717 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1718 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1719 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1720 { (exit 1); exit 1; }; }
1723 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1724 echo "${ECHO_T}$ac_cv_build" >&6
1726 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1727 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1728 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1731 echo "$as_me:$LINENO: checking host system type" >&5
1732 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1733 if test "${ac_cv_host+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 ac_cv_host_alias=$host_alias
1737 test -z "$ac_cv_host_alias" &&
1738 ac_cv_host_alias=$ac_cv_build_alias
1739 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1740 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1741 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1742 { (exit 1); exit 1; }; }
1745 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1746 echo "${ECHO_T}$ac_cv_host" >&6
1748 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1749 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1750 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1755 ac_cpp='$CPP $CPPFLAGS'
1756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1759 if test -n "$ac_tool_prefix"; then
1760 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1761 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1762 echo "$as_me:$LINENO: checking for $ac_word" >&5
1763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764 if test "${ac_cv_prog_CC+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 if test -n "$CC"; then
1768 ac_cv_prog_CC="$CC" # Let the user override the test.
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 test -z "$as_dir" && as_dir=.
1775 for ac_exec_ext in '' $ac_executable_extensions; do
1776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787 if test -n "$CC"; then
1788 echo "$as_me:$LINENO: result: $CC" >&5
1789 echo "${ECHO_T}$CC" >&6
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1796 if test -z "$ac_cv_prog_CC"; then
1798 # Extract the first word of "gcc", so it can be a program name with args.
1799 set dummy gcc; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 if test -n "$ac_ct_CC"; then
1806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_ac_ct_CC="gcc"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1825 if test -n "$ac_ct_CC"; then
1826 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1827 echo "${ECHO_T}$ac_ct_CC" >&6
1829 echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1838 if test -z "$CC"; then
1839 if test -n "$ac_tool_prefix"; then
1840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1841 set dummy ${ac_tool_prefix}cc; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_CC+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 if test -n "$CC"; then
1848 ac_cv_prog_CC="$CC" # Let the user override the test.
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_CC="${ac_tool_prefix}cc"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 if test -n "$CC"; then
1868 echo "$as_me:$LINENO: result: $CC" >&5
1869 echo "${ECHO_T}$CC" >&6
1871 echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1876 if test -z "$ac_cv_prog_CC"; then
1878 # Extract the first word of "cc", so it can be a program name with args.
1879 set dummy cc; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$ac_ct_CC"; then
1886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_ac_ct_CC="cc"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1905 if test -n "$ac_ct_CC"; then
1906 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1907 echo "${ECHO_T}$ac_ct_CC" >&6
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1919 if test -z "$CC"; then
1920 # Extract the first word of "cc", so it can be a program name with args.
1921 set dummy cc; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 if test -n "$CC"; then
1928 ac_cv_prog_CC="$CC" # Let the user override the test.
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1939 ac_prog_rejected=yes
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 if test $ac_prog_rejected = yes; then
1950 # We found a bogon in the path, so make sure we never use it.
1951 set dummy $ac_cv_prog_CC
1953 if test $# != 0; then
1954 # We chose a different compiler from the bogus one.
1955 # However, it has the same basename, so the bogon will be chosen
1956 # first if we set CC to just the basename; use the full file name.
1958 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1964 if test -n "$CC"; then
1965 echo "$as_me:$LINENO: result: $CC" >&5
1966 echo "${ECHO_T}$CC" >&6
1968 echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1973 if test -z "$CC"; then
1974 if test -n "$ac_tool_prefix"; then
1977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 if test -n "$CC"; then
2005 echo "$as_me:$LINENO: result: $CC" >&5
2006 echo "${ECHO_T}$CC" >&6
2008 echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6
2012 test -n "$CC" && break
2015 if test -z "$CC"; then
2019 # Extract the first word of "$ac_prog", so it can be a program name with args.
2020 set dummy $ac_prog; ac_word=$2
2021 echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 if test -n "$ac_ct_CC"; then
2027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 test -z "$as_dir" && as_dir=.
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036 ac_cv_prog_ac_ct_CC="$ac_prog"
2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2046 if test -n "$ac_ct_CC"; then
2047 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2048 echo "${ECHO_T}$ac_ct_CC" >&6
2050 echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6
2054 test -n "$ac_ct_CC" && break
2063 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&5
2065 echo "$as_me: error: no acceptable C compiler found in \$PATH
2066 See \`config.log' for more details." >&2;}
2067 { (exit 1); exit 1; }; }
2069 # Provide some information about the compiler.
2070 echo "$as_me:$LINENO:" \
2071 "checking for C compiler version" >&5
2072 ac_compiler=`set X $ac_compile; echo $2`
2073 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2074 (eval $ac_compiler --version </dev/null >&5) 2>&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); }
2078 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2079 (eval $ac_compiler -v </dev/null >&5) 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2084 (eval $ac_compiler -V </dev/null >&5) 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2089 cat >conftest.$ac_ext <<_ACEOF
2090 #line $LINENO "configure"
2093 cat confdefs.h >>conftest.$ac_ext
2094 cat >>conftest.$ac_ext <<_ACEOF
2095 /* end confdefs.h. */
2105 ac_clean_files_save=$ac_clean_files
2106 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2107 # Try to create an executable without -o first, disregard a.out.
2108 # It will help us diagnose broken compilers, and finding out an intuition
2110 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2111 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2112 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2113 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2114 (eval $ac_link_default) 2>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; then
2118 # Find the output, starting from the most likely. This scheme is
2119 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2122 # Be careful to initialize this variable, since it used to be cached.
2123 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2125 # b.out is created by i960 compilers.
2126 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2128 test -f "$ac_file" || continue
2130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2133 # This is the source file.
2136 # We found the default executable, but exeext='' is most
2140 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2141 # FIXME: I believe we export ac_cv_exeext for Libtool,
2142 # but it would be cool to find out if it's true. Does anybody
2143 # maintain Libtool? --akim.
2151 echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2154 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2155 See \`config.log' for more details." >&5
2156 echo "$as_me: error: C compiler cannot create executables
2157 See \`config.log' for more details." >&2;}
2158 { (exit 77); exit 77; }; }
2161 ac_exeext=$ac_cv_exeext
2162 echo "$as_me:$LINENO: result: $ac_file" >&5
2163 echo "${ECHO_T}$ac_file" >&6
2165 # Check the compiler produces executables we can run. If not, either
2166 # the compiler is broken, or we cross compile.
2167 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2168 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2169 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2170 # If not cross compiling, check that we can run a simple program.
2171 if test "$cross_compiling" != yes; then
2172 if { ac_try='./$ac_file'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; }; then
2180 if test "$cross_compiling" = maybe; then
2183 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2184 If you meant to cross compile, use \`--host'.
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: cannot run C compiled programs.
2187 If you meant to cross compile, use \`--host'.
2188 See \`config.log' for more details." >&2;}
2189 { (exit 1); exit 1; }; }
2193 echo "$as_me:$LINENO: result: yes" >&5
2194 echo "${ECHO_T}yes" >&6
2196 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2197 ac_clean_files=$ac_clean_files_save
2198 # Check the compiler produces executables we can run. If not, either
2199 # the compiler is broken, or we cross compile.
2200 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2201 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2202 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2203 echo "${ECHO_T}$cross_compiling" >&6
2205 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2206 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2208 (eval $ac_link) 2>&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; then
2212 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2213 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2214 # work properly (i.e., refer to `conftest.exe'), while it won't with
2216 for ac_file in conftest.exe conftest conftest.*; do
2217 test -f "$ac_file" || continue
2219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2220 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2230 See \`config.log' for more details." >&2;}
2231 { (exit 1); exit 1; }; }
2234 rm -f conftest$ac_cv_exeext
2235 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2236 echo "${ECHO_T}$ac_cv_exeext" >&6
2238 rm -f conftest.$ac_ext
2239 EXEEXT=$ac_cv_exeext
2241 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2242 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2243 if test "${ac_cv_objext+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 cat >conftest.$ac_ext <<_ACEOF
2247 #line $LINENO "configure"
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h. */
2262 rm -f conftest.o conftest.obj
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2279 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2280 See \`config.log' for more details." >&5
2281 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2282 See \`config.log' for more details." >&2;}
2283 { (exit 1); exit 1; }; }
2286 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2288 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2289 echo "${ECHO_T}$ac_cv_objext" >&6
2290 OBJEXT=$ac_cv_objext
2292 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2293 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 cat >conftest.$ac_ext <<_ACEOF
2298 #line $LINENO "configure"
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2316 rm -f conftest.$ac_objext
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
2322 { ac_try='test -s conftest.$ac_objext'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; }; then
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2335 rm -f conftest.$ac_objext conftest.$ac_ext
2336 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2339 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2340 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2341 GCC=`test $ac_compiler_gnu = yes && echo yes`
2342 ac_test_CFLAGS=${CFLAGS+set}
2343 ac_save_CFLAGS=$CFLAGS
2345 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2346 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2347 if test "${ac_cv_prog_cc_g+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 cat >conftest.$ac_ext <<_ACEOF
2351 #line $LINENO "configure"
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2366 rm -f conftest.$ac_objext
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368 (eval $ac_compile) 2>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); } &&
2372 { ac_try='test -s conftest.$ac_objext'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; }; then
2380 echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2385 rm -f conftest.$ac_objext conftest.$ac_ext
2387 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2388 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2389 if test "$ac_test_CFLAGS" = set; then
2390 CFLAGS=$ac_save_CFLAGS
2391 elif test $ac_cv_prog_cc_g = yes; then
2392 if test "$GCC" = yes; then
2398 if test "$GCC" = yes; then
2404 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2405 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2406 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 ac_cv_prog_cc_stdc=no
2411 cat >conftest.$ac_ext <<_ACEOF
2412 #line $LINENO "configure"
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2420 #include <sys/types.h>
2421 #include <sys/stat.h>
2422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2423 struct buf { int x; };
2424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2425 static char *e (p, i)
2431 static char *f (char * (*g) (char **, int), char **p, ...)
2436 s = g (p, va_arg (v,int));
2440 int test (int i, double x);
2441 struct s1 {int (*f) (int a);};
2442 struct s2 {int (*f) (double a);};
2443 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2449 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2454 # Don't try gcc -ansi; that turns off useful extensions and
2455 # breaks some systems' header files.
2456 # AIX -qlanglvl=ansi
2457 # Ultrix and OSF/1 -std1
2458 # HP-UX 10.20 and later -Ae
2459 # HP-UX older versions -Aa -D_HPUX_SOURCE
2460 # SVR4 -Xc -D__EXTENSIONS__
2461 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2463 CC="$ac_save_CC $ac_arg"
2464 rm -f conftest.$ac_objext
2465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 ac_cv_prog_cc_stdc=$ac_arg
2479 echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2483 rm -f conftest.$ac_objext
2485 rm -f conftest.$ac_ext conftest.$ac_objext
2490 case "x$ac_cv_prog_cc_stdc" in
2492 echo "$as_me:$LINENO: result: none needed" >&5
2493 echo "${ECHO_T}none needed" >&6 ;;
2495 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2496 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2497 CC="$CC $ac_cv_prog_cc_stdc" ;;
2500 # Some people use a C++ compiler to compile C. Since we use `exit',
2501 # in C++ we need to declare it. In case someone uses the same compiler
2502 # for both compiling C and C++ we need to have the C++ compiler decide
2503 # the declaration of exit, since it's the most demanding environment.
2504 cat >conftest.$ac_ext <<_ACEOF
2509 rm -f conftest.$ac_objext
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2521 for ac_declaration in \
2523 '#include <stdlib.h>' \
2524 'extern "C" void std::exit (int) throw (); using std::exit;' \
2525 'extern "C" void std::exit (int); using std::exit;' \
2526 'extern "C" void exit (int) throw ();' \
2527 'extern "C" void exit (int);' \
2530 cat >conftest.$ac_ext <<_ACEOF
2531 #line $LINENO "configure"
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2547 rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2566 rm -f conftest.$ac_objext conftest.$ac_ext
2567 cat >conftest.$ac_ext <<_ACEOF
2568 #line $LINENO "configure"
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2583 rm -f conftest.$ac_objext
2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585 (eval $ac_compile) 2>&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2601 rm -f conftest.$ac_objext conftest.$ac_ext
2604 if test -n "$ac_declaration"; then
2605 echo '#ifdef __cplusplus' >>confdefs.h
2606 echo $ac_declaration >>confdefs.h
2607 echo '#endif' >>confdefs.h
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2615 rm -f conftest.$ac_objext conftest.$ac_ext
2617 ac_cpp='$CPP $CPPFLAGS'
2618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621 DEPDIR="${am__leading_dot}deps"
2623 ac_config_commands="$ac_config_commands depfiles"
2626 am_make=${MAKE-make}
2627 cat > confinc << 'END'
2632 # If we don't find an include directive, just comment out the code.
2633 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2634 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2638 # First try GNU make style include.
2639 echo "include confinc" > confmf
2640 # We grep out `Entering directory' and `Leaving directory'
2641 # messages which can occur if `w' ends up in MAKEFLAGS.
2642 # In particular we don't look at `^make:' because GNU make might
2643 # be invoked under some other name (usually "gmake"), in which
2644 # case it prints its new name instead of `make'.
2645 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2650 # Now try BSD make style include.
2651 if test "$am__include" = "#"; then
2652 echo '.include "confinc"' > confmf
2653 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2654 am__include=.include
2661 echo "$as_me:$LINENO: result: $_am_result" >&5
2662 echo "${ECHO_T}$_am_result" >&6
2663 rm -f confinc confmf
2665 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2666 if test "${enable_dependency_tracking+set}" = set; then
2667 enableval="$enable_dependency_tracking"
2670 if test "x$enable_dependency_tracking" != xno; then
2671 am_depcomp="$ac_aux_dir/depcomp"
2676 if test "x$enable_dependency_tracking" != xno; then
2687 depcc="$CC" am_compiler_list=
2689 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2690 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2691 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2695 # We make a subdir and do the tests there. Otherwise we can end up
2696 # making bogus files that we don't know about and never remove. For
2697 # instance it was reported that on HP-UX the gcc test will end up
2698 # making a dummy file named `D' -- because `-MD' means `put the output
2701 # Copy depcomp to subdir because otherwise we won't find it if we're
2702 # using a relative directory.
2703 cp "$am_depcomp" conftest.dir
2705 # We will build objects and dependencies in a subdirectory because
2706 # it helps to detect inapplicable dependency modes. For instance
2707 # both Tru64's cc and ICC support -MD to output dependencies as a
2708 # side effect of compilation, but ICC will put the dependencies in
2709 # the current directory while Tru64 will put them in the object
2713 am_cv_CC_dependencies_compiler_type=none
2714 if test "$am_compiler_list" = ""; then
2715 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2717 for depmode in $am_compiler_list; do
2718 # Setup a source with many dependencies, because some compilers
2719 # like to wrap large dependency lists on column 80 (with \), and
2720 # we should not choose a depcomp mode which is confused by this.
2722 # We need to recreate these files for each test, as the compiler may
2723 # overwrite some of them when testing with obscure command lines.
2724 # This happens at least with the AIX C compiler.
2726 for i in 1 2 3 4 5 6; do
2727 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2730 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2734 # after this tag, mechanisms are not by side-effect, so they'll
2735 # only be used when explicitly requested
2736 if test "x$enable_dependency_tracking" = xyes; then
2744 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2745 # mode. It turns out that the SunPro C++ compiler does not properly
2746 # handle `-M -o', and we need to detect this.
2747 if depmode=$depmode \
2748 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2749 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2750 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2751 >/dev/null 2>conftest.err &&
2752 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2753 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2754 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2755 # icc doesn't choke on unknown options, it will just issue warnings
2756 # (even with -Werror). So we grep stderr for any message
2757 # that says an option was ignored.
2758 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2759 am_cv_CC_dependencies_compiler_type=$depmode
2768 am_cv_CC_dependencies_compiler_type=none
2772 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2773 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2774 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2779 test "x$enable_dependency_tracking" != xno \
2780 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2782 am__fastdepCC_FALSE='#'
2784 am__fastdepCC_TRUE='#'
2785 am__fastdepCC_FALSE=
2791 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2792 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2793 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 ac_check_lib_save_LIBS=$LIBS
2797 LIBS="-lcposix $LIBS"
2798 cat >conftest.$ac_ext <<_ACEOF
2799 #line $LINENO "configure"
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h. */
2806 /* Override any gcc2 internal prototype to avoid an error. */
2810 /* We use char because int might match the return type of a gcc2
2811 builtin and then its argument prototype would still apply. */
2821 rm -f conftest.$ac_objext conftest$ac_exeext
2822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2823 (eval $ac_link) 2>&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try='test -s conftest$ac_exeext'
2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; }; then
2833 ac_cv_lib_cposix_strerror=yes
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2838 ac_cv_lib_cposix_strerror=no
2840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2841 LIBS=$ac_check_lib_save_LIBS
2843 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2844 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2845 if test $ac_cv_lib_cposix_strerror = yes; then
2846 LIBS="$LIBS -lcposix"
2854 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2855 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2856 if test "${am_cv_prog_cc_stdc+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 am_cv_prog_cc_stdc=no
2861 # Don't try gcc -ansi; that turns off useful extensions and
2862 # breaks some systems' header files.
2863 # AIX -qlanglvl=ansi
2864 # Ultrix and OSF/1 -std1
2865 # HP-UX 10.20 and later -Ae
2866 # HP-UX older versions -Aa -D_HPUX_SOURCE
2867 # SVR4 -Xc -D__EXTENSIONS__
2868 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2870 CC="$ac_save_CC $ac_arg"
2871 cat >conftest.$ac_ext <<_ACEOF
2872 #line $LINENO "configure"
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2880 #include <sys/types.h>
2881 #include <sys/stat.h>
2882 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2883 struct buf { int x; };
2884 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2885 static char *e (p, i)
2891 static char *f (char * (*g) (char **, int), char **p, ...)
2896 s = g (p, va_arg (v,int));
2900 int test (int i, double x);
2901 struct s1 {int (*f) (int a);};
2902 struct s2 {int (*f) (double a);};
2903 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2911 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2917 rm -f conftest.$ac_objext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919 (eval $ac_compile) 2>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } &&
2923 { ac_try='test -s conftest.$ac_objext'
2924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; }; then
2929 am_cv_prog_cc_stdc="$ac_arg"; break
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2935 rm -f conftest.$ac_objext conftest.$ac_ext
2941 if test -z "$am_cv_prog_cc_stdc"; then
2942 echo "$as_me:$LINENO: result: none needed" >&5
2943 echo "${ECHO_T}none needed" >&6
2945 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2946 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2948 case "x$am_cv_prog_cc_stdc" in
2950 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2954 ac_cpp='$CPP $CPPFLAGS'
2955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2959 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2960 # On Suns, sometimes $CPP names a directory.
2961 if test -n "$CPP" && test -d "$CPP"; then
2964 if test -z "$CPP"; then
2965 if test "${ac_cv_prog_CPP+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 # Double quotes because CPP needs to be expanded
2969 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2972 for ac_c_preproc_warn_flag in '' yes
2974 # Use a header file that comes with gcc, so configuring glibc
2975 # with a fresh cross-compiler works.
2976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2977 # <limits.h> exists even on freestanding compilers.
2978 # On the NeXT, cc -E runs the code through the compiler's parser,
2979 # not just through cpp. "Syntax error" is here to catch this case.
2980 cat >conftest.$ac_ext <<_ACEOF
2981 #line $LINENO "configure"
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2988 # include <limits.h>
2990 # include <assert.h>
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2997 grep -v '^ *+' conftest.er1 >conftest.err
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null; then
3002 if test -s conftest.err; then
3003 ac_cpp_err=$ac_c_preproc_warn_flag
3010 if test -z "$ac_cpp_err"; then
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3016 # Broken: fails on valid input.
3019 rm -f conftest.err conftest.$ac_ext
3021 # OK, works on sane cases. Now check whether non-existent headers
3022 # can be detected and how.
3023 cat >conftest.$ac_ext <<_ACEOF
3024 #line $LINENO "configure"
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030 #include <ac_nonexistent.h>
3032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3035 grep -v '^ *+' conftest.er1 >conftest.err
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } >/dev/null; then
3040 if test -s conftest.err; then
3041 ac_cpp_err=$ac_c_preproc_warn_flag
3048 if test -z "$ac_cpp_err"; then
3049 # Broken: success on invalid input.
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3055 # Passes both tests.
3059 rm -f conftest.err conftest.$ac_ext
3062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3063 rm -f conftest.err conftest.$ac_ext
3064 if $ac_preproc_ok; then
3076 echo "$as_me:$LINENO: result: $CPP" >&5
3077 echo "${ECHO_T}$CPP" >&6
3079 for ac_c_preproc_warn_flag in '' yes
3081 # Use a header file that comes with gcc, so configuring glibc
3082 # with a fresh cross-compiler works.
3083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3084 # <limits.h> exists even on freestanding compilers.
3085 # On the NeXT, cc -E runs the code through the compiler's parser,
3086 # not just through cpp. "Syntax error" is here to catch this case.
3087 cat >conftest.$ac_ext <<_ACEOF
3088 #line $LINENO "configure"
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3095 # include <limits.h>
3097 # include <assert.h>
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } >/dev/null; then
3109 if test -s conftest.err; then
3110 ac_cpp_err=$ac_c_preproc_warn_flag
3117 if test -z "$ac_cpp_err"; then
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 # Broken: fails on valid input.
3126 rm -f conftest.err conftest.$ac_ext
3128 # OK, works on sane cases. Now check whether non-existent headers
3129 # can be detected and how.
3130 cat >conftest.$ac_ext <<_ACEOF
3131 #line $LINENO "configure"
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3137 #include <ac_nonexistent.h>
3139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3142 grep -v '^ *+' conftest.er1 >conftest.err
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } >/dev/null; then
3147 if test -s conftest.err; then
3148 ac_cpp_err=$ac_c_preproc_warn_flag
3155 if test -z "$ac_cpp_err"; then
3156 # Broken: success on invalid input.
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 # Passes both tests.
3166 rm -f conftest.err conftest.$ac_ext
3169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3170 rm -f conftest.err conftest.$ac_ext
3171 if $ac_preproc_ok; then
3174 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3175 See \`config.log' for more details." >&5
3176 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3177 See \`config.log' for more details." >&2;}
3178 { (exit 1); exit 1; }; }
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 echo "$as_me:$LINENO: checking for egrep" >&5
3189 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3190 if test "${ac_cv_prog_egrep+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3194 then ac_cv_prog_egrep='grep -E'
3195 else ac_cv_prog_egrep='egrep'
3198 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3199 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3200 EGREP=$ac_cv_prog_egrep
3203 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3213 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3214 inttypes.h stdint.h unistd.h
3216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3217 echo "$as_me:$LINENO: checking for $ac_header" >&5
3218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 cat >conftest.$ac_ext <<_ACEOF
3223 #line $LINENO "configure"
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3229 $ac_includes_default
3231 #include <$ac_header>
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } &&
3239 { ac_try='test -s conftest.$ac_objext'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3245 eval "$as_ac_Header=yes"
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3250 eval "$as_ac_Header=no"
3252 rm -f conftest.$ac_objext conftest.$ac_ext
3254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3257 cat >>confdefs.h <<_ACEOF
3258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3268 echo "$as_me:$LINENO: checking for function prototypes" >&5
3269 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3270 if test "$am_cv_prog_cc_stdc" != no; then
3271 echo "$as_me:$LINENO: result: yes" >&5
3272 echo "${ECHO_T}yes" >&6
3274 cat >>confdefs.h <<\_ACEOF
3275 #define PROTOTYPES 1
3280 echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3282 U=_ ANSI2KNR=./ansi2knr
3284 # Ensure some checks needed by ansi2knr itself.
3285 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3286 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3287 if test "${ac_cv_header_stdc+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 cat >conftest.$ac_ext <<_ACEOF
3291 #line $LINENO "configure"
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3310 rm -f conftest.$ac_objext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312 (eval $ac_compile) 2>&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try='test -s conftest.$ac_objext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 ac_cv_header_stdc=yes
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 ac_cv_header_stdc=no
3329 rm -f conftest.$ac_objext conftest.$ac_ext
3331 if test $ac_cv_header_stdc = yes; then
3332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3333 cat >conftest.$ac_ext <<_ACEOF
3334 #line $LINENO "configure"
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3344 $EGREP "memchr" >/dev/null 2>&1; then
3347 ac_cv_header_stdc=no
3353 if test $ac_cv_header_stdc = yes; then
3354 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3355 cat >conftest.$ac_ext <<_ACEOF
3356 #line $LINENO "configure"
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3366 $EGREP "free" >/dev/null 2>&1; then
3369 ac_cv_header_stdc=no
3375 if test $ac_cv_header_stdc = yes; then
3376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3377 if test "$cross_compiling" = yes; then
3380 cat >conftest.$ac_ext <<_ACEOF
3381 #line $LINENO "configure"
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3388 #if ((' ' & 0x0FF) == 0x020)
3389 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3390 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3392 # define ISLOWER(c) \
3393 (('a' <= (c) && (c) <= 'i') \
3394 || ('j' <= (c) && (c) <= 'r') \
3395 || ('s' <= (c) && (c) <= 'z'))
3396 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3399 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3404 for (i = 0; i < 256; i++)
3405 if (XOR (islower (i), ISLOWER (i))
3406 || toupper (i) != TOUPPER (i))
3411 rm -f conftest$ac_exeext
3412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3413 (eval $ac_link) 2>&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3424 echo "$as_me: program exited with status $ac_status" >&5
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3429 ac_cv_header_stdc=no
3431 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3435 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3436 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3437 if test $ac_cv_header_stdc = yes; then
3439 cat >>confdefs.h <<\_ACEOF
3440 #define STDC_HEADERS 1
3446 for ac_header in string.h
3448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3450 echo "$as_me:$LINENO: checking for $ac_header" >&5
3451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3458 # Is the header compilable?
3459 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3461 cat >conftest.$ac_ext <<_ACEOF
3462 #line $LINENO "configure"
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 $ac_includes_default
3469 #include <$ac_header>
3471 rm -f conftest.$ac_objext
3472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3473 (eval $ac_compile) 2>&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 { ac_try='test -s conftest.$ac_objext'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 ac_header_compiler=yes
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 ac_header_compiler=no
3490 rm -f conftest.$ac_objext conftest.$ac_ext
3491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3492 echo "${ECHO_T}$ac_header_compiler" >&6
3494 # Is the header present?
3495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3497 cat >conftest.$ac_ext <<_ACEOF
3498 #line $LINENO "configure"
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 #include <$ac_header>
3506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } >/dev/null; then
3514 if test -s conftest.err; then
3515 ac_cpp_err=$ac_c_preproc_warn_flag
3522 if test -z "$ac_cpp_err"; then
3523 ac_header_preproc=yes
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 ac_header_preproc=no
3530 rm -f conftest.err conftest.$ac_ext
3531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3532 echo "${ECHO_T}$ac_header_preproc" >&6
3534 # So? What about this header?
3535 case $ac_header_compiler:$ac_header_preproc in
3537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3543 ## ------------------------------------ ##
3544 ## Report this to bug-autoconf@gnu.org. ##
3545 ## ------------------------------------ ##
3548 sed "s/^/$as_me: WARNING: /" >&2
3551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3559 ## ------------------------------------ ##
3560 ## Report this to bug-autoconf@gnu.org. ##
3561 ## ------------------------------------ ##
3564 sed "s/^/$as_me: WARNING: /" >&2
3567 echo "$as_me:$LINENO: checking for $ac_header" >&5
3568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 eval "$as_ac_Header=$ac_header_preproc"
3574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3579 cat >>confdefs.h <<_ACEOF
3580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3588 if test "x$U" != "x"; then
3589 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3590 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3591 { (exit 1); exit 1; }; }
3593 echo "$as_me:$LINENO: checking for inline" >&5
3594 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3595 if test "${ac_cv_c_inline+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 for ac_kw in inline __inline__ __inline; do
3600 cat >conftest.$ac_ext <<_ACEOF
3601 #line $LINENO "configure"
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3609 static $ac_kw foo_t static_foo () {return 0; }
3610 $ac_kw foo_t foo () {return 0; }
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 ac_cv_c_inline=$ac_kw; break
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3632 rm -f conftest.$ac_objext conftest.$ac_ext
3636 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3637 echo "${ECHO_T}$ac_cv_c_inline" >&6
3638 case $ac_cv_c_inline in
3641 cat >>confdefs.h <<\_ACEOF
3645 *) cat >>confdefs.h <<_ACEOF
3646 #define inline $ac_cv_c_inline
3651 # Find a good install program. We prefer a C program (faster),
3652 # so one script is as good as another. But avoid the broken or
3653 # incompatible versions:
3654 # SysV /etc/install, /usr/sbin/install
3655 # SunOS /usr/etc/install
3656 # IRIX /sbin/install
3658 # AmigaOS /C/install, which installs bootblocks on floppy discs
3659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3662 # ./install, which can be erroneously created by make from ./install.sh.
3663 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3664 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3665 if test -z "$INSTALL"; then
3666 if test "${ac_cv_path_install+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 test -z "$as_dir" && as_dir=.
3674 # Account for people who put trailing slashes in PATH elements.
3676 ./ | .// | /cC/* | \
3677 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3680 # OSF1 and SCO ODT 3.0 have their own names for install.
3681 # Don't use installbsd from OSF since it installs stuff as root
3683 for ac_prog in ginstall scoinst install; do
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3686 if test $ac_prog = install &&
3687 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3688 # AIX install. It has an incompatible calling convention.
3690 elif test $ac_prog = install &&
3691 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3692 # program-specific install script used by HP pwplus--don't use.
3695 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3707 if test "${ac_cv_path_install+set}" = set; then
3708 INSTALL=$ac_cv_path_install
3710 # As a last resort, use the slow shell script. We don't cache a
3711 # path for INSTALL within a source directory, because that will
3712 # break other packages using the cache if that directory is
3713 # removed, or if the path is relative.
3714 INSTALL=$ac_install_sh
3717 echo "$as_me:$LINENO: result: $INSTALL" >&5
3718 echo "${ECHO_T}$INSTALL" >&6
3720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3721 # It thinks the first close brace ends the variable substitution.
3722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3726 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3728 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3729 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3730 if test "${ac_cv_header_stdc+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 cat >conftest.$ac_ext <<_ACEOF
3734 #line $LINENO "configure"
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3753 rm -f conftest.$ac_objext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755 (eval $ac_compile) 2>&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } &&
3759 { ac_try='test -s conftest.$ac_objext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 ac_cv_header_stdc=yes
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3770 ac_cv_header_stdc=no
3772 rm -f conftest.$ac_objext conftest.$ac_ext
3774 if test $ac_cv_header_stdc = yes; then
3775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3776 cat >conftest.$ac_ext <<_ACEOF
3777 #line $LINENO "configure"
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3787 $EGREP "memchr" >/dev/null 2>&1; then
3790 ac_cv_header_stdc=no
3796 if test $ac_cv_header_stdc = yes; then
3797 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3798 cat >conftest.$ac_ext <<_ACEOF
3799 #line $LINENO "configure"
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3809 $EGREP "free" >/dev/null 2>&1; then
3812 ac_cv_header_stdc=no
3818 if test $ac_cv_header_stdc = yes; then
3819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3820 if test "$cross_compiling" = yes; then
3823 cat >conftest.$ac_ext <<_ACEOF
3824 #line $LINENO "configure"
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3831 #if ((' ' & 0x0FF) == 0x020)
3832 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3833 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3835 # define ISLOWER(c) \
3836 (('a' <= (c) && (c) <= 'i') \
3837 || ('j' <= (c) && (c) <= 'r') \
3838 || ('s' <= (c) && (c) <= 'z'))
3839 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3842 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3847 for (i = 0; i < 256; i++)
3848 if (XOR (islower (i), ISLOWER (i))
3849 || toupper (i) != TOUPPER (i))
3854 rm -f conftest$ac_exeext
3855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3856 (eval $ac_link) 2>&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3867 echo "$as_me: program exited with status $ac_status" >&5
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_cv_header_stdc=no
3874 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3878 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3879 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3880 if test $ac_cv_header_stdc = yes; then
3882 cat >>confdefs.h <<\_ACEOF
3883 #define STDC_HEADERS 1
3893 for ac_header in unistd.h locale.h termios.h linux/termios.h sys/ioctl.h
3895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3897 echo "$as_me:$LINENO: checking for $ac_header" >&5
3898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3905 # Is the header compilable?
3906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3908 cat >conftest.$ac_ext <<_ACEOF
3909 #line $LINENO "configure"
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h. */
3915 $ac_includes_default
3916 #include <$ac_header>
3918 rm -f conftest.$ac_objext
3919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3920 (eval $ac_compile) 2>&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } &&
3924 { ac_try='test -s conftest.$ac_objext'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; }; then
3930 ac_header_compiler=yes
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 ac_header_compiler=no
3937 rm -f conftest.$ac_objext conftest.$ac_ext
3938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3939 echo "${ECHO_T}$ac_header_compiler" >&6
3941 # Is the header present?
3942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3944 cat >conftest.$ac_ext <<_ACEOF
3945 #line $LINENO "configure"
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 #include <$ac_header>
3953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3956 grep -v '^ *+' conftest.er1 >conftest.err
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } >/dev/null; then
3961 if test -s conftest.err; then
3962 ac_cpp_err=$ac_c_preproc_warn_flag
3969 if test -z "$ac_cpp_err"; then
3970 ac_header_preproc=yes
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3975 ac_header_preproc=no
3977 rm -f conftest.err conftest.$ac_ext
3978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3979 echo "${ECHO_T}$ac_header_preproc" >&6
3981 # So? What about this header?
3982 case $ac_header_compiler:$ac_header_preproc in
3984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3990 ## ------------------------------------ ##
3991 ## Report this to bug-autoconf@gnu.org. ##
3992 ## ------------------------------------ ##
3995 sed "s/^/$as_me: WARNING: /" >&2
3998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4006 ## ------------------------------------ ##
4007 ## Report this to bug-autoconf@gnu.org. ##
4008 ## ------------------------------------ ##
4011 sed "s/^/$as_me: WARNING: /" >&2
4014 echo "$as_me:$LINENO: checking for $ac_header" >&5
4015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 eval "$as_ac_Header=$ac_header_preproc"
4021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4026 cat >>confdefs.h <<_ACEOF
4027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4034 if test "${ac_cv_header_stdarg_h+set}" = set; then
4035 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4036 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4037 if test "${ac_cv_header_stdarg_h+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4041 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4043 # Is the header compilable?
4044 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
4045 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
4046 cat >conftest.$ac_ext <<_ACEOF
4047 #line $LINENO "configure"
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 $ac_includes_default
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } &&
4062 { ac_try='test -s conftest.$ac_objext'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 ac_header_compiler=yes
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 ac_header_compiler=no
4075 rm -f conftest.$ac_objext conftest.$ac_ext
4076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4077 echo "${ECHO_T}$ac_header_compiler" >&6
4079 # Is the header present?
4080 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
4081 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
4082 cat >conftest.$ac_ext <<_ACEOF
4083 #line $LINENO "configure"
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4094 grep -v '^ *+' conftest.er1 >conftest.err
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } >/dev/null; then
4099 if test -s conftest.err; then
4100 ac_cpp_err=$ac_c_preproc_warn_flag
4107 if test -z "$ac_cpp_err"; then
4108 ac_header_preproc=yes
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 ac_header_preproc=no
4115 rm -f conftest.err conftest.$ac_ext
4116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4117 echo "${ECHO_T}$ac_header_preproc" >&6
4119 # So? What about this header?
4120 case $ac_header_compiler:$ac_header_preproc in
4122 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
4123 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4124 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
4125 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
4128 ## ------------------------------------ ##
4129 ## Report this to bug-autoconf@gnu.org. ##
4130 ## ------------------------------------ ##
4133 sed "s/^/$as_me: WARNING: /" >&2
4136 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
4137 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
4138 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
4139 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
4140 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
4141 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
4144 ## ------------------------------------ ##
4145 ## Report this to bug-autoconf@gnu.org. ##
4146 ## ------------------------------------ ##
4149 sed "s/^/$as_me: WARNING: /" >&2
4152 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4153 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4154 if test "${ac_cv_header_stdarg_h+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 ac_cv_header_stdarg_h=$ac_header_preproc
4159 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4160 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4163 if test $ac_cv_header_stdarg_h = yes; then
4164 cat >>confdefs.h <<\_ACEOF
4165 #define HAVE_STDARG_H 1
4169 { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5
4170 echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;}
4171 { (exit 1); exit 1; }; }
4175 echo "$as_me:$LINENO: checking for working strcoll" >&5
4176 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4177 if test "${ac_cv_func_strcoll_works+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 if test "$cross_compiling" = yes; then
4181 ac_cv_func_strcoll_works=no
4183 cat >conftest.$ac_ext <<_ACEOF
4184 #line $LINENO "configure"
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 $ac_includes_default
4194 exit (strcoll ("abc", "def") >= 0 ||
4195 strcoll ("ABC", "DEF") >= 0 ||
4196 strcoll ("123", "456") >= 0)
4201 rm -f conftest$ac_exeext
4202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4203 (eval $ac_link) 2>&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
4212 ac_cv_func_strcoll_works=yes
4214 echo "$as_me: program exited with status $ac_status" >&5
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4219 ac_cv_func_strcoll_works=no
4221 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4224 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4225 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4226 if test $ac_cv_func_strcoll_works = yes; then
4228 cat >>confdefs.h <<\_ACEOF
4229 #define HAVE_STRCOLL 1
4235 for ac_func in setlocale
4237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4238 echo "$as_me:$LINENO: checking for $ac_func" >&5
4239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4240 if eval "test \"\${$as_ac_var+set}\" = set"; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 cat >conftest.$ac_ext <<_ACEOF
4244 #line $LINENO "configure"
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 /* System header to define __stub macros and hopefully few prototypes,
4251 which can conflict with char $ac_func (); below.
4252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4253 <limits.h> exists even on freestanding compilers. */
4255 # include <limits.h>
4257 # include <assert.h>
4259 /* Override any gcc2 internal prototype to avoid an error. */
4264 /* We use char because int might match the return type of a gcc2
4265 builtin and then its argument prototype would still apply. */
4267 /* The GNU C library defines this for functions which it implements
4268 to always fail with ENOSYS. Some functions are actually named
4269 something starting with __ and the normal name is an alias. */
4270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4273 char (*f) () = $ac_func;
4282 return f != $ac_func;
4287 rm -f conftest.$ac_objext conftest$ac_exeext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4289 (eval $ac_link) 2>&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } &&
4293 { ac_try='test -s conftest$ac_exeext'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4299 eval "$as_ac_var=yes"
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4304 eval "$as_ac_var=no"
4306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4310 if test `eval echo '${'$as_ac_var'}'` = yes; then
4311 cat >>confdefs.h <<_ACEOF
4312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4320 abook_cv_curses=/usr
4322 # Check whether --with-curses or --without-curses was given.
4323 if test "${with_curses+set}" = set; then
4324 withval="$with_curses"
4325 if test $withval != yes; then
4326 abook_cv_curses=$withval
4328 if test x$abook_cv_curses != x/usr; then
4329 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
4330 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
4334 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
4335 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
4336 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 ac_check_lib_save_LIBS=$LIBS
4340 LIBS="-lncurses $LIBS"
4341 cat >conftest.$ac_ext <<_ACEOF
4342 #line $LINENO "configure"
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4349 /* Override any gcc2 internal prototype to avoid an error. */
4353 /* We use char because int might match the return type of a gcc2
4354 builtin and then its argument prototype would still apply. */
4364 rm -f conftest.$ac_objext conftest$ac_exeext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4366 (eval $ac_link) 2>&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } &&
4370 { ac_try='test -s conftest$ac_exeext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 ac_cv_lib_ncurses_initscr=yes
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4381 ac_cv_lib_ncurses_initscr=no
4383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4384 LIBS=$ac_check_lib_save_LIBS
4386 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
4387 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
4388 if test $ac_cv_lib_ncurses_initscr = yes; then
4389 LIBS="$LIBS -lncurses"
4390 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
4391 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
4394 for ac_header in ncurses.h
4396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4398 echo "$as_me:$LINENO: checking for $ac_header" >&5
4399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4406 # Is the header compilable?
4407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4409 cat >conftest.$ac_ext <<_ACEOF
4410 #line $LINENO "configure"
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 $ac_includes_default
4417 #include <$ac_header>
4419 rm -f conftest.$ac_objext
4420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421 (eval $ac_compile) 2>&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } &&
4425 { ac_try='test -s conftest.$ac_objext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_header_compiler=yes
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 ac_header_compiler=no
4438 rm -f conftest.$ac_objext conftest.$ac_ext
4439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4440 echo "${ECHO_T}$ac_header_compiler" >&6
4442 # Is the header present?
4443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4445 cat >conftest.$ac_ext <<_ACEOF
4446 #line $LINENO "configure"
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h. */
4452 #include <$ac_header>
4454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4457 grep -v '^ *+' conftest.er1 >conftest.err
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } >/dev/null; then
4462 if test -s conftest.err; then
4463 ac_cpp_err=$ac_c_preproc_warn_flag
4470 if test -z "$ac_cpp_err"; then
4471 ac_header_preproc=yes
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4476 ac_header_preproc=no
4478 rm -f conftest.err conftest.$ac_ext
4479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4480 echo "${ECHO_T}$ac_header_preproc" >&6
4482 # So? What about this header?
4483 case $ac_header_compiler:$ac_header_preproc in
4485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4491 ## ------------------------------------ ##
4492 ## Report this to bug-autoconf@gnu.org. ##
4493 ## ------------------------------------ ##
4496 sed "s/^/$as_me: WARNING: /" >&2
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4507 ## ------------------------------------ ##
4508 ## Report this to bug-autoconf@gnu.org. ##
4509 ## ------------------------------------ ##
4512 sed "s/^/$as_me: WARNING: /" >&2
4515 echo "$as_me:$LINENO: checking for $ac_header" >&5
4516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 eval "$as_ac_Header=$ac_header_preproc"
4522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4527 cat >>confdefs.h <<_ACEOF
4528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4537 echo "$as_me:$LINENO: checking for initscr" >&5
4538 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
4539 if test "${ac_cv_func_initscr+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 cat >conftest.$ac_ext <<_ACEOF
4543 #line $LINENO "configure"
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 /* System header to define __stub macros and hopefully few prototypes,
4550 which can conflict with char initscr (); below.
4551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4552 <limits.h> exists even on freestanding compilers. */
4554 # include <limits.h>
4556 # include <assert.h>
4558 /* Override any gcc2 internal prototype to avoid an error. */
4563 /* We use char because int might match the return type of a gcc2
4564 builtin and then its argument prototype would still apply. */
4566 /* The GNU C library defines this for functions which it implements
4567 to always fail with ENOSYS. Some functions are actually named
4568 something starting with __ and the normal name is an alias. */
4569 #if defined (__stub_initscr) || defined (__stub___initscr)
4572 char (*f) () = initscr;
4581 return f != initscr;
4586 rm -f conftest.$ac_objext conftest$ac_exeext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4588 (eval $ac_link) 2>&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -s conftest$ac_exeext'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; }; then
4598 ac_cv_func_initscr=yes
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4603 ac_cv_func_initscr=no
4605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4607 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
4608 echo "${ECHO_T}$ac_cv_func_initscr" >&6
4609 if test $ac_cv_func_initscr = yes; then
4613 case $host_os in #(vi
4615 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
4616 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
4617 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 ac_check_lib_save_LIBS=$LIBS
4621 LIBS="-lmytinfo $LIBS"
4622 cat >conftest.$ac_ext <<_ACEOF
4623 #line $LINENO "configure"
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4630 /* Override any gcc2 internal prototype to avoid an error. */
4634 /* We use char because int might match the return type of a gcc2
4635 builtin and then its argument prototype would still apply. */
4645 rm -f conftest.$ac_objext conftest$ac_exeext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4647 (eval $ac_link) 2>&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } &&
4651 { ac_try='test -s conftest$ac_exeext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_lib_mytinfo_tgoto=yes
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 ac_cv_lib_mytinfo_tgoto=no
4664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4665 LIBS=$ac_check_lib_save_LIBS
4667 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
4668 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
4669 if test $ac_cv_lib_mytinfo_tgoto = yes; then
4670 LIBS="-lmytinfo $LIBS"
4675 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
4676 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
4677 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 ac_check_lib_save_LIBS=$LIBS
4681 LIBS="-lcur_colr $LIBS"
4682 cat >conftest.$ac_ext <<_ACEOF
4683 #line $LINENO "configure"
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4690 /* Override any gcc2 internal prototype to avoid an error. */
4694 /* We use char because int might match the return type of a gcc2
4695 builtin and then its argument prototype would still apply. */
4705 rm -f conftest.$ac_objext conftest$ac_exeext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4707 (eval $ac_link) 2>&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } &&
4711 { ac_try='test -s conftest$ac_exeext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 ac_cv_lib_cur_colr_initscr=yes
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 ac_cv_lib_cur_colr_initscr=no
4724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4725 LIBS=$ac_check_lib_save_LIBS
4727 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
4728 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
4729 if test $ac_cv_lib_cur_colr_initscr = yes; then
4731 LIBS="-lcur_colr $LIBS"
4732 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
4733 ac_cv_func_initscr=yes
4737 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
4738 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
4739 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 ac_check_lib_save_LIBS=$LIBS
4743 LIBS="-lHcurses $LIBS"
4744 cat >conftest.$ac_ext <<_ACEOF
4745 #line $LINENO "configure"
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4752 /* Override any gcc2 internal prototype to avoid an error. */
4756 /* We use char because int might match the return type of a gcc2
4757 builtin and then its argument prototype would still apply. */
4767 rm -f conftest.$ac_objext conftest$ac_exeext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4769 (eval $ac_link) 2>&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -s conftest$ac_exeext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 ac_cv_lib_Hcurses_initscr=yes
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4784 ac_cv_lib_Hcurses_initscr=no
4786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4787 LIBS=$ac_check_lib_save_LIBS
4789 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
4790 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
4791 if test $ac_cv_lib_Hcurses_initscr = yes; then
4793 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
4794 LIBS="-lHcurses $LIBS"
4795 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
4796 ac_cv_func_initscr=yes
4803 linux*) # Suse Linux does not follow /usr/lib convention
4808 if test ".$With5lib" != ".no" ; then
4809 if test -d /usr/5lib ; then
4811 CPPFLAGS="$CPPFLAGS -I/usr/5include"
4812 LIBS="$LIBS -L/usr/5lib"
4816 if test ".$ac_cv_func_initscr" != .yes ; then
4817 cf_save_LIBS="$LIBS"
4821 # Check for library containing tgoto. Do this before curses library
4822 # because it may be needed to link the test-case for initscr.
4823 echo "$as_me:$LINENO: checking for tgoto" >&5
4824 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
4825 if test "${ac_cv_func_tgoto+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 cat >conftest.$ac_ext <<_ACEOF
4829 #line $LINENO "configure"
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4835 /* System header to define __stub macros and hopefully few prototypes,
4836 which can conflict with char tgoto (); below.
4837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4838 <limits.h> exists even on freestanding compilers. */
4840 # include <limits.h>
4842 # include <assert.h>
4844 /* Override any gcc2 internal prototype to avoid an error. */
4849 /* We use char because int might match the return type of a gcc2
4850 builtin and then its argument prototype would still apply. */
4852 /* The GNU C library defines this for functions which it implements
4853 to always fail with ENOSYS. Some functions are actually named
4854 something starting with __ and the normal name is an alias. */
4855 #if defined (__stub_tgoto) || defined (__stub___tgoto)
4858 char (*f) () = tgoto;
4872 rm -f conftest.$ac_objext conftest$ac_exeext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4874 (eval $ac_link) 2>&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try='test -s conftest$ac_exeext'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 ac_cv_func_tgoto=yes
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4893 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
4894 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
4895 if test $ac_cv_func_tgoto = yes; then
4896 cf_term_lib=predefined
4899 for cf_term_lib in termcap termlib unknown
4901 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
4902 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
4903 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
4904 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 ac_check_lib_save_LIBS=$LIBS
4908 LIBS="-l$cf_term_lib $LIBS"
4909 cat >conftest.$ac_ext <<_ACEOF
4910 #line $LINENO "configure"
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4917 /* Override any gcc2 internal prototype to avoid an error. */
4921 /* We use char because int might match the return type of a gcc2
4922 builtin and then its argument prototype would still apply. */
4932 rm -f conftest.$ac_objext conftest$ac_exeext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4934 (eval $ac_link) 2>&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } &&
4938 { ac_try='test -s conftest$ac_exeext'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4944 eval "$as_ac_Lib=yes"
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4949 eval "$as_ac_Lib=no"
4951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4952 LIBS=$ac_check_lib_save_LIBS
4954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4955 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4956 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4965 # Check for library containing initscr
4966 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
4967 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
4969 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
4970 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
4971 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
4972 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 ac_check_lib_save_LIBS=$LIBS
4976 LIBS="-l$cf_curs_lib $LIBS"
4977 cat >conftest.$ac_ext <<_ACEOF
4978 #line $LINENO "configure"
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4985 /* Override any gcc2 internal prototype to avoid an error. */
4989 /* We use char because int might match the return type of a gcc2
4990 builtin and then its argument prototype would still apply. */
5000 rm -f conftest.$ac_objext conftest$ac_exeext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5002 (eval $ac_link) 2>&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } &&
5006 { ac_try='test -s conftest$ac_exeext'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; }; then
5012 eval "$as_ac_Lib=yes"
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5017 eval "$as_ac_Lib=no"
5019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5020 LIBS=$ac_check_lib_save_LIBS
5022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5023 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5024 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5029 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5030 echo "$as_me: error: no curses library found" >&2;}
5031 { (exit 1); exit 1; }; }
5033 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5034 if test "$cf_term_lib" = unknown ; then
5035 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5036 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5037 cat >conftest.$ac_ext <<_ACEOF
5038 #line $LINENO "configure"
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 #include <${cf_cv_ncurses_header-curses.h}>
5053 rm -f conftest.$ac_objext conftest$ac_exeext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5055 (eval $ac_link) 2>&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
5059 { ac_try='test -s conftest$ac_exeext'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5067 echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5073 echo "$as_me:$LINENO: result: $cf_result" >&5
5074 echo "${ECHO_T}$cf_result" >&6
5075 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5076 echo "$as_me: error: Cannot link curses library" >&2;}
5077 { (exit 1); exit 1; }; }
5078 elif test "$cf_term_lib" != predefined ; then
5079 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5080 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5081 cat >conftest.$ac_ext <<_ACEOF
5082 #line $LINENO "configure"
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5088 #include <${cf_cv_ncurses_header-curses.h}>
5092 initscr(); tgoto((char *)0, 0, 0);
5097 rm -f conftest.$ac_objext conftest$ac_exeext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5099 (eval $ac_link) 2>&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -s conftest$ac_exeext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5115 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5116 cat >conftest.$ac_ext <<_ACEOF
5117 #line $LINENO "configure"
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 #include <${cf_cv_ncurses_header-curses.h}>
5132 rm -f conftest.$ac_objext conftest$ac_exeext
5133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5134 (eval $ac_link) 2>&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try='test -s conftest$ac_exeext'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; }; then
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5155 echo "$as_me:$LINENO: result: $cf_result" >&5
5156 echo "${ECHO_T}$cf_result" >&6
5168 abook_cv_readline=/usr
5170 # Check whether --with-readline or --without-readline was given.
5171 if test "${with_readline+set}" = set; then
5172 withval="$with_readline"
5173 if test $withval != yes; then
5174 abook_cv_readline=$withval
5176 if test x$abook_cv_readline != x/usr; then
5177 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
5178 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
5183 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
5184 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
5185 if test "${ac_cv_lib_readline+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 for readline_lib in readline edit editline; do
5191 for termcap_lib in "" termcap curses ncurses; do
5192 if test -z "$termcap_lib"; then
5193 TRY_LIB="-l$readline_lib"
5195 TRY_LIB="-l$readline_lib -l$termcap_lib"
5197 LIBS="$ORIG_LIBS $TRY_LIB"
5198 cat >conftest.$ac_ext <<_ACEOF
5199 #line $LINENO "configure"
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5206 /* Override any gcc2 internal prototype to avoid an error. */
5210 /* We use char because int might match the return type of a gcc2
5211 builtin and then its argument prototype would still apply. */
5221 rm -f conftest.$ac_objext conftest$ac_exeext
5222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5223 (eval $ac_link) 2>&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } &&
5227 { ac_try='test -s conftest$ac_exeext'
5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; }; then
5233 ac_cv_lib_readline="$TRY_LIB"
5235 echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5240 if test -n "$ac_cv_lib_readline"; then
5244 if test -n "$ac_cv_lib_readline"; then
5248 if test -z "$ac_cv_lib_readline"; then
5249 ac_cv_lib_readline="no"
5254 echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
5255 echo "${ECHO_T}$ac_cv_lib_readline" >&6
5257 if test "$ac_cv_lib_readline" != "no"; then
5258 LIBS="$LIBS $ac_cv_lib_readline"
5260 cat >>confdefs.h <<\_ACEOF
5261 #define HAVE_LIBREADLINE 1
5266 for ac_header in readline.h readline/readline.h
5268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5270 echo "$as_me:$LINENO: checking for $ac_header" >&5
5271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5278 # Is the header compilable?
5279 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5281 cat >conftest.$ac_ext <<_ACEOF
5282 #line $LINENO "configure"
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288 $ac_includes_default
5289 #include <$ac_header>
5291 rm -f conftest.$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_header_compiler=yes
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5308 ac_header_compiler=no
5310 rm -f conftest.$ac_objext conftest.$ac_ext
5311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5312 echo "${ECHO_T}$ac_header_compiler" >&6
5314 # Is the header present?
5315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5317 cat >conftest.$ac_ext <<_ACEOF
5318 #line $LINENO "configure"
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 #include <$ac_header>
5326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5329 grep -v '^ *+' conftest.er1 >conftest.err
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } >/dev/null; then
5334 if test -s conftest.err; then
5335 ac_cpp_err=$ac_c_preproc_warn_flag
5342 if test -z "$ac_cpp_err"; then
5343 ac_header_preproc=yes
5345 echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5348 ac_header_preproc=no
5350 rm -f conftest.err conftest.$ac_ext
5351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5352 echo "${ECHO_T}$ac_header_preproc" >&6
5354 # So? What about this header?
5355 case $ac_header_compiler:$ac_header_preproc in
5357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5363 ## ------------------------------------ ##
5364 ## Report this to bug-autoconf@gnu.org. ##
5365 ## ------------------------------------ ##
5368 sed "s/^/$as_me: WARNING: /" >&2
5371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5379 ## ------------------------------------ ##
5380 ## Report this to bug-autoconf@gnu.org. ##
5381 ## ------------------------------------ ##
5384 sed "s/^/$as_me: WARNING: /" >&2
5387 echo "$as_me:$LINENO: checking for $ac_header" >&5
5388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 eval "$as_ac_Header=$ac_header_preproc"
5394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5399 cat >>confdefs.h <<_ACEOF
5400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5407 echo "$as_me:$LINENO: checking whether readline supports history" >&5
5408 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
5409 if test "${ac_cv_lib_readline_history+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 ac_cv_lib_readline_history="no"
5414 cat >conftest.$ac_ext <<_ACEOF
5415 #line $LINENO "configure"
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5422 /* Override any gcc2 internal prototype to avoid an error. */
5426 /* We use char because int might match the return type of a gcc2
5427 builtin and then its argument prototype would still apply. */
5428 char add_history ();
5437 rm -f conftest.$ac_objext conftest$ac_exeext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5439 (eval $ac_link) 2>&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } &&
5443 { ac_try='test -s conftest$ac_exeext'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; }; then
5449 ac_cv_lib_readline_history="yes"
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5458 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
5459 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6
5460 if test "$ac_cv_lib_readline_history" = "yes"; then
5462 cat >>confdefs.h <<\_ACEOF
5463 #define HAVE_READLINE_HISTORY 1
5468 for ac_header in history.h readline/history.h
5470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5472 echo "$as_me:$LINENO: checking for $ac_header" >&5
5473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5480 # Is the header compilable?
5481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5483 cat >conftest.$ac_ext <<_ACEOF
5484 #line $LINENO "configure"
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5490 $ac_includes_default
5491 #include <$ac_header>
5493 rm -f conftest.$ac_objext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5495 (eval $ac_compile) 2>&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } &&
5499 { ac_try='test -s conftest.$ac_objext'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 ac_header_compiler=yes
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 ac_header_compiler=no
5512 rm -f conftest.$ac_objext conftest.$ac_ext
5513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5514 echo "${ECHO_T}$ac_header_compiler" >&6
5516 # Is the header present?
5517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5519 cat >conftest.$ac_ext <<_ACEOF
5520 #line $LINENO "configure"
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 #include <$ac_header>
5528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5531 grep -v '^ *+' conftest.er1 >conftest.err
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } >/dev/null; then
5536 if test -s conftest.err; then
5537 ac_cpp_err=$ac_c_preproc_warn_flag
5544 if test -z "$ac_cpp_err"; then
5545 ac_header_preproc=yes
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 ac_header_preproc=no
5552 rm -f conftest.err conftest.$ac_ext
5553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5554 echo "${ECHO_T}$ac_header_preproc" >&6
5556 # So? What about this header?
5557 case $ac_header_compiler:$ac_header_preproc in
5559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5565 ## ------------------------------------ ##
5566 ## Report this to bug-autoconf@gnu.org. ##
5567 ## ------------------------------------ ##
5570 sed "s/^/$as_me: WARNING: /" >&2
5573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5581 ## ------------------------------------ ##
5582 ## Report this to bug-autoconf@gnu.org. ##
5583 ## ------------------------------------ ##
5586 sed "s/^/$as_me: WARNING: /" >&2
5589 echo "$as_me:$LINENO: checking for $ac_header" >&5
5590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 eval "$as_ac_Header=$ac_header_preproc"
5596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5601 cat >>confdefs.h <<_ACEOF
5602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5614 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
5615 { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5
5616 echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;}
5617 { (exit 1); exit 1; }; }
5622 for ac_func in resizeterm
5624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5625 echo "$as_me:$LINENO: checking for $ac_func" >&5
5626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5627 if eval "test \"\${$as_ac_var+set}\" = set"; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 cat >conftest.$ac_ext <<_ACEOF
5631 #line $LINENO "configure"
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 /* System header to define __stub macros and hopefully few prototypes,
5638 which can conflict with char $ac_func (); below.
5639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5640 <limits.h> exists even on freestanding compilers. */
5642 # include <limits.h>
5644 # include <assert.h>
5646 /* Override any gcc2 internal prototype to avoid an error. */
5651 /* We use char because int might match the return type of a gcc2
5652 builtin and then its argument prototype would still apply. */
5654 /* The GNU C library defines this for functions which it implements
5655 to always fail with ENOSYS. Some functions are actually named
5656 something starting with __ and the normal name is an alias. */
5657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5660 char (*f) () = $ac_func;
5669 return f != $ac_func;
5674 rm -f conftest.$ac_objext conftest$ac_exeext
5675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5676 (eval $ac_link) 2>&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try='test -s conftest$ac_exeext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 eval "$as_ac_var=yes"
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5691 eval "$as_ac_var=no"
5693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5697 if test `eval echo '${'$as_ac_var'}'` = yes; then
5698 cat >>confdefs.h <<_ACEOF
5699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5706 echo "$as_me:$LINENO: checking for snprintf" >&5
5707 echo $ECHO_N "checking for snprintf... $ECHO_C" >&6
5708 if test "${ac_cv_func_snprintf+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 cat >conftest.$ac_ext <<_ACEOF
5712 #line $LINENO "configure"
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 /* System header to define __stub macros and hopefully few prototypes,
5719 which can conflict with char snprintf (); below.
5720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5721 <limits.h> exists even on freestanding compilers. */
5723 # include <limits.h>
5725 # include <assert.h>
5727 /* Override any gcc2 internal prototype to avoid an error. */
5732 /* We use char because int might match the return type of a gcc2
5733 builtin and then its argument prototype would still apply. */
5735 /* The GNU C library defines this for functions which it implements
5736 to always fail with ENOSYS. Some functions are actually named
5737 something starting with __ and the normal name is an alias. */
5738 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5741 char (*f) () = snprintf;
5750 return f != snprintf;
5755 rm -f conftest.$ac_objext conftest$ac_exeext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5757 (eval $ac_link) 2>&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -s conftest$ac_exeext'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; }; then
5767 ac_cv_func_snprintf=yes
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5772 ac_cv_func_snprintf=no
5774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5776 echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
5777 echo "${ECHO_T}$ac_cv_func_snprintf" >&6
5778 if test $ac_cv_func_snprintf = yes; then
5779 cat >>confdefs.h <<\_ACEOF
5780 #define HAVE_SNPRINTF 1
5785 echo "$as_me:$LINENO: checking for vsnprintf" >&5
5786 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
5787 if test "${ac_cv_func_vsnprintf+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 cat >conftest.$ac_ext <<_ACEOF
5791 #line $LINENO "configure"
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5797 /* System header to define __stub macros and hopefully few prototypes,
5798 which can conflict with char vsnprintf (); below.
5799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5800 <limits.h> exists even on freestanding compilers. */
5802 # include <limits.h>
5804 # include <assert.h>
5806 /* Override any gcc2 internal prototype to avoid an error. */
5811 /* We use char because int might match the return type of a gcc2
5812 builtin and then its argument prototype would still apply. */
5814 /* The GNU C library defines this for functions which it implements
5815 to always fail with ENOSYS. Some functions are actually named
5816 something starting with __ and the normal name is an alias. */
5817 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5820 char (*f) () = vsnprintf;
5829 return f != vsnprintf;
5834 rm -f conftest.$ac_objext conftest$ac_exeext
5835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5836 (eval $ac_link) 2>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } &&
5840 { ac_try='test -s conftest$ac_exeext'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 ac_cv_func_vsnprintf=yes
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 ac_cv_func_vsnprintf=no
5853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5855 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
5856 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
5857 if test $ac_cv_func_vsnprintf = yes; then
5858 cat >>confdefs.h <<\_ACEOF
5859 #define HAVE_VSNPRINTF 1
5865 # Check whether --enable-debug or --disable-debug was given.
5866 if test "${enable_debug+set}" = set; then
5867 enableval="$enable_debug"
5868 case "${enableval}" in
5871 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
5872 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
5873 { (exit 1); exit 1; }; } ;;
5879 if test x$debug = xtrue; then
5880 CPPFLAGS="-DDEBUG $CPPFLAGS"
5884 if test x$GCC = xyes; then
5885 CFLAGS="-Wall $CFLAGS"
5888 ac_config_files="$ac_config_files Makefile abook.spec"
5889 cat >confcache <<\_ACEOF
5890 # This file is a shell script that caches the results of configure
5891 # tests run on this system so they can be shared between configure
5892 # scripts and configure runs, see configure's option --config-cache.
5893 # It is not useful on other systems. If it contains results you don't
5894 # want to keep, you may remove or edit it.
5896 # config.status only pays attention to the cache file if you give it
5897 # the --recheck option to rerun configure.
5899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5905 # The following way of writing the cache mishandles newlines in values,
5906 # but we know of no workaround that is simple, portable, and efficient.
5907 # So, don't put newlines in cache variables' values.
5908 # Ultrix sh set writes to stderr and can't be redirected directly,
5909 # and sets the high bit in the cache file unless we assign to the vars.
5912 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5914 # `set' does not quote correctly, so add quotes (double-quote
5915 # substitution turns \\\\ into \\, and sed turns \\ into \).
5918 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5921 # `set' quotes correctly as required by POSIX, so do not add quotes.
5923 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5930 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5932 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5934 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5935 if test -w $cache_file; then
5936 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5937 cat confcache >$cache_file
5939 echo "not updating unwritable cache $cache_file"
5944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5945 # Let make expand exec_prefix.
5946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5948 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5949 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5950 # trailing colons and then remove the whole line if VPATH becomes empty
5951 # (actually we leave an empty line to preserve line numbers).
5952 if test "x$srcdir" = x.; then
5953 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5954 s/:*\$(srcdir):*/:/;
5955 s/:*\${srcdir}:*/:/;
5957 s/^\([^=]*=[ ]*\):*/\1/;
5963 DEFS=-DHAVE_CONFIG_H
5967 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5968 # 1. Remove the extension, and $U if already installed.
5969 ac_i=`echo "$ac_i" |
5970 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5972 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5973 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5977 LTLIBOBJS=$ac_ltlibobjs
5980 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5981 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5982 Usually this means the macro was only invoked conditionally." >&5
5983 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5984 Usually this means the macro was only invoked conditionally." >&2;}
5985 { (exit 1); exit 1; }; }
5987 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5988 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5989 Usually this means the macro was only invoked conditionally." >&5
5990 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5991 Usually this means the macro was only invoked conditionally." >&2;}
5992 { (exit 1); exit 1; }; }
5995 : ${CONFIG_STATUS=./config.status}
5996 ac_clean_files_save=$ac_clean_files
5997 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5998 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5999 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6000 cat >$CONFIG_STATUS <<_ACEOF
6002 # Generated by $as_me.
6003 # Run this file to recreate the current configuration.
6004 # Compiler output produced by configure, useful for debugging
6005 # configure, is in config.log if it exists.
6010 SHELL=\${CONFIG_SHELL-$SHELL}
6013 cat >>$CONFIG_STATUS <<\_ACEOF
6014 ## --------------------- ##
6015 ## M4sh Initialization. ##
6016 ## --------------------- ##
6018 # Be Bourne compatible
6019 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6022 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6023 # is contrary to our usage. Disable this feature.
6024 alias -g '${1+"$@"}'='"$@"'
6025 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6029 # Support unset when possible.
6030 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6037 # Work around bugs in pre-3.0 UWIN ksh.
6038 $as_unset ENV MAIL MAILPATH
6045 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6046 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6047 LC_TELEPHONE LC_TIME
6049 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6050 eval $as_var=C; export $as_var
6056 # Required to use basename.
6057 if expr a : '\(a\)' >/dev/null 2>&1; then
6063 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6064 as_basename=basename
6070 # Name of the executable.
6071 as_me=`$as_basename "$0" ||
6072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6073 X"$0" : 'X\(//\)$' \| \
6074 X"$0" : 'X\(/\)$' \| \
6075 . : '\(.\)' 2>/dev/null ||
6077 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6078 /^X\/\(\/\/\)$/{ s//\1/; q; }
6079 /^X\/\(\/\).*/{ s//\1/; q; }
6083 # PATH needs CR, and LINENO needs CR and PATH.
6084 # Avoid depending upon Character Ranges.
6085 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6086 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6087 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6088 as_cr_digits='0123456789'
6089 as_cr_alnum=$as_cr_Letters$as_cr_digits
6091 # The user is always right.
6092 if test "${PATH_SEPARATOR+set}" != set; then
6093 echo "#! /bin/sh" >conf$$.sh
6094 echo "exit 0" >>conf$$.sh
6096 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6107 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6108 test "x$as_lineno_1" != "x$as_lineno_2" &&
6109 test "x$as_lineno_3" = "x$as_lineno_2" || {
6110 # Find who we are. Look in the path if we contain no path at all
6113 *[\\/]* ) as_myself=$0 ;;
6114 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6124 # We did not find ourselves, most probably we were run as `sh COMMAND'
6125 # in which case we are not to be found in the path.
6126 if test "x$as_myself" = x; then
6129 if test ! -f "$as_myself"; then
6130 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6131 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6132 { (exit 1); exit 1; }; }
6134 case $CONFIG_SHELL in
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6140 test -z "$as_dir" && as_dir=.
6141 for as_base in sh bash ksh sh5; do
6144 if ("$as_dir/$as_base" -c '
6147 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6148 test "x$as_lineno_1" != "x$as_lineno_2" &&
6149 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6150 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6151 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6152 CONFIG_SHELL=$as_dir/$as_base
6154 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6162 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6163 # uniformly replaced by the line number. The first 'sed' inserts a
6164 # line-number line before each line; the second 'sed' does the real
6165 # work. The second script uses 'N' to pair each line-number line
6166 # with the numbered line, and appends trailing '-' during
6167 # substitution so that $LINENO is not a special case at line end.
6168 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6169 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6170 sed '=' <$as_myself |
6175 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6178 s,^['$as_cr_digits']*\n,,
6180 chmod +x $as_me.lineno ||
6181 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6182 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6183 { (exit 1); exit 1; }; }
6185 # Don't try to exec as it changes $[0], causing all sort of problems
6186 # (the dirname of $[0] is not the place where we might find the
6187 # original and so on. Autoconf is especially sensible to this).
6189 # Exit status is that of the last command.
6194 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6195 *c*,-n*) ECHO_N= ECHO_C='
6197 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6198 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6201 if expr a : '\(a\)' >/dev/null 2>&1; then
6207 rm -f conf$$ conf$$.exe conf$$.file
6209 if ln -s conf$$.file conf$$ 2>/dev/null; then
6210 # We could just check for DJGPP; but this test a) works b) is more generic
6211 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6212 if test -f conf$$.exe; then
6213 # Don't use ln at all; we don't have any links
6218 elif ln conf$$.file conf$$ 2>/dev/null; then
6223 rm -f conf$$ conf$$.exe conf$$.file
6225 if mkdir -p . 2>/dev/null; then
6231 as_executable_p="test -f"
6233 # Sed expression to map a string onto a valid CPP name.
6234 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6236 # Sed expression to map a string onto a valid variable name.
6237 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6241 # We need space, tab and new line, in precisely that order.
6251 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6252 # report actual input values of CONFIG_FILES etc. instead of their
6253 # values after options handling. Logging --version etc. is OK.
6257 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6258 ## Running $as_me. ##
6263 This file was extended by $as_me, which was
6264 generated by GNU Autoconf 2.57. Invocation command line was
6266 CONFIG_FILES = $CONFIG_FILES
6267 CONFIG_HEADERS = $CONFIG_HEADERS
6268 CONFIG_LINKS = $CONFIG_LINKS
6269 CONFIG_COMMANDS = $CONFIG_COMMANDS
6273 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6277 # Files that config.status was made for.
6278 if test -n "$ac_config_files"; then
6279 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6282 if test -n "$ac_config_headers"; then
6283 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6286 if test -n "$ac_config_links"; then
6287 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6290 if test -n "$ac_config_commands"; then
6291 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6294 cat >>$CONFIG_STATUS <<\_ACEOF
6297 \`$as_me' instantiates files from templates according to the
6298 current configuration.
6300 Usage: $0 [OPTIONS] [FILE]...
6302 -h, --help print this help, then exit
6303 -V, --version print version number, then exit
6304 -q, --quiet do not print progress messages
6305 -d, --debug don't remove temporary files
6306 --recheck update $as_me by reconfiguring in the same conditions
6307 --file=FILE[:TEMPLATE]
6308 instantiate the configuration file FILE
6309 --header=FILE[:TEMPLATE]
6310 instantiate the configuration header FILE
6312 Configuration files:
6315 Configuration headers:
6318 Configuration commands:
6321 Report bugs to <bug-autoconf@gnu.org>."
6324 cat >>$CONFIG_STATUS <<_ACEOF
6327 configured by $0, generated by GNU Autoconf 2.57,
6328 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6330 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6331 Free Software Foundation, Inc.
6332 This config.status script is free software; the Free Software Foundation
6333 gives unlimited permission to copy, distribute and modify it."
6338 cat >>$CONFIG_STATUS <<\_ACEOF
6339 # If no file are specified by the user, then we need to provide default
6340 # value. By we need to know if files were specified by the user.
6346 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6347 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6355 *) # This is not an option, so the user has probably given explicit
6358 ac_need_defaults=false;;
6362 # Handling of the options.
6364 cat >>$CONFIG_STATUS <<\_ACEOF
6365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6367 --version | --vers* | -V )
6368 echo "$ac_cs_version"; exit 0 ;;
6370 # Conflict between --help and --header
6371 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6372 Try \`$0 --help' for more information." >&5
6373 echo "$as_me: error: ambiguous option: $1
6374 Try \`$0 --help' for more information." >&2;}
6375 { (exit 1); exit 1; }; };;
6376 --help | --hel | -h )
6377 echo "$ac_cs_usage"; exit 0 ;;
6378 --debug | --d* | -d )
6380 --file | --fil | --fi | --f )
6382 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6383 ac_need_defaults=false;;
6384 --header | --heade | --head | --hea )
6386 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6387 ac_need_defaults=false;;
6388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6389 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6393 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6394 Try \`$0 --help' for more information." >&5
6395 echo "$as_me: error: unrecognized option: $1
6396 Try \`$0 --help' for more information." >&2;}
6397 { (exit 1); exit 1; }; } ;;
6399 *) ac_config_targets="$ac_config_targets $1" ;;
6405 ac_configure_extra_args=
6407 if $ac_cs_silent; then
6409 ac_configure_extra_args="$ac_configure_extra_args --silent"
6413 cat >>$CONFIG_STATUS <<_ACEOF
6414 if \$ac_cs_recheck; then
6415 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6416 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6421 cat >>$CONFIG_STATUS <<_ACEOF
6423 # INIT-COMMANDS section.
6426 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6432 cat >>$CONFIG_STATUS <<\_ACEOF
6433 for ac_config_target in $ac_config_targets
6435 case "$ac_config_target" in
6436 # Handling of arguments.
6437 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6438 "abook.spec" ) CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
6439 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6440 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6441 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6442 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6443 { (exit 1); exit 1; }; };;
6447 # If the user did not use the arguments to specify the items to instantiate,
6448 # then the envvar interface is used. Set only those that are not.
6449 # We use the long form for the default assignment because of an extremely
6450 # bizarre bug on SunOS 4.1.3.
6451 if $ac_need_defaults; then
6452 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6453 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6454 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6457 # Have a temporary directory for convenience. Make it in the build tree
6458 # simply because there is no reason to put it here, and in addition,
6459 # creating and moving files from /tmp can sometimes cause problems.
6460 # Create a temporary directory, and hook for its removal unless debugging.
6463 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6464 trap '{ (exit 1); exit 1; }' 1 2 13 15
6467 # Create a (secure) tmp directory for tmp files.
6470 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6471 test -n "$tmp" && test -d "$tmp"
6474 tmp=./confstat$$-$RANDOM
6475 (umask 077 && mkdir $tmp)
6478 echo "$me: cannot create a temporary directory in ." >&2
6479 { (exit 1); exit 1; }
6484 cat >>$CONFIG_STATUS <<_ACEOF
6487 # CONFIG_FILES section.
6490 # No need to generate the scripts if there are no CONFIG_FILES.
6491 # This happens for instance when ./config.status config.h
6492 if test -n "\$CONFIG_FILES"; then
6493 # Protect against being on the right side of a sed subst in config.status.
6494 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6495 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6496 s,@SHELL@,$SHELL,;t t
6497 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6498 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6499 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6500 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6501 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6502 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6503 s,@exec_prefix@,$exec_prefix,;t t
6504 s,@prefix@,$prefix,;t t
6505 s,@program_transform_name@,$program_transform_name,;t t
6506 s,@bindir@,$bindir,;t t
6507 s,@sbindir@,$sbindir,;t t
6508 s,@libexecdir@,$libexecdir,;t t
6509 s,@datadir@,$datadir,;t t
6510 s,@sysconfdir@,$sysconfdir,;t t
6511 s,@sharedstatedir@,$sharedstatedir,;t t
6512 s,@localstatedir@,$localstatedir,;t t
6513 s,@libdir@,$libdir,;t t
6514 s,@includedir@,$includedir,;t t
6515 s,@oldincludedir@,$oldincludedir,;t t
6516 s,@infodir@,$infodir,;t t
6517 s,@mandir@,$mandir,;t t
6518 s,@build_alias@,$build_alias,;t t
6519 s,@host_alias@,$host_alias,;t t
6520 s,@target_alias@,$target_alias,;t t
6522 s,@ECHO_C@,$ECHO_C,;t t
6523 s,@ECHO_N@,$ECHO_N,;t t
6524 s,@ECHO_T@,$ECHO_T,;t t
6526 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6527 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6528 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6529 s,@CYGPATH_W@,$CYGPATH_W,;t t
6530 s,@PACKAGE@,$PACKAGE,;t t
6531 s,@VERSION@,$VERSION,;t t
6532 s,@ACLOCAL@,$ACLOCAL,;t t
6533 s,@AUTOCONF@,$AUTOCONF,;t t
6534 s,@AUTOMAKE@,$AUTOMAKE,;t t
6535 s,@AUTOHEADER@,$AUTOHEADER,;t t
6536 s,@MAKEINFO@,$MAKEINFO,;t t
6537 s,@AMTAR@,$AMTAR,;t t
6538 s,@install_sh@,$install_sh,;t t
6539 s,@STRIP@,$STRIP,;t t
6540 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6541 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6543 s,@SET_MAKE@,$SET_MAKE,;t t
6544 s,@am__leading_dot@,$am__leading_dot,;t t
6545 s,@build@,$build,;t t
6546 s,@build_cpu@,$build_cpu,;t t
6547 s,@build_vendor@,$build_vendor,;t t
6548 s,@build_os@,$build_os,;t t
6550 s,@host_cpu@,$host_cpu,;t t
6551 s,@host_vendor@,$host_vendor,;t t
6552 s,@host_os@,$host_os,;t t
6554 s,@CFLAGS@,$CFLAGS,;t t
6555 s,@LDFLAGS@,$LDFLAGS,;t t
6556 s,@CPPFLAGS@,$CPPFLAGS,;t t
6557 s,@ac_ct_CC@,$ac_ct_CC,;t t
6558 s,@EXEEXT@,$EXEEXT,;t t
6559 s,@OBJEXT@,$OBJEXT,;t t
6560 s,@DEPDIR@,$DEPDIR,;t t
6561 s,@am__include@,$am__include,;t t
6562 s,@am__quote@,$am__quote,;t t
6563 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6564 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6565 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6566 s,@CCDEPMODE@,$CCDEPMODE,;t t
6567 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6568 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6570 s,@EGREP@,$EGREP,;t t
6572 s,@ANSI2KNR@,$ANSI2KNR,;t t
6573 s,@LIBOBJS@,$LIBOBJS,;t t
6574 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6579 cat >>$CONFIG_STATUS <<\_ACEOF
6580 # Split the substitutions into bite-sized pieces for seds with
6581 # small command number limits, like on Digital OSF/1 and HP-UX.
6583 ac_sed_frag=1 # Number of current file.
6584 ac_beg=1 # First line for current file.
6585 ac_end=$ac_max_sed_lines # Line after last line for current file.
6588 while $ac_more_lines; do
6589 if test $ac_beg -gt 1; then
6590 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6592 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6594 if test ! -s $tmp/subs.frag; then
6597 # The purpose of the label and of the branching condition is to
6598 # speed up the sed processing (if there are no `@' at all, there
6599 # is no need to browse any of the substitutions).
6600 # These are the two extra sed commands mentioned above.
6602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6603 if test -z "$ac_sed_cmds"; then
6604 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6606 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6608 ac_sed_frag=`expr $ac_sed_frag + 1`
6610 ac_end=`expr $ac_end + $ac_max_sed_lines`
6613 if test -z "$ac_sed_cmds"; then
6616 fi # test -n "$CONFIG_FILES"
6619 cat >>$CONFIG_STATUS <<\_ACEOF
6620 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6621 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6623 - | *:- | *:-:* ) # input from stdin
6625 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6626 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6627 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6628 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6629 * ) ac_file_in=$ac_file.in ;;
6632 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6633 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6634 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6635 X"$ac_file" : 'X\(//\)[^/]' \| \
6636 X"$ac_file" : 'X\(//\)$' \| \
6637 X"$ac_file" : 'X\(/\)' \| \
6638 . : '\(.\)' 2>/dev/null ||
6640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6641 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6642 /^X\(\/\/\)$/{ s//\1/; q; }
6643 /^X\(\/\).*/{ s//\1/; q; }
6645 { if $as_mkdir_p; then
6650 while test ! -d "$as_dir"; do
6651 as_dirs="$as_dir $as_dirs"
6652 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6654 X"$as_dir" : 'X\(//\)[^/]' \| \
6655 X"$as_dir" : 'X\(//\)$' \| \
6656 X"$as_dir" : 'X\(/\)' \| \
6657 . : '\(.\)' 2>/dev/null ||
6659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6661 /^X\(\/\/\)$/{ s//\1/; q; }
6662 /^X\(\/\).*/{ s//\1/; q; }
6665 test ! -n "$as_dirs" || mkdir $as_dirs
6666 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6667 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6668 { (exit 1); exit 1; }; }; }
6672 if test "$ac_dir" != .; then
6673 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6674 # A "../" for each directory in $ac_dir_suffix.
6675 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6677 ac_dir_suffix= ac_top_builddir=
6681 .) # No --srcdir option. We are building in place.
6683 if test -z "$ac_top_builddir"; then
6686 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6688 [\\/]* | ?:[\\/]* ) # Absolute path.
6689 ac_srcdir=$srcdir$ac_dir_suffix;
6690 ac_top_srcdir=$srcdir ;;
6692 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6693 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6695 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6697 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6698 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6699 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6700 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6704 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6705 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6708 if test x"$ac_file" != x-; then
6709 { echo "$as_me:$LINENO: creating $ac_file" >&5
6710 echo "$as_me: creating $ac_file" >&6;}
6713 # Let's still pretend it is `configure' which instantiates (i.e., don't
6714 # use $as_me), people would be surprised to read:
6715 # /* config.h. Generated by config.status. */
6716 if test x"$ac_file" = x-; then
6719 configure_input="$ac_file. "
6721 configure_input=$configure_input"Generated from `echo $ac_file_in |
6722 sed 's,.*/,,'` by configure."
6724 # First look for the input files in the build tree, otherwise in the
6726 ac_file_inputs=`IFS=:
6727 for f in $ac_file_in; do
6729 -) echo $tmp/stdin ;;
6731 # Absolute (can't be DOS-style, as IFS=:)
6732 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6733 echo "$as_me: error: cannot find input file: $f" >&2;}
6734 { (exit 1); exit 1; }; }
6737 if test -f "$f"; then
6740 elif test -f "$srcdir/$f"; then
6745 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6746 echo "$as_me: error: cannot find input file: $f" >&2;}
6747 { (exit 1); exit 1; }; }
6750 done` || { (exit 1); exit 1; }
6752 cat >>$CONFIG_STATUS <<_ACEOF
6756 cat >>$CONFIG_STATUS <<\_ACEOF
6758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6759 s,@configure_input@,$configure_input,;t t
6760 s,@srcdir@,$ac_srcdir,;t t
6761 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6762 s,@top_srcdir@,$ac_top_srcdir,;t t
6763 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6764 s,@builddir@,$ac_builddir,;t t
6765 s,@abs_builddir@,$ac_abs_builddir,;t t
6766 s,@top_builddir@,$ac_top_builddir,;t t
6767 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6768 s,@INSTALL@,$ac_INSTALL,;t t
6769 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6771 if test x"$ac_file" != x-; then
6772 mv $tmp/out $ac_file
6780 cat >>$CONFIG_STATUS <<\_ACEOF
6783 # CONFIG_HEADER section.
6786 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6787 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6789 # ac_d sets the value in "#define NAME VALUE" lines.
6790 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6791 ac_dB='[ ].*$,\1#\2'
6794 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6795 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6796 ac_uB='$,\1#\2define\3'
6800 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6801 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6803 - | *:- | *:-:* ) # input from stdin
6805 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6806 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6807 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6808 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6809 * ) ac_file_in=$ac_file.in ;;
6812 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6813 echo "$as_me: creating $ac_file" >&6;}
6815 # First look for the input files in the build tree, otherwise in the
6817 ac_file_inputs=`IFS=:
6818 for f in $ac_file_in; do
6820 -) echo $tmp/stdin ;;
6822 # Absolute (can't be DOS-style, as IFS=:)
6823 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6824 echo "$as_me: error: cannot find input file: $f" >&2;}
6825 { (exit 1); exit 1; }; }
6828 if test -f "$f"; then
6831 elif test -f "$srcdir/$f"; then
6836 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6837 echo "$as_me: error: cannot find input file: $f" >&2;}
6838 { (exit 1); exit 1; }; }
6841 done` || { (exit 1); exit 1; }
6842 # Remove the trailing spaces.
6843 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6847 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6848 # `conftest.undefs', that substitutes the proper values into
6849 # config.h.in to produce config.h. The first handles `#define'
6850 # templates, and the second `#undef' templates.
6851 # And first: Protect against being on the right side of a sed subst in
6852 # config.status. Protect against being in an unquoted here document
6854 rm -f conftest.defines conftest.undefs
6855 # Using a here document instead of a string reduces the quoting nightmare.
6856 # Putting comments in sed scripts is not portable.
6858 # `end' is used to avoid that the second main sed command (meant for
6859 # 0-ary CPP macros) applies to n-ary macro definitions.
6860 # See the Autoconf documentation for `clear'.
6861 cat >confdef2sed.sed <<\_ACEOF
6866 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6868 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6871 # If some macros were called several times there might be several times
6872 # the same #defines, which is useless. Nevertheless, we may not want to
6873 # sort them, since we want the *last* AC-DEFINE to be honored.
6874 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6875 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6876 rm -f confdef2sed.sed
6878 # This sed command replaces #undef with comments. This is necessary, for
6879 # example, in the case of _POSIX_SOURCE, which is predefined and required
6880 # on some systems where configure will not decide to define it.
6881 cat >>conftest.undefs <<\_ACEOF
6882 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6885 # Break up conftest.defines because some shells have a limit on the size
6886 # of here documents, and old seds have small limits too (100 cmds).
6887 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6888 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6889 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6890 echo ' :' >>$CONFIG_STATUS
6892 while grep . conftest.defines >/dev/null
6894 # Write a limited-size here document to $tmp/defines.sed.
6895 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6896 # Speed up: don't consider the non `#define' lines.
6897 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6898 # Work around the forget-to-reset-the-flag bug.
6899 echo 't clr' >>$CONFIG_STATUS
6900 echo ': clr' >>$CONFIG_STATUS
6901 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6903 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6907 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6908 rm -f conftest.defines
6909 mv conftest.tail conftest.defines
6911 rm -f conftest.defines
6912 echo ' fi # grep' >>$CONFIG_STATUS
6913 echo >>$CONFIG_STATUS
6915 # Break up conftest.undefs because some shells have a limit on the size
6916 # of here documents, and old seds have small limits too (100 cmds).
6917 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6919 while grep . conftest.undefs >/dev/null
6921 # Write a limited-size here document to $tmp/undefs.sed.
6922 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6923 # Speed up: don't consider the non `#undef'
6924 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6925 # Work around the forget-to-reset-the-flag bug.
6926 echo 't clr' >>$CONFIG_STATUS
6927 echo ': clr' >>$CONFIG_STATUS
6928 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6930 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6934 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6935 rm -f conftest.undefs
6936 mv conftest.tail conftest.undefs
6938 rm -f conftest.undefs
6940 cat >>$CONFIG_STATUS <<\_ACEOF
6941 # Let's still pretend it is `configure' which instantiates (i.e., don't
6942 # use $as_me), people would be surprised to read:
6943 # /* config.h. Generated by config.status. */
6944 if test x"$ac_file" = x-; then
6945 echo "/* Generated by configure. */" >$tmp/config.h
6947 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6949 cat $tmp/in >>$tmp/config.h
6951 if test x"$ac_file" != x-; then
6952 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6953 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6954 echo "$as_me: $ac_file is unchanged" >&6;}
6956 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6958 X"$ac_file" : 'X\(//\)[^/]' \| \
6959 X"$ac_file" : 'X\(//\)$' \| \
6960 X"$ac_file" : 'X\(/\)' \| \
6961 . : '\(.\)' 2>/dev/null ||
6963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6965 /^X\(\/\/\)$/{ s//\1/; q; }
6966 /^X\(\/\).*/{ s//\1/; q; }
6968 { if $as_mkdir_p; then
6973 while test ! -d "$as_dir"; do
6974 as_dirs="$as_dir $as_dirs"
6975 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6977 X"$as_dir" : 'X\(//\)[^/]' \| \
6978 X"$as_dir" : 'X\(//\)$' \| \
6979 X"$as_dir" : 'X\(/\)' \| \
6980 . : '\(.\)' 2>/dev/null ||
6982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6984 /^X\(\/\/\)$/{ s//\1/; q; }
6985 /^X\(\/\).*/{ s//\1/; q; }
6988 test ! -n "$as_dirs" || mkdir $as_dirs
6989 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6990 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6991 { (exit 1); exit 1; }; }; }
6994 mv $tmp/config.h $ac_file
7000 # Compute $ac_file's index in $config_headers.
7002 for _am_header in $config_headers :; do
7004 $ac_file | $ac_file:* )
7007 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7010 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7011 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7012 X$ac_file : 'X\(//\)[^/]' \| \
7013 X$ac_file : 'X\(//\)$' \| \
7014 X$ac_file : 'X\(/\)' \| \
7015 . : '\(.\)' 2>/dev/null ||
7017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7019 /^X\(\/\/\)$/{ s//\1/; q; }
7020 /^X\(\/\).*/{ s//\1/; q; }
7021 s/.*/./; q'`/stamp-h$_am_stamp_count
7024 cat >>$CONFIG_STATUS <<\_ACEOF
7027 # CONFIG_COMMANDS section.
7029 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7030 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7031 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7032 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7033 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7034 X"$ac_dest" : 'X\(//\)[^/]' \| \
7035 X"$ac_dest" : 'X\(//\)$' \| \
7036 X"$ac_dest" : 'X\(/\)' \| \
7037 . : '\(.\)' 2>/dev/null ||
7039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7040 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7041 /^X\(\/\/\)$/{ s//\1/; q; }
7042 /^X\(\/\).*/{ s//\1/; q; }
7046 if test "$ac_dir" != .; then
7047 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7048 # A "../" for each directory in $ac_dir_suffix.
7049 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7051 ac_dir_suffix= ac_top_builddir=
7055 .) # No --srcdir option. We are building in place.
7057 if test -z "$ac_top_builddir"; then
7060 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7062 [\\/]* | ?:[\\/]* ) # Absolute path.
7063 ac_srcdir=$srcdir$ac_dir_suffix;
7064 ac_top_srcdir=$srcdir ;;
7066 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7067 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7069 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7071 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7072 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7073 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7074 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7077 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7078 echo "$as_me: executing $ac_dest commands" >&6;}
7080 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7081 # Strip MF so we end up with the name of the file.
7082 mf=`echo "$mf" | sed -e 's/:.*$//'`
7083 # Check whether this is an Automake generated Makefile or not.
7084 # We used to match only the files named `Makefile.in', but
7085 # some people rename them; so instead we look at the file content.
7086 # Grep'ing the first line is not enough: some people post-process
7087 # each Makefile.in and add a new line on top of each file to say so.
7088 # So let's grep whole file.
7089 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7090 dirpart=`(dirname "$mf") 2>/dev/null ||
7091 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7092 X"$mf" : 'X\(//\)[^/]' \| \
7093 X"$mf" : 'X\(//\)$' \| \
7094 X"$mf" : 'X\(/\)' \| \
7095 . : '\(.\)' 2>/dev/null ||
7097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7098 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7099 /^X\(\/\/\)$/{ s//\1/; q; }
7100 /^X\(\/\).*/{ s//\1/; q; }
7105 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7106 # Extract the definition of DEP_FILES from the Makefile without
7108 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7109 test -z "$DEPDIR" && continue
7110 # When using ansi2knr, U may be empty or an underscore; expand it
7111 U=`sed -n -e '/^U = / s///p' < "$mf"`
7112 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7113 # We invoke sed twice because it is the simplest approach to
7114 # changing $(DEPDIR) to its actual value in the expansion.
7115 for file in `sed -n -e '
7116 /^DEP_FILES = .*\\\\$/ {
7125 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7126 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7127 # Make sure the directory exists.
7128 test -f "$dirpart/$file" && continue
7129 fdir=`(dirname "$file") 2>/dev/null ||
7130 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7131 X"$file" : 'X\(//\)[^/]' \| \
7132 X"$file" : 'X\(//\)$' \| \
7133 X"$file" : 'X\(/\)' \| \
7134 . : '\(.\)' 2>/dev/null ||
7136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7138 /^X\(\/\/\)$/{ s//\1/; q; }
7139 /^X\(\/\).*/{ s//\1/; q; }
7141 { if $as_mkdir_p; then
7142 mkdir -p $dirpart/$fdir
7144 as_dir=$dirpart/$fdir
7146 while test ! -d "$as_dir"; do
7147 as_dirs="$as_dir $as_dirs"
7148 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7150 X"$as_dir" : 'X\(//\)[^/]' \| \
7151 X"$as_dir" : 'X\(//\)$' \| \
7152 X"$as_dir" : 'X\(/\)' \| \
7153 . : '\(.\)' 2>/dev/null ||
7155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7157 /^X\(\/\/\)$/{ s//\1/; q; }
7158 /^X\(\/\).*/{ s//\1/; q; }
7161 test ! -n "$as_dirs" || mkdir $as_dirs
7162 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7163 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7164 { (exit 1); exit 1; }; }; }
7166 # echo "creating $dirpart/$file"
7167 echo '# dummy' > "$dirpart/$file"
7175 cat >>$CONFIG_STATUS <<\_ACEOF
7177 { (exit 0); exit 0; }
7179 chmod +x $CONFIG_STATUS
7180 ac_clean_files=$ac_clean_files_save
7183 # configure is writing to config.log, and then calls config.status.
7184 # config.status does its own redirection, appending to config.log.
7185 # Unfortunately, on DOS this fails, as config.log is still kept open
7186 # by configure, so config.status won't be able to write to it; its
7187 # output is simply discarded. So we exec the FD to /dev/null,
7188 # effectively closing config.log, so it can be properly (re)opened and
7189 # appended to by config.status. When coming back to configure, we
7190 # need to make the FD available again.
7191 if test "$no_create" != yes; then
7193 ac_config_status_args=
7194 test "$silent" = yes &&
7195 ac_config_status_args="$ac_config_status_args --quiet"
7197 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7199 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7200 # would make configure fail if this is the last instruction.
7201 $ac_cs_success || { (exit 1); exit 1; }