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 # Make sure we can run config.sub.
1680 $ac_config_sub sun4 >/dev/null 2>&1 ||
1681 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1682 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1683 { (exit 1); exit 1; }; }
1685 echo "$as_me:$LINENO: checking build system type" >&5
1686 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1687 if test "${ac_cv_build+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 ac_cv_build_alias=$build_alias
1691 test -z "$ac_cv_build_alias" &&
1692 ac_cv_build_alias=`$ac_config_guess`
1693 test -z "$ac_cv_build_alias" &&
1694 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1695 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1696 { (exit 1); exit 1; }; }
1697 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1698 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1699 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1700 { (exit 1); exit 1; }; }
1703 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1704 echo "${ECHO_T}$ac_cv_build" >&6
1706 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1707 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1708 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1711 echo "$as_me:$LINENO: checking host system type" >&5
1712 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1713 if test "${ac_cv_host+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 ac_cv_host_alias=$host_alias
1717 test -z "$ac_cv_host_alias" &&
1718 ac_cv_host_alias=$ac_cv_build_alias
1719 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1720 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1721 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1722 { (exit 1); exit 1; }; }
1725 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1726 echo "${ECHO_T}$ac_cv_host" >&6
1728 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1729 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1730 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1735 ac_cpp='$CPP $CPPFLAGS'
1736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1739 if test -n "$ac_tool_prefix"; then
1740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1742 echo "$as_me:$LINENO: checking for $ac_word" >&5
1743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744 if test "${ac_cv_prog_CC+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1747 if test -n "$CC"; then
1748 ac_cv_prog_CC="$CC" # Let the user override the test.
1750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 test -z "$as_dir" && as_dir=.
1755 for ac_exec_ext in '' $ac_executable_extensions; do
1756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767 if test -n "$CC"; then
1768 echo "$as_me:$LINENO: result: $CC" >&5
1769 echo "${ECHO_T}$CC" >&6
1771 echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1776 if test -z "$ac_cv_prog_CC"; then
1778 # Extract the first word of "gcc", so it can be a program name with args.
1779 set dummy gcc; ac_word=$2
1780 echo "$as_me:$LINENO: checking for $ac_word" >&5
1781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 if test -n "$ac_ct_CC"; then
1786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792 test -z "$as_dir" && as_dir=.
1793 for ac_exec_ext in '' $ac_executable_extensions; do
1794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1795 ac_cv_prog_ac_ct_CC="gcc"
1796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1805 if test -n "$ac_ct_CC"; then
1806 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1807 echo "${ECHO_T}$ac_ct_CC" >&6
1809 echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6
1818 if test -z "$CC"; then
1819 if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}cc; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC="${ac_tool_prefix}cc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1856 if test -z "$ac_cv_prog_CC"; then
1858 # Extract the first word of "cc", so it can be a program name with args.
1859 set dummy cc; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC="cc"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1899 if test -z "$CC"; then
1900 # Extract the first word of "cc", so it can be a program name with args.
1901 set dummy cc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 if test -n "$CC"; then
1908 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1919 ac_prog_rejected=yes
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 if test $ac_prog_rejected = yes; then
1930 # We found a bogon in the path, so make sure we never use it.
1931 set dummy $ac_cv_prog_CC
1933 if test $# != 0; then
1934 # We chose a different compiler from the bogus one.
1935 # However, it has the same basename, so the bogon will be chosen
1936 # first if we set CC to just the basename; use the full file name.
1938 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1944 if test -n "$CC"; then
1945 echo "$as_me:$LINENO: result: $CC" >&5
1946 echo "${ECHO_T}$CC" >&6
1948 echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1953 if test -z "$CC"; then
1954 if test -n "$ac_tool_prefix"; then
1957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1959 echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961 if test "${ac_cv_prog_CC+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 if test -n "$CC"; then
1965 ac_cv_prog_CC="$CC" # Let the user override the test.
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 if test -n "$CC"; then
1985 echo "$as_me:$LINENO: result: $CC" >&5
1986 echo "${ECHO_T}$CC" >&6
1988 echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6
1992 test -n "$CC" && break
1995 if test -z "$CC"; then
1999 # Extract the first word of "$ac_prog", so it can be a program name with args.
2000 set dummy $ac_prog; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test -n "$ac_ct_CC"; then
2007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 ac_cv_prog_ac_ct_CC="$ac_prog"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026 if test -n "$ac_ct_CC"; then
2027 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028 echo "${ECHO_T}$ac_ct_CC" >&6
2030 echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2034 test -n "$ac_ct_CC" && break
2043 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: no acceptable C compiler found in \$PATH
2046 See \`config.log' for more details." >&2;}
2047 { (exit 1); exit 1; }; }
2049 # Provide some information about the compiler.
2050 echo "$as_me:$LINENO:" \
2051 "checking for C compiler version" >&5
2052 ac_compiler=`set X $ac_compile; echo $2`
2053 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2054 (eval $ac_compiler --version </dev/null >&5) 2>&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }
2058 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2059 (eval $ac_compiler -v </dev/null >&5) 2>&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }
2063 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2064 (eval $ac_compiler -V </dev/null >&5) 2>&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }
2069 cat >conftest.$ac_ext <<_ACEOF
2070 #line $LINENO "configure"
2073 cat confdefs.h >>conftest.$ac_ext
2074 cat >>conftest.$ac_ext <<_ACEOF
2075 /* end confdefs.h. */
2085 ac_clean_files_save=$ac_clean_files
2086 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2087 # Try to create an executable without -o first, disregard a.out.
2088 # It will help us diagnose broken compilers, and finding out an intuition
2090 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2091 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2092 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2093 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2094 (eval $ac_link_default) 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; then
2098 # Find the output, starting from the most likely. This scheme is
2099 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2102 # Be careful to initialize this variable, since it used to be cached.
2103 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2105 # b.out is created by i960 compilers.
2106 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2108 test -f "$ac_file" || continue
2110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2113 # This is the source file.
2116 # We found the default executable, but exeext='' is most
2120 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121 # FIXME: I believe we export ac_cv_exeext for Libtool,
2122 # but it would be cool to find out if it's true. Does anybody
2123 # maintain Libtool? --akim.
2131 echo "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.$ac_ext >&5
2134 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: C compiler cannot create executables
2137 See \`config.log' for more details." >&2;}
2138 { (exit 77); exit 77; }; }
2141 ac_exeext=$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_file" >&5
2143 echo "${ECHO_T}$ac_file" >&6
2145 # Check the compiler produces executables we can run. If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2148 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2149 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2150 # If not cross compiling, check that we can run a simple program.
2151 if test "$cross_compiling" != yes; then
2152 if { ac_try='./$ac_file'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2160 if test "$cross_compiling" = maybe; then
2163 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'.
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: cannot run C compiled programs.
2167 If you meant to cross compile, use \`--host'.
2168 See \`config.log' for more details." >&2;}
2169 { (exit 1); exit 1; }; }
2173 echo "$as_me:$LINENO: result: yes" >&5
2174 echo "${ECHO_T}yes" >&6
2176 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2177 ac_clean_files=$ac_clean_files_save
2178 # Check the compiler produces executables we can run. If not, either
2179 # the compiler is broken, or we cross compile.
2180 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2181 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2182 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2183 echo "${ECHO_T}$cross_compiling" >&6
2185 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2186 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188 (eval $ac_link) 2>&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; then
2192 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2193 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2194 # work properly (i.e., refer to `conftest.exe'), while it won't with
2196 for ac_file in conftest.exe conftest conftest.*; do
2197 test -f "$ac_file" || continue
2199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2200 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2210 See \`config.log' for more details." >&2;}
2211 { (exit 1); exit 1; }; }
2214 rm -f conftest$ac_cv_exeext
2215 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2216 echo "${ECHO_T}$ac_cv_exeext" >&6
2218 rm -f conftest.$ac_ext
2219 EXEEXT=$ac_cv_exeext
2221 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2222 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2223 if test "${ac_cv_objext+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 cat >conftest.$ac_ext <<_ACEOF
2227 #line $LINENO "configure"
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2242 rm -f conftest.o conftest.obj
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244 (eval $ac_compile) 2>&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; then
2248 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2251 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2256 echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2259 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2262 See \`config.log' for more details." >&2;}
2263 { (exit 1); exit 1; }; }
2266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2268 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2269 echo "${ECHO_T}$ac_cv_objext" >&6
2270 OBJEXT=$ac_cv_objext
2272 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2273 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2274 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 cat >conftest.$ac_ext <<_ACEOF
2278 #line $LINENO "configure"
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2315 rm -f conftest.$ac_objext conftest.$ac_ext
2316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2319 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2320 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2321 GCC=`test $ac_compiler_gnu = yes && echo yes`
2322 ac_test_CFLAGS=${CFLAGS+set}
2323 ac_save_CFLAGS=$CFLAGS
2325 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2326 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2327 if test "${ac_cv_prog_cc_g+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 cat >conftest.$ac_ext <<_ACEOF
2331 #line $LINENO "configure"
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -s conftest.$ac_objext'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; }; then
2360 echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2365 rm -f conftest.$ac_objext conftest.$ac_ext
2367 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2368 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2369 if test "$ac_test_CFLAGS" = set; then
2370 CFLAGS=$ac_save_CFLAGS
2371 elif test $ac_cv_prog_cc_g = yes; then
2372 if test "$GCC" = yes; then
2378 if test "$GCC" = yes; then
2384 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2385 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2386 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 ac_cv_prog_cc_stdc=no
2391 cat >conftest.$ac_ext <<_ACEOF
2392 #line $LINENO "configure"
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h. */
2400 #include <sys/types.h>
2401 #include <sys/stat.h>
2402 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2403 struct buf { int x; };
2404 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2405 static char *e (p, i)
2411 static char *f (char * (*g) (char **, int), char **p, ...)
2416 s = g (p, va_arg (v,int));
2420 int test (int i, double x);
2421 struct s1 {int (*f) (int a);};
2422 struct s2 {int (*f) (double a);};
2423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2429 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2434 # Don't try gcc -ansi; that turns off useful extensions and
2435 # breaks some systems' header files.
2436 # AIX -qlanglvl=ansi
2437 # Ultrix and OSF/1 -std1
2438 # HP-UX 10.20 and later -Ae
2439 # HP-UX older versions -Aa -D_HPUX_SOURCE
2440 # SVR4 -Xc -D__EXTENSIONS__
2441 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2443 CC="$ac_save_CC $ac_arg"
2444 rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446 (eval $ac_compile) 2>&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); } &&
2450 { ac_try='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2456 ac_cv_prog_cc_stdc=$ac_arg
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2463 rm -f conftest.$ac_objext
2465 rm -f conftest.$ac_ext conftest.$ac_objext
2470 case "x$ac_cv_prog_cc_stdc" in
2472 echo "$as_me:$LINENO: result: none needed" >&5
2473 echo "${ECHO_T}none needed" >&6 ;;
2475 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2476 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2477 CC="$CC $ac_cv_prog_cc_stdc" ;;
2480 # Some people use a C++ compiler to compile C. Since we use `exit',
2481 # in C++ we need to declare it. In case someone uses the same compiler
2482 # for both compiling C and C++ we need to have the C++ compiler decide
2483 # the declaration of exit, since it's the most demanding environment.
2484 cat >conftest.$ac_ext <<_ACEOF
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491 (eval $ac_compile) 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2501 for ac_declaration in \
2503 '#include <stdlib.h>' \
2504 'extern "C" void std::exit (int) throw (); using std::exit;' \
2505 'extern "C" void std::exit (int); using std::exit;' \
2506 'extern "C" void exit (int) throw ();' \
2507 'extern "C" void exit (int);' \
2510 cat >conftest.$ac_ext <<_ACEOF
2511 #line $LINENO "configure"
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2546 rm -f conftest.$ac_objext conftest.$ac_ext
2547 cat >conftest.$ac_ext <<_ACEOF
2548 #line $LINENO "configure"
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2563 rm -f conftest.$ac_objext
2564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2565 (eval $ac_compile) 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2577 echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2581 rm -f conftest.$ac_objext conftest.$ac_ext
2584 if test -n "$ac_declaration"; then
2585 echo '#ifdef __cplusplus' >>confdefs.h
2586 echo $ac_declaration >>confdefs.h
2587 echo '#endif' >>confdefs.h
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2595 rm -f conftest.$ac_objext conftest.$ac_ext
2597 ac_cpp='$CPP $CPPFLAGS'
2598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601 DEPDIR="${am__leading_dot}deps"
2603 ac_config_commands="$ac_config_commands depfiles"
2606 am_make=${MAKE-make}
2607 cat > confinc << 'END'
2612 # If we don't find an include directive, just comment out the code.
2613 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2614 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2618 # First try GNU make style include.
2619 echo "include confinc" > confmf
2620 # We grep out `Entering directory' and `Leaving directory'
2621 # messages which can occur if `w' ends up in MAKEFLAGS.
2622 # In particular we don't look at `^make:' because GNU make might
2623 # be invoked under some other name (usually "gmake"), in which
2624 # case it prints its new name instead of `make'.
2625 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2630 # Now try BSD make style include.
2631 if test "$am__include" = "#"; then
2632 echo '.include "confinc"' > confmf
2633 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2634 am__include=.include
2641 echo "$as_me:$LINENO: result: $_am_result" >&5
2642 echo "${ECHO_T}$_am_result" >&6
2643 rm -f confinc confmf
2645 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2646 if test "${enable_dependency_tracking+set}" = set; then
2647 enableval="$enable_dependency_tracking"
2650 if test "x$enable_dependency_tracking" != xno; then
2651 am_depcomp="$ac_aux_dir/depcomp"
2656 if test "x$enable_dependency_tracking" != xno; then
2667 depcc="$CC" am_compiler_list=
2669 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2670 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2671 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2675 # We make a subdir and do the tests there. Otherwise we can end up
2676 # making bogus files that we don't know about and never remove. For
2677 # instance it was reported that on HP-UX the gcc test will end up
2678 # making a dummy file named `D' -- because `-MD' means `put the output
2681 # Copy depcomp to subdir because otherwise we won't find it if we're
2682 # using a relative directory.
2683 cp "$am_depcomp" conftest.dir
2685 # We will build objects and dependencies in a subdirectory because
2686 # it helps to detect inapplicable dependency modes. For instance
2687 # both Tru64's cc and ICC support -MD to output dependencies as a
2688 # side effect of compilation, but ICC will put the dependencies in
2689 # the current directory while Tru64 will put them in the object
2693 am_cv_CC_dependencies_compiler_type=none
2694 if test "$am_compiler_list" = ""; then
2695 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2697 for depmode in $am_compiler_list; do
2698 # Setup a source with many dependencies, because some compilers
2699 # like to wrap large dependency lists on column 80 (with \), and
2700 # we should not choose a depcomp mode which is confused by this.
2702 # We need to recreate these files for each test, as the compiler may
2703 # overwrite some of them when testing with obscure command lines.
2704 # This happens at least with the AIX C compiler.
2706 for i in 1 2 3 4 5 6; do
2707 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2714 # after this tag, mechanisms are not by side-effect, so they'll
2715 # only be used when explicitly requested
2716 if test "x$enable_dependency_tracking" = xyes; then
2724 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2725 # mode. It turns out that the SunPro C++ compiler does not properly
2726 # handle `-M -o', and we need to detect this.
2727 if depmode=$depmode \
2728 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2729 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2730 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2731 >/dev/null 2>conftest.err &&
2732 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2733 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2734 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2735 # icc doesn't choke on unknown options, it will just issue warnings
2736 # (even with -Werror). So we grep stderr for any message
2737 # that says an option was ignored.
2738 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2739 am_cv_CC_dependencies_compiler_type=$depmode
2748 am_cv_CC_dependencies_compiler_type=none
2752 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2753 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2754 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2759 test "x$enable_dependency_tracking" != xno \
2760 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2762 am__fastdepCC_FALSE='#'
2764 am__fastdepCC_TRUE='#'
2765 am__fastdepCC_FALSE=
2771 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2772 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2773 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 ac_check_lib_save_LIBS=$LIBS
2777 LIBS="-lcposix $LIBS"
2778 cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2786 /* Override any gcc2 internal prototype to avoid an error. */
2790 /* We use char because int might match the return type of a gcc2
2791 builtin and then its argument prototype would still apply. */
2801 rm -f conftest.$ac_objext conftest$ac_exeext
2802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2803 (eval $ac_link) 2>&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
2807 { ac_try='test -s conftest$ac_exeext'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
2813 ac_cv_lib_cposix_strerror=yes
2815 echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2818 ac_cv_lib_cposix_strerror=no
2820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2821 LIBS=$ac_check_lib_save_LIBS
2823 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2824 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2825 if test $ac_cv_lib_cposix_strerror = yes; then
2826 LIBS="$LIBS -lcposix"
2834 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2835 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2836 if test "${am_cv_prog_cc_stdc+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 am_cv_prog_cc_stdc=no
2841 # Don't try gcc -ansi; that turns off useful extensions and
2842 # breaks some systems' header files.
2843 # AIX -qlanglvl=ansi
2844 # Ultrix and OSF/1 -std1
2845 # HP-UX 10.20 and later -Ae
2846 # HP-UX older versions -Aa -D_HPUX_SOURCE
2847 # SVR4 -Xc -D__EXTENSIONS__
2848 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2850 CC="$ac_save_CC $ac_arg"
2851 cat >conftest.$ac_ext <<_ACEOF
2852 #line $LINENO "configure"
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2860 #include <sys/types.h>
2861 #include <sys/stat.h>
2862 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2863 struct buf { int x; };
2864 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2865 static char *e (p, i)
2871 static char *f (char * (*g) (char **, int), char **p, ...)
2876 s = g (p, va_arg (v,int));
2880 int test (int i, double x);
2881 struct s1 {int (*f) (int a);};
2882 struct s2 {int (*f) (double a);};
2883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try='test -s conftest.$ac_objext'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 am_cv_prog_cc_stdc="$ac_arg"; break
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2915 rm -f conftest.$ac_objext conftest.$ac_ext
2921 if test -z "$am_cv_prog_cc_stdc"; then
2922 echo "$as_me:$LINENO: result: none needed" >&5
2923 echo "${ECHO_T}none needed" >&6
2925 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2926 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2928 case "x$am_cv_prog_cc_stdc" in
2930 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2940 # On Suns, sometimes $CPP names a directory.
2941 if test -n "$CPP" && test -d "$CPP"; then
2944 if test -z "$CPP"; then
2945 if test "${ac_cv_prog_CPP+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 # Double quotes because CPP needs to be expanded
2949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2952 for ac_c_preproc_warn_flag in '' yes
2954 # Use a header file that comes with gcc, so configuring glibc
2955 # with a fresh cross-compiler works.
2956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2957 # <limits.h> exists even on freestanding compilers.
2958 # On the NeXT, cc -E runs the code through the compiler's parser,
2959 # not just through cpp. "Syntax error" is here to catch this case.
2960 cat >conftest.$ac_ext <<_ACEOF
2961 #line $LINENO "configure"
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2968 # include <limits.h>
2970 # include <assert.h>
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } >/dev/null; then
2982 if test -s conftest.err; then
2983 ac_cpp_err=$ac_c_preproc_warn_flag
2990 if test -z "$ac_cpp_err"; then
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2996 # Broken: fails on valid input.
2999 rm -f conftest.err conftest.$ac_ext
3001 # OK, works on sane cases. Now check whether non-existent headers
3002 # can be detected and how.
3003 cat >conftest.$ac_ext <<_ACEOF
3004 #line $LINENO "configure"
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3010 #include <ac_nonexistent.h>
3012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3015 grep -v '^ *+' conftest.er1 >conftest.err
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } >/dev/null; then
3020 if test -s conftest.err; then
3021 ac_cpp_err=$ac_c_preproc_warn_flag
3028 if test -z "$ac_cpp_err"; then
3029 # Broken: success on invalid input.
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 # Passes both tests.
3039 rm -f conftest.err conftest.$ac_ext
3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3043 rm -f conftest.err conftest.$ac_ext
3044 if $ac_preproc_ok; then
3056 echo "$as_me:$LINENO: result: $CPP" >&5
3057 echo "${ECHO_T}$CPP" >&6
3059 for ac_c_preproc_warn_flag in '' yes
3061 # Use a header file that comes with gcc, so configuring glibc
3062 # with a fresh cross-compiler works.
3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3064 # <limits.h> exists even on freestanding compilers.
3065 # On the NeXT, cc -E runs the code through the compiler's parser,
3066 # not just through cpp. "Syntax error" is here to catch this case.
3067 cat >conftest.$ac_ext <<_ACEOF
3068 #line $LINENO "configure"
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3075 # include <limits.h>
3077 # include <assert.h>
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3084 grep -v '^ *+' conftest.er1 >conftest.err
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } >/dev/null; then
3089 if test -s conftest.err; then
3090 ac_cpp_err=$ac_c_preproc_warn_flag
3097 if test -z "$ac_cpp_err"; then
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 # Broken: fails on valid input.
3106 rm -f conftest.err conftest.$ac_ext
3108 # OK, works on sane cases. Now check whether non-existent headers
3109 # can be detected and how.
3110 cat >conftest.$ac_ext <<_ACEOF
3111 #line $LINENO "configure"
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3117 #include <ac_nonexistent.h>
3119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3122 grep -v '^ *+' conftest.er1 >conftest.err
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } >/dev/null; then
3127 if test -s conftest.err; then
3128 ac_cpp_err=$ac_c_preproc_warn_flag
3135 if test -z "$ac_cpp_err"; then
3136 # Broken: success on invalid input.
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 # Passes both tests.
3146 rm -f conftest.err conftest.$ac_ext
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.$ac_ext
3151 if $ac_preproc_ok; then
3154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." >&2;}
3158 { (exit 1); exit 1; }; }
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168 echo "$as_me:$LINENO: checking for egrep" >&5
3169 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3170 if test "${ac_cv_prog_egrep+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3174 then ac_cv_prog_egrep='grep -E'
3175 else ac_cv_prog_egrep='egrep'
3178 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3179 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3180 EGREP=$ac_cv_prog_egrep
3183 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3193 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3194 inttypes.h stdint.h unistd.h
3196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3197 echo "$as_me:$LINENO: checking for $ac_header" >&5
3198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 cat >conftest.$ac_ext <<_ACEOF
3203 #line $LINENO "configure"
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3209 $ac_includes_default
3211 #include <$ac_header>
3213 rm -f conftest.$ac_objext
3214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3215 (eval $ac_compile) 2>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } &&
3219 { ac_try='test -s conftest.$ac_objext'
3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; }; then
3225 eval "$as_ac_Header=yes"
3227 echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3230 eval "$as_ac_Header=no"
3232 rm -f conftest.$ac_objext conftest.$ac_ext
3234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3237 cat >>confdefs.h <<_ACEOF
3238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3248 echo "$as_me:$LINENO: checking for function prototypes" >&5
3249 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3250 if test "$am_cv_prog_cc_stdc" != no; then
3251 echo "$as_me:$LINENO: result: yes" >&5
3252 echo "${ECHO_T}yes" >&6
3254 cat >>confdefs.h <<\_ACEOF
3255 #define PROTOTYPES 1
3260 echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3262 U=_ ANSI2KNR=./ansi2knr
3264 # Ensure some checks needed by ansi2knr itself.
3265 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3266 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3267 if test "${ac_cv_header_stdc+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 cat >conftest.$ac_ext <<_ACEOF
3271 #line $LINENO "configure"
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3290 rm -f conftest.$ac_objext
3291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292 (eval $ac_compile) 2>&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try='test -s conftest.$ac_objext'
3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3302 ac_cv_header_stdc=yes
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 ac_cv_header_stdc=no
3309 rm -f conftest.$ac_objext conftest.$ac_ext
3311 if test $ac_cv_header_stdc = yes; then
3312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3313 cat >conftest.$ac_ext <<_ACEOF
3314 #line $LINENO "configure"
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3324 $EGREP "memchr" >/dev/null 2>&1; then
3327 ac_cv_header_stdc=no
3333 if test $ac_cv_header_stdc = yes; then
3334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3335 cat >conftest.$ac_ext <<_ACEOF
3336 #line $LINENO "configure"
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3346 $EGREP "free" >/dev/null 2>&1; then
3349 ac_cv_header_stdc=no
3355 if test $ac_cv_header_stdc = yes; then
3356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3357 if test "$cross_compiling" = yes; then
3360 cat >conftest.$ac_ext <<_ACEOF
3361 #line $LINENO "configure"
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3368 #if ((' ' & 0x0FF) == 0x020)
3369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3372 # define ISLOWER(c) \
3373 (('a' <= (c) && (c) <= 'i') \
3374 || ('j' <= (c) && (c) <= 'r') \
3375 || ('s' <= (c) && (c) <= 'z'))
3376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3384 for (i = 0; i < 256; i++)
3385 if (XOR (islower (i), ISLOWER (i))
3386 || toupper (i) != TOUPPER (i))
3391 rm -f conftest$ac_exeext
3392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3393 (eval $ac_link) 2>&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; }; then
3404 echo "$as_me: program exited with status $ac_status" >&5
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3409 ac_cv_header_stdc=no
3411 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3415 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3416 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3417 if test $ac_cv_header_stdc = yes; then
3419 cat >>confdefs.h <<\_ACEOF
3420 #define STDC_HEADERS 1
3426 for ac_header in string.h
3428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3430 echo "$as_me:$LINENO: checking for $ac_header" >&5
3431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3438 # Is the header compilable?
3439 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3441 cat >conftest.$ac_ext <<_ACEOF
3442 #line $LINENO "configure"
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3448 $ac_includes_default
3449 #include <$ac_header>
3451 rm -f conftest.$ac_objext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453 (eval $ac_compile) 2>&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } &&
3457 { ac_try='test -s conftest.$ac_objext'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; }; then
3463 ac_header_compiler=yes
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3468 ac_header_compiler=no
3470 rm -f conftest.$ac_objext conftest.$ac_ext
3471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3472 echo "${ECHO_T}$ac_header_compiler" >&6
3474 # Is the header present?
3475 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3477 cat >conftest.$ac_ext <<_ACEOF
3478 #line $LINENO "configure"
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484 #include <$ac_header>
3486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3489 grep -v '^ *+' conftest.er1 >conftest.err
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } >/dev/null; then
3494 if test -s conftest.err; then
3495 ac_cpp_err=$ac_c_preproc_warn_flag
3502 if test -z "$ac_cpp_err"; then
3503 ac_header_preproc=yes
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3508 ac_header_preproc=no
3510 rm -f conftest.err conftest.$ac_ext
3511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3512 echo "${ECHO_T}$ac_header_preproc" >&6
3514 # So? What about this header?
3515 case $ac_header_compiler:$ac_header_preproc in
3517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3523 ## ------------------------------------ ##
3524 ## Report this to bug-autoconf@gnu.org. ##
3525 ## ------------------------------------ ##
3528 sed "s/^/$as_me: WARNING: /" >&2
3531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3539 ## ------------------------------------ ##
3540 ## Report this to bug-autoconf@gnu.org. ##
3541 ## ------------------------------------ ##
3544 sed "s/^/$as_me: WARNING: /" >&2
3547 echo "$as_me:$LINENO: checking for $ac_header" >&5
3548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 eval "$as_ac_Header=$ac_header_preproc"
3554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3559 cat >>confdefs.h <<_ACEOF
3560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3568 if test "x$U" != "x"; then
3569 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3570 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3571 { (exit 1); exit 1; }; }
3573 echo "$as_me:$LINENO: checking for inline" >&5
3574 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3575 if test "${ac_cv_c_inline+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 for ac_kw in inline __inline__ __inline; do
3580 cat >conftest.$ac_ext <<_ACEOF
3581 #line $LINENO "configure"
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3589 static $ac_kw foo_t static_foo () {return 0; }
3590 $ac_kw foo_t foo () {return 0; }
3594 rm -f conftest.$ac_objext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
3600 { ac_try='test -s conftest.$ac_objext'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3606 ac_cv_c_inline=$ac_kw; break
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3612 rm -f conftest.$ac_objext conftest.$ac_ext
3616 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3617 echo "${ECHO_T}$ac_cv_c_inline" >&6
3618 case $ac_cv_c_inline in
3621 cat >>confdefs.h <<\_ACEOF
3625 *) cat >>confdefs.h <<_ACEOF
3626 #define inline $ac_cv_c_inline
3631 # Find a good install program. We prefer a C program (faster),
3632 # so one script is as good as another. But avoid the broken or
3633 # incompatible versions:
3634 # SysV /etc/install, /usr/sbin/install
3635 # SunOS /usr/etc/install
3636 # IRIX /sbin/install
3638 # AmigaOS /C/install, which installs bootblocks on floppy discs
3639 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3642 # ./install, which can be erroneously created by make from ./install.sh.
3643 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3644 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3645 if test -z "$INSTALL"; then
3646 if test "${ac_cv_path_install+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 test -z "$as_dir" && as_dir=.
3654 # Account for people who put trailing slashes in PATH elements.
3656 ./ | .// | /cC/* | \
3657 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3660 # OSF1 and SCO ODT 3.0 have their own names for install.
3661 # Don't use installbsd from OSF since it installs stuff as root
3663 for ac_prog in ginstall scoinst install; do
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3666 if test $ac_prog = install &&
3667 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3668 # AIX install. It has an incompatible calling convention.
3670 elif test $ac_prog = install &&
3671 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3672 # program-specific install script used by HP pwplus--don't use.
3675 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3687 if test "${ac_cv_path_install+set}" = set; then
3688 INSTALL=$ac_cv_path_install
3690 # As a last resort, use the slow shell script. We don't cache a
3691 # path for INSTALL within a source directory, because that will
3692 # break other packages using the cache if that directory is
3693 # removed, or if the path is relative.
3694 INSTALL=$ac_install_sh
3697 echo "$as_me:$LINENO: result: $INSTALL" >&5
3698 echo "${ECHO_T}$INSTALL" >&6
3700 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3701 # It thinks the first close brace ends the variable substitution.
3702 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3704 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3706 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3708 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3709 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3710 if test "${ac_cv_header_stdc+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 cat >conftest.$ac_ext <<_ACEOF
3714 #line $LINENO "configure"
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3733 rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } &&
3739 { ac_try='test -s conftest.$ac_objext'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3745 ac_cv_header_stdc=yes
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3750 ac_cv_header_stdc=no
3752 rm -f conftest.$ac_objext conftest.$ac_ext
3754 if test $ac_cv_header_stdc = yes; then
3755 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3756 cat >conftest.$ac_ext <<_ACEOF
3757 #line $LINENO "configure"
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3767 $EGREP "memchr" >/dev/null 2>&1; then
3770 ac_cv_header_stdc=no
3776 if test $ac_cv_header_stdc = yes; then
3777 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3778 cat >conftest.$ac_ext <<_ACEOF
3779 #line $LINENO "configure"
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3789 $EGREP "free" >/dev/null 2>&1; then
3792 ac_cv_header_stdc=no
3798 if test $ac_cv_header_stdc = yes; then
3799 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3800 if test "$cross_compiling" = yes; then
3803 cat >conftest.$ac_ext <<_ACEOF
3804 #line $LINENO "configure"
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3811 #if ((' ' & 0x0FF) == 0x020)
3812 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3813 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3815 # define ISLOWER(c) \
3816 (('a' <= (c) && (c) <= 'i') \
3817 || ('j' <= (c) && (c) <= 'r') \
3818 || ('s' <= (c) && (c) <= 'z'))
3819 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3822 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3827 for (i = 0; i < 256; i++)
3828 if (XOR (islower (i), ISLOWER (i))
3829 || toupper (i) != TOUPPER (i))
3834 rm -f conftest$ac_exeext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836 (eval $ac_link) 2>&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3847 echo "$as_me: program exited with status $ac_status" >&5
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3852 ac_cv_header_stdc=no
3854 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3858 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3859 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3860 if test $ac_cv_header_stdc = yes; then
3862 cat >>confdefs.h <<\_ACEOF
3863 #define STDC_HEADERS 1
3873 for ac_header in unistd.h locale.h termios.h linux/termios.h sys/ioctl.h
3875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3877 echo "$as_me:$LINENO: checking for $ac_header" >&5
3878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3885 # Is the header compilable?
3886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3888 cat >conftest.$ac_ext <<_ACEOF
3889 #line $LINENO "configure"
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3895 $ac_includes_default
3896 #include <$ac_header>
3898 rm -f conftest.$ac_objext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3900 (eval $ac_compile) 2>&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } &&
3904 { ac_try='test -s conftest.$ac_objext'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_header_compiler=yes
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_header_compiler=no
3917 rm -f conftest.$ac_objext conftest.$ac_ext
3918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3919 echo "${ECHO_T}$ac_header_compiler" >&6
3921 # Is the header present?
3922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3924 cat >conftest.$ac_ext <<_ACEOF
3925 #line $LINENO "configure"
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3931 #include <$ac_header>
3933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3936 grep -v '^ *+' conftest.er1 >conftest.err
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } >/dev/null; then
3941 if test -s conftest.err; then
3942 ac_cpp_err=$ac_c_preproc_warn_flag
3949 if test -z "$ac_cpp_err"; then
3950 ac_header_preproc=yes
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 ac_header_preproc=no
3957 rm -f conftest.err conftest.$ac_ext
3958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3959 echo "${ECHO_T}$ac_header_preproc" >&6
3961 # So? What about this header?
3962 case $ac_header_compiler:$ac_header_preproc in
3964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3970 ## ------------------------------------ ##
3971 ## Report this to bug-autoconf@gnu.org. ##
3972 ## ------------------------------------ ##
3975 sed "s/^/$as_me: WARNING: /" >&2
3978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3986 ## ------------------------------------ ##
3987 ## Report this to bug-autoconf@gnu.org. ##
3988 ## ------------------------------------ ##
3991 sed "s/^/$as_me: WARNING: /" >&2
3994 echo "$as_me:$LINENO: checking for $ac_header" >&5
3995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 eval "$as_ac_Header=$ac_header_preproc"
4001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4006 cat >>confdefs.h <<_ACEOF
4007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4014 if test "${ac_cv_header_stdarg_h+set}" = set; then
4015 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4016 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4017 if test "${ac_cv_header_stdarg_h+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4021 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4023 # Is the header compilable?
4024 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
4025 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
4026 cat >conftest.$ac_ext <<_ACEOF
4027 #line $LINENO "configure"
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4033 $ac_includes_default
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -s conftest.$ac_objext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 ac_header_compiler=yes
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4053 ac_header_compiler=no
4055 rm -f conftest.$ac_objext conftest.$ac_ext
4056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4057 echo "${ECHO_T}$ac_header_compiler" >&6
4059 # Is the header present?
4060 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
4061 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
4062 cat >conftest.$ac_ext <<_ACEOF
4063 #line $LINENO "configure"
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4074 grep -v '^ *+' conftest.er1 >conftest.err
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } >/dev/null; then
4079 if test -s conftest.err; then
4080 ac_cpp_err=$ac_c_preproc_warn_flag
4087 if test -z "$ac_cpp_err"; then
4088 ac_header_preproc=yes
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4093 ac_header_preproc=no
4095 rm -f conftest.err conftest.$ac_ext
4096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4097 echo "${ECHO_T}$ac_header_preproc" >&6
4099 # So? What about this header?
4100 case $ac_header_compiler:$ac_header_preproc in
4102 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
4103 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4104 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
4105 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
4108 ## ------------------------------------ ##
4109 ## Report this to bug-autoconf@gnu.org. ##
4110 ## ------------------------------------ ##
4113 sed "s/^/$as_me: WARNING: /" >&2
4116 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
4117 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
4118 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
4119 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
4120 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
4121 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
4124 ## ------------------------------------ ##
4125 ## Report this to bug-autoconf@gnu.org. ##
4126 ## ------------------------------------ ##
4129 sed "s/^/$as_me: WARNING: /" >&2
4132 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4133 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4134 if test "${ac_cv_header_stdarg_h+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 ac_cv_header_stdarg_h=$ac_header_preproc
4139 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4140 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4143 if test $ac_cv_header_stdarg_h = yes; then
4145 cat >>confdefs.h <<\_ACEOF
4146 #define HAVE_STDARG_H 1
4150 { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5
4151 echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;}
4152 { (exit 1); exit 1; }; }
4156 echo "$as_me:$LINENO: checking for working strcoll" >&5
4157 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4158 if test "${ac_cv_func_strcoll_works+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 if test "$cross_compiling" = yes; then
4162 ac_cv_func_strcoll_works=no
4164 cat >conftest.$ac_ext <<_ACEOF
4165 #line $LINENO "configure"
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 $ac_includes_default
4175 exit (strcoll ("abc", "def") >= 0 ||
4176 strcoll ("ABC", "DEF") >= 0 ||
4177 strcoll ("123", "456") >= 0)
4182 rm -f conftest$ac_exeext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184 (eval $ac_link) 2>&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_func_strcoll_works=yes
4195 echo "$as_me: program exited with status $ac_status" >&5
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4200 ac_cv_func_strcoll_works=no
4202 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4205 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4206 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4207 if test $ac_cv_func_strcoll_works = yes; then
4209 cat >>confdefs.h <<\_ACEOF
4210 #define HAVE_STRCOLL 1
4216 for ac_func in setlocale
4218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4219 echo "$as_me:$LINENO: checking for $ac_func" >&5
4220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4221 if eval "test \"\${$as_ac_var+set}\" = set"; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 cat >conftest.$ac_ext <<_ACEOF
4225 #line $LINENO "configure"
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231 /* System header to define __stub macros and hopefully few prototypes,
4232 which can conflict with char $ac_func (); below.
4233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4234 <limits.h> exists even on freestanding compilers. */
4236 # include <limits.h>
4238 # include <assert.h>
4240 /* Override any gcc2 internal prototype to avoid an error. */
4245 /* We use char because int might match the return type of a gcc2
4246 builtin and then its argument prototype would still apply. */
4248 /* The GNU C library defines this for functions which it implements
4249 to always fail with ENOSYS. Some functions are actually named
4250 something starting with __ and the normal name is an alias. */
4251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4254 char (*f) () = $ac_func;
4263 return f != $ac_func;
4268 rm -f conftest.$ac_objext conftest$ac_exeext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4270 (eval $ac_link) 2>&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -s conftest$ac_exeext'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4280 eval "$as_ac_var=yes"
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4285 eval "$as_ac_var=no"
4287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4291 if test `eval echo '${'$as_ac_var'}'` = yes; then
4292 cat >>confdefs.h <<_ACEOF
4293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4301 if test "${ac_cv_header_wchar_h+set}" = set; then
4302 echo "$as_me:$LINENO: checking for wchar.h" >&5
4303 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
4304 if test "${ac_cv_header_wchar_h+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
4308 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
4310 # Is the header compilable?
4311 echo "$as_me:$LINENO: checking wchar.h usability" >&5
4312 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
4313 cat >conftest.$ac_ext <<_ACEOF
4314 #line $LINENO "configure"
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 $ac_includes_default
4323 rm -f conftest.$ac_objext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325 (eval $ac_compile) 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try='test -s conftest.$ac_objext'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4335 ac_header_compiler=yes
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4340 ac_header_compiler=no
4342 rm -f conftest.$ac_objext conftest.$ac_ext
4343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4344 echo "${ECHO_T}$ac_header_compiler" >&6
4346 # Is the header present?
4347 echo "$as_me:$LINENO: checking wchar.h presence" >&5
4348 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
4349 cat >conftest.$ac_ext <<_ACEOF
4350 #line $LINENO "configure"
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4361 grep -v '^ *+' conftest.er1 >conftest.err
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } >/dev/null; then
4366 if test -s conftest.err; then
4367 ac_cpp_err=$ac_c_preproc_warn_flag
4374 if test -z "$ac_cpp_err"; then
4375 ac_header_preproc=yes
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4380 ac_header_preproc=no
4382 rm -f conftest.err conftest.$ac_ext
4383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4384 echo "${ECHO_T}$ac_header_preproc" >&6
4386 # So? What about this header?
4387 case $ac_header_compiler:$ac_header_preproc in
4389 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
4390 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4391 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
4392 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
4395 ## ------------------------------------ ##
4396 ## Report this to bug-autoconf@gnu.org. ##
4397 ## ------------------------------------ ##
4400 sed "s/^/$as_me: WARNING: /" >&2
4403 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
4404 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
4405 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
4406 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
4407 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
4408 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
4411 ## ------------------------------------ ##
4412 ## Report this to bug-autoconf@gnu.org. ##
4413 ## ------------------------------------ ##
4416 sed "s/^/$as_me: WARNING: /" >&2
4419 echo "$as_me:$LINENO: checking for wchar.h" >&5
4420 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
4421 if test "${ac_cv_header_wchar_h+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 ac_cv_header_wchar_h=$ac_header_preproc
4426 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
4427 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
4430 if test $ac_cv_header_wchar_h = yes; then
4434 cat >>confdefs.h <<\_ACEOF
4435 #define HAVE_WCHAR_H 1
4447 for ac_func in mbtowc wcwidth mbrtowc mbsinit
4449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4450 echo "$as_me:$LINENO: checking for $ac_func" >&5
4451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4452 if eval "test \"\${$as_ac_var+set}\" = set"; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 cat >conftest.$ac_ext <<_ACEOF
4456 #line $LINENO "configure"
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 /* System header to define __stub macros and hopefully few prototypes,
4463 which can conflict with char $ac_func (); below.
4464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4465 <limits.h> exists even on freestanding compilers. */
4467 # include <limits.h>
4469 # include <assert.h>
4471 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4479 /* The GNU C library defines this for functions which it implements
4480 to always fail with ENOSYS. Some functions are actually named
4481 something starting with __ and the normal name is an alias. */
4482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4485 char (*f) () = $ac_func;
4494 return f != $ac_func;
4499 rm -f conftest.$ac_objext conftest$ac_exeext
4500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4501 (eval $ac_link) 2>&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try='test -s conftest$ac_exeext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 eval "$as_ac_var=yes"
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 eval "$as_ac_var=no"
4518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4522 if test `eval echo '${'$as_ac_var'}'` = yes; then
4523 cat >>confdefs.h <<_ACEOF
4524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4532 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
4533 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
4534 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 cat >conftest.$ac_ext <<_ACEOF
4538 #line $LINENO "configure"
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h. */
4544 $ac_includes_default
4549 char *p = (char *) wcwidth;
4556 rm -f conftest.$ac_objext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558 (eval $ac_compile) 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } &&
4562 { ac_try='test -s conftest.$ac_objext'
4563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
4568 ac_cv_have_decl_wcwidth=yes
4570 echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4573 ac_cv_have_decl_wcwidth=no
4575 rm -f conftest.$ac_objext conftest.$ac_ext
4577 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
4578 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
4579 if test $ac_cv_have_decl_wcwidth = yes; then
4581 cat >>confdefs.h <<_ACEOF
4582 #define HAVE_DECL_WCWIDTH 1
4587 cat >>confdefs.h <<_ACEOF
4588 #define HAVE_DECL_WCWIDTH 0
4595 echo "$as_me:$LINENO: checking for wchar_t" >&5
4596 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4597 if test "${ac_cv_type_wchar_t+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 cat >conftest.$ac_ext <<_ACEOF
4601 #line $LINENO "configure"
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 $ac_includes_default
4613 if (sizeof (wchar_t))
4619 rm -f conftest.$ac_objext
4620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4621 (eval $ac_compile) 2>&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -s conftest.$ac_objext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 ac_cv_type_wchar_t=yes
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 ac_cv_type_wchar_t=no
4638 rm -f conftest.$ac_objext conftest.$ac_ext
4640 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
4641 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
4642 if test $ac_cv_type_wchar_t = yes; then
4649 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
4650 ac_widec_possible=yes
4652 ac_widec_possible=no
4656 abook_cv_curses=/usr
4658 # Check whether --with-curses or --without-curses was given.
4659 if test "${with_curses+set}" = set; then
4660 withval="$with_curses"
4661 if test $withval != yes; then
4662 abook_cv_curses=$withval
4664 if test x$abook_cv_curses != x/usr; then
4665 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
4666 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
4670 echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
4671 echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6
4672 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 ac_check_lib_save_LIBS=$LIBS
4676 LIBS="-lncursesw $LIBS"
4677 cat >conftest.$ac_ext <<_ACEOF
4678 #line $LINENO "configure"
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4685 /* Override any gcc2 internal prototype to avoid an error. */
4689 /* We use char because int might match the return type of a gcc2
4690 builtin and then its argument prototype would still apply. */
4700 rm -f conftest.$ac_objext conftest$ac_exeext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702 (eval $ac_link) 2>&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } &&
4706 { ac_try='test -s conftest$ac_exeext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 ac_cv_lib_ncursesw_initscr=yes
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 ac_cv_lib_ncursesw_initscr=no
4719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4720 LIBS=$ac_check_lib_save_LIBS
4722 echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
4723 echo "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6
4724 if test $ac_cv_lib_ncursesw_initscr = yes; then
4725 LIBS="$LIBS -lncursesw"
4726 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
4727 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
4730 for ac_header in ncurses.h
4732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734 echo "$as_me:$LINENO: checking for $ac_header" >&5
4735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4742 # Is the header compilable?
4743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4745 cat >conftest.$ac_ext <<_ACEOF
4746 #line $LINENO "configure"
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4752 $ac_includes_default
4753 #include <$ac_header>
4755 rm -f conftest.$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757 (eval $ac_compile) 2>&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -s conftest.$ac_objext'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4767 ac_header_compiler=yes
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 ac_header_compiler=no
4774 rm -f conftest.$ac_objext conftest.$ac_ext
4775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4776 echo "${ECHO_T}$ac_header_compiler" >&6
4778 # Is the header present?
4779 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4781 cat >conftest.$ac_ext <<_ACEOF
4782 #line $LINENO "configure"
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h. */
4788 #include <$ac_header>
4790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4793 grep -v '^ *+' conftest.er1 >conftest.err
4795 cat conftest.err >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } >/dev/null; then
4798 if test -s conftest.err; then
4799 ac_cpp_err=$ac_c_preproc_warn_flag
4806 if test -z "$ac_cpp_err"; then
4807 ac_header_preproc=yes
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4812 ac_header_preproc=no
4814 rm -f conftest.err conftest.$ac_ext
4815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4816 echo "${ECHO_T}$ac_header_preproc" >&6
4818 # So? What about this header?
4819 case $ac_header_compiler:$ac_header_preproc in
4821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4827 ## ------------------------------------ ##
4828 ## Report this to bug-autoconf@gnu.org. ##
4829 ## ------------------------------------ ##
4832 sed "s/^/$as_me: WARNING: /" >&2
4835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4843 ## ------------------------------------ ##
4844 ## Report this to bug-autoconf@gnu.org. ##
4845 ## ------------------------------------ ##
4848 sed "s/^/$as_me: WARNING: /" >&2
4851 echo "$as_me:$LINENO: checking for $ac_header" >&5
4852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 eval "$as_ac_Header=$ac_header_preproc"
4858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4863 cat >>confdefs.h <<_ACEOF
4864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4873 ac_widec_possible=no
4874 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
4875 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
4876 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 ac_check_lib_save_LIBS=$LIBS
4880 LIBS="-lncurses $LIBS"
4881 cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4889 /* Override any gcc2 internal prototype to avoid an error. */
4893 /* We use char because int might match the return type of a gcc2
4894 builtin and then its argument prototype would still apply. */
4904 rm -f conftest.$ac_objext conftest$ac_exeext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4906 (eval $ac_link) 2>&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } &&
4910 { ac_try='test -s conftest$ac_exeext'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; }; then
4916 ac_cv_lib_ncurses_initscr=yes
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4921 ac_cv_lib_ncurses_initscr=no
4923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4924 LIBS=$ac_check_lib_save_LIBS
4926 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
4927 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
4928 if test $ac_cv_lib_ncurses_initscr = yes; then
4929 LIBS="$LIBS -lncurses"
4930 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
4931 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
4934 for ac_header in ncurses.h
4936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4938 echo "$as_me:$LINENO: checking for $ac_header" >&5
4939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4946 # Is the header compilable?
4947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4949 cat >conftest.$ac_ext <<_ACEOF
4950 #line $LINENO "configure"
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 $ac_includes_default
4957 #include <$ac_header>
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -s conftest.$ac_objext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_header_compiler=yes
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 ac_header_compiler=no
4978 rm -f conftest.$ac_objext conftest.$ac_ext
4979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4980 echo "${ECHO_T}$ac_header_compiler" >&6
4982 # Is the header present?
4983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4985 cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 #include <$ac_header>
4994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4997 grep -v '^ *+' conftest.er1 >conftest.err
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } >/dev/null; then
5002 if test -s conftest.err; then
5003 ac_cpp_err=$ac_c_preproc_warn_flag
5010 if test -z "$ac_cpp_err"; then
5011 ac_header_preproc=yes
5013 echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5016 ac_header_preproc=no
5018 rm -f conftest.err conftest.$ac_ext
5019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5020 echo "${ECHO_T}$ac_header_preproc" >&6
5022 # So? What about this header?
5023 case $ac_header_compiler:$ac_header_preproc in
5025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5031 ## ------------------------------------ ##
5032 ## Report this to bug-autoconf@gnu.org. ##
5033 ## ------------------------------------ ##
5036 sed "s/^/$as_me: WARNING: /" >&2
5039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5047 ## ------------------------------------ ##
5048 ## Report this to bug-autoconf@gnu.org. ##
5049 ## ------------------------------------ ##
5052 sed "s/^/$as_me: WARNING: /" >&2
5055 echo "$as_me:$LINENO: checking for $ac_header" >&5
5056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 eval "$as_ac_Header=$ac_header_preproc"
5062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5067 cat >>confdefs.h <<_ACEOF
5068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5077 echo "$as_me:$LINENO: checking for initscr" >&5
5078 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5079 if test "${ac_cv_func_initscr+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 cat >conftest.$ac_ext <<_ACEOF
5083 #line $LINENO "configure"
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 /* System header to define __stub macros and hopefully few prototypes,
5090 which can conflict with char initscr (); below.
5091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5092 <limits.h> exists even on freestanding compilers. */
5094 # include <limits.h>
5096 # include <assert.h>
5098 /* Override any gcc2 internal prototype to avoid an error. */
5103 /* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5106 /* The GNU C library defines this for functions which it implements
5107 to always fail with ENOSYS. Some functions are actually named
5108 something starting with __ and the normal name is an alias. */
5109 #if defined (__stub_initscr) || defined (__stub___initscr)
5112 char (*f) () = initscr;
5121 return f != initscr;
5126 rm -f conftest.$ac_objext conftest$ac_exeext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128 (eval $ac_link) 2>&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } &&
5132 { ac_try='test -s conftest$ac_exeext'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; }; then
5138 ac_cv_func_initscr=yes
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5143 ac_cv_func_initscr=no
5145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5147 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5148 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5149 if test $ac_cv_func_initscr = yes; then
5153 case $host_os in #(vi
5155 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5156 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5157 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 ac_check_lib_save_LIBS=$LIBS
5161 LIBS="-lmytinfo $LIBS"
5162 cat >conftest.$ac_ext <<_ACEOF
5163 #line $LINENO "configure"
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5170 /* Override any gcc2 internal prototype to avoid an error. */
5174 /* We use char because int might match the return type of a gcc2
5175 builtin and then its argument prototype would still apply. */
5185 rm -f conftest.$ac_objext conftest$ac_exeext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5187 (eval $ac_link) 2>&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } &&
5191 { ac_try='test -s conftest$ac_exeext'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; }; then
5197 ac_cv_lib_mytinfo_tgoto=yes
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5202 ac_cv_lib_mytinfo_tgoto=no
5204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5205 LIBS=$ac_check_lib_save_LIBS
5207 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5208 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5209 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5210 LIBS="-lmytinfo $LIBS"
5215 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5216 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5217 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 ac_check_lib_save_LIBS=$LIBS
5221 LIBS="-lcur_colr $LIBS"
5222 cat >conftest.$ac_ext <<_ACEOF
5223 #line $LINENO "configure"
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5230 /* Override any gcc2 internal prototype to avoid an error. */
5234 /* We use char because int might match the return type of a gcc2
5235 builtin and then its argument prototype would still apply. */
5245 rm -f conftest.$ac_objext conftest$ac_exeext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5247 (eval $ac_link) 2>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -s conftest$ac_exeext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_cv_lib_cur_colr_initscr=yes
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 ac_cv_lib_cur_colr_initscr=no
5264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5265 LIBS=$ac_check_lib_save_LIBS
5267 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5268 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5269 if test $ac_cv_lib_cur_colr_initscr = yes; then
5271 LIBS="-lcur_colr $LIBS"
5272 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5273 ac_cv_func_initscr=yes
5277 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5278 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5279 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 ac_check_lib_save_LIBS=$LIBS
5283 LIBS="-lHcurses $LIBS"
5284 cat >conftest.$ac_ext <<_ACEOF
5285 #line $LINENO "configure"
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5292 /* Override any gcc2 internal prototype to avoid an error. */
5296 /* We use char because int might match the return type of a gcc2
5297 builtin and then its argument prototype would still apply. */
5307 rm -f conftest.$ac_objext conftest$ac_exeext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309 (eval $ac_link) 2>&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -s conftest$ac_exeext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5319 ac_cv_lib_Hcurses_initscr=yes
5321 echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5324 ac_cv_lib_Hcurses_initscr=no
5326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5327 LIBS=$ac_check_lib_save_LIBS
5329 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5330 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5331 if test $ac_cv_lib_Hcurses_initscr = yes; then
5333 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5334 LIBS="-lHcurses $LIBS"
5335 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5336 ac_cv_func_initscr=yes
5343 linux*) # Suse Linux does not follow /usr/lib convention
5348 if test ".$With5lib" != ".no" ; then
5349 if test -d /usr/5lib ; then
5351 CPPFLAGS="$CPPFLAGS -I/usr/5include"
5352 LIBS="$LIBS -L/usr/5lib"
5356 if test ".$ac_cv_func_initscr" != .yes ; then
5357 cf_save_LIBS="$LIBS"
5361 # Check for library containing tgoto. Do this before curses library
5362 # because it may be needed to link the test-case for initscr.
5363 echo "$as_me:$LINENO: checking for tgoto" >&5
5364 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5365 if test "${ac_cv_func_tgoto+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 cat >conftest.$ac_ext <<_ACEOF
5369 #line $LINENO "configure"
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 /* System header to define __stub macros and hopefully few prototypes,
5376 which can conflict with char tgoto (); below.
5377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5378 <limits.h> exists even on freestanding compilers. */
5380 # include <limits.h>
5382 # include <assert.h>
5384 /* Override any gcc2 internal prototype to avoid an error. */
5389 /* We use char because int might match the return type of a gcc2
5390 builtin and then its argument prototype would still apply. */
5392 /* The GNU C library defines this for functions which it implements
5393 to always fail with ENOSYS. Some functions are actually named
5394 something starting with __ and the normal name is an alias. */
5395 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5398 char (*f) () = tgoto;
5412 rm -f conftest.$ac_objext conftest$ac_exeext
5413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5414 (eval $ac_link) 2>&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try='test -s conftest$ac_exeext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 ac_cv_func_tgoto=yes
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5433 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5434 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5435 if test $ac_cv_func_tgoto = yes; then
5436 cf_term_lib=predefined
5439 for cf_term_lib in termcap termlib unknown
5441 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5442 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5443 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5444 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 ac_check_lib_save_LIBS=$LIBS
5448 LIBS="-l$cf_term_lib $LIBS"
5449 cat >conftest.$ac_ext <<_ACEOF
5450 #line $LINENO "configure"
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5457 /* Override any gcc2 internal prototype to avoid an error. */
5461 /* We use char because int might match the return type of a gcc2
5462 builtin and then its argument prototype would still apply. */
5472 rm -f conftest.$ac_objext conftest$ac_exeext
5473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5474 (eval $ac_link) 2>&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -s conftest$ac_exeext'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5484 eval "$as_ac_Lib=yes"
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 eval "$as_ac_Lib=no"
5491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5492 LIBS=$ac_check_lib_save_LIBS
5494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5495 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5496 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5505 # Check for library containing initscr
5506 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5507 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5509 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5510 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5511 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5512 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 ac_check_lib_save_LIBS=$LIBS
5516 LIBS="-l$cf_curs_lib $LIBS"
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5525 /* Override any gcc2 internal prototype to avoid an error. */
5529 /* We use char because int might match the return type of a gcc2
5530 builtin and then its argument prototype would still apply. */
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542 (eval $ac_link) 2>&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -s conftest$ac_exeext'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 eval "$as_ac_Lib=yes"
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5557 eval "$as_ac_Lib=no"
5559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5560 LIBS=$ac_check_lib_save_LIBS
5562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5563 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5564 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5569 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5570 echo "$as_me: error: no curses library found" >&2;}
5571 { (exit 1); exit 1; }; }
5573 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5574 if test "$cf_term_lib" = unknown ; then
5575 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5576 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5577 cat >conftest.$ac_ext <<_ACEOF
5578 #line $LINENO "configure"
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5584 #include <${cf_cv_ncurses_header-curses.h}>
5593 rm -f conftest.$ac_objext conftest$ac_exeext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5595 (eval $ac_link) 2>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -s conftest$ac_exeext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5613 echo "$as_me:$LINENO: result: $cf_result" >&5
5614 echo "${ECHO_T}$cf_result" >&6
5615 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5616 echo "$as_me: error: Cannot link curses library" >&2;}
5617 { (exit 1); exit 1; }; }
5618 elif test "$cf_term_lib" != predefined ; then
5619 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5620 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5621 cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #include <${cf_cv_ncurses_header-curses.h}>
5632 initscr(); tgoto((char *)0, 0, 0);
5637 rm -f conftest.$ac_objext conftest$ac_exeext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639 (eval $ac_link) 2>&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try='test -s conftest$ac_exeext'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; }; then
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5655 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5656 cat >conftest.$ac_ext <<_ACEOF
5657 #line $LINENO "configure"
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 #include <${cf_cv_ncurses_header-curses.h}>
5672 rm -f conftest.$ac_objext conftest$ac_exeext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5674 (eval $ac_link) 2>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -s conftest$ac_exeext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5695 echo "$as_me:$LINENO: result: $cf_result" >&5
5696 echo "${ECHO_T}$cf_result" >&6
5711 abook_cv_readline=/usr
5713 # Check whether --with-readline or --without-readline was given.
5714 if test "${with_readline+set}" = set; then
5715 withval="$with_readline"
5716 if test $withval != yes; then
5717 abook_cv_readline=$withval
5719 if test x$abook_cv_readline != x/usr; then
5720 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
5721 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
5726 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
5727 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
5728 if test "${ac_cv_lib_readline+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 for readline_lib in readline edit editline; do
5734 for termcap_lib in "" termcap curses ncurses; do
5735 if test -z "$termcap_lib"; then
5736 TRY_LIB="-l$readline_lib"
5738 TRY_LIB="-l$readline_lib -l$termcap_lib"
5740 LIBS="$ORIG_LIBS $TRY_LIB"
5741 cat >conftest.$ac_ext <<_ACEOF
5742 #line $LINENO "configure"
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5749 /* Override any gcc2 internal prototype to avoid an error. */
5753 /* We use char because int might match the return type of a gcc2
5754 builtin and then its argument prototype would still apply. */
5764 rm -f conftest.$ac_objext conftest$ac_exeext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5766 (eval $ac_link) 2>&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try='test -s conftest$ac_exeext'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5776 ac_cv_lib_readline="$TRY_LIB"
5778 echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5783 if test -n "$ac_cv_lib_readline"; then
5787 if test -n "$ac_cv_lib_readline"; then
5791 if test -z "$ac_cv_lib_readline"; then
5792 ac_cv_lib_readline="no"
5797 echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
5798 echo "${ECHO_T}$ac_cv_lib_readline" >&6
5800 if test "$ac_cv_lib_readline" != "no"; then
5801 LIBS="$LIBS $ac_cv_lib_readline"
5803 cat >>confdefs.h <<\_ACEOF
5804 #define HAVE_LIBREADLINE 1
5809 for ac_header in readline.h readline/readline.h
5811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5813 echo "$as_me:$LINENO: checking for $ac_header" >&5
5814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5821 # Is the header compilable?
5822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5824 cat >conftest.$ac_ext <<_ACEOF
5825 #line $LINENO "configure"
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 $ac_includes_default
5832 #include <$ac_header>
5834 rm -f conftest.$ac_objext
5835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5836 (eval $ac_compile) 2>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 ac_header_compiler=yes
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 ac_header_compiler=no
5853 rm -f conftest.$ac_objext conftest.$ac_ext
5854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5855 echo "${ECHO_T}$ac_header_compiler" >&6
5857 # Is the header present?
5858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5860 cat >conftest.$ac_ext <<_ACEOF
5861 #line $LINENO "configure"
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 #include <$ac_header>
5869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5872 grep -v '^ *+' conftest.er1 >conftest.err
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } >/dev/null; then
5877 if test -s conftest.err; then
5878 ac_cpp_err=$ac_c_preproc_warn_flag
5885 if test -z "$ac_cpp_err"; then
5886 ac_header_preproc=yes
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 ac_header_preproc=no
5893 rm -f conftest.err conftest.$ac_ext
5894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5895 echo "${ECHO_T}$ac_header_preproc" >&6
5897 # So? What about this header?
5898 case $ac_header_compiler:$ac_header_preproc in
5900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5906 ## ------------------------------------ ##
5907 ## Report this to bug-autoconf@gnu.org. ##
5908 ## ------------------------------------ ##
5911 sed "s/^/$as_me: WARNING: /" >&2
5914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5922 ## ------------------------------------ ##
5923 ## Report this to bug-autoconf@gnu.org. ##
5924 ## ------------------------------------ ##
5927 sed "s/^/$as_me: WARNING: /" >&2
5930 echo "$as_me:$LINENO: checking for $ac_header" >&5
5931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 eval "$as_ac_Header=$ac_header_preproc"
5937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5942 cat >>confdefs.h <<_ACEOF
5943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5950 echo "$as_me:$LINENO: checking whether readline supports history" >&5
5951 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
5952 if test "${ac_cv_lib_readline_history+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 ac_cv_lib_readline_history="no"
5957 cat >conftest.$ac_ext <<_ACEOF
5958 #line $LINENO "configure"
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5965 /* Override any gcc2 internal prototype to avoid an error. */
5969 /* We use char because int might match the return type of a gcc2
5970 builtin and then its argument prototype would still apply. */
5971 char add_history ();
5980 rm -f conftest.$ac_objext conftest$ac_exeext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5982 (eval $ac_link) 2>&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } &&
5986 { ac_try='test -s conftest$ac_exeext'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_cv_lib_readline_history="yes"
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6001 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
6002 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6
6003 if test "$ac_cv_lib_readline_history" = "yes"; then
6005 cat >>confdefs.h <<\_ACEOF
6006 #define HAVE_READLINE_HISTORY 1
6011 for ac_header in history.h readline/history.h
6013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6015 echo "$as_me:$LINENO: checking for $ac_header" >&5
6016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6023 # Is the header compilable?
6024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6026 cat >conftest.$ac_ext <<_ACEOF
6027 #line $LINENO "configure"
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 $ac_includes_default
6034 #include <$ac_header>
6036 rm -f conftest.$ac_objext
6037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6038 (eval $ac_compile) 2>&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } &&
6042 { ac_try='test -s conftest.$ac_objext'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
6048 ac_header_compiler=yes
6050 echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6053 ac_header_compiler=no
6055 rm -f conftest.$ac_objext conftest.$ac_ext
6056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6057 echo "${ECHO_T}$ac_header_compiler" >&6
6059 # Is the header present?
6060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6062 cat >conftest.$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <$ac_header>
6071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6074 grep -v '^ *+' conftest.er1 >conftest.err
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } >/dev/null; then
6079 if test -s conftest.err; then
6080 ac_cpp_err=$ac_c_preproc_warn_flag
6087 if test -z "$ac_cpp_err"; then
6088 ac_header_preproc=yes
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6093 ac_header_preproc=no
6095 rm -f conftest.err conftest.$ac_ext
6096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6097 echo "${ECHO_T}$ac_header_preproc" >&6
6099 # So? What about this header?
6100 case $ac_header_compiler:$ac_header_preproc in
6102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6108 ## ------------------------------------ ##
6109 ## Report this to bug-autoconf@gnu.org. ##
6110 ## ------------------------------------ ##
6113 sed "s/^/$as_me: WARNING: /" >&2
6116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6124 ## ------------------------------------ ##
6125 ## Report this to bug-autoconf@gnu.org. ##
6126 ## ------------------------------------ ##
6129 sed "s/^/$as_me: WARNING: /" >&2
6132 echo "$as_me:$LINENO: checking for $ac_header" >&5
6133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 eval "$as_ac_Header=$ac_header_preproc"
6139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6144 cat >>confdefs.h <<_ACEOF
6145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6157 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
6158 { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5
6159 echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;}
6160 { (exit 1); exit 1; }; }
6164 if test x$ac_widec_possible = xyes; then
6166 cat >>confdefs.h <<\_ACEOF
6167 #define HANDLE_MULTIBYTE 1
6173 for ac_func in resizeterm
6175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6176 echo "$as_me:$LINENO: checking for $ac_func" >&5
6177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6178 if eval "test \"\${$as_ac_var+set}\" = set"; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 cat >conftest.$ac_ext <<_ACEOF
6182 #line $LINENO "configure"
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6188 /* System header to define __stub macros and hopefully few prototypes,
6189 which can conflict with char $ac_func (); below.
6190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6191 <limits.h> exists even on freestanding compilers. */
6193 # include <limits.h>
6195 # include <assert.h>
6197 /* Override any gcc2 internal prototype to avoid an error. */
6202 /* We use char because int might match the return type of a gcc2
6203 builtin and then its argument prototype would still apply. */
6205 /* The GNU C library defines this for functions which it implements
6206 to always fail with ENOSYS. Some functions are actually named
6207 something starting with __ and the normal name is an alias. */
6208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6211 char (*f) () = $ac_func;
6220 return f != $ac_func;
6225 rm -f conftest.$ac_objext conftest$ac_exeext
6226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6227 (eval $ac_link) 2>&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } &&
6231 { ac_try='test -s conftest$ac_exeext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6237 eval "$as_ac_var=yes"
6239 echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6242 eval "$as_ac_var=no"
6244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6248 if test `eval echo '${'$as_ac_var'}'` = yes; then
6249 cat >>confdefs.h <<_ACEOF
6250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6259 for ac_func in snprintf vsnprintf
6261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6262 echo "$as_me:$LINENO: checking for $ac_func" >&5
6263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6264 if eval "test \"\${$as_ac_var+set}\" = set"; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 cat >conftest.$ac_ext <<_ACEOF
6268 #line $LINENO "configure"
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 /* System header to define __stub macros and hopefully few prototypes,
6275 which can conflict with char $ac_func (); below.
6276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6277 <limits.h> exists even on freestanding compilers. */
6279 # include <limits.h>
6281 # include <assert.h>
6283 /* Override any gcc2 internal prototype to avoid an error. */
6288 /* We use char because int might match the return type of a gcc2
6289 builtin and then its argument prototype would still apply. */
6291 /* The GNU C library defines this for functions which it implements
6292 to always fail with ENOSYS. Some functions are actually named
6293 something starting with __ and the normal name is an alias. */
6294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6297 char (*f) () = $ac_func;
6306 return f != $ac_func;
6311 rm -f conftest.$ac_objext conftest$ac_exeext
6312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6313 (eval $ac_link) 2>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try='test -s conftest$ac_exeext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 eval "$as_ac_var=yes"
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 eval "$as_ac_var=no"
6330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6334 if test `eval echo '${'$as_ac_var'}'` = yes; then
6335 cat >>confdefs.h <<_ACEOF
6336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6343 # Check whether --enable-debug or --disable-debug was given.
6344 if test "${enable_debug+set}" = set; then
6345 enableval="$enable_debug"
6346 case "${enableval}" in
6349 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
6350 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
6351 { (exit 1); exit 1; }; } ;;
6357 if test x$debug = xtrue; then
6358 CPPFLAGS="-DDEBUG $CPPFLAGS"
6362 if test x$GCC = xyes; then
6363 CFLAGS="-Wall $CFLAGS"
6366 ac_config_files="$ac_config_files Makefile abook.spec"
6367 cat >confcache <<\_ACEOF
6368 # This file is a shell script that caches the results of configure
6369 # tests run on this system so they can be shared between configure
6370 # scripts and configure runs, see configure's option --config-cache.
6371 # It is not useful on other systems. If it contains results you don't
6372 # want to keep, you may remove or edit it.
6374 # config.status only pays attention to the cache file if you give it
6375 # the --recheck option to rerun configure.
6377 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6378 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6383 # The following way of writing the cache mishandles newlines in values,
6384 # but we know of no workaround that is simple, portable, and efficient.
6385 # So, don't put newlines in cache variables' values.
6386 # Ultrix sh set writes to stderr and can't be redirected directly,
6387 # and sets the high bit in the cache file unless we assign to the vars.
6390 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6392 # `set' does not quote correctly, so add quotes (double-quote
6393 # substitution turns \\\\ into \\, and sed turns \\ into \).
6396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6399 # `set' quotes correctly as required by POSIX, so do not add quotes.
6401 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6408 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6410 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6412 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6413 if test -w $cache_file; then
6414 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6415 cat confcache >$cache_file
6417 echo "not updating unwritable cache $cache_file"
6422 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6423 # Let make expand exec_prefix.
6424 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6426 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6427 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6428 # trailing colons and then remove the whole line if VPATH becomes empty
6429 # (actually we leave an empty line to preserve line numbers).
6430 if test "x$srcdir" = x.; then
6431 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6432 s/:*\$(srcdir):*/:/;
6433 s/:*\${srcdir}:*/:/;
6435 s/^\([^=]*=[ ]*\):*/\1/;
6441 DEFS=-DHAVE_CONFIG_H
6445 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6446 # 1. Remove the extension, and $U if already installed.
6447 ac_i=`echo "$ac_i" |
6448 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6450 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6451 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6455 LTLIBOBJS=$ac_ltlibobjs
6458 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6459 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6460 Usually this means the macro was only invoked conditionally." >&5
6461 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6462 Usually this means the macro was only invoked conditionally." >&2;}
6463 { (exit 1); exit 1; }; }
6465 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6466 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6467 Usually this means the macro was only invoked conditionally." >&5
6468 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6469 Usually this means the macro was only invoked conditionally." >&2;}
6470 { (exit 1); exit 1; }; }
6473 : ${CONFIG_STATUS=./config.status}
6474 ac_clean_files_save=$ac_clean_files
6475 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6476 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6477 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6478 cat >$CONFIG_STATUS <<_ACEOF
6480 # Generated by $as_me.
6481 # Run this file to recreate the current configuration.
6482 # Compiler output produced by configure, useful for debugging
6483 # configure, is in config.log if it exists.
6488 SHELL=\${CONFIG_SHELL-$SHELL}
6491 cat >>$CONFIG_STATUS <<\_ACEOF
6492 ## --------------------- ##
6493 ## M4sh Initialization. ##
6494 ## --------------------- ##
6496 # Be Bourne compatible
6497 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6500 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6501 # is contrary to our usage. Disable this feature.
6502 alias -g '${1+"$@"}'='"$@"'
6503 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6507 # Support unset when possible.
6508 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6515 # Work around bugs in pre-3.0 UWIN ksh.
6516 $as_unset ENV MAIL MAILPATH
6523 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6524 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6525 LC_TELEPHONE LC_TIME
6527 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6528 eval $as_var=C; export $as_var
6534 # Required to use basename.
6535 if expr a : '\(a\)' >/dev/null 2>&1; then
6541 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6542 as_basename=basename
6548 # Name of the executable.
6549 as_me=`$as_basename "$0" ||
6550 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6551 X"$0" : 'X\(//\)$' \| \
6552 X"$0" : 'X\(/\)$' \| \
6553 . : '\(.\)' 2>/dev/null ||
6555 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6556 /^X\/\(\/\/\)$/{ s//\1/; q; }
6557 /^X\/\(\/\).*/{ s//\1/; q; }
6561 # PATH needs CR, and LINENO needs CR and PATH.
6562 # Avoid depending upon Character Ranges.
6563 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6564 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6565 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6566 as_cr_digits='0123456789'
6567 as_cr_alnum=$as_cr_Letters$as_cr_digits
6569 # The user is always right.
6570 if test "${PATH_SEPARATOR+set}" != set; then
6571 echo "#! /bin/sh" >conf$$.sh
6572 echo "exit 0" >>conf$$.sh
6574 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6585 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6586 test "x$as_lineno_1" != "x$as_lineno_2" &&
6587 test "x$as_lineno_3" = "x$as_lineno_2" || {
6588 # Find who we are. Look in the path if we contain no path at all
6591 *[\\/]* ) as_myself=$0 ;;
6592 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 test -z "$as_dir" && as_dir=.
6597 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6602 # We did not find ourselves, most probably we were run as `sh COMMAND'
6603 # in which case we are not to be found in the path.
6604 if test "x$as_myself" = x; then
6607 if test ! -f "$as_myself"; then
6608 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6609 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6610 { (exit 1); exit 1; }; }
6612 case $CONFIG_SHELL in
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6618 test -z "$as_dir" && as_dir=.
6619 for as_base in sh bash ksh sh5; do
6622 if ("$as_dir/$as_base" -c '
6625 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6626 test "x$as_lineno_1" != "x$as_lineno_2" &&
6627 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6628 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6629 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6630 CONFIG_SHELL=$as_dir/$as_base
6632 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6640 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6641 # uniformly replaced by the line number. The first 'sed' inserts a
6642 # line-number line before each line; the second 'sed' does the real
6643 # work. The second script uses 'N' to pair each line-number line
6644 # with the numbered line, and appends trailing '-' during
6645 # substitution so that $LINENO is not a special case at line end.
6646 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6647 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6648 sed '=' <$as_myself |
6653 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6656 s,^['$as_cr_digits']*\n,,
6658 chmod +x $as_me.lineno ||
6659 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6660 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6661 { (exit 1); exit 1; }; }
6663 # Don't try to exec as it changes $[0], causing all sort of problems
6664 # (the dirname of $[0] is not the place where we might find the
6665 # original and so on. Autoconf is especially sensible to this).
6667 # Exit status is that of the last command.
6672 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6673 *c*,-n*) ECHO_N= ECHO_C='
6675 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6676 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6679 if expr a : '\(a\)' >/dev/null 2>&1; then
6685 rm -f conf$$ conf$$.exe conf$$.file
6687 if ln -s conf$$.file conf$$ 2>/dev/null; then
6688 # We could just check for DJGPP; but this test a) works b) is more generic
6689 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6690 if test -f conf$$.exe; then
6691 # Don't use ln at all; we don't have any links
6696 elif ln conf$$.file conf$$ 2>/dev/null; then
6701 rm -f conf$$ conf$$.exe conf$$.file
6703 if mkdir -p . 2>/dev/null; then
6709 as_executable_p="test -f"
6711 # Sed expression to map a string onto a valid CPP name.
6712 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6714 # Sed expression to map a string onto a valid variable name.
6715 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6719 # We need space, tab and new line, in precisely that order.
6729 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6730 # report actual input values of CONFIG_FILES etc. instead of their
6731 # values after options handling. Logging --version etc. is OK.
6735 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6736 ## Running $as_me. ##
6741 This file was extended by $as_me, which was
6742 generated by GNU Autoconf 2.57. Invocation command line was
6744 CONFIG_FILES = $CONFIG_FILES
6745 CONFIG_HEADERS = $CONFIG_HEADERS
6746 CONFIG_LINKS = $CONFIG_LINKS
6747 CONFIG_COMMANDS = $CONFIG_COMMANDS
6751 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6755 # Files that config.status was made for.
6756 if test -n "$ac_config_files"; then
6757 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6760 if test -n "$ac_config_headers"; then
6761 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6764 if test -n "$ac_config_links"; then
6765 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6768 if test -n "$ac_config_commands"; then
6769 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6772 cat >>$CONFIG_STATUS <<\_ACEOF
6775 \`$as_me' instantiates files from templates according to the
6776 current configuration.
6778 Usage: $0 [OPTIONS] [FILE]...
6780 -h, --help print this help, then exit
6781 -V, --version print version number, then exit
6782 -q, --quiet do not print progress messages
6783 -d, --debug don't remove temporary files
6784 --recheck update $as_me by reconfiguring in the same conditions
6785 --file=FILE[:TEMPLATE]
6786 instantiate the configuration file FILE
6787 --header=FILE[:TEMPLATE]
6788 instantiate the configuration header FILE
6790 Configuration files:
6793 Configuration headers:
6796 Configuration commands:
6799 Report bugs to <bug-autoconf@gnu.org>."
6802 cat >>$CONFIG_STATUS <<_ACEOF
6805 configured by $0, generated by GNU Autoconf 2.57,
6806 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6808 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6809 Free Software Foundation, Inc.
6810 This config.status script is free software; the Free Software Foundation
6811 gives unlimited permission to copy, distribute and modify it."
6816 cat >>$CONFIG_STATUS <<\_ACEOF
6817 # If no file are specified by the user, then we need to provide default
6818 # value. By we need to know if files were specified by the user.
6824 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6825 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6833 *) # This is not an option, so the user has probably given explicit
6836 ac_need_defaults=false;;
6840 # Handling of the options.
6842 cat >>$CONFIG_STATUS <<\_ACEOF
6843 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6845 --version | --vers* | -V )
6846 echo "$ac_cs_version"; exit 0 ;;
6848 # Conflict between --help and --header
6849 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6850 Try \`$0 --help' for more information." >&5
6851 echo "$as_me: error: ambiguous option: $1
6852 Try \`$0 --help' for more information." >&2;}
6853 { (exit 1); exit 1; }; };;
6854 --help | --hel | -h )
6855 echo "$ac_cs_usage"; exit 0 ;;
6856 --debug | --d* | -d )
6858 --file | --fil | --fi | --f )
6860 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6861 ac_need_defaults=false;;
6862 --header | --heade | --head | --hea )
6864 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6865 ac_need_defaults=false;;
6866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6871 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6872 Try \`$0 --help' for more information." >&5
6873 echo "$as_me: error: unrecognized option: $1
6874 Try \`$0 --help' for more information." >&2;}
6875 { (exit 1); exit 1; }; } ;;
6877 *) ac_config_targets="$ac_config_targets $1" ;;
6883 ac_configure_extra_args=
6885 if $ac_cs_silent; then
6887 ac_configure_extra_args="$ac_configure_extra_args --silent"
6891 cat >>$CONFIG_STATUS <<_ACEOF
6892 if \$ac_cs_recheck; then
6893 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6894 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6899 cat >>$CONFIG_STATUS <<_ACEOF
6901 # INIT-COMMANDS section.
6904 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6910 cat >>$CONFIG_STATUS <<\_ACEOF
6911 for ac_config_target in $ac_config_targets
6913 case "$ac_config_target" in
6914 # Handling of arguments.
6915 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6916 "abook.spec" ) CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
6917 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6918 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6919 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6920 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6921 { (exit 1); exit 1; }; };;
6925 # If the user did not use the arguments to specify the items to instantiate,
6926 # then the envvar interface is used. Set only those that are not.
6927 # We use the long form for the default assignment because of an extremely
6928 # bizarre bug on SunOS 4.1.3.
6929 if $ac_need_defaults; then
6930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6932 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6935 # Have a temporary directory for convenience. Make it in the build tree
6936 # simply because there is no reason to put it here, and in addition,
6937 # creating and moving files from /tmp can sometimes cause problems.
6938 # Create a temporary directory, and hook for its removal unless debugging.
6941 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6942 trap '{ (exit 1); exit 1; }' 1 2 13 15
6945 # Create a (secure) tmp directory for tmp files.
6948 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6949 test -n "$tmp" && test -d "$tmp"
6952 tmp=./confstat$$-$RANDOM
6953 (umask 077 && mkdir $tmp)
6956 echo "$me: cannot create a temporary directory in ." >&2
6957 { (exit 1); exit 1; }
6962 cat >>$CONFIG_STATUS <<_ACEOF
6965 # CONFIG_FILES section.
6968 # No need to generate the scripts if there are no CONFIG_FILES.
6969 # This happens for instance when ./config.status config.h
6970 if test -n "\$CONFIG_FILES"; then
6971 # Protect against being on the right side of a sed subst in config.status.
6972 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6973 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6974 s,@SHELL@,$SHELL,;t t
6975 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6976 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6977 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6978 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6979 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6980 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6981 s,@exec_prefix@,$exec_prefix,;t t
6982 s,@prefix@,$prefix,;t t
6983 s,@program_transform_name@,$program_transform_name,;t t
6984 s,@bindir@,$bindir,;t t
6985 s,@sbindir@,$sbindir,;t t
6986 s,@libexecdir@,$libexecdir,;t t
6987 s,@datadir@,$datadir,;t t
6988 s,@sysconfdir@,$sysconfdir,;t t
6989 s,@sharedstatedir@,$sharedstatedir,;t t
6990 s,@localstatedir@,$localstatedir,;t t
6991 s,@libdir@,$libdir,;t t
6992 s,@includedir@,$includedir,;t t
6993 s,@oldincludedir@,$oldincludedir,;t t
6994 s,@infodir@,$infodir,;t t
6995 s,@mandir@,$mandir,;t t
6996 s,@build_alias@,$build_alias,;t t
6997 s,@host_alias@,$host_alias,;t t
6998 s,@target_alias@,$target_alias,;t t
7000 s,@ECHO_C@,$ECHO_C,;t t
7001 s,@ECHO_N@,$ECHO_N,;t t
7002 s,@ECHO_T@,$ECHO_T,;t t
7004 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7005 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7006 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7007 s,@CYGPATH_W@,$CYGPATH_W,;t t
7008 s,@PACKAGE@,$PACKAGE,;t t
7009 s,@VERSION@,$VERSION,;t t
7010 s,@ACLOCAL@,$ACLOCAL,;t t
7011 s,@AUTOCONF@,$AUTOCONF,;t t
7012 s,@AUTOMAKE@,$AUTOMAKE,;t t
7013 s,@AUTOHEADER@,$AUTOHEADER,;t t
7014 s,@MAKEINFO@,$MAKEINFO,;t t
7015 s,@AMTAR@,$AMTAR,;t t
7016 s,@install_sh@,$install_sh,;t t
7017 s,@STRIP@,$STRIP,;t t
7018 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7019 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7021 s,@SET_MAKE@,$SET_MAKE,;t t
7022 s,@am__leading_dot@,$am__leading_dot,;t t
7023 s,@build@,$build,;t t
7024 s,@build_cpu@,$build_cpu,;t t
7025 s,@build_vendor@,$build_vendor,;t t
7026 s,@build_os@,$build_os,;t t
7028 s,@host_cpu@,$host_cpu,;t t
7029 s,@host_vendor@,$host_vendor,;t t
7030 s,@host_os@,$host_os,;t t
7032 s,@CFLAGS@,$CFLAGS,;t t
7033 s,@LDFLAGS@,$LDFLAGS,;t t
7034 s,@CPPFLAGS@,$CPPFLAGS,;t t
7035 s,@ac_ct_CC@,$ac_ct_CC,;t t
7036 s,@EXEEXT@,$EXEEXT,;t t
7037 s,@OBJEXT@,$OBJEXT,;t t
7038 s,@DEPDIR@,$DEPDIR,;t t
7039 s,@am__include@,$am__include,;t t
7040 s,@am__quote@,$am__quote,;t t
7041 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7042 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7043 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7044 s,@CCDEPMODE@,$CCDEPMODE,;t t
7045 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7046 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7048 s,@EGREP@,$EGREP,;t t
7050 s,@ANSI2KNR@,$ANSI2KNR,;t t
7051 s,@LIBOBJS@,$LIBOBJS,;t t
7052 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7057 cat >>$CONFIG_STATUS <<\_ACEOF
7058 # Split the substitutions into bite-sized pieces for seds with
7059 # small command number limits, like on Digital OSF/1 and HP-UX.
7061 ac_sed_frag=1 # Number of current file.
7062 ac_beg=1 # First line for current file.
7063 ac_end=$ac_max_sed_lines # Line after last line for current file.
7066 while $ac_more_lines; do
7067 if test $ac_beg -gt 1; then
7068 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7070 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7072 if test ! -s $tmp/subs.frag; then
7075 # The purpose of the label and of the branching condition is to
7076 # speed up the sed processing (if there are no `@' at all, there
7077 # is no need to browse any of the substitutions).
7078 # These are the two extra sed commands mentioned above.
7080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7081 if test -z "$ac_sed_cmds"; then
7082 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7084 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7086 ac_sed_frag=`expr $ac_sed_frag + 1`
7088 ac_end=`expr $ac_end + $ac_max_sed_lines`
7091 if test -z "$ac_sed_cmds"; then
7094 fi # test -n "$CONFIG_FILES"
7097 cat >>$CONFIG_STATUS <<\_ACEOF
7098 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7099 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7101 - | *:- | *:-:* ) # input from stdin
7103 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7104 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7105 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7106 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7107 * ) ac_file_in=$ac_file.in ;;
7110 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7111 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7113 X"$ac_file" : 'X\(//\)[^/]' \| \
7114 X"$ac_file" : 'X\(//\)$' \| \
7115 X"$ac_file" : 'X\(/\)' \| \
7116 . : '\(.\)' 2>/dev/null ||
7118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7120 /^X\(\/\/\)$/{ s//\1/; q; }
7121 /^X\(\/\).*/{ s//\1/; q; }
7123 { if $as_mkdir_p; then
7128 while test ! -d "$as_dir"; do
7129 as_dirs="$as_dir $as_dirs"
7130 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7132 X"$as_dir" : 'X\(//\)[^/]' \| \
7133 X"$as_dir" : 'X\(//\)$' \| \
7134 X"$as_dir" : 'X\(/\)' \| \
7135 . : '\(.\)' 2>/dev/null ||
7137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7139 /^X\(\/\/\)$/{ s//\1/; q; }
7140 /^X\(\/\).*/{ s//\1/; q; }
7143 test ! -n "$as_dirs" || mkdir $as_dirs
7144 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7145 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7146 { (exit 1); exit 1; }; }; }
7150 if test "$ac_dir" != .; then
7151 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7152 # A "../" for each directory in $ac_dir_suffix.
7153 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7155 ac_dir_suffix= ac_top_builddir=
7159 .) # No --srcdir option. We are building in place.
7161 if test -z "$ac_top_builddir"; then
7164 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7166 [\\/]* | ?:[\\/]* ) # Absolute path.
7167 ac_srcdir=$srcdir$ac_dir_suffix;
7168 ac_top_srcdir=$srcdir ;;
7170 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7171 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7173 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7175 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7176 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7177 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7178 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7182 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7183 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7186 if test x"$ac_file" != x-; then
7187 { echo "$as_me:$LINENO: creating $ac_file" >&5
7188 echo "$as_me: creating $ac_file" >&6;}
7191 # Let's still pretend it is `configure' which instantiates (i.e., don't
7192 # use $as_me), people would be surprised to read:
7193 # /* config.h. Generated by config.status. */
7194 if test x"$ac_file" = x-; then
7197 configure_input="$ac_file. "
7199 configure_input=$configure_input"Generated from `echo $ac_file_in |
7200 sed 's,.*/,,'` by configure."
7202 # First look for the input files in the build tree, otherwise in the
7204 ac_file_inputs=`IFS=:
7205 for f in $ac_file_in; do
7207 -) echo $tmp/stdin ;;
7209 # Absolute (can't be DOS-style, as IFS=:)
7210 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7211 echo "$as_me: error: cannot find input file: $f" >&2;}
7212 { (exit 1); exit 1; }; }
7215 if test -f "$f"; then
7218 elif test -f "$srcdir/$f"; then
7223 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7224 echo "$as_me: error: cannot find input file: $f" >&2;}
7225 { (exit 1); exit 1; }; }
7228 done` || { (exit 1); exit 1; }
7230 cat >>$CONFIG_STATUS <<_ACEOF
7234 cat >>$CONFIG_STATUS <<\_ACEOF
7236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7237 s,@configure_input@,$configure_input,;t t
7238 s,@srcdir@,$ac_srcdir,;t t
7239 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7240 s,@top_srcdir@,$ac_top_srcdir,;t t
7241 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7242 s,@builddir@,$ac_builddir,;t t
7243 s,@abs_builddir@,$ac_abs_builddir,;t t
7244 s,@top_builddir@,$ac_top_builddir,;t t
7245 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7246 s,@INSTALL@,$ac_INSTALL,;t t
7247 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7249 if test x"$ac_file" != x-; then
7250 mv $tmp/out $ac_file
7258 cat >>$CONFIG_STATUS <<\_ACEOF
7261 # CONFIG_HEADER section.
7264 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7265 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7267 # ac_d sets the value in "#define NAME VALUE" lines.
7268 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7269 ac_dB='[ ].*$,\1#\2'
7272 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7273 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7274 ac_uB='$,\1#\2define\3'
7278 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7279 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7281 - | *:- | *:-:* ) # input from stdin
7283 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7284 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7285 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7286 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7287 * ) ac_file_in=$ac_file.in ;;
7290 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7291 echo "$as_me: creating $ac_file" >&6;}
7293 # First look for the input files in the build tree, otherwise in the
7295 ac_file_inputs=`IFS=:
7296 for f in $ac_file_in; do
7298 -) echo $tmp/stdin ;;
7300 # Absolute (can't be DOS-style, as IFS=:)
7301 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7302 echo "$as_me: error: cannot find input file: $f" >&2;}
7303 { (exit 1); exit 1; }; }
7306 if test -f "$f"; then
7309 elif test -f "$srcdir/$f"; then
7314 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7315 echo "$as_me: error: cannot find input file: $f" >&2;}
7316 { (exit 1); exit 1; }; }
7319 done` || { (exit 1); exit 1; }
7320 # Remove the trailing spaces.
7321 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7325 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7326 # `conftest.undefs', that substitutes the proper values into
7327 # config.h.in to produce config.h. The first handles `#define'
7328 # templates, and the second `#undef' templates.
7329 # And first: Protect against being on the right side of a sed subst in
7330 # config.status. Protect against being in an unquoted here document
7332 rm -f conftest.defines conftest.undefs
7333 # Using a here document instead of a string reduces the quoting nightmare.
7334 # Putting comments in sed scripts is not portable.
7336 # `end' is used to avoid that the second main sed command (meant for
7337 # 0-ary CPP macros) applies to n-ary macro definitions.
7338 # See the Autoconf documentation for `clear'.
7339 cat >confdef2sed.sed <<\_ACEOF
7344 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7346 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7349 # If some macros were called several times there might be several times
7350 # the same #defines, which is useless. Nevertheless, we may not want to
7351 # sort them, since we want the *last* AC-DEFINE to be honored.
7352 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7353 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7354 rm -f confdef2sed.sed
7356 # This sed command replaces #undef with comments. This is necessary, for
7357 # example, in the case of _POSIX_SOURCE, which is predefined and required
7358 # on some systems where configure will not decide to define it.
7359 cat >>conftest.undefs <<\_ACEOF
7360 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7363 # Break up conftest.defines because some shells have a limit on the size
7364 # of here documents, and old seds have small limits too (100 cmds).
7365 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7366 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7367 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7368 echo ' :' >>$CONFIG_STATUS
7370 while grep . conftest.defines >/dev/null
7372 # Write a limited-size here document to $tmp/defines.sed.
7373 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7374 # Speed up: don't consider the non `#define' lines.
7375 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7376 # Work around the forget-to-reset-the-flag bug.
7377 echo 't clr' >>$CONFIG_STATUS
7378 echo ': clr' >>$CONFIG_STATUS
7379 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7381 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7385 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7386 rm -f conftest.defines
7387 mv conftest.tail conftest.defines
7389 rm -f conftest.defines
7390 echo ' fi # grep' >>$CONFIG_STATUS
7391 echo >>$CONFIG_STATUS
7393 # Break up conftest.undefs because some shells have a limit on the size
7394 # of here documents, and old seds have small limits too (100 cmds).
7395 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7397 while grep . conftest.undefs >/dev/null
7399 # Write a limited-size here document to $tmp/undefs.sed.
7400 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7401 # Speed up: don't consider the non `#undef'
7402 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7403 # Work around the forget-to-reset-the-flag bug.
7404 echo 't clr' >>$CONFIG_STATUS
7405 echo ': clr' >>$CONFIG_STATUS
7406 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7408 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7412 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7413 rm -f conftest.undefs
7414 mv conftest.tail conftest.undefs
7416 rm -f conftest.undefs
7418 cat >>$CONFIG_STATUS <<\_ACEOF
7419 # Let's still pretend it is `configure' which instantiates (i.e., don't
7420 # use $as_me), people would be surprised to read:
7421 # /* config.h. Generated by config.status. */
7422 if test x"$ac_file" = x-; then
7423 echo "/* Generated by configure. */" >$tmp/config.h
7425 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7427 cat $tmp/in >>$tmp/config.h
7429 if test x"$ac_file" != x-; then
7430 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7431 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7432 echo "$as_me: $ac_file is unchanged" >&6;}
7434 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7436 X"$ac_file" : 'X\(//\)[^/]' \| \
7437 X"$ac_file" : 'X\(//\)$' \| \
7438 X"$ac_file" : 'X\(/\)' \| \
7439 . : '\(.\)' 2>/dev/null ||
7441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7443 /^X\(\/\/\)$/{ s//\1/; q; }
7444 /^X\(\/\).*/{ s//\1/; q; }
7446 { if $as_mkdir_p; then
7451 while test ! -d "$as_dir"; do
7452 as_dirs="$as_dir $as_dirs"
7453 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7455 X"$as_dir" : 'X\(//\)[^/]' \| \
7456 X"$as_dir" : 'X\(//\)$' \| \
7457 X"$as_dir" : 'X\(/\)' \| \
7458 . : '\(.\)' 2>/dev/null ||
7460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7462 /^X\(\/\/\)$/{ s//\1/; q; }
7463 /^X\(\/\).*/{ s//\1/; q; }
7466 test ! -n "$as_dirs" || mkdir $as_dirs
7467 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7468 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7469 { (exit 1); exit 1; }; }; }
7472 mv $tmp/config.h $ac_file
7478 # Compute $ac_file's index in $config_headers.
7480 for _am_header in $config_headers :; do
7482 $ac_file | $ac_file:* )
7485 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7488 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7489 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7490 X$ac_file : 'X\(//\)[^/]' \| \
7491 X$ac_file : 'X\(//\)$' \| \
7492 X$ac_file : 'X\(/\)' \| \
7493 . : '\(.\)' 2>/dev/null ||
7495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7497 /^X\(\/\/\)$/{ s//\1/; q; }
7498 /^X\(\/\).*/{ s//\1/; q; }
7499 s/.*/./; q'`/stamp-h$_am_stamp_count
7502 cat >>$CONFIG_STATUS <<\_ACEOF
7505 # CONFIG_COMMANDS section.
7507 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7508 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7509 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7510 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7511 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7512 X"$ac_dest" : 'X\(//\)[^/]' \| \
7513 X"$ac_dest" : 'X\(//\)$' \| \
7514 X"$ac_dest" : 'X\(/\)' \| \
7515 . : '\(.\)' 2>/dev/null ||
7517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7519 /^X\(\/\/\)$/{ s//\1/; q; }
7520 /^X\(\/\).*/{ s//\1/; q; }
7524 if test "$ac_dir" != .; then
7525 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7526 # A "../" for each directory in $ac_dir_suffix.
7527 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7529 ac_dir_suffix= ac_top_builddir=
7533 .) # No --srcdir option. We are building in place.
7535 if test -z "$ac_top_builddir"; then
7538 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7540 [\\/]* | ?:[\\/]* ) # Absolute path.
7541 ac_srcdir=$srcdir$ac_dir_suffix;
7542 ac_top_srcdir=$srcdir ;;
7544 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7545 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7547 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7549 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7550 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7551 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7552 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7555 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7556 echo "$as_me: executing $ac_dest commands" >&6;}
7558 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7559 # Strip MF so we end up with the name of the file.
7560 mf=`echo "$mf" | sed -e 's/:.*$//'`
7561 # Check whether this is an Automake generated Makefile or not.
7562 # We used to match only the files named `Makefile.in', but
7563 # some people rename them; so instead we look at the file content.
7564 # Grep'ing the first line is not enough: some people post-process
7565 # each Makefile.in and add a new line on top of each file to say so.
7566 # So let's grep whole file.
7567 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7568 dirpart=`(dirname "$mf") 2>/dev/null ||
7569 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7570 X"$mf" : 'X\(//\)[^/]' \| \
7571 X"$mf" : 'X\(//\)$' \| \
7572 X"$mf" : 'X\(/\)' \| \
7573 . : '\(.\)' 2>/dev/null ||
7575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7576 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7577 /^X\(\/\/\)$/{ s//\1/; q; }
7578 /^X\(\/\).*/{ s//\1/; q; }
7583 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7584 # Extract the definition of DEP_FILES from the Makefile without
7586 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7587 test -z "$DEPDIR" && continue
7588 # When using ansi2knr, U may be empty or an underscore; expand it
7589 U=`sed -n -e '/^U = / s///p' < "$mf"`
7590 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7591 # We invoke sed twice because it is the simplest approach to
7592 # changing $(DEPDIR) to its actual value in the expansion.
7593 for file in `sed -n -e '
7594 /^DEP_FILES = .*\\\\$/ {
7603 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7604 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7605 # Make sure the directory exists.
7606 test -f "$dirpart/$file" && continue
7607 fdir=`(dirname "$file") 2>/dev/null ||
7608 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7609 X"$file" : 'X\(//\)[^/]' \| \
7610 X"$file" : 'X\(//\)$' \| \
7611 X"$file" : 'X\(/\)' \| \
7612 . : '\(.\)' 2>/dev/null ||
7614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7616 /^X\(\/\/\)$/{ s//\1/; q; }
7617 /^X\(\/\).*/{ s//\1/; q; }
7619 { if $as_mkdir_p; then
7620 mkdir -p $dirpart/$fdir
7622 as_dir=$dirpart/$fdir
7624 while test ! -d "$as_dir"; do
7625 as_dirs="$as_dir $as_dirs"
7626 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7627 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7628 X"$as_dir" : 'X\(//\)[^/]' \| \
7629 X"$as_dir" : 'X\(//\)$' \| \
7630 X"$as_dir" : 'X\(/\)' \| \
7631 . : '\(.\)' 2>/dev/null ||
7633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7635 /^X\(\/\/\)$/{ s//\1/; q; }
7636 /^X\(\/\).*/{ s//\1/; q; }
7639 test ! -n "$as_dirs" || mkdir $as_dirs
7640 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7641 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7642 { (exit 1); exit 1; }; }; }
7644 # echo "creating $dirpart/$file"
7645 echo '# dummy' > "$dirpart/$file"
7653 cat >>$CONFIG_STATUS <<\_ACEOF
7655 { (exit 0); exit 0; }
7657 chmod +x $CONFIG_STATUS
7658 ac_clean_files=$ac_clean_files_save
7661 # configure is writing to config.log, and then calls config.status.
7662 # config.status does its own redirection, appending to config.log.
7663 # Unfortunately, on DOS this fails, as config.log is still kept open
7664 # by configure, so config.status won't be able to write to it; its
7665 # output is simply discarded. So we exec the FD to /dev/null,
7666 # effectively closing config.log, so it can be properly (re)opened and
7667 # appended to by config.status. When coming back to configure, we
7668 # need to make the FD available again.
7669 if test "$no_create" != yes; then
7671 ac_config_status_args=
7672 test "$silent" = yes &&
7673 ac_config_status_args="$ac_config_status_args --quiet"
7675 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7677 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7678 # would make configure fail if this is the last instruction.
7679 $ac_cs_success || { (exit 1); exit 1; }