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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR LIBOBJS LTLIBOBJS'
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.8"
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 # Keeping the `.' argument allows $(mkdir_p) to be used without
1487 # argument. Indeed, we sometimes output rules like
1488 # $(mkdir_p) $(somedir)
1489 # where $(somedir) is conditionally defined.
1490 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1491 # expensive solution, as it forces Make to start a sub-shell.)
1492 mkdir_p='mkdir -p -- .'
1494 # On NextStep and OpenStep, the `mkdir' command does not
1495 # recognize any option. It will interpret all options as
1496 # directories to create, and then abort because `.' already
1498 for d in ./-p ./--version;
1500 test -d $d && rmdir $d
1502 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1503 if test -f "$ac_aux_dir/mkinstalldirs"; then
1504 mkdir_p='$(mkinstalldirs)'
1506 mkdir_p='$(install_sh) -d'
1510 for ac_prog in gawk mawk nawk awk
1512 # Extract the first word of "$ac_prog", so it can be a program name with args.
1513 set dummy $ac_prog; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_AWK+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1519 if test -n "$AWK"; then
1520 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529 ac_cv_prog_AWK="$ac_prog"
1530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 if test -n "$AWK"; then
1540 echo "$as_me:$LINENO: result: $AWK" >&5
1541 echo "${ECHO_T}$AWK" >&6
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1547 test -n "$AWK" && break
1550 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1551 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1552 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1553 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 cat >conftest.make <<\_ACEOF
1558 @echo 'ac_maketemp="$(MAKE)"'
1560 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1561 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1562 if test -n "$ac_maketemp"; then
1563 eval ac_cv_prog_make_${ac_make}_set=yes
1565 eval ac_cv_prog_make_${ac_make}_set=no
1569 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1570 echo "$as_me:$LINENO: result: yes" >&5
1571 echo "${ECHO_T}yes" >&6
1574 echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1576 SET_MAKE="MAKE=${MAKE-make}"
1579 rm -rf .tst 2>/dev/null
1580 mkdir .tst 2>/dev/null
1581 if test -d .tst; then
1586 rmdir .tst 2>/dev/null
1588 # test to see if srcdir already configured
1589 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1590 test -f $srcdir/config.status; then
1591 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1592 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1593 { (exit 1); exit 1; }; }
1596 # test whether we have cygpath
1597 if test -z "$CYGPATH_W"; then
1598 if (cygpath --version) >/dev/null 2>/dev/null; then
1599 CYGPATH_W='cygpath -w'
1606 # Define the identity of the package.
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE "$PACKAGE"
1616 cat >>confdefs.h <<_ACEOF
1617 #define VERSION "$VERSION"
1620 # Some tools Automake needs.
1622 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1625 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1628 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1631 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1634 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1637 AMTAR=${AMTAR-"${am_missing_run}tar"}
1639 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1641 # Installed binaries are usually stripped using `strip' when the user
1642 # run `make install-strip'. However `strip' might not be the right
1643 # tool to use in cross-compilation environments, therefore Automake
1644 # will honor the `STRIP' environment variable to overrule this program.
1645 if test "$cross_compiling" != no; then
1646 if test -n "$ac_tool_prefix"; then
1647 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1648 set dummy ${ac_tool_prefix}strip; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_STRIP+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 if test -n "$STRIP"; then
1655 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 STRIP=$ac_cv_prog_STRIP
1674 if test -n "$STRIP"; then
1675 echo "$as_me:$LINENO: result: $STRIP" >&5
1676 echo "${ECHO_T}$STRIP" >&6
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1683 if test -z "$ac_cv_prog_STRIP"; then
1685 # Extract the first word of "strip", so it can be a program name with args.
1686 set dummy strip; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$ac_ct_STRIP"; then
1693 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_ac_ct_STRIP="strip"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1712 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1713 if test -n "$ac_ct_STRIP"; then
1714 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1715 echo "${ECHO_T}$ac_ct_STRIP" >&6
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1723 STRIP="$ac_cv_prog_STRIP"
1727 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1729 # We need awk for the "check" target. The system "awk" is bad on
1734 ac_config_headers="$ac_config_headers config.h"
1737 # Make sure we can run config.sub.
1738 $ac_config_sub sun4 >/dev/null 2>&1 ||
1739 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1740 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1741 { (exit 1); exit 1; }; }
1743 echo "$as_me:$LINENO: checking build system type" >&5
1744 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1745 if test "${ac_cv_build+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 ac_cv_build_alias=$build_alias
1749 test -z "$ac_cv_build_alias" &&
1750 ac_cv_build_alias=`$ac_config_guess`
1751 test -z "$ac_cv_build_alias" &&
1752 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1753 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1754 { (exit 1); exit 1; }; }
1755 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1756 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1757 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1758 { (exit 1); exit 1; }; }
1761 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1762 echo "${ECHO_T}$ac_cv_build" >&6
1764 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1765 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1766 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1769 echo "$as_me:$LINENO: checking host system type" >&5
1770 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1771 if test "${ac_cv_host+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 ac_cv_host_alias=$host_alias
1775 test -z "$ac_cv_host_alias" &&
1776 ac_cv_host_alias=$ac_cv_build_alias
1777 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1778 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1779 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1780 { (exit 1); exit 1; }; }
1783 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1784 echo "${ECHO_T}$ac_cv_host" >&6
1786 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1787 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1788 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1793 ac_cpp='$CPP $CPPFLAGS'
1794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1797 if test -n "$ac_tool_prefix"; then
1798 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1799 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_CC+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 if test -n "$CC"; then
1806 ac_cv_prog_CC="$CC" # Let the user override the test.
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 if test -n "$CC"; then
1826 echo "$as_me:$LINENO: result: $CC" >&5
1827 echo "${ECHO_T}$CC" >&6
1829 echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1834 if test -z "$ac_cv_prog_CC"; then
1836 # Extract the first word of "gcc", so it can be a program name with args.
1837 set dummy gcc; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 if test -n "$ac_ct_CC"; then
1844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_ac_ct_CC="gcc"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1863 if test -n "$ac_ct_CC"; then
1864 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1865 echo "${ECHO_T}$ac_ct_CC" >&6
1867 echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1876 if test -z "$CC"; then
1877 if test -n "$ac_tool_prefix"; then
1878 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1879 set dummy ${ac_tool_prefix}cc; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC="$CC" # Let the user override the test.
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_CC="${ac_tool_prefix}cc"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 if test -n "$CC"; then
1906 echo "$as_me:$LINENO: result: $CC" >&5
1907 echo "${ECHO_T}$CC" >&6
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1914 if test -z "$ac_cv_prog_CC"; then
1916 # Extract the first word of "cc", so it can be a program name with args.
1917 set dummy cc; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 if test -n "$ac_ct_CC"; then
1924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 ac_cv_prog_ac_ct_CC="cc"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1943 if test -n "$ac_ct_CC"; then
1944 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1945 echo "${ECHO_T}$ac_ct_CC" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1957 if test -z "$CC"; then
1958 # Extract the first word of "cc", so it can be a program name with args.
1959 set dummy cc; ac_word=$2
1960 echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1962 if test "${ac_cv_prog_CC+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 if test -n "$CC"; then
1966 ac_cv_prog_CC="$CC" # Let the user override the test.
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1977 ac_prog_rejected=yes
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 if test $ac_prog_rejected = yes; then
1988 # We found a bogon in the path, so make sure we never use it.
1989 set dummy $ac_cv_prog_CC
1991 if test $# != 0; then
1992 # We chose a different compiler from the bogus one.
1993 # However, it has the same basename, so the bogon will be chosen
1994 # first if we set CC to just the basename; use the full file name.
1996 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2002 if test -n "$CC"; then
2003 echo "$as_me:$LINENO: result: $CC" >&5
2004 echo "${ECHO_T}$CC" >&6
2006 echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2011 if test -z "$CC"; then
2012 if test -n "$ac_tool_prefix"; then
2015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2017 echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2019 if test "${ac_cv_prog_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 if test -n "$CC"; then
2023 ac_cv_prog_CC="$CC" # Let the user override the test.
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 test -z "$as_dir" && as_dir=.
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 if test -n "$CC"; then
2043 echo "$as_me:$LINENO: result: $CC" >&5
2044 echo "${ECHO_T}$CC" >&6
2046 echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6
2050 test -n "$CC" && break
2053 if test -z "$CC"; then
2057 # Extract the first word of "$ac_prog", so it can be a program name with args.
2058 set dummy $ac_prog; ac_word=$2
2059 echo "$as_me:$LINENO: checking for $ac_word" >&5
2060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 if test -n "$ac_ct_CC"; then
2065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2074 ac_cv_prog_ac_ct_CC="$ac_prog"
2075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2084 if test -n "$ac_ct_CC"; then
2085 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2086 echo "${ECHO_T}$ac_ct_CC" >&6
2088 echo "$as_me:$LINENO: result: no" >&5
2089 echo "${ECHO_T}no" >&6
2092 test -n "$ac_ct_CC" && break
2101 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&2;}
2105 { (exit 1); exit 1; }; }
2107 # Provide some information about the compiler.
2108 echo "$as_me:$LINENO:" \
2109 "checking for C compiler version" >&5
2110 ac_compiler=`set X $ac_compile; echo $2`
2111 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2112 (eval $ac_compiler --version </dev/null >&5) 2>&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }
2116 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2117 (eval $ac_compiler -v </dev/null >&5) 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }
2121 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2122 (eval $ac_compiler -V </dev/null >&5) 2>&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2127 cat >conftest.$ac_ext <<_ACEOF
2130 cat confdefs.h >>conftest.$ac_ext
2131 cat >>conftest.$ac_ext <<_ACEOF
2132 /* end confdefs.h. */
2142 ac_clean_files_save=$ac_clean_files
2143 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2144 # Try to create an executable without -o first, disregard a.out.
2145 # It will help us diagnose broken compilers, and finding out an intuition
2147 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2148 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2149 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2150 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2151 (eval $ac_link_default) 2>&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; then
2155 # Find the output, starting from the most likely. This scheme is
2156 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2159 # Be careful to initialize this variable, since it used to be cached.
2160 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2162 # b.out is created by i960 compilers.
2163 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2165 test -f "$ac_file" || continue
2167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2170 # This is the source file.
2173 # We found the default executable, but exeext='' is most
2177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2178 # FIXME: I believe we export ac_cv_exeext for Libtool,
2179 # but it would be cool to find out if it's true. Does anybody
2180 # maintain Libtool? --akim.
2188 echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2191 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&5
2193 echo "$as_me: error: C compiler cannot create executables
2194 See \`config.log' for more details." >&2;}
2195 { (exit 77); exit 77; }; }
2198 ac_exeext=$ac_cv_exeext
2199 echo "$as_me:$LINENO: result: $ac_file" >&5
2200 echo "${ECHO_T}$ac_file" >&6
2202 # Check the compiler produces executables we can run. If not, either
2203 # the compiler is broken, or we cross compile.
2204 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2205 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2206 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2207 # If not cross compiling, check that we can run a simple program.
2208 if test "$cross_compiling" != yes; then
2209 if { ac_try='./$ac_file'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2217 if test "$cross_compiling" = maybe; then
2220 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2221 If you meant to cross compile, use \`--host'.
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: cannot run C compiled programs.
2224 If you meant to cross compile, use \`--host'.
2225 See \`config.log' for more details." >&2;}
2226 { (exit 1); exit 1; }; }
2230 echo "$as_me:$LINENO: result: yes" >&5
2231 echo "${ECHO_T}yes" >&6
2233 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2234 ac_clean_files=$ac_clean_files_save
2235 # Check the compiler produces executables we can run. If not, either
2236 # the compiler is broken, or we cross compile.
2237 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2238 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2239 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2240 echo "${ECHO_T}$cross_compiling" >&6
2242 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2243 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2245 (eval $ac_link) 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; then
2249 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2250 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2251 # work properly (i.e., refer to `conftest.exe'), while it won't with
2253 for ac_file in conftest.exe conftest conftest.*; do
2254 test -f "$ac_file" || continue
2256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2257 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2265 See \`config.log' for more details." >&5
2266 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2267 See \`config.log' for more details." >&2;}
2268 { (exit 1); exit 1; }; }
2271 rm -f conftest$ac_cv_exeext
2272 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2273 echo "${ECHO_T}$ac_cv_exeext" >&6
2275 rm -f conftest.$ac_ext
2276 EXEEXT=$ac_cv_exeext
2278 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2279 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2280 if test "${ac_cv_objext+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 cat >conftest.$ac_ext <<_ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2298 rm -f conftest.o conftest.obj
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300 (eval $ac_compile) 2>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; then
2304 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2312 echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2315 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2316 See \`config.log' for more details." >&5
2317 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2318 See \`config.log' for more details." >&2;}
2319 { (exit 1); exit 1; }; }
2322 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2324 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2325 echo "${ECHO_T}$ac_cv_objext" >&6
2326 OBJEXT=$ac_cv_objext
2328 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2329 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2330 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 cat >conftest.$ac_ext <<_ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353 (eval $ac_compile) 2>conftest.er1
2355 grep -v '^ *+' conftest.er1 >conftest.err
2357 cat conftest.err >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); } &&
2360 { ac_try='test -z "$ac_c_werror_flag"
2361 || test ! -s conftest.err'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2384 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2385 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2386 GCC=`test $ac_compiler_gnu = yes && echo yes`
2387 ac_test_CFLAGS=${CFLAGS+set}
2388 ac_save_CFLAGS=$CFLAGS
2390 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2391 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2392 if test "${ac_cv_prog_cc_g+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 cat >conftest.$ac_ext <<_ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2410 rm -f conftest.$ac_objext
2411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412 (eval $ac_compile) 2>conftest.er1
2414 grep -v '^ *+' conftest.er1 >conftest.err
2416 cat conftest.err >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -z "$ac_c_werror_flag"
2420 || test ! -s conftest.err'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; } &&
2426 { ac_try='test -s conftest.$ac_objext'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; }; then
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2441 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2442 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2443 if test "$ac_test_CFLAGS" = set; then
2444 CFLAGS=$ac_save_CFLAGS
2445 elif test $ac_cv_prog_cc_g = yes; then
2446 if test "$GCC" = yes; then
2452 if test "$GCC" = yes; then
2458 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2459 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2460 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 ac_cv_prog_cc_stdc=no
2465 cat >conftest.$ac_ext <<_ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2473 #include <sys/types.h>
2474 #include <sys/stat.h>
2475 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2476 struct buf { int x; };
2477 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2478 static char *e (p, i)
2484 static char *f (char * (*g) (char **, int), char **p, ...)
2489 s = g (p, va_arg (v,int));
2494 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2495 function prototypes and stuff, but not '\xHH' hex character constants.
2496 These don't provoke an error unfortunately, instead are silently treated
2497 as 'x'. The following induces an error, until -std1 is added to get
2498 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2499 array size at least. It's necessary to write '\x00'==0 to get something
2500 that's true only with -std1. */
2501 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2503 int test (int i, double x);
2504 struct s1 {int (*f) (int a);};
2505 struct s2 {int (*f) (double a);};
2506 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2512 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2517 # Don't try gcc -ansi; that turns off useful extensions and
2518 # breaks some systems' header files.
2519 # AIX -qlanglvl=ansi
2520 # Ultrix and OSF/1 -std1
2521 # HP-UX 10.20 and later -Ae
2522 # HP-UX older versions -Aa -D_HPUX_SOURCE
2523 # SVR4 -Xc -D__EXTENSIONS__
2524 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2526 CC="$ac_save_CC $ac_arg"
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>conftest.er1
2531 grep -v '^ *+' conftest.er1 >conftest.err
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try='test -z "$ac_c_werror_flag"
2537 || test ! -s conftest.err'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; } &&
2543 { ac_try='test -s conftest.$ac_objext'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2549 ac_cv_prog_cc_stdc=$ac_arg
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2556 rm -f conftest.err conftest.$ac_objext
2558 rm -f conftest.$ac_ext conftest.$ac_objext
2563 case "x$ac_cv_prog_cc_stdc" in
2565 echo "$as_me:$LINENO: result: none needed" >&5
2566 echo "${ECHO_T}none needed" >&6 ;;
2568 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2569 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2570 CC="$CC $ac_cv_prog_cc_stdc" ;;
2573 # Some people use a C++ compiler to compile C. Since we use `exit',
2574 # in C++ we need to declare it. In case someone uses the same compiler
2575 # for both compiling C and C++ we need to have the C++ compiler decide
2576 # the declaration of exit, since it's the most demanding environment.
2577 cat >conftest.$ac_ext <<_ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -z "$ac_c_werror_flag"
2592 || test ! -s conftest.err'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 for ac_declaration in \
2606 'extern "C" void std::exit (int) throw (); using std::exit;' \
2607 'extern "C" void std::exit (int); using std::exit;' \
2608 'extern "C" void exit (int) throw ();' \
2609 'extern "C" void exit (int);' \
2612 cat >conftest.$ac_ext <<_ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630 (eval $ac_compile) 2>conftest.er1
2632 grep -v '^ *+' conftest.er1 >conftest.err
2634 cat conftest.err >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -z "$ac_c_werror_flag"
2638 || test ! -s conftest.err'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; } &&
2644 { ac_try='test -s conftest.$ac_objext'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; }; then
2652 echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658 cat >conftest.$ac_ext <<_ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2673 rm -f conftest.$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675 (eval $ac_compile) 2>conftest.er1
2677 grep -v '^ *+' conftest.er1 >conftest.err
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } &&
2682 { ac_try='test -z "$ac_c_werror_flag"
2683 || test ! -s conftest.err'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; } &&
2689 { ac_try='test -s conftest.$ac_objext'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2704 if test -n "$ac_declaration"; then
2705 echo '#ifdef __cplusplus' >>confdefs.h
2706 echo $ac_declaration >>confdefs.h
2707 echo '#endif' >>confdefs.h
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2717 ac_cpp='$CPP $CPPFLAGS'
2718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721 DEPDIR="${am__leading_dot}deps"
2723 ac_config_commands="$ac_config_commands depfiles"
2726 am_make=${MAKE-make}
2727 cat > confinc << 'END'
2732 # If we don't find an include directive, just comment out the code.
2733 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2734 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2738 # First try GNU make style include.
2739 echo "include confinc" > confmf
2740 # We grep out `Entering directory' and `Leaving directory'
2741 # messages which can occur if `w' ends up in MAKEFLAGS.
2742 # In particular we don't look at `^make:' because GNU make might
2743 # be invoked under some other name (usually "gmake"), in which
2744 # case it prints its new name instead of `make'.
2745 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2750 # Now try BSD make style include.
2751 if test "$am__include" = "#"; then
2752 echo '.include "confinc"' > confmf
2753 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2754 am__include=.include
2761 echo "$as_me:$LINENO: result: $_am_result" >&5
2762 echo "${ECHO_T}$_am_result" >&6
2763 rm -f confinc confmf
2765 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2766 if test "${enable_dependency_tracking+set}" = set; then
2767 enableval="$enable_dependency_tracking"
2770 if test "x$enable_dependency_tracking" != xno; then
2771 am_depcomp="$ac_aux_dir/depcomp"
2776 if test "x$enable_dependency_tracking" != xno; then
2787 depcc="$CC" am_compiler_list=
2789 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2790 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2791 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2795 # We make a subdir and do the tests there. Otherwise we can end up
2796 # making bogus files that we don't know about and never remove. For
2797 # instance it was reported that on HP-UX the gcc test will end up
2798 # making a dummy file named `D' -- because `-MD' means `put the output
2801 # Copy depcomp to subdir because otherwise we won't find it if we're
2802 # using a relative directory.
2803 cp "$am_depcomp" conftest.dir
2805 # We will build objects and dependencies in a subdirectory because
2806 # it helps to detect inapplicable dependency modes. For instance
2807 # both Tru64's cc and ICC support -MD to output dependencies as a
2808 # side effect of compilation, but ICC will put the dependencies in
2809 # the current directory while Tru64 will put them in the object
2813 am_cv_CC_dependencies_compiler_type=none
2814 if test "$am_compiler_list" = ""; then
2815 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2817 for depmode in $am_compiler_list; do
2818 # Setup a source with many dependencies, because some compilers
2819 # like to wrap large dependency lists on column 80 (with \), and
2820 # we should not choose a depcomp mode which is confused by this.
2822 # We need to recreate these files for each test, as the compiler may
2823 # overwrite some of them when testing with obscure command lines.
2824 # This happens at least with the AIX C compiler.
2826 for i in 1 2 3 4 5 6; do
2827 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2828 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2829 # Solaris 8's {/usr,}/bin/sh.
2830 touch sub/conftst$i.h
2832 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2836 # after this tag, mechanisms are not by side-effect, so they'll
2837 # only be used when explicitly requested
2838 if test "x$enable_dependency_tracking" = xyes; then
2846 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2847 # mode. It turns out that the SunPro C++ compiler does not properly
2848 # handle `-M -o', and we need to detect this.
2849 if depmode=$depmode \
2850 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2851 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2852 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2853 >/dev/null 2>conftest.err &&
2854 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2855 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2856 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2857 # icc doesn't choke on unknown options, it will just issue warnings
2858 # or remarks (even with -Werror). So we grep stderr for any message
2859 # that says an option was ignored or not supported.
2860 # When given -MP, icc 7.0 and 7.1 complain thusly:
2861 # icc: Command line warning: ignoring option '-M'; no argument required
2862 # The diagnosis changed in icc 8.0:
2863 # icc: Command line remark: option '-MP' not supported
2864 if (grep 'ignoring option' conftest.err ||
2865 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2866 am_cv_CC_dependencies_compiler_type=$depmode
2875 am_cv_CC_dependencies_compiler_type=none
2879 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2880 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2881 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2886 test "x$enable_dependency_tracking" != xno \
2887 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2889 am__fastdepCC_FALSE='#'
2891 am__fastdepCC_TRUE='#'
2892 am__fastdepCC_FALSE=
2897 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2898 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2899 if test "${ac_cv_search_strerror+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 ac_func_search_save_LIBS=$LIBS
2903 ac_cv_search_strerror=no
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2911 /* Override any gcc2 internal prototype to avoid an error. */
2915 /* We use char because int might match the return type of a gcc2
2916 builtin and then its argument prototype would still apply. */
2926 rm -f conftest.$ac_objext conftest$ac_exeext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2928 (eval $ac_link) 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -z "$ac_c_werror_flag"
2936 || test ! -s conftest.err'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; } &&
2942 { ac_try='test -s conftest$ac_exeext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 ac_cv_search_strerror="none required"
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2954 rm -f conftest.err conftest.$ac_objext \
2955 conftest$ac_exeext conftest.$ac_ext
2956 if test "$ac_cv_search_strerror" = no; then
2957 for ac_lib in cposix; do
2958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2959 cat >conftest.$ac_ext <<_ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2966 /* Override any gcc2 internal prototype to avoid an error. */
2970 /* We use char because int might match the return type of a gcc2
2971 builtin and then its argument prototype would still apply. */
2981 rm -f conftest.$ac_objext conftest$ac_exeext
2982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2983 (eval $ac_link) 2>conftest.er1
2985 grep -v '^ *+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try='test -z "$ac_c_werror_flag"
2991 || test ! -s conftest.err'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; } &&
2997 { ac_try='test -s conftest$ac_exeext'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 ac_cv_search_strerror="-l$ac_lib"
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3010 rm -f conftest.err conftest.$ac_objext \
3011 conftest$ac_exeext conftest.$ac_ext
3014 LIBS=$ac_func_search_save_LIBS
3016 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3017 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3018 if test "$ac_cv_search_strerror" != no; then
3019 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3023 echo "$as_me:$LINENO: checking for function prototypes" >&5
3024 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3025 if test "$ac_cv_prog_cc_stdc" != no; then
3026 echo "$as_me:$LINENO: result: yes" >&5
3027 echo "${ECHO_T}yes" >&6
3029 cat >>confdefs.h <<\_ACEOF
3030 #define PROTOTYPES 1
3034 cat >>confdefs.h <<\_ACEOF
3035 #define __PROTOTYPES 1
3039 echo "$as_me:$LINENO: result: no" >&5
3040 echo "${ECHO_T}no" >&6
3044 ac_cpp='$CPP $CPPFLAGS'
3045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3049 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3050 # On Suns, sometimes $CPP names a directory.
3051 if test -n "$CPP" && test -d "$CPP"; then
3054 if test -z "$CPP"; then
3055 if test "${ac_cv_prog_CPP+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 # Double quotes because CPP needs to be expanded
3059 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3062 for ac_c_preproc_warn_flag in '' yes
3064 # Use a header file that comes with gcc, so configuring glibc
3065 # with a fresh cross-compiler works.
3066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3067 # <limits.h> exists even on freestanding compilers.
3068 # On the NeXT, cc -E runs the code through the compiler's parser,
3069 # not just through cpp. "Syntax error" is here to catch this case.
3070 cat >conftest.$ac_ext <<_ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3077 # include <limits.h>
3079 # include <assert.h>
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev/null; then
3091 if test -s conftest.err; then
3092 ac_cpp_err=$ac_c_preproc_warn_flag
3093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3100 if test -z "$ac_cpp_err"; then
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 # Broken: fails on valid input.
3109 rm -f conftest.err conftest.$ac_ext
3111 # OK, works on sane cases. Now check whether non-existent headers
3112 # can be detected and how.
3113 cat >conftest.$ac_ext <<_ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119 #include <ac_nonexistent.h>
3121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3124 grep -v '^ *+' conftest.er1 >conftest.err
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev/null; then
3129 if test -s conftest.err; then
3130 ac_cpp_err=$ac_c_preproc_warn_flag
3131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3138 if test -z "$ac_cpp_err"; then
3139 # Broken: success on invalid input.
3142 echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 # Passes both tests.
3149 rm -f conftest.err conftest.$ac_ext
3152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3153 rm -f conftest.err conftest.$ac_ext
3154 if $ac_preproc_ok; then
3166 echo "$as_me:$LINENO: result: $CPP" >&5
3167 echo "${ECHO_T}$CPP" >&6
3169 for ac_c_preproc_warn_flag in '' yes
3171 # Use a header file that comes with gcc, so configuring glibc
3172 # with a fresh cross-compiler works.
3173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3174 # <limits.h> exists even on freestanding compilers.
3175 # On the NeXT, cc -E runs the code through the compiler's parser,
3176 # not just through cpp. "Syntax error" is here to catch this case.
3177 cat >conftest.$ac_ext <<_ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3184 # include <limits.h>
3186 # include <assert.h>
3190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } >/dev/null; then
3198 if test -s conftest.err; then
3199 ac_cpp_err=$ac_c_preproc_warn_flag
3200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3207 if test -z "$ac_cpp_err"; then
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3213 # Broken: fails on valid input.
3216 rm -f conftest.err conftest.$ac_ext
3218 # OK, works on sane cases. Now check whether non-existent headers
3219 # can be detected and how.
3220 cat >conftest.$ac_ext <<_ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3226 #include <ac_nonexistent.h>
3228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3231 grep -v '^ *+' conftest.er1 >conftest.err
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } >/dev/null; then
3236 if test -s conftest.err; then
3237 ac_cpp_err=$ac_c_preproc_warn_flag
3238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3245 if test -z "$ac_cpp_err"; then
3246 # Broken: success on invalid input.
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 # Passes both tests.
3256 rm -f conftest.err conftest.$ac_ext
3259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3260 rm -f conftest.err conftest.$ac_ext
3261 if $ac_preproc_ok; then
3264 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3265 See \`config.log' for more details." >&5
3266 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3267 See \`config.log' for more details." >&2;}
3268 { (exit 1); exit 1; }; }
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3278 echo "$as_me:$LINENO: checking for egrep" >&5
3279 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3280 if test "${ac_cv_prog_egrep+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3284 then ac_cv_prog_egrep='grep -E'
3285 else ac_cv_prog_egrep='egrep'
3288 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3289 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3290 EGREP=$ac_cv_prog_egrep
3293 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3294 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3295 if test "${ac_cv_header_stdc+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3317 rm -f conftest.$ac_objext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } &&
3326 { ac_try='test -z "$ac_c_werror_flag"
3327 || test ! -s conftest.err'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; } &&
3333 { ac_try='test -s conftest.$ac_objext'
3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; }; then
3339 ac_cv_header_stdc=yes
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 ac_cv_header_stdc=no
3346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3348 if test $ac_cv_header_stdc = yes; then
3349 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3350 cat >conftest.$ac_ext <<_ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h. */
3359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3360 $EGREP "memchr" >/dev/null 2>&1; then
3363 ac_cv_header_stdc=no
3369 if test $ac_cv_header_stdc = yes; then
3370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3371 cat >conftest.$ac_ext <<_ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3381 $EGREP "free" >/dev/null 2>&1; then
3384 ac_cv_header_stdc=no
3390 if test $ac_cv_header_stdc = yes; then
3391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3392 if test "$cross_compiling" = yes; then
3395 cat >conftest.$ac_ext <<_ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3402 #if ((' ' & 0x0FF) == 0x020)
3403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3406 # define ISLOWER(c) \
3407 (('a' <= (c) && (c) <= 'i') \
3408 || ('j' <= (c) && (c) <= 'r') \
3409 || ('s' <= (c) && (c) <= 'z'))
3410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3418 for (i = 0; i < 256; i++)
3419 if (XOR (islower (i), ISLOWER (i))
3420 || toupper (i) != TOUPPER (i))
3425 rm -f conftest$ac_exeext
3426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3427 (eval $ac_link) 2>&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; }; then
3438 echo "$as_me: program exited with status $ac_status" >&5
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3443 ac_cv_header_stdc=no
3445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3449 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3450 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3451 if test $ac_cv_header_stdc = yes; then
3453 cat >>confdefs.h <<\_ACEOF
3454 #define STDC_HEADERS 1
3459 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3469 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3470 inttypes.h stdint.h unistd.h
3472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3473 echo "$as_me:$LINENO: checking for $ac_header" >&5
3474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 cat >conftest.$ac_ext <<_ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484 $ac_includes_default
3486 #include <$ac_header>
3488 rm -f conftest.$ac_objext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490 (eval $ac_compile) 2>conftest.er1
3492 grep -v '^ *+' conftest.er1 >conftest.err
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } &&
3497 { ac_try='test -z "$ac_c_werror_flag"
3498 || test ! -s conftest.err'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; } &&
3504 { ac_try='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 eval "$as_ac_Header=yes"
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3515 eval "$as_ac_Header=no"
3517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3522 cat >>confdefs.h <<_ACEOF
3523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3532 if test "$ac_cv_prog_cc_stdc" != no; then
3535 U=_ ANSI2KNR=./ansi2knr
3537 # Ensure some checks needed by ansi2knr itself.
3540 for ac_header in string.h
3542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3544 echo "$as_me:$LINENO: checking for $ac_header" >&5
3545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3552 # Is the header compilable?
3553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3555 cat >conftest.$ac_ext <<_ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 $ac_includes_default
3562 #include <$ac_header>
3564 rm -f conftest.$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3568 grep -v '^ *+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -z "$ac_c_werror_flag"
3574 || test ! -s conftest.err'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; } &&
3580 { ac_try='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_header_compiler=yes
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 ac_header_compiler=no
3593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3595 echo "${ECHO_T}$ac_header_compiler" >&6
3597 # Is the header present?
3598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3600 cat >conftest.$ac_ext <<_ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <$ac_header>
3608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3611 grep -v '^ *+' conftest.er1 >conftest.err
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } >/dev/null; then
3616 if test -s conftest.err; then
3617 ac_cpp_err=$ac_c_preproc_warn_flag
3618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3625 if test -z "$ac_cpp_err"; then
3626 ac_header_preproc=yes
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 ac_header_preproc=no
3633 rm -f conftest.err conftest.$ac_ext
3634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3635 echo "${ECHO_T}$ac_header_preproc" >&6
3637 # So? What about this header?
3638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3644 ac_header_preproc=yes
3647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3661 ## ------------------------------------------ ##
3662 ## Report this to the AC_PACKAGE_NAME lists. ##
3663 ## ------------------------------------------ ##
3666 sed "s/^/$as_me: WARNING: /" >&2
3669 echo "$as_me:$LINENO: checking for $ac_header" >&5
3670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 eval "$as_ac_Header=\$ac_header_preproc"
3676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3681 cat >>confdefs.h <<_ACEOF
3682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3690 if test "x$U" != "x"; then
3691 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3692 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3693 { (exit 1); exit 1; }; }
3695 echo "$as_me:$LINENO: checking for inline" >&5
3696 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3697 if test "${ac_cv_c_inline+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 for ac_kw in inline __inline__ __inline; do
3702 cat >conftest.$ac_ext <<_ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3710 static $ac_kw foo_t static_foo () {return 0; }
3711 $ac_kw foo_t foo () {return 0; }
3715 rm -f conftest.$ac_objext
3716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717 (eval $ac_compile) 2>conftest.er1
3719 grep -v '^ *+' conftest.er1 >conftest.err
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try='test -z "$ac_c_werror_flag"
3725 || test ! -s conftest.err'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; } &&
3731 { ac_try='test -s conftest.$ac_objext'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; }; then
3737 ac_cv_c_inline=$ac_kw; break
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3747 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3748 echo "${ECHO_T}$ac_cv_c_inline" >&6
3751 case $ac_cv_c_inline in
3754 case $ac_cv_c_inline in
3756 *) ac_val=$ac_cv_c_inline;;
3758 cat >>confdefs.h <<_ACEOF
3760 #define inline $ac_val
3766 # Find a good install program. We prefer a C program (faster),
3767 # so one script is as good as another. But avoid the broken or
3768 # incompatible versions:
3769 # SysV /etc/install, /usr/sbin/install
3770 # SunOS /usr/etc/install
3771 # IRIX /sbin/install
3773 # AmigaOS /C/install, which installs bootblocks on floppy discs
3774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3777 # OS/2's system install, which has a completely different semantic
3778 # ./install, which can be erroneously created by make from ./install.sh.
3779 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3780 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3781 if test -z "$INSTALL"; then
3782 if test "${ac_cv_path_install+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 test -z "$as_dir" && as_dir=.
3790 # Account for people who put trailing slashes in PATH elements.
3792 ./ | .// | /cC/* | \
3793 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3794 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3797 # OSF1 and SCO ODT 3.0 have their own names for install.
3798 # Don't use installbsd from OSF since it installs stuff as root
3800 for ac_prog in ginstall scoinst install; do
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3803 if test $ac_prog = install &&
3804 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3805 # AIX install. It has an incompatible calling convention.
3807 elif test $ac_prog = install &&
3808 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3809 # program-specific install script used by HP pwplus--don't use.
3812 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3824 if test "${ac_cv_path_install+set}" = set; then
3825 INSTALL=$ac_cv_path_install
3827 # As a last resort, use the slow shell script. We don't cache a
3828 # path for INSTALL within a source directory, because that will
3829 # break other packages using the cache if that directory is
3830 # removed, or if the path is relative.
3831 INSTALL=$ac_install_sh
3834 echo "$as_me:$LINENO: result: $INSTALL" >&5
3835 echo "${ECHO_T}$INSTALL" >&6
3837 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3838 # It thinks the first close brace ends the variable substitution.
3839 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3841 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3843 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3845 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3846 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3847 if test "${ac_cv_header_stdc+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 cat >conftest.$ac_ext <<_ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3869 rm -f conftest.$ac_objext
3870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3871 (eval $ac_compile) 2>conftest.er1
3873 grep -v '^ *+' conftest.er1 >conftest.err
3875 cat conftest.err >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } &&
3878 { ac_try='test -z "$ac_c_werror_flag"
3879 || test ! -s conftest.err'
3880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; } &&
3885 { ac_try='test -s conftest.$ac_objext'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; }; then
3891 ac_cv_header_stdc=yes
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 ac_cv_header_stdc=no
3898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3900 if test $ac_cv_header_stdc = yes; then
3901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3912 $EGREP "memchr" >/dev/null 2>&1; then
3915 ac_cv_header_stdc=no
3921 if test $ac_cv_header_stdc = yes; then
3922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3933 $EGREP "free" >/dev/null 2>&1; then
3936 ac_cv_header_stdc=no
3942 if test $ac_cv_header_stdc = yes; then
3943 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3944 if test "$cross_compiling" = yes; then
3947 cat >conftest.$ac_ext <<_ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3954 #if ((' ' & 0x0FF) == 0x020)
3955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3958 # define ISLOWER(c) \
3959 (('a' <= (c) && (c) <= 'i') \
3960 || ('j' <= (c) && (c) <= 'r') \
3961 || ('s' <= (c) && (c) <= 'z'))
3962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3970 for (i = 0; i < 256; i++)
3971 if (XOR (islower (i), ISLOWER (i))
3972 || toupper (i) != TOUPPER (i))
3977 rm -f conftest$ac_exeext
3978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3979 (eval $ac_link) 2>&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3990 echo "$as_me: program exited with status $ac_status" >&5
3991 echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3995 ac_cv_header_stdc=no
3997 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4001 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4002 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4003 if test $ac_cv_header_stdc = yes; then
4005 cat >>confdefs.h <<\_ACEOF
4006 #define STDC_HEADERS 1
4016 for ac_header in unistd.h locale.h termios.h linux/termios.h sys/ioctl.h
4018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4020 echo "$as_me:$LINENO: checking for $ac_header" >&5
4021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4028 # Is the header compilable?
4029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4031 cat >conftest.$ac_ext <<_ACEOF
4034 cat confdefs.h >>conftest.$ac_ext
4035 cat >>conftest.$ac_ext <<_ACEOF
4036 /* end confdefs.h. */
4037 $ac_includes_default
4038 #include <$ac_header>
4040 rm -f conftest.$ac_objext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>conftest.er1
4044 grep -v '^ *+' conftest.er1 >conftest.err
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } &&
4049 { ac_try='test -z "$ac_c_werror_flag"
4050 || test ! -s conftest.err'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; } &&
4056 { ac_try='test -s conftest.$ac_objext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 ac_header_compiler=yes
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067 ac_header_compiler=no
4069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4071 echo "${ECHO_T}$ac_header_compiler" >&6
4073 # Is the header present?
4074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4076 cat >conftest.$ac_ext <<_ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 #include <$ac_header>
4084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4087 grep -v '^ *+' conftest.er1 >conftest.err
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } >/dev/null; then
4092 if test -s conftest.err; then
4093 ac_cpp_err=$ac_c_preproc_warn_flag
4094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4101 if test -z "$ac_cpp_err"; then
4102 ac_header_preproc=yes
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 ac_header_preproc=no
4109 rm -f conftest.err conftest.$ac_ext
4110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4111 echo "${ECHO_T}$ac_header_preproc" >&6
4113 # So? What about this header?
4114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4120 ac_header_preproc=yes
4123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4137 ## ------------------------------------------ ##
4138 ## Report this to the AC_PACKAGE_NAME lists. ##
4139 ## ------------------------------------------ ##
4142 sed "s/^/$as_me: WARNING: /" >&2
4145 echo "$as_me:$LINENO: checking for $ac_header" >&5
4146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 eval "$as_ac_Header=\$ac_header_preproc"
4152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4157 cat >>confdefs.h <<_ACEOF
4158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4165 if test "${ac_cv_header_stdarg_h+set}" = set; then
4166 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4167 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4168 if test "${ac_cv_header_stdarg_h+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4172 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4174 # Is the header compilable?
4175 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
4176 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
4177 cat >conftest.$ac_ext <<_ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4183 $ac_includes_default
4186 rm -f conftest.$ac_objext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188 (eval $ac_compile) 2>conftest.er1
4190 grep -v '^ *+' conftest.er1 >conftest.err
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
4195 { ac_try='test -z "$ac_c_werror_flag"
4196 || test ! -s conftest.err'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 ac_header_compiler=yes
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 ac_header_compiler=no
4215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4217 echo "${ECHO_T}$ac_header_compiler" >&6
4219 # Is the header present?
4220 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
4221 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
4222 cat >conftest.$ac_ext <<_ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4233 grep -v '^ *+' conftest.er1 >conftest.err
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } >/dev/null; then
4238 if test -s conftest.err; then
4239 ac_cpp_err=$ac_c_preproc_warn_flag
4240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4247 if test -z "$ac_cpp_err"; then
4248 ac_header_preproc=yes
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4253 ac_header_preproc=no
4255 rm -f conftest.err conftest.$ac_ext
4256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4257 echo "${ECHO_T}$ac_header_preproc" >&6
4259 # So? What about this header?
4260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4262 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
4263 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4264 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
4265 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
4266 ac_header_preproc=yes
4269 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
4270 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
4271 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
4272 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
4273 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
4274 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
4275 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
4276 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
4277 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
4278 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
4279 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
4280 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
4283 ## ------------------------------------------ ##
4284 ## Report this to the AC_PACKAGE_NAME lists. ##
4285 ## ------------------------------------------ ##
4288 sed "s/^/$as_me: WARNING: /" >&2
4291 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4292 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4293 if test "${ac_cv_header_stdarg_h+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 ac_cv_header_stdarg_h=$ac_header_preproc
4298 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4299 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4302 if test $ac_cv_header_stdarg_h = yes; then
4304 cat >>confdefs.h <<\_ACEOF
4305 #define HAVE_STDARG_H 1
4309 { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5
4310 echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;}
4311 { (exit 1); exit 1; }; }
4315 echo "$as_me:$LINENO: checking for working strcoll" >&5
4316 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4317 if test "${ac_cv_func_strcoll_works+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 if test "$cross_compiling" = yes; then
4321 ac_cv_func_strcoll_works=no
4323 cat >conftest.$ac_ext <<_ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4329 $ac_includes_default
4333 exit (strcoll ("abc", "def") >= 0 ||
4334 strcoll ("ABC", "DEF") >= 0 ||
4335 strcoll ("123", "456") >= 0)
4340 rm -f conftest$ac_exeext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4342 (eval $ac_link) 2>&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 ac_cv_func_strcoll_works=yes
4353 echo "$as_me: program exited with status $ac_status" >&5
4354 echo "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4358 ac_cv_func_strcoll_works=no
4360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4363 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4364 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4365 if test $ac_cv_func_strcoll_works = yes; then
4367 cat >>confdefs.h <<\_ACEOF
4368 #define HAVE_STRCOLL 1
4374 for ac_func in setlocale
4376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4377 echo "$as_me:$LINENO: checking for $ac_func" >&5
4378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4379 if eval "test \"\${$as_ac_var+set}\" = set"; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4390 #define $ac_func innocuous_$ac_func
4392 /* System header to define __stub macros and hopefully few prototypes,
4393 which can conflict with char $ac_func (); below.
4394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4395 <limits.h> exists even on freestanding compilers. */
4398 # include <limits.h>
4400 # include <assert.h>
4405 /* Override any gcc2 internal prototype to avoid an error. */
4410 /* We use char because int might match the return type of a gcc2
4411 builtin and then its argument prototype would still apply. */
4413 /* The GNU C library defines this for functions which it implements
4414 to always fail with ENOSYS. Some functions are actually named
4415 something starting with __ and the normal name is an alias. */
4416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4419 char (*f) () = $ac_func;
4428 return f != $ac_func;
4433 rm -f conftest.$ac_objext conftest$ac_exeext
4434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4435 (eval $ac_link) 2>conftest.er1
4437 grep -v '^ *+' conftest.er1 >conftest.err
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -z "$ac_c_werror_flag"
4443 || test ! -s conftest.err'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; } &&
4449 { ac_try='test -s conftest$ac_exeext'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; }; then
4455 eval "$as_ac_var=yes"
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4460 eval "$as_ac_var=no"
4462 rm -f conftest.err conftest.$ac_objext \
4463 conftest$ac_exeext conftest.$ac_ext
4465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4467 if test `eval echo '${'$as_ac_var'}'` = yes; then
4468 cat >>confdefs.h <<_ACEOF
4469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4477 if test "${ac_cv_header_wchar_h+set}" = set; then
4478 echo "$as_me:$LINENO: checking for wchar.h" >&5
4479 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
4480 if test "${ac_cv_header_wchar_h+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
4484 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
4486 # Is the header compilable?
4487 echo "$as_me:$LINENO: checking wchar.h usability" >&5
4488 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
4489 cat >conftest.$ac_ext <<_ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 $ac_includes_default
4498 rm -f conftest.$ac_objext
4499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500 (eval $ac_compile) 2>conftest.er1
4502 grep -v '^ *+' conftest.er1 >conftest.err
4504 cat conftest.err >&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } &&
4507 { ac_try='test -z "$ac_c_werror_flag"
4508 || test ! -s conftest.err'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; } &&
4514 { ac_try='test -s conftest.$ac_objext'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 ac_header_compiler=yes
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4525 ac_header_compiler=no
4527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4529 echo "${ECHO_T}$ac_header_compiler" >&6
4531 # Is the header present?
4532 echo "$as_me:$LINENO: checking wchar.h presence" >&5
4533 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
4534 cat >conftest.$ac_ext <<_ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4545 grep -v '^ *+' conftest.er1 >conftest.err
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } >/dev/null; then
4550 if test -s conftest.err; then
4551 ac_cpp_err=$ac_c_preproc_warn_flag
4552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4559 if test -z "$ac_cpp_err"; then
4560 ac_header_preproc=yes
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 ac_header_preproc=no
4567 rm -f conftest.err conftest.$ac_ext
4568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4569 echo "${ECHO_T}$ac_header_preproc" >&6
4571 # So? What about this header?
4572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4574 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
4575 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4576 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
4577 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
4578 ac_header_preproc=yes
4581 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
4582 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
4583 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
4584 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
4585 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
4586 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
4587 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
4588 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
4589 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
4590 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
4591 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
4592 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
4595 ## ------------------------------------------ ##
4596 ## Report this to the AC_PACKAGE_NAME lists. ##
4597 ## ------------------------------------------ ##
4600 sed "s/^/$as_me: WARNING: /" >&2
4603 echo "$as_me:$LINENO: checking for wchar.h" >&5
4604 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
4605 if test "${ac_cv_header_wchar_h+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 ac_cv_header_wchar_h=$ac_header_preproc
4610 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
4611 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
4614 if test $ac_cv_header_wchar_h = yes; then
4618 cat >>confdefs.h <<\_ACEOF
4619 #define HAVE_WCHAR_H 1
4631 for ac_func in mbtowc wcwidth mbrtowc mbsinit
4633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4634 echo "$as_me:$LINENO: checking for $ac_func" >&5
4635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4636 if eval "test \"\${$as_ac_var+set}\" = set"; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 cat >conftest.$ac_ext <<_ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4647 #define $ac_func innocuous_$ac_func
4649 /* System header to define __stub macros and hopefully few prototypes,
4650 which can conflict with char $ac_func (); below.
4651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4652 <limits.h> exists even on freestanding compilers. */
4655 # include <limits.h>
4657 # include <assert.h>
4662 /* Override any gcc2 internal prototype to avoid an error. */
4667 /* We use char because int might match the return type of a gcc2
4668 builtin and then its argument prototype would still apply. */
4670 /* The GNU C library defines this for functions which it implements
4671 to always fail with ENOSYS. Some functions are actually named
4672 something starting with __ and the normal name is an alias. */
4673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4676 char (*f) () = $ac_func;
4685 return f != $ac_func;
4690 rm -f conftest.$ac_objext conftest$ac_exeext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4692 (eval $ac_link) 2>conftest.er1
4694 grep -v '^ *+' conftest.er1 >conftest.err
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try='test -z "$ac_c_werror_flag"
4700 || test ! -s conftest.err'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; } &&
4706 { ac_try='test -s conftest$ac_exeext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 eval "$as_ac_var=yes"
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 eval "$as_ac_var=no"
4719 rm -f conftest.err conftest.$ac_objext \
4720 conftest$ac_exeext conftest.$ac_ext
4722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4724 if test `eval echo '${'$as_ac_var'}'` = yes; then
4725 cat >>confdefs.h <<_ACEOF
4726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4734 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
4735 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
4736 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 cat >conftest.$ac_ext <<_ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 $ac_includes_default
4750 char *p = (char *) wcwidth;
4757 rm -f conftest.$ac_objext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4759 (eval $ac_compile) 2>conftest.er1
4761 grep -v '^ *+' conftest.er1 >conftest.err
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } &&
4766 { ac_try='test -z "$ac_c_werror_flag"
4767 || test ! -s conftest.err'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; } &&
4773 { ac_try='test -s conftest.$ac_objext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 ac_cv_have_decl_wcwidth=yes
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4784 ac_cv_have_decl_wcwidth=no
4786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4788 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
4789 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
4790 if test $ac_cv_have_decl_wcwidth = yes; then
4792 cat >>confdefs.h <<_ACEOF
4793 #define HAVE_DECL_WCWIDTH 1
4798 cat >>confdefs.h <<_ACEOF
4799 #define HAVE_DECL_WCWIDTH 0
4806 echo "$as_me:$LINENO: checking for wchar_t" >&5
4807 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4808 if test "${ac_cv_type_wchar_t+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 cat >conftest.$ac_ext <<_ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 $ac_includes_default
4823 if (sizeof (wchar_t))
4829 rm -f conftest.$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>conftest.er1
4833 grep -v '^ *+' conftest.er1 >conftest.err
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try='test -z "$ac_c_werror_flag"
4839 || test ! -s conftest.err'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; } &&
4845 { ac_try='test -s conftest.$ac_objext'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; }; then
4851 ac_cv_type_wchar_t=yes
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4856 ac_cv_type_wchar_t=no
4858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4860 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
4861 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
4862 if test $ac_cv_type_wchar_t = yes; then
4869 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
4870 ac_widec_possible=yes
4872 ac_widec_possible=no
4876 abook_cv_curses=/usr
4878 # Check whether --with-curses or --without-curses was given.
4879 if test "${with_curses+set}" = set; then
4880 withval="$with_curses"
4881 if test $withval != yes; then
4882 abook_cv_curses=$withval
4884 if test x$abook_cv_curses != x/usr; then
4885 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
4886 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
4890 echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
4891 echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6
4892 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 ac_check_lib_save_LIBS=$LIBS
4896 LIBS="-lncursesw $LIBS"
4897 cat >conftest.$ac_ext <<_ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4904 /* Override any gcc2 internal prototype to avoid an error. */
4908 /* We use char because int might match the return type of a gcc2
4909 builtin and then its argument prototype would still apply. */
4919 rm -f conftest.$ac_objext conftest$ac_exeext
4920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921 (eval $ac_link) 2>conftest.er1
4923 grep -v '^ *+' conftest.er1 >conftest.err
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } &&
4928 { ac_try='test -z "$ac_c_werror_flag"
4929 || test ! -s conftest.err'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; } &&
4935 { ac_try='test -s conftest$ac_exeext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 ac_cv_lib_ncursesw_initscr=yes
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 ac_cv_lib_ncursesw_initscr=no
4948 rm -f conftest.err conftest.$ac_objext \
4949 conftest$ac_exeext conftest.$ac_ext
4950 LIBS=$ac_check_lib_save_LIBS
4952 echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
4953 echo "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6
4954 if test $ac_cv_lib_ncursesw_initscr = yes; then
4955 LIBS="$LIBS -lncursesw"
4956 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
4957 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
4960 for ac_header in ncurses.h
4962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4964 echo "$as_me:$LINENO: checking for $ac_header" >&5
4965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4972 # Is the header compilable?
4973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4975 cat >conftest.$ac_ext <<_ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 $ac_includes_default
4982 #include <$ac_header>
4984 rm -f conftest.$ac_objext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986 (eval $ac_compile) 2>conftest.er1
4988 grep -v '^ *+' conftest.er1 >conftest.err
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } &&
4993 { ac_try='test -z "$ac_c_werror_flag"
4994 || test ! -s conftest.err'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; } &&
5000 { ac_try='test -s conftest.$ac_objext'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; }; then
5006 ac_header_compiler=yes
5008 echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5011 ac_header_compiler=no
5013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5015 echo "${ECHO_T}$ac_header_compiler" >&6
5017 # Is the header present?
5018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5020 cat >conftest.$ac_ext <<_ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 #include <$ac_header>
5028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5031 grep -v '^ *+' conftest.er1 >conftest.err
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } >/dev/null; then
5036 if test -s conftest.err; then
5037 ac_cpp_err=$ac_c_preproc_warn_flag
5038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5045 if test -z "$ac_cpp_err"; then
5046 ac_header_preproc=yes
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5051 ac_header_preproc=no
5053 rm -f conftest.err conftest.$ac_ext
5054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5055 echo "${ECHO_T}$ac_header_preproc" >&6
5057 # So? What about this header?
5058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5064 ac_header_preproc=yes
5067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5081 ## ------------------------------------------ ##
5082 ## Report this to the AC_PACKAGE_NAME lists. ##
5083 ## ------------------------------------------ ##
5086 sed "s/^/$as_me: WARNING: /" >&2
5089 echo "$as_me:$LINENO: checking for $ac_header" >&5
5090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 eval "$as_ac_Header=\$ac_header_preproc"
5096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5101 cat >>confdefs.h <<_ACEOF
5102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5111 ac_widec_possible=no
5112 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
5113 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
5114 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 ac_check_lib_save_LIBS=$LIBS
5118 LIBS="-lncurses $LIBS"
5119 cat >conftest.$ac_ext <<_ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5126 /* Override any gcc2 internal prototype to avoid an error. */
5130 /* We use char because int might match the return type of a gcc2
5131 builtin and then its argument prototype would still apply. */
5141 rm -f conftest.$ac_objext conftest$ac_exeext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5143 (eval $ac_link) 2>conftest.er1
5145 grep -v '^ *+' conftest.er1 >conftest.err
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } &&
5150 { ac_try='test -z "$ac_c_werror_flag"
5151 || test ! -s conftest.err'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; } &&
5157 { ac_try='test -s conftest$ac_exeext'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; }; then
5163 ac_cv_lib_ncurses_initscr=yes
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 ac_cv_lib_ncurses_initscr=no
5170 rm -f conftest.err conftest.$ac_objext \
5171 conftest$ac_exeext conftest.$ac_ext
5172 LIBS=$ac_check_lib_save_LIBS
5174 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
5175 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
5176 if test $ac_cv_lib_ncurses_initscr = yes; then
5177 LIBS="$LIBS -lncurses"
5178 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
5179 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
5182 for ac_header in ncurses.h
5184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5186 echo "$as_me:$LINENO: checking for $ac_header" >&5
5187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5194 # Is the header compilable?
5195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5197 cat >conftest.$ac_ext <<_ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 $ac_includes_default
5204 #include <$ac_header>
5206 rm -f conftest.$ac_objext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208 (eval $ac_compile) 2>conftest.er1
5210 grep -v '^ *+' conftest.er1 >conftest.err
5212 cat conftest.err >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } &&
5215 { ac_try='test -z "$ac_c_werror_flag"
5216 || test ! -s conftest.err'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; } &&
5222 { ac_try='test -s conftest.$ac_objext'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; }; then
5228 ac_header_compiler=yes
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5233 ac_header_compiler=no
5235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5237 echo "${ECHO_T}$ac_header_compiler" >&6
5239 # Is the header present?
5240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5242 cat >conftest.$ac_ext <<_ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 #include <$ac_header>
5250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5253 grep -v '^ *+' conftest.er1 >conftest.err
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } >/dev/null; then
5258 if test -s conftest.err; then
5259 ac_cpp_err=$ac_c_preproc_warn_flag
5260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5267 if test -z "$ac_cpp_err"; then
5268 ac_header_preproc=yes
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 ac_header_preproc=no
5275 rm -f conftest.err conftest.$ac_ext
5276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5277 echo "${ECHO_T}$ac_header_preproc" >&6
5279 # So? What about this header?
5280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5286 ac_header_preproc=yes
5289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5303 ## ------------------------------------------ ##
5304 ## Report this to the AC_PACKAGE_NAME lists. ##
5305 ## ------------------------------------------ ##
5308 sed "s/^/$as_me: WARNING: /" >&2
5311 echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 eval "$as_ac_Header=\$ac_header_preproc"
5318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5323 cat >>confdefs.h <<_ACEOF
5324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5333 echo "$as_me:$LINENO: checking for initscr" >&5
5334 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5335 if test "${ac_cv_func_initscr+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 cat >conftest.$ac_ext <<_ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5344 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
5345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5346 #define initscr innocuous_initscr
5348 /* System header to define __stub macros and hopefully few prototypes,
5349 which can conflict with char initscr (); below.
5350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5351 <limits.h> exists even on freestanding compilers. */
5354 # include <limits.h>
5356 # include <assert.h>
5361 /* Override any gcc2 internal prototype to avoid an error. */
5366 /* We use char because int might match the return type of a gcc2
5367 builtin and then its argument prototype would still apply. */
5369 /* The GNU C library defines this for functions which it implements
5370 to always fail with ENOSYS. Some functions are actually named
5371 something starting with __ and the normal name is an alias. */
5372 #if defined (__stub_initscr) || defined (__stub___initscr)
5375 char (*f) () = initscr;
5384 return f != initscr;
5389 rm -f conftest.$ac_objext conftest$ac_exeext
5390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5391 (eval $ac_link) 2>conftest.er1
5393 grep -v '^ *+' conftest.er1 >conftest.err
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -z "$ac_c_werror_flag"
5399 || test ! -s conftest.err'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; } &&
5405 { ac_try='test -s conftest$ac_exeext'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 ac_cv_func_initscr=yes
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5416 ac_cv_func_initscr=no
5418 rm -f conftest.err conftest.$ac_objext \
5419 conftest$ac_exeext conftest.$ac_ext
5421 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5422 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5423 if test $ac_cv_func_initscr = yes; then
5427 case $host_os in #(vi
5429 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5430 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5431 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 ac_check_lib_save_LIBS=$LIBS
5435 LIBS="-lmytinfo $LIBS"
5436 cat >conftest.$ac_ext <<_ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5443 /* Override any gcc2 internal prototype to avoid an error. */
5447 /* We use char because int might match the return type of a gcc2
5448 builtin and then its argument prototype would still apply. */
5458 rm -f conftest.$ac_objext conftest$ac_exeext
5459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5460 (eval $ac_link) 2>conftest.er1
5462 grep -v '^ *+' conftest.er1 >conftest.err
5464 cat conftest.err >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } &&
5467 { ac_try='test -z "$ac_c_werror_flag"
5468 || test ! -s conftest.err'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; } &&
5474 { ac_try='test -s conftest$ac_exeext'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; }; then
5480 ac_cv_lib_mytinfo_tgoto=yes
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 ac_cv_lib_mytinfo_tgoto=no
5487 rm -f conftest.err conftest.$ac_objext \
5488 conftest$ac_exeext conftest.$ac_ext
5489 LIBS=$ac_check_lib_save_LIBS
5491 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5492 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5493 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5494 LIBS="-lmytinfo $LIBS"
5499 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5500 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5501 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 ac_check_lib_save_LIBS=$LIBS
5505 LIBS="-lcur_colr $LIBS"
5506 cat >conftest.$ac_ext <<_ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5513 /* Override any gcc2 internal prototype to avoid an error. */
5517 /* We use char because int might match the return type of a gcc2
5518 builtin and then its argument prototype would still apply. */
5528 rm -f conftest.$ac_objext conftest$ac_exeext
5529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5530 (eval $ac_link) 2>conftest.er1
5532 grep -v '^ *+' conftest.er1 >conftest.err
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try='test -z "$ac_c_werror_flag"
5538 || test ! -s conftest.err'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; } &&
5544 { ac_try='test -s conftest$ac_exeext'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5550 ac_cv_lib_cur_colr_initscr=yes
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5555 ac_cv_lib_cur_colr_initscr=no
5557 rm -f conftest.err conftest.$ac_objext \
5558 conftest$ac_exeext conftest.$ac_ext
5559 LIBS=$ac_check_lib_save_LIBS
5561 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5562 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5563 if test $ac_cv_lib_cur_colr_initscr = yes; then
5565 LIBS="-lcur_colr $LIBS"
5566 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5567 ac_cv_func_initscr=yes
5571 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5572 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5573 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 ac_check_lib_save_LIBS=$LIBS
5577 LIBS="-lHcurses $LIBS"
5578 cat >conftest.$ac_ext <<_ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5585 /* Override any gcc2 internal prototype to avoid an error. */
5589 /* We use char because int might match the return type of a gcc2
5590 builtin and then its argument prototype would still apply. */
5600 rm -f conftest.$ac_objext conftest$ac_exeext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5602 (eval $ac_link) 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -z "$ac_c_werror_flag"
5610 || test ! -s conftest.err'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try='test -s conftest$ac_exeext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_lib_Hcurses_initscr=yes
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 ac_cv_lib_Hcurses_initscr=no
5629 rm -f conftest.err conftest.$ac_objext \
5630 conftest$ac_exeext conftest.$ac_ext
5631 LIBS=$ac_check_lib_save_LIBS
5633 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5634 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5635 if test $ac_cv_lib_Hcurses_initscr = yes; then
5637 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5638 LIBS="-lHcurses $LIBS"
5639 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5640 ac_cv_func_initscr=yes
5647 linux*) # Suse Linux does not follow /usr/lib convention
5652 if test ".$With5lib" != ".no" ; then
5653 if test -d /usr/5lib ; then
5655 CPPFLAGS="$CPPFLAGS -I/usr/5include"
5656 LIBS="$LIBS -L/usr/5lib"
5660 if test ".$ac_cv_func_initscr" != .yes ; then
5661 cf_save_LIBS="$LIBS"
5665 # Check for library containing tgoto. Do this before curses library
5666 # because it may be needed to link the test-case for initscr.
5667 echo "$as_me:$LINENO: checking for tgoto" >&5
5668 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5669 if test "${ac_cv_func_tgoto+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 cat >conftest.$ac_ext <<_ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
5679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5680 #define tgoto innocuous_tgoto
5682 /* System header to define __stub macros and hopefully few prototypes,
5683 which can conflict with char tgoto (); below.
5684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5685 <limits.h> exists even on freestanding compilers. */
5688 # include <limits.h>
5690 # include <assert.h>
5695 /* Override any gcc2 internal prototype to avoid an error. */
5700 /* We use char because int might match the return type of a gcc2
5701 builtin and then its argument prototype would still apply. */
5703 /* The GNU C library defines this for functions which it implements
5704 to always fail with ENOSYS. Some functions are actually named
5705 something starting with __ and the normal name is an alias. */
5706 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5709 char (*f) () = tgoto;
5723 rm -f conftest.$ac_objext conftest$ac_exeext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5725 (eval $ac_link) 2>conftest.er1
5727 grep -v '^ *+' conftest.er1 >conftest.err
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try='test -z "$ac_c_werror_flag"
5733 || test ! -s conftest.err'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; } &&
5739 { ac_try='test -s conftest$ac_exeext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5745 ac_cv_func_tgoto=yes
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5752 rm -f conftest.err conftest.$ac_objext \
5753 conftest$ac_exeext conftest.$ac_ext
5755 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5756 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5757 if test $ac_cv_func_tgoto = yes; then
5758 cf_term_lib=predefined
5761 for cf_term_lib in termcap termlib unknown
5763 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5764 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5765 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5766 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 ac_check_lib_save_LIBS=$LIBS
5770 LIBS="-l$cf_term_lib $LIBS"
5771 cat >conftest.$ac_ext <<_ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5778 /* Override any gcc2 internal prototype to avoid an error. */
5782 /* We use char because int might match the return type of a gcc2
5783 builtin and then its argument prototype would still apply. */
5793 rm -f conftest.$ac_objext conftest$ac_exeext
5794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5795 (eval $ac_link) 2>conftest.er1
5797 grep -v '^ *+' conftest.er1 >conftest.err
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try='test -z "$ac_c_werror_flag"
5803 || test ! -s conftest.err'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try='test -s conftest$ac_exeext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 eval "$as_ac_Lib=yes"
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5820 eval "$as_ac_Lib=no"
5822 rm -f conftest.err conftest.$ac_objext \
5823 conftest$ac_exeext conftest.$ac_ext
5824 LIBS=$ac_check_lib_save_LIBS
5826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5827 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5828 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5837 # Check for library containing initscr
5838 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5839 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5841 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5842 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5843 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5844 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 ac_check_lib_save_LIBS=$LIBS
5848 LIBS="-l$cf_curs_lib $LIBS"
5849 cat >conftest.$ac_ext <<_ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5856 /* Override any gcc2 internal prototype to avoid an error. */
5860 /* We use char because int might match the return type of a gcc2
5861 builtin and then its argument prototype would still apply. */
5871 rm -f conftest.$ac_objext conftest$ac_exeext
5872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5873 (eval $ac_link) 2>conftest.er1
5875 grep -v '^ *+' conftest.er1 >conftest.err
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } &&
5880 { ac_try='test -z "$ac_c_werror_flag"
5881 || test ! -s conftest.err'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; } &&
5887 { ac_try='test -s conftest$ac_exeext'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5893 eval "$as_ac_Lib=yes"
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5898 eval "$as_ac_Lib=no"
5900 rm -f conftest.err conftest.$ac_objext \
5901 conftest$ac_exeext conftest.$ac_ext
5902 LIBS=$ac_check_lib_save_LIBS
5904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5905 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5906 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5911 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5912 echo "$as_me: error: no curses library found" >&2;}
5913 { (exit 1); exit 1; }; }
5915 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5916 if test "$cf_term_lib" = unknown ; then
5917 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5918 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5919 cat >conftest.$ac_ext <<_ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 #include <${cf_cv_ncurses_header-curses.h}>
5934 rm -f conftest.$ac_objext conftest$ac_exeext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936 (eval $ac_link) 2>conftest.er1
5938 grep -v '^ *+' conftest.er1 >conftest.err
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } &&
5943 { ac_try='test -z "$ac_c_werror_flag"
5944 || test ! -s conftest.err'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest$ac_exeext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5963 rm -f conftest.err conftest.$ac_objext \
5964 conftest$ac_exeext conftest.$ac_ext
5965 echo "$as_me:$LINENO: result: $cf_result" >&5
5966 echo "${ECHO_T}$cf_result" >&6
5967 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5968 echo "$as_me: error: Cannot link curses library" >&2;}
5969 { (exit 1); exit 1; }; }
5970 elif test "$cf_term_lib" != predefined ; then
5971 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5972 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5973 cat >conftest.$ac_ext <<_ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 #include <${cf_cv_ncurses_header-curses.h}>
5983 initscr(); tgoto((char *)0, 0, 0);
5988 rm -f conftest.$ac_objext conftest$ac_exeext
5989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5990 (eval $ac_link) 2>conftest.er1
5992 grep -v '^ *+' conftest.er1 >conftest.err
5994 cat conftest.err >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } &&
5997 { ac_try='test -z "$ac_c_werror_flag"
5998 || test ! -s conftest.err'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; } &&
6004 { ac_try='test -s conftest$ac_exeext'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6016 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
6017 cat >conftest.$ac_ext <<_ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 #include <${cf_cv_ncurses_header-curses.h}>
6032 rm -f conftest.$ac_objext conftest$ac_exeext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034 (eval $ac_link) 2>conftest.er1
6036 grep -v '^ *+' conftest.er1 >conftest.err
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } &&
6041 { ac_try='test -z "$ac_c_werror_flag"
6042 || test ! -s conftest.err'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; } &&
6048 { ac_try='test -s conftest$ac_exeext'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6061 rm -f conftest.err conftest.$ac_objext \
6062 conftest$ac_exeext conftest.$ac_ext
6065 rm -f conftest.err conftest.$ac_objext \
6066 conftest$ac_exeext conftest.$ac_ext
6067 echo "$as_me:$LINENO: result: $cf_result" >&5
6068 echo "${ECHO_T}$cf_result" >&6
6083 abook_cv_readline=/usr
6085 # Check whether --with-readline or --without-readline was given.
6086 if test "${with_readline+set}" = set; then
6087 withval="$with_readline"
6088 if test $withval != yes; then
6089 abook_cv_readline=$withval
6091 if test x$abook_cv_readline != x/usr; then
6092 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
6093 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
6098 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
6099 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
6100 if test "${ac_cv_lib_readline+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 for readline_lib in readline edit editline; do
6106 for termcap_lib in "" termcap curses ncurses; do
6107 if test -z "$termcap_lib"; then
6108 TRY_LIB="-l$readline_lib"
6110 TRY_LIB="-l$readline_lib -l$termcap_lib"
6112 LIBS="$ORIG_LIBS $TRY_LIB"
6113 cat >conftest.$ac_ext <<_ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6120 /* Override any gcc2 internal prototype to avoid an error. */
6124 /* We use char because int might match the return type of a gcc2
6125 builtin and then its argument prototype would still apply. */
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137 (eval $ac_link) 2>conftest.er1
6139 grep -v '^ *+' conftest.er1 >conftest.err
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
6144 { ac_try='test -z "$ac_c_werror_flag"
6145 || test ! -s conftest.err'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_lib_readline="$TRY_LIB"
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6163 rm -f conftest.err conftest.$ac_objext \
6164 conftest$ac_exeext conftest.$ac_ext
6165 if test -n "$ac_cv_lib_readline"; then
6169 if test -n "$ac_cv_lib_readline"; then
6173 if test -z "$ac_cv_lib_readline"; then
6174 ac_cv_lib_readline="no"
6179 echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
6180 echo "${ECHO_T}$ac_cv_lib_readline" >&6
6182 if test "$ac_cv_lib_readline" != "no"; then
6183 LIBS="$LIBS $ac_cv_lib_readline"
6185 cat >>confdefs.h <<\_ACEOF
6186 #define HAVE_LIBREADLINE 1
6191 for ac_header in readline.h readline/readline.h
6193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6195 echo "$as_me:$LINENO: checking for $ac_header" >&5
6196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6203 # Is the header compilable?
6204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6206 cat >conftest.$ac_ext <<_ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6212 $ac_includes_default
6213 #include <$ac_header>
6215 rm -f conftest.$ac_objext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6217 (eval $ac_compile) 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } &&
6224 { ac_try='test -z "$ac_c_werror_flag"
6225 || test ! -s conftest.err'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest.$ac_objext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6237 ac_header_compiler=yes
6239 echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6242 ac_header_compiler=no
6244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6246 echo "${ECHO_T}$ac_header_compiler" >&6
6248 # Is the header present?
6249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6251 cat >conftest.$ac_ext <<_ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 #include <$ac_header>
6259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6262 grep -v '^ *+' conftest.er1 >conftest.err
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } >/dev/null; then
6267 if test -s conftest.err; then
6268 ac_cpp_err=$ac_c_preproc_warn_flag
6269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6276 if test -z "$ac_cpp_err"; then
6277 ac_header_preproc=yes
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6282 ac_header_preproc=no
6284 rm -f conftest.err conftest.$ac_ext
6285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6286 echo "${ECHO_T}$ac_header_preproc" >&6
6288 # So? What about this header?
6289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6295 ac_header_preproc=yes
6298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6312 ## ------------------------------------------ ##
6313 ## Report this to the AC_PACKAGE_NAME lists. ##
6314 ## ------------------------------------------ ##
6317 sed "s/^/$as_me: WARNING: /" >&2
6320 echo "$as_me:$LINENO: checking for $ac_header" >&5
6321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 eval "$as_ac_Header=\$ac_header_preproc"
6327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6332 cat >>confdefs.h <<_ACEOF
6333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6340 echo "$as_me:$LINENO: checking whether readline supports history" >&5
6341 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
6342 if test "${ac_cv_lib_readline_history+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 ac_cv_lib_readline_history="no"
6347 cat >conftest.$ac_ext <<_ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6354 /* Override any gcc2 internal prototype to avoid an error. */
6358 /* We use char because int might match the return type of a gcc2
6359 builtin and then its argument prototype would still apply. */
6360 char add_history ();
6369 rm -f conftest.$ac_objext conftest$ac_exeext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6371 (eval $ac_link) 2>conftest.er1
6373 grep -v '^ *+' conftest.er1 >conftest.err
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try='test -z "$ac_c_werror_flag"
6379 || test ! -s conftest.err'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; } &&
6385 { ac_try='test -s conftest$ac_exeext'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 ac_cv_lib_readline_history="yes"
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6397 rm -f conftest.err conftest.$ac_objext \
6398 conftest$ac_exeext conftest.$ac_ext
6401 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
6402 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6
6403 if test "$ac_cv_lib_readline_history" = "yes"; then
6405 cat >>confdefs.h <<\_ACEOF
6406 #define HAVE_READLINE_HISTORY 1
6411 for ac_header in history.h readline/history.h
6413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6415 echo "$as_me:$LINENO: checking for $ac_header" >&5
6416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6423 # Is the header compilable?
6424 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6426 cat >conftest.$ac_ext <<_ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 $ac_includes_default
6433 #include <$ac_header>
6435 rm -f conftest.$ac_objext
6436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6437 (eval $ac_compile) 2>conftest.er1
6439 grep -v '^ *+' conftest.er1 >conftest.err
6441 cat conftest.err >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -z "$ac_c_werror_flag"
6445 || test ! -s conftest.err'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; } &&
6451 { ac_try='test -s conftest.$ac_objext'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; }; then
6457 ac_header_compiler=yes
6459 echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6462 ac_header_compiler=no
6464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6466 echo "${ECHO_T}$ac_header_compiler" >&6
6468 # Is the header present?
6469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6471 cat >conftest.$ac_ext <<_ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 #include <$ac_header>
6479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6482 grep -v '^ *+' conftest.er1 >conftest.err
6484 cat conftest.err >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } >/dev/null; then
6487 if test -s conftest.err; then
6488 ac_cpp_err=$ac_c_preproc_warn_flag
6489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6496 if test -z "$ac_cpp_err"; then
6497 ac_header_preproc=yes
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 ac_header_preproc=no
6504 rm -f conftest.err conftest.$ac_ext
6505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6506 echo "${ECHO_T}$ac_header_preproc" >&6
6508 # So? What about this header?
6509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6515 ac_header_preproc=yes
6518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6532 ## ------------------------------------------ ##
6533 ## Report this to the AC_PACKAGE_NAME lists. ##
6534 ## ------------------------------------------ ##
6537 sed "s/^/$as_me: WARNING: /" >&2
6540 echo "$as_me:$LINENO: checking for $ac_header" >&5
6541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 eval "$as_ac_Header=\$ac_header_preproc"
6547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6552 cat >>confdefs.h <<_ACEOF
6553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6565 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
6566 { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5
6567 echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;}
6568 { (exit 1); exit 1; }; }
6572 if test x$ac_widec_possible = xyes; then
6574 cat >>confdefs.h <<\_ACEOF
6575 #define HANDLE_MULTIBYTE 1
6581 for ac_func in resizeterm
6583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6584 echo "$as_me:$LINENO: checking for $ac_func" >&5
6585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6586 if eval "test \"\${$as_ac_var+set}\" = set"; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 cat >conftest.$ac_ext <<_ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6597 #define $ac_func innocuous_$ac_func
6599 /* System header to define __stub macros and hopefully few prototypes,
6600 which can conflict with char $ac_func (); below.
6601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6602 <limits.h> exists even on freestanding compilers. */
6605 # include <limits.h>
6607 # include <assert.h>
6612 /* Override any gcc2 internal prototype to avoid an error. */
6617 /* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */
6620 /* The GNU C library defines this for functions which it implements
6621 to always fail with ENOSYS. Some functions are actually named
6622 something starting with __ and the normal name is an alias. */
6623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6626 char (*f) () = $ac_func;
6635 return f != $ac_func;
6640 rm -f conftest.$ac_objext conftest$ac_exeext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6642 (eval $ac_link) 2>conftest.er1
6644 grep -v '^ *+' conftest.er1 >conftest.err
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -z "$ac_c_werror_flag"
6650 || test ! -s conftest.err'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try='test -s conftest$ac_exeext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 eval "$as_ac_var=yes"
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6667 eval "$as_ac_var=no"
6669 rm -f conftest.err conftest.$ac_objext \
6670 conftest$ac_exeext conftest.$ac_ext
6672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6674 if test `eval echo '${'$as_ac_var'}'` = yes; then
6675 cat >>confdefs.h <<_ACEOF
6676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6685 for ac_func in snprintf vsnprintf
6687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6688 echo "$as_me:$LINENO: checking for $ac_func" >&5
6689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6690 if eval "test \"\${$as_ac_var+set}\" = set"; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 cat >conftest.$ac_ext <<_ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6701 #define $ac_func innocuous_$ac_func
6703 /* System header to define __stub macros and hopefully few prototypes,
6704 which can conflict with char $ac_func (); below.
6705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6706 <limits.h> exists even on freestanding compilers. */
6709 # include <limits.h>
6711 # include <assert.h>
6716 /* Override any gcc2 internal prototype to avoid an error. */
6721 /* We use char because int might match the return type of a gcc2
6722 builtin and then its argument prototype would still apply. */
6724 /* The GNU C library defines this for functions which it implements
6725 to always fail with ENOSYS. Some functions are actually named
6726 something starting with __ and the normal name is an alias. */
6727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6730 char (*f) () = $ac_func;
6739 return f != $ac_func;
6744 rm -f conftest.$ac_objext conftest$ac_exeext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6746 (eval $ac_link) 2>conftest.er1
6748 grep -v '^ *+' conftest.er1 >conftest.err
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try='test -z "$ac_c_werror_flag"
6754 || test ! -s conftest.err'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; } &&
6760 { ac_try='test -s conftest$ac_exeext'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; }; then
6766 eval "$as_ac_var=yes"
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6771 eval "$as_ac_var=no"
6773 rm -f conftest.err conftest.$ac_objext \
6774 conftest$ac_exeext conftest.$ac_ext
6776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6778 if test `eval echo '${'$as_ac_var'}'` = yes; then
6779 cat >>confdefs.h <<_ACEOF
6780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6787 # Check whether --enable-debug or --disable-debug was given.
6788 if test "${enable_debug+set}" = set; then
6789 enableval="$enable_debug"
6790 case "${enableval}" in
6793 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
6794 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
6795 { (exit 1); exit 1; }; } ;;
6801 if test x$debug = xtrue; then
6802 CPPFLAGS="-DDEBUG $CPPFLAGS"
6806 if test x$GCC = xyes; then
6807 CFLAGS="-Wall $CFLAGS"
6810 ac_config_files="$ac_config_files Makefile abook.spec"
6811 cat >confcache <<\_ACEOF
6812 # This file is a shell script that caches the results of configure
6813 # tests run on this system so they can be shared between configure
6814 # scripts and configure runs, see configure's option --config-cache.
6815 # It is not useful on other systems. If it contains results you don't
6816 # want to keep, you may remove or edit it.
6818 # config.status only pays attention to the cache file if you give it
6819 # the --recheck option to rerun configure.
6821 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6822 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6827 # The following way of writing the cache mishandles newlines in values,
6828 # but we know of no workaround that is simple, portable, and efficient.
6829 # So, don't put newlines in cache variables' values.
6830 # Ultrix sh set writes to stderr and can't be redirected directly,
6831 # and sets the high bit in the cache file unless we assign to the vars.
6834 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6836 # `set' does not quote correctly, so add quotes (double-quote
6837 # substitution turns \\\\ into \\, and sed turns \\ into \).
6840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6843 # `set' quotes correctly as required by POSIX, so do not add quotes.
6845 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6854 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6856 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6857 if test -w $cache_file; then
6858 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6859 cat confcache >$cache_file
6861 echo "not updating unwritable cache $cache_file"
6866 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6867 # Let make expand exec_prefix.
6868 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6870 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6871 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6872 # trailing colons and then remove the whole line if VPATH becomes empty
6873 # (actually we leave an empty line to preserve line numbers).
6874 if test "x$srcdir" = x.; then
6875 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6876 s/:*\$(srcdir):*/:/;
6877 s/:*\${srcdir}:*/:/;
6879 s/^\([^=]*=[ ]*\):*/\1/;
6885 DEFS=-DHAVE_CONFIG_H
6889 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6890 # 1. Remove the extension, and $U if already installed.
6891 ac_i=`echo "$ac_i" |
6892 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6894 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6895 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6899 LTLIBOBJS=$ac_ltlibobjs
6902 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6903 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6904 Usually this means the macro was only invoked conditionally." >&5
6905 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6906 Usually this means the macro was only invoked conditionally." >&2;}
6907 { (exit 1); exit 1; }; }
6909 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6910 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6911 Usually this means the macro was only invoked conditionally." >&5
6912 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6913 Usually this means the macro was only invoked conditionally." >&2;}
6914 { (exit 1); exit 1; }; }
6917 : ${CONFIG_STATUS=./config.status}
6918 ac_clean_files_save=$ac_clean_files
6919 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6920 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6921 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6922 cat >$CONFIG_STATUS <<_ACEOF
6924 # Generated by $as_me.
6925 # Run this file to recreate the current configuration.
6926 # Compiler output produced by configure, useful for debugging
6927 # configure, is in config.log if it exists.
6932 SHELL=\${CONFIG_SHELL-$SHELL}
6935 cat >>$CONFIG_STATUS <<\_ACEOF
6936 ## --------------------- ##
6937 ## M4sh Initialization. ##
6938 ## --------------------- ##
6940 # Be Bourne compatible
6941 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6944 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6945 # is contrary to our usage. Disable this feature.
6946 alias -g '${1+"$@"}'='"$@"'
6947 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6950 DUALCASE=1; export DUALCASE # for MKS sh
6952 # Support unset when possible.
6953 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6960 # Work around bugs in pre-3.0 UWIN ksh.
6961 $as_unset ENV MAIL MAILPATH
6968 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6969 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6970 LC_TELEPHONE LC_TIME
6972 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6973 eval $as_var=C; export $as_var
6979 # Required to use basename.
6980 if expr a : '\(a\)' >/dev/null 2>&1; then
6986 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6987 as_basename=basename
6993 # Name of the executable.
6994 as_me=`$as_basename "$0" ||
6995 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6996 X"$0" : 'X\(//\)$' \| \
6997 X"$0" : 'X\(/\)$' \| \
6998 . : '\(.\)' 2>/dev/null ||
7000 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7001 /^X\/\(\/\/\)$/{ s//\1/; q; }
7002 /^X\/\(\/\).*/{ s//\1/; q; }
7006 # PATH needs CR, and LINENO needs CR and PATH.
7007 # Avoid depending upon Character Ranges.
7008 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7009 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7010 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7011 as_cr_digits='0123456789'
7012 as_cr_alnum=$as_cr_Letters$as_cr_digits
7014 # The user is always right.
7015 if test "${PATH_SEPARATOR+set}" != set; then
7016 echo "#! /bin/sh" >conf$$.sh
7017 echo "exit 0" >>conf$$.sh
7019 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7030 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7031 test "x$as_lineno_1" != "x$as_lineno_2" &&
7032 test "x$as_lineno_3" = "x$as_lineno_2" || {
7033 # Find who we are. Look in the path if we contain no path at all
7036 *[\\/]* ) as_myself=$0 ;;
7037 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7047 # We did not find ourselves, most probably we were run as `sh COMMAND'
7048 # in which case we are not to be found in the path.
7049 if test "x$as_myself" = x; then
7052 if test ! -f "$as_myself"; then
7053 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7054 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7055 { (exit 1); exit 1; }; }
7057 case $CONFIG_SHELL in
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7063 test -z "$as_dir" && as_dir=.
7064 for as_base in sh bash ksh sh5; do
7067 if ("$as_dir/$as_base" -c '
7070 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7071 test "x$as_lineno_1" != "x$as_lineno_2" &&
7072 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7073 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7074 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7075 CONFIG_SHELL=$as_dir/$as_base
7077 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7085 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7086 # uniformly replaced by the line number. The first 'sed' inserts a
7087 # line-number line before each line; the second 'sed' does the real
7088 # work. The second script uses 'N' to pair each line-number line
7089 # with the numbered line, and appends trailing '-' during
7090 # substitution so that $LINENO is not a special case at line end.
7091 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7092 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7093 sed '=' <$as_myself |
7098 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7101 s,^['$as_cr_digits']*\n,,
7103 chmod +x $as_me.lineno ||
7104 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7105 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7106 { (exit 1); exit 1; }; }
7108 # Don't try to exec as it changes $[0], causing all sort of problems
7109 # (the dirname of $[0] is not the place where we might find the
7110 # original and so on. Autoconf is especially sensible to this).
7112 # Exit status is that of the last command.
7117 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7118 *c*,-n*) ECHO_N= ECHO_C='
7120 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7121 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7124 if expr a : '\(a\)' >/dev/null 2>&1; then
7130 rm -f conf$$ conf$$.exe conf$$.file
7132 if ln -s conf$$.file conf$$ 2>/dev/null; then
7133 # We could just check for DJGPP; but this test a) works b) is more generic
7134 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7135 if test -f conf$$.exe; then
7136 # Don't use ln at all; we don't have any links
7141 elif ln conf$$.file conf$$ 2>/dev/null; then
7146 rm -f conf$$ conf$$.exe conf$$.file
7148 if mkdir -p . 2>/dev/null; then
7151 test -d ./-p && rmdir ./-p
7155 as_executable_p="test -f"
7157 # Sed expression to map a string onto a valid CPP name.
7158 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7160 # Sed expression to map a string onto a valid variable name.
7161 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7165 # We need space, tab and new line, in precisely that order.
7175 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7176 # report actual input values of CONFIG_FILES etc. instead of their
7177 # values after options handling. Logging --version etc. is OK.
7181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7182 ## Running $as_me. ##
7187 This file was extended by $as_me, which was
7188 generated by GNU Autoconf 2.59. Invocation command line was
7190 CONFIG_FILES = $CONFIG_FILES
7191 CONFIG_HEADERS = $CONFIG_HEADERS
7192 CONFIG_LINKS = $CONFIG_LINKS
7193 CONFIG_COMMANDS = $CONFIG_COMMANDS
7197 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7201 # Files that config.status was made for.
7202 if test -n "$ac_config_files"; then
7203 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7206 if test -n "$ac_config_headers"; then
7207 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7210 if test -n "$ac_config_links"; then
7211 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7214 if test -n "$ac_config_commands"; then
7215 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7218 cat >>$CONFIG_STATUS <<\_ACEOF
7221 \`$as_me' instantiates files from templates according to the
7222 current configuration.
7224 Usage: $0 [OPTIONS] [FILE]...
7226 -h, --help print this help, then exit
7227 -V, --version print version number, then exit
7228 -q, --quiet do not print progress messages
7229 -d, --debug don't remove temporary files
7230 --recheck update $as_me by reconfiguring in the same conditions
7231 --file=FILE[:TEMPLATE]
7232 instantiate the configuration file FILE
7233 --header=FILE[:TEMPLATE]
7234 instantiate the configuration header FILE
7236 Configuration files:
7239 Configuration headers:
7242 Configuration commands:
7245 Report bugs to <bug-autoconf@gnu.org>."
7248 cat >>$CONFIG_STATUS <<_ACEOF
7251 configured by $0, generated by GNU Autoconf 2.59,
7252 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7254 Copyright (C) 2003 Free Software Foundation, Inc.
7255 This config.status script is free software; the Free Software Foundation
7256 gives unlimited permission to copy, distribute and modify it."
7261 cat >>$CONFIG_STATUS <<\_ACEOF
7262 # If no file are specified by the user, then we need to provide default
7263 # value. By we need to know if files were specified by the user.
7269 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7270 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7278 *) # This is not an option, so the user has probably given explicit
7281 ac_need_defaults=false;;
7285 # Handling of the options.
7287 cat >>$CONFIG_STATUS <<\_ACEOF
7288 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7290 --version | --vers* | -V )
7291 echo "$ac_cs_version"; exit 0 ;;
7293 # Conflict between --help and --header
7294 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7295 Try \`$0 --help' for more information." >&5
7296 echo "$as_me: error: ambiguous option: $1
7297 Try \`$0 --help' for more information." >&2;}
7298 { (exit 1); exit 1; }; };;
7299 --help | --hel | -h )
7300 echo "$ac_cs_usage"; exit 0 ;;
7301 --debug | --d* | -d )
7303 --file | --fil | --fi | --f )
7305 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7306 ac_need_defaults=false;;
7307 --header | --heade | --head | --hea )
7309 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7310 ac_need_defaults=false;;
7311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7312 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7316 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7317 Try \`$0 --help' for more information." >&5
7318 echo "$as_me: error: unrecognized option: $1
7319 Try \`$0 --help' for more information." >&2;}
7320 { (exit 1); exit 1; }; } ;;
7322 *) ac_config_targets="$ac_config_targets $1" ;;
7328 ac_configure_extra_args=
7330 if $ac_cs_silent; then
7332 ac_configure_extra_args="$ac_configure_extra_args --silent"
7336 cat >>$CONFIG_STATUS <<_ACEOF
7337 if \$ac_cs_recheck; then
7338 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7339 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7344 cat >>$CONFIG_STATUS <<_ACEOF
7346 # INIT-COMMANDS section.
7349 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7355 cat >>$CONFIG_STATUS <<\_ACEOF
7356 for ac_config_target in $ac_config_targets
7358 case "$ac_config_target" in
7359 # Handling of arguments.
7360 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7361 "abook.spec" ) CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
7362 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7363 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7364 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7365 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7366 { (exit 1); exit 1; }; };;
7370 # If the user did not use the arguments to specify the items to instantiate,
7371 # then the envvar interface is used. Set only those that are not.
7372 # We use the long form for the default assignment because of an extremely
7373 # bizarre bug on SunOS 4.1.3.
7374 if $ac_need_defaults; then
7375 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7376 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7377 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7380 # Have a temporary directory for convenience. Make it in the build tree
7381 # simply because there is no reason to put it here, and in addition,
7382 # creating and moving files from /tmp can sometimes cause problems.
7383 # Create a temporary directory, and hook for its removal unless debugging.
7386 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7387 trap '{ (exit 1); exit 1; }' 1 2 13 15
7390 # Create a (secure) tmp directory for tmp files.
7393 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7394 test -n "$tmp" && test -d "$tmp"
7397 tmp=./confstat$$-$RANDOM
7398 (umask 077 && mkdir $tmp)
7401 echo "$me: cannot create a temporary directory in ." >&2
7402 { (exit 1); exit 1; }
7407 cat >>$CONFIG_STATUS <<_ACEOF
7410 # CONFIG_FILES section.
7413 # No need to generate the scripts if there are no CONFIG_FILES.
7414 # This happens for instance when ./config.status config.h
7415 if test -n "\$CONFIG_FILES"; then
7416 # Protect against being on the right side of a sed subst in config.status.
7417 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7418 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7419 s,@SHELL@,$SHELL,;t t
7420 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7421 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7422 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7423 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7424 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7425 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7426 s,@exec_prefix@,$exec_prefix,;t t
7427 s,@prefix@,$prefix,;t t
7428 s,@program_transform_name@,$program_transform_name,;t t
7429 s,@bindir@,$bindir,;t t
7430 s,@sbindir@,$sbindir,;t t
7431 s,@libexecdir@,$libexecdir,;t t
7432 s,@datadir@,$datadir,;t t
7433 s,@sysconfdir@,$sysconfdir,;t t
7434 s,@sharedstatedir@,$sharedstatedir,;t t
7435 s,@localstatedir@,$localstatedir,;t t
7436 s,@libdir@,$libdir,;t t
7437 s,@includedir@,$includedir,;t t
7438 s,@oldincludedir@,$oldincludedir,;t t
7439 s,@infodir@,$infodir,;t t
7440 s,@mandir@,$mandir,;t t
7441 s,@build_alias@,$build_alias,;t t
7442 s,@host_alias@,$host_alias,;t t
7443 s,@target_alias@,$target_alias,;t t
7445 s,@ECHO_C@,$ECHO_C,;t t
7446 s,@ECHO_N@,$ECHO_N,;t t
7447 s,@ECHO_T@,$ECHO_T,;t t
7449 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7450 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7451 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7452 s,@CYGPATH_W@,$CYGPATH_W,;t t
7453 s,@PACKAGE@,$PACKAGE,;t t
7454 s,@VERSION@,$VERSION,;t t
7455 s,@ACLOCAL@,$ACLOCAL,;t t
7456 s,@AUTOCONF@,$AUTOCONF,;t t
7457 s,@AUTOMAKE@,$AUTOMAKE,;t t
7458 s,@AUTOHEADER@,$AUTOHEADER,;t t
7459 s,@MAKEINFO@,$MAKEINFO,;t t
7460 s,@AMTAR@,$AMTAR,;t t
7461 s,@install_sh@,$install_sh,;t t
7462 s,@STRIP@,$STRIP,;t t
7463 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7464 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7465 s,@mkdir_p@,$mkdir_p,;t t
7467 s,@SET_MAKE@,$SET_MAKE,;t t
7468 s,@am__leading_dot@,$am__leading_dot,;t t
7469 s,@build@,$build,;t t
7470 s,@build_cpu@,$build_cpu,;t t
7471 s,@build_vendor@,$build_vendor,;t t
7472 s,@build_os@,$build_os,;t t
7474 s,@host_cpu@,$host_cpu,;t t
7475 s,@host_vendor@,$host_vendor,;t t
7476 s,@host_os@,$host_os,;t t
7478 s,@CFLAGS@,$CFLAGS,;t t
7479 s,@LDFLAGS@,$LDFLAGS,;t t
7480 s,@CPPFLAGS@,$CPPFLAGS,;t t
7481 s,@ac_ct_CC@,$ac_ct_CC,;t t
7482 s,@EXEEXT@,$EXEEXT,;t t
7483 s,@OBJEXT@,$OBJEXT,;t t
7484 s,@DEPDIR@,$DEPDIR,;t t
7485 s,@am__include@,$am__include,;t t
7486 s,@am__quote@,$am__quote,;t t
7487 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7488 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7489 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7490 s,@CCDEPMODE@,$CCDEPMODE,;t t
7491 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7492 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7494 s,@EGREP@,$EGREP,;t t
7496 s,@ANSI2KNR@,$ANSI2KNR,;t t
7497 s,@LIBOBJS@,$LIBOBJS,;t t
7498 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7503 cat >>$CONFIG_STATUS <<\_ACEOF
7504 # Split the substitutions into bite-sized pieces for seds with
7505 # small command number limits, like on Digital OSF/1 and HP-UX.
7507 ac_sed_frag=1 # Number of current file.
7508 ac_beg=1 # First line for current file.
7509 ac_end=$ac_max_sed_lines # Line after last line for current file.
7512 while $ac_more_lines; do
7513 if test $ac_beg -gt 1; then
7514 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7516 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7518 if test ! -s $tmp/subs.frag; then
7521 # The purpose of the label and of the branching condition is to
7522 # speed up the sed processing (if there are no `@' at all, there
7523 # is no need to browse any of the substitutions).
7524 # These are the two extra sed commands mentioned above.
7526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7527 if test -z "$ac_sed_cmds"; then
7528 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7530 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7532 ac_sed_frag=`expr $ac_sed_frag + 1`
7534 ac_end=`expr $ac_end + $ac_max_sed_lines`
7537 if test -z "$ac_sed_cmds"; then
7540 fi # test -n "$CONFIG_FILES"
7543 cat >>$CONFIG_STATUS <<\_ACEOF
7544 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7545 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7547 - | *:- | *:-:* ) # input from stdin
7549 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7550 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7551 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7552 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7553 * ) ac_file_in=$ac_file.in ;;
7556 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7557 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7558 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7559 X"$ac_file" : 'X\(//\)[^/]' \| \
7560 X"$ac_file" : 'X\(//\)$' \| \
7561 X"$ac_file" : 'X\(/\)' \| \
7562 . : '\(.\)' 2>/dev/null ||
7564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7566 /^X\(\/\/\)$/{ s//\1/; q; }
7567 /^X\(\/\).*/{ s//\1/; q; }
7569 { if $as_mkdir_p; then
7574 while test ! -d "$as_dir"; do
7575 as_dirs="$as_dir $as_dirs"
7576 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7577 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7578 X"$as_dir" : 'X\(//\)[^/]' \| \
7579 X"$as_dir" : 'X\(//\)$' \| \
7580 X"$as_dir" : 'X\(/\)' \| \
7581 . : '\(.\)' 2>/dev/null ||
7583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7585 /^X\(\/\/\)$/{ s//\1/; q; }
7586 /^X\(\/\).*/{ s//\1/; q; }
7589 test ! -n "$as_dirs" || mkdir $as_dirs
7590 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7591 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7592 { (exit 1); exit 1; }; }; }
7596 if test "$ac_dir" != .; then
7597 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7598 # A "../" for each directory in $ac_dir_suffix.
7599 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7601 ac_dir_suffix= ac_top_builddir=
7605 .) # No --srcdir option. We are building in place.
7607 if test -z "$ac_top_builddir"; then
7610 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7612 [\\/]* | ?:[\\/]* ) # Absolute path.
7613 ac_srcdir=$srcdir$ac_dir_suffix;
7614 ac_top_srcdir=$srcdir ;;
7616 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7617 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7620 # Do not use `cd foo && pwd` to compute absolute paths, because
7621 # the directories may not exist.
7623 .) ac_abs_builddir="$ac_dir";;
7626 .) ac_abs_builddir=`pwd`;;
7627 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7628 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7631 case $ac_abs_builddir in
7632 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7634 case ${ac_top_builddir}. in
7635 .) ac_abs_top_builddir=$ac_abs_builddir;;
7636 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7637 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7640 case $ac_abs_builddir in
7641 .) ac_abs_srcdir=$ac_srcdir;;
7644 .) ac_abs_srcdir=$ac_abs_builddir;;
7645 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7646 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7649 case $ac_abs_builddir in
7650 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7652 case $ac_top_srcdir in
7653 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7654 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7655 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7661 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7662 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7665 if test x"$ac_file" != x-; then
7666 { echo "$as_me:$LINENO: creating $ac_file" >&5
7667 echo "$as_me: creating $ac_file" >&6;}
7670 # Let's still pretend it is `configure' which instantiates (i.e., don't
7671 # use $as_me), people would be surprised to read:
7672 # /* config.h. Generated by config.status. */
7673 if test x"$ac_file" = x-; then
7676 configure_input="$ac_file. "
7678 configure_input=$configure_input"Generated from `echo $ac_file_in |
7679 sed 's,.*/,,'` by configure."
7681 # First look for the input files in the build tree, otherwise in the
7683 ac_file_inputs=`IFS=:
7684 for f in $ac_file_in; do
7686 -) echo $tmp/stdin ;;
7688 # Absolute (can't be DOS-style, as IFS=:)
7689 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7690 echo "$as_me: error: cannot find input file: $f" >&2;}
7691 { (exit 1); exit 1; }; }
7694 if test -f "$f"; then
7697 elif test -f "$srcdir/$f"; then
7702 { { 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 done` || { (exit 1); exit 1; }
7709 cat >>$CONFIG_STATUS <<_ACEOF
7713 cat >>$CONFIG_STATUS <<\_ACEOF
7715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7716 s,@configure_input@,$configure_input,;t t
7717 s,@srcdir@,$ac_srcdir,;t t
7718 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7719 s,@top_srcdir@,$ac_top_srcdir,;t t
7720 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7721 s,@builddir@,$ac_builddir,;t t
7722 s,@abs_builddir@,$ac_abs_builddir,;t t
7723 s,@top_builddir@,$ac_top_builddir,;t t
7724 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7725 s,@INSTALL@,$ac_INSTALL,;t t
7726 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7728 if test x"$ac_file" != x-; then
7729 mv $tmp/out $ac_file
7737 cat >>$CONFIG_STATUS <<\_ACEOF
7740 # CONFIG_HEADER section.
7743 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7744 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7746 # ac_d sets the value in "#define NAME VALUE" lines.
7747 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7748 ac_dB='[ ].*$,\1#\2'
7751 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7752 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7753 ac_uB='$,\1#\2define\3'
7757 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7758 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7760 - | *:- | *:-:* ) # input from stdin
7762 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7763 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7764 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7765 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7766 * ) ac_file_in=$ac_file.in ;;
7769 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7770 echo "$as_me: creating $ac_file" >&6;}
7772 # First look for the input files in the build tree, otherwise in the
7774 ac_file_inputs=`IFS=:
7775 for f in $ac_file_in; do
7777 -) echo $tmp/stdin ;;
7779 # Absolute (can't be DOS-style, as IFS=:)
7780 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7781 echo "$as_me: error: cannot find input file: $f" >&2;}
7782 { (exit 1); exit 1; }; }
7783 # Do quote $f, to prevent DOS paths from being IFS'd.
7786 if test -f "$f"; then
7789 elif test -f "$srcdir/$f"; then
7794 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7795 echo "$as_me: error: cannot find input file: $f" >&2;}
7796 { (exit 1); exit 1; }; }
7799 done` || { (exit 1); exit 1; }
7800 # Remove the trailing spaces.
7801 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7805 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7806 # `conftest.undefs', that substitutes the proper values into
7807 # config.h.in to produce config.h. The first handles `#define'
7808 # templates, and the second `#undef' templates.
7809 # And first: Protect against being on the right side of a sed subst in
7810 # config.status. Protect against being in an unquoted here document
7812 rm -f conftest.defines conftest.undefs
7813 # Using a here document instead of a string reduces the quoting nightmare.
7814 # Putting comments in sed scripts is not portable.
7816 # `end' is used to avoid that the second main sed command (meant for
7817 # 0-ary CPP macros) applies to n-ary macro definitions.
7818 # See the Autoconf documentation for `clear'.
7819 cat >confdef2sed.sed <<\_ACEOF
7824 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7826 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7829 # If some macros were called several times there might be several times
7830 # the same #defines, which is useless. Nevertheless, we may not want to
7831 # sort them, since we want the *last* AC-DEFINE to be honored.
7832 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7833 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7834 rm -f confdef2sed.sed
7836 # This sed command replaces #undef with comments. This is necessary, for
7837 # example, in the case of _POSIX_SOURCE, which is predefined and required
7838 # on some systems where configure will not decide to define it.
7839 cat >>conftest.undefs <<\_ACEOF
7840 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7843 # Break up conftest.defines because some shells have a limit on the size
7844 # of here documents, and old seds have small limits too (100 cmds).
7845 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7846 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7847 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7848 echo ' :' >>$CONFIG_STATUS
7850 while grep . conftest.defines >/dev/null
7852 # Write a limited-size here document to $tmp/defines.sed.
7853 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7854 # Speed up: don't consider the non `#define' lines.
7855 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7856 # Work around the forget-to-reset-the-flag bug.
7857 echo 't clr' >>$CONFIG_STATUS
7858 echo ': clr' >>$CONFIG_STATUS
7859 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7861 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7865 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7866 rm -f conftest.defines
7867 mv conftest.tail conftest.defines
7869 rm -f conftest.defines
7870 echo ' fi # grep' >>$CONFIG_STATUS
7871 echo >>$CONFIG_STATUS
7873 # Break up conftest.undefs because some shells have a limit on the size
7874 # of here documents, and old seds have small limits too (100 cmds).
7875 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7877 while grep . conftest.undefs >/dev/null
7879 # Write a limited-size here document to $tmp/undefs.sed.
7880 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7881 # Speed up: don't consider the non `#undef'
7882 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7883 # Work around the forget-to-reset-the-flag bug.
7884 echo 't clr' >>$CONFIG_STATUS
7885 echo ': clr' >>$CONFIG_STATUS
7886 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7888 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7892 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7893 rm -f conftest.undefs
7894 mv conftest.tail conftest.undefs
7896 rm -f conftest.undefs
7898 cat >>$CONFIG_STATUS <<\_ACEOF
7899 # Let's still pretend it is `configure' which instantiates (i.e., don't
7900 # use $as_me), people would be surprised to read:
7901 # /* config.h. Generated by config.status. */
7902 if test x"$ac_file" = x-; then
7903 echo "/* Generated by configure. */" >$tmp/config.h
7905 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7907 cat $tmp/in >>$tmp/config.h
7909 if test x"$ac_file" != x-; then
7910 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7911 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7912 echo "$as_me: $ac_file is unchanged" >&6;}
7914 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7915 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7916 X"$ac_file" : 'X\(//\)[^/]' \| \
7917 X"$ac_file" : 'X\(//\)$' \| \
7918 X"$ac_file" : 'X\(/\)' \| \
7919 . : '\(.\)' 2>/dev/null ||
7921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7922 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7923 /^X\(\/\/\)$/{ s//\1/; q; }
7924 /^X\(\/\).*/{ s//\1/; q; }
7926 { if $as_mkdir_p; then
7931 while test ! -d "$as_dir"; do
7932 as_dirs="$as_dir $as_dirs"
7933 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7934 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7935 X"$as_dir" : 'X\(//\)[^/]' \| \
7936 X"$as_dir" : 'X\(//\)$' \| \
7937 X"$as_dir" : 'X\(/\)' \| \
7938 . : '\(.\)' 2>/dev/null ||
7940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7942 /^X\(\/\/\)$/{ s//\1/; q; }
7943 /^X\(\/\).*/{ s//\1/; q; }
7946 test ! -n "$as_dirs" || mkdir $as_dirs
7947 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7948 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7949 { (exit 1); exit 1; }; }; }
7952 mv $tmp/config.h $ac_file
7958 # Compute $ac_file's index in $config_headers.
7960 for _am_header in $config_headers :; do
7962 $ac_file | $ac_file:* )
7965 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7968 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7969 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7970 X$ac_file : 'X\(//\)[^/]' \| \
7971 X$ac_file : 'X\(//\)$' \| \
7972 X$ac_file : 'X\(/\)' \| \
7973 . : '\(.\)' 2>/dev/null ||
7975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7977 /^X\(\/\/\)$/{ s//\1/; q; }
7978 /^X\(\/\).*/{ s//\1/; q; }
7979 s/.*/./; q'`/stamp-h$_am_stamp_count
7982 cat >>$CONFIG_STATUS <<\_ACEOF
7985 # CONFIG_COMMANDS section.
7987 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7988 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7989 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7990 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7991 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7992 X"$ac_dest" : 'X\(//\)[^/]' \| \
7993 X"$ac_dest" : 'X\(//\)$' \| \
7994 X"$ac_dest" : 'X\(/\)' \| \
7995 . : '\(.\)' 2>/dev/null ||
7997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7999 /^X\(\/\/\)$/{ s//\1/; q; }
8000 /^X\(\/\).*/{ s//\1/; q; }
8002 { if $as_mkdir_p; then
8007 while test ! -d "$as_dir"; do
8008 as_dirs="$as_dir $as_dirs"
8009 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8011 X"$as_dir" : 'X\(//\)[^/]' \| \
8012 X"$as_dir" : 'X\(//\)$' \| \
8013 X"$as_dir" : 'X\(/\)' \| \
8014 . : '\(.\)' 2>/dev/null ||
8016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8018 /^X\(\/\/\)$/{ s//\1/; q; }
8019 /^X\(\/\).*/{ s//\1/; q; }
8022 test ! -n "$as_dirs" || mkdir $as_dirs
8023 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8024 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8025 { (exit 1); exit 1; }; }; }
8029 if test "$ac_dir" != .; then
8030 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8031 # A "../" for each directory in $ac_dir_suffix.
8032 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8034 ac_dir_suffix= ac_top_builddir=
8038 .) # No --srcdir option. We are building in place.
8040 if test -z "$ac_top_builddir"; then
8043 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8045 [\\/]* | ?:[\\/]* ) # Absolute path.
8046 ac_srcdir=$srcdir$ac_dir_suffix;
8047 ac_top_srcdir=$srcdir ;;
8049 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8050 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8053 # Do not use `cd foo && pwd` to compute absolute paths, because
8054 # the directories may not exist.
8056 .) ac_abs_builddir="$ac_dir";;
8059 .) ac_abs_builddir=`pwd`;;
8060 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8061 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8064 case $ac_abs_builddir in
8065 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8067 case ${ac_top_builddir}. in
8068 .) ac_abs_top_builddir=$ac_abs_builddir;;
8069 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8070 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8073 case $ac_abs_builddir in
8074 .) ac_abs_srcdir=$ac_srcdir;;
8077 .) ac_abs_srcdir=$ac_abs_builddir;;
8078 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8079 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8082 case $ac_abs_builddir in
8083 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8085 case $ac_top_srcdir in
8086 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8087 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8088 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8093 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8094 echo "$as_me: executing $ac_dest commands" >&6;}
8096 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8097 # Strip MF so we end up with the name of the file.
8098 mf=`echo "$mf" | sed -e 's/:.*$//'`
8099 # Check whether this is an Automake generated Makefile or not.
8100 # We used to match only the files named `Makefile.in', but
8101 # some people rename them; so instead we look at the file content.
8102 # Grep'ing the first line is not enough: some people post-process
8103 # each Makefile.in and add a new line on top of each file to say so.
8104 # So let's grep whole file.
8105 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8106 dirpart=`(dirname "$mf") 2>/dev/null ||
8107 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8108 X"$mf" : 'X\(//\)[^/]' \| \
8109 X"$mf" : 'X\(//\)$' \| \
8110 X"$mf" : 'X\(/\)' \| \
8111 . : '\(.\)' 2>/dev/null ||
8113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8115 /^X\(\/\/\)$/{ s//\1/; q; }
8116 /^X\(\/\).*/{ s//\1/; q; }
8121 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8122 # Extract the definition of DEP_FILES from the Makefile without
8124 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8125 test -z "$DEPDIR" && continue
8126 # When using ansi2knr, U may be empty or an underscore; expand it
8127 U=`sed -n 's/^U = //p' < "$mf"`
8128 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8129 # We invoke sed twice because it is the simplest approach to
8130 # changing $(DEPDIR) to its actual value in the expansion.
8131 for file in `sed -n '
8132 /^DEP_FILES = .*\\\\$/ {
8141 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8142 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8143 # Make sure the directory exists.
8144 test -f "$dirpart/$file" && continue
8145 fdir=`(dirname "$file") 2>/dev/null ||
8146 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8147 X"$file" : 'X\(//\)[^/]' \| \
8148 X"$file" : 'X\(//\)$' \| \
8149 X"$file" : 'X\(/\)' \| \
8150 . : '\(.\)' 2>/dev/null ||
8152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8153 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8154 /^X\(\/\/\)$/{ s//\1/; q; }
8155 /^X\(\/\).*/{ s//\1/; q; }
8157 { if $as_mkdir_p; then
8158 mkdir -p $dirpart/$fdir
8160 as_dir=$dirpart/$fdir
8162 while test ! -d "$as_dir"; do
8163 as_dirs="$as_dir $as_dirs"
8164 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8165 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8166 X"$as_dir" : 'X\(//\)[^/]' \| \
8167 X"$as_dir" : 'X\(//\)$' \| \
8168 X"$as_dir" : 'X\(/\)' \| \
8169 . : '\(.\)' 2>/dev/null ||
8171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8173 /^X\(\/\/\)$/{ s//\1/; q; }
8174 /^X\(\/\).*/{ s//\1/; q; }
8177 test ! -n "$as_dirs" || mkdir $as_dirs
8178 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8179 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8180 { (exit 1); exit 1; }; }; }
8182 # echo "creating $dirpart/$file"
8183 echo '# dummy' > "$dirpart/$file"
8191 cat >>$CONFIG_STATUS <<\_ACEOF
8193 { (exit 0); exit 0; }
8195 chmod +x $CONFIG_STATUS
8196 ac_clean_files=$ac_clean_files_save
8199 # configure is writing to config.log, and then calls config.status.
8200 # config.status does its own redirection, appending to config.log.
8201 # Unfortunately, on DOS this fails, as config.log is still kept open
8202 # by configure, so config.status won't be able to write to it; its
8203 # output is simply discarded. So we exec the FD to /dev/null,
8204 # effectively closing config.log, so it can be properly (re)opened and
8205 # appended to by config.status. When coming back to configure, we
8206 # need to make the FD available again.
8207 if test "$no_create" != yes; then
8209 ac_config_status_args=
8210 test "$silent" = yes &&
8211 ac_config_status_args="$ac_config_status_args --quiet"
8213 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8215 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8216 # would make configure fail if this is the last instruction.
8217 $ac_cs_success || { (exit 1); exit 1; }