2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Abook 0.6.1.
5 # Report bugs to <abook-devel@lists.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: abook-devel@lists.sourceforge.net about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
582 PACKAGE_TARNAME='abook'
583 PACKAGE_VERSION='0.6.1'
584 PACKAGE_STRING='Abook 0.6.1'
585 PACKAGE_BUGREPORT='abook-devel@lists.sourceforge.net'
586 PACKAGE_URL='http://abook.sourceforge.net'
588 ac_unique_file="abook.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
626 ac_subst_vars='am__EXEEXT_FALSE
630 ENABLE_VFORMAT_SUPPORT_FALSE
631 ENABLE_VFORMAT_SUPPORT_TRUE
632 USE_INCLUDED_INTL_H_FALSE
633 USE_INCLUDED_INTL_H_TRUE
649 XGETTEXT_EXTRA_OPTIONS
657 GETTEXT_MACRO_VERSION
691 INSTALL_STRIP_PROGRAM
733 program_transform_name
746 enable_option_checking
748 enable_dependency_tracking
760 ac_precious_vars='build_alias
771 # Initialize some variables set by options.
773 ac_init_version=false
774 ac_unrecognized_opts=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
785 program_transform_name=s,x,x,
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
831 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 # Accept the important Cygnus configure options, so we can diagnose typos.
838 case $ac_dashdash$ac_option in
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
860 cache_file=config.cache ;;
862 -datadir | --datadir | --datadi | --datad)
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
888 eval enable_$ac_useropt=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
914 eval enable_$ac_useropt=\$ac_optarg ;;
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
929 -help | --help | --hel | --he | -h)
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 htmldir=$ac_optarg ;;
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
959 -libdir | --libdir | --libdi | --libd)
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
971 -localedir | --localedir | --localedi | --localed | --locale)
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989 # Obsolete; use --without-fp.
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1050 -psdir | --psdir | --psdi | --psd | --ps)
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 sbindir=$ac_optarg ;;
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 sharedstatedir=$ac_optarg ;;
1076 -site | --site | --sit)
1078 -site=* | --site=* | --sit=*)
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1118 eval with_$ac_useropt=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1134 eval with_$ac_useropt=no ;;
1137 # Obsolete; use --with-x.
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1154 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error $? "missing argument to $ac_option"
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1205 # Be sure to have absolute directory names.
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1218 target=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 elif test "x$build_alias" != "x$host_alias"; then
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232 test "$silent" = yes && exec 6>/dev/null
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238 as_fn_error $? "working directory cannot be determined"
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240 as_fn_error $? "pwd does not report name of working directory"
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$as_myself" : 'X\(//\)[^/]' \| \
1250 X"$as_myself" : 'X\(//\)$' \| \
1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 $as_echo X"$as_myself" |
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1275 ac_srcdir_defaulted=no
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285 # When building in place, set srcdir=.
1286 if test "$ac_abs_confdir" = "$ac_pwd"; then
1289 # Remove unnecessary trailing slashes from srcdir.
1290 # Double slashes in file names in object file debugging info
1291 # mess up M-x gdb in Emacs.
1293 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295 for ac_var in $ac_precious_vars; do
1296 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_env_${ac_var}_value=\$${ac_var}
1298 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303 # Report the --help message.
1305 if test "$ac_init_help" = "long"; then
1306 # Omit some internal or obsolete options to make the list less imposing.
1307 # This message is too long to be a string in the A/UX 3.1 sh.
1309 \`configure' configures Abook 0.6.1 to adapt to many kinds of systems.
1311 Usage: $0 [OPTION]... [VAR=VALUE]...
1313 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314 VAR=VALUE. See below for descriptions of some of the useful variables.
1316 Defaults for the options are specified in brackets.
1319 -h, --help display this help and exit
1320 --help=short display options specific to this package
1321 --help=recursive display the short help of all the included packages
1322 -V, --version display version information and exit
1323 -q, --quiet, --silent do not print \`checking ...' messages
1324 --cache-file=FILE cache test results in FILE [disabled]
1325 -C, --config-cache alias for \`--cache-file=config.cache'
1326 -n, --no-create do not create output files
1327 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1329 Installation directories:
1330 --prefix=PREFIX install architecture-independent files in PREFIX
1331 [$ac_default_prefix]
1332 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1335 By default, \`make install' will install all the files in
1336 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1337 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338 for instance \`--prefix=\$HOME'.
1340 For better control, use the options below.
1342 Fine tuning of the installation directories:
1343 --bindir=DIR user executables [EPREFIX/bin]
1344 --sbindir=DIR system admin executables [EPREFIX/sbin]
1345 --libexecdir=DIR program executables [EPREFIX/libexec]
1346 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1347 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1348 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1349 --libdir=DIR object code libraries [EPREFIX/lib]
1350 --includedir=DIR C header files [PREFIX/include]
1351 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1352 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1353 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1354 --infodir=DIR info documentation [DATAROOTDIR/info]
1355 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1356 --mandir=DIR man documentation [DATAROOTDIR/man]
1357 --docdir=DIR documentation root [DATAROOTDIR/doc/abook]
1358 --htmldir=DIR html documentation [DOCDIR]
1359 --dvidir=DIR dvi documentation [DOCDIR]
1360 --pdfdir=DIR pdf documentation [DOCDIR]
1361 --psdir=DIR ps documentation [DOCDIR]
1367 --program-prefix=PREFIX prepend PREFIX to installed program names
1368 --program-suffix=SUFFIX append SUFFIX to installed program names
1369 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1372 --build=BUILD configure for building on BUILD [guessed]
1373 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of Abook 0.6.1:";;
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --enable-silent-rules less verbose build output (undo: "make V=1")
1388 --disable-silent-rules verbose build output (undo: "make V=0")
1389 --enable-dependency-tracking
1390 do not reject slow dependency extractors
1391 --disable-dependency-tracking
1392 speeds up one-time build
1393 --disable-nls do not use Native Language Support
1394 --disable-rpath do not hardcode runtime library paths
1395 --enable-vformat Use libvformat is available
1396 --enable-debug Enable debugging support
1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1401 --with-gnu-ld assume the C compiler uses GNU ld default=no
1402 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1403 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1404 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1405 --without-libintl-prefix don't search for libintl in includedir and libdir
1406 --with-localedir=PATH Where the locale files are installed
1407 --with-curses=DIR Where ncurses is installed
1408 --with-readline=DIR Where readline is installed
1410 Some influential environment variables:
1411 CC C compiler command
1412 CFLAGS C compiler flags
1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1414 nonstandard directory <lib dir>
1415 LIBS libraries to pass to the linker, e.g. -l<library>
1416 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1417 you have headers in a nonstandard directory <include dir>
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1423 Report bugs to <abook-devel@lists.sourceforge.net>.
1424 Abook home page: <http://abook.sourceforge.net>.
1429 if test "$ac_init_help" = "recursive"; then
1430 # If there are subdirs, report their specific --help.
1431 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1432 test -d "$ac_dir" ||
1433 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1441 # A ".." for each directory in $ac_dir_suffix.
1442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443 case $ac_top_builddir_sub in
1444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1448 ac_abs_top_builddir=$ac_pwd
1449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1450 # for backward compatibility:
1451 ac_top_builddir=$ac_top_build_prefix
1454 .) # We are building in place.
1456 ac_top_srcdir=$ac_top_builddir_sub
1457 ac_abs_top_srcdir=$ac_pwd ;;
1458 [\\/]* | ?:[\\/]* ) # Absolute name.
1459 ac_srcdir=$srcdir$ac_dir_suffix;
1460 ac_top_srcdir=$srcdir
1461 ac_abs_top_srcdir=$srcdir ;;
1463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464 ac_top_srcdir=$ac_top_build_prefix$srcdir
1465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469 cd "$ac_dir" || { ac_status=$?; continue; }
1470 # Check for guested configure.
1471 if test -f "$ac_srcdir/configure.gnu"; then
1473 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1474 elif test -f "$ac_srcdir/configure"; then
1476 $SHELL "$ac_srcdir/configure" --help=recursive
1478 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480 cd "$ac_pwd" || { ac_status=$?; break; }
1484 test -n "$ac_init_help" && exit $ac_status
1485 if $ac_init_version; then
1487 Abook configure 0.6.1
1488 generated by GNU Autoconf 2.69
1490 Copyright (C) 2012 Free Software Foundation, Inc.
1491 This configure script is free software; the Free Software Foundation
1492 gives unlimited permission to copy, distribute and modify it.
1497 ## ------------------------ ##
1498 ## Autoconf initialization. ##
1499 ## ------------------------ ##
1501 # ac_fn_c_try_compile LINENO
1502 # --------------------------
1503 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1504 ac_fn_c_try_compile ()
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 rm -f conftest.$ac_objext
1508 if { { ac_try="$ac_compile"
1510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1511 *) ac_try_echo=$ac_try;;
1513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514 $as_echo "$ac_try_echo"; } >&5
1515 (eval "$ac_compile") 2>conftest.err
1517 if test -s conftest.err; then
1518 grep -v '^ *+' conftest.err >conftest.er1
1519 cat conftest.er1 >&5
1520 mv -f conftest.er1 conftest.err
1522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523 test $ac_status = 0; } && {
1524 test -z "$ac_c_werror_flag" ||
1525 test ! -s conftest.err
1526 } && test -s conftest.$ac_objext; then :
1529 $as_echo "$as_me: failed program was:" >&5
1530 sed 's/^/| /' conftest.$ac_ext >&5
1534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1535 as_fn_set_status $ac_retval
1537 } # ac_fn_c_try_compile
1539 # ac_fn_c_try_cpp LINENO
1540 # ----------------------
1541 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 if { { ac_try="$ac_cpp conftest.$ac_ext"
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } > conftest.i && {
1561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1576 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1577 # -------------------------------------------------------
1578 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1579 # the include files in INCLUDES and setting the cache variable VAR
1581 ac_fn_c_check_header_mongrel ()
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if eval \${$3+:} false; then :
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586 $as_echo_n "checking for $2... " >&6; }
1587 if eval \${$3+:} false; then :
1588 $as_echo_n "(cached) " >&6
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592 $as_echo "$ac_res" >&6; }
1594 # Is the header compilable?
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1596 $as_echo_n "checking $2 usability... " >&6; }
1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h. */
1602 if ac_fn_c_try_compile "$LINENO"; then :
1603 ac_header_compiler=yes
1605 ac_header_compiler=no
1607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1609 $as_echo "$ac_header_compiler" >&6; }
1611 # Is the header present?
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1613 $as_echo_n "checking $2 presence... " >&6; }
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1618 if ac_fn_c_try_cpp "$LINENO"; then :
1619 ac_header_preproc=yes
1621 ac_header_preproc=no
1623 rm -f conftest.err conftest.i conftest.$ac_ext
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1625 $as_echo "$ac_header_preproc" >&6; }
1627 # So? What about this header?
1628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1631 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1637 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1639 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1641 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1643 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1645 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1646 ( $as_echo "## ------------------------------------------------ ##
1647 ## Report this to abook-devel@lists.sourceforge.net ##
1648 ## ------------------------------------------------ ##"
1649 ) | sed "s/^/$as_me: WARNING: /" >&2
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653 $as_echo_n "checking for $2... " >&6; }
1654 if eval \${$3+:} false; then :
1655 $as_echo_n "(cached) " >&6
1657 eval "$3=\$ac_header_compiler"
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 } # ac_fn_c_check_header_mongrel
1667 # ac_fn_c_try_run LINENO
1668 # ----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1670 # that executables *can* be run.
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_link"
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>&5
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1685 { { case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_try") 2>&5
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; }; }; then :
1697 $as_echo "$as_me: program exited with status $ac_status" >&5
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1701 ac_retval=$ac_status
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1709 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1710 # -------------------------------------------------------
1711 # Tests whether HEADER exists and can be compiled using the include files in
1712 # INCLUDES, setting the cache variable VAR accordingly.
1713 ac_fn_c_check_header_compile ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1726 if ac_fn_c_try_compile "$LINENO"; then :
1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 } # ac_fn_c_check_header_compile
1740 # ac_fn_c_try_link LINENO
1741 # -----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded.
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 test -x conftest$ac_exeext
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778 # interfere with the next link command; also delete a directory that is
1779 # left behind by Apple's compiler. We do this before executing the actions.
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1784 } # ac_fn_c_try_link
1786 # ac_fn_c_check_func LINENO FUNC VAR
1787 # ----------------------------------
1788 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1789 ac_fn_c_check_func ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1799 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1801 #define $2 innocuous_$2
1803 /* System header to define __stub macros and hopefully few prototypes,
1804 which can conflict with char $2 (); below.
1805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1806 <limits.h> exists even on freestanding compilers. */
1809 # include <limits.h>
1811 # include <assert.h>
1816 /* Override any GCC internal prototype to avoid an error.
1817 Use char because int might match the return type of a GCC
1818 builtin and then its argument prototype would still apply. */
1823 /* The GNU C library defines this for functions which it implements
1824 to always fail with ENOSYS. Some functions are actually named
1825 something starting with __ and the normal name is an alias. */
1826 #if defined __stub_$2 || defined __stub___$2
1838 if ac_fn_c_try_link "$LINENO"; then :
1843 rm -f core conftest.err conftest.$ac_objext \
1844 conftest$ac_exeext conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 } # ac_fn_c_check_func
1853 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1854 # ---------------------------------------------
1855 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1857 ac_fn_c_check_decl ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 as_decl_name=`echo $2|sed 's/ *(.*//'`
1861 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1863 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1864 if eval \${$3+:} false; then :
1865 $as_echo_n "(cached) " >&6
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1873 #ifndef $as_decl_name
1875 (void) $as_decl_use;
1877 (void) $as_decl_name;
1885 if ac_fn_c_try_compile "$LINENO"; then :
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 } # ac_fn_c_check_decl
1899 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1900 # -------------------------------------------
1901 # Tests whether TYPE exists after having included INCLUDES, setting cache
1902 # variable VAR accordingly.
1903 ac_fn_c_check_type ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1937 if ac_fn_c_try_compile "$LINENO"; then :
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 } # ac_fn_c_check_type
1952 cat >config.log <<_ACEOF
1953 This file contains any messages produced by compilers while
1954 running configure, to aid debugging if configure makes a mistake.
1956 It was created by Abook $as_me 0.6.1, which was
1957 generated by GNU Autoconf 2.69. Invocation command line was
1969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1970 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1971 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1972 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1973 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1976 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1978 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1979 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1981 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1982 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1983 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1984 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 $as_echo "PATH: $as_dir"
2009 # Keep a trace of the command line.
2010 # Strip out --no-create and --no-recursion so they do not pile up.
2011 # Strip out --silent because we don't want to record it for future runs.
2012 # Also quote any args containing shell meta-characters.
2013 # Make two passes to allow for proper duplicate-argument suppression.
2017 ac_must_keep_next=false
2023 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2025 | -silent | --silent | --silen | --sile | --sil)
2028 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2031 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2033 as_fn_append ac_configure_args1 " '$ac_arg'"
2034 if test $ac_must_keep_next = true; then
2035 ac_must_keep_next=false # Got value, back to normal.
2038 *=* | --config-cache | -C | -disable-* | --disable-* \
2039 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2040 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2041 | -with-* | --with-* | -without-* | --without-* | --x)
2042 case "$ac_configure_args0 " in
2043 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2046 -* ) ac_must_keep_next=true ;;
2049 as_fn_append ac_configure_args " '$ac_arg'"
2054 { ac_configure_args0=; unset ac_configure_args0;}
2055 { ac_configure_args1=; unset ac_configure_args1;}
2057 # When interrupted or exit'd, cleanup temporary files, and complete
2058 # config.log. We remove comments because anyway the quotes in there
2059 # would cause problems or look ugly.
2060 # WARNING: Use '\'' to represent an apostrophe within the trap.
2061 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2062 trap 'exit_status=$?
2063 # Save into config.log some information that might help in debugging.
2067 $as_echo "## ---------------- ##
2068 ## Cache variables. ##
2069 ## ---------------- ##"
2071 # The following way of writing the cache mishandles newlines in values,
2073 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2074 eval ac_val=\$$ac_var
2078 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2079 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2082 _ | IFS | as_nl) ;; #(
2083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2084 *) { eval $ac_var=; unset $ac_var;} ;;
2089 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2090 *${as_nl}ac_space=\ *)
2092 "s/'\''/'\''\\\\'\'''\''/g;
2093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2103 $as_echo "## ----------------- ##
2104 ## Output variables. ##
2105 ## ----------------- ##"
2107 for ac_var in $ac_subst_vars
2109 eval ac_val=\$$ac_var
2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113 $as_echo "$ac_var='\''$ac_val'\''"
2117 if test -n "$ac_subst_files"; then
2118 $as_echo "## ------------------- ##
2119 ## File substitutions. ##
2120 ## ------------------- ##"
2122 for ac_var in $ac_subst_files
2124 eval ac_val=\$$ac_var
2126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128 $as_echo "$ac_var='\''$ac_val'\''"
2133 if test -s confdefs.h; then
2134 $as_echo "## ----------- ##
2141 test "$ac_signal" != 0 &&
2142 $as_echo "$as_me: caught signal $ac_signal"
2143 $as_echo "$as_me: exit $exit_status"
2145 rm -f core *.core core.conftest.* &&
2146 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2149 for ac_signal in 1 2 13 15; do
2150 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2155 rm -f -r conftest* confdefs.h
2157 $as_echo "/* confdefs.h */" > confdefs.h
2159 # Predefined preprocessor variables.
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_NAME "$PACKAGE_NAME"
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_STRING "$PACKAGE_STRING"
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_URL "$PACKAGE_URL"
2186 # Let the site file select an alternate cache file if it wants to.
2187 # Prefer an explicitly selected file to automatically selected ones.
2190 if test -n "$CONFIG_SITE"; then
2191 # We do not want a PATH search for config.site.
2192 case $CONFIG_SITE in #((
2193 -*) ac_site_file1=./$CONFIG_SITE;;
2194 */*) ac_site_file1=$CONFIG_SITE;;
2195 *) ac_site_file1=./$CONFIG_SITE;;
2197 elif test "x$prefix" != xNONE; then
2198 ac_site_file1=$prefix/share/config.site
2199 ac_site_file2=$prefix/etc/config.site
2201 ac_site_file1=$ac_default_prefix/share/config.site
2202 ac_site_file2=$ac_default_prefix/etc/config.site
2204 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2206 test "x$ac_site_file" = xNONE && continue
2207 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2209 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2210 sed 's/^/| /' "$ac_site_file" >&5
2212 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 as_fn_error $? "failed to load site script $ac_site_file
2215 See \`config.log' for more details" "$LINENO" 5; }
2219 if test -r "$cache_file"; then
2220 # Some versions of bash will fail to source /dev/null (special files
2221 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2222 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2224 $as_echo "$as_me: loading cache $cache_file" >&6;}
2226 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2227 *) . "./$cache_file";;
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2232 $as_echo "$as_me: creating cache $cache_file" >&6;}
2236 gt_needs="$gt_needs "
2237 # Check that the precious variables saved in the cache have kept the same
2239 ac_cache_corrupted=false
2240 for ac_var in $ac_precious_vars; do
2241 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2242 eval ac_new_set=\$ac_env_${ac_var}_set
2243 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2244 eval ac_new_val=\$ac_env_${ac_var}_value
2245 case $ac_old_set,$ac_new_set in
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2248 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2249 ac_cache_corrupted=: ;;
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2252 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2253 ac_cache_corrupted=: ;;
2256 if test "x$ac_old_val" != "x$ac_new_val"; then
2257 # differences in whitespace do not lead to failure.
2258 ac_old_val_w=`echo x $ac_old_val`
2259 ac_new_val_w=`echo x $ac_new_val`
2260 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2262 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2263 ac_cache_corrupted=:
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2266 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2267 eval $ac_var=\$ac_old_val
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2270 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2272 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2275 # Pass precious variables to config.status.
2276 if test "$ac_new_set" = set; then
2278 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2279 *) ac_arg=$ac_var=$ac_new_val ;;
2281 case " $ac_configure_args " in
2282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2283 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2287 if $ac_cache_corrupted; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2291 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2292 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2294 ## -------------------- ##
2295 ## Main body of script. ##
2296 ## -------------------- ##
2299 ac_cpp='$CPP $CPPFLAGS'
2300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2306 ac_config_headers="$ac_config_headers config.h"
2308 am__api_version='1.14'
2311 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2312 if test -f "$ac_dir/install-sh"; then
2314 ac_install_sh="$ac_aux_dir/install-sh -c"
2316 elif test -f "$ac_dir/install.sh"; then
2318 ac_install_sh="$ac_aux_dir/install.sh -c"
2320 elif test -f "$ac_dir/shtool"; then
2322 ac_install_sh="$ac_aux_dir/shtool install -c"
2326 if test -z "$ac_aux_dir"; then
2327 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2330 # These three variables are undocumented and unsupported,
2331 # and are intended to be withdrawn in a future Autoconf release.
2332 # They can cause serious problems if a builder's source tree is in a directory
2333 # whose full name contains unusual characters.
2334 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2335 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2336 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2339 # Find a good install program. We prefer a C program (faster),
2340 # so one script is as good as another. But avoid the broken or
2341 # incompatible versions:
2342 # SysV /etc/install, /usr/sbin/install
2343 # SunOS /usr/etc/install
2344 # IRIX /sbin/install
2346 # AmigaOS /C/install, which installs bootblocks on floppy discs
2347 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2348 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2349 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2350 # OS/2's system install, which has a completely different semantic
2351 # ./install, which can be erroneously created by make from ./install.sh.
2352 # Reject install programs that cannot install multiple files.
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2354 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2355 if test -z "$INSTALL"; then
2356 if ${ac_cv_path_install+:} false; then :
2357 $as_echo_n "(cached) " >&6
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 test -z "$as_dir" && as_dir=.
2364 # Account for people who put trailing slashes in PATH elements.
2365 case $as_dir/ in #((
2366 ./ | .// | /[cC]/* | \
2367 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2368 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2371 # OSF1 and SCO ODT 3.0 have their own names for install.
2372 # Don't use installbsd from OSF since it installs stuff as root
2374 for ac_prog in ginstall scoinst install; do
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2377 if test $ac_prog = install &&
2378 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2379 # AIX install. It has an incompatible calling convention.
2381 elif test $ac_prog = install &&
2382 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2383 # program-specific install script used by HP pwplus--don't use.
2386 rm -rf conftest.one conftest.two conftest.dir
2387 echo one > conftest.one
2388 echo two > conftest.two
2390 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2391 test -s conftest.one && test -s conftest.two &&
2392 test -s conftest.dir/conftest.one &&
2393 test -s conftest.dir/conftest.two
2395 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2408 rm -rf conftest.one conftest.two conftest.dir
2411 if test "${ac_cv_path_install+set}" = set; then
2412 INSTALL=$ac_cv_path_install
2414 # As a last resort, use the slow shell script. Don't cache a
2415 # value for INSTALL within a source directory, because that will
2416 # break other packages using the cache if that directory is
2417 # removed, or if the value is a relative name.
2418 INSTALL=$ac_install_sh
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2422 $as_echo "$INSTALL" >&6; }
2424 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2425 # It thinks the first close brace ends the variable substitution.
2426 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2428 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2430 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2433 $as_echo_n "checking whether build environment is sane... " >&6; }
2434 # Reject unsafe characters in $srcdir or the absolute working directory
2435 # name. Accept space and tab only in the latter.
2439 *[\\\"\#\$\&\'\`$am_lf]*)
2440 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2443 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2444 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2447 # Do 'set' in a subshell so we don't clobber the current shell's
2448 # arguments. Must try -L first in case configure is actually a
2449 # symlink; some systems play weird games with the mod time of symlinks
2450 # (eg FreeBSD returns the mod time of the symlink's containing
2454 for am_try in 1 2; do
2455 echo "timestamp, slept: $am_has_slept" > conftest.file
2456 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2457 if test "$*" = "X"; then
2459 set X `ls -t "$srcdir/configure" conftest.file`
2461 if test "$*" != "X $srcdir/configure conftest.file" \
2462 && test "$*" != "X conftest.file $srcdir/configure"; then
2464 # If neither matched, then we have a broken ls. This can happen
2465 # if, for instance, CONFIG_SHELL is bash and it inherits a
2466 # broken ls alias from the environment. This has actually
2467 # happened. Such a system could not be considered "sane".
2468 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2469 alias in your environment" "$LINENO" 5
2471 if test "$2" = conftest.file || test $am_try -eq 2; then
2478 test "$2" = conftest.file
2484 as_fn_error $? "newly created file is older than distributed files!
2485 Check your system clock" "$LINENO" 5
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2488 $as_echo "yes" >&6; }
2489 # If we didn't sleep, we still need to ensure time stamps of config.status and
2490 # generated files are strictly newer.
2492 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2499 test "$program_prefix" != NONE &&
2500 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2501 # Use a double $ so make ignores it.
2502 test "$program_suffix" != NONE &&
2503 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2504 # Double any \ or $.
2505 # By default was `s,x,x', remove it if useless.
2506 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2507 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2509 # Expand $ac_aux_dir to an absolute path.
2510 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2512 if test x"${MISSING+set}" != xset; then
2515 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2517 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2520 # Use eval to expand $SHELL
2521 if eval "$MISSING --is-lightweight"; then
2522 am_missing_run="$MISSING "
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2526 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2529 if test x"${install_sh}" != xset; then
2532 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2534 install_sh="\${SHELL} $am_aux_dir/install-sh"
2538 # Installed binaries are usually stripped using 'strip' when the user
2539 # run "make install-strip". However 'strip' might not be the right
2540 # tool to use in cross-compilation environments, therefore Automake
2541 # will honor the 'STRIP' environment variable to overrule this program.
2542 if test "$cross_compiling" != no; then
2543 if test -n "$ac_tool_prefix"; then
2544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}strip; ac_word=$2
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if ${ac_cv_prog_STRIP+:} false; then :
2549 $as_echo_n "(cached) " >&6
2551 if test -n "$STRIP"; then
2552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2561 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 STRIP=$ac_cv_prog_STRIP
2572 if test -n "$STRIP"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2574 $as_echo "$STRIP" >&6; }
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577 $as_echo "no" >&6; }
2582 if test -z "$ac_cv_prog_STRIP"; then
2584 # Extract the first word of "strip", so it can be a program name with args.
2585 set dummy strip; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2589 $as_echo_n "(cached) " >&6
2591 if test -n "$ac_ct_STRIP"; then
2592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601 ac_cv_prog_ac_ct_STRIP="strip"
2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2612 if test -n "$ac_ct_STRIP"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2614 $as_echo "$ac_ct_STRIP" >&6; }
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2620 if test "x$ac_ct_STRIP" = x; then
2623 case $cross_compiling:$ac_tool_warned in
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2627 ac_tool_warned=yes ;;
2632 STRIP="$ac_cv_prog_STRIP"
2636 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2639 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2640 if test -z "$MKDIR_P"; then
2641 if ${ac_cv_path_mkdir+:} false; then :
2642 $as_echo_n "(cached) " >&6
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2648 test -z "$as_dir" && as_dir=.
2649 for ac_prog in mkdir gmkdir; do
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2652 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2653 'mkdir (GNU coreutils) '* | \
2654 'mkdir (coreutils) '* | \
2655 'mkdir (fileutils) '4.1*)
2656 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2666 test -d ./--version && rmdir ./--version
2667 if test "${ac_cv_path_mkdir+set}" = set; then
2668 MKDIR_P="$ac_cv_path_mkdir -p"
2670 # As a last resort, use the slow shell script. Don't cache a
2671 # value for MKDIR_P within a source directory, because that will
2672 # break other packages using the cache if that directory is
2673 # removed, or if the value is a relative name.
2674 MKDIR_P="$ac_install_sh -d"
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2678 $as_echo "$MKDIR_P" >&6; }
2680 for ac_prog in gawk mawk nawk awk
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if ${ac_cv_prog_AWK+:} false; then :
2687 $as_echo_n "(cached) " >&6
2689 if test -n "$AWK"; then
2690 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699 ac_cv_prog_AWK="$ac_prog"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 if test -n "$AWK"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2712 $as_echo "$AWK" >&6; }
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2719 test -n "$AWK" && break
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2723 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2725 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2726 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2727 $as_echo_n "(cached) " >&6
2729 cat >conftest.make <<\_ACEOF
2732 @echo '@@@%%%=$(MAKE)=@@@%%%'
2734 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2735 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2737 eval ac_cv_prog_make_${ac_make}_set=yes;;
2739 eval ac_cv_prog_make_${ac_make}_set=no;;
2743 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2745 $as_echo "yes" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 SET_MAKE="MAKE=${MAKE-make}"
2753 rm -rf .tst 2>/dev/null
2754 mkdir .tst 2>/dev/null
2755 if test -d .tst; then
2760 rmdir .tst 2>/dev/null
2762 # Check whether --enable-silent-rules was given.
2763 if test "${enable_silent_rules+set}" = set; then :
2764 enableval=$enable_silent_rules;
2767 case $enable_silent_rules in # (((
2768 yes) AM_DEFAULT_VERBOSITY=0;;
2769 no) AM_DEFAULT_VERBOSITY=1;;
2770 *) AM_DEFAULT_VERBOSITY=1;;
2772 am_make=${MAKE-make}
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2774 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2775 if ${am_cv_make_support_nested_variables+:} false; then :
2776 $as_echo_n "(cached) " >&6
2778 if $as_echo 'TRUE=$(BAR$(V))
2784 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2785 am_cv_make_support_nested_variables=yes
2787 am_cv_make_support_nested_variables=no
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2791 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2792 if test $am_cv_make_support_nested_variables = yes; then
2794 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2796 AM_V=$AM_DEFAULT_VERBOSITY
2797 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2801 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2802 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2803 # is not polluted with repeated "-I."
2804 am__isrc=' -I$(srcdir)'
2805 # test to see if srcdir already configured
2806 if test -f $srcdir/config.status; then
2807 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2811 # test whether we have cygpath
2812 if test -z "$CYGPATH_W"; then
2813 if (cygpath --version) >/dev/null 2>/dev/null; then
2814 CYGPATH_W='cygpath -w'
2821 # Define the identity of the package.
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE "$PACKAGE"
2831 cat >>confdefs.h <<_ACEOF
2832 #define VERSION "$VERSION"
2835 # Some tools Automake needs.
2837 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2840 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2843 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2846 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2849 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2851 # For better backward compatibility. To be removed once Automake 1.9.x
2852 # dies out for good. For more background, see:
2853 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2854 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2855 mkdir_p='$(MKDIR_P)'
2857 # We need awk for the "check" target. The system "awk" is bad on
2859 # Always define AMTAR for backward compatibility. Yes, it's still used
2860 # in the wild :-( We should find a proper way to deprecate it ...
2864 # We'll loop over all known methods to create a tar archive until one works.
2865 _am_tools='gnutar pax cpio none'
2867 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2874 # POSIX will say in a future version that running "rm -f" with no argument
2875 # is OK; and we want to be able to make that assumption in our Makefile
2876 # recipes. So use an aggressive probe to check that the usage we want is
2877 # actually supported "in the wild" to an acceptable degree.
2878 # See automake bug#10828.
2879 # To make any issue more visible, cause the running configure to be aborted
2880 # by default if the 'rm' program in use doesn't match our expectations; the
2881 # user can still override this though.
2882 if rm -f && rm -fr && rm -rf; then : OK; else
2886 Your 'rm' program seems unable to run without file operands specified
2887 on the command line, even when the '-f' option is present. This is contrary
2888 to the behaviour of most rm programs out there, and not conforming with
2889 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2891 Please tell bug-automake@gnu.org about your system, including the value
2892 of your $PATH and any error possibly output before this message. This
2893 can help us improve future automake versions.
2896 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2897 echo 'Configuration will proceed anyway, since you have set the' >&2
2898 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2902 Aborting the configuration process, to ensure you take notice of the issue.
2904 You can download and install GNU coreutils to get an 'rm' implementation
2905 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2907 If you want to complete the configuration process using your problematic
2908 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2909 to "yes", and re-run configure.
2912 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2918 DEPDIR="${am__leading_dot}deps"
2920 ac_config_commands="$ac_config_commands depfiles"
2923 am_make=${MAKE-make}
2924 cat > confinc << 'END'
2926 @echo this is the am__doit target
2929 # If we don't find an include directive, just comment out the code.
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2931 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2935 # First try GNU make style include.
2936 echo "include confinc" > confmf
2937 # Ignore all kinds of additional output from 'make'.
2938 case `$am_make -s -f confmf 2> /dev/null` in #(
2939 *the\ am__doit\ target*)
2945 # Now try BSD make style include.
2946 if test "$am__include" = "#"; then
2947 echo '.include "confinc"' > confmf
2948 case `$am_make -s -f confmf 2> /dev/null` in #(
2949 *the\ am__doit\ target*)
2950 am__include=.include
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2959 $as_echo "$_am_result" >&6; }
2960 rm -f confinc confmf
2962 # Check whether --enable-dependency-tracking was given.
2963 if test "${enable_dependency_tracking+set}" = set; then :
2964 enableval=$enable_dependency_tracking;
2967 if test "x$enable_dependency_tracking" != xno; then
2968 am_depcomp="$ac_aux_dir/depcomp"
2972 if test "x$enable_dependency_tracking" != xno; then
2982 ac_cpp='$CPP $CPPFLAGS'
2983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2986 if test -n "$ac_tool_prefix"; then
2987 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2988 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_CC+:} false; then :
2992 $as_echo_n "(cached) " >&6
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC="$CC" # Let the user override the test.
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 if test -n "$CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3025 if test -z "$ac_cv_prog_CC"; then
3027 # Extract the first word of "gcc", so it can be a program name with args.
3028 set dummy gcc; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3032 $as_echo_n "(cached) " >&6
3034 if test -n "$ac_ct_CC"; then
3035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044 ac_cv_prog_ac_ct_CC="gcc"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3055 if test -n "$ac_ct_CC"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3057 $as_echo "$ac_ct_CC" >&6; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3063 if test "x$ac_ct_CC" = x; then
3066 case $cross_compiling:$ac_tool_warned in
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3070 ac_tool_warned=yes ;;
3078 if test -z "$CC"; then
3079 if test -n "$ac_tool_prefix"; then
3080 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3081 set dummy ${ac_tool_prefix}cc; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_CC+:} false; then :
3085 $as_echo_n "(cached) " >&6
3087 if test -n "$CC"; then
3088 ac_cv_prog_CC="$CC" # Let the user override the test.
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_CC="${ac_tool_prefix}cc"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 if test -n "$CC"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3110 $as_echo "$CC" >&6; }
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3119 if test -z "$CC"; then
3120 # Extract the first word of "cc", so it can be a program name with args.
3121 set dummy cc; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_CC+:} false; then :
3125 $as_echo_n "(cached) " >&6
3127 if test -n "$CC"; then
3128 ac_cv_prog_CC="$CC" # Let the user override the test.
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3139 ac_prog_rejected=yes
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 if test $ac_prog_rejected = yes; then
3151 # We found a bogon in the path, so make sure we never use it.
3152 set dummy $ac_cv_prog_CC
3154 if test $# != 0; then
3155 # We chose a different compiler from the bogus one.
3156 # However, it has the same basename, so the bogon will be chosen
3157 # first if we set CC to just the basename; use the full file name.
3159 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3175 if test -z "$CC"; then
3176 if test -n "$ac_tool_prefix"; then
3177 for ac_prog in cl.exe
3179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_CC+:} false; then :
3184 $as_echo_n "(cached) " >&6
3186 if test -n "$CC"; then
3187 ac_cv_prog_CC="$CC" # Let the user override the test.
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 if test -n "$CC"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3209 $as_echo "$CC" >&6; }
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3216 test -n "$CC" && break
3219 if test -z "$CC"; then
3221 for ac_prog in cl.exe
3223 # Extract the first word of "$ac_prog", so it can be a program name with args.
3224 set dummy $ac_prog; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3228 $as_echo_n "(cached) " >&6
3230 if test -n "$ac_ct_CC"; then
3231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240 ac_cv_prog_ac_ct_CC="$ac_prog"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3251 if test -n "$ac_ct_CC"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3253 $as_echo "$ac_ct_CC" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3260 test -n "$ac_ct_CC" && break
3263 if test "x$ac_ct_CC" = x; then
3266 case $cross_compiling:$ac_tool_warned in
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3270 ac_tool_warned=yes ;;
3279 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 as_fn_error $? "no acceptable C compiler found in \$PATH
3282 See \`config.log' for more details" "$LINENO" 5; }
3284 # Provide some information about the compiler.
3285 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3288 for ac_option in --version -v -V -qversion; do
3289 { { ac_try="$ac_compiler $ac_option >&5"
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 $as_echo "$ac_try_echo"; } >&5
3296 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3298 if test -s conftest.err; then
3300 ... rest of stderr output deleted ...
3301 10q' conftest.err >conftest.er1
3302 cat conftest.er1 >&5
3304 rm -f conftest.er1 conftest.err
3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3320 ac_clean_files_save=$ac_clean_files
3321 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3322 # Try to create an executable without -o first, disregard a.out.
3323 # It will help us diagnose broken compilers, and finding out an intuition
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3326 $as_echo_n "checking whether the C compiler works... " >&6; }
3327 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3329 # The possible output files:
3330 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3333 for ac_file in $ac_files
3336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3337 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3342 if { { ac_try="$ac_link_default"
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348 $as_echo "$ac_try_echo"; } >&5
3349 (eval "$ac_link_default") 2>&5
3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352 test $ac_status = 0; }; then :
3353 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3354 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3355 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3356 # so that the user can short-circuit this test for compilers unknown to
3358 for ac_file in $ac_files ''
3360 test -f "$ac_file" || continue
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3365 # We found the default executable, but exeext='' is most
3369 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3371 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3373 # We set ac_cv_exeext here because the later test for it is not
3374 # safe: cross compilers may not add the suffix if given an `-o'
3375 # argument, so we may need to know it at that point already.
3376 # Even if this section looks crufty: it has the advantage of
3383 test "$ac_cv_exeext" = no && ac_cv_exeext=
3388 if test -z "$ac_file"; then :
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3391 $as_echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396 as_fn_error 77 "C compiler cannot create executables
3397 See \`config.log' for more details" "$LINENO" 5; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3400 $as_echo "yes" >&6; }
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3403 $as_echo_n "checking for C compiler default output file name... " >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3405 $as_echo "$ac_file" >&6; }
3406 ac_exeext=$ac_cv_exeext
3408 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3409 ac_clean_files=$ac_clean_files_save
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3411 $as_echo_n "checking for suffix of executables... " >&6; }
3412 if { { ac_try="$ac_link"
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419 (eval "$ac_link") 2>&5
3421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422 test $ac_status = 0; }; then :
3423 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3424 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3425 # work properly (i.e., refer to `conftest.exe'), while it won't with
3427 for ac_file in conftest.exe conftest conftest.*; do
3428 test -f "$ac_file" || continue
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3431 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3440 See \`config.log' for more details" "$LINENO" 5; }
3442 rm -f conftest conftest$ac_cv_exeext
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3444 $as_echo "$ac_cv_exeext" >&6; }
3446 rm -f conftest.$ac_ext
3447 EXEEXT=$ac_cv_exeext
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3455 FILE *f = fopen ("conftest.out", "w");
3456 return ferror (f) || fclose (f) != 0;
3462 ac_clean_files="$ac_clean_files conftest.out"
3463 # Check that the compiler produces executables we can run. If not, either
3464 # the compiler is broken, or we cross compile.
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3466 $as_echo_n "checking whether we are cross compiling... " >&6; }
3467 if test "$cross_compiling" != yes; then
3468 { { ac_try="$ac_link"
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474 $as_echo "$ac_try_echo"; } >&5
3475 (eval "$ac_link") 2>&5
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }
3479 if { ac_try='./conftest$ac_cv_exeext'
3480 { { case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485 $as_echo "$ac_try_echo"; } >&5
3486 (eval "$ac_try") 2>&5
3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }; }; then
3492 if test "$cross_compiling" = maybe; then
3495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497 as_fn_error $? "cannot run C compiled programs.
3498 If you meant to cross compile, use \`--host'.
3499 See \`config.log' for more details" "$LINENO" 5; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3504 $as_echo "$cross_compiling" >&6; }
3506 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3507 ac_clean_files=$ac_clean_files_save
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3509 $as_echo_n "checking for suffix of object files... " >&6; }
3510 if ${ac_cv_objext+:} false; then :
3511 $as_echo_n "(cached) " >&6
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3524 rm -f conftest.o conftest.obj
3525 if { { ac_try="$ac_compile"
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_compile") 2>&5
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }; then :
3536 for ac_file in conftest.o conftest.obj conftest.*; do
3537 test -f "$ac_file" || continue;
3539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3540 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3545 $as_echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 as_fn_error $? "cannot compute suffix of object files: cannot compile
3551 See \`config.log' for more details" "$LINENO" 5; }
3553 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3556 $as_echo "$ac_cv_objext" >&6; }
3557 OBJEXT=$ac_cv_objext
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3560 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3561 if ${ac_cv_c_compiler_gnu+:} false; then :
3562 $as_echo_n "(cached) " >&6
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3578 if ac_fn_c_try_compile "$LINENO"; then :
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3588 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3589 if test $ac_compiler_gnu = yes; then
3594 ac_test_CFLAGS=${CFLAGS+set}
3595 ac_save_CFLAGS=$CFLAGS
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3597 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3598 if ${ac_cv_prog_cc_g+:} false; then :
3599 $as_echo_n "(cached) " >&6
3601 ac_save_c_werror_flag=$ac_c_werror_flag
3602 ac_c_werror_flag=yes
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3616 if ac_fn_c_try_compile "$LINENO"; then :
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3631 if ac_fn_c_try_compile "$LINENO"; then :
3634 ac_c_werror_flag=$ac_save_c_werror_flag
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3647 if ac_fn_c_try_compile "$LINENO"; then :
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 ac_c_werror_flag=$ac_save_c_werror_flag
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3658 $as_echo "$ac_cv_prog_cc_g" >&6; }
3659 if test "$ac_test_CFLAGS" = set; then
3660 CFLAGS=$ac_save_CFLAGS
3661 elif test $ac_cv_prog_cc_g = yes; then
3662 if test "$GCC" = yes; then
3668 if test "$GCC" = yes; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3675 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3676 if ${ac_cv_prog_cc_c89+:} false; then :
3677 $as_echo_n "(cached) " >&6
3679 ac_cv_prog_cc_c89=no
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3687 struct buf { int x; };
3688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3689 static char *e (p, i)
3695 static char *f (char * (*g) (char **, int), char **p, ...)
3700 s = g (p, va_arg (v,int));
3705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3706 function prototypes and stuff, but not '\xHH' hex character constants.
3707 These don't provoke an error unfortunately, instead are silently treated
3708 as 'x'. The following induces an error, until -std is added to get
3709 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3710 array size at least. It's necessary to write '\x00'==0 to get something
3711 that's true only with -std. */
3712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3714 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3715 inside strings and character constants. */
3717 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3719 int test (int i, double x);
3720 struct s1 {int (*f) (int a);};
3721 struct s2 {int (*f) (double a);};
3722 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3728 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3733 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3734 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3736 CC="$ac_save_CC $ac_arg"
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738 ac_cv_prog_cc_c89=$ac_arg
3740 rm -f core conftest.err conftest.$ac_objext
3741 test "x$ac_cv_prog_cc_c89" != "xno" && break
3743 rm -f conftest.$ac_ext
3748 case "x$ac_cv_prog_cc_c89" in
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3751 $as_echo "none needed" >&6; } ;;
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3754 $as_echo "unsupported" >&6; } ;;
3756 CC="$CC $ac_cv_prog_cc_c89"
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3758 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3760 if test "x$ac_cv_prog_cc_c89" != xno; then :
3765 ac_cpp='$CPP $CPPFLAGS'
3766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 ac_cpp='$CPP $CPPFLAGS'
3772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3776 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3777 if ${am_cv_prog_cc_c_o+:} false; then :
3778 $as_echo_n "(cached) " >&6
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3791 # Make sure it works both with $CC and with simple cc.
3792 # Following AC_PROG_CC_C_O, we do the test twice because some
3793 # compilers refuse to overwrite an existing .o file with -o,
3794 # though they will create one.
3795 am_cv_prog_cc_c_o=yes
3797 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3798 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } \
3802 && test -f conftest2.$ac_objext; then
3805 am_cv_prog_cc_c_o=no
3809 rm -f core conftest*
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3813 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3814 if test "$am_cv_prog_cc_c_o" != yes; then
3815 # Losing compiler, so override with the script.
3816 # FIXME: It is wrong to rewrite CC.
3817 # But if we don't then we get into trouble of one sort or another.
3818 # A longer-term fix would be to have automake use am__CC in this case,
3819 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3820 CC="$am_aux_dir/compile $CC"
3823 ac_cpp='$CPP $CPPFLAGS'
3824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829 depcc="$CC" am_compiler_list=
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3832 $as_echo_n "checking dependency style of $depcc... " >&6; }
3833 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3834 $as_echo_n "(cached) " >&6
3836 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3837 # We make a subdir and do the tests there. Otherwise we can end up
3838 # making bogus files that we don't know about and never remove. For
3839 # instance it was reported that on HP-UX the gcc test will end up
3840 # making a dummy file named 'D' -- because '-MD' means "put the output
3844 # Copy depcomp to subdir because otherwise we won't find it if we're
3845 # using a relative directory.
3846 cp "$am_depcomp" conftest.dir
3848 # We will build objects and dependencies in a subdirectory because
3849 # it helps to detect inapplicable dependency modes. For instance
3850 # both Tru64's cc and ICC support -MD to output dependencies as a
3851 # side effect of compilation, but ICC will put the dependencies in
3852 # the current directory while Tru64 will put them in the object
3856 am_cv_CC_dependencies_compiler_type=none
3857 if test "$am_compiler_list" = ""; then
3858 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3861 case " $depcc " in #(
3862 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3865 for depmode in $am_compiler_list; do
3866 # Setup a source with many dependencies, because some compilers
3867 # like to wrap large dependency lists on column 80 (with \), and
3868 # we should not choose a depcomp mode which is confused by this.
3870 # We need to recreate these files for each test, as the compiler may
3871 # overwrite some of them when testing with obscure command lines.
3872 # This happens at least with the AIX C compiler.
3874 for i in 1 2 3 4 5 6; do
3875 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3876 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3877 # Solaris 10 /bin/sh.
3878 echo '/* dummy */' > sub/conftst$i.h
3880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3882 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3883 # mode. It turns out that the SunPro C++ compiler does not properly
3884 # handle '-M -o', and we need to detect this. Also, some Intel
3885 # versions had trouble with output in subdirs.
3886 am__obj=sub/conftest.${OBJEXT-o}
3887 am__minus_obj="-o $am__obj"
3890 # This depmode causes a compiler race in universal mode.
3891 test "$am__universal" = false || continue
3894 # After this tag, mechanisms are not by side-effect, so they'll
3895 # only be used when explicitly requested.
3896 if test "x$enable_dependency_tracking" = xyes; then
3902 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3903 # This compiler won't grok '-c -o', but also, the minuso test has
3904 # not run yet. These depmodes are late enough in the game, and
3905 # so weak that their functioning should not be impacted.
3906 am__obj=conftest.${OBJEXT-o}
3911 if depmode=$depmode \
3912 source=sub/conftest.c object=$am__obj \
3913 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3914 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3915 >/dev/null 2>conftest.err &&
3916 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3917 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3918 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3919 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3920 # icc doesn't choke on unknown options, it will just issue warnings
3921 # or remarks (even with -Werror). So we grep stderr for any message
3922 # that says an option was ignored or not supported.
3923 # When given -MP, icc 7.0 and 7.1 complain thusly:
3924 # icc: Command line warning: ignoring option '-M'; no argument required
3925 # The diagnosis changed in icc 8.0:
3926 # icc: Command line remark: option '-MP' not supported
3927 if (grep 'ignoring option' conftest.err ||
3928 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3929 am_cv_CC_dependencies_compiler_type=$depmode
3938 am_cv_CC_dependencies_compiler_type=none
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3943 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3944 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3947 test "x$enable_dependency_tracking" != xno \
3948 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3950 am__fastdepCC_FALSE='#'
3952 am__fastdepCC_TRUE='#'
3953 am__fastdepCC_FALSE=
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3964 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3965 # On Suns, sometimes $CPP names a directory.
3966 if test -n "$CPP" && test -d "$CPP"; then
3969 if test -z "$CPP"; then
3970 if ${ac_cv_prog_CPP+:} false; then :
3971 $as_echo_n "(cached) " >&6
3973 # Double quotes because CPP needs to be expanded
3974 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3977 for ac_c_preproc_warn_flag in '' yes
3979 # Use a header file that comes with gcc, so configuring glibc
3980 # with a fresh cross-compiler works.
3981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3982 # <limits.h> exists even on freestanding compilers.
3983 # On the NeXT, cc -E runs the code through the compiler's parser,
3984 # not just through cpp. "Syntax error" is here to catch this case.
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3988 # include <limits.h>
3990 # include <assert.h>
3994 if ac_fn_c_try_cpp "$LINENO"; then :
3997 # Broken: fails on valid input.
4000 rm -f conftest.err conftest.i conftest.$ac_ext
4002 # OK, works on sane cases. Now check whether nonexistent headers
4003 # can be detected and how.
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006 #include <ac_nonexistent.h>
4008 if ac_fn_c_try_cpp "$LINENO"; then :
4009 # Broken: success on invalid input.
4012 # Passes both tests.
4016 rm -f conftest.err conftest.i conftest.$ac_ext
4019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4020 rm -f conftest.i conftest.err conftest.$ac_ext
4021 if $ac_preproc_ok; then :
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4034 $as_echo "$CPP" >&6; }
4036 for ac_c_preproc_warn_flag in '' yes
4038 # Use a header file that comes with gcc, so configuring glibc
4039 # with a fresh cross-compiler works.
4040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041 # <limits.h> exists even on freestanding compilers.
4042 # On the NeXT, cc -E runs the code through the compiler's parser,
4043 # not just through cpp. "Syntax error" is here to catch this case.
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4047 # include <limits.h>
4049 # include <assert.h>
4053 if ac_fn_c_try_cpp "$LINENO"; then :
4056 # Broken: fails on valid input.
4059 rm -f conftest.err conftest.i conftest.$ac_ext
4061 # OK, works on sane cases. Now check whether nonexistent headers
4062 # can be detected and how.
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #include <ac_nonexistent.h>
4067 if ac_fn_c_try_cpp "$LINENO"; then :
4068 # Broken: success on invalid input.
4071 # Passes both tests.
4075 rm -f conftest.err conftest.i conftest.$ac_ext
4078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079 rm -f conftest.i conftest.err conftest.$ac_ext
4080 if $ac_preproc_ok; then :
4083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4086 See \`config.log' for more details" "$LINENO" 5; }
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4097 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4098 if ${ac_cv_path_GREP+:} false; then :
4099 $as_echo_n "(cached) " >&6
4101 if test -z "$GREP"; then
4102 ac_path_GREP_found=false
4103 # Loop through the user's path and test for each of PROGNAME-LIST
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4108 test -z "$as_dir" && as_dir=.
4109 for ac_prog in grep ggrep; do
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4112 as_fn_executable_p "$ac_path_GREP" || continue
4113 # Check for GNU ac_path_GREP and select it if it is found.
4114 # Check for GNU $ac_path_GREP
4115 case `"$ac_path_GREP" --version 2>&1` in
4117 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4120 $as_echo_n 0123456789 >"conftest.in"
4123 cat "conftest.in" "conftest.in" >"conftest.tmp"
4124 mv "conftest.tmp" "conftest.in"
4125 cp "conftest.in" "conftest.nl"
4126 $as_echo 'GREP' >> "conftest.nl"
4127 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129 as_fn_arith $ac_count + 1 && ac_count=$as_val
4130 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4131 # Best one so far, save it but keep looking for a better one
4132 ac_cv_path_GREP="$ac_path_GREP"
4133 ac_path_GREP_max=$ac_count
4135 # 10*(2^10) chars as input seems more than enough
4136 test $ac_count -gt 10 && break
4138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4141 $ac_path_GREP_found && break 3
4146 if test -z "$ac_cv_path_GREP"; then
4147 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4150 ac_cv_path_GREP=$GREP
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4155 $as_echo "$ac_cv_path_GREP" >&6; }
4156 GREP="$ac_cv_path_GREP"
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4160 $as_echo_n "checking for egrep... " >&6; }
4161 if ${ac_cv_path_EGREP+:} false; then :
4162 $as_echo_n "(cached) " >&6
4164 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4165 then ac_cv_path_EGREP="$GREP -E"
4167 if test -z "$EGREP"; then
4168 ac_path_EGREP_found=false
4169 # Loop through the user's path and test for each of PROGNAME-LIST
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4174 test -z "$as_dir" && as_dir=.
4175 for ac_prog in egrep; do
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4178 as_fn_executable_p "$ac_path_EGREP" || continue
4179 # Check for GNU ac_path_EGREP and select it if it is found.
4180 # Check for GNU $ac_path_EGREP
4181 case `"$ac_path_EGREP" --version 2>&1` in
4183 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4186 $as_echo_n 0123456789 >"conftest.in"
4189 cat "conftest.in" "conftest.in" >"conftest.tmp"
4190 mv "conftest.tmp" "conftest.in"
4191 cp "conftest.in" "conftest.nl"
4192 $as_echo 'EGREP' >> "conftest.nl"
4193 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195 as_fn_arith $ac_count + 1 && ac_count=$as_val
4196 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4197 # Best one so far, save it but keep looking for a better one
4198 ac_cv_path_EGREP="$ac_path_EGREP"
4199 ac_path_EGREP_max=$ac_count
4201 # 10*(2^10) chars as input seems more than enough
4202 test $ac_count -gt 10 && break
4204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4207 $ac_path_EGREP_found && break 3
4212 if test -z "$ac_cv_path_EGREP"; then
4213 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4216 ac_cv_path_EGREP=$EGREP
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4222 $as_echo "$ac_cv_path_EGREP" >&6; }
4223 EGREP="$ac_cv_path_EGREP"
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4227 $as_echo_n "checking for ANSI C header files... " >&6; }
4228 if ${ac_cv_header_stdc+:} false; then :
4229 $as_echo_n "(cached) " >&6
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4246 if ac_fn_c_try_compile "$LINENO"; then :
4247 ac_cv_header_stdc=yes
4249 ac_cv_header_stdc=no
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 if test $ac_cv_header_stdc = yes; then
4254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261 $EGREP "memchr" >/dev/null 2>&1; then :
4264 ac_cv_header_stdc=no
4270 if test $ac_cv_header_stdc = yes; then
4271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4278 $EGREP "free" >/dev/null 2>&1; then :
4281 ac_cv_header_stdc=no
4287 if test $ac_cv_header_stdc = yes; then
4288 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4289 if test "$cross_compiling" = yes; then :
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4296 #if ((' ' & 0x0FF) == 0x020)
4297 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4298 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4300 # define ISLOWER(c) \
4301 (('a' <= (c) && (c) <= 'i') \
4302 || ('j' <= (c) && (c) <= 'r') \
4303 || ('s' <= (c) && (c) <= 'z'))
4304 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4312 for (i = 0; i < 256; i++)
4313 if (XOR (islower (i), ISLOWER (i))
4314 || toupper (i) != TOUPPER (i))
4319 if ac_fn_c_try_run "$LINENO"; then :
4322 ac_cv_header_stdc=no
4324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4325 conftest.$ac_objext conftest.beam conftest.$ac_ext
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4331 $as_echo "$ac_cv_header_stdc" >&6; }
4332 if test $ac_cv_header_stdc = yes; then
4334 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4338 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4339 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4340 inttypes.h stdint.h unistd.h
4342 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4343 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4345 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4346 cat >>confdefs.h <<_ACEOF
4347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4356 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4357 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4364 if test "$MINIX" = yes; then
4366 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4369 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4372 $as_echo "#define _MINIX 1" >>confdefs.h
4375 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4381 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4382 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4383 $as_echo_n "(cached) " >&6
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4388 # define __EXTENSIONS__ 1
4389 $ac_includes_default
4398 if ac_fn_c_try_compile "$LINENO"; then :
4399 ac_cv_safe_to_define___extensions__=yes
4401 ac_cv_safe_to_define___extensions__=no
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4406 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4407 test $ac_cv_safe_to_define___extensions__ = yes &&
4408 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4410 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4412 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4414 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4416 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4418 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4421 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4422 if ${ac_cv_should_define__xopen_source+:} false; then :
4423 $as_echo_n "(cached) " >&6
4425 ac_cv_should_define__xopen_source=no
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4439 if ac_fn_c_try_compile "$LINENO"; then :
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4445 #define _XOPEN_SOURCE 500
4456 if ac_fn_c_try_compile "$LINENO"; then :
4457 ac_cv_should_define__xopen_source=yes
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4464 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4465 test $ac_cv_should_define__xopen_source = yes &&
4466 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4472 [\\/$]* | ?:[\\/]*) ;;
4473 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4478 $as_echo_n "checking whether NLS is requested... " >&6; }
4479 # Check whether --enable-nls was given.
4480 if test "${enable_nls+set}" = set; then :
4481 enableval=$enable_nls; USE_NLS=$enableval
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4487 $as_echo "$USE_NLS" >&6; }
4492 GETTEXT_MACRO_VERSION=0.18
4497 # Prepare PATH_SEPARATOR.
4498 # The user is always right.
4499 if test "${PATH_SEPARATOR+set}" != set; then
4500 echo "#! /bin/sh" >conf$$.sh
4501 echo "exit 0" >>conf$$.sh
4503 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4511 # Find out how to test for executable files. Don't use a zero-byte file,
4512 # as systems may use methods other than mode bits to determine executability.
4513 cat >conf$$.file <<_ASEOF
4517 chmod +x conf$$.file
4518 if test -x conf$$.file >/dev/null 2>&1; then
4519 ac_executable_p="test -x"
4521 ac_executable_p="test -f"
4525 # Extract the first word of "msgfmt", so it can be a program name with args.
4526 set dummy msgfmt; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if ${ac_cv_path_MSGFMT+:} false; then :
4530 $as_echo_n "(cached) " >&6
4534 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4537 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4538 for ac_dir in $PATH; do
4540 test -z "$ac_dir" && ac_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4543 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4544 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4545 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4546 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4553 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4557 MSGFMT="$ac_cv_path_MSGFMT"
4558 if test "$MSGFMT" != ":"; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4560 $as_echo "$MSGFMT" >&6; }
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4566 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4567 set dummy gmsgfmt; ac_word=$2
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if ${ac_cv_path_GMSGFMT+:} false; then :
4571 $as_echo_n "(cached) " >&6
4575 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4585 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4597 GMSGFMT=$ac_cv_path_GMSGFMT
4598 if test -n "$GMSGFMT"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4600 $as_echo "$GMSGFMT" >&6; }
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4608 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4609 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4610 *) MSGFMT_015=$MSGFMT ;;
4613 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4614 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4615 *) GMSGFMT_015=$GMSGFMT ;;
4620 # Prepare PATH_SEPARATOR.
4621 # The user is always right.
4622 if test "${PATH_SEPARATOR+set}" != set; then
4623 echo "#! /bin/sh" >conf$$.sh
4624 echo "exit 0" >>conf$$.sh
4626 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4634 # Find out how to test for executable files. Don't use a zero-byte file,
4635 # as systems may use methods other than mode bits to determine executability.
4636 cat >conf$$.file <<_ASEOF
4640 chmod +x conf$$.file
4641 if test -x conf$$.file >/dev/null 2>&1; then
4642 ac_executable_p="test -x"
4644 ac_executable_p="test -f"
4648 # Extract the first word of "xgettext", so it can be a program name with args.
4649 set dummy xgettext; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_path_XGETTEXT+:} false; then :
4653 $as_echo_n "(cached) " >&6
4657 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4660 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4661 for ac_dir in $PATH; do
4663 test -z "$ac_dir" && ac_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4666 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4667 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4668 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4669 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4676 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4680 XGETTEXT="$ac_cv_path_XGETTEXT"
4681 if test "$XGETTEXT" != ":"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4683 $as_echo "$XGETTEXT" >&6; }
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4691 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4692 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4693 *) XGETTEXT_015=$XGETTEXT ;;
4698 # Prepare PATH_SEPARATOR.
4699 # The user is always right.
4700 if test "${PATH_SEPARATOR+set}" != set; then
4701 echo "#! /bin/sh" >conf$$.sh
4702 echo "exit 0" >>conf$$.sh
4704 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4712 # Find out how to test for executable files. Don't use a zero-byte file,
4713 # as systems may use methods other than mode bits to determine executability.
4714 cat >conf$$.file <<_ASEOF
4718 chmod +x conf$$.file
4719 if test -x conf$$.file >/dev/null 2>&1; then
4720 ac_executable_p="test -x"
4722 ac_executable_p="test -f"
4726 # Extract the first word of "msgmerge", so it can be a program name with args.
4727 set dummy msgmerge; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if ${ac_cv_path_MSGMERGE+:} false; then :
4731 $as_echo_n "(cached) " >&6
4735 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4738 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4739 for ac_dir in $PATH; do
4741 test -z "$ac_dir" && ac_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4744 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4745 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4746 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4753 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4757 MSGMERGE="$ac_cv_path_MSGMERGE"
4758 if test "$MSGMERGE" != ":"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4760 $as_echo "$MSGMERGE" >&6; }
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4767 test -n "$localedir" || localedir='${datadir}/locale'
4770 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4773 ac_config_commands="$ac_config_commands po-directories"
4777 if test "X$prefix" = "XNONE"; then
4778 acl_final_prefix="$ac_default_prefix"
4780 acl_final_prefix="$prefix"
4782 if test "X$exec_prefix" = "XNONE"; then
4783 acl_final_exec_prefix='${prefix}'
4785 acl_final_exec_prefix="$exec_prefix"
4787 acl_save_prefix="$prefix"
4788 prefix="$acl_final_prefix"
4789 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4790 prefix="$acl_save_prefix"
4792 # Make sure we can run config.sub.
4793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4794 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4797 $as_echo_n "checking build system type... " >&6; }
4798 if ${ac_cv_build+:} false; then :
4799 $as_echo_n "(cached) " >&6
4801 ac_build_alias=$build_alias
4802 test "x$ac_build_alias" = x &&
4803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4804 test "x$ac_build_alias" = x &&
4805 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4811 $as_echo "$ac_cv_build" >&6; }
4812 case $ac_cv_build in
4814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4817 ac_save_IFS=$IFS; IFS='-'
4823 # Remember, the first character of IFS is used to create $*,
4824 # except with old shells:
4827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4831 $as_echo_n "checking host system type... " >&6; }
4832 if ${ac_cv_host+:} false; then :
4833 $as_echo_n "(cached) " >&6
4835 if test "x$host_alias" = x; then
4836 ac_cv_host=$ac_cv_build
4838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4844 $as_echo "$ac_cv_host" >&6; }
4847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4850 ac_save_IFS=$IFS; IFS='-'
4856 # Remember, the first character of IFS is used to create $*,
4857 # except with old shells:
4860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4864 # Check whether --with-gnu-ld was given.
4865 if test "${with_gnu_ld+set}" = set; then :
4866 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4871 # Prepare PATH_SEPARATOR.
4872 # The user is always right.
4873 if test "${PATH_SEPARATOR+set}" != set; then
4874 echo "#! /bin/sh" >conf$$.sh
4875 echo "exit 0" >>conf$$.sh
4877 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4885 if test "$GCC" = yes; then
4886 # Check if gcc -print-prog-name=ld gives a path.
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4888 $as_echo_n "checking for ld used by GCC... " >&6; }
4891 # gcc leaves a trailing carriage return which upsets mingw
4892 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4894 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4897 # Accept absolute paths.
4898 [\\/]* | [A-Za-z]:[\\/]*)
4899 re_direlt='/[^/][^/]*/\.\./'
4900 # Canonicalize the path of ld
4901 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4902 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4903 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4905 test -z "$LD" && LD="$ac_prog"
4908 # If it fails, then pretend we aren't using GCC.
4912 # If it is relative, then search for the first ld in PATH.
4916 elif test "$with_gnu_ld" = yes; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4918 $as_echo_n "checking for GNU ld... " >&6; }
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4921 $as_echo_n "checking for non-GNU ld... " >&6; }
4923 if ${acl_cv_path_LD+:} false; then :
4924 $as_echo_n "(cached) " >&6
4926 if test -z "$LD"; then
4927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4928 for ac_dir in $PATH; do
4929 test -z "$ac_dir" && ac_dir=.
4930 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4931 acl_cv_path_LD="$ac_dir/$ac_prog"
4932 # Check to see if the program is GNU ld. I'd rather use --version,
4933 # but apparently some GNU ld's only accept -v.
4934 # Break only if it was the GNU/non-GNU ld that we prefer.
4935 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4936 *GNU* | *'with BFD'*)
4937 test "$with_gnu_ld" != no && break ;;
4939 test "$with_gnu_ld" != yes && break ;;
4945 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4949 LD="$acl_cv_path_LD"
4950 if test -n "$LD"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4952 $as_echo "$LD" >&6; }
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4957 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4959 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4960 if ${acl_cv_prog_gnu_ld+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4964 case `$LD -v 2>&1 </dev/null` in
4965 *GNU* | *'with BFD'*)
4966 acl_cv_prog_gnu_ld=yes ;;
4968 acl_cv_prog_gnu_ld=no ;;
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4972 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4973 with_gnu_ld=$acl_cv_prog_gnu_ld
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4979 $as_echo_n "checking for shared library run path origin... " >&6; }
4980 if ${acl_cv_rpath+:} false; then :
4981 $as_echo_n "(cached) " >&6
4984 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4985 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4992 $as_echo "$acl_cv_rpath" >&6; }
4994 acl_libext="$acl_cv_libext"
4995 acl_shlibext="$acl_cv_shlibext"
4996 acl_libname_spec="$acl_cv_libname_spec"
4997 acl_library_names_spec="$acl_cv_library_names_spec"
4998 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4999 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5000 acl_hardcode_direct="$acl_cv_hardcode_direct"
5001 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5002 # Check whether --enable-rpath was given.
5003 if test "${enable_rpath+set}" = set; then :
5004 enableval=$enable_rpath; :
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5017 $as_echo_n "checking for 64-bit host... " >&6; }
5018 if ${gl_cv_solaris_64bit+:} false; then :
5019 $as_echo_n "(cached) " >&6
5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5030 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5031 gl_cv_solaris_64bit=yes
5033 gl_cv_solaris_64bit=no
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5040 $as_echo "$gl_cv_solaris_64bit" >&6; }
5041 if test $gl_cv_solaris_64bit = yes; then
5042 acl_libdirstem=lib/64
5044 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5045 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5050 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5051 if test -n "$searchpath"; then
5052 acl_save_IFS="${IFS= }"; IFS=":"
5053 for searchdir in $searchpath; do
5054 if test -d "$searchdir"; then
5055 case "$searchdir" in
5056 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5058 # Better ignore directories of this form. They are misleading.
5060 *) searchdir=`cd "$searchdir" && pwd`
5061 case "$searchdir" in
5062 */lib64 ) acl_libdirstem=lib64 ;;
5071 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5086 acl_save_prefix="$prefix"
5087 prefix="$acl_final_prefix"
5088 acl_save_exec_prefix="$exec_prefix"
5089 exec_prefix="$acl_final_exec_prefix"
5091 eval additional_includedir=\"$includedir\"
5092 eval additional_libdir=\"$libdir\"
5094 exec_prefix="$acl_save_exec_prefix"
5095 prefix="$acl_save_prefix"
5098 # Check whether --with-libiconv-prefix was given.
5099 if test "${with_libiconv_prefix+set}" = set; then :
5100 withval=$with_libiconv_prefix;
5101 if test "X$withval" = "Xno"; then
5104 if test "X$withval" = "X"; then
5106 acl_save_prefix="$prefix"
5107 prefix="$acl_final_prefix"
5108 acl_save_exec_prefix="$exec_prefix"
5109 exec_prefix="$acl_final_exec_prefix"
5111 eval additional_includedir=\"$includedir\"
5112 eval additional_libdir=\"$libdir\"
5114 exec_prefix="$acl_save_exec_prefix"
5115 prefix="$acl_save_prefix"
5118 additional_includedir="$withval/include"
5119 additional_libdir="$withval/$acl_libdirstem"
5120 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5121 && ! test -d "$withval/$acl_libdirstem"; then
5122 additional_libdir="$withval/$acl_libdirstem2"
5136 names_already_handled=
5137 names_next_round='iconv '
5138 while test -n "$names_next_round"; do
5139 names_this_round="$names_next_round"
5141 for name in $names_this_round; do
5143 for n in $names_already_handled; do
5144 if test "$n" = "$name"; then
5149 if test -z "$already_handled"; then
5150 names_already_handled="$names_already_handled $name"
5151 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5152 eval value=\"\$HAVE_LIB$uppername\"
5153 if test -n "$value"; then
5154 if test "$value" = yes; then
5155 eval value=\"\$LIB$uppername\"
5156 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5157 eval value=\"\$LTLIB$uppername\"
5158 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5167 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5168 if test -n "$acl_shlibext"; then
5169 shrext=".$acl_shlibext" # typically: shrext=.so
5173 if test $use_additional = yes; then
5174 dir="$additional_libdir"
5175 if test -n "$acl_shlibext"; then
5176 if test -f "$dir/$libname$shrext"; then
5178 found_so="$dir/$libname$shrext"
5180 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5181 ver=`(cd "$dir" && \
5182 for f in "$libname$shrext".*; do echo "$f"; done \
5183 | sed -e "s,^$libname$shrext\\\\.,," \
5184 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5185 | sed 1q ) 2>/dev/null`
5186 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5188 found_so="$dir/$libname$shrext.$ver"
5191 eval library_names=\"$acl_library_names_spec\"
5192 for f in $library_names; do
5193 if test -f "$dir/$f"; then
5202 if test "X$found_dir" = "X"; then
5203 if test -f "$dir/$libname.$acl_libext"; then
5205 found_a="$dir/$libname.$acl_libext"
5208 if test "X$found_dir" != "X"; then
5209 if test -f "$dir/$libname.la"; then
5210 found_la="$dir/$libname.la"
5214 if test "X$found_dir" = "X"; then
5215 for x in $LDFLAGS $LTLIBICONV; do
5217 acl_save_prefix="$prefix"
5218 prefix="$acl_final_prefix"
5219 acl_save_exec_prefix="$exec_prefix"
5220 exec_prefix="$acl_final_exec_prefix"
5222 exec_prefix="$acl_save_exec_prefix"
5223 prefix="$acl_save_prefix"
5227 dir=`echo "X$x" | sed -e 's/^X-L//'`
5228 if test -n "$acl_shlibext"; then
5229 if test -f "$dir/$libname$shrext"; then
5231 found_so="$dir/$libname$shrext"
5233 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5234 ver=`(cd "$dir" && \
5235 for f in "$libname$shrext".*; do echo "$f"; done \
5236 | sed -e "s,^$libname$shrext\\\\.,," \
5237 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5238 | sed 1q ) 2>/dev/null`
5239 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5241 found_so="$dir/$libname$shrext.$ver"
5244 eval library_names=\"$acl_library_names_spec\"
5245 for f in $library_names; do
5246 if test -f "$dir/$f"; then
5255 if test "X$found_dir" = "X"; then
5256 if test -f "$dir/$libname.$acl_libext"; then
5258 found_a="$dir/$libname.$acl_libext"
5261 if test "X$found_dir" != "X"; then
5262 if test -f "$dir/$libname.la"; then
5263 found_la="$dir/$libname.la"
5268 if test "X$found_dir" != "X"; then
5273 if test "X$found_dir" != "X"; then
5274 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5275 if test "X$found_so" != "X"; then
5276 if test "$enable_rpath" = no \
5277 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5278 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5279 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5282 for x in $ltrpathdirs; do
5283 if test "X$x" = "X$found_dir"; then
5288 if test -z "$haveit"; then
5289 ltrpathdirs="$ltrpathdirs $found_dir"
5291 if test "$acl_hardcode_direct" = yes; then
5292 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5294 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5295 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5297 for x in $rpathdirs; do
5298 if test "X$x" = "X$found_dir"; then
5303 if test -z "$haveit"; then
5304 rpathdirs="$rpathdirs $found_dir"
5308 for x in $LDFLAGS $LIBICONV; do
5310 acl_save_prefix="$prefix"
5311 prefix="$acl_final_prefix"
5312 acl_save_exec_prefix="$exec_prefix"
5313 exec_prefix="$acl_final_exec_prefix"
5315 exec_prefix="$acl_save_exec_prefix"
5316 prefix="$acl_save_prefix"
5318 if test "X$x" = "X-L$found_dir"; then
5323 if test -z "$haveit"; then
5324 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5326 if test "$acl_hardcode_minus_L" != no; then
5327 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5329 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5335 if test "X$found_a" != "X"; then
5336 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5338 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5341 additional_includedir=
5342 case "$found_dir" in
5343 */$acl_libdirstem | */$acl_libdirstem/)
5344 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5345 if test "$name" = 'iconv'; then
5346 LIBICONV_PREFIX="$basedir"
5348 additional_includedir="$basedir/include"
5350 */$acl_libdirstem2 | */$acl_libdirstem2/)
5351 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5352 if test "$name" = 'iconv'; then
5353 LIBICONV_PREFIX="$basedir"
5355 additional_includedir="$basedir/include"
5358 if test "X$additional_includedir" != "X"; then
5359 if test "X$additional_includedir" != "X/usr/include"; then
5361 if test "X$additional_includedir" = "X/usr/local/include"; then
5362 if test -n "$GCC"; then
5364 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5368 if test -z "$haveit"; then
5369 for x in $CPPFLAGS $INCICONV; do
5371 acl_save_prefix="$prefix"
5372 prefix="$acl_final_prefix"
5373 acl_save_exec_prefix="$exec_prefix"
5374 exec_prefix="$acl_final_exec_prefix"
5376 exec_prefix="$acl_save_exec_prefix"
5377 prefix="$acl_save_prefix"
5379 if test "X$x" = "X-I$additional_includedir"; then
5384 if test -z "$haveit"; then
5385 if test -d "$additional_includedir"; then
5386 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5392 if test -n "$found_la"; then
5393 save_libdir="$libdir"
5395 */* | *\\*) . "$found_la" ;;
5396 *) . "./$found_la" ;;
5398 libdir="$save_libdir"
5399 for dep in $dependency_libs; do
5402 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5403 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5404 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5406 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5407 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5408 if test -n "$GCC"; then
5410 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5414 if test -z "$haveit"; then
5416 for x in $LDFLAGS $LIBICONV; do
5418 acl_save_prefix="$prefix"
5419 prefix="$acl_final_prefix"
5420 acl_save_exec_prefix="$exec_prefix"
5421 exec_prefix="$acl_final_exec_prefix"
5423 exec_prefix="$acl_save_exec_prefix"
5424 prefix="$acl_save_prefix"
5426 if test "X$x" = "X-L$additional_libdir"; then
5431 if test -z "$haveit"; then
5432 if test -d "$additional_libdir"; then
5433 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5437 for x in $LDFLAGS $LTLIBICONV; do
5439 acl_save_prefix="$prefix"
5440 prefix="$acl_final_prefix"
5441 acl_save_exec_prefix="$exec_prefix"
5442 exec_prefix="$acl_final_exec_prefix"
5444 exec_prefix="$acl_save_exec_prefix"
5445 prefix="$acl_save_prefix"
5447 if test "X$x" = "X-L$additional_libdir"; then
5452 if test -z "$haveit"; then
5453 if test -d "$additional_libdir"; then
5454 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5461 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5462 if test "$enable_rpath" != no; then
5464 for x in $rpathdirs; do
5465 if test "X$x" = "X$dir"; then
5470 if test -z "$haveit"; then
5471 rpathdirs="$rpathdirs $dir"
5474 for x in $ltrpathdirs; do
5475 if test "X$x" = "X$dir"; then
5480 if test -z "$haveit"; then
5481 ltrpathdirs="$ltrpathdirs $dir"
5486 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5489 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5492 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5493 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5499 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5500 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5506 if test "X$rpathdirs" != "X"; then
5507 if test -n "$acl_hardcode_libdir_separator"; then
5509 for found_dir in $rpathdirs; do
5510 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5512 acl_save_libdir="$libdir"
5514 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5515 libdir="$acl_save_libdir"
5516 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5518 for found_dir in $rpathdirs; do
5519 acl_save_libdir="$libdir"
5521 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5522 libdir="$acl_save_libdir"
5523 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5527 if test "X$ltrpathdirs" != "X"; then
5528 for found_dir in $ltrpathdirs; do
5529 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5564 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5565 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5566 $as_echo_n "(cached) " >&6
5568 gt_save_LIBS="$LIBS"
5569 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 #include <CoreFoundation/CFPreferences.h>
5576 CFPreferencesCopyAppValue(NULL, NULL)
5581 if ac_fn_c_try_link "$LINENO"; then :
5582 gt_cv_func_CFPreferencesCopyAppValue=yes
5584 gt_cv_func_CFPreferencesCopyAppValue=no
5586 rm -f core conftest.err conftest.$ac_objext \
5587 conftest$ac_exeext conftest.$ac_ext
5588 LIBS="$gt_save_LIBS"
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5591 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5592 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5594 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5598 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5599 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5600 $as_echo_n "(cached) " >&6
5602 gt_save_LIBS="$LIBS"
5603 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606 #include <CoreFoundation/CFLocale.h>
5610 CFLocaleCopyCurrent();
5615 if ac_fn_c_try_link "$LINENO"; then :
5616 gt_cv_func_CFLocaleCopyCurrent=yes
5618 gt_cv_func_CFLocaleCopyCurrent=no
5620 rm -f core conftest.err conftest.$ac_objext \
5621 conftest$ac_exeext conftest.$ac_ext
5622 LIBS="$gt_save_LIBS"
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5625 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5626 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5628 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5632 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5633 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5645 case " $gt_needs " in
5646 *" need-formatstring-macros "*) gt_api_version=3 ;;
5647 *" need-ngettext "*) gt_api_version=2 ;;
5648 *) gt_api_version=1 ;;
5650 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5651 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5653 if test "$USE_NLS" = "yes"; then
5654 gt_use_preinstalled_gnugettext=no
5657 if test $gt_api_version -ge 3; then
5658 gt_revision_test_code='
5659 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5660 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5662 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5665 gt_revision_test_code=
5667 if test $gt_api_version -ge 2; then
5668 gt_expression_test_code=' + * ngettext ("", "", 0)'
5670 gt_expression_test_code=
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5674 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5675 if eval \${$gt_func_gnugettext_libc+:} false; then :
5676 $as_echo_n "(cached) " >&6
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680 #include <libintl.h>
5681 $gt_revision_test_code
5682 extern int _nl_msg_cat_cntr;
5683 extern int *_nl_domain_bindings;
5687 bindtextdomain ("", "");
5688 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5693 if ac_fn_c_try_link "$LINENO"; then :
5694 eval "$gt_func_gnugettext_libc=yes"
5696 eval "$gt_func_gnugettext_libc=no"
5698 rm -f core conftest.err conftest.$ac_objext \
5699 conftest$ac_exeext conftest.$ac_ext
5701 eval ac_res=\$$gt_func_gnugettext_libc
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5703 $as_echo "$ac_res" >&6; }
5705 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5711 am_save_CPPFLAGS="$CPPFLAGS"
5713 for element in $INCICONV; do
5715 for x in $CPPFLAGS; do
5717 acl_save_prefix="$prefix"
5718 prefix="$acl_final_prefix"
5719 acl_save_exec_prefix="$exec_prefix"
5720 exec_prefix="$acl_final_exec_prefix"
5722 exec_prefix="$acl_save_exec_prefix"
5723 prefix="$acl_save_prefix"
5725 if test "X$x" = "X$element"; then
5730 if test -z "$haveit"; then
5731 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5737 $as_echo_n "checking for iconv... " >&6; }
5738 if ${am_cv_func_iconv+:} false; then :
5739 $as_echo_n "(cached) " >&6
5742 am_cv_func_iconv="no, consider installing GNU libiconv"
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5751 iconv_t cd = iconv_open("","");
5752 iconv(cd,NULL,NULL,NULL,NULL);
5758 if ac_fn_c_try_link "$LINENO"; then :
5759 am_cv_func_iconv=yes
5761 rm -f core conftest.err conftest.$ac_objext \
5762 conftest$ac_exeext conftest.$ac_ext
5763 if test "$am_cv_func_iconv" != yes; then
5764 am_save_LIBS="$LIBS"
5765 LIBS="$LIBS $LIBICONV"
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5773 iconv_t cd = iconv_open("","");
5774 iconv(cd,NULL,NULL,NULL,NULL);
5780 if ac_fn_c_try_link "$LINENO"; then :
5782 am_cv_func_iconv=yes
5784 rm -f core conftest.err conftest.$ac_objext \
5785 conftest$ac_exeext conftest.$ac_ext
5786 LIBS="$am_save_LIBS"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5791 $as_echo "$am_cv_func_iconv" >&6; }
5792 if test "$am_cv_func_iconv" = yes; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5794 $as_echo_n "checking for working iconv... " >&6; }
5795 if ${am_cv_func_iconv_works+:} false; then :
5796 $as_echo_n "(cached) " >&6
5799 am_save_LIBS="$LIBS"
5800 if test $am_cv_lib_iconv = yes; then
5801 LIBS="$LIBS $LIBICONV"
5803 if test "$cross_compiling" = yes; then :
5805 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5806 *) am_cv_func_iconv_works="guessing yes" ;;
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5816 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5819 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5820 if (cd_utf8_to_88591 != (iconv_t)(-1))
5822 static const char input[] = "\342\202\254"; /* EURO SIGN */
5824 const char *inptr = input;
5825 size_t inbytesleft = strlen (input);
5827 size_t outbytesleft = sizeof (buf);
5828 size_t res = iconv (cd_utf8_to_88591,
5829 (char **) &inptr, &inbytesleft,
5830 &outptr, &outbytesleft);
5835 /* Test against Solaris 10 bug: Failures are not distinguishable from
5836 successful returns. */
5838 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5839 if (cd_ascii_to_88591 != (iconv_t)(-1))
5841 static const char input[] = "\263";
5843 const char *inptr = input;
5844 size_t inbytesleft = strlen (input);
5846 size_t outbytesleft = sizeof (buf);
5847 size_t res = iconv (cd_ascii_to_88591,
5848 (char **) &inptr, &inbytesleft,
5849 &outptr, &outbytesleft);
5854 #if 0 /* This bug could be worked around by the caller. */
5855 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5857 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5858 if (cd_88591_to_utf8 != (iconv_t)(-1))
5860 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5862 const char *inptr = input;
5863 size_t inbytesleft = strlen (input);
5865 size_t outbytesleft = sizeof (buf);
5866 size_t res = iconv (cd_88591_to_utf8,
5867 (char **) &inptr, &inbytesleft,
5868 &outptr, &outbytesleft);
5874 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5876 if (/* Try standardized names. */
5877 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5878 /* Try IRIX, OSF/1 names. */
5879 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5880 /* Try AIX names. */
5881 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5882 /* Try HP-UX names. */
5883 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5888 if ac_fn_c_try_run "$LINENO"; then :
5889 am_cv_func_iconv_works=yes
5891 am_cv_func_iconv_works=no
5893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5894 conftest.$ac_objext conftest.beam conftest.$ac_ext
5897 LIBS="$am_save_LIBS"
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5901 $as_echo "$am_cv_func_iconv_works" >&6; }
5902 case "$am_cv_func_iconv_works" in
5903 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5904 *) am_func_iconv=yes ;;
5907 am_func_iconv=no am_cv_lib_iconv=no
5909 if test "$am_func_iconv" = yes; then
5911 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5914 if test "$am_cv_lib_iconv" = yes; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5916 $as_echo_n "checking how to link with libiconv... " >&6; }
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5918 $as_echo "$LIBICONV" >&6; }
5920 CPPFLAGS="$am_save_CPPFLAGS"
5937 acl_save_prefix="$prefix"
5938 prefix="$acl_final_prefix"
5939 acl_save_exec_prefix="$exec_prefix"
5940 exec_prefix="$acl_final_exec_prefix"
5942 eval additional_includedir=\"$includedir\"
5943 eval additional_libdir=\"$libdir\"
5945 exec_prefix="$acl_save_exec_prefix"
5946 prefix="$acl_save_prefix"
5949 # Check whether --with-libintl-prefix was given.
5950 if test "${with_libintl_prefix+set}" = set; then :
5951 withval=$with_libintl_prefix;
5952 if test "X$withval" = "Xno"; then
5955 if test "X$withval" = "X"; then
5957 acl_save_prefix="$prefix"
5958 prefix="$acl_final_prefix"
5959 acl_save_exec_prefix="$exec_prefix"
5960 exec_prefix="$acl_final_exec_prefix"
5962 eval additional_includedir=\"$includedir\"
5963 eval additional_libdir=\"$libdir\"
5965 exec_prefix="$acl_save_exec_prefix"
5966 prefix="$acl_save_prefix"
5969 additional_includedir="$withval/include"
5970 additional_libdir="$withval/$acl_libdirstem"
5971 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5972 && ! test -d "$withval/$acl_libdirstem"; then
5973 additional_libdir="$withval/$acl_libdirstem2"
5987 names_already_handled=
5988 names_next_round='intl '
5989 while test -n "$names_next_round"; do
5990 names_this_round="$names_next_round"
5992 for name in $names_this_round; do
5994 for n in $names_already_handled; do
5995 if test "$n" = "$name"; then
6000 if test -z "$already_handled"; then
6001 names_already_handled="$names_already_handled $name"
6002 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6003 eval value=\"\$HAVE_LIB$uppername\"
6004 if test -n "$value"; then
6005 if test "$value" = yes; then
6006 eval value=\"\$LIB$uppername\"
6007 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6008 eval value=\"\$LTLIB$uppername\"
6009 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6018 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6019 if test -n "$acl_shlibext"; then
6020 shrext=".$acl_shlibext" # typically: shrext=.so
6024 if test $use_additional = yes; then
6025 dir="$additional_libdir"
6026 if test -n "$acl_shlibext"; then
6027 if test -f "$dir/$libname$shrext"; then
6029 found_so="$dir/$libname$shrext"
6031 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6032 ver=`(cd "$dir" && \
6033 for f in "$libname$shrext".*; do echo "$f"; done \
6034 | sed -e "s,^$libname$shrext\\\\.,," \
6035 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6036 | sed 1q ) 2>/dev/null`
6037 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6039 found_so="$dir/$libname$shrext.$ver"
6042 eval library_names=\"$acl_library_names_spec\"
6043 for f in $library_names; do
6044 if test -f "$dir/$f"; then
6053 if test "X$found_dir" = "X"; then
6054 if test -f "$dir/$libname.$acl_libext"; then
6056 found_a="$dir/$libname.$acl_libext"
6059 if test "X$found_dir" != "X"; then
6060 if test -f "$dir/$libname.la"; then
6061 found_la="$dir/$libname.la"
6065 if test "X$found_dir" = "X"; then
6066 for x in $LDFLAGS $LTLIBINTL; do
6068 acl_save_prefix="$prefix"
6069 prefix="$acl_final_prefix"
6070 acl_save_exec_prefix="$exec_prefix"
6071 exec_prefix="$acl_final_exec_prefix"
6073 exec_prefix="$acl_save_exec_prefix"
6074 prefix="$acl_save_prefix"
6078 dir=`echo "X$x" | sed -e 's/^X-L//'`
6079 if test -n "$acl_shlibext"; then
6080 if test -f "$dir/$libname$shrext"; then
6082 found_so="$dir/$libname$shrext"
6084 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6085 ver=`(cd "$dir" && \
6086 for f in "$libname$shrext".*; do echo "$f"; done \
6087 | sed -e "s,^$libname$shrext\\\\.,," \
6088 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6089 | sed 1q ) 2>/dev/null`
6090 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6092 found_so="$dir/$libname$shrext.$ver"
6095 eval library_names=\"$acl_library_names_spec\"
6096 for f in $library_names; do
6097 if test -f "$dir/$f"; then
6106 if test "X$found_dir" = "X"; then
6107 if test -f "$dir/$libname.$acl_libext"; then
6109 found_a="$dir/$libname.$acl_libext"
6112 if test "X$found_dir" != "X"; then
6113 if test -f "$dir/$libname.la"; then
6114 found_la="$dir/$libname.la"
6119 if test "X$found_dir" != "X"; then
6124 if test "X$found_dir" != "X"; then
6125 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6126 if test "X$found_so" != "X"; then
6127 if test "$enable_rpath" = no \
6128 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6129 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6130 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6133 for x in $ltrpathdirs; do
6134 if test "X$x" = "X$found_dir"; then
6139 if test -z "$haveit"; then
6140 ltrpathdirs="$ltrpathdirs $found_dir"
6142 if test "$acl_hardcode_direct" = yes; then
6143 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6145 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6146 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6148 for x in $rpathdirs; do
6149 if test "X$x" = "X$found_dir"; then
6154 if test -z "$haveit"; then
6155 rpathdirs="$rpathdirs $found_dir"
6159 for x in $LDFLAGS $LIBINTL; do
6161 acl_save_prefix="$prefix"
6162 prefix="$acl_final_prefix"
6163 acl_save_exec_prefix="$exec_prefix"
6164 exec_prefix="$acl_final_exec_prefix"
6166 exec_prefix="$acl_save_exec_prefix"
6167 prefix="$acl_save_prefix"
6169 if test "X$x" = "X-L$found_dir"; then
6174 if test -z "$haveit"; then
6175 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6177 if test "$acl_hardcode_minus_L" != no; then
6178 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6180 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6186 if test "X$found_a" != "X"; then
6187 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6189 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6192 additional_includedir=
6193 case "$found_dir" in
6194 */$acl_libdirstem | */$acl_libdirstem/)
6195 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6196 if test "$name" = 'intl'; then
6197 LIBINTL_PREFIX="$basedir"
6199 additional_includedir="$basedir/include"
6201 */$acl_libdirstem2 | */$acl_libdirstem2/)
6202 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6203 if test "$name" = 'intl'; then
6204 LIBINTL_PREFIX="$basedir"
6206 additional_includedir="$basedir/include"
6209 if test "X$additional_includedir" != "X"; then
6210 if test "X$additional_includedir" != "X/usr/include"; then
6212 if test "X$additional_includedir" = "X/usr/local/include"; then
6213 if test -n "$GCC"; then
6215 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6219 if test -z "$haveit"; then
6220 for x in $CPPFLAGS $INCINTL; do
6222 acl_save_prefix="$prefix"
6223 prefix="$acl_final_prefix"
6224 acl_save_exec_prefix="$exec_prefix"
6225 exec_prefix="$acl_final_exec_prefix"
6227 exec_prefix="$acl_save_exec_prefix"
6228 prefix="$acl_save_prefix"
6230 if test "X$x" = "X-I$additional_includedir"; then
6235 if test -z "$haveit"; then
6236 if test -d "$additional_includedir"; then
6237 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6243 if test -n "$found_la"; then
6244 save_libdir="$libdir"
6246 */* | *\\*) . "$found_la" ;;
6247 *) . "./$found_la" ;;
6249 libdir="$save_libdir"
6250 for dep in $dependency_libs; do
6253 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6254 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6255 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6257 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6258 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6259 if test -n "$GCC"; then
6261 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6265 if test -z "$haveit"; then
6267 for x in $LDFLAGS $LIBINTL; do
6269 acl_save_prefix="$prefix"
6270 prefix="$acl_final_prefix"
6271 acl_save_exec_prefix="$exec_prefix"
6272 exec_prefix="$acl_final_exec_prefix"
6274 exec_prefix="$acl_save_exec_prefix"
6275 prefix="$acl_save_prefix"
6277 if test "X$x" = "X-L$additional_libdir"; then
6282 if test -z "$haveit"; then
6283 if test -d "$additional_libdir"; then
6284 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6288 for x in $LDFLAGS $LTLIBINTL; do
6290 acl_save_prefix="$prefix"
6291 prefix="$acl_final_prefix"
6292 acl_save_exec_prefix="$exec_prefix"
6293 exec_prefix="$acl_final_exec_prefix"
6295 exec_prefix="$acl_save_exec_prefix"
6296 prefix="$acl_save_prefix"
6298 if test "X$x" = "X-L$additional_libdir"; then
6303 if test -z "$haveit"; then
6304 if test -d "$additional_libdir"; then
6305 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6312 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6313 if test "$enable_rpath" != no; then
6315 for x in $rpathdirs; do
6316 if test "X$x" = "X$dir"; then
6321 if test -z "$haveit"; then
6322 rpathdirs="$rpathdirs $dir"
6325 for x in $ltrpathdirs; do
6326 if test "X$x" = "X$dir"; then
6331 if test -z "$haveit"; then
6332 ltrpathdirs="$ltrpathdirs $dir"
6337 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6340 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6343 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6344 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6350 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6351 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6357 if test "X$rpathdirs" != "X"; then
6358 if test -n "$acl_hardcode_libdir_separator"; then
6360 for found_dir in $rpathdirs; do
6361 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6363 acl_save_libdir="$libdir"
6365 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6366 libdir="$acl_save_libdir"
6367 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6369 for found_dir in $rpathdirs; do
6370 acl_save_libdir="$libdir"
6372 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6373 libdir="$acl_save_libdir"
6374 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6378 if test "X$ltrpathdirs" != "X"; then
6379 for found_dir in $ltrpathdirs; do
6380 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6390 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6391 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6392 $as_echo_n "(cached) " >&6
6394 gt_save_CPPFLAGS="$CPPFLAGS"
6395 CPPFLAGS="$CPPFLAGS $INCINTL"
6396 gt_save_LIBS="$LIBS"
6397 LIBS="$LIBS $LIBINTL"
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6400 #include <libintl.h>
6401 $gt_revision_test_code
6402 extern int _nl_msg_cat_cntr;
6407 const char *_nl_expand_alias (const char *);
6411 bindtextdomain ("", "");
6412 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6417 if ac_fn_c_try_link "$LINENO"; then :
6418 eval "$gt_func_gnugettext_libintl=yes"
6420 eval "$gt_func_gnugettext_libintl=no"
6422 rm -f core conftest.err conftest.$ac_objext \
6423 conftest$ac_exeext conftest.$ac_ext
6424 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6425 LIBS="$LIBS $LIBICONV"
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6428 #include <libintl.h>
6429 $gt_revision_test_code
6430 extern int _nl_msg_cat_cntr;
6435 const char *_nl_expand_alias (const char *);
6439 bindtextdomain ("", "");
6440 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6445 if ac_fn_c_try_link "$LINENO"; then :
6446 LIBINTL="$LIBINTL $LIBICONV"
6447 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6448 eval "$gt_func_gnugettext_libintl=yes"
6451 rm -f core conftest.err conftest.$ac_objext \
6452 conftest$ac_exeext conftest.$ac_ext
6454 CPPFLAGS="$gt_save_CPPFLAGS"
6455 LIBS="$gt_save_LIBS"
6457 eval ac_res=\$$gt_func_gnugettext_libintl
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6459 $as_echo "$ac_res" >&6; }
6462 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6463 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6464 && test "$PACKAGE" != gettext-runtime \
6465 && test "$PACKAGE" != gettext-tools; }; then
6466 gt_use_preinstalled_gnugettext=yes
6475 if test -n "$INTL_MACOSX_LIBS"; then
6476 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6477 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6478 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6479 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6483 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6484 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6486 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6494 $as_echo_n "checking whether to use NLS... " >&6; }
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6496 $as_echo "$USE_NLS" >&6; }
6497 if test "$USE_NLS" = "yes"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6499 $as_echo_n "checking where the gettext function comes from... " >&6; }
6500 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6501 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6502 gt_source="external libintl"
6507 gt_source="included intl directory"
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6510 $as_echo "$gt_source" >&6; }
6513 if test "$USE_NLS" = "yes"; then
6515 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6516 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6518 $as_echo_n "checking how to link with libintl... " >&6; }
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6520 $as_echo "$LIBINTL" >&6; }
6522 for element in $INCINTL; do
6524 for x in $CPPFLAGS; do
6526 acl_save_prefix="$prefix"
6527 prefix="$acl_final_prefix"
6528 acl_save_exec_prefix="$exec_prefix"
6529 exec_prefix="$acl_final_exec_prefix"
6531 exec_prefix="$acl_save_exec_prefix"
6532 prefix="$acl_save_prefix"
6534 if test "X$x" = "X$element"; then
6539 if test -z "$haveit"; then
6540 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6547 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6550 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6571 abook_localedir="$datadir/locale"
6572 abook_localedir=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6573 eval tmp_abook_prefix=\""$abook_localedir"\"
6574 eval echo $tmp_abook_prefix
6577 localedir="\$(datadir)/locale"
6580 # Check whether --with-localedir was given.
6581 if test "${with_localedir+set}" = set; then :
6582 withval=$with_localedir;
6585 if test "x$with_localedir" != "x"; then
6586 abook_localedir="$with_localedir"
6587 localedir="$with_localedir"
6591 cat >>confdefs.h <<_ACEOF
6592 #define LOCALEDIR "$abook_localedir"
6597 if test x$USE_INCLUDED_LIBINTL = xyes; then
6598 USE_INCLUDED_INTL_H_TRUE=
6599 USE_INCLUDED_INTL_H_FALSE='#'
6601 USE_INCLUDED_INTL_H_TRUE='#'
6602 USE_INCLUDED_INTL_H_FALSE=
6608 ac_cpp='$CPP $CPPFLAGS'
6609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6612 if test -n "$ac_tool_prefix"; then
6613 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6614 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_prog_CC+:} false; then :
6618 $as_echo_n "(cached) " >&6
6620 if test -n "$CC"; then
6621 ac_cv_prog_CC="$CC" # Let the user override the test.
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 if test -n "$CC"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6643 $as_echo "$CC" >&6; }
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6651 if test -z "$ac_cv_prog_CC"; then
6653 # Extract the first word of "gcc", so it can be a program name with args.
6654 set dummy gcc; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6658 $as_echo_n "(cached) " >&6
6660 if test -n "$ac_ct_CC"; then
6661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670 ac_cv_prog_ac_ct_CC="gcc"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6681 if test -n "$ac_ct_CC"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6683 $as_echo "$ac_ct_CC" >&6; }
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6689 if test "x$ac_ct_CC" = x; then
6692 case $cross_compiling:$ac_tool_warned in
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696 ac_tool_warned=yes ;;
6704 if test -z "$CC"; then
6705 if test -n "$ac_tool_prefix"; then
6706 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6707 set dummy ${ac_tool_prefix}cc; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if ${ac_cv_prog_CC+:} false; then :
6711 $as_echo_n "(cached) " >&6
6713 if test -n "$CC"; then
6714 ac_cv_prog_CC="$CC" # Let the user override the test.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723 ac_cv_prog_CC="${ac_tool_prefix}cc"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 if test -n "$CC"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6736 $as_echo "$CC" >&6; }
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6745 if test -z "$CC"; then
6746 # Extract the first word of "cc", so it can be a program name with args.
6747 set dummy cc; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_CC+:} false; then :
6751 $as_echo_n "(cached) " >&6
6753 if test -n "$CC"; then
6754 ac_cv_prog_CC="$CC" # Let the user override the test.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6764 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6765 ac_prog_rejected=yes
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 if test $ac_prog_rejected = yes; then
6777 # We found a bogon in the path, so make sure we never use it.
6778 set dummy $ac_cv_prog_CC
6780 if test $# != 0; then
6781 # We chose a different compiler from the bogus one.
6782 # However, it has the same basename, so the bogon will be chosen
6783 # first if we set CC to just the basename; use the full file name.
6785 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6791 if test -n "$CC"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6793 $as_echo "$CC" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6801 if test -z "$CC"; then
6802 if test -n "$ac_tool_prefix"; then
6803 for ac_prog in cl.exe
6805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if ${ac_cv_prog_CC+:} false; then :
6810 $as_echo_n "(cached) " >&6
6812 if test -n "$CC"; then
6813 ac_cv_prog_CC="$CC" # Let the user override the test.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 if test -n "$CC"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6835 $as_echo "$CC" >&6; }
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6842 test -n "$CC" && break
6845 if test -z "$CC"; then
6847 for ac_prog in cl.exe
6849 # Extract the first word of "$ac_prog", so it can be a program name with args.
6850 set dummy $ac_prog; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6854 $as_echo_n "(cached) " >&6
6856 if test -n "$ac_ct_CC"; then
6857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866 ac_cv_prog_ac_ct_CC="$ac_prog"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6877 if test -n "$ac_ct_CC"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6879 $as_echo "$ac_ct_CC" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6886 test -n "$ac_ct_CC" && break
6889 if test "x$ac_ct_CC" = x; then
6892 case $cross_compiling:$ac_tool_warned in
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6896 ac_tool_warned=yes ;;
6905 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6907 as_fn_error $? "no acceptable C compiler found in \$PATH
6908 See \`config.log' for more details" "$LINENO" 5; }
6910 # Provide some information about the compiler.
6911 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6914 for ac_option in --version -v -V -qversion; do
6915 { { ac_try="$ac_compiler $ac_option >&5"
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6921 $as_echo "$ac_try_echo"; } >&5
6922 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6924 if test -s conftest.err; then
6926 ... rest of stderr output deleted ...
6927 10q' conftest.err >conftest.er1
6928 cat conftest.er1 >&5
6930 rm -f conftest.er1 conftest.err
6931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932 test $ac_status = 0; }
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6936 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6937 if ${ac_cv_c_compiler_gnu+:} false; then :
6938 $as_echo_n "(cached) " >&6
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6954 if ac_fn_c_try_compile "$LINENO"; then :
6959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6964 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6965 if test $ac_compiler_gnu = yes; then
6970 ac_test_CFLAGS=${CFLAGS+set}
6971 ac_save_CFLAGS=$CFLAGS
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6973 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6974 if ${ac_cv_prog_cc_g+:} false; then :
6975 $as_echo_n "(cached) " >&6
6977 ac_save_c_werror_flag=$ac_c_werror_flag
6978 ac_c_werror_flag=yes
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6992 if ac_fn_c_try_compile "$LINENO"; then :
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
7007 if ac_fn_c_try_compile "$LINENO"; then :
7010 ac_c_werror_flag=$ac_save_c_werror_flag
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7023 if ac_fn_c_try_compile "$LINENO"; then :
7026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031 ac_c_werror_flag=$ac_save_c_werror_flag
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7034 $as_echo "$ac_cv_prog_cc_g" >&6; }
7035 if test "$ac_test_CFLAGS" = set; then
7036 CFLAGS=$ac_save_CFLAGS
7037 elif test $ac_cv_prog_cc_g = yes; then
7038 if test "$GCC" = yes; then
7044 if test "$GCC" = yes; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7051 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7052 if ${ac_cv_prog_cc_c89+:} false; then :
7053 $as_echo_n "(cached) " >&6
7055 ac_cv_prog_cc_c89=no
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7062 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7063 struct buf { int x; };
7064 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7065 static char *e (p, i)
7071 static char *f (char * (*g) (char **, int), char **p, ...)
7076 s = g (p, va_arg (v,int));
7081 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7082 function prototypes and stuff, but not '\xHH' hex character constants.
7083 These don't provoke an error unfortunately, instead are silently treated
7084 as 'x'. The following induces an error, until -std is added to get
7085 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7086 array size at least. It's necessary to write '\x00'==0 to get something
7087 that's true only with -std. */
7088 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7090 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7091 inside strings and character constants. */
7093 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7095 int test (int i, double x);
7096 struct s1 {int (*f) (int a);};
7097 struct s2 {int (*f) (double a);};
7098 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7104 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7109 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7110 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7112 CC="$ac_save_CC $ac_arg"
7113 if ac_fn_c_try_compile "$LINENO"; then :
7114 ac_cv_prog_cc_c89=$ac_arg
7116 rm -f core conftest.err conftest.$ac_objext
7117 test "x$ac_cv_prog_cc_c89" != "xno" && break
7119 rm -f conftest.$ac_ext
7124 case "x$ac_cv_prog_cc_c89" in
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7127 $as_echo "none needed" >&6; } ;;
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7130 $as_echo "unsupported" >&6; } ;;
7132 CC="$CC $ac_cv_prog_cc_c89"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7134 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7136 if test "x$ac_cv_prog_cc_c89" != xno; then :
7141 ac_cpp='$CPP $CPPFLAGS'
7142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147 ac_cpp='$CPP $CPPFLAGS'
7148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7152 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7153 if ${am_cv_prog_cc_c_o+:} false; then :
7154 $as_echo_n "(cached) " >&6
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7167 # Make sure it works both with $CC and with simple cc.
7168 # Following AC_PROG_CC_C_O, we do the test twice because some
7169 # compilers refuse to overwrite an existing .o file with -o,
7170 # though they will create one.
7171 am_cv_prog_cc_c_o=yes
7173 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7174 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } \
7178 && test -f conftest2.$ac_objext; then
7181 am_cv_prog_cc_c_o=no
7185 rm -f core conftest*
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7189 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7190 if test "$am_cv_prog_cc_c_o" != yes; then
7191 # Losing compiler, so override with the script.
7192 # FIXME: It is wrong to rewrite CC.
7193 # But if we don't then we get into trouble of one sort or another.
7194 # A longer-term fix would be to have automake use am__CC in this case,
7195 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7196 CC="$am_aux_dir/compile $CC"
7199 ac_cpp='$CPP $CPPFLAGS'
7200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7205 depcc="$CC" am_compiler_list=
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7208 $as_echo_n "checking dependency style of $depcc... " >&6; }
7209 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7210 $as_echo_n "(cached) " >&6
7212 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7213 # We make a subdir and do the tests there. Otherwise we can end up
7214 # making bogus files that we don't know about and never remove. For
7215 # instance it was reported that on HP-UX the gcc test will end up
7216 # making a dummy file named 'D' -- because '-MD' means "put the output
7220 # Copy depcomp to subdir because otherwise we won't find it if we're
7221 # using a relative directory.
7222 cp "$am_depcomp" conftest.dir
7224 # We will build objects and dependencies in a subdirectory because
7225 # it helps to detect inapplicable dependency modes. For instance
7226 # both Tru64's cc and ICC support -MD to output dependencies as a
7227 # side effect of compilation, but ICC will put the dependencies in
7228 # the current directory while Tru64 will put them in the object
7232 am_cv_CC_dependencies_compiler_type=none
7233 if test "$am_compiler_list" = ""; then
7234 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7237 case " $depcc " in #(
7238 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7241 for depmode in $am_compiler_list; do
7242 # Setup a source with many dependencies, because some compilers
7243 # like to wrap large dependency lists on column 80 (with \), and
7244 # we should not choose a depcomp mode which is confused by this.
7246 # We need to recreate these files for each test, as the compiler may
7247 # overwrite some of them when testing with obscure command lines.
7248 # This happens at least with the AIX C compiler.
7250 for i in 1 2 3 4 5 6; do
7251 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7252 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7253 # Solaris 10 /bin/sh.
7254 echo '/* dummy */' > sub/conftst$i.h
7256 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7258 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7259 # mode. It turns out that the SunPro C++ compiler does not properly
7260 # handle '-M -o', and we need to detect this. Also, some Intel
7261 # versions had trouble with output in subdirs.
7262 am__obj=sub/conftest.${OBJEXT-o}
7263 am__minus_obj="-o $am__obj"
7266 # This depmode causes a compiler race in universal mode.
7267 test "$am__universal" = false || continue
7270 # After this tag, mechanisms are not by side-effect, so they'll
7271 # only be used when explicitly requested.
7272 if test "x$enable_dependency_tracking" = xyes; then
7278 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7279 # This compiler won't grok '-c -o', but also, the minuso test has
7280 # not run yet. These depmodes are late enough in the game, and
7281 # so weak that their functioning should not be impacted.
7282 am__obj=conftest.${OBJEXT-o}
7287 if depmode=$depmode \
7288 source=sub/conftest.c object=$am__obj \
7289 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7290 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7291 >/dev/null 2>conftest.err &&
7292 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7293 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7294 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7295 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7296 # icc doesn't choke on unknown options, it will just issue warnings
7297 # or remarks (even with -Werror). So we grep stderr for any message
7298 # that says an option was ignored or not supported.
7299 # When given -MP, icc 7.0 and 7.1 complain thusly:
7300 # icc: Command line warning: ignoring option '-M'; no argument required
7301 # The diagnosis changed in icc 8.0:
7302 # icc: Command line remark: option '-MP' not supported
7303 if (grep 'ignoring option' conftest.err ||
7304 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7305 am_cv_CC_dependencies_compiler_type=$depmode
7314 am_cv_CC_dependencies_compiler_type=none
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7319 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7320 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7323 test "x$enable_dependency_tracking" != xno \
7324 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7326 am__fastdepCC_FALSE='#'
7328 am__fastdepCC_TRUE='#'
7329 am__fastdepCC_FALSE=
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7334 $as_echo_n "checking for library containing strerror... " >&6; }
7335 if ${ac_cv_search_strerror+:} false; then :
7336 $as_echo_n "(cached) " >&6
7338 ac_func_search_save_LIBS=$LIBS
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7342 /* Override any GCC internal prototype to avoid an error.
7343 Use char because int might match the return type of a GCC
7344 builtin and then its argument prototype would still apply. */
7357 for ac_lib in '' cposix; do
7358 if test -z "$ac_lib"; then
7359 ac_res="none required"
7362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7364 if ac_fn_c_try_link "$LINENO"; then :
7365 ac_cv_search_strerror=$ac_res
7367 rm -f core conftest.err conftest.$ac_objext \
7369 if ${ac_cv_search_strerror+:} false; then :
7373 if ${ac_cv_search_strerror+:} false; then :
7376 ac_cv_search_strerror=no
7379 LIBS=$ac_func_search_save_LIBS
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7382 $as_echo "$ac_cv_search_strerror" >&6; }
7383 ac_res=$ac_cv_search_strerror
7384 if test "$ac_res" != no; then :
7385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7389 if test "x$U" != "x"; then
7390 as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7393 $as_echo_n "checking for inline... " >&6; }
7394 if ${ac_cv_c_inline+:} false; then :
7395 $as_echo_n "(cached) " >&6
7398 for ac_kw in inline __inline__ __inline; do
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7403 static $ac_kw foo_t static_foo () {return 0; }
7404 $ac_kw foo_t foo () {return 0; }
7408 if ac_fn_c_try_compile "$LINENO"; then :
7409 ac_cv_c_inline=$ac_kw
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 test "$ac_cv_c_inline" != no && break
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7417 $as_echo "$ac_cv_c_inline" >&6; }
7419 case $ac_cv_c_inline in
7422 case $ac_cv_c_inline in
7424 *) ac_val=$ac_cv_c_inline;;
7426 cat >>confdefs.h <<_ACEOF
7428 #define inline $ac_val
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7436 $as_echo_n "checking for ANSI C header files... " >&6; }
7437 if ${ac_cv_header_stdc+:} false; then :
7438 $as_echo_n "(cached) " >&6
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7455 if ac_fn_c_try_compile "$LINENO"; then :
7456 ac_cv_header_stdc=yes
7458 ac_cv_header_stdc=no
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 if test $ac_cv_header_stdc = yes; then
7463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7470 $EGREP "memchr" >/dev/null 2>&1; then :
7473 ac_cv_header_stdc=no
7479 if test $ac_cv_header_stdc = yes; then
7480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7487 $EGREP "free" >/dev/null 2>&1; then :
7490 ac_cv_header_stdc=no
7496 if test $ac_cv_header_stdc = yes; then
7497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7498 if test "$cross_compiling" = yes; then :
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7505 #if ((' ' & 0x0FF) == 0x020)
7506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7509 # define ISLOWER(c) \
7510 (('a' <= (c) && (c) <= 'i') \
7511 || ('j' <= (c) && (c) <= 'r') \
7512 || ('s' <= (c) && (c) <= 'z'))
7513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7521 for (i = 0; i < 256; i++)
7522 if (XOR (islower (i), ISLOWER (i))
7523 || toupper (i) != TOUPPER (i))
7528 if ac_fn_c_try_run "$LINENO"; then :
7531 ac_cv_header_stdc=no
7533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7534 conftest.$ac_objext conftest.beam conftest.$ac_ext
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7540 $as_echo "$ac_cv_header_stdc" >&6; }
7541 if test $ac_cv_header_stdc = yes; then
7543 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7547 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
7549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7550 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7551 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7552 cat >>confdefs.h <<_ACEOF
7553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7560 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
7561 if test "x$ac_cv_header_stdarg_h" = xyes; then :
7563 $as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
7566 as_fn_error $? "*** stdarg.h is missing on your system ***" "$LINENO" 5
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
7571 $as_echo_n "checking for working strcoll... " >&6; }
7572 if ${ac_cv_func_strcoll_works+:} false; then :
7573 $as_echo_n "(cached) " >&6
7575 if test "$cross_compiling" = yes; then :
7576 ac_cv_func_strcoll_works=no
7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7580 $ac_includes_default
7584 return (strcoll ("abc", "def") >= 0 ||
7585 strcoll ("ABC", "DEF") >= 0 ||
7586 strcoll ("123", "456") >= 0)
7591 if ac_fn_c_try_run "$LINENO"; then :
7592 ac_cv_func_strcoll_works=yes
7594 ac_cv_func_strcoll_works=no
7596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7597 conftest.$ac_objext conftest.beam conftest.$ac_ext
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
7602 $as_echo "$ac_cv_func_strcoll_works" >&6; }
7603 if test $ac_cv_func_strcoll_works = yes; then
7605 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
7609 for ac_func in setlocale
7611 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
7612 if test "x$ac_cv_func_setlocale" = xyes; then :
7613 cat >>confdefs.h <<_ACEOF
7614 #define HAVE_SETLOCALE 1
7622 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
7623 if test "x$ac_cv_header_wchar_h" = xyes; then :
7627 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
7634 for ac_func in mbtowc wcwidth mbrtowc mbsinit
7636 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7637 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7638 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7639 cat >>confdefs.h <<_ACEOF
7640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7648 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "$ac_includes_default"
7649 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
7655 cat >>confdefs.h <<_ACEOF
7656 #define HAVE_DECL_WCWIDTH $ac_have_decl
7659 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
7660 if test "x$ac_cv_type_wchar_t" = xyes; then :
7667 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
7668 ac_widec_possible=yes
7670 ac_widec_possible=no
7674 abook_cv_curses=/usr
7676 # Check whether --with-curses was given.
7677 if test "${with_curses+set}" = set; then :
7678 withval=$with_curses; if test $withval != yes; then
7679 abook_cv_curses=$withval
7681 if test x$abook_cv_curses != x/usr; then
7682 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
7683 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
7689 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
7690 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
7691 $as_echo_n "(cached) " >&6
7693 ac_check_lib_save_LIBS=$LIBS
7694 LIBS="-lncursesw $LIBS"
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7698 /* Override any GCC internal prototype to avoid an error.
7699 Use char because int might match the return type of a GCC
7700 builtin and then its argument prototype would still apply. */
7713 if ac_fn_c_try_link "$LINENO"; then :
7714 ac_cv_lib_ncursesw_initscr=yes
7716 ac_cv_lib_ncursesw_initscr=no
7718 rm -f core conftest.err conftest.$ac_objext \
7719 conftest$ac_exeext conftest.$ac_ext
7720 LIBS=$ac_check_lib_save_LIBS
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
7723 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
7724 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
7725 LIBS="$LIBS -lncursesw"
7726 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
7727 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
7729 for ac_header in ncurses.h
7731 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
7732 if test "x$ac_cv_header_ncurses_h" = xyes; then :
7733 cat >>confdefs.h <<_ACEOF
7734 #define HAVE_NCURSES_H 1
7743 ac_widec_possible=no
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
7745 $as_echo_n "checking for initscr in -lncurses... " >&6; }
7746 if ${ac_cv_lib_ncurses_initscr+:} false; then :
7747 $as_echo_n "(cached) " >&6
7749 ac_check_lib_save_LIBS=$LIBS
7750 LIBS="-lncurses $LIBS"
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7754 /* Override any GCC internal prototype to avoid an error.
7755 Use char because int might match the return type of a GCC
7756 builtin and then its argument prototype would still apply. */
7769 if ac_fn_c_try_link "$LINENO"; then :
7770 ac_cv_lib_ncurses_initscr=yes
7772 ac_cv_lib_ncurses_initscr=no
7774 rm -f core conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext conftest.$ac_ext
7776 LIBS=$ac_check_lib_save_LIBS
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
7779 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
7780 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
7781 LIBS="$LIBS -lncurses"
7782 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
7783 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
7785 for ac_header in ncurses.h
7787 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
7788 if test "x$ac_cv_header_ncurses_h" = xyes; then :
7789 cat >>confdefs.h <<_ACEOF
7790 #define HAVE_NCURSES_H 1
7799 ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr"
7800 if test "x$ac_cv_func_initscr" = xyes; then :
7804 case $host_os in #(vi
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5
7807 $as_echo_n "checking for tgoto in -lmytinfo... " >&6; }
7808 if ${ac_cv_lib_mytinfo_tgoto+:} false; then :
7809 $as_echo_n "(cached) " >&6
7811 ac_check_lib_save_LIBS=$LIBS
7812 LIBS="-lmytinfo $LIBS"
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7816 /* Override any GCC internal prototype to avoid an error.
7817 Use char because int might match the return type of a GCC
7818 builtin and then its argument prototype would still apply. */
7831 if ac_fn_c_try_link "$LINENO"; then :
7832 ac_cv_lib_mytinfo_tgoto=yes
7834 ac_cv_lib_mytinfo_tgoto=no
7836 rm -f core conftest.err conftest.$ac_objext \
7837 conftest$ac_exeext conftest.$ac_ext
7838 LIBS=$ac_check_lib_save_LIBS
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5
7841 $as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; }
7842 if test "x$ac_cv_lib_mytinfo_tgoto" = xyes; then :
7843 LIBS="-lmytinfo $LIBS"
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5
7849 $as_echo_n "checking for initscr in -lcur_colr... " >&6; }
7850 if ${ac_cv_lib_cur_colr_initscr+:} false; then :
7851 $as_echo_n "(cached) " >&6
7853 ac_check_lib_save_LIBS=$LIBS
7854 LIBS="-lcur_colr $LIBS"
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7858 /* Override any GCC internal prototype to avoid an error.
7859 Use char because int might match the return type of a GCC
7860 builtin and then its argument prototype would still apply. */
7873 if ac_fn_c_try_link "$LINENO"; then :
7874 ac_cv_lib_cur_colr_initscr=yes
7876 ac_cv_lib_cur_colr_initscr=no
7878 rm -f core conftest.err conftest.$ac_objext \
7879 conftest$ac_exeext conftest.$ac_ext
7880 LIBS=$ac_check_lib_save_LIBS
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5
7883 $as_echo "$ac_cv_lib_cur_colr_initscr" >&6; }
7884 if test "x$ac_cv_lib_cur_colr_initscr" = xyes; then :
7886 LIBS="-lcur_colr $LIBS"
7887 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
7888 ac_cv_func_initscr=yes
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5
7893 $as_echo_n "checking for initscr in -lHcurses... " >&6; }
7894 if ${ac_cv_lib_Hcurses_initscr+:} false; then :
7895 $as_echo_n "(cached) " >&6
7897 ac_check_lib_save_LIBS=$LIBS
7898 LIBS="-lHcurses $LIBS"
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7902 /* Override any GCC internal prototype to avoid an error.
7903 Use char because int might match the return type of a GCC
7904 builtin and then its argument prototype would still apply. */
7917 if ac_fn_c_try_link "$LINENO"; then :
7918 ac_cv_lib_Hcurses_initscr=yes
7920 ac_cv_lib_Hcurses_initscr=no
7922 rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7924 LIBS=$ac_check_lib_save_LIBS
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5
7927 $as_echo "$ac_cv_lib_Hcurses_initscr" >&6; }
7928 if test "x$ac_cv_lib_Hcurses_initscr" = xyes; then :
7930 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
7931 LIBS="-lHcurses $LIBS"
7932 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
7933 ac_cv_func_initscr=yes
7940 linux*) # Suse Linux does not follow /usr/lib convention
7945 if test ".$With5lib" != ".no" ; then
7946 if test -d /usr/5lib ; then
7948 CPPFLAGS="$CPPFLAGS -I/usr/5include"
7949 LIBS="$LIBS -L/usr/5lib"
7953 if test ".$ac_cv_func_initscr" != .yes ; then
7954 cf_save_LIBS="$LIBS"
7958 # Check for library containing tgoto. Do this before curses library
7959 # because it may be needed to link the test-case for initscr.
7960 ac_fn_c_check_func "$LINENO" "tgoto" "ac_cv_func_tgoto"
7961 if test "x$ac_cv_func_tgoto" = xyes; then :
7962 cf_term_lib=predefined
7965 for cf_term_lib in termcap termlib unknown
7967 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5
7969 $as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; }
7970 if eval \${$as_ac_Lib+:} false; then :
7971 $as_echo_n "(cached) " >&6
7973 ac_check_lib_save_LIBS=$LIBS
7974 LIBS="-l$cf_term_lib $LIBS"
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7978 /* Override any GCC internal prototype to avoid an error.
7979 Use char because int might match the return type of a GCC
7980 builtin and then its argument prototype would still apply. */
7993 if ac_fn_c_try_link "$LINENO"; then :
7994 eval "$as_ac_Lib=yes"
7996 eval "$as_ac_Lib=no"
7998 rm -f core conftest.err conftest.$ac_objext \
7999 conftest$ac_exeext conftest.$ac_ext
8000 LIBS=$ac_check_lib_save_LIBS
8002 eval ac_res=\$$as_ac_Lib
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8004 $as_echo "$ac_res" >&6; }
8005 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8014 # Check for library containing initscr
8015 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
8016 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
8018 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5
8020 $as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; }
8021 if eval \${$as_ac_Lib+:} false; then :
8022 $as_echo_n "(cached) " >&6
8024 ac_check_lib_save_LIBS=$LIBS
8025 LIBS="-l$cf_curs_lib $LIBS"
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h. */
8029 /* Override any GCC internal prototype to avoid an error.
8030 Use char because int might match the return type of a GCC
8031 builtin and then its argument prototype would still apply. */
8044 if ac_fn_c_try_link "$LINENO"; then :
8045 eval "$as_ac_Lib=yes"
8047 eval "$as_ac_Lib=no"
8049 rm -f core conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8051 LIBS=$ac_check_lib_save_LIBS
8053 eval ac_res=\$$as_ac_Lib
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8055 $as_echo "$ac_res" >&6; }
8056 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8061 test $cf_curs_lib = unknown && as_fn_error $? "no curses library found" "$LINENO" 5
8063 LIBS="-l$cf_curs_lib $cf_save_LIBS"
8064 if test "$cf_term_lib" = unknown ; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5
8066 $as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; }
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8069 #include <${cf_cv_ncurses_header-curses.h}>
8078 if ac_fn_c_try_link "$LINENO"; then :
8083 rm -f core conftest.err conftest.$ac_objext \
8084 conftest$ac_exeext conftest.$ac_ext
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
8086 $as_echo "$cf_result" >&6; }
8087 test $cf_result = no && as_fn_error $? "Cannot link curses library" "$LINENO" 5
8088 elif test "$cf_term_lib" != predefined ; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
8090 $as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; }
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093 #include <${cf_cv_ncurses_header-curses.h}>
8097 initscr(); tgoto((char *)0, 0, 0);
8102 if ac_fn_c_try_link "$LINENO"; then :
8106 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 #include <${cf_cv_ncurses_header-curses.h}>
8118 if ac_fn_c_try_link "$LINENO"; then :
8123 rm -f core conftest.err conftest.$ac_objext \
8124 conftest$ac_exeext conftest.$ac_ext
8127 rm -f core conftest.err conftest.$ac_objext \
8128 conftest$ac_exeext conftest.$ac_ext
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
8130 $as_echo "$cf_result" >&6; }
8145 abook_cv_readline=/usr
8147 # Check whether --with-readline was given.
8148 if test "${with_readline+set}" = set; then :
8149 withval=$with_readline; if test $withval != yes; then
8150 abook_cv_readline=$withval
8152 if test x$abook_cv_readline != x/usr; then
8153 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
8154 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
8161 $as_echo_n "checking for a readline compatible library... " >&6; }
8162 if ${ac_cv_lib_readline+:} false; then :
8163 $as_echo_n "(cached) " >&6
8167 for readline_lib in readline edit editline; do
8168 for termcap_lib in "" termcap curses ncurses; do
8169 if test -z "$termcap_lib"; then
8170 TRY_LIB="-l$readline_lib"
8172 TRY_LIB="-l$readline_lib -l$termcap_lib"
8174 LIBS="$ORIG_LIBS $TRY_LIB"
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8178 /* Override any GCC internal prototype to avoid an error.
8179 Use char because int might match the return type of a GCC
8180 builtin and then its argument prototype would still apply. */
8193 if ac_fn_c_try_link "$LINENO"; then :
8194 ac_cv_lib_readline="$TRY_LIB"
8196 rm -f core conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
8198 if test -n "$ac_cv_lib_readline"; then
8202 if test -n "$ac_cv_lib_readline"; then
8206 if test -z "$ac_cv_lib_readline"; then
8207 ac_cv_lib_readline="no"
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
8213 $as_echo "$ac_cv_lib_readline" >&6; }
8215 if test "$ac_cv_lib_readline" != "no"; then
8216 LIBS="$LIBS $ac_cv_lib_readline"
8218 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
8220 for ac_header in readline.h readline/readline.h
8222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8223 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8225 cat >>confdefs.h <<_ACEOF
8226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
8234 $as_echo_n "checking whether readline supports history... " >&6; }
8235 if ${ac_cv_lib_readline_history+:} false; then :
8236 $as_echo_n "(cached) " >&6
8239 ac_cv_lib_readline_history="no"
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8243 /* Override any GCC internal prototype to avoid an error.
8244 Use char because int might match the return type of a GCC
8245 builtin and then its argument prototype would still apply. */
8249 char add_history ();
8253 return add_history ();
8258 if ac_fn_c_try_link "$LINENO"; then :
8259 ac_cv_lib_readline_history="yes"
8261 rm -f core conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
8266 $as_echo "$ac_cv_lib_readline_history" >&6; }
8267 if test "$ac_cv_lib_readline_history" = "yes"; then
8269 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
8271 for ac_header in history.h readline/history.h
8273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8274 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8275 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8276 cat >>confdefs.h <<_ACEOF
8277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8289 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
8290 as_fn_error $? "*** readline library not found or it doesn't support history ***" "$LINENO" 5
8295 # Check whether --enable-vformat was given.
8296 if test "${enable_vformat+set}" = set; then :
8297 enableval=$enable_vformat; case "${enableval}" in
8298 yes) vformat=true ;;
8299 no) vformat=false ;;
8300 *) as_fn_error $? "bad value ${enableval} for --enable-vformat" "$LINENO" 5 ;;
8306 if test x$vformat = xtrue; then
8307 ac_fn_c_check_header_mongrel "$LINENO" "vf_iface.h" "ac_cv_header_vf_iface_h" "$ac_includes_default"
8308 if test "x$ac_cv_header_vf_iface_h" = xyes; then :
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vf_read_file in -lvformat" >&5
8311 $as_echo_n "checking for vf_read_file in -lvformat... " >&6; }
8312 if ${ac_cv_lib_vformat_vf_read_file+:} false; then :
8313 $as_echo_n "(cached) " >&6
8315 ac_check_lib_save_LIBS=$LIBS
8316 LIBS="-lvformat $LIBS"
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8320 /* Override any GCC internal prototype to avoid an error.
8321 Use char because int might match the return type of a GCC
8322 builtin and then its argument prototype would still apply. */
8326 char vf_read_file ();
8330 return vf_read_file ();
8335 if ac_fn_c_try_link "$LINENO"; then :
8336 ac_cv_lib_vformat_vf_read_file=yes
8338 ac_cv_lib_vformat_vf_read_file=no
8340 rm -f core conftest.err conftest.$ac_objext \
8341 conftest$ac_exeext conftest.$ac_ext
8342 LIBS=$ac_check_lib_save_LIBS
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vformat_vf_read_file" >&5
8345 $as_echo "$ac_cv_lib_vformat_vf_read_file" >&6; }
8346 if test "x$ac_cv_lib_vformat_vf_read_file" = xyes; then :
8348 MODULES="$MODULES m_vcf"
8350 $as_echo "#define HAVE_VFORMAT 1" >>confdefs.h
8361 if test x"$have_vformat" = "xyes"; then
8362 ENABLE_VFORMAT_SUPPORT_TRUE=
8363 ENABLE_VFORMAT_SUPPORT_FALSE='#'
8365 ENABLE_VFORMAT_SUPPORT_TRUE='#'
8366 ENABLE_VFORMAT_SUPPORT_FALSE=
8372 if test x$ac_widec_possible = xyes; then
8374 $as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h
8378 for ac_func in resizeterm
8380 ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm"
8381 if test "x$ac_cv_func_resizeterm" = xyes; then :
8382 cat >>confdefs.h <<_ACEOF
8383 #define HAVE_RESIZETERM 1
8390 for ac_func in snprintf vsnprintf
8392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8393 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8394 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8395 cat >>confdefs.h <<_ACEOF
8396 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8403 for ac_func in strcasestr
8405 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
8406 if test "x$ac_cv_func_strcasestr" = xyes; then :
8407 cat >>confdefs.h <<_ACEOF
8408 #define HAVE_STRCASESTR 1
8410 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
8416 # Check whether --enable-debug was given.
8417 if test "${enable_debug+set}" = set; then :
8418 enableval=$enable_debug; case "${enableval}" in
8421 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
8428 if test x$debug = xtrue; then
8429 CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
8433 if test x$GCC = xyes; then
8434 CFLAGS="-Wall $CFLAGS"
8437 ac_config_files="$ac_config_files Makefile abook.spec po/Makefile.in"
8439 cat >confcache <<\_ACEOF
8440 # This file is a shell script that caches the results of configure
8441 # tests run on this system so they can be shared between configure
8442 # scripts and configure runs, see configure's option --config-cache.
8443 # It is not useful on other systems. If it contains results you don't
8444 # want to keep, you may remove or edit it.
8446 # config.status only pays attention to the cache file if you give it
8447 # the --recheck option to rerun configure.
8449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8455 # The following way of writing the cache mishandles newlines in values,
8456 # but we know of no workaround that is simple, portable, and efficient.
8457 # So, we kill variables containing newlines.
8458 # Ultrix sh set writes to stderr and can't be redirected directly,
8459 # and sets the high bit in the cache file unless we assign to the vars.
8461 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8462 eval ac_val=\$$ac_var
8466 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8467 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8470 _ | IFS | as_nl) ;; #(
8471 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8472 *) { eval $ac_var=; unset $ac_var;} ;;
8478 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8479 *${as_nl}ac_space=\ *)
8480 # `set' does not quote correctly, so add quotes: double-quote
8481 # substitution turns \\\\ into \\, and sed turns \\ into \.
8484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8487 # `set' quotes correctly as required by POSIX, so do not add quotes.
8488 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8497 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8499 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8501 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8502 if test -w "$cache_file"; then
8503 if test "x$cache_file" != "x/dev/null"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8505 $as_echo "$as_me: updating cache $cache_file" >&6;}
8506 if test ! -f "$cache_file" || test -h "$cache_file"; then
8507 cat confcache >"$cache_file"
8509 case $cache_file in #(
8511 mv -f confcache "$cache_file"$$ &&
8512 mv -f "$cache_file"$$ "$cache_file" ;; #(
8514 mv -f confcache "$cache_file" ;;
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8520 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8525 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8526 # Let make expand exec_prefix.
8527 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8529 DEFS=-DHAVE_CONFIG_H
8534 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8535 # 1. Remove the extension, and $U if already installed.
8536 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8537 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8538 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8539 # will be set to the directory where LIBOBJS objects are built.
8540 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8541 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8545 LTLIBOBJS=$ac_ltlibobjs
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8549 $as_echo_n "checking that generated files are newer than configure... " >&6; }
8550 if test -n "$am_sleep_pid"; then
8551 # Hide warnings about reused PIDs.
8552 wait $am_sleep_pid 2>/dev/null
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
8555 $as_echo "done" >&6; }
8556 if test -n "$EXEEXT"; then
8558 am__EXEEXT_FALSE='#'
8564 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8565 as_fn_error $? "conditional \"AMDEP\" was never defined.
8566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8568 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8569 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8572 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
8573 as_fn_error $? "conditional \"USE_INCLUDED_INTL_H\" was never defined.
8574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8576 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8577 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8580 if test -z "${ENABLE_VFORMAT_SUPPORT_TRUE}" && test -z "${ENABLE_VFORMAT_SUPPORT_FALSE}"; then
8581 as_fn_error $? "conditional \"ENABLE_VFORMAT_SUPPORT\" was never defined.
8582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8585 : "${CONFIG_STATUS=./config.status}"
8587 ac_clean_files_save=$ac_clean_files
8588 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8590 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8592 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8594 # Generated by $as_me.
8595 # Run this file to recreate the current configuration.
8596 # Compiler output produced by configure, useful for debugging
8597 # configure, is in config.log if it exists.
8603 SHELL=\${CONFIG_SHELL-$SHELL}
8606 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8607 ## -------------------- ##
8608 ## M4sh Initialization. ##
8609 ## -------------------- ##
8611 # Be more Bourne compatible
8612 DUALCASE=1; export DUALCASE # for MKS sh
8613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8616 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8617 # is contrary to our usage. Disable this feature.
8618 alias -g '${1+"$@"}'='"$@"'
8619 setopt NO_GLOB_SUBST
8621 case `(set -o) 2>/dev/null` in #(
8633 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8634 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8635 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8636 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8637 # Prefer a ksh shell builtin over an external printf program on Solaris,
8638 # but without wasting forks for bash or zsh.
8639 if test -z "$BASH_VERSION$ZSH_VERSION" \
8640 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8641 as_echo='print -r --'
8642 as_echo_n='print -rn --'
8643 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8644 as_echo='printf %s\n'
8645 as_echo_n='printf %s'
8647 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8648 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8649 as_echo_n='/usr/ucb/echo -n'
8651 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8652 as_echo_n_body='eval
8656 expr "X$arg" : "X\\(.*\\)$as_nl";
8657 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8659 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8661 export as_echo_n_body
8662 as_echo_n='sh -c $as_echo_n_body as_echo'
8665 as_echo='sh -c $as_echo_body as_echo'
8668 # The user is always right.
8669 if test "${PATH_SEPARATOR+set}" != set; then
8671 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8672 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8679 # We need space, tab and new line, in precisely that order. Quoting is
8680 # there to prevent editors from complaining about space-tab.
8681 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8682 # splitting by setting IFS to empty value.)
8685 # Find who we are. Look in the path if we contain no directory separator.
8688 *[\\/]* ) as_myself=$0 ;;
8689 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 test -z "$as_dir" && as_dir=.
8694 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8700 # We did not find ourselves, most probably we were run as `sh COMMAND'
8701 # in which case we are not to be found in the path.
8702 if test "x$as_myself" = x; then
8705 if test ! -f "$as_myself"; then
8706 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8710 # Unset variables that we do not need and which cause bugs (e.g. in
8711 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8712 # suppresses any "Segmentation fault" message there. '((' could
8713 # trigger a bug in pdksh 5.2.14.
8714 for as_var in BASH_ENV ENV MAIL MAILPATH
8715 do eval test x\${$as_var+set} = xset \
8716 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8729 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8732 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8733 # ----------------------------------------
8734 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8735 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8736 # script with STATUS, using 1 if that was 0.
8739 as_status=$1; test $as_status -eq 0 && as_status=1
8741 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8742 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8744 $as_echo "$as_me: error: $2" >&2
8745 as_fn_exit $as_status
8749 # as_fn_set_status STATUS
8750 # -----------------------
8751 # Set $? to STATUS, without forking.
8755 } # as_fn_set_status
8759 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8769 # Portably unset VAR.
8772 { eval $1=; unset $1;}
8774 as_unset=as_fn_unset
8775 # as_fn_append VAR VALUE
8776 # ----------------------
8777 # Append the text in VALUE to the end of the definition contained in VAR. Take
8778 # advantage of any shell optimizations that allow amortized linear growth over
8779 # repeated appends, instead of the typical quadratic growth present in naive
8781 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8782 eval 'as_fn_append ()
8793 # as_fn_arith ARG...
8794 # ------------------
8795 # Perform arithmetic evaluation on the ARGs, and store the result in the
8796 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8797 # must be portable across $(()) and expr.
8798 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8799 eval 'as_fn_arith ()
8806 as_val=`expr "$@" || test $? -eq 1`
8811 if expr a : '\(a\)' >/dev/null 2>&1 &&
8812 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8819 as_basename=basename
8824 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8830 as_me=`$as_basename -- "$0" ||
8831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8832 X"$0" : 'X\(//\)$' \| \
8833 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8835 sed '/^.*\/\([^/][^/]*\)\/*$/{
8849 # Avoid depending upon Character Ranges.
8850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8853 as_cr_digits='0123456789'
8854 as_cr_alnum=$as_cr_Letters$as_cr_digits
8856 ECHO_C= ECHO_N= ECHO_T=
8857 case `echo -n x` in #(((((
8859 case `echo 'xy\c'` in
8860 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8862 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8869 rm -f conf$$ conf$$.exe conf$$.file
8870 if test -d conf$$.dir; then
8871 rm -f conf$$.dir/conf$$.file
8874 mkdir conf$$.dir 2>/dev/null
8876 if (echo >conf$$.file) 2>/dev/null; then
8877 if ln -s conf$$.file conf$$ 2>/dev/null; then
8879 # ... but there are two gotchas:
8880 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8881 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8882 # In both cases, we have to default to `cp -pR'.
8883 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8885 elif ln conf$$.file conf$$ 2>/dev/null; then
8893 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8894 rmdir conf$$.dir 2>/dev/null
8899 # Create "$as_dir" as a directory, including parents if necessary.
8904 -*) as_dir=./$as_dir;;
8906 test -d "$as_dir" || eval $as_mkdir_p || {
8910 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8911 *) as_qdir=$as_dir;;
8913 as_dirs="'$as_qdir' $as_dirs"
8914 as_dir=`$as_dirname -- "$as_dir" ||
8915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8916 X"$as_dir" : 'X\(//\)[^/]' \| \
8917 X"$as_dir" : 'X\(//\)$' \| \
8918 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8919 $as_echo X"$as_dir" |
8920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8937 test -d "$as_dir" && break
8939 test -z "$as_dirs" || eval "mkdir $as_dirs"
8940 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8944 if mkdir -p . 2>/dev/null; then
8945 as_mkdir_p='mkdir -p "$as_dir"'
8947 test -d ./-p && rmdir ./-p
8952 # as_fn_executable_p FILE
8953 # -----------------------
8954 # Test if FILE is an executable regular file.
8955 as_fn_executable_p ()
8957 test -f "$1" && test -x "$1"
8958 } # as_fn_executable_p
8960 as_executable_p=as_fn_executable_p
8962 # Sed expression to map a string onto a valid CPP name.
8963 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8965 # Sed expression to map a string onto a valid variable name.
8966 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8970 ## ----------------------------------- ##
8971 ## Main body of $CONFIG_STATUS script. ##
8972 ## ----------------------------------- ##
8974 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8977 # Save the log message, to keep $0 and so on meaningful, and to
8978 # report actual input values of CONFIG_FILES etc. instead of their
8979 # values after options handling.
8981 This file was extended by Abook $as_me 0.6.1, which was
8982 generated by GNU Autoconf 2.69. Invocation command line was
8984 CONFIG_FILES = $CONFIG_FILES
8985 CONFIG_HEADERS = $CONFIG_HEADERS
8986 CONFIG_LINKS = $CONFIG_LINKS
8987 CONFIG_COMMANDS = $CONFIG_COMMANDS
8990 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8995 case $ac_config_files in *"
8996 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8999 case $ac_config_headers in *"
9000 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9005 # Files that config.status was made for.
9006 config_files="$ac_config_files"
9007 config_headers="$ac_config_headers"
9008 config_commands="$ac_config_commands"
9012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9014 \`$as_me' instantiates files and other configuration actions
9015 from templates according to the current configuration. Unless the files
9016 and actions are specified as TAGs, all are instantiated by default.
9018 Usage: $0 [OPTION]... [TAG]...
9020 -h, --help print this help, then exit
9021 -V, --version print version number and configuration settings, then exit
9022 --config print configuration, then exit
9023 -q, --quiet, --silent
9024 do not print progress messages
9025 -d, --debug don't remove temporary files
9026 --recheck update $as_me by reconfiguring in the same conditions
9027 --file=FILE[:TEMPLATE]
9028 instantiate the configuration file FILE
9029 --header=FILE[:TEMPLATE]
9030 instantiate the configuration header FILE
9032 Configuration files:
9035 Configuration headers:
9038 Configuration commands:
9041 Report bugs to <abook-devel@lists.sourceforge.net>.
9042 Abook home page: <http://abook.sourceforge.net>."
9045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9046 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9048 Abook config.status 0.6.1
9049 configured by $0, generated by GNU Autoconf 2.69,
9050 with options \\"\$ac_cs_config\\"
9052 Copyright (C) 2012 Free Software Foundation, Inc.
9053 This config.status script is free software; the Free Software Foundation
9054 gives unlimited permission to copy, distribute and modify it."
9061 test -n "\$AWK" || AWK=awk
9064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9065 # The default lists apply if the user does not specify any file.
9071 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9072 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9076 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9088 # Handling of the options.
9089 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9091 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9092 $as_echo "$ac_cs_version"; exit ;;
9093 --config | --confi | --conf | --con | --co | --c )
9094 $as_echo "$ac_cs_config"; exit ;;
9095 --debug | --debu | --deb | --de | --d | -d )
9097 --file | --fil | --fi | --f )
9100 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9101 '') as_fn_error $? "missing file argument" ;;
9103 as_fn_append CONFIG_FILES " '$ac_optarg'"
9104 ac_need_defaults=false;;
9105 --header | --heade | --head | --hea )
9108 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9110 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9111 ac_need_defaults=false;;
9113 # Conflict between --help and --header
9114 as_fn_error $? "ambiguous option: \`$1'
9115 Try \`$0 --help' for more information.";;
9116 --help | --hel | -h )
9117 $as_echo "$ac_cs_usage"; exit ;;
9118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9119 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9123 -*) as_fn_error $? "unrecognized option: \`$1'
9124 Try \`$0 --help' for more information." ;;
9126 *) as_fn_append ac_config_targets " $1"
9127 ac_need_defaults=false ;;
9133 ac_configure_extra_args=
9135 if $ac_cs_silent; then
9137 ac_configure_extra_args="$ac_configure_extra_args --silent"
9141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9142 if \$ac_cs_recheck; then
9143 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9145 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9146 CONFIG_SHELL='$SHELL'
9152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9156 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9157 ## Running $as_me. ##
9163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9167 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9168 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9169 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9170 # from automake < 1.5.
9171 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9172 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9173 LINGUAS="${LINGUAS-%UNSET%}"
9178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9180 # Handling of arguments.
9181 for ac_config_target in $ac_config_targets
9183 case $ac_config_target in
9184 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9185 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9186 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9187 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9188 "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
9189 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9191 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9196 # If the user did not use the arguments to specify the items to instantiate,
9197 # then the envvar interface is used. Set only those that are not.
9198 # We use the long form for the default assignment because of an extremely
9199 # bizarre bug on SunOS 4.1.3.
9200 if $ac_need_defaults; then
9201 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9202 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9203 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9206 # Have a temporary directory for convenience. Make it in the build tree
9207 # simply because there is no reason against having it here, and in addition,
9208 # creating and moving files from /tmp can sometimes cause problems.
9209 # Hook for its removal unless debugging.
9210 # Note that there is a small window in which the directory will not be cleaned:
9211 # after its creation but before its name has been assigned to `$tmp'.
9215 trap 'exit_status=$?
9217 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9219 trap 'as_fn_exit 1' 1 2 13 15
9221 # Create a (secure) tmp directory for tmp files.
9224 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9228 tmp=./conf$$-$RANDOM
9229 (umask 077 && mkdir "$tmp")
9230 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9233 # Set up the scripts for CONFIG_FILES section.
9234 # No need to generate them if there are no CONFIG_FILES.
9235 # This happens for instance with `./config.status config.h'.
9236 if test -n "$CONFIG_FILES"; then
9239 ac_cr=`echo X | tr X '\015'`
9240 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9241 # But we know of no other shell where ac_cr would be empty at this
9242 # point, so we can use a bashism as a fallback.
9243 if test "x$ac_cr" = x; then
9244 eval ac_cr=\$\'\\r\'
9246 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9247 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9253 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9258 echo "cat >conf$$subs.awk <<_ACEOF" &&
9259 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9263 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9265 for ac_last_try in false false false false false :; do
9266 . ./conf$$subs.sh ||
9267 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9269 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9270 if test $ac_delim_n = $ac_delim_num; then
9272 elif $ac_last_try; then
9273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9275 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9281 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9285 s/^/S["/; s/!.*/"]=/
9295 s/\(.\{148\}\)..*/\1/
9297 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9302 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9309 s/\(.\{148\}\)..*/\1/
9311 s/["\\]/\\&/g; s/^/"/; s/$/"/
9315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9320 ' <conf$$subs.awk | sed '
9325 ' >>$CONFIG_STATUS || ac_write_fail=1
9326 rm -f conf$$subs.awk
9327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9329 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9330 for (key in S) S_is_set[key] = 1
9336 nfields = split(line, field, "@")
9338 len = length(field[1])
9339 for (i = 2; i < nfields; i++) {
9341 keylen = length(key)
9342 if (S_is_set[key]) {
9344 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9345 len += length(value) + length(field[++i])
9356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9357 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9358 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9361 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9362 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9365 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9366 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9367 # trailing colons and then remove the whole line if VPATH becomes empty
9368 # (actually we leave an empty line to preserve line numbers).
9369 if test "x$srcdir" = x.; then
9370 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9389 fi # test -n "$CONFIG_FILES"
9391 # Set up the scripts for CONFIG_HEADERS section.
9392 # No need to generate them if there are no CONFIG_HEADERS.
9393 # This happens for instance with `./config.status Makefile'.
9394 if test -n "$CONFIG_HEADERS"; then
9395 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9399 # Transform confdefs.h into an awk script `defines.awk', embedded as
9400 # here-document in config.status, that substitutes the proper values into
9401 # config.h.in to produce config.h.
9403 # Create a delimiter string that does not exist in confdefs.h, to ease
9404 # handling of long lines.
9406 for ac_last_try in false false :; do
9407 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9408 if test -z "$ac_tt"; then
9410 elif $ac_last_try; then
9411 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9413 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9417 # For the awk script, D is an array of macro values keyed by name,
9418 # likewise P contains macro parameters if any. Preserve backslash
9419 # newline sequences.
9421 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9423 s/.\{148\}/&'"$ac_delim"'/g
9426 s/^[ ]*#[ ]*define[ ][ ]*/ /
9433 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9435 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9439 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9440 D["\1"]=" \3\\\\\\n"\\/p
9442 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9447 s/.\{148\}/&'"$ac_delim"'/g
9452 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9455 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9457 ' <confdefs.h | sed '
9458 s/'"$ac_delim"'/"\\\
9459 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9462 for (key in D) D_is_set[key] = 1
9465 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9467 split(line, arg, " ")
9468 if (arg[1] == "#") {
9472 defundef = substr(arg[1], 2)
9475 split(mac1, mac2, "(") #)
9477 prefix = substr(line, 1, index(line, defundef) - 1)
9478 if (D_is_set[macro]) {
9479 # Preserve the white space surrounding the "#".
9480 print prefix "define", macro P[macro] D[macro]
9483 # Replace #undef with comments. This is necessary, for example,
9484 # in the case of _POSIX_SOURCE, which is predefined and required
9485 # on some systems where configure will not decide to define it.
9486 if (defundef == "undef") {
9487 print "/*", prefix defundef, macro, "*/"
9495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9496 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9497 fi # test -n "$CONFIG_HEADERS"
9500 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9505 :[FHLC]) ac_mode=$ac_tag; continue;;
9507 case $ac_mode$ac_tag in
9509 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9510 :[FH]-) ac_tag=-:-;;
9511 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9528 -) ac_f="$ac_tmp/stdin";;
9529 *) # Look for the file first in the build tree, then in the source tree
9530 # (if the path is not absolute). The absolute path cannot be DOS-style,
9531 # because $ac_f cannot contain `:'.
9535 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9537 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9539 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9540 as_fn_append ac_file_inputs " '$ac_f'"
9543 # Let's still pretend it is `configure' which instantiates (i.e., don't
9544 # use $as_me), people would be surprised to read:
9545 # /* config.h. Generated by config.status. */
9546 configure_input='Generated from '`
9547 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9549 if test x"$ac_file" != x-; then
9550 configure_input="$ac_file. $configure_input"
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9552 $as_echo "$as_me: creating $ac_file" >&6;}
9554 # Neutralize special characters interpreted by sed in replacement strings.
9555 case $configure_input in #(
9556 *\&* | *\|* | *\\* )
9557 ac_sed_conf_input=`$as_echo "$configure_input" |
9558 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9559 *) ac_sed_conf_input=$configure_input;;
9563 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9569 ac_dir=`$as_dirname -- "$ac_file" ||
9570 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9571 X"$ac_file" : 'X\(//\)[^/]' \| \
9572 X"$ac_file" : 'X\(//\)$' \| \
9573 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9574 $as_echo X"$ac_file" |
9575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9592 as_dir="$ac_dir"; as_fn_mkdir_p
9596 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9598 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9599 # A ".." for each directory in $ac_dir_suffix.
9600 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9601 case $ac_top_builddir_sub in
9602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9606 ac_abs_top_builddir=$ac_pwd
9607 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9608 # for backward compatibility:
9609 ac_top_builddir=$ac_top_build_prefix
9612 .) # We are building in place.
9614 ac_top_srcdir=$ac_top_builddir_sub
9615 ac_abs_top_srcdir=$ac_pwd ;;
9616 [\\/]* | ?:[\\/]* ) # Absolute name.
9617 ac_srcdir=$srcdir$ac_dir_suffix;
9618 ac_top_srcdir=$srcdir
9619 ac_abs_top_srcdir=$srcdir ;;
9621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9622 ac_top_srcdir=$ac_top_build_prefix$srcdir
9623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9625 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9635 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9636 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9640 [\\/$]* | ?:[\\/]* ) ;;
9641 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9646 # If the template does not know about datarootdir, expand it.
9647 # FIXME: This hack should be removed a few years after 2.60.
9648 ac_datarootdir_hack=; ac_datarootdir_seen=
9659 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9660 *datarootdir*) ac_datarootdir_seen=yes;;
9661 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9663 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9666 ac_datarootdir_hack='
9667 s&@datadir@&$datadir&g
9668 s&@docdir@&$docdir&g
9669 s&@infodir@&$infodir&g
9670 s&@localedir@&$localedir&g
9671 s&@mandir@&$mandir&g
9672 s&\\\${datarootdir}&$datarootdir&g' ;;
9676 # Neutralize VPATH when `$srcdir' = `.'.
9677 # Shell code in configure.ac might set extrasub.
9678 # FIXME: do we really want to maintain this feature?
9679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9680 ac_sed_extra="$ac_vpsub
9683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9686 s|@configure_input@|$ac_sed_conf_input|;t t
9687 s&@top_builddir@&$ac_top_builddir_sub&;t t
9688 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9689 s&@srcdir@&$ac_srcdir&;t t
9690 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9691 s&@top_srcdir@&$ac_top_srcdir&;t t
9692 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9693 s&@builddir@&$ac_builddir&;t t
9694 s&@abs_builddir@&$ac_abs_builddir&;t t
9695 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9696 s&@INSTALL@&$ac_INSTALL&;t t
9697 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9698 $ac_datarootdir_hack
9700 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9701 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9703 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9704 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9705 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9706 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9708 which seems to be undefined. Please make sure it is defined" >&5
9709 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9710 which seems to be undefined. Please make sure it is defined" >&2;}
9712 rm -f "$ac_tmp/stdin"
9714 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9715 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9717 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9723 if test x"$ac_file" != x-; then
9725 $as_echo "/* $configure_input */" \
9726 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9727 } >"$ac_tmp/config.h" \
9728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9729 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9731 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9734 mv "$ac_tmp/config.h" "$ac_file" \
9735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9738 $as_echo "/* $configure_input */" \
9739 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9740 || as_fn_error $? "could not create -" "$LINENO" 5
9742 # Compute "$ac_file"'s index in $config_headers.
9745 for _am_header in $config_headers :; do
9747 $_am_arg | $_am_arg:* )
9750 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9753 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9754 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9755 X"$_am_arg" : 'X\(//\)[^/]' \| \
9756 X"$_am_arg" : 'X\(//\)$' \| \
9757 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9758 $as_echo X"$_am_arg" |
9759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9775 s/.*/./; q'`/stamp-h$_am_stamp_count
9778 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9779 $as_echo "$as_me: executing $ac_file commands" >&6;}
9784 case $ac_file$ac_mode in
9785 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9786 # Older Autoconf quotes --file arguments for eval, but not when files
9787 # are listed without --file. Let's play safe and only enable the eval
9788 # if we detect the quoting.
9789 case $CONFIG_FILES in
9790 *\'*) eval set x "$CONFIG_FILES" ;;
9791 *) set x $CONFIG_FILES ;;
9796 # Strip MF so we end up with the name of the file.
9797 mf=`echo "$mf" | sed -e 's/:.*$//'`
9798 # Check whether this is an Automake generated Makefile or not.
9799 # We used to match only the files named 'Makefile.in', but
9800 # some people rename them; so instead we look at the file content.
9801 # Grep'ing the first line is not enough: some people post-process
9802 # each Makefile.in and add a new line on top of each file to say so.
9803 # Grep'ing the whole file is not good either: AIX grep has a line
9804 # limit of 2048, but all sed's we know have understand at least 4000.
9805 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9806 dirpart=`$as_dirname -- "$mf" ||
9807 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9808 X"$mf" : 'X\(//\)[^/]' \| \
9809 X"$mf" : 'X\(//\)$' \| \
9810 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9832 # Extract the definition of DEPDIR, am__include, and am__quote
9833 # from the Makefile without running 'make'.
9834 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9835 test -z "$DEPDIR" && continue
9836 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9837 test -z "$am__include" && continue
9838 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9839 # Find all dependency output files, they are included files with
9840 # $(DEPDIR) in their names. We invoke sed twice because it is the
9841 # simplest approach to changing $(DEPDIR) to its actual value in the
9843 for file in `sed -n "
9844 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9845 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9846 # Make sure the directory exists.
9847 test -f "$dirpart/$file" && continue
9848 fdir=`$as_dirname -- "$file" ||
9849 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9850 X"$file" : 'X\(//\)[^/]' \| \
9851 X"$file" : 'X\(//\)$' \| \
9852 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9871 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9872 # echo "creating $dirpart/$file"
9873 echo '# dummy' > "$dirpart/$file"
9879 for ac_file in $CONFIG_FILES; do
9880 # Support "outfile[:infile[:infile...]]"
9882 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9884 # PO directories have a Makefile.in generated from Makefile.in.in.
9885 case "$ac_file" in */Makefile.in)
9886 # Adjust a relative srcdir.
9887 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9888 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9889 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9890 # In autoconf-2.13 it is called $ac_given_srcdir.
9891 # In autoconf-2.50 it is called $srcdir.
9892 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9893 case "$ac_given_srcdir" in
9894 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9895 /*) top_srcdir="$ac_given_srcdir" ;;
9896 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9898 # Treat a directory as a PO directory if and only if it has a
9899 # POTFILES.in file. This allows packages to have multiple PO
9900 # directories under different names or in different locations.
9901 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9902 rm -f "$ac_dir/POTFILES"
9903 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9904 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9905 POMAKEFILEDEPS="POTFILES.in"
9906 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9907 # on $ac_dir but don't depend on user-specified configuration
9909 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9910 # The LINGUAS file contains the set of available languages.
9911 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9912 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9914 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9915 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9916 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9917 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9919 # The set of available languages was given in configure.in.
9920 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9921 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9924 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9925 # Compute UPDATEPOFILES
9926 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9927 # Compute DUMMYPOFILES
9928 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9930 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9931 case "$ac_given_srcdir" in
9933 *) srcdirpre='$(srcdir)/' ;;
9939 for lang in $ALL_LINGUAS; do
9940 POFILES="$POFILES $srcdirpre$lang.po"
9941 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9942 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9943 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9945 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9946 # environment variable.
9948 if test -n "$ALL_LINGUAS"; then
9949 for presentlang in $ALL_LINGUAS; do
9951 if test "%UNSET%" != "$LINGUAS"; then
9952 desiredlanguages="$LINGUAS"
9954 desiredlanguages="$ALL_LINGUAS"
9956 for desiredlang in $desiredlanguages; do
9957 # Use the presentlang catalog if desiredlang is
9958 # a. equal to presentlang, or
9959 # b. a variant of presentlang (because in this case,
9960 # presentlang can be used as a fallback for messages
9961 # which are not translated in the desiredlang catalog).
9962 case "$desiredlang" in
9963 "$presentlang"*) useit=yes;;
9966 if test $useit = yes; then
9967 INST_LINGUAS="$INST_LINGUAS $presentlang"
9972 if test -n "$INST_LINGUAS"; then
9973 for lang in $INST_LINGUAS; do
9974 CATALOGS="$CATALOGS $lang.gmo"
9977 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9978 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9979 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9980 if test -f "$f"; then
9982 *.orig | *.bak | *~) ;;
9983 *) cat "$f" >> "$ac_dir/Makefile" ;;
9998 ac_clean_files=$ac_clean_files_save
10000 test $ac_write_fail = 0 ||
10001 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10004 # configure is writing to config.log, and then calls config.status.
10005 # config.status does its own redirection, appending to config.log.
10006 # Unfortunately, on DOS this fails, as config.log is still kept open
10007 # by configure, so config.status won't be able to write to it; its
10008 # output is simply discarded. So we exec the FD to /dev/null,
10009 # effectively closing config.log, so it can be properly (re)opened and
10010 # appended to by config.status. When coming back to configure, we
10011 # need to make the FD available again.
10012 if test "$no_create" != yes; then
10014 ac_config_status_args=
10015 test "$silent" = yes &&
10016 ac_config_status_args="$ac_config_status_args --quiet"
10018 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10020 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10021 # would make configure fail if this is the last instruction.
10022 $ac_cs_success || as_fn_exit 1
10024 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10026 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}