2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="abook.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-dependency-tracking speeds up one-time build
853 --enable-dependency-tracking do not reject slow dependency extractors
854 --enable-debug Enable debugging support
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --with-curses=DIR Where ncurses is installed
860 --with-readline=DIR Where readline is installed
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 ac_dir_suffix= ac_top_builddir=
893 .) # No --srcdir option. We are building in place.
895 if test -z "$ac_top_builddir"; then
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
908 # Do not use `cd foo && pwd` to compute absolute paths, because
909 # the directories may not exist.
911 .) ac_abs_builddir="$ac_dir";;
914 .) ac_abs_builddir=`pwd`;;
915 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
916 *) ac_abs_builddir=`pwd`/"$ac_dir";;
919 case $ac_abs_builddir in
920 .) ac_abs_top_builddir=${ac_top_builddir}.;;
922 case ${ac_top_builddir}. in
923 .) ac_abs_top_builddir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
925 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
928 case $ac_abs_builddir in
929 .) ac_abs_srcdir=$ac_srcdir;;
932 .) ac_abs_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
934 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
937 case $ac_abs_builddir in
938 .) ac_abs_top_srcdir=$ac_top_srcdir;;
940 case $ac_top_srcdir in
941 .) ac_abs_top_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
943 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
948 # Check for guested configure; otherwise get Cygnus style configure.
949 if test -f $ac_srcdir/configure.gnu; then
951 $SHELL $ac_srcdir/configure.gnu --help=recursive
952 elif test -f $ac_srcdir/configure; then
954 $SHELL $ac_srcdir/configure --help=recursive
955 elif test -f $ac_srcdir/configure.ac ||
956 test -f $ac_srcdir/configure.in; then
960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966 test -n "$ac_init_help" && exit 0
967 if $ac_init_version; then
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
981 It was created by $as_me, which was
982 generated by GNU Autoconf 2.59. Invocation command line was
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1041 ac_must_keep_next=false
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1070 -* ) ac_must_keep_next=true ;;
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1099 # The following way of writing the cache mishandles newlines in values,
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1122 for ac_var in $ac_subst_vars
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1129 if test -n "$ac_subst_files"; then
1136 for ac_var in $ac_subst_files
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -s confdefs.h; then
1151 sed "/^$/d" confdefs.h | sort
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1172 # Predefined preprocessor variables.
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1234 # Check that the precious variables saved in the cache have kept the same
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 am__api_version="1.9"
1311 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1312 if test -f $ac_dir/install-sh; then
1314 ac_install_sh="$ac_aux_dir/install-sh -c"
1316 elif test -f $ac_dir/install.sh; then
1318 ac_install_sh="$ac_aux_dir/install.sh -c"
1320 elif test -f $ac_dir/shtool; then
1322 ac_install_sh="$ac_aux_dir/shtool install -c"
1326 if test -z "$ac_aux_dir"; then
1327 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1328 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1329 { (exit 1); exit 1; }; }
1331 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1332 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1333 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1335 # Find a good install program. We prefer a C program (faster),
1336 # so one script is as good as another. But avoid the broken or
1337 # incompatible versions:
1338 # SysV /etc/install, /usr/sbin/install
1339 # SunOS /usr/etc/install
1340 # IRIX /sbin/install
1342 # AmigaOS /C/install, which installs bootblocks on floppy discs
1343 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1344 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1345 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1346 # OS/2's system install, which has a completely different semantic
1347 # ./install, which can be erroneously created by make from ./install.sh.
1348 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1349 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1350 if test -z "$INSTALL"; then
1351 if test "${ac_cv_path_install+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1358 test -z "$as_dir" && as_dir=.
1359 # Account for people who put trailing slashes in PATH elements.
1361 ./ | .// | /cC/* | \
1362 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1363 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1366 # OSF1 and SCO ODT 3.0 have their own names for install.
1367 # Don't use installbsd from OSF since it installs stuff as root
1369 for ac_prog in ginstall scoinst install; do
1370 for ac_exec_ext in '' $ac_executable_extensions; do
1371 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1372 if test $ac_prog = install &&
1373 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1374 # AIX install. It has an incompatible calling convention.
1376 elif test $ac_prog = install &&
1377 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1378 # program-specific install script used by HP pwplus--don't use.
1381 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1393 if test "${ac_cv_path_install+set}" = set; then
1394 INSTALL=$ac_cv_path_install
1396 # As a last resort, use the slow shell script. We don't cache a
1397 # path for INSTALL within a source directory, because that will
1398 # break other packages using the cache if that directory is
1399 # removed, or if the path is relative.
1400 INSTALL=$ac_install_sh
1403 echo "$as_me:$LINENO: result: $INSTALL" >&5
1404 echo "${ECHO_T}$INSTALL" >&6
1406 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1407 # It thinks the first close brace ends the variable substitution.
1408 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1410 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1412 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1414 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1415 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1418 echo timestamp > conftest.file
1419 # Do `set' in a subshell so we don't clobber the current shell's
1420 # arguments. Must try -L first in case configure is actually a
1421 # symlink; some systems play weird games with the mod time of symlinks
1422 # (eg FreeBSD returns the mod time of the symlink's containing
1425 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1426 if test "$*" = "X"; then
1428 set X `ls -t $srcdir/configure conftest.file`
1431 if test "$*" != "X $srcdir/configure conftest.file" \
1432 && test "$*" != "X conftest.file $srcdir/configure"; then
1434 # If neither matched, then we have a broken ls. This can happen
1435 # if, for instance, CONFIG_SHELL is bash and it inherits a
1436 # broken ls alias from the environment. This has actually
1437 # happened. Such a system could not be considered "sane".
1438 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1439 alias in your environment" >&5
1440 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1441 alias in your environment" >&2;}
1442 { (exit 1); exit 1; }; }
1445 test "$2" = conftest.file
1451 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1452 Check your system clock" >&5
1453 echo "$as_me: error: newly created file is older than distributed files!
1454 Check your system clock" >&2;}
1455 { (exit 1); exit 1; }; }
1457 echo "$as_me:$LINENO: result: yes" >&5
1458 echo "${ECHO_T}yes" >&6
1459 test "$program_prefix" != NONE &&
1460 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1461 # Use a double $ so make ignores it.
1462 test "$program_suffix" != NONE &&
1463 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1464 # Double any \ or $. echo might interpret backslashes.
1465 # By default was `s,x,x', remove it if useless.
1466 cat <<\_ACEOF >conftest.sed
1467 s/[\\$]/&&/g;s/;s,x,x,$//
1469 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1472 # expand $ac_aux_dir to an absolute path
1473 am_aux_dir=`cd $ac_aux_dir && pwd`
1475 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1476 # Use eval to expand $SHELL
1477 if eval "$MISSING --run true"; then
1478 am_missing_run="$MISSING --run "
1481 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1482 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1485 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1486 # We used to keeping the `.' as first argument, in order to
1487 # allow $(mkdir_p) to be used without argument. As in
1488 # $(mkdir_p) $(somedir)
1489 # where $(somedir) is conditionally defined. However this is wrong
1491 # 1. if the package is installed by a user who cannot write `.'
1492 # make install will fail,
1493 # 2. the above comment should most certainly read
1494 # $(mkdir_p) $(DESTDIR)$(somedir)
1495 # so it does not work when $(somedir) is undefined and
1496 # $(DESTDIR) is not.
1497 # To support the latter case, we have to write
1498 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1499 # so the `.' trick is pointless.
1500 mkdir_p='mkdir -p --'
1502 # On NextStep and OpenStep, the `mkdir' command does not
1503 # recognize any option. It will interpret all options as
1504 # directories to create, and then abort because `.' already
1506 for d in ./-p ./--version;
1508 test -d $d && rmdir $d
1510 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1511 if test -f "$ac_aux_dir/mkinstalldirs"; then
1512 mkdir_p='$(mkinstalldirs)'
1514 mkdir_p='$(install_sh) -d'
1518 for ac_prog in gawk mawk nawk awk
1520 # Extract the first word of "$ac_prog", so it can be a program name with args.
1521 set dummy $ac_prog; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_AWK+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 if test -n "$AWK"; then
1528 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_AWK="$ac_prog"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547 if test -n "$AWK"; then
1548 echo "$as_me:$LINENO: result: $AWK" >&5
1549 echo "${ECHO_T}$AWK" >&6
1551 echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1555 test -n "$AWK" && break
1558 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1559 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1560 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1561 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 cat >conftest.make <<\_ACEOF
1566 @echo 'ac_maketemp="$(MAKE)"'
1568 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1569 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1570 if test -n "$ac_maketemp"; then
1571 eval ac_cv_prog_make_${ac_make}_set=yes
1573 eval ac_cv_prog_make_${ac_make}_set=no
1577 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1578 echo "$as_me:$LINENO: result: yes" >&5
1579 echo "${ECHO_T}yes" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1584 SET_MAKE="MAKE=${MAKE-make}"
1587 rm -rf .tst 2>/dev/null
1588 mkdir .tst 2>/dev/null
1589 if test -d .tst; then
1594 rmdir .tst 2>/dev/null
1596 # test to see if srcdir already configured
1597 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1598 test -f $srcdir/config.status; then
1599 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1600 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1601 { (exit 1); exit 1; }; }
1604 # test whether we have cygpath
1605 if test -z "$CYGPATH_W"; then
1606 if (cygpath --version) >/dev/null 2>/dev/null; then
1607 CYGPATH_W='cygpath -w'
1614 # Define the identity of the package.
1619 cat >>confdefs.h <<_ACEOF
1620 #define PACKAGE "$PACKAGE"
1624 cat >>confdefs.h <<_ACEOF
1625 #define VERSION "$VERSION"
1628 # Some tools Automake needs.
1630 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1633 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1636 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1639 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1642 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1644 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1646 # Installed binaries are usually stripped using `strip' when the user
1647 # run `make install-strip'. However `strip' might not be the right
1648 # tool to use in cross-compilation environments, therefore Automake
1649 # will honor the `STRIP' environment variable to overrule this program.
1650 if test "$cross_compiling" != no; then
1651 if test -n "$ac_tool_prefix"; then
1652 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1653 set dummy ${ac_tool_prefix}strip; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_STRIP+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 if test -n "$STRIP"; then
1660 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 STRIP=$ac_cv_prog_STRIP
1679 if test -n "$STRIP"; then
1680 echo "$as_me:$LINENO: result: $STRIP" >&5
1681 echo "${ECHO_T}$STRIP" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1688 if test -z "$ac_cv_prog_STRIP"; then
1690 # Extract the first word of "strip", so it can be a program name with args.
1691 set dummy strip; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 if test -n "$ac_ct_STRIP"; then
1698 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_ac_ct_STRIP="strip"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1717 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1718 if test -n "$ac_ct_STRIP"; then
1719 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1720 echo "${ECHO_T}$ac_ct_STRIP" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1728 STRIP="$ac_cv_prog_STRIP"
1732 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1734 # We need awk for the "check" target. The system "awk" is bad on
1736 # Always define AMTAR for backward compatibility.
1738 AMTAR=${AMTAR-"${am_missing_run}tar"}
1740 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1746 ac_config_headers="$ac_config_headers config.h"
1749 # Make sure we can run config.sub.
1750 $ac_config_sub sun4 >/dev/null 2>&1 ||
1751 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1752 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1753 { (exit 1); exit 1; }; }
1755 echo "$as_me:$LINENO: checking build system type" >&5
1756 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1757 if test "${ac_cv_build+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 ac_cv_build_alias=$build_alias
1761 test -z "$ac_cv_build_alias" &&
1762 ac_cv_build_alias=`$ac_config_guess`
1763 test -z "$ac_cv_build_alias" &&
1764 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1765 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1766 { (exit 1); exit 1; }; }
1767 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1768 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1769 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1770 { (exit 1); exit 1; }; }
1773 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1774 echo "${ECHO_T}$ac_cv_build" >&6
1776 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1777 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1778 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1781 echo "$as_me:$LINENO: checking host system type" >&5
1782 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1783 if test "${ac_cv_host+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1786 ac_cv_host_alias=$host_alias
1787 test -z "$ac_cv_host_alias" &&
1788 ac_cv_host_alias=$ac_cv_build_alias
1789 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1790 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1791 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1792 { (exit 1); exit 1; }; }
1795 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1796 echo "${ECHO_T}$ac_cv_host" >&6
1798 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1799 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1800 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1805 ac_cpp='$CPP $CPPFLAGS'
1806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809 if test -n "$ac_tool_prefix"; then
1810 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1811 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$CC"; then
1818 ac_cv_prog_CC="$CC" # Let the user override the test.
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837 if test -n "$CC"; then
1838 echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1846 if test -z "$ac_cv_prog_CC"; then
1848 # Extract the first word of "gcc", so it can be a program name with args.
1849 set dummy gcc; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 if test -n "$ac_ct_CC"; then
1856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_ac_ct_CC="gcc"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875 if test -n "$ac_ct_CC"; then
1876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877 echo "${ECHO_T}$ac_ct_CC" >&6
1879 echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1888 if test -z "$CC"; then
1889 if test -n "$ac_tool_prefix"; then
1890 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1891 set dummy ${ac_tool_prefix}cc; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 if test -n "$CC"; then
1898 ac_cv_prog_CC="$CC" # Let the user override the test.
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_CC="${ac_tool_prefix}cc"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 if test -n "$CC"; then
1918 echo "$as_me:$LINENO: result: $CC" >&5
1919 echo "${ECHO_T}$CC" >&6
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1926 if test -z "$ac_cv_prog_CC"; then
1928 # Extract the first word of "cc", so it can be a program name with args.
1929 set dummy cc; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 if test -n "$ac_ct_CC"; then
1936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 ac_cv_prog_ac_ct_CC="cc"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1955 if test -n "$ac_ct_CC"; then
1956 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1957 echo "${ECHO_T}$ac_ct_CC" >&6
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1969 if test -z "$CC"; then
1970 # Extract the first word of "cc", so it can be a program name with args.
1971 set dummy cc; ac_word=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1989 ac_prog_rejected=yes
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 if test $ac_prog_rejected = yes; then
2000 # We found a bogon in the path, so make sure we never use it.
2001 set dummy $ac_cv_prog_CC
2003 if test $# != 0; then
2004 # We chose a different compiler from the bogus one.
2005 # However, it has the same basename, so the bogon will be chosen
2006 # first if we set CC to just the basename; use the full file name.
2008 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2014 if test -n "$CC"; then
2015 echo "$as_me:$LINENO: result: $CC" >&5
2016 echo "${ECHO_T}$CC" >&6
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2023 if test -z "$CC"; then
2024 if test -n "$ac_tool_prefix"; then
2027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 if test -n "$CC"; then
2035 ac_cv_prog_CC="$CC" # Let the user override the test.
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 if test -n "$CC"; then
2055 echo "$as_me:$LINENO: result: $CC" >&5
2056 echo "${ECHO_T}$CC" >&6
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2062 test -n "$CC" && break
2065 if test -z "$CC"; then
2069 # Extract the first word of "$ac_prog", so it can be a program name with args.
2070 set dummy $ac_prog; ac_word=$2
2071 echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2073 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2076 if test -n "$ac_ct_CC"; then
2077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2086 ac_cv_prog_ac_ct_CC="$ac_prog"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2096 if test -n "$ac_ct_CC"; then
2097 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2098 echo "${ECHO_T}$ac_ct_CC" >&6
2100 echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6
2104 test -n "$ac_ct_CC" && break
2113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2114 See \`config.log' for more details." >&5
2115 echo "$as_me: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&2;}
2117 { (exit 1); exit 1; }; }
2119 # Provide some information about the compiler.
2120 echo "$as_me:$LINENO:" \
2121 "checking for C compiler version" >&5
2122 ac_compiler=`set X $ac_compile; echo $2`
2123 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2124 (eval $ac_compiler --version </dev/null >&5) 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2128 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2129 (eval $ac_compiler -v </dev/null >&5) 2>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2134 (eval $ac_compiler -V </dev/null >&5) 2>&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2139 cat >conftest.$ac_ext <<_ACEOF
2142 cat confdefs.h >>conftest.$ac_ext
2143 cat >>conftest.$ac_ext <<_ACEOF
2144 /* end confdefs.h. */
2154 ac_clean_files_save=$ac_clean_files
2155 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2156 # Try to create an executable without -o first, disregard a.out.
2157 # It will help us diagnose broken compilers, and finding out an intuition
2159 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2160 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2161 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2162 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2163 (eval $ac_link_default) 2>&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; then
2167 # Find the output, starting from the most likely. This scheme is
2168 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2171 # Be careful to initialize this variable, since it used to be cached.
2172 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2174 # b.out is created by i960 compilers.
2175 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2177 test -f "$ac_file" || continue
2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2182 # This is the source file.
2185 # We found the default executable, but exeext='' is most
2189 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190 # FIXME: I believe we export ac_cv_exeext for Libtool,
2191 # but it would be cool to find out if it's true. Does anybody
2192 # maintain Libtool? --akim.
2200 echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2203 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2204 See \`config.log' for more details." >&5
2205 echo "$as_me: error: C compiler cannot create executables
2206 See \`config.log' for more details." >&2;}
2207 { (exit 77); exit 77; }; }
2210 ac_exeext=$ac_cv_exeext
2211 echo "$as_me:$LINENO: result: $ac_file" >&5
2212 echo "${ECHO_T}$ac_file" >&6
2214 # Check the compiler produces executables we can run. If not, either
2215 # the compiler is broken, or we cross compile.
2216 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2217 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2218 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2219 # If not cross compiling, check that we can run a simple program.
2220 if test "$cross_compiling" != yes; then
2221 if { ac_try='./$ac_file'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2229 if test "$cross_compiling" = maybe; then
2232 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2233 If you meant to cross compile, use \`--host'.
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'.
2237 See \`config.log' for more details." >&2;}
2238 { (exit 1); exit 1; }; }
2242 echo "$as_me:$LINENO: result: yes" >&5
2243 echo "${ECHO_T}yes" >&6
2245 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2246 ac_clean_files=$ac_clean_files_save
2247 # Check the compiler produces executables we can run. If not, either
2248 # the compiler is broken, or we cross compile.
2249 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2250 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2251 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2252 echo "${ECHO_T}$cross_compiling" >&6
2254 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2255 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2257 (eval $ac_link) 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; then
2261 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2262 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2263 # work properly (i.e., refer to `conftest.exe'), while it won't with
2265 for ac_file in conftest.exe conftest conftest.*; do
2266 test -f "$ac_file" || continue
2268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2269 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2277 See \`config.log' for more details." >&5
2278 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&2;}
2280 { (exit 1); exit 1; }; }
2283 rm -f conftest$ac_cv_exeext
2284 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2285 echo "${ECHO_T}$ac_cv_exeext" >&6
2287 rm -f conftest.$ac_ext
2288 EXEEXT=$ac_cv_exeext
2290 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2291 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2292 if test "${ac_cv_objext+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 cat >conftest.$ac_ext <<_ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 rm -f conftest.o conftest.obj
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; then
2316 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2327 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
2334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2336 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337 echo "${ECHO_T}$ac_cv_objext" >&6
2338 OBJEXT=$ac_cv_objext
2340 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2342 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 cat >conftest.$ac_ext <<_ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2363 rm -f conftest.$ac_objext
2364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365 (eval $ac_compile) 2>conftest.er1
2367 grep -v '^ *+' conftest.er1 >conftest.err
2369 cat conftest.err >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); } &&
2372 { ac_try='test -z "$ac_c_werror_flag"
2373 || test ! -s conftest.err'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; } &&
2379 { ac_try='test -s conftest.$ac_objext'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; }; then
2387 echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2393 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2396 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2397 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2398 GCC=`test $ac_compiler_gnu = yes && echo yes`
2399 ac_test_CFLAGS=${CFLAGS+set}
2400 ac_save_CFLAGS=$CFLAGS
2402 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2403 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2404 if test "${ac_cv_prog_cc_g+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 cat >conftest.$ac_ext <<_ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>conftest.er1
2426 grep -v '^ *+' conftest.er1 >conftest.err
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag"
2432 || test ! -s conftest.err'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; } &&
2438 { ac_try='test -s conftest.$ac_objext'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; }; then
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2454 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2455 if test "$ac_test_CFLAGS" = set; then
2456 CFLAGS=$ac_save_CFLAGS
2457 elif test $ac_cv_prog_cc_g = yes; then
2458 if test "$GCC" = yes; then
2464 if test "$GCC" = yes; then
2470 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2471 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2472 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 ac_cv_prog_cc_stdc=no
2477 cat >conftest.$ac_ext <<_ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2485 #include <sys/types.h>
2486 #include <sys/stat.h>
2487 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2488 struct buf { int x; };
2489 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2490 static char *e (p, i)
2496 static char *f (char * (*g) (char **, int), char **p, ...)
2501 s = g (p, va_arg (v,int));
2506 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2507 function prototypes and stuff, but not '\xHH' hex character constants.
2508 These don't provoke an error unfortunately, instead are silently treated
2509 as 'x'. The following induces an error, until -std1 is added to get
2510 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2511 array size at least. It's necessary to write '\x00'==0 to get something
2512 that's true only with -std1. */
2513 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2515 int test (int i, double x);
2516 struct s1 {int (*f) (int a);};
2517 struct s2 {int (*f) (double a);};
2518 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2524 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2529 # Don't try gcc -ansi; that turns off useful extensions and
2530 # breaks some systems' header files.
2531 # AIX -qlanglvl=ansi
2532 # Ultrix and OSF/1 -std1
2533 # HP-UX 10.20 and later -Ae
2534 # HP-UX older versions -Aa -D_HPUX_SOURCE
2535 # SVR4 -Xc -D__EXTENSIONS__
2536 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2538 CC="$ac_save_CC $ac_arg"
2539 rm -f conftest.$ac_objext
2540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2541 (eval $ac_compile) 2>conftest.er1
2543 grep -v '^ *+' conftest.er1 >conftest.err
2545 cat conftest.err >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); } &&
2548 { ac_try='test -z "$ac_c_werror_flag"
2549 || test ! -s conftest.err'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; } &&
2555 { ac_try='test -s conftest.$ac_objext'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; }; then
2561 ac_cv_prog_cc_stdc=$ac_arg
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2568 rm -f conftest.err conftest.$ac_objext
2570 rm -f conftest.$ac_ext conftest.$ac_objext
2575 case "x$ac_cv_prog_cc_stdc" in
2577 echo "$as_me:$LINENO: result: none needed" >&5
2578 echo "${ECHO_T}none needed" >&6 ;;
2580 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2581 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2582 CC="$CC $ac_cv_prog_cc_stdc" ;;
2585 # Some people use a C++ compiler to compile C. Since we use `exit',
2586 # in C++ we need to declare it. In case someone uses the same compiler
2587 # for both compiling C and C++ we need to have the C++ compiler decide
2588 # the declaration of exit, since it's the most demanding environment.
2589 cat >conftest.$ac_ext <<_ACEOF
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>conftest.er1
2598 grep -v '^ *+' conftest.er1 >conftest.err
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 for ac_declaration in \
2618 'extern "C" void std::exit (int) throw (); using std::exit;' \
2619 'extern "C" void std::exit (int); using std::exit;' \
2620 'extern "C" void exit (int) throw ();' \
2621 'extern "C" void exit (int);' \
2624 cat >conftest.$ac_ext <<_ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642 (eval $ac_compile) 2>conftest.er1
2644 grep -v '^ *+' conftest.er1 >conftest.err
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } &&
2649 { ac_try='test -z "$ac_c_werror_flag"
2650 || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2685 rm -f conftest.$ac_objext
2686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2687 (eval $ac_compile) 2>conftest.er1
2689 grep -v '^ *+' conftest.er1 >conftest.err
2691 cat conftest.err >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } &&
2694 { ac_try='test -z "$ac_c_werror_flag"
2695 || test ! -s conftest.err'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2709 echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716 if test -n "$ac_declaration"; then
2717 echo '#ifdef __cplusplus' >>confdefs.h
2718 echo $ac_declaration >>confdefs.h
2719 echo '#endif' >>confdefs.h
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733 DEPDIR="${am__leading_dot}deps"
2735 ac_config_commands="$ac_config_commands depfiles"
2738 am_make=${MAKE-make}
2739 cat > confinc << 'END'
2744 # If we don't find an include directive, just comment out the code.
2745 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2746 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2750 # First try GNU make style include.
2751 echo "include confinc" > confmf
2752 # We grep out `Entering directory' and `Leaving directory'
2753 # messages which can occur if `w' ends up in MAKEFLAGS.
2754 # In particular we don't look at `^make:' because GNU make might
2755 # be invoked under some other name (usually "gmake"), in which
2756 # case it prints its new name instead of `make'.
2757 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2762 # Now try BSD make style include.
2763 if test "$am__include" = "#"; then
2764 echo '.include "confinc"' > confmf
2765 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2766 am__include=.include
2773 echo "$as_me:$LINENO: result: $_am_result" >&5
2774 echo "${ECHO_T}$_am_result" >&6
2775 rm -f confinc confmf
2777 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2778 if test "${enable_dependency_tracking+set}" = set; then
2779 enableval="$enable_dependency_tracking"
2782 if test "x$enable_dependency_tracking" != xno; then
2783 am_depcomp="$ac_aux_dir/depcomp"
2788 if test "x$enable_dependency_tracking" != xno; then
2799 depcc="$CC" am_compiler_list=
2801 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2802 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2803 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2807 # We make a subdir and do the tests there. Otherwise we can end up
2808 # making bogus files that we don't know about and never remove. For
2809 # instance it was reported that on HP-UX the gcc test will end up
2810 # making a dummy file named `D' -- because `-MD' means `put the output
2813 # Copy depcomp to subdir because otherwise we won't find it if we're
2814 # using a relative directory.
2815 cp "$am_depcomp" conftest.dir
2817 # We will build objects and dependencies in a subdirectory because
2818 # it helps to detect inapplicable dependency modes. For instance
2819 # both Tru64's cc and ICC support -MD to output dependencies as a
2820 # side effect of compilation, but ICC will put the dependencies in
2821 # the current directory while Tru64 will put them in the object
2825 am_cv_CC_dependencies_compiler_type=none
2826 if test "$am_compiler_list" = ""; then
2827 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2829 for depmode in $am_compiler_list; do
2830 # Setup a source with many dependencies, because some compilers
2831 # like to wrap large dependency lists on column 80 (with \), and
2832 # we should not choose a depcomp mode which is confused by this.
2834 # We need to recreate these files for each test, as the compiler may
2835 # overwrite some of them when testing with obscure command lines.
2836 # This happens at least with the AIX C compiler.
2838 for i in 1 2 3 4 5 6; do
2839 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2840 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2841 # Solaris 8's {/usr,}/bin/sh.
2842 touch sub/conftst$i.h
2844 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2848 # after this tag, mechanisms are not by side-effect, so they'll
2849 # only be used when explicitly requested
2850 if test "x$enable_dependency_tracking" = xyes; then
2858 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2859 # mode. It turns out that the SunPro C++ compiler does not properly
2860 # handle `-M -o', and we need to detect this.
2861 if depmode=$depmode \
2862 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2863 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2864 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2865 >/dev/null 2>conftest.err &&
2866 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2867 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2868 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2869 # icc doesn't choke on unknown options, it will just issue warnings
2870 # or remarks (even with -Werror). So we grep stderr for any message
2871 # that says an option was ignored or not supported.
2872 # When given -MP, icc 7.0 and 7.1 complain thusly:
2873 # icc: Command line warning: ignoring option '-M'; no argument required
2874 # The diagnosis changed in icc 8.0:
2875 # icc: Command line remark: option '-MP' not supported
2876 if (grep 'ignoring option' conftest.err ||
2877 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2878 am_cv_CC_dependencies_compiler_type=$depmode
2887 am_cv_CC_dependencies_compiler_type=none
2891 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2892 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2893 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2898 test "x$enable_dependency_tracking" != xno \
2899 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2901 am__fastdepCC_FALSE='#'
2903 am__fastdepCC_TRUE='#'
2904 am__fastdepCC_FALSE=
2909 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2910 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2911 if test "${ac_cv_search_strerror+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 ac_func_search_save_LIBS=$LIBS
2915 ac_cv_search_strerror=no
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2923 /* Override any gcc2 internal prototype to avoid an error. */
2927 /* We use char because int might match the return type of a gcc2
2928 builtin and then its argument prototype would still apply. */
2938 rm -f conftest.$ac_objext conftest$ac_exeext
2939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2940 (eval $ac_link) 2>conftest.er1
2942 grep -v '^ *+' conftest.er1 >conftest.err
2944 cat conftest.err >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } &&
2947 { ac_try='test -z "$ac_c_werror_flag"
2948 || test ! -s conftest.err'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest$ac_exeext'
2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2960 ac_cv_search_strerror="none required"
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2966 rm -f conftest.err conftest.$ac_objext \
2967 conftest$ac_exeext conftest.$ac_ext
2968 if test "$ac_cv_search_strerror" = no; then
2969 for ac_lib in cposix; do
2970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2971 cat >conftest.$ac_ext <<_ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2978 /* Override any gcc2 internal prototype to avoid an error. */
2982 /* We use char because int might match the return type of a gcc2
2983 builtin and then its argument prototype would still apply. */
2993 rm -f conftest.$ac_objext conftest$ac_exeext
2994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2995 (eval $ac_link) 2>conftest.er1
2997 grep -v '^ *+' conftest.er1 >conftest.err
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -z "$ac_c_werror_flag"
3003 || test ! -s conftest.err'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; } &&
3009 { ac_try='test -s conftest$ac_exeext'
3010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3015 ac_cv_search_strerror="-l$ac_lib"
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3022 rm -f conftest.err conftest.$ac_objext \
3023 conftest$ac_exeext conftest.$ac_ext
3026 LIBS=$ac_func_search_save_LIBS
3028 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3029 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3030 if test "$ac_cv_search_strerror" != no; then
3031 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3035 echo "$as_me:$LINENO: checking for function prototypes" >&5
3036 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3037 if test "$ac_cv_prog_cc_stdc" != no; then
3038 echo "$as_me:$LINENO: result: yes" >&5
3039 echo "${ECHO_T}yes" >&6
3041 cat >>confdefs.h <<\_ACEOF
3042 #define PROTOTYPES 1
3046 cat >>confdefs.h <<\_ACEOF
3047 #define __PROTOTYPES 1
3051 echo "$as_me:$LINENO: result: no" >&5
3052 echo "${ECHO_T}no" >&6
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3061 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3062 # On Suns, sometimes $CPP names a directory.
3063 if test -n "$CPP" && test -d "$CPP"; then
3066 if test -z "$CPP"; then
3067 if test "${ac_cv_prog_CPP+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 # Double quotes because CPP needs to be expanded
3071 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3074 for ac_c_preproc_warn_flag in '' yes
3076 # Use a header file that comes with gcc, so configuring glibc
3077 # with a fresh cross-compiler works.
3078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3079 # <limits.h> exists even on freestanding compilers.
3080 # On the NeXT, cc -E runs the code through the compiler's parser,
3081 # not just through cpp. "Syntax error" is here to catch this case.
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3089 # include <limits.h>
3091 # include <assert.h>
3095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3098 grep -v '^ *+' conftest.er1 >conftest.err
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } >/dev/null; then
3103 if test -s conftest.err; then
3104 ac_cpp_err=$ac_c_preproc_warn_flag
3105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3112 if test -z "$ac_cpp_err"; then
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 # Broken: fails on valid input.
3121 rm -f conftest.err conftest.$ac_ext
3123 # OK, works on sane cases. Now check whether non-existent headers
3124 # can be detected and how.
3125 cat >conftest.$ac_ext <<_ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131 #include <ac_nonexistent.h>
3133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3136 grep -v '^ *+' conftest.er1 >conftest.err
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null; then
3141 if test -s conftest.err; then
3142 ac_cpp_err=$ac_c_preproc_warn_flag
3143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3150 if test -z "$ac_cpp_err"; then
3151 # Broken: success on invalid input.
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 # Passes both tests.
3161 rm -f conftest.err conftest.$ac_ext
3164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3165 rm -f conftest.err conftest.$ac_ext
3166 if $ac_preproc_ok; then
3178 echo "$as_me:$LINENO: result: $CPP" >&5
3179 echo "${ECHO_T}$CPP" >&6
3181 for ac_c_preproc_warn_flag in '' yes
3183 # Use a header file that comes with gcc, so configuring glibc
3184 # with a fresh cross-compiler works.
3185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3186 # <limits.h> exists even on freestanding compilers.
3187 # On the NeXT, cc -E runs the code through the compiler's parser,
3188 # not just through cpp. "Syntax error" is here to catch this case.
3189 cat >conftest.$ac_ext <<_ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3196 # include <limits.h>
3198 # include <assert.h>
3202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3205 grep -v '^ *+' conftest.er1 >conftest.err
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } >/dev/null; then
3210 if test -s conftest.err; then
3211 ac_cpp_err=$ac_c_preproc_warn_flag
3212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3219 if test -z "$ac_cpp_err"; then
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 # Broken: fails on valid input.
3228 rm -f conftest.err conftest.$ac_ext
3230 # OK, works on sane cases. Now check whether non-existent headers
3231 # can be detected and how.
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3238 #include <ac_nonexistent.h>
3240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3243 grep -v '^ *+' conftest.er1 >conftest.err
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } >/dev/null; then
3248 if test -s conftest.err; then
3249 ac_cpp_err=$ac_c_preproc_warn_flag
3250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3257 if test -z "$ac_cpp_err"; then
3258 # Broken: success on invalid input.
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 # Passes both tests.
3268 rm -f conftest.err conftest.$ac_ext
3271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3272 rm -f conftest.err conftest.$ac_ext
3273 if $ac_preproc_ok; then
3276 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3277 See \`config.log' for more details." >&5
3278 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3279 See \`config.log' for more details." >&2;}
3280 { (exit 1); exit 1; }; }
3284 ac_cpp='$CPP $CPPFLAGS'
3285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290 echo "$as_me:$LINENO: checking for egrep" >&5
3291 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3292 if test "${ac_cv_prog_egrep+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3296 then ac_cv_prog_egrep='grep -E'
3297 else ac_cv_prog_egrep='egrep'
3300 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3301 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3302 EGREP=$ac_cv_prog_egrep
3305 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3306 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3307 if test "${ac_cv_header_stdc+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 cat >conftest.$ac_ext <<_ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3329 rm -f conftest.$ac_objext
3330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3331 (eval $ac_compile) 2>conftest.er1
3333 grep -v '^ *+' conftest.er1 >conftest.err
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } &&
3338 { ac_try='test -z "$ac_c_werror_flag"
3339 || test ! -s conftest.err'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 ac_cv_header_stdc=yes
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3356 ac_cv_header_stdc=no
3358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3360 if test $ac_cv_header_stdc = yes; then
3361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3362 cat >conftest.$ac_ext <<_ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3372 $EGREP "memchr" >/dev/null 2>&1; then
3375 ac_cv_header_stdc=no
3381 if test $ac_cv_header_stdc = yes; then
3382 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3383 cat >conftest.$ac_ext <<_ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3393 $EGREP "free" >/dev/null 2>&1; then
3396 ac_cv_header_stdc=no
3402 if test $ac_cv_header_stdc = yes; then
3403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3404 if test "$cross_compiling" = yes; then
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3414 #if ((' ' & 0x0FF) == 0x020)
3415 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3416 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3418 # define ISLOWER(c) \
3419 (('a' <= (c) && (c) <= 'i') \
3420 || ('j' <= (c) && (c) <= 'r') \
3421 || ('s' <= (c) && (c) <= 'z'))
3422 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3425 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3430 for (i = 0; i < 256; i++)
3431 if (XOR (islower (i), ISLOWER (i))
3432 || toupper (i) != TOUPPER (i))
3437 rm -f conftest$ac_exeext
3438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3439 (eval $ac_link) 2>&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3450 echo "$as_me: program exited with status $ac_status" >&5
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3455 ac_cv_header_stdc=no
3457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3461 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3462 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3463 if test $ac_cv_header_stdc = yes; then
3465 cat >>confdefs.h <<\_ACEOF
3466 #define STDC_HEADERS 1
3471 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3481 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3482 inttypes.h stdint.h unistd.h
3484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3485 echo "$as_me:$LINENO: checking for $ac_header" >&5
3486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 $ac_includes_default
3498 #include <$ac_header>
3500 rm -f conftest.$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502 (eval $ac_compile) 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -z "$ac_c_werror_flag"
3510 || test ! -s conftest.err'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 eval "$as_ac_Header=yes"
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 eval "$as_ac_Header=no"
3529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3534 cat >>confdefs.h <<_ACEOF
3535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3544 if test "$ac_cv_prog_cc_stdc" != no; then
3547 U=_ ANSI2KNR=./ansi2knr
3549 # Ensure some checks needed by ansi2knr itself.
3552 for ac_header in string.h
3554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3556 echo "$as_me:$LINENO: checking for $ac_header" >&5
3557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3564 # Is the header compilable?
3565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3567 cat >conftest.$ac_ext <<_ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573 $ac_includes_default
3574 #include <$ac_header>
3576 rm -f conftest.$ac_objext
3577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3578 (eval $ac_compile) 2>conftest.er1
3580 grep -v '^ *+' conftest.er1 >conftest.err
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try='test -z "$ac_c_werror_flag"
3586 || test ! -s conftest.err'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; } &&
3592 { ac_try='test -s conftest.$ac_objext'
3593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; }; then
3598 ac_header_compiler=yes
3600 echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 ac_header_compiler=no
3605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3607 echo "${ECHO_T}$ac_header_compiler" >&6
3609 # Is the header present?
3610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3612 cat >conftest.$ac_ext <<_ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 #include <$ac_header>
3620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } >/dev/null; then
3628 if test -s conftest.err; then
3629 ac_cpp_err=$ac_c_preproc_warn_flag
3630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3637 if test -z "$ac_cpp_err"; then
3638 ac_header_preproc=yes
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3643 ac_header_preproc=no
3645 rm -f conftest.err conftest.$ac_ext
3646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3647 echo "${ECHO_T}$ac_header_preproc" >&6
3649 # So? What about this header?
3650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3656 ac_header_preproc=yes
3659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3673 ## ------------------------------------------ ##
3674 ## Report this to the AC_PACKAGE_NAME lists. ##
3675 ## ------------------------------------------ ##
3678 sed "s/^/$as_me: WARNING: /" >&2
3681 echo "$as_me:$LINENO: checking for $ac_header" >&5
3682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 eval "$as_ac_Header=\$ac_header_preproc"
3688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3693 cat >>confdefs.h <<_ACEOF
3694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3702 if test "x$U" != "x"; then
3703 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3704 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3705 { (exit 1); exit 1; }; }
3707 echo "$as_me:$LINENO: checking for inline" >&5
3708 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3709 if test "${ac_cv_c_inline+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 for ac_kw in inline __inline__ __inline; do
3714 cat >conftest.$ac_ext <<_ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3722 static $ac_kw foo_t static_foo () {return 0; }
3723 $ac_kw foo_t foo () {return 0; }
3727 rm -f conftest.$ac_objext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3729 (eval $ac_compile) 2>conftest.er1
3731 grep -v '^ *+' conftest.er1 >conftest.err
3733 cat conftest.err >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } &&
3736 { ac_try='test -z "$ac_c_werror_flag"
3737 || test ! -s conftest.err'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; } &&
3743 { ac_try='test -s conftest.$ac_objext'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3749 ac_cv_c_inline=$ac_kw; break
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3759 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3760 echo "${ECHO_T}$ac_cv_c_inline" >&6
3763 case $ac_cv_c_inline in
3766 case $ac_cv_c_inline in
3768 *) ac_val=$ac_cv_c_inline;;
3770 cat >>confdefs.h <<_ACEOF
3772 #define inline $ac_val
3778 # Find a good install program. We prefer a C program (faster),
3779 # so one script is as good as another. But avoid the broken or
3780 # incompatible versions:
3781 # SysV /etc/install, /usr/sbin/install
3782 # SunOS /usr/etc/install
3783 # IRIX /sbin/install
3785 # AmigaOS /C/install, which installs bootblocks on floppy discs
3786 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3787 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3788 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3789 # OS/2's system install, which has a completely different semantic
3790 # ./install, which can be erroneously created by make from ./install.sh.
3791 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3792 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3793 if test -z "$INSTALL"; then
3794 if test "${ac_cv_path_install+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 test -z "$as_dir" && as_dir=.
3802 # Account for people who put trailing slashes in PATH elements.
3804 ./ | .// | /cC/* | \
3805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3806 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3809 # OSF1 and SCO ODT 3.0 have their own names for install.
3810 # Don't use installbsd from OSF since it installs stuff as root
3812 for ac_prog in ginstall scoinst install; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3815 if test $ac_prog = install &&
3816 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3817 # AIX install. It has an incompatible calling convention.
3819 elif test $ac_prog = install &&
3820 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3821 # program-specific install script used by HP pwplus--don't use.
3824 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3836 if test "${ac_cv_path_install+set}" = set; then
3837 INSTALL=$ac_cv_path_install
3839 # As a last resort, use the slow shell script. We don't cache a
3840 # path for INSTALL within a source directory, because that will
3841 # break other packages using the cache if that directory is
3842 # removed, or if the path is relative.
3843 INSTALL=$ac_install_sh
3846 echo "$as_me:$LINENO: result: $INSTALL" >&5
3847 echo "${ECHO_T}$INSTALL" >&6
3849 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3850 # It thinks the first close brace ends the variable substitution.
3851 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3853 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3855 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3857 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3858 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3859 if test "${ac_cv_header_stdc+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 cat >conftest.$ac_ext <<_ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3881 rm -f conftest.$ac_objext
3882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3883 (eval $ac_compile) 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_c_werror_flag"
3891 || test ! -s conftest.err'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; } &&
3897 { ac_try='test -s conftest.$ac_objext'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3903 ac_cv_header_stdc=yes
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908 ac_cv_header_stdc=no
3910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3912 if test $ac_cv_header_stdc = yes; then
3913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3914 cat >conftest.$ac_ext <<_ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "memchr" >/dev/null 2>&1; then
3927 ac_cv_header_stdc=no
3933 if test $ac_cv_header_stdc = yes; then
3934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945 $EGREP "free" >/dev/null 2>&1; then
3948 ac_cv_header_stdc=no
3954 if test $ac_cv_header_stdc = yes; then
3955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3956 if test "$cross_compiling" = yes; then
3959 cat >conftest.$ac_ext <<_ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3966 #if ((' ' & 0x0FF) == 0x020)
3967 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3968 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3970 # define ISLOWER(c) \
3971 (('a' <= (c) && (c) <= 'i') \
3972 || ('j' <= (c) && (c) <= 'r') \
3973 || ('s' <= (c) && (c) <= 'z'))
3974 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3977 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3982 for (i = 0; i < 256; i++)
3983 if (XOR (islower (i), ISLOWER (i))
3984 || toupper (i) != TOUPPER (i))
3989 rm -f conftest$ac_exeext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3991 (eval $ac_link) 2>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4002 echo "$as_me: program exited with status $ac_status" >&5
4003 echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4007 ac_cv_header_stdc=no
4009 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4013 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4014 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4015 if test $ac_cv_header_stdc = yes; then
4017 cat >>confdefs.h <<\_ACEOF
4018 #define STDC_HEADERS 1
4027 for ac_header in unistd.h locale.h termios.h sys/ioctl.h
4029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4031 echo "$as_me:$LINENO: checking for $ac_header" >&5
4032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4039 # Is the header compilable?
4040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4042 cat >conftest.$ac_ext <<_ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 $ac_includes_default
4049 #include <$ac_header>
4051 rm -f conftest.$ac_objext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053 (eval $ac_compile) 2>conftest.er1
4055 grep -v '^ *+' conftest.er1 >conftest.err
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try='test -z "$ac_c_werror_flag"
4061 || test ! -s conftest.err'
4062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; } &&
4067 { ac_try='test -s conftest.$ac_objext'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; }; then
4073 ac_header_compiler=yes
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4078 ac_header_compiler=no
4080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4082 echo "${ECHO_T}$ac_header_compiler" >&6
4084 # Is the header present?
4085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4087 cat >conftest.$ac_ext <<_ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4093 #include <$ac_header>
4095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4098 grep -v '^ *+' conftest.er1 >conftest.err
4100 cat conftest.err >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } >/dev/null; then
4103 if test -s conftest.err; then
4104 ac_cpp_err=$ac_c_preproc_warn_flag
4105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4112 if test -z "$ac_cpp_err"; then
4113 ac_header_preproc=yes
4115 echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4118 ac_header_preproc=no
4120 rm -f conftest.err conftest.$ac_ext
4121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4122 echo "${ECHO_T}$ac_header_preproc" >&6
4124 # So? What about this header?
4125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4131 ac_header_preproc=yes
4134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4148 ## ------------------------------------------ ##
4149 ## Report this to the AC_PACKAGE_NAME lists. ##
4150 ## ------------------------------------------ ##
4153 sed "s/^/$as_me: WARNING: /" >&2
4156 echo "$as_me:$LINENO: checking for $ac_header" >&5
4157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 eval "$as_ac_Header=\$ac_header_preproc"
4163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4168 cat >>confdefs.h <<_ACEOF
4169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4176 if test "${ac_cv_header_stdarg_h+set}" = set; then
4177 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4178 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4179 if test "${ac_cv_header_stdarg_h+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4183 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4185 # Is the header compilable?
4186 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
4187 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
4188 cat >conftest.$ac_ext <<_ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4194 $ac_includes_default
4197 rm -f conftest.$ac_objext
4198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4199 (eval $ac_compile) 2>conftest.er1
4201 grep -v '^ *+' conftest.er1 >conftest.err
4203 cat conftest.err >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } &&
4206 { ac_try='test -z "$ac_c_werror_flag"
4207 || test ! -s conftest.err'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; } &&
4213 { ac_try='test -s conftest.$ac_objext'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; }; then
4219 ac_header_compiler=yes
4221 echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4224 ac_header_compiler=no
4226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4228 echo "${ECHO_T}$ac_header_compiler" >&6
4230 # Is the header present?
4231 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
4232 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
4233 cat >conftest.$ac_ext <<_ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4244 grep -v '^ *+' conftest.er1 >conftest.err
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } >/dev/null; then
4249 if test -s conftest.err; then
4250 ac_cpp_err=$ac_c_preproc_warn_flag
4251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4258 if test -z "$ac_cpp_err"; then
4259 ac_header_preproc=yes
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4264 ac_header_preproc=no
4266 rm -f conftest.err conftest.$ac_ext
4267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4268 echo "${ECHO_T}$ac_header_preproc" >&6
4270 # So? What about this header?
4271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4273 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
4274 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4275 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
4276 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
4277 ac_header_preproc=yes
4280 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
4281 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
4282 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
4283 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
4284 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
4285 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
4286 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
4287 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
4288 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
4289 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
4290 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
4291 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
4294 ## ------------------------------------------ ##
4295 ## Report this to the AC_PACKAGE_NAME lists. ##
4296 ## ------------------------------------------ ##
4299 sed "s/^/$as_me: WARNING: /" >&2
4302 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4303 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4304 if test "${ac_cv_header_stdarg_h+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 ac_cv_header_stdarg_h=$ac_header_preproc
4309 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4310 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4313 if test $ac_cv_header_stdarg_h = yes; then
4315 cat >>confdefs.h <<\_ACEOF
4316 #define HAVE_STDARG_H 1
4320 { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5
4321 echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;}
4322 { (exit 1); exit 1; }; }
4326 echo "$as_me:$LINENO: checking for working strcoll" >&5
4327 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4328 if test "${ac_cv_func_strcoll_works+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 if test "$cross_compiling" = yes; then
4332 ac_cv_func_strcoll_works=no
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 $ac_includes_default
4344 exit (strcoll ("abc", "def") >= 0 ||
4345 strcoll ("ABC", "DEF") >= 0 ||
4346 strcoll ("123", "456") >= 0)
4351 rm -f conftest$ac_exeext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4353 (eval $ac_link) 2>&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 ac_cv_func_strcoll_works=yes
4364 echo "$as_me: program exited with status $ac_status" >&5
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4369 ac_cv_func_strcoll_works=no
4371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4374 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4375 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4376 if test $ac_cv_func_strcoll_works = yes; then
4378 cat >>confdefs.h <<\_ACEOF
4379 #define HAVE_STRCOLL 1
4385 for ac_func in setlocale
4387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4388 echo "$as_me:$LINENO: checking for $ac_func" >&5
4389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4390 if eval "test \"\${$as_ac_var+set}\" = set"; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 cat >conftest.$ac_ext <<_ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4401 #define $ac_func innocuous_$ac_func
4403 /* System header to define __stub macros and hopefully few prototypes,
4404 which can conflict with char $ac_func (); below.
4405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4406 <limits.h> exists even on freestanding compilers. */
4409 # include <limits.h>
4411 # include <assert.h>
4416 /* Override any gcc2 internal prototype to avoid an error. */
4421 /* We use char because int might match the return type of a gcc2
4422 builtin and then its argument prototype would still apply. */
4424 /* The GNU C library defines this for functions which it implements
4425 to always fail with ENOSYS. Some functions are actually named
4426 something starting with __ and the normal name is an alias. */
4427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4430 char (*f) () = $ac_func;
4439 return f != $ac_func;
4444 rm -f conftest.$ac_objext conftest$ac_exeext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4446 (eval $ac_link) 2>conftest.er1
4448 grep -v '^ *+' conftest.er1 >conftest.err
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try='test -z "$ac_c_werror_flag"
4454 || test ! -s conftest.err'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try='test -s conftest$ac_exeext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 eval "$as_ac_var=yes"
4468 echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4471 eval "$as_ac_var=no"
4473 rm -f conftest.err conftest.$ac_objext \
4474 conftest$ac_exeext conftest.$ac_ext
4476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4478 if test `eval echo '${'$as_ac_var'}'` = yes; then
4479 cat >>confdefs.h <<_ACEOF
4480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4488 if test "${ac_cv_header_wchar_h+set}" = set; then
4489 echo "$as_me:$LINENO: checking for wchar.h" >&5
4490 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
4491 if test "${ac_cv_header_wchar_h+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
4495 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
4497 # Is the header compilable?
4498 echo "$as_me:$LINENO: checking wchar.h usability" >&5
4499 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
4500 cat >conftest.$ac_ext <<_ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 $ac_includes_default
4509 rm -f conftest.$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>conftest.er1
4513 grep -v '^ *+' conftest.er1 >conftest.err
4515 cat conftest.err >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } &&
4518 { ac_try='test -z "$ac_c_werror_flag"
4519 || test ! -s conftest.err'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; } &&
4525 { ac_try='test -s conftest.$ac_objext'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4531 ac_header_compiler=yes
4533 echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4536 ac_header_compiler=no
4538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4540 echo "${ECHO_T}$ac_header_compiler" >&6
4542 # Is the header present?
4543 echo "$as_me:$LINENO: checking wchar.h presence" >&5
4544 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
4545 cat >conftest.$ac_ext <<_ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4556 grep -v '^ *+' conftest.er1 >conftest.err
4558 cat conftest.err >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } >/dev/null; then
4561 if test -s conftest.err; then
4562 ac_cpp_err=$ac_c_preproc_warn_flag
4563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4570 if test -z "$ac_cpp_err"; then
4571 ac_header_preproc=yes
4573 echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4576 ac_header_preproc=no
4578 rm -f conftest.err conftest.$ac_ext
4579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4580 echo "${ECHO_T}$ac_header_preproc" >&6
4582 # So? What about this header?
4583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4585 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
4586 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4587 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
4588 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
4589 ac_header_preproc=yes
4592 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
4593 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
4594 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
4595 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
4596 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
4597 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
4598 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
4599 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
4600 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
4601 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
4602 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
4603 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
4606 ## ------------------------------------------ ##
4607 ## Report this to the AC_PACKAGE_NAME lists. ##
4608 ## ------------------------------------------ ##
4611 sed "s/^/$as_me: WARNING: /" >&2
4614 echo "$as_me:$LINENO: checking for wchar.h" >&5
4615 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
4616 if test "${ac_cv_header_wchar_h+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 ac_cv_header_wchar_h=$ac_header_preproc
4621 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
4622 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
4625 if test $ac_cv_header_wchar_h = yes; then
4629 cat >>confdefs.h <<\_ACEOF
4630 #define HAVE_WCHAR_H 1
4642 for ac_func in mbtowc wcwidth mbrtowc mbsinit
4644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4645 echo "$as_me:$LINENO: checking for $ac_func" >&5
4646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4647 if eval "test \"\${$as_ac_var+set}\" = set"; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 cat >conftest.$ac_ext <<_ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4658 #define $ac_func innocuous_$ac_func
4660 /* System header to define __stub macros and hopefully few prototypes,
4661 which can conflict with char $ac_func (); below.
4662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4663 <limits.h> exists even on freestanding compilers. */
4666 # include <limits.h>
4668 # include <assert.h>
4673 /* Override any gcc2 internal prototype to avoid an error. */
4678 /* We use char because int might match the return type of a gcc2
4679 builtin and then its argument prototype would still apply. */
4681 /* The GNU C library defines this for functions which it implements
4682 to always fail with ENOSYS. Some functions are actually named
4683 something starting with __ and the normal name is an alias. */
4684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4687 char (*f) () = $ac_func;
4696 return f != $ac_func;
4701 rm -f conftest.$ac_objext conftest$ac_exeext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4703 (eval $ac_link) 2>conftest.er1
4705 grep -v '^ *+' conftest.er1 >conftest.err
4707 cat conftest.err >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try='test -z "$ac_c_werror_flag"
4711 || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try='test -s conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 eval "$as_ac_var=yes"
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 eval "$as_ac_var=no"
4730 rm -f conftest.err conftest.$ac_objext \
4731 conftest$ac_exeext conftest.$ac_ext
4733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4735 if test `eval echo '${'$as_ac_var'}'` = yes; then
4736 cat >>confdefs.h <<_ACEOF
4737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4745 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
4746 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
4747 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 cat >conftest.$ac_ext <<_ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4756 $ac_includes_default
4761 char *p = (char *) wcwidth;
4768 rm -f conftest.$ac_objext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>conftest.er1
4772 grep -v '^ *+' conftest.er1 >conftest.err
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -z "$ac_c_werror_flag"
4778 || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try='test -s conftest.$ac_objext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_cv_have_decl_wcwidth=yes
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4795 ac_cv_have_decl_wcwidth=no
4797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4799 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
4800 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
4801 if test $ac_cv_have_decl_wcwidth = yes; then
4803 cat >>confdefs.h <<_ACEOF
4804 #define HAVE_DECL_WCWIDTH 1
4809 cat >>confdefs.h <<_ACEOF
4810 #define HAVE_DECL_WCWIDTH 0
4817 echo "$as_me:$LINENO: checking for wchar_t" >&5
4818 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4819 if test "${ac_cv_type_wchar_t+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 cat >conftest.$ac_ext <<_ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4828 $ac_includes_default
4834 if (sizeof (wchar_t))
4840 rm -f conftest.$ac_objext
4841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842 (eval $ac_compile) 2>conftest.er1
4844 grep -v '^ *+' conftest.er1 >conftest.err
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -z "$ac_c_werror_flag"
4850 || test ! -s conftest.err'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; } &&
4856 { ac_try='test -s conftest.$ac_objext'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4862 ac_cv_type_wchar_t=yes
4864 echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4867 ac_cv_type_wchar_t=no
4869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4871 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
4872 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
4873 if test $ac_cv_type_wchar_t = yes; then
4880 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
4881 ac_widec_possible=yes
4883 ac_widec_possible=no
4887 abook_cv_curses=/usr
4889 # Check whether --with-curses or --without-curses was given.
4890 if test "${with_curses+set}" = set; then
4891 withval="$with_curses"
4892 if test $withval != yes; then
4893 abook_cv_curses=$withval
4895 if test x$abook_cv_curses != x/usr; then
4896 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
4897 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
4901 echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
4902 echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6
4903 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 ac_check_lib_save_LIBS=$LIBS
4907 LIBS="-lncursesw $LIBS"
4908 cat >conftest.$ac_ext <<_ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4915 /* Override any gcc2 internal prototype to avoid an error. */
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -z "$ac_c_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try='test -s conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_cv_lib_ncursesw_initscr=yes
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 ac_cv_lib_ncursesw_initscr=no
4959 rm -f conftest.err conftest.$ac_objext \
4960 conftest$ac_exeext conftest.$ac_ext
4961 LIBS=$ac_check_lib_save_LIBS
4963 echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
4964 echo "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6
4965 if test $ac_cv_lib_ncursesw_initscr = yes; then
4966 LIBS="$LIBS -lncursesw"
4967 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
4968 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
4971 for ac_header in ncurses.h
4973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4975 echo "$as_me:$LINENO: checking for $ac_header" >&5
4976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4983 # Is the header compilable?
4984 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4985 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4986 cat >conftest.$ac_ext <<_ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 $ac_includes_default
4993 #include <$ac_header>
4995 rm -f conftest.$ac_objext
4996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4997 (eval $ac_compile) 2>conftest.er1
4999 grep -v '^ *+' conftest.er1 >conftest.err
5001 cat conftest.err >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } &&
5004 { ac_try='test -z "$ac_c_werror_flag"
5005 || test ! -s conftest.err'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; } &&
5011 { ac_try='test -s conftest.$ac_objext'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5017 ac_header_compiler=yes
5019 echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5022 ac_header_compiler=no
5024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5026 echo "${ECHO_T}$ac_header_compiler" >&6
5028 # Is the header present?
5029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5031 cat >conftest.$ac_ext <<_ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 #include <$ac_header>
5039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5042 grep -v '^ *+' conftest.er1 >conftest.err
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } >/dev/null; then
5047 if test -s conftest.err; then
5048 ac_cpp_err=$ac_c_preproc_warn_flag
5049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5056 if test -z "$ac_cpp_err"; then
5057 ac_header_preproc=yes
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5062 ac_header_preproc=no
5064 rm -f conftest.err conftest.$ac_ext
5065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5066 echo "${ECHO_T}$ac_header_preproc" >&6
5068 # So? What about this header?
5069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5075 ac_header_preproc=yes
5078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5092 ## ------------------------------------------ ##
5093 ## Report this to the AC_PACKAGE_NAME lists. ##
5094 ## ------------------------------------------ ##
5097 sed "s/^/$as_me: WARNING: /" >&2
5100 echo "$as_me:$LINENO: checking for $ac_header" >&5
5101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 eval "$as_ac_Header=\$ac_header_preproc"
5107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5112 cat >>confdefs.h <<_ACEOF
5113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5122 ac_widec_possible=no
5123 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
5124 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
5125 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 ac_check_lib_save_LIBS=$LIBS
5129 LIBS="-lncurses $LIBS"
5130 cat >conftest.$ac_ext <<_ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h. */
5137 /* Override any gcc2 internal prototype to avoid an error. */
5141 /* We use char because int might match the return type of a gcc2
5142 builtin and then its argument prototype would still apply. */
5152 rm -f conftest.$ac_objext conftest$ac_exeext
5153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5154 (eval $ac_link) 2>conftest.er1
5156 grep -v '^ *+' conftest.er1 >conftest.err
5158 cat conftest.err >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } &&
5161 { ac_try='test -z "$ac_c_werror_flag"
5162 || test ! -s conftest.err'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; } &&
5168 { ac_try='test -s conftest$ac_exeext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5174 ac_cv_lib_ncurses_initscr=yes
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 ac_cv_lib_ncurses_initscr=no
5181 rm -f conftest.err conftest.$ac_objext \
5182 conftest$ac_exeext conftest.$ac_ext
5183 LIBS=$ac_check_lib_save_LIBS
5185 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
5186 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
5187 if test $ac_cv_lib_ncurses_initscr = yes; then
5188 LIBS="$LIBS -lncurses"
5189 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
5190 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
5193 for ac_header in ncurses.h
5195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5197 echo "$as_me:$LINENO: checking for $ac_header" >&5
5198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5205 # Is the header compilable?
5206 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5208 cat >conftest.$ac_ext <<_ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 $ac_includes_default
5215 #include <$ac_header>
5217 rm -f conftest.$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 (eval $ac_compile) 2>conftest.er1
5221 grep -v '^ *+' conftest.er1 >conftest.err
5223 cat conftest.err >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try='test -z "$ac_c_werror_flag"
5227 || test ! -s conftest.err'
5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; } &&
5233 { ac_try='test -s conftest.$ac_objext'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 ac_header_compiler=yes
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5244 ac_header_compiler=no
5246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5248 echo "${ECHO_T}$ac_header_compiler" >&6
5250 # Is the header present?
5251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5253 cat >conftest.$ac_ext <<_ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5259 #include <$ac_header>
5261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5264 grep -v '^ *+' conftest.er1 >conftest.err
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } >/dev/null; then
5269 if test -s conftest.err; then
5270 ac_cpp_err=$ac_c_preproc_warn_flag
5271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5278 if test -z "$ac_cpp_err"; then
5279 ac_header_preproc=yes
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5284 ac_header_preproc=no
5286 rm -f conftest.err conftest.$ac_ext
5287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5288 echo "${ECHO_T}$ac_header_preproc" >&6
5290 # So? What about this header?
5291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5297 ac_header_preproc=yes
5300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5314 ## ------------------------------------------ ##
5315 ## Report this to the AC_PACKAGE_NAME lists. ##
5316 ## ------------------------------------------ ##
5319 sed "s/^/$as_me: WARNING: /" >&2
5322 echo "$as_me:$LINENO: checking for $ac_header" >&5
5323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 eval "$as_ac_Header=\$ac_header_preproc"
5329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5334 cat >>confdefs.h <<_ACEOF
5335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5344 echo "$as_me:$LINENO: checking for initscr" >&5
5345 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5346 if test "${ac_cv_func_initscr+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 cat >conftest.$ac_ext <<_ACEOF
5352 cat confdefs.h >>conftest.$ac_ext
5353 cat >>conftest.$ac_ext <<_ACEOF
5354 /* end confdefs.h. */
5355 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
5356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5357 #define initscr innocuous_initscr
5359 /* System header to define __stub macros and hopefully few prototypes,
5360 which can conflict with char initscr (); below.
5361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5362 <limits.h> exists even on freestanding compilers. */
5365 # include <limits.h>
5367 # include <assert.h>
5372 /* Override any gcc2 internal prototype to avoid an error. */
5377 /* We use char because int might match the return type of a gcc2
5378 builtin and then its argument prototype would still apply. */
5380 /* The GNU C library defines this for functions which it implements
5381 to always fail with ENOSYS. Some functions are actually named
5382 something starting with __ and the normal name is an alias. */
5383 #if defined (__stub_initscr) || defined (__stub___initscr)
5386 char (*f) () = initscr;
5395 return f != initscr;
5400 rm -f conftest.$ac_objext conftest$ac_exeext
5401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5402 (eval $ac_link) 2>conftest.er1
5404 grep -v '^ *+' conftest.er1 >conftest.err
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try='test -z "$ac_c_werror_flag"
5410 || test ! -s conftest.err'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; } &&
5416 { ac_try='test -s conftest$ac_exeext'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then
5422 ac_cv_func_initscr=yes
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5427 ac_cv_func_initscr=no
5429 rm -f conftest.err conftest.$ac_objext \
5430 conftest$ac_exeext conftest.$ac_ext
5432 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5433 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5434 if test $ac_cv_func_initscr = yes; then
5438 case $host_os in #(vi
5440 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5441 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5442 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 ac_check_lib_save_LIBS=$LIBS
5446 LIBS="-lmytinfo $LIBS"
5447 cat >conftest.$ac_ext <<_ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5454 /* Override any gcc2 internal prototype to avoid an error. */
5458 /* We use char because int might match the return type of a gcc2
5459 builtin and then its argument prototype would still apply. */
5469 rm -f conftest.$ac_objext conftest$ac_exeext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5471 (eval $ac_link) 2>conftest.er1
5473 grep -v '^ *+' conftest.er1 >conftest.err
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest$ac_exeext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_cv_lib_mytinfo_tgoto=yes
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 ac_cv_lib_mytinfo_tgoto=no
5498 rm -f conftest.err conftest.$ac_objext \
5499 conftest$ac_exeext conftest.$ac_ext
5500 LIBS=$ac_check_lib_save_LIBS
5502 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5503 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5504 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5505 LIBS="-lmytinfo $LIBS"
5510 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5511 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5512 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 ac_check_lib_save_LIBS=$LIBS
5516 LIBS="-lcur_colr $LIBS"
5517 cat >conftest.$ac_ext <<_ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5524 /* Override any gcc2 internal prototype to avoid an error. */
5528 /* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5539 rm -f conftest.$ac_objext conftest$ac_exeext
5540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5541 (eval $ac_link) 2>conftest.er1
5543 grep -v '^ *+' conftest.er1 >conftest.err
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
5548 { ac_try='test -z "$ac_c_werror_flag"
5549 || test ! -s conftest.err'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try='test -s conftest$ac_exeext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 ac_cv_lib_cur_colr_initscr=yes
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5566 ac_cv_lib_cur_colr_initscr=no
5568 rm -f conftest.err conftest.$ac_objext \
5569 conftest$ac_exeext conftest.$ac_ext
5570 LIBS=$ac_check_lib_save_LIBS
5572 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5573 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5574 if test $ac_cv_lib_cur_colr_initscr = yes; then
5576 LIBS="-lcur_colr $LIBS"
5577 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5578 ac_cv_func_initscr=yes
5582 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5583 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5584 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 ac_check_lib_save_LIBS=$LIBS
5588 LIBS="-lHcurses $LIBS"
5589 cat >conftest.$ac_ext <<_ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5596 /* Override any gcc2 internal prototype to avoid an error. */
5600 /* We use char because int might match the return type of a gcc2
5601 builtin and then its argument prototype would still apply. */
5611 rm -f conftest.$ac_objext conftest$ac_exeext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613 (eval $ac_link) 2>conftest.er1
5615 grep -v '^ *+' conftest.er1 >conftest.err
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try='test -z "$ac_c_werror_flag"
5621 || test ! -s conftest.err'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; } &&
5627 { ac_try='test -s conftest$ac_exeext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_cv_lib_Hcurses_initscr=yes
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5638 ac_cv_lib_Hcurses_initscr=no
5640 rm -f conftest.err conftest.$ac_objext \
5641 conftest$ac_exeext conftest.$ac_ext
5642 LIBS=$ac_check_lib_save_LIBS
5644 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5645 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5646 if test $ac_cv_lib_Hcurses_initscr = yes; then
5648 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5649 LIBS="-lHcurses $LIBS"
5650 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5651 ac_cv_func_initscr=yes
5658 linux*) # Suse Linux does not follow /usr/lib convention
5663 if test ".$With5lib" != ".no" ; then
5664 if test -d /usr/5lib ; then
5666 CPPFLAGS="$CPPFLAGS -I/usr/5include"
5667 LIBS="$LIBS -L/usr/5lib"
5671 if test ".$ac_cv_func_initscr" != .yes ; then
5672 cf_save_LIBS="$LIBS"
5676 # Check for library containing tgoto. Do this before curses library
5677 # because it may be needed to link the test-case for initscr.
5678 echo "$as_me:$LINENO: checking for tgoto" >&5
5679 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5680 if test "${ac_cv_func_tgoto+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 cat >conftest.$ac_ext <<_ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5689 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
5690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5691 #define tgoto innocuous_tgoto
5693 /* System header to define __stub macros and hopefully few prototypes,
5694 which can conflict with char tgoto (); below.
5695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5696 <limits.h> exists even on freestanding compilers. */
5699 # include <limits.h>
5701 # include <assert.h>
5706 /* Override any gcc2 internal prototype to avoid an error. */
5711 /* We use char because int might match the return type of a gcc2
5712 builtin and then its argument prototype would still apply. */
5714 /* The GNU C library defines this for functions which it implements
5715 to always fail with ENOSYS. Some functions are actually named
5716 something starting with __ and the normal name is an alias. */
5717 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5720 char (*f) () = tgoto;
5734 rm -f conftest.$ac_objext conftest$ac_exeext
5735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5736 (eval $ac_link) 2>conftest.er1
5738 grep -v '^ *+' conftest.er1 >conftest.err
5740 cat conftest.err >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } &&
5743 { ac_try='test -z "$ac_c_werror_flag"
5744 || test ! -s conftest.err'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; } &&
5750 { ac_try='test -s conftest$ac_exeext'
5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; }; then
5756 ac_cv_func_tgoto=yes
5758 echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5763 rm -f conftest.err conftest.$ac_objext \
5764 conftest$ac_exeext conftest.$ac_ext
5766 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5767 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5768 if test $ac_cv_func_tgoto = yes; then
5769 cf_term_lib=predefined
5772 for cf_term_lib in termcap termlib unknown
5774 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5775 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5776 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5777 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 ac_check_lib_save_LIBS=$LIBS
5781 LIBS="-l$cf_term_lib $LIBS"
5782 cat >conftest.$ac_ext <<_ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5789 /* Override any gcc2 internal prototype to avoid an error. */
5793 /* We use char because int might match the return type of a gcc2
5794 builtin and then its argument prototype would still apply. */
5804 rm -f conftest.$ac_objext conftest$ac_exeext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806 (eval $ac_link) 2>conftest.er1
5808 grep -v '^ *+' conftest.er1 >conftest.err
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -z "$ac_c_werror_flag"
5814 || test ! -s conftest.err'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; } &&
5820 { ac_try='test -s conftest$ac_exeext'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 eval "$as_ac_Lib=yes"
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 eval "$as_ac_Lib=no"
5833 rm -f conftest.err conftest.$ac_objext \
5834 conftest$ac_exeext conftest.$ac_ext
5835 LIBS=$ac_check_lib_save_LIBS
5837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5838 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5839 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5848 # Check for library containing initscr
5849 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5850 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5852 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5853 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5854 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5855 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 ac_check_lib_save_LIBS=$LIBS
5859 LIBS="-l$cf_curs_lib $LIBS"
5860 cat >conftest.$ac_ext <<_ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5867 /* Override any gcc2 internal prototype to avoid an error. */
5871 /* We use char because int might match the return type of a gcc2
5872 builtin and then its argument prototype would still apply. */
5882 rm -f conftest.$ac_objext conftest$ac_exeext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5884 (eval $ac_link) 2>conftest.er1
5886 grep -v '^ *+' conftest.er1 >conftest.err
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_c_werror_flag"
5892 || test ! -s conftest.err'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; } &&
5898 { ac_try='test -s conftest$ac_exeext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 eval "$as_ac_Lib=yes"
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5909 eval "$as_ac_Lib=no"
5911 rm -f conftest.err conftest.$ac_objext \
5912 conftest$ac_exeext conftest.$ac_ext
5913 LIBS=$ac_check_lib_save_LIBS
5915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5916 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5917 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5922 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5923 echo "$as_me: error: no curses library found" >&2;}
5924 { (exit 1); exit 1; }; }
5926 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5927 if test "$cf_term_lib" = unknown ; then
5928 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5929 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5930 cat >conftest.$ac_ext <<_ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 #include <${cf_cv_ncurses_header-curses.h}>
5945 rm -f conftest.$ac_objext conftest$ac_exeext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5947 (eval $ac_link) 2>conftest.er1
5949 grep -v '^ *+' conftest.er1 >conftest.err
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -z "$ac_c_werror_flag"
5955 || test ! -s conftest.err'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest$ac_exeext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5974 rm -f conftest.err conftest.$ac_objext \
5975 conftest$ac_exeext conftest.$ac_ext
5976 echo "$as_me:$LINENO: result: $cf_result" >&5
5977 echo "${ECHO_T}$cf_result" >&6
5978 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5979 echo "$as_me: error: Cannot link curses library" >&2;}
5980 { (exit 1); exit 1; }; }
5981 elif test "$cf_term_lib" != predefined ; then
5982 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5983 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5984 cat >conftest.$ac_ext <<_ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 #include <${cf_cv_ncurses_header-curses.h}>
5994 initscr(); tgoto((char *)0, 0, 0);
5999 rm -f conftest.$ac_objext conftest$ac_exeext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6001 (eval $ac_link) 2>conftest.er1
6003 grep -v '^ *+' conftest.er1 >conftest.err
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try='test -z "$ac_c_werror_flag"
6009 || test ! -s conftest.err'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; } &&
6015 { ac_try='test -s conftest$ac_exeext'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6027 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
6028 cat >conftest.$ac_ext <<_ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 #include <${cf_cv_ncurses_header-curses.h}>
6043 rm -f conftest.$ac_objext conftest$ac_exeext
6044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6045 (eval $ac_link) 2>conftest.er1
6047 grep -v '^ *+' conftest.er1 >conftest.err
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } &&
6052 { ac_try='test -z "$ac_c_werror_flag"
6053 || test ! -s conftest.err'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; } &&
6059 { ac_try='test -s conftest$ac_exeext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6072 rm -f conftest.err conftest.$ac_objext \
6073 conftest$ac_exeext conftest.$ac_ext
6076 rm -f conftest.err conftest.$ac_objext \
6077 conftest$ac_exeext conftest.$ac_ext
6078 echo "$as_me:$LINENO: result: $cf_result" >&5
6079 echo "${ECHO_T}$cf_result" >&6
6094 abook_cv_readline=/usr
6096 # Check whether --with-readline or --without-readline was given.
6097 if test "${with_readline+set}" = set; then
6098 withval="$with_readline"
6099 if test $withval != yes; then
6100 abook_cv_readline=$withval
6102 if test x$abook_cv_readline != x/usr; then
6103 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
6104 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
6109 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
6110 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
6111 if test "${ac_cv_lib_readline+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 for readline_lib in readline edit editline; do
6117 for termcap_lib in "" termcap curses ncurses; do
6118 if test -z "$termcap_lib"; then
6119 TRY_LIB="-l$readline_lib"
6121 TRY_LIB="-l$readline_lib -l$termcap_lib"
6123 LIBS="$ORIG_LIBS $TRY_LIB"
6124 cat >conftest.$ac_ext <<_ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6131 /* Override any gcc2 internal prototype to avoid an error. */
6135 /* We use char because int might match the return type of a gcc2
6136 builtin and then its argument prototype would still apply. */
6146 rm -f conftest.$ac_objext conftest$ac_exeext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6148 (eval $ac_link) 2>conftest.er1
6150 grep -v '^ *+' conftest.er1 >conftest.err
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try='test -z "$ac_c_werror_flag"
6156 || test ! -s conftest.err'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try='test -s conftest$ac_exeext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 ac_cv_lib_readline="$TRY_LIB"
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6174 rm -f conftest.err conftest.$ac_objext \
6175 conftest$ac_exeext conftest.$ac_ext
6176 if test -n "$ac_cv_lib_readline"; then
6180 if test -n "$ac_cv_lib_readline"; then
6184 if test -z "$ac_cv_lib_readline"; then
6185 ac_cv_lib_readline="no"
6190 echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
6191 echo "${ECHO_T}$ac_cv_lib_readline" >&6
6193 if test "$ac_cv_lib_readline" != "no"; then
6194 LIBS="$LIBS $ac_cv_lib_readline"
6196 cat >>confdefs.h <<\_ACEOF
6197 #define HAVE_LIBREADLINE 1
6202 for ac_header in readline.h readline/readline.h
6204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6206 echo "$as_me:$LINENO: checking for $ac_header" >&5
6207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6214 # Is the header compilable?
6215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6217 cat >conftest.$ac_ext <<_ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 $ac_includes_default
6224 #include <$ac_header>
6226 rm -f conftest.$ac_objext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6228 (eval $ac_compile) 2>conftest.er1
6230 grep -v '^ *+' conftest.er1 >conftest.err
6232 cat conftest.err >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -z "$ac_c_werror_flag"
6236 || test ! -s conftest.err'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try='test -s conftest.$ac_objext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 ac_header_compiler=yes
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 ac_header_compiler=no
6255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6257 echo "${ECHO_T}$ac_header_compiler" >&6
6259 # Is the header present?
6260 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6262 cat >conftest.$ac_ext <<_ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6268 #include <$ac_header>
6270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6273 grep -v '^ *+' conftest.er1 >conftest.err
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } >/dev/null; then
6278 if test -s conftest.err; then
6279 ac_cpp_err=$ac_c_preproc_warn_flag
6280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6287 if test -z "$ac_cpp_err"; then
6288 ac_header_preproc=yes
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6293 ac_header_preproc=no
6295 rm -f conftest.err conftest.$ac_ext
6296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6297 echo "${ECHO_T}$ac_header_preproc" >&6
6299 # So? What about this header?
6300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6306 ac_header_preproc=yes
6309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6323 ## ------------------------------------------ ##
6324 ## Report this to the AC_PACKAGE_NAME lists. ##
6325 ## ------------------------------------------ ##
6328 sed "s/^/$as_me: WARNING: /" >&2
6331 echo "$as_me:$LINENO: checking for $ac_header" >&5
6332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 eval "$as_ac_Header=\$ac_header_preproc"
6338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6343 cat >>confdefs.h <<_ACEOF
6344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6351 echo "$as_me:$LINENO: checking whether readline supports history" >&5
6352 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
6353 if test "${ac_cv_lib_readline_history+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 ac_cv_lib_readline_history="no"
6358 cat >conftest.$ac_ext <<_ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6365 /* Override any gcc2 internal prototype to avoid an error. */
6369 /* We use char because int might match the return type of a gcc2
6370 builtin and then its argument prototype would still apply. */
6371 char add_history ();
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6382 (eval $ac_link) 2>conftest.er1
6384 grep -v '^ *+' conftest.er1 >conftest.err
6386 cat conftest.err >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } &&
6389 { ac_try='test -z "$ac_c_werror_flag"
6390 || test ! -s conftest.err'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; } &&
6396 { ac_try='test -s conftest$ac_exeext'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }; then
6402 ac_cv_lib_readline_history="yes"
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6408 rm -f conftest.err conftest.$ac_objext \
6409 conftest$ac_exeext conftest.$ac_ext
6412 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
6413 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6
6414 if test "$ac_cv_lib_readline_history" = "yes"; then
6416 cat >>confdefs.h <<\_ACEOF
6417 #define HAVE_READLINE_HISTORY 1
6422 for ac_header in history.h readline/history.h
6424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6426 echo "$as_me:$LINENO: checking for $ac_header" >&5
6427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6434 # Is the header compilable?
6435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6437 cat >conftest.$ac_ext <<_ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 $ac_includes_default
6444 #include <$ac_header>
6446 rm -f conftest.$ac_objext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448 (eval $ac_compile) 2>conftest.er1
6450 grep -v '^ *+' conftest.er1 >conftest.err
6452 cat conftest.err >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } &&
6455 { ac_try='test -z "$ac_c_werror_flag"
6456 || test ! -s conftest.err'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; } &&
6462 { ac_try='test -s conftest.$ac_objext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 ac_header_compiler=yes
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 ac_header_compiler=no
6475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6477 echo "${ECHO_T}$ac_header_compiler" >&6
6479 # Is the header present?
6480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6482 cat >conftest.$ac_ext <<_ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488 #include <$ac_header>
6490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6493 grep -v '^ *+' conftest.er1 >conftest.err
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } >/dev/null; then
6498 if test -s conftest.err; then
6499 ac_cpp_err=$ac_c_preproc_warn_flag
6500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6507 if test -z "$ac_cpp_err"; then
6508 ac_header_preproc=yes
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6513 ac_header_preproc=no
6515 rm -f conftest.err conftest.$ac_ext
6516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6517 echo "${ECHO_T}$ac_header_preproc" >&6
6519 # So? What about this header?
6520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6526 ac_header_preproc=yes
6529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6533 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6535 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6536 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6539 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6543 ## ------------------------------------------ ##
6544 ## Report this to the AC_PACKAGE_NAME lists. ##
6545 ## ------------------------------------------ ##
6548 sed "s/^/$as_me: WARNING: /" >&2
6551 echo "$as_me:$LINENO: checking for $ac_header" >&5
6552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 eval "$as_ac_Header=\$ac_header_preproc"
6558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6563 cat >>confdefs.h <<_ACEOF
6564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6576 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
6577 { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5
6578 echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;}
6579 { (exit 1); exit 1; }; }
6583 if test x$ac_widec_possible = xyes; then
6585 cat >>confdefs.h <<\_ACEOF
6586 #define HANDLE_MULTIBYTE 1
6592 for ac_func in resizeterm
6594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6595 echo "$as_me:$LINENO: checking for $ac_func" >&5
6596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6597 if eval "test \"\${$as_ac_var+set}\" = set"; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 cat >conftest.$ac_ext <<_ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6608 #define $ac_func innocuous_$ac_func
6610 /* System header to define __stub macros and hopefully few prototypes,
6611 which can conflict with char $ac_func (); below.
6612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6613 <limits.h> exists even on freestanding compilers. */
6616 # include <limits.h>
6618 # include <assert.h>
6623 /* Override any gcc2 internal prototype to avoid an error. */
6628 /* We use char because int might match the return type of a gcc2
6629 builtin and then its argument prototype would still apply. */
6631 /* The GNU C library defines this for functions which it implements
6632 to always fail with ENOSYS. Some functions are actually named
6633 something starting with __ and the normal name is an alias. */
6634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6637 char (*f) () = $ac_func;
6646 return f != $ac_func;
6651 rm -f conftest.$ac_objext conftest$ac_exeext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6653 (eval $ac_link) 2>conftest.er1
6655 grep -v '^ *+' conftest.er1 >conftest.err
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try='test -z "$ac_c_werror_flag"
6661 || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest$ac_exeext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 eval "$as_ac_var=yes"
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 eval "$as_ac_var=no"
6680 rm -f conftest.err conftest.$ac_objext \
6681 conftest$ac_exeext conftest.$ac_ext
6683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6685 if test `eval echo '${'$as_ac_var'}'` = yes; then
6686 cat >>confdefs.h <<_ACEOF
6687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6696 for ac_func in snprintf vsnprintf
6698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6699 echo "$as_me:$LINENO: checking for $ac_func" >&5
6700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6701 if eval "test \"\${$as_ac_var+set}\" = set"; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 cat >conftest.$ac_ext <<_ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6712 #define $ac_func innocuous_$ac_func
6714 /* System header to define __stub macros and hopefully few prototypes,
6715 which can conflict with char $ac_func (); below.
6716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6717 <limits.h> exists even on freestanding compilers. */
6720 # include <limits.h>
6722 # include <assert.h>
6727 /* Override any gcc2 internal prototype to avoid an error. */
6732 /* We use char because int might match the return type of a gcc2
6733 builtin and then its argument prototype would still apply. */
6735 /* The GNU C library defines this for functions which it implements
6736 to always fail with ENOSYS. Some functions are actually named
6737 something starting with __ and the normal name is an alias. */
6738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6741 char (*f) () = $ac_func;
6750 return f != $ac_func;
6755 rm -f conftest.$ac_objext conftest$ac_exeext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6757 (eval $ac_link) 2>conftest.er1
6759 grep -v '^ *+' conftest.er1 >conftest.err
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -z "$ac_c_werror_flag"
6765 || test ! -s conftest.err'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } &&
6771 { ac_try='test -s conftest$ac_exeext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 eval "$as_ac_var=yes"
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 eval "$as_ac_var=no"
6784 rm -f conftest.err conftest.$ac_objext \
6785 conftest$ac_exeext conftest.$ac_ext
6787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6789 if test `eval echo '${'$as_ac_var'}'` = yes; then
6790 cat >>confdefs.h <<_ACEOF
6791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6798 # Check whether --enable-debug or --disable-debug was given.
6799 if test "${enable_debug+set}" = set; then
6800 enableval="$enable_debug"
6801 case "${enableval}" in
6804 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
6805 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
6806 { (exit 1); exit 1; }; } ;;
6812 if test x$debug = xtrue; then
6813 CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
6817 if test x$GCC = xyes; then
6818 CFLAGS="-Wall $CFLAGS"
6821 ac_config_files="$ac_config_files Makefile abook.spec"
6822 cat >confcache <<\_ACEOF
6823 # This file is a shell script that caches the results of configure
6824 # tests run on this system so they can be shared between configure
6825 # scripts and configure runs, see configure's option --config-cache.
6826 # It is not useful on other systems. If it contains results you don't
6827 # want to keep, you may remove or edit it.
6829 # config.status only pays attention to the cache file if you give it
6830 # the --recheck option to rerun configure.
6832 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6833 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6838 # The following way of writing the cache mishandles newlines in values,
6839 # but we know of no workaround that is simple, portable, and efficient.
6840 # So, don't put newlines in cache variables' values.
6841 # Ultrix sh set writes to stderr and can't be redirected directly,
6842 # and sets the high bit in the cache file unless we assign to the vars.
6845 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6847 # `set' does not quote correctly, so add quotes (double-quote
6848 # substitution turns \\\\ into \\, and sed turns \\ into \).
6851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6854 # `set' quotes correctly as required by POSIX, so do not add quotes.
6856 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6863 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6865 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6867 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6868 if test -w $cache_file; then
6869 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6870 cat confcache >$cache_file
6872 echo "not updating unwritable cache $cache_file"
6877 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6878 # Let make expand exec_prefix.
6879 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6881 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6882 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6883 # trailing colons and then remove the whole line if VPATH becomes empty
6884 # (actually we leave an empty line to preserve line numbers).
6885 if test "x$srcdir" = x.; then
6886 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6887 s/:*\$(srcdir):*/:/;
6888 s/:*\${srcdir}:*/:/;
6890 s/^\([^=]*=[ ]*\):*/\1/;
6896 DEFS=-DHAVE_CONFIG_H
6900 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6901 # 1. Remove the extension, and $U if already installed.
6902 ac_i=`echo "$ac_i" |
6903 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6905 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6906 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6910 LTLIBOBJS=$ac_ltlibobjs
6913 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6914 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6915 Usually this means the macro was only invoked conditionally." >&5
6916 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6917 Usually this means the macro was only invoked conditionally." >&2;}
6918 { (exit 1); exit 1; }; }
6920 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6921 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6922 Usually this means the macro was only invoked conditionally." >&5
6923 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6924 Usually this means the macro was only invoked conditionally." >&2;}
6925 { (exit 1); exit 1; }; }
6928 : ${CONFIG_STATUS=./config.status}
6929 ac_clean_files_save=$ac_clean_files
6930 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6931 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6932 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6933 cat >$CONFIG_STATUS <<_ACEOF
6935 # Generated by $as_me.
6936 # Run this file to recreate the current configuration.
6937 # Compiler output produced by configure, useful for debugging
6938 # configure, is in config.log if it exists.
6943 SHELL=\${CONFIG_SHELL-$SHELL}
6946 cat >>$CONFIG_STATUS <<\_ACEOF
6947 ## --------------------- ##
6948 ## M4sh Initialization. ##
6949 ## --------------------- ##
6951 # Be Bourne compatible
6952 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6955 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6956 # is contrary to our usage. Disable this feature.
6957 alias -g '${1+"$@"}'='"$@"'
6958 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6961 DUALCASE=1; export DUALCASE # for MKS sh
6963 # Support unset when possible.
6964 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6971 # Work around bugs in pre-3.0 UWIN ksh.
6972 $as_unset ENV MAIL MAILPATH
6979 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6980 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6981 LC_TELEPHONE LC_TIME
6983 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6984 eval $as_var=C; export $as_var
6990 # Required to use basename.
6991 if expr a : '\(a\)' >/dev/null 2>&1; then
6997 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6998 as_basename=basename
7004 # Name of the executable.
7005 as_me=`$as_basename "$0" ||
7006 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7007 X"$0" : 'X\(//\)$' \| \
7008 X"$0" : 'X\(/\)$' \| \
7009 . : '\(.\)' 2>/dev/null ||
7011 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7012 /^X\/\(\/\/\)$/{ s//\1/; q; }
7013 /^X\/\(\/\).*/{ s//\1/; q; }
7017 # PATH needs CR, and LINENO needs CR and PATH.
7018 # Avoid depending upon Character Ranges.
7019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7022 as_cr_digits='0123456789'
7023 as_cr_alnum=$as_cr_Letters$as_cr_digits
7025 # The user is always right.
7026 if test "${PATH_SEPARATOR+set}" != set; then
7027 echo "#! /bin/sh" >conf$$.sh
7028 echo "exit 0" >>conf$$.sh
7030 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7041 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7042 test "x$as_lineno_1" != "x$as_lineno_2" &&
7043 test "x$as_lineno_3" = "x$as_lineno_2" || {
7044 # Find who we are. Look in the path if we contain no path at all
7047 *[\\/]* ) as_myself=$0 ;;
7048 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 test -z "$as_dir" && as_dir=.
7053 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7058 # We did not find ourselves, most probably we were run as `sh COMMAND'
7059 # in which case we are not to be found in the path.
7060 if test "x$as_myself" = x; then
7063 if test ! -f "$as_myself"; then
7064 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7065 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7066 { (exit 1); exit 1; }; }
7068 case $CONFIG_SHELL in
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7074 test -z "$as_dir" && as_dir=.
7075 for as_base in sh bash ksh sh5; do
7078 if ("$as_dir/$as_base" -c '
7081 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7082 test "x$as_lineno_1" != "x$as_lineno_2" &&
7083 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7084 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7085 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7086 CONFIG_SHELL=$as_dir/$as_base
7088 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7096 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7097 # uniformly replaced by the line number. The first 'sed' inserts a
7098 # line-number line before each line; the second 'sed' does the real
7099 # work. The second script uses 'N' to pair each line-number line
7100 # with the numbered line, and appends trailing '-' during
7101 # substitution so that $LINENO is not a special case at line end.
7102 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7103 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7104 sed '=' <$as_myself |
7109 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7112 s,^['$as_cr_digits']*\n,,
7114 chmod +x $as_me.lineno ||
7115 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7116 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7117 { (exit 1); exit 1; }; }
7119 # Don't try to exec as it changes $[0], causing all sort of problems
7120 # (the dirname of $[0] is not the place where we might find the
7121 # original and so on. Autoconf is especially sensible to this).
7123 # Exit status is that of the last command.
7128 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7129 *c*,-n*) ECHO_N= ECHO_C='
7131 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7132 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7135 if expr a : '\(a\)' >/dev/null 2>&1; then
7141 rm -f conf$$ conf$$.exe conf$$.file
7143 if ln -s conf$$.file conf$$ 2>/dev/null; then
7144 # We could just check for DJGPP; but this test a) works b) is more generic
7145 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7146 if test -f conf$$.exe; then
7147 # Don't use ln at all; we don't have any links
7152 elif ln conf$$.file conf$$ 2>/dev/null; then
7157 rm -f conf$$ conf$$.exe conf$$.file
7159 if mkdir -p . 2>/dev/null; then
7162 test -d ./-p && rmdir ./-p
7166 as_executable_p="test -f"
7168 # Sed expression to map a string onto a valid CPP name.
7169 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7171 # Sed expression to map a string onto a valid variable name.
7172 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7176 # We need space, tab and new line, in precisely that order.
7186 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7187 # report actual input values of CONFIG_FILES etc. instead of their
7188 # values after options handling. Logging --version etc. is OK.
7192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7193 ## Running $as_me. ##
7198 This file was extended by $as_me, which was
7199 generated by GNU Autoconf 2.59. Invocation command line was
7201 CONFIG_FILES = $CONFIG_FILES
7202 CONFIG_HEADERS = $CONFIG_HEADERS
7203 CONFIG_LINKS = $CONFIG_LINKS
7204 CONFIG_COMMANDS = $CONFIG_COMMANDS
7208 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7212 # Files that config.status was made for.
7213 if test -n "$ac_config_files"; then
7214 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7217 if test -n "$ac_config_headers"; then
7218 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7221 if test -n "$ac_config_links"; then
7222 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7225 if test -n "$ac_config_commands"; then
7226 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7229 cat >>$CONFIG_STATUS <<\_ACEOF
7232 \`$as_me' instantiates files from templates according to the
7233 current configuration.
7235 Usage: $0 [OPTIONS] [FILE]...
7237 -h, --help print this help, then exit
7238 -V, --version print version number, then exit
7239 -q, --quiet do not print progress messages
7240 -d, --debug don't remove temporary files
7241 --recheck update $as_me by reconfiguring in the same conditions
7242 --file=FILE[:TEMPLATE]
7243 instantiate the configuration file FILE
7244 --header=FILE[:TEMPLATE]
7245 instantiate the configuration header FILE
7247 Configuration files:
7250 Configuration headers:
7253 Configuration commands:
7256 Report bugs to <bug-autoconf@gnu.org>."
7259 cat >>$CONFIG_STATUS <<_ACEOF
7262 configured by $0, generated by GNU Autoconf 2.59,
7263 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7265 Copyright (C) 2003 Free Software Foundation, Inc.
7266 This config.status script is free software; the Free Software Foundation
7267 gives unlimited permission to copy, distribute and modify it."
7272 cat >>$CONFIG_STATUS <<\_ACEOF
7273 # If no file are specified by the user, then we need to provide default
7274 # value. By we need to know if files were specified by the user.
7280 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7281 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7289 *) # This is not an option, so the user has probably given explicit
7292 ac_need_defaults=false;;
7296 # Handling of the options.
7298 cat >>$CONFIG_STATUS <<\_ACEOF
7299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7301 --version | --vers* | -V )
7302 echo "$ac_cs_version"; exit 0 ;;
7304 # Conflict between --help and --header
7305 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7306 Try \`$0 --help' for more information." >&5
7307 echo "$as_me: error: ambiguous option: $1
7308 Try \`$0 --help' for more information." >&2;}
7309 { (exit 1); exit 1; }; };;
7310 --help | --hel | -h )
7311 echo "$ac_cs_usage"; exit 0 ;;
7312 --debug | --d* | -d )
7314 --file | --fil | --fi | --f )
7316 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7317 ac_need_defaults=false;;
7318 --header | --heade | --head | --hea )
7320 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7321 ac_need_defaults=false;;
7322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7323 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7327 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7328 Try \`$0 --help' for more information." >&5
7329 echo "$as_me: error: unrecognized option: $1
7330 Try \`$0 --help' for more information." >&2;}
7331 { (exit 1); exit 1; }; } ;;
7333 *) ac_config_targets="$ac_config_targets $1" ;;
7339 ac_configure_extra_args=
7341 if $ac_cs_silent; then
7343 ac_configure_extra_args="$ac_configure_extra_args --silent"
7347 cat >>$CONFIG_STATUS <<_ACEOF
7348 if \$ac_cs_recheck; then
7349 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7350 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7355 cat >>$CONFIG_STATUS <<_ACEOF
7357 # INIT-COMMANDS section.
7360 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7366 cat >>$CONFIG_STATUS <<\_ACEOF
7367 for ac_config_target in $ac_config_targets
7369 case "$ac_config_target" in
7370 # Handling of arguments.
7371 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7372 "abook.spec" ) CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
7373 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7374 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7375 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7376 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7377 { (exit 1); exit 1; }; };;
7381 # If the user did not use the arguments to specify the items to instantiate,
7382 # then the envvar interface is used. Set only those that are not.
7383 # We use the long form for the default assignment because of an extremely
7384 # bizarre bug on SunOS 4.1.3.
7385 if $ac_need_defaults; then
7386 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7387 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7388 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7391 # Have a temporary directory for convenience. Make it in the build tree
7392 # simply because there is no reason to put it here, and in addition,
7393 # creating and moving files from /tmp can sometimes cause problems.
7394 # Create a temporary directory, and hook for its removal unless debugging.
7397 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7398 trap '{ (exit 1); exit 1; }' 1 2 13 15
7401 # Create a (secure) tmp directory for tmp files.
7404 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7405 test -n "$tmp" && test -d "$tmp"
7408 tmp=./confstat$$-$RANDOM
7409 (umask 077 && mkdir $tmp)
7412 echo "$me: cannot create a temporary directory in ." >&2
7413 { (exit 1); exit 1; }
7418 cat >>$CONFIG_STATUS <<_ACEOF
7421 # CONFIG_FILES section.
7424 # No need to generate the scripts if there are no CONFIG_FILES.
7425 # This happens for instance when ./config.status config.h
7426 if test -n "\$CONFIG_FILES"; then
7427 # Protect against being on the right side of a sed subst in config.status.
7428 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7429 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7430 s,@SHELL@,$SHELL,;t t
7431 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7432 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7433 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7434 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7435 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7436 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7437 s,@exec_prefix@,$exec_prefix,;t t
7438 s,@prefix@,$prefix,;t t
7439 s,@program_transform_name@,$program_transform_name,;t t
7440 s,@bindir@,$bindir,;t t
7441 s,@sbindir@,$sbindir,;t t
7442 s,@libexecdir@,$libexecdir,;t t
7443 s,@datadir@,$datadir,;t t
7444 s,@sysconfdir@,$sysconfdir,;t t
7445 s,@sharedstatedir@,$sharedstatedir,;t t
7446 s,@localstatedir@,$localstatedir,;t t
7447 s,@libdir@,$libdir,;t t
7448 s,@includedir@,$includedir,;t t
7449 s,@oldincludedir@,$oldincludedir,;t t
7450 s,@infodir@,$infodir,;t t
7451 s,@mandir@,$mandir,;t t
7452 s,@build_alias@,$build_alias,;t t
7453 s,@host_alias@,$host_alias,;t t
7454 s,@target_alias@,$target_alias,;t t
7456 s,@ECHO_C@,$ECHO_C,;t t
7457 s,@ECHO_N@,$ECHO_N,;t t
7458 s,@ECHO_T@,$ECHO_T,;t t
7460 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7461 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7462 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7463 s,@CYGPATH_W@,$CYGPATH_W,;t t
7464 s,@PACKAGE@,$PACKAGE,;t t
7465 s,@VERSION@,$VERSION,;t t
7466 s,@ACLOCAL@,$ACLOCAL,;t t
7467 s,@AUTOCONF@,$AUTOCONF,;t t
7468 s,@AUTOMAKE@,$AUTOMAKE,;t t
7469 s,@AUTOHEADER@,$AUTOHEADER,;t t
7470 s,@MAKEINFO@,$MAKEINFO,;t t
7471 s,@install_sh@,$install_sh,;t t
7472 s,@STRIP@,$STRIP,;t t
7473 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7474 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7475 s,@mkdir_p@,$mkdir_p,;t t
7477 s,@SET_MAKE@,$SET_MAKE,;t t
7478 s,@am__leading_dot@,$am__leading_dot,;t t
7479 s,@AMTAR@,$AMTAR,;t t
7480 s,@am__tar@,$am__tar,;t t
7481 s,@am__untar@,$am__untar,;t t
7482 s,@build@,$build,;t t
7483 s,@build_cpu@,$build_cpu,;t t
7484 s,@build_vendor@,$build_vendor,;t t
7485 s,@build_os@,$build_os,;t t
7487 s,@host_cpu@,$host_cpu,;t t
7488 s,@host_vendor@,$host_vendor,;t t
7489 s,@host_os@,$host_os,;t t
7491 s,@CFLAGS@,$CFLAGS,;t t
7492 s,@LDFLAGS@,$LDFLAGS,;t t
7493 s,@CPPFLAGS@,$CPPFLAGS,;t t
7494 s,@ac_ct_CC@,$ac_ct_CC,;t t
7495 s,@EXEEXT@,$EXEEXT,;t t
7496 s,@OBJEXT@,$OBJEXT,;t t
7497 s,@DEPDIR@,$DEPDIR,;t t
7498 s,@am__include@,$am__include,;t t
7499 s,@am__quote@,$am__quote,;t t
7500 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7501 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7502 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7503 s,@CCDEPMODE@,$CCDEPMODE,;t t
7504 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7505 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7507 s,@EGREP@,$EGREP,;t t
7509 s,@ANSI2KNR@,$ANSI2KNR,;t t
7510 s,@LIBOBJS@,$LIBOBJS,;t t
7511 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7516 cat >>$CONFIG_STATUS <<\_ACEOF
7517 # Split the substitutions into bite-sized pieces for seds with
7518 # small command number limits, like on Digital OSF/1 and HP-UX.
7520 ac_sed_frag=1 # Number of current file.
7521 ac_beg=1 # First line for current file.
7522 ac_end=$ac_max_sed_lines # Line after last line for current file.
7525 while $ac_more_lines; do
7526 if test $ac_beg -gt 1; then
7527 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7529 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7531 if test ! -s $tmp/subs.frag; then
7534 # The purpose of the label and of the branching condition is to
7535 # speed up the sed processing (if there are no `@' at all, there
7536 # is no need to browse any of the substitutions).
7537 # These are the two extra sed commands mentioned above.
7539 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7540 if test -z "$ac_sed_cmds"; then
7541 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7543 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7545 ac_sed_frag=`expr $ac_sed_frag + 1`
7547 ac_end=`expr $ac_end + $ac_max_sed_lines`
7550 if test -z "$ac_sed_cmds"; then
7553 fi # test -n "$CONFIG_FILES"
7556 cat >>$CONFIG_STATUS <<\_ACEOF
7557 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7558 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7560 - | *:- | *:-:* ) # input from stdin
7562 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7563 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7564 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7565 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7566 * ) ac_file_in=$ac_file.in ;;
7569 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7570 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7571 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7572 X"$ac_file" : 'X\(//\)[^/]' \| \
7573 X"$ac_file" : 'X\(//\)$' \| \
7574 X"$ac_file" : 'X\(/\)' \| \
7575 . : '\(.\)' 2>/dev/null ||
7577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7578 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7579 /^X\(\/\/\)$/{ s//\1/; q; }
7580 /^X\(\/\).*/{ s//\1/; q; }
7582 { if $as_mkdir_p; then
7587 while test ! -d "$as_dir"; do
7588 as_dirs="$as_dir $as_dirs"
7589 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7591 X"$as_dir" : 'X\(//\)[^/]' \| \
7592 X"$as_dir" : 'X\(//\)$' \| \
7593 X"$as_dir" : 'X\(/\)' \| \
7594 . : '\(.\)' 2>/dev/null ||
7596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7598 /^X\(\/\/\)$/{ s//\1/; q; }
7599 /^X\(\/\).*/{ s//\1/; q; }
7602 test ! -n "$as_dirs" || mkdir $as_dirs
7603 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7604 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7605 { (exit 1); exit 1; }; }; }
7609 if test "$ac_dir" != .; then
7610 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7611 # A "../" for each directory in $ac_dir_suffix.
7612 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7614 ac_dir_suffix= ac_top_builddir=
7618 .) # No --srcdir option. We are building in place.
7620 if test -z "$ac_top_builddir"; then
7623 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7625 [\\/]* | ?:[\\/]* ) # Absolute path.
7626 ac_srcdir=$srcdir$ac_dir_suffix;
7627 ac_top_srcdir=$srcdir ;;
7629 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7630 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7633 # Do not use `cd foo && pwd` to compute absolute paths, because
7634 # the directories may not exist.
7636 .) ac_abs_builddir="$ac_dir";;
7639 .) ac_abs_builddir=`pwd`;;
7640 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7641 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7644 case $ac_abs_builddir in
7645 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7647 case ${ac_top_builddir}. in
7648 .) ac_abs_top_builddir=$ac_abs_builddir;;
7649 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7650 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7653 case $ac_abs_builddir in
7654 .) ac_abs_srcdir=$ac_srcdir;;
7657 .) ac_abs_srcdir=$ac_abs_builddir;;
7658 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7659 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7662 case $ac_abs_builddir in
7663 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7665 case $ac_top_srcdir in
7666 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7667 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7668 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7674 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7675 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7678 if test x"$ac_file" != x-; then
7679 { echo "$as_me:$LINENO: creating $ac_file" >&5
7680 echo "$as_me: creating $ac_file" >&6;}
7683 # Let's still pretend it is `configure' which instantiates (i.e., don't
7684 # use $as_me), people would be surprised to read:
7685 # /* config.h. Generated by config.status. */
7686 if test x"$ac_file" = x-; then
7689 configure_input="$ac_file. "
7691 configure_input=$configure_input"Generated from `echo $ac_file_in |
7692 sed 's,.*/,,'` by configure."
7694 # First look for the input files in the build tree, otherwise in the
7696 ac_file_inputs=`IFS=:
7697 for f in $ac_file_in; do
7699 -) echo $tmp/stdin ;;
7701 # Absolute (can't be DOS-style, as IFS=:)
7702 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7703 echo "$as_me: error: cannot find input file: $f" >&2;}
7704 { (exit 1); exit 1; }; }
7707 if test -f "$f"; then
7710 elif test -f "$srcdir/$f"; then
7715 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7716 echo "$as_me: error: cannot find input file: $f" >&2;}
7717 { (exit 1); exit 1; }; }
7720 done` || { (exit 1); exit 1; }
7722 cat >>$CONFIG_STATUS <<_ACEOF
7726 cat >>$CONFIG_STATUS <<\_ACEOF
7728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7729 s,@configure_input@,$configure_input,;t t
7730 s,@srcdir@,$ac_srcdir,;t t
7731 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7732 s,@top_srcdir@,$ac_top_srcdir,;t t
7733 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7734 s,@builddir@,$ac_builddir,;t t
7735 s,@abs_builddir@,$ac_abs_builddir,;t t
7736 s,@top_builddir@,$ac_top_builddir,;t t
7737 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7738 s,@INSTALL@,$ac_INSTALL,;t t
7739 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7741 if test x"$ac_file" != x-; then
7742 mv $tmp/out $ac_file
7750 cat >>$CONFIG_STATUS <<\_ACEOF
7753 # CONFIG_HEADER section.
7756 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7757 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7759 # ac_d sets the value in "#define NAME VALUE" lines.
7760 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7761 ac_dB='[ ].*$,\1#\2'
7764 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7765 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7766 ac_uB='$,\1#\2define\3'
7770 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7771 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7773 - | *:- | *:-:* ) # input from stdin
7775 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7777 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7778 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7779 * ) ac_file_in=$ac_file.in ;;
7782 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7783 echo "$as_me: creating $ac_file" >&6;}
7785 # First look for the input files in the build tree, otherwise in the
7787 ac_file_inputs=`IFS=:
7788 for f in $ac_file_in; do
7790 -) echo $tmp/stdin ;;
7792 # Absolute (can't be DOS-style, as IFS=:)
7793 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7794 echo "$as_me: error: cannot find input file: $f" >&2;}
7795 { (exit 1); exit 1; }; }
7796 # Do quote $f, to prevent DOS paths from being IFS'd.
7799 if test -f "$f"; then
7802 elif test -f "$srcdir/$f"; then
7807 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7808 echo "$as_me: error: cannot find input file: $f" >&2;}
7809 { (exit 1); exit 1; }; }
7812 done` || { (exit 1); exit 1; }
7813 # Remove the trailing spaces.
7814 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7818 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7819 # `conftest.undefs', that substitutes the proper values into
7820 # config.h.in to produce config.h. The first handles `#define'
7821 # templates, and the second `#undef' templates.
7822 # And first: Protect against being on the right side of a sed subst in
7823 # config.status. Protect against being in an unquoted here document
7825 rm -f conftest.defines conftest.undefs
7826 # Using a here document instead of a string reduces the quoting nightmare.
7827 # Putting comments in sed scripts is not portable.
7829 # `end' is used to avoid that the second main sed command (meant for
7830 # 0-ary CPP macros) applies to n-ary macro definitions.
7831 # See the Autoconf documentation for `clear'.
7832 cat >confdef2sed.sed <<\_ACEOF
7837 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7839 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7842 # If some macros were called several times there might be several times
7843 # the same #defines, which is useless. Nevertheless, we may not want to
7844 # sort them, since we want the *last* AC-DEFINE to be honored.
7845 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7846 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7847 rm -f confdef2sed.sed
7849 # This sed command replaces #undef with comments. This is necessary, for
7850 # example, in the case of _POSIX_SOURCE, which is predefined and required
7851 # on some systems where configure will not decide to define it.
7852 cat >>conftest.undefs <<\_ACEOF
7853 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7856 # Break up conftest.defines because some shells have a limit on the size
7857 # of here documents, and old seds have small limits too (100 cmds).
7858 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7859 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7860 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7861 echo ' :' >>$CONFIG_STATUS
7863 while grep . conftest.defines >/dev/null
7865 # Write a limited-size here document to $tmp/defines.sed.
7866 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7867 # Speed up: don't consider the non `#define' lines.
7868 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7869 # Work around the forget-to-reset-the-flag bug.
7870 echo 't clr' >>$CONFIG_STATUS
7871 echo ': clr' >>$CONFIG_STATUS
7872 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7874 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7878 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7879 rm -f conftest.defines
7880 mv conftest.tail conftest.defines
7882 rm -f conftest.defines
7883 echo ' fi # grep' >>$CONFIG_STATUS
7884 echo >>$CONFIG_STATUS
7886 # Break up conftest.undefs because some shells have a limit on the size
7887 # of here documents, and old seds have small limits too (100 cmds).
7888 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7890 while grep . conftest.undefs >/dev/null
7892 # Write a limited-size here document to $tmp/undefs.sed.
7893 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7894 # Speed up: don't consider the non `#undef'
7895 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7896 # Work around the forget-to-reset-the-flag bug.
7897 echo 't clr' >>$CONFIG_STATUS
7898 echo ': clr' >>$CONFIG_STATUS
7899 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7901 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7905 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7906 rm -f conftest.undefs
7907 mv conftest.tail conftest.undefs
7909 rm -f conftest.undefs
7911 cat >>$CONFIG_STATUS <<\_ACEOF
7912 # Let's still pretend it is `configure' which instantiates (i.e., don't
7913 # use $as_me), people would be surprised to read:
7914 # /* config.h. Generated by config.status. */
7915 if test x"$ac_file" = x-; then
7916 echo "/* Generated by configure. */" >$tmp/config.h
7918 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7920 cat $tmp/in >>$tmp/config.h
7922 if test x"$ac_file" != x-; then
7923 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7924 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7925 echo "$as_me: $ac_file is unchanged" >&6;}
7927 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7928 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7929 X"$ac_file" : 'X\(//\)[^/]' \| \
7930 X"$ac_file" : 'X\(//\)$' \| \
7931 X"$ac_file" : 'X\(/\)' \| \
7932 . : '\(.\)' 2>/dev/null ||
7934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7935 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7936 /^X\(\/\/\)$/{ s//\1/; q; }
7937 /^X\(\/\).*/{ s//\1/; q; }
7939 { if $as_mkdir_p; then
7944 while test ! -d "$as_dir"; do
7945 as_dirs="$as_dir $as_dirs"
7946 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7948 X"$as_dir" : 'X\(//\)[^/]' \| \
7949 X"$as_dir" : 'X\(//\)$' \| \
7950 X"$as_dir" : 'X\(/\)' \| \
7951 . : '\(.\)' 2>/dev/null ||
7953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7954 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7955 /^X\(\/\/\)$/{ s//\1/; q; }
7956 /^X\(\/\).*/{ s//\1/; q; }
7959 test ! -n "$as_dirs" || mkdir $as_dirs
7960 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7961 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7962 { (exit 1); exit 1; }; }; }
7965 mv $tmp/config.h $ac_file
7971 # Compute $ac_file's index in $config_headers.
7973 for _am_header in $config_headers :; do
7975 $ac_file | $ac_file:* )
7978 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7981 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7982 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7983 X$ac_file : 'X\(//\)[^/]' \| \
7984 X$ac_file : 'X\(//\)$' \| \
7985 X$ac_file : 'X\(/\)' \| \
7986 . : '\(.\)' 2>/dev/null ||
7988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7990 /^X\(\/\/\)$/{ s//\1/; q; }
7991 /^X\(\/\).*/{ s//\1/; q; }
7992 s/.*/./; q'`/stamp-h$_am_stamp_count
7995 cat >>$CONFIG_STATUS <<\_ACEOF
7998 # CONFIG_COMMANDS section.
8000 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8001 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8002 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8003 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8004 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8005 X"$ac_dest" : 'X\(//\)[^/]' \| \
8006 X"$ac_dest" : 'X\(//\)$' \| \
8007 X"$ac_dest" : 'X\(/\)' \| \
8008 . : '\(.\)' 2>/dev/null ||
8010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8011 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8012 /^X\(\/\/\)$/{ s//\1/; q; }
8013 /^X\(\/\).*/{ s//\1/; q; }
8015 { if $as_mkdir_p; then
8020 while test ! -d "$as_dir"; do
8021 as_dirs="$as_dir $as_dirs"
8022 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8024 X"$as_dir" : 'X\(//\)[^/]' \| \
8025 X"$as_dir" : 'X\(//\)$' \| \
8026 X"$as_dir" : 'X\(/\)' \| \
8027 . : '\(.\)' 2>/dev/null ||
8029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8030 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8031 /^X\(\/\/\)$/{ s//\1/; q; }
8032 /^X\(\/\).*/{ s//\1/; q; }
8035 test ! -n "$as_dirs" || mkdir $as_dirs
8036 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8037 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8038 { (exit 1); exit 1; }; }; }
8042 if test "$ac_dir" != .; then
8043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8044 # A "../" for each directory in $ac_dir_suffix.
8045 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8047 ac_dir_suffix= ac_top_builddir=
8051 .) # No --srcdir option. We are building in place.
8053 if test -z "$ac_top_builddir"; then
8056 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8058 [\\/]* | ?:[\\/]* ) # Absolute path.
8059 ac_srcdir=$srcdir$ac_dir_suffix;
8060 ac_top_srcdir=$srcdir ;;
8062 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8063 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8066 # Do not use `cd foo && pwd` to compute absolute paths, because
8067 # the directories may not exist.
8069 .) ac_abs_builddir="$ac_dir";;
8072 .) ac_abs_builddir=`pwd`;;
8073 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8074 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8077 case $ac_abs_builddir in
8078 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8080 case ${ac_top_builddir}. in
8081 .) ac_abs_top_builddir=$ac_abs_builddir;;
8082 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8083 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8086 case $ac_abs_builddir in
8087 .) ac_abs_srcdir=$ac_srcdir;;
8090 .) ac_abs_srcdir=$ac_abs_builddir;;
8091 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8092 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8095 case $ac_abs_builddir in
8096 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8098 case $ac_top_srcdir in
8099 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8100 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8101 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8106 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8107 echo "$as_me: executing $ac_dest commands" >&6;}
8109 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8110 # Strip MF so we end up with the name of the file.
8111 mf=`echo "$mf" | sed -e 's/:.*$//'`
8112 # Check whether this is an Automake generated Makefile or not.
8113 # We used to match only the files named `Makefile.in', but
8114 # some people rename them; so instead we look at the file content.
8115 # Grep'ing the first line is not enough: some people post-process
8116 # each Makefile.in and add a new line on top of each file to say so.
8117 # So let's grep whole file.
8118 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8119 dirpart=`(dirname "$mf") 2>/dev/null ||
8120 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8121 X"$mf" : 'X\(//\)[^/]' \| \
8122 X"$mf" : 'X\(//\)$' \| \
8123 X"$mf" : 'X\(/\)' \| \
8124 . : '\(.\)' 2>/dev/null ||
8126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8128 /^X\(\/\/\)$/{ s//\1/; q; }
8129 /^X\(\/\).*/{ s//\1/; q; }
8134 # Extract the definition of DEPDIR, am__include, and am__quote
8135 # from the Makefile without running `make'.
8136 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8137 test -z "$DEPDIR" && continue
8138 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8139 test -z "am__include" && continue
8140 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8141 # When using ansi2knr, U may be empty or an underscore; expand it
8142 U=`sed -n 's/^U = //p' < "$mf"`
8143 # Find all dependency output files, they are included files with
8144 # $(DEPDIR) in their names. We invoke sed twice because it is the
8145 # simplest approach to changing $(DEPDIR) to its actual value in the
8147 for file in `sed -n "
8148 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8149 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8150 # Make sure the directory exists.
8151 test -f "$dirpart/$file" && continue
8152 fdir=`(dirname "$file") 2>/dev/null ||
8153 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8154 X"$file" : 'X\(//\)[^/]' \| \
8155 X"$file" : 'X\(//\)$' \| \
8156 X"$file" : 'X\(/\)' \| \
8157 . : '\(.\)' 2>/dev/null ||
8159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8161 /^X\(\/\/\)$/{ s//\1/; q; }
8162 /^X\(\/\).*/{ s//\1/; q; }
8164 { if $as_mkdir_p; then
8165 mkdir -p $dirpart/$fdir
8167 as_dir=$dirpart/$fdir
8169 while test ! -d "$as_dir"; do
8170 as_dirs="$as_dir $as_dirs"
8171 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8173 X"$as_dir" : 'X\(//\)[^/]' \| \
8174 X"$as_dir" : 'X\(//\)$' \| \
8175 X"$as_dir" : 'X\(/\)' \| \
8176 . : '\(.\)' 2>/dev/null ||
8178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8180 /^X\(\/\/\)$/{ s//\1/; q; }
8181 /^X\(\/\).*/{ s//\1/; q; }
8184 test ! -n "$as_dirs" || mkdir $as_dirs
8185 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8186 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8187 { (exit 1); exit 1; }; }; }
8189 # echo "creating $dirpart/$file"
8190 echo '# dummy' > "$dirpart/$file"
8198 cat >>$CONFIG_STATUS <<\_ACEOF
8200 { (exit 0); exit 0; }
8202 chmod +x $CONFIG_STATUS
8203 ac_clean_files=$ac_clean_files_save
8206 # configure is writing to config.log, and then calls config.status.
8207 # config.status does its own redirection, appending to config.log.
8208 # Unfortunately, on DOS this fails, as config.log is still kept open
8209 # by configure, so config.status won't be able to write to it; its
8210 # output is simply discarded. So we exec the FD to /dev/null,
8211 # effectively closing config.log, so it can be properly (re)opened and
8212 # appended to by config.status. When coming back to configure, we
8213 # need to make the FD available again.
8214 if test "$no_create" != yes; then
8216 ac_config_status_args=
8217 test "$silent" = yes &&
8218 ac_config_status_args="$ac_config_status_args --quiet"
8220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8223 # would make configure fail if this is the last instruction.
8224 $ac_cs_success || { (exit 1); exit 1; }