2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Abook 0.6.0pre2.
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.0pre2'
584 PACKAGE_STRING='Abook 0.6.0pre2'
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.0pre2 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.0pre2:";;
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.0pre2
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.0pre2, 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.13'
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 -'
2876 DEPDIR="${am__leading_dot}deps"
2878 ac_config_commands="$ac_config_commands depfiles"
2881 am_make=${MAKE-make}
2882 cat > confinc << 'END'
2884 @echo this is the am__doit target
2887 # If we don't find an include directive, just comment out the code.
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2889 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2893 # First try GNU make style include.
2894 echo "include confinc" > confmf
2895 # Ignore all kinds of additional output from 'make'.
2896 case `$am_make -s -f confmf 2> /dev/null` in #(
2897 *the\ am__doit\ target*)
2903 # Now try BSD make style include.
2904 if test "$am__include" = "#"; then
2905 echo '.include "confinc"' > confmf
2906 case `$am_make -s -f confmf 2> /dev/null` in #(
2907 *the\ am__doit\ target*)
2908 am__include=.include
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2917 $as_echo "$_am_result" >&6; }
2918 rm -f confinc confmf
2920 # Check whether --enable-dependency-tracking was given.
2921 if test "${enable_dependency_tracking+set}" = set; then :
2922 enableval=$enable_dependency_tracking;
2925 if test "x$enable_dependency_tracking" != xno; then
2926 am_depcomp="$ac_aux_dir/depcomp"
2930 if test "x$enable_dependency_tracking" != xno; then
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_CC+:} false; then :
2950 $as_echo_n "(cached) " >&6
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2983 if test -z "$ac_cv_prog_CC"; then
2985 # Extract the first word of "gcc", so it can be a program name with args.
2986 set dummy gcc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2990 $as_echo_n "(cached) " >&6
2992 if test -n "$ac_ct_CC"; then
2993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_ac_ct_CC="gcc"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013 if test -n "$ac_ct_CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3015 $as_echo "$ac_ct_CC" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3021 if test "x$ac_ct_CC" = x; then
3024 case $cross_compiling:$ac_tool_warned in
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3036 if test -z "$CC"; then
3037 if test -n "$ac_tool_prefix"; then
3038 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3039 set dummy ${ac_tool_prefix}cc; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_CC+:} false; then :
3043 $as_echo_n "(cached) " >&6
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC="$CC" # Let the user override the test.
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055 ac_cv_prog_CC="${ac_tool_prefix}cc"
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 if test -n "$CC"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3077 if test -z "$CC"; then
3078 # Extract the first word of "cc", so it can be a program name with args.
3079 set dummy cc; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_CC+:} false; then :
3083 $as_echo_n "(cached) " >&6
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3097 ac_prog_rejected=yes
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 if test $ac_prog_rejected = yes; then
3109 # We found a bogon in the path, so make sure we never use it.
3110 set dummy $ac_cv_prog_CC
3112 if test $# != 0; then
3113 # We chose a different compiler from the bogus one.
3114 # However, it has the same basename, so the bogon will be chosen
3115 # first if we set CC to just the basename; use the full file name.
3117 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3133 if test -z "$CC"; then
3134 if test -n "$ac_tool_prefix"; then
3135 for ac_prog in cl.exe
3137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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; }
3174 test -n "$CC" && break
3177 if test -z "$CC"; then
3179 for ac_prog in cl.exe
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$ac_ct_CC"; then
3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198 ac_cv_prog_ac_ct_CC="$ac_prog"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3218 test -n "$ac_ct_CC" && break
3221 if test "x$ac_ct_CC" = x; then
3224 case $cross_compiling:$ac_tool_warned in
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned=yes ;;
3237 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details" "$LINENO" 5; }
3242 # Provide some information about the compiler.
3243 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3246 for ac_option in --version -v -V -qversion; do
3247 { { ac_try="$ac_compiler $ac_option >&5"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3256 if test -s conftest.err; then
3258 ... rest of stderr output deleted ...
3259 10q' conftest.err >conftest.er1
3260 cat conftest.er1 >&5
3262 rm -f conftest.er1 conftest.err
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3278 ac_clean_files_save=$ac_clean_files
3279 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3280 # Try to create an executable without -o first, disregard a.out.
3281 # It will help us diagnose broken compilers, and finding out an intuition
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3284 $as_echo_n "checking whether the C compiler works... " >&6; }
3285 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3287 # The possible output files:
3288 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3291 for ac_file in $ac_files
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3295 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3300 if { { ac_try="$ac_link_default"
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306 $as_echo "$ac_try_echo"; } >&5
3307 (eval "$ac_link_default") 2>&5
3309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310 test $ac_status = 0; }; then :
3311 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3312 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3313 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3314 # so that the user can short-circuit this test for compilers unknown to
3316 for ac_file in $ac_files ''
3318 test -f "$ac_file" || continue
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3323 # We found the default executable, but exeext='' is most
3327 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3329 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331 # We set ac_cv_exeext here because the later test for it is not
3332 # safe: cross compilers may not add the suffix if given an `-o'
3333 # argument, so we may need to know it at that point already.
3334 # Even if this section looks crufty: it has the advantage of
3341 test "$ac_cv_exeext" = no && ac_cv_exeext=
3346 if test -z "$ac_file"; then :
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 $as_echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354 as_fn_error 77 "C compiler cannot create executables
3355 See \`config.log' for more details" "$LINENO" 5; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3358 $as_echo "yes" >&6; }
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3361 $as_echo_n "checking for C compiler default output file name... " >&6; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3363 $as_echo "$ac_file" >&6; }
3364 ac_exeext=$ac_cv_exeext
3366 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3367 ac_clean_files=$ac_clean_files_save
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3369 $as_echo_n "checking for suffix of executables... " >&6; }
3370 if { { ac_try="$ac_link"
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376 $as_echo "$ac_try_echo"; } >&5
3377 (eval "$ac_link") 2>&5
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }; then :
3381 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3382 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3383 # work properly (i.e., refer to `conftest.exe'), while it won't with
3385 for ac_file in conftest.exe conftest conftest.*; do
3386 test -f "$ac_file" || continue
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3398 See \`config.log' for more details" "$LINENO" 5; }
3400 rm -f conftest conftest$ac_cv_exeext
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3402 $as_echo "$ac_cv_exeext" >&6; }
3404 rm -f conftest.$ac_ext
3405 EXEEXT=$ac_cv_exeext
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3413 FILE *f = fopen ("conftest.out", "w");
3414 return ferror (f) || fclose (f) != 0;
3420 ac_clean_files="$ac_clean_files conftest.out"
3421 # Check that the compiler produces executables we can run. If not, either
3422 # the compiler is broken, or we cross compile.
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3424 $as_echo_n "checking whether we are cross compiling... " >&6; }
3425 if test "$cross_compiling" != yes; then
3426 { { ac_try="$ac_link"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link") 2>&5
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }
3437 if { ac_try='./conftest$ac_cv_exeext'
3438 { { case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_try") 2>&5
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; }; then
3450 if test "$cross_compiling" = maybe; then
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error $? "cannot run C compiled programs.
3456 If you meant to cross compile, use \`--host'.
3457 See \`config.log' for more details" "$LINENO" 5; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3462 $as_echo "$cross_compiling" >&6; }
3464 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3465 ac_clean_files=$ac_clean_files_save
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3467 $as_echo_n "checking for suffix of object files... " >&6; }
3468 if ${ac_cv_objext+:} false; then :
3469 $as_echo_n "(cached) " >&6
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3482 rm -f conftest.o conftest.obj
3483 if { { ac_try="$ac_compile"
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_compile") 2>&5
3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }; then :
3494 for ac_file in conftest.o conftest.obj conftest.*; do
3495 test -f "$ac_file" || continue;
3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3498 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3503 $as_echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 as_fn_error $? "cannot compute suffix of object files: cannot compile
3509 See \`config.log' for more details" "$LINENO" 5; }
3511 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3514 $as_echo "$ac_cv_objext" >&6; }
3515 OBJEXT=$ac_cv_objext
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3518 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3519 if ${ac_cv_c_compiler_gnu+:} false; then :
3520 $as_echo_n "(cached) " >&6
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3536 if ac_fn_c_try_compile "$LINENO"; then :
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3546 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3547 if test $ac_compiler_gnu = yes; then
3552 ac_test_CFLAGS=${CFLAGS+set}
3553 ac_save_CFLAGS=$CFLAGS
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3555 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3556 if ${ac_cv_prog_cc_g+:} false; then :
3557 $as_echo_n "(cached) " >&6
3559 ac_save_c_werror_flag=$ac_c_werror_flag
3560 ac_c_werror_flag=yes
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3574 if ac_fn_c_try_compile "$LINENO"; then :
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3589 if ac_fn_c_try_compile "$LINENO"; then :
3592 ac_c_werror_flag=$ac_save_c_werror_flag
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3605 if ac_fn_c_try_compile "$LINENO"; then :
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_c_werror_flag=$ac_save_c_werror_flag
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3616 $as_echo "$ac_cv_prog_cc_g" >&6; }
3617 if test "$ac_test_CFLAGS" = set; then
3618 CFLAGS=$ac_save_CFLAGS
3619 elif test $ac_cv_prog_cc_g = yes; then
3620 if test "$GCC" = yes; then
3626 if test "$GCC" = yes; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3633 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3634 if ${ac_cv_prog_cc_c89+:} false; then :
3635 $as_echo_n "(cached) " >&6
3637 ac_cv_prog_cc_c89=no
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3645 struct buf { int x; };
3646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3647 static char *e (p, i)
3653 static char *f (char * (*g) (char **, int), char **p, ...)
3658 s = g (p, va_arg (v,int));
3663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3664 function prototypes and stuff, but not '\xHH' hex character constants.
3665 These don't provoke an error unfortunately, instead are silently treated
3666 as 'x'. The following induces an error, until -std is added to get
3667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3668 array size at least. It's necessary to write '\x00'==0 to get something
3669 that's true only with -std. */
3670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3673 inside strings and character constants. */
3675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3677 int test (int i, double x);
3678 struct s1 {int (*f) (int a);};
3679 struct s2 {int (*f) (double a);};
3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3694 CC="$ac_save_CC $ac_arg"
3695 if ac_fn_c_try_compile "$LINENO"; then :
3696 ac_cv_prog_cc_c89=$ac_arg
3698 rm -f core conftest.err conftest.$ac_objext
3699 test "x$ac_cv_prog_cc_c89" != "xno" && break
3701 rm -f conftest.$ac_ext
3706 case "x$ac_cv_prog_cc_c89" in
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3709 $as_echo "none needed" >&6; } ;;
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3712 $as_echo "unsupported" >&6; } ;;
3714 CC="$CC $ac_cv_prog_cc_c89"
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3716 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3718 if test "x$ac_cv_prog_cc_c89" != xno; then :
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3728 depcc="$CC" am_compiler_list=
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3731 $as_echo_n "checking dependency style of $depcc... " >&6; }
3732 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3733 $as_echo_n "(cached) " >&6
3735 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3736 # We make a subdir and do the tests there. Otherwise we can end up
3737 # making bogus files that we don't know about and never remove. For
3738 # instance it was reported that on HP-UX the gcc test will end up
3739 # making a dummy file named 'D' -- because '-MD' means "put the output
3743 # Copy depcomp to subdir because otherwise we won't find it if we're
3744 # using a relative directory.
3745 cp "$am_depcomp" conftest.dir
3747 # We will build objects and dependencies in a subdirectory because
3748 # it helps to detect inapplicable dependency modes. For instance
3749 # both Tru64's cc and ICC support -MD to output dependencies as a
3750 # side effect of compilation, but ICC will put the dependencies in
3751 # the current directory while Tru64 will put them in the object
3755 am_cv_CC_dependencies_compiler_type=none
3756 if test "$am_compiler_list" = ""; then
3757 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3760 case " $depcc " in #(
3761 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3764 for depmode in $am_compiler_list; do
3765 # Setup a source with many dependencies, because some compilers
3766 # like to wrap large dependency lists on column 80 (with \), and
3767 # we should not choose a depcomp mode which is confused by this.
3769 # We need to recreate these files for each test, as the compiler may
3770 # overwrite some of them when testing with obscure command lines.
3771 # This happens at least with the AIX C compiler.
3773 for i in 1 2 3 4 5 6; do
3774 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3775 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3776 # Solaris 10 /bin/sh.
3777 echo '/* dummy */' > sub/conftst$i.h
3779 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3781 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3782 # mode. It turns out that the SunPro C++ compiler does not properly
3783 # handle '-M -o', and we need to detect this. Also, some Intel
3784 # versions had trouble with output in subdirs.
3785 am__obj=sub/conftest.${OBJEXT-o}
3786 am__minus_obj="-o $am__obj"
3789 # This depmode causes a compiler race in universal mode.
3790 test "$am__universal" = false || continue
3793 # After this tag, mechanisms are not by side-effect, so they'll
3794 # only be used when explicitly requested.
3795 if test "x$enable_dependency_tracking" = xyes; then
3801 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3802 # This compiler won't grok '-c -o', but also, the minuso test has
3803 # not run yet. These depmodes are late enough in the game, and
3804 # so weak that their functioning should not be impacted.
3805 am__obj=conftest.${OBJEXT-o}
3810 if depmode=$depmode \
3811 source=sub/conftest.c object=$am__obj \
3812 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3813 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3814 >/dev/null 2>conftest.err &&
3815 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3816 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3817 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3818 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3819 # icc doesn't choke on unknown options, it will just issue warnings
3820 # or remarks (even with -Werror). So we grep stderr for any message
3821 # that says an option was ignored or not supported.
3822 # When given -MP, icc 7.0 and 7.1 complain thusly:
3823 # icc: Command line warning: ignoring option '-M'; no argument required
3824 # The diagnosis changed in icc 8.0:
3825 # icc: Command line remark: option '-MP' not supported
3826 if (grep 'ignoring option' conftest.err ||
3827 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3828 am_cv_CC_dependencies_compiler_type=$depmode
3837 am_cv_CC_dependencies_compiler_type=none
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3842 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3843 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3846 test "x$enable_dependency_tracking" != xno \
3847 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3849 am__fastdepCC_FALSE='#'
3851 am__fastdepCC_TRUE='#'
3852 am__fastdepCC_FALSE=
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3863 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3864 # On Suns, sometimes $CPP names a directory.
3865 if test -n "$CPP" && test -d "$CPP"; then
3868 if test -z "$CPP"; then
3869 if ${ac_cv_prog_CPP+:} false; then :
3870 $as_echo_n "(cached) " >&6
3872 # Double quotes because CPP needs to be expanded
3873 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3876 for ac_c_preproc_warn_flag in '' yes
3878 # Use a header file that comes with gcc, so configuring glibc
3879 # with a fresh cross-compiler works.
3880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3881 # <limits.h> exists even on freestanding compilers.
3882 # On the NeXT, cc -E runs the code through the compiler's parser,
3883 # not just through cpp. "Syntax error" is here to catch this case.
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3887 # include <limits.h>
3889 # include <assert.h>
3893 if ac_fn_c_try_cpp "$LINENO"; then :
3896 # Broken: fails on valid input.
3899 rm -f conftest.err conftest.i conftest.$ac_ext
3901 # OK, works on sane cases. Now check whether nonexistent headers
3902 # can be detected and how.
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3905 #include <ac_nonexistent.h>
3907 if ac_fn_c_try_cpp "$LINENO"; then :
3908 # Broken: success on invalid input.
3911 # Passes both tests.
3915 rm -f conftest.err conftest.i conftest.$ac_ext
3918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3919 rm -f conftest.i conftest.err conftest.$ac_ext
3920 if $ac_preproc_ok; then :
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3933 $as_echo "$CPP" >&6; }
3935 for ac_c_preproc_warn_flag in '' yes
3937 # Use a header file that comes with gcc, so configuring glibc
3938 # with a fresh cross-compiler works.
3939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3940 # <limits.h> exists even on freestanding compilers.
3941 # On the NeXT, cc -E runs the code through the compiler's parser,
3942 # not just through cpp. "Syntax error" is here to catch this case.
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3946 # include <limits.h>
3948 # include <assert.h>
3952 if ac_fn_c_try_cpp "$LINENO"; then :
3955 # Broken: fails on valid input.
3958 rm -f conftest.err conftest.i conftest.$ac_ext
3960 # OK, works on sane cases. Now check whether nonexistent headers
3961 # can be detected and how.
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964 #include <ac_nonexistent.h>
3966 if ac_fn_c_try_cpp "$LINENO"; then :
3967 # Broken: success on invalid input.
3970 # Passes both tests.
3974 rm -f conftest.err conftest.i conftest.$ac_ext
3977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978 rm -f conftest.i conftest.err conftest.$ac_ext
3979 if $ac_preproc_ok; then :
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3985 See \`config.log' for more details" "$LINENO" 5; }
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3996 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3997 if ${ac_cv_path_GREP+:} false; then :
3998 $as_echo_n "(cached) " >&6
4000 if test -z "$GREP"; then
4001 ac_path_GREP_found=false
4002 # Loop through the user's path and test for each of PROGNAME-LIST
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007 test -z "$as_dir" && as_dir=.
4008 for ac_prog in grep ggrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4011 as_fn_executable_p "$ac_path_GREP" || continue
4012 # Check for GNU ac_path_GREP and select it if it is found.
4013 # Check for GNU $ac_path_GREP
4014 case `"$ac_path_GREP" --version 2>&1` in
4016 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4019 $as_echo_n 0123456789 >"conftest.in"
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
4025 $as_echo 'GREP' >> "conftest.nl"
4026 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028 as_fn_arith $ac_count + 1 && ac_count=$as_val
4029 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_GREP="$ac_path_GREP"
4032 ac_path_GREP_max=$ac_count
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040 $ac_path_GREP_found && break 3
4045 if test -z "$ac_cv_path_GREP"; then
4046 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4049 ac_cv_path_GREP=$GREP
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4054 $as_echo "$ac_cv_path_GREP" >&6; }
4055 GREP="$ac_cv_path_GREP"
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4059 $as_echo_n "checking for egrep... " >&6; }
4060 if ${ac_cv_path_EGREP+:} false; then :
4061 $as_echo_n "(cached) " >&6
4063 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4064 then ac_cv_path_EGREP="$GREP -E"
4066 if test -z "$EGREP"; then
4067 ac_path_EGREP_found=false
4068 # Loop through the user's path and test for each of PROGNAME-LIST
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4073 test -z "$as_dir" && as_dir=.
4074 for ac_prog in egrep; do
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4077 as_fn_executable_p "$ac_path_EGREP" || continue
4078 # Check for GNU ac_path_EGREP and select it if it is found.
4079 # Check for GNU $ac_path_EGREP
4080 case `"$ac_path_EGREP" --version 2>&1` in
4082 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4085 $as_echo_n 0123456789 >"conftest.in"
4088 cat "conftest.in" "conftest.in" >"conftest.tmp"
4089 mv "conftest.tmp" "conftest.in"
4090 cp "conftest.in" "conftest.nl"
4091 $as_echo 'EGREP' >> "conftest.nl"
4092 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4094 as_fn_arith $ac_count + 1 && ac_count=$as_val
4095 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4096 # Best one so far, save it but keep looking for a better one
4097 ac_cv_path_EGREP="$ac_path_EGREP"
4098 ac_path_EGREP_max=$ac_count
4100 # 10*(2^10) chars as input seems more than enough
4101 test $ac_count -gt 10 && break
4103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4106 $ac_path_EGREP_found && break 3
4111 if test -z "$ac_cv_path_EGREP"; then
4112 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4115 ac_cv_path_EGREP=$EGREP
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4121 $as_echo "$ac_cv_path_EGREP" >&6; }
4122 EGREP="$ac_cv_path_EGREP"
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4126 $as_echo_n "checking for ANSI C header files... " >&6; }
4127 if ${ac_cv_header_stdc+:} false; then :
4128 $as_echo_n "(cached) " >&6
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4145 if ac_fn_c_try_compile "$LINENO"; then :
4146 ac_cv_header_stdc=yes
4148 ac_cv_header_stdc=no
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 if test $ac_cv_header_stdc = yes; then
4153 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4160 $EGREP "memchr" >/dev/null 2>&1; then :
4163 ac_cv_header_stdc=no
4169 if test $ac_cv_header_stdc = yes; then
4170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177 $EGREP "free" >/dev/null 2>&1; then :
4180 ac_cv_header_stdc=no
4186 if test $ac_cv_header_stdc = yes; then
4187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4188 if test "$cross_compiling" = yes; then :
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4195 #if ((' ' & 0x0FF) == 0x020)
4196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4199 # define ISLOWER(c) \
4200 (('a' <= (c) && (c) <= 'i') \
4201 || ('j' <= (c) && (c) <= 'r') \
4202 || ('s' <= (c) && (c) <= 'z'))
4203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4211 for (i = 0; i < 256; i++)
4212 if (XOR (islower (i), ISLOWER (i))
4213 || toupper (i) != TOUPPER (i))
4218 if ac_fn_c_try_run "$LINENO"; then :
4221 ac_cv_header_stdc=no
4223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4224 conftest.$ac_objext conftest.beam conftest.$ac_ext
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4230 $as_echo "$ac_cv_header_stdc" >&6; }
4231 if test $ac_cv_header_stdc = yes; then
4233 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4237 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4239 inttypes.h stdint.h unistd.h
4241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4242 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4244 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4245 cat >>confdefs.h <<_ACEOF
4246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4255 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4256 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4263 if test "$MINIX" = yes; then
4265 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4268 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4271 $as_echo "#define _MINIX 1" >>confdefs.h
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4277 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4278 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4279 $as_echo_n "(cached) " >&6
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4284 # define __EXTENSIONS__ 1
4285 $ac_includes_default
4294 if ac_fn_c_try_compile "$LINENO"; then :
4295 ac_cv_safe_to_define___extensions__=yes
4297 ac_cv_safe_to_define___extensions__=no
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4302 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4303 test $ac_cv_safe_to_define___extensions__ = yes &&
4304 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4306 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4308 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4310 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4312 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4318 [\\/$]* | ?:[\\/]*) ;;
4319 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4324 $as_echo_n "checking whether NLS is requested... " >&6; }
4325 # Check whether --enable-nls was given.
4326 if test "${enable_nls+set}" = set; then :
4327 enableval=$enable_nls; USE_NLS=$enableval
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4333 $as_echo "$USE_NLS" >&6; }
4338 GETTEXT_MACRO_VERSION=0.18
4343 # Prepare PATH_SEPARATOR.
4344 # The user is always right.
4345 if test "${PATH_SEPARATOR+set}" != set; then
4346 echo "#! /bin/sh" >conf$$.sh
4347 echo "exit 0" >>conf$$.sh
4349 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4357 # Find out how to test for executable files. Don't use a zero-byte file,
4358 # as systems may use methods other than mode bits to determine executability.
4359 cat >conf$$.file <<_ASEOF
4363 chmod +x conf$$.file
4364 if test -x conf$$.file >/dev/null 2>&1; then
4365 ac_executable_p="test -x"
4367 ac_executable_p="test -f"
4371 # Extract the first word of "msgfmt", so it can be a program name with args.
4372 set dummy msgfmt; ac_word=$2
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4374 $as_echo_n "checking for $ac_word... " >&6; }
4375 if ${ac_cv_path_MSGFMT+:} false; then :
4376 $as_echo_n "(cached) " >&6
4380 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4383 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4384 for ac_dir in $PATH; do
4386 test -z "$ac_dir" && ac_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4389 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4390 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4391 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4392 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4399 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4403 MSGFMT="$ac_cv_path_MSGFMT"
4404 if test "$MSGFMT" != ":"; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4406 $as_echo "$MSGFMT" >&6; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4412 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4413 set dummy gmsgfmt; ac_word=$2
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if ${ac_cv_path_GMSGFMT+:} false; then :
4417 $as_echo_n "(cached) " >&6
4421 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4443 GMSGFMT=$ac_cv_path_GMSGFMT
4444 if test -n "$GMSGFMT"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4446 $as_echo "$GMSGFMT" >&6; }
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4454 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4455 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4456 *) MSGFMT_015=$MSGFMT ;;
4459 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4460 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4461 *) GMSGFMT_015=$GMSGFMT ;;
4466 # Prepare PATH_SEPARATOR.
4467 # The user is always right.
4468 if test "${PATH_SEPARATOR+set}" != set; then
4469 echo "#! /bin/sh" >conf$$.sh
4470 echo "exit 0" >>conf$$.sh
4472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4480 # Find out how to test for executable files. Don't use a zero-byte file,
4481 # as systems may use methods other than mode bits to determine executability.
4482 cat >conf$$.file <<_ASEOF
4486 chmod +x conf$$.file
4487 if test -x conf$$.file >/dev/null 2>&1; then
4488 ac_executable_p="test -x"
4490 ac_executable_p="test -f"
4494 # Extract the first word of "xgettext", so it can be a program name with args.
4495 set dummy xgettext; ac_word=$2
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if ${ac_cv_path_XGETTEXT+:} false; then :
4499 $as_echo_n "(cached) " >&6
4503 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4506 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4507 for ac_dir in $PATH; do
4509 test -z "$ac_dir" && ac_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4512 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4513 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4514 (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
4515 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4522 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4526 XGETTEXT="$ac_cv_path_XGETTEXT"
4527 if test "$XGETTEXT" != ":"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4529 $as_echo "$XGETTEXT" >&6; }
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4537 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4538 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4539 *) XGETTEXT_015=$XGETTEXT ;;
4544 # Prepare PATH_SEPARATOR.
4545 # The user is always right.
4546 if test "${PATH_SEPARATOR+set}" != set; then
4547 echo "#! /bin/sh" >conf$$.sh
4548 echo "exit 0" >>conf$$.sh
4550 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4558 # Find out how to test for executable files. Don't use a zero-byte file,
4559 # as systems may use methods other than mode bits to determine executability.
4560 cat >conf$$.file <<_ASEOF
4564 chmod +x conf$$.file
4565 if test -x conf$$.file >/dev/null 2>&1; then
4566 ac_executable_p="test -x"
4568 ac_executable_p="test -f"
4572 # Extract the first word of "msgmerge", so it can be a program name with args.
4573 set dummy msgmerge; ac_word=$2
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575 $as_echo_n "checking for $ac_word... " >&6; }
4576 if ${ac_cv_path_MSGMERGE+:} false; then :
4577 $as_echo_n "(cached) " >&6
4581 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4584 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4585 for ac_dir in $PATH; do
4587 test -z "$ac_dir" && ac_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4590 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4591 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4592 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4599 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4603 MSGMERGE="$ac_cv_path_MSGMERGE"
4604 if test "$MSGMERGE" != ":"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4606 $as_echo "$MSGMERGE" >&6; }
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4613 test -n "$localedir" || localedir='${datadir}/locale'
4616 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4619 ac_config_commands="$ac_config_commands po-directories"
4623 if test "X$prefix" = "XNONE"; then
4624 acl_final_prefix="$ac_default_prefix"
4626 acl_final_prefix="$prefix"
4628 if test "X$exec_prefix" = "XNONE"; then
4629 acl_final_exec_prefix='${prefix}'
4631 acl_final_exec_prefix="$exec_prefix"
4633 acl_save_prefix="$prefix"
4634 prefix="$acl_final_prefix"
4635 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4636 prefix="$acl_save_prefix"
4638 # Make sure we can run config.sub.
4639 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4640 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4643 $as_echo_n "checking build system type... " >&6; }
4644 if ${ac_cv_build+:} false; then :
4645 $as_echo_n "(cached) " >&6
4647 ac_build_alias=$build_alias
4648 test "x$ac_build_alias" = x &&
4649 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4650 test "x$ac_build_alias" = x &&
4651 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4652 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4653 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4657 $as_echo "$ac_cv_build" >&6; }
4658 case $ac_cv_build in
4660 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4663 ac_save_IFS=$IFS; IFS='-'
4669 # Remember, the first character of IFS is used to create $*,
4670 # except with old shells:
4673 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4677 $as_echo_n "checking host system type... " >&6; }
4678 if ${ac_cv_host+:} false; then :
4679 $as_echo_n "(cached) " >&6
4681 if test "x$host_alias" = x; then
4682 ac_cv_host=$ac_cv_build
4684 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4685 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4690 $as_echo "$ac_cv_host" >&6; }
4693 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4696 ac_save_IFS=$IFS; IFS='-'
4702 # Remember, the first character of IFS is used to create $*,
4703 # except with old shells:
4706 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4710 # Check whether --with-gnu-ld was given.
4711 if test "${with_gnu_ld+set}" = set; then :
4712 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4717 # Prepare PATH_SEPARATOR.
4718 # The user is always right.
4719 if test "${PATH_SEPARATOR+set}" != set; then
4720 echo "#! /bin/sh" >conf$$.sh
4721 echo "exit 0" >>conf$$.sh
4723 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4731 if test "$GCC" = yes; then
4732 # Check if gcc -print-prog-name=ld gives a path.
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4734 $as_echo_n "checking for ld used by GCC... " >&6; }
4737 # gcc leaves a trailing carriage return which upsets mingw
4738 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4740 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4743 # Accept absolute paths.
4744 [\\/]* | [A-Za-z]:[\\/]*)
4745 re_direlt='/[^/][^/]*/\.\./'
4746 # Canonicalize the path of ld
4747 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4748 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4749 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4751 test -z "$LD" && LD="$ac_prog"
4754 # If it fails, then pretend we aren't using GCC.
4758 # If it is relative, then search for the first ld in PATH.
4762 elif test "$with_gnu_ld" = yes; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4764 $as_echo_n "checking for GNU ld... " >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4767 $as_echo_n "checking for non-GNU ld... " >&6; }
4769 if ${acl_cv_path_LD+:} false; then :
4770 $as_echo_n "(cached) " >&6
4772 if test -z "$LD"; then
4773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4774 for ac_dir in $PATH; do
4775 test -z "$ac_dir" && ac_dir=.
4776 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4777 acl_cv_path_LD="$ac_dir/$ac_prog"
4778 # Check to see if the program is GNU ld. I'd rather use --version,
4779 # but apparently some GNU ld's only accept -v.
4780 # Break only if it was the GNU/non-GNU ld that we prefer.
4781 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4782 *GNU* | *'with BFD'*)
4783 test "$with_gnu_ld" != no && break ;;
4785 test "$with_gnu_ld" != yes && break ;;
4791 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4795 LD="$acl_cv_path_LD"
4796 if test -n "$LD"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4798 $as_echo "$LD" >&6; }
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4803 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4805 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4806 if ${acl_cv_prog_gnu_ld+:} false; then :
4807 $as_echo_n "(cached) " >&6
4809 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4810 case `$LD -v 2>&1 </dev/null` in
4811 *GNU* | *'with BFD'*)
4812 acl_cv_prog_gnu_ld=yes ;;
4814 acl_cv_prog_gnu_ld=no ;;
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4818 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4819 with_gnu_ld=$acl_cv_prog_gnu_ld
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4825 $as_echo_n "checking for shared library run path origin... " >&6; }
4826 if ${acl_cv_rpath+:} false; then :
4827 $as_echo_n "(cached) " >&6
4830 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4831 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4838 $as_echo "$acl_cv_rpath" >&6; }
4840 acl_libext="$acl_cv_libext"
4841 acl_shlibext="$acl_cv_shlibext"
4842 acl_libname_spec="$acl_cv_libname_spec"
4843 acl_library_names_spec="$acl_cv_library_names_spec"
4844 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4845 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4846 acl_hardcode_direct="$acl_cv_hardcode_direct"
4847 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4848 # Check whether --enable-rpath was given.
4849 if test "${enable_rpath+set}" = set; then :
4850 enableval=$enable_rpath; :
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4863 $as_echo_n "checking for 64-bit host... " >&6; }
4864 if ${gl_cv_solaris_64bit+:} false; then :
4865 $as_echo_n "(cached) " >&6
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4876 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4877 gl_cv_solaris_64bit=yes
4879 gl_cv_solaris_64bit=no
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4886 $as_echo "$gl_cv_solaris_64bit" >&6; }
4887 if test $gl_cv_solaris_64bit = yes; then
4888 acl_libdirstem=lib/64
4890 sparc*) acl_libdirstem2=lib/sparcv9 ;;
4891 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4896 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4897 if test -n "$searchpath"; then
4898 acl_save_IFS="${IFS= }"; IFS=":"
4899 for searchdir in $searchpath; do
4900 if test -d "$searchdir"; then
4901 case "$searchdir" in
4902 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4904 # Better ignore directories of this form. They are misleading.
4906 *) searchdir=`cd "$searchdir" && pwd`
4907 case "$searchdir" in
4908 */lib64 ) acl_libdirstem=lib64 ;;
4917 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4932 acl_save_prefix="$prefix"
4933 prefix="$acl_final_prefix"
4934 acl_save_exec_prefix="$exec_prefix"
4935 exec_prefix="$acl_final_exec_prefix"
4937 eval additional_includedir=\"$includedir\"
4938 eval additional_libdir=\"$libdir\"
4940 exec_prefix="$acl_save_exec_prefix"
4941 prefix="$acl_save_prefix"
4944 # Check whether --with-libiconv-prefix was given.
4945 if test "${with_libiconv_prefix+set}" = set; then :
4946 withval=$with_libiconv_prefix;
4947 if test "X$withval" = "Xno"; then
4950 if test "X$withval" = "X"; then
4952 acl_save_prefix="$prefix"
4953 prefix="$acl_final_prefix"
4954 acl_save_exec_prefix="$exec_prefix"
4955 exec_prefix="$acl_final_exec_prefix"
4957 eval additional_includedir=\"$includedir\"
4958 eval additional_libdir=\"$libdir\"
4960 exec_prefix="$acl_save_exec_prefix"
4961 prefix="$acl_save_prefix"
4964 additional_includedir="$withval/include"
4965 additional_libdir="$withval/$acl_libdirstem"
4966 if test "$acl_libdirstem2" != "$acl_libdirstem" \
4967 && ! test -d "$withval/$acl_libdirstem"; then
4968 additional_libdir="$withval/$acl_libdirstem2"
4982 names_already_handled=
4983 names_next_round='iconv '
4984 while test -n "$names_next_round"; do
4985 names_this_round="$names_next_round"
4987 for name in $names_this_round; do
4989 for n in $names_already_handled; do
4990 if test "$n" = "$name"; then
4995 if test -z "$already_handled"; then
4996 names_already_handled="$names_already_handled $name"
4997 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4998 eval value=\"\$HAVE_LIB$uppername\"
4999 if test -n "$value"; then
5000 if test "$value" = yes; then
5001 eval value=\"\$LIB$uppername\"
5002 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5003 eval value=\"\$LTLIB$uppername\"
5004 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5013 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5014 if test -n "$acl_shlibext"; then
5015 shrext=".$acl_shlibext" # typically: shrext=.so
5019 if test $use_additional = yes; then
5020 dir="$additional_libdir"
5021 if test -n "$acl_shlibext"; then
5022 if test -f "$dir/$libname$shrext"; then
5024 found_so="$dir/$libname$shrext"
5026 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5027 ver=`(cd "$dir" && \
5028 for f in "$libname$shrext".*; do echo "$f"; done \
5029 | sed -e "s,^$libname$shrext\\\\.,," \
5030 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5031 | sed 1q ) 2>/dev/null`
5032 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5034 found_so="$dir/$libname$shrext.$ver"
5037 eval library_names=\"$acl_library_names_spec\"
5038 for f in $library_names; do
5039 if test -f "$dir/$f"; then
5048 if test "X$found_dir" = "X"; then
5049 if test -f "$dir/$libname.$acl_libext"; then
5051 found_a="$dir/$libname.$acl_libext"
5054 if test "X$found_dir" != "X"; then
5055 if test -f "$dir/$libname.la"; then
5056 found_la="$dir/$libname.la"
5060 if test "X$found_dir" = "X"; then
5061 for x in $LDFLAGS $LTLIBICONV; do
5063 acl_save_prefix="$prefix"
5064 prefix="$acl_final_prefix"
5065 acl_save_exec_prefix="$exec_prefix"
5066 exec_prefix="$acl_final_exec_prefix"
5068 exec_prefix="$acl_save_exec_prefix"
5069 prefix="$acl_save_prefix"
5073 dir=`echo "X$x" | sed -e 's/^X-L//'`
5074 if test -n "$acl_shlibext"; then
5075 if test -f "$dir/$libname$shrext"; then
5077 found_so="$dir/$libname$shrext"
5079 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5080 ver=`(cd "$dir" && \
5081 for f in "$libname$shrext".*; do echo "$f"; done \
5082 | sed -e "s,^$libname$shrext\\\\.,," \
5083 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5084 | sed 1q ) 2>/dev/null`
5085 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5087 found_so="$dir/$libname$shrext.$ver"
5090 eval library_names=\"$acl_library_names_spec\"
5091 for f in $library_names; do
5092 if test -f "$dir/$f"; then
5101 if test "X$found_dir" = "X"; then
5102 if test -f "$dir/$libname.$acl_libext"; then
5104 found_a="$dir/$libname.$acl_libext"
5107 if test "X$found_dir" != "X"; then
5108 if test -f "$dir/$libname.la"; then
5109 found_la="$dir/$libname.la"
5114 if test "X$found_dir" != "X"; then
5119 if test "X$found_dir" != "X"; then
5120 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5121 if test "X$found_so" != "X"; then
5122 if test "$enable_rpath" = no \
5123 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5124 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5125 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5128 for x in $ltrpathdirs; do
5129 if test "X$x" = "X$found_dir"; then
5134 if test -z "$haveit"; then
5135 ltrpathdirs="$ltrpathdirs $found_dir"
5137 if test "$acl_hardcode_direct" = yes; then
5138 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5140 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5141 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5143 for x in $rpathdirs; do
5144 if test "X$x" = "X$found_dir"; then
5149 if test -z "$haveit"; then
5150 rpathdirs="$rpathdirs $found_dir"
5154 for x in $LDFLAGS $LIBICONV; do
5156 acl_save_prefix="$prefix"
5157 prefix="$acl_final_prefix"
5158 acl_save_exec_prefix="$exec_prefix"
5159 exec_prefix="$acl_final_exec_prefix"
5161 exec_prefix="$acl_save_exec_prefix"
5162 prefix="$acl_save_prefix"
5164 if test "X$x" = "X-L$found_dir"; then
5169 if test -z "$haveit"; then
5170 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5172 if test "$acl_hardcode_minus_L" != no; then
5173 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5175 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5181 if test "X$found_a" != "X"; then
5182 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5184 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5187 additional_includedir=
5188 case "$found_dir" in
5189 */$acl_libdirstem | */$acl_libdirstem/)
5190 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5191 if test "$name" = 'iconv'; then
5192 LIBICONV_PREFIX="$basedir"
5194 additional_includedir="$basedir/include"
5196 */$acl_libdirstem2 | */$acl_libdirstem2/)
5197 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5198 if test "$name" = 'iconv'; then
5199 LIBICONV_PREFIX="$basedir"
5201 additional_includedir="$basedir/include"
5204 if test "X$additional_includedir" != "X"; then
5205 if test "X$additional_includedir" != "X/usr/include"; then
5207 if test "X$additional_includedir" = "X/usr/local/include"; then
5208 if test -n "$GCC"; then
5210 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5214 if test -z "$haveit"; then
5215 for x in $CPPFLAGS $INCICONV; 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"
5225 if test "X$x" = "X-I$additional_includedir"; then
5230 if test -z "$haveit"; then
5231 if test -d "$additional_includedir"; then
5232 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5238 if test -n "$found_la"; then
5239 save_libdir="$libdir"
5241 */* | *\\*) . "$found_la" ;;
5242 *) . "./$found_la" ;;
5244 libdir="$save_libdir"
5245 for dep in $dependency_libs; do
5248 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5249 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5250 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5252 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5253 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5254 if test -n "$GCC"; then
5256 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5260 if test -z "$haveit"; then
5262 for x in $LDFLAGS $LIBICONV; do
5264 acl_save_prefix="$prefix"
5265 prefix="$acl_final_prefix"
5266 acl_save_exec_prefix="$exec_prefix"
5267 exec_prefix="$acl_final_exec_prefix"
5269 exec_prefix="$acl_save_exec_prefix"
5270 prefix="$acl_save_prefix"
5272 if test "X$x" = "X-L$additional_libdir"; then
5277 if test -z "$haveit"; then
5278 if test -d "$additional_libdir"; then
5279 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5283 for x in $LDFLAGS $LTLIBICONV; do
5285 acl_save_prefix="$prefix"
5286 prefix="$acl_final_prefix"
5287 acl_save_exec_prefix="$exec_prefix"
5288 exec_prefix="$acl_final_exec_prefix"
5290 exec_prefix="$acl_save_exec_prefix"
5291 prefix="$acl_save_prefix"
5293 if test "X$x" = "X-L$additional_libdir"; then
5298 if test -z "$haveit"; then
5299 if test -d "$additional_libdir"; then
5300 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5307 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5308 if test "$enable_rpath" != no; then
5310 for x in $rpathdirs; do
5311 if test "X$x" = "X$dir"; then
5316 if test -z "$haveit"; then
5317 rpathdirs="$rpathdirs $dir"
5320 for x in $ltrpathdirs; do
5321 if test "X$x" = "X$dir"; then
5326 if test -z "$haveit"; then
5327 ltrpathdirs="$ltrpathdirs $dir"
5332 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5335 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5338 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5339 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5345 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5346 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5352 if test "X$rpathdirs" != "X"; then
5353 if test -n "$acl_hardcode_libdir_separator"; then
5355 for found_dir in $rpathdirs; do
5356 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5358 acl_save_libdir="$libdir"
5360 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5361 libdir="$acl_save_libdir"
5362 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5364 for found_dir in $rpathdirs; do
5365 acl_save_libdir="$libdir"
5367 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5368 libdir="$acl_save_libdir"
5369 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5373 if test "X$ltrpathdirs" != "X"; then
5374 for found_dir in $ltrpathdirs; do
5375 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5410 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5411 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5412 $as_echo_n "(cached) " >&6
5414 gt_save_LIBS="$LIBS"
5415 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418 #include <CoreFoundation/CFPreferences.h>
5422 CFPreferencesCopyAppValue(NULL, NULL)
5427 if ac_fn_c_try_link "$LINENO"; then :
5428 gt_cv_func_CFPreferencesCopyAppValue=yes
5430 gt_cv_func_CFPreferencesCopyAppValue=no
5432 rm -f core conftest.err conftest.$ac_objext \
5433 conftest$ac_exeext conftest.$ac_ext
5434 LIBS="$gt_save_LIBS"
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5437 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5438 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5440 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5444 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5445 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5446 $as_echo_n "(cached) " >&6
5448 gt_save_LIBS="$LIBS"
5449 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 #include <CoreFoundation/CFLocale.h>
5456 CFLocaleCopyCurrent();
5461 if ac_fn_c_try_link "$LINENO"; then :
5462 gt_cv_func_CFLocaleCopyCurrent=yes
5464 gt_cv_func_CFLocaleCopyCurrent=no
5466 rm -f core conftest.err conftest.$ac_objext \
5467 conftest$ac_exeext conftest.$ac_ext
5468 LIBS="$gt_save_LIBS"
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5471 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5472 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5474 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5478 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5479 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5491 case " $gt_needs " in
5492 *" need-formatstring-macros "*) gt_api_version=3 ;;
5493 *" need-ngettext "*) gt_api_version=2 ;;
5494 *) gt_api_version=1 ;;
5496 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5497 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5499 if test "$USE_NLS" = "yes"; then
5500 gt_use_preinstalled_gnugettext=no
5503 if test $gt_api_version -ge 3; then
5504 gt_revision_test_code='
5505 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5506 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5508 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5511 gt_revision_test_code=
5513 if test $gt_api_version -ge 2; then
5514 gt_expression_test_code=' + * ngettext ("", "", 0)'
5516 gt_expression_test_code=
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5520 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5521 if eval \${$gt_func_gnugettext_libc+:} false; then :
5522 $as_echo_n "(cached) " >&6
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 #include <libintl.h>
5527 $gt_revision_test_code
5528 extern int _nl_msg_cat_cntr;
5529 extern int *_nl_domain_bindings;
5533 bindtextdomain ("", "");
5534 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5539 if ac_fn_c_try_link "$LINENO"; then :
5540 eval "$gt_func_gnugettext_libc=yes"
5542 eval "$gt_func_gnugettext_libc=no"
5544 rm -f core conftest.err conftest.$ac_objext \
5545 conftest$ac_exeext conftest.$ac_ext
5547 eval ac_res=\$$gt_func_gnugettext_libc
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5549 $as_echo "$ac_res" >&6; }
5551 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5557 am_save_CPPFLAGS="$CPPFLAGS"
5559 for element in $INCICONV; do
5561 for x in $CPPFLAGS; do
5563 acl_save_prefix="$prefix"
5564 prefix="$acl_final_prefix"
5565 acl_save_exec_prefix="$exec_prefix"
5566 exec_prefix="$acl_final_exec_prefix"
5568 exec_prefix="$acl_save_exec_prefix"
5569 prefix="$acl_save_prefix"
5571 if test "X$x" = "X$element"; then
5576 if test -z "$haveit"; then
5577 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5583 $as_echo_n "checking for iconv... " >&6; }
5584 if ${am_cv_func_iconv+:} false; then :
5585 $as_echo_n "(cached) " >&6
5588 am_cv_func_iconv="no, consider installing GNU libiconv"
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5597 iconv_t cd = iconv_open("","");
5598 iconv(cd,NULL,NULL,NULL,NULL);
5604 if ac_fn_c_try_link "$LINENO"; then :
5605 am_cv_func_iconv=yes
5607 rm -f core conftest.err conftest.$ac_objext \
5608 conftest$ac_exeext conftest.$ac_ext
5609 if test "$am_cv_func_iconv" != yes; then
5610 am_save_LIBS="$LIBS"
5611 LIBS="$LIBS $LIBICONV"
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5619 iconv_t cd = iconv_open("","");
5620 iconv(cd,NULL,NULL,NULL,NULL);
5626 if ac_fn_c_try_link "$LINENO"; then :
5628 am_cv_func_iconv=yes
5630 rm -f core conftest.err conftest.$ac_objext \
5631 conftest$ac_exeext conftest.$ac_ext
5632 LIBS="$am_save_LIBS"
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5637 $as_echo "$am_cv_func_iconv" >&6; }
5638 if test "$am_cv_func_iconv" = yes; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5640 $as_echo_n "checking for working iconv... " >&6; }
5641 if ${am_cv_func_iconv_works+:} false; then :
5642 $as_echo_n "(cached) " >&6
5645 am_save_LIBS="$LIBS"
5646 if test $am_cv_lib_iconv = yes; then
5647 LIBS="$LIBS $LIBICONV"
5649 if test "$cross_compiling" = yes; then :
5651 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5652 *) am_cv_func_iconv_works="guessing yes" ;;
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5662 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5665 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5666 if (cd_utf8_to_88591 != (iconv_t)(-1))
5668 static const char input[] = "\342\202\254"; /* EURO SIGN */
5670 const char *inptr = input;
5671 size_t inbytesleft = strlen (input);
5673 size_t outbytesleft = sizeof (buf);
5674 size_t res = iconv (cd_utf8_to_88591,
5675 (char **) &inptr, &inbytesleft,
5676 &outptr, &outbytesleft);
5681 /* Test against Solaris 10 bug: Failures are not distinguishable from
5682 successful returns. */
5684 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5685 if (cd_ascii_to_88591 != (iconv_t)(-1))
5687 static const char input[] = "\263";
5689 const char *inptr = input;
5690 size_t inbytesleft = strlen (input);
5692 size_t outbytesleft = sizeof (buf);
5693 size_t res = iconv (cd_ascii_to_88591,
5694 (char **) &inptr, &inbytesleft,
5695 &outptr, &outbytesleft);
5700 #if 0 /* This bug could be worked around by the caller. */
5701 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5703 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5704 if (cd_88591_to_utf8 != (iconv_t)(-1))
5706 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5708 const char *inptr = input;
5709 size_t inbytesleft = strlen (input);
5711 size_t outbytesleft = sizeof (buf);
5712 size_t res = iconv (cd_88591_to_utf8,
5713 (char **) &inptr, &inbytesleft,
5714 &outptr, &outbytesleft);
5720 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5722 if (/* Try standardized names. */
5723 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5724 /* Try IRIX, OSF/1 names. */
5725 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5726 /* Try AIX names. */
5727 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5728 /* Try HP-UX names. */
5729 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5734 if ac_fn_c_try_run "$LINENO"; then :
5735 am_cv_func_iconv_works=yes
5737 am_cv_func_iconv_works=no
5739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5740 conftest.$ac_objext conftest.beam conftest.$ac_ext
5743 LIBS="$am_save_LIBS"
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5747 $as_echo "$am_cv_func_iconv_works" >&6; }
5748 case "$am_cv_func_iconv_works" in
5749 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5750 *) am_func_iconv=yes ;;
5753 am_func_iconv=no am_cv_lib_iconv=no
5755 if test "$am_func_iconv" = yes; then
5757 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5760 if test "$am_cv_lib_iconv" = yes; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5762 $as_echo_n "checking how to link with libiconv... " >&6; }
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5764 $as_echo "$LIBICONV" >&6; }
5766 CPPFLAGS="$am_save_CPPFLAGS"
5783 acl_save_prefix="$prefix"
5784 prefix="$acl_final_prefix"
5785 acl_save_exec_prefix="$exec_prefix"
5786 exec_prefix="$acl_final_exec_prefix"
5788 eval additional_includedir=\"$includedir\"
5789 eval additional_libdir=\"$libdir\"
5791 exec_prefix="$acl_save_exec_prefix"
5792 prefix="$acl_save_prefix"
5795 # Check whether --with-libintl-prefix was given.
5796 if test "${with_libintl_prefix+set}" = set; then :
5797 withval=$with_libintl_prefix;
5798 if test "X$withval" = "Xno"; then
5801 if test "X$withval" = "X"; then
5803 acl_save_prefix="$prefix"
5804 prefix="$acl_final_prefix"
5805 acl_save_exec_prefix="$exec_prefix"
5806 exec_prefix="$acl_final_exec_prefix"
5808 eval additional_includedir=\"$includedir\"
5809 eval additional_libdir=\"$libdir\"
5811 exec_prefix="$acl_save_exec_prefix"
5812 prefix="$acl_save_prefix"
5815 additional_includedir="$withval/include"
5816 additional_libdir="$withval/$acl_libdirstem"
5817 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5818 && ! test -d "$withval/$acl_libdirstem"; then
5819 additional_libdir="$withval/$acl_libdirstem2"
5833 names_already_handled=
5834 names_next_round='intl '
5835 while test -n "$names_next_round"; do
5836 names_this_round="$names_next_round"
5838 for name in $names_this_round; do
5840 for n in $names_already_handled; do
5841 if test "$n" = "$name"; then
5846 if test -z "$already_handled"; then
5847 names_already_handled="$names_already_handled $name"
5848 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5849 eval value=\"\$HAVE_LIB$uppername\"
5850 if test -n "$value"; then
5851 if test "$value" = yes; then
5852 eval value=\"\$LIB$uppername\"
5853 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5854 eval value=\"\$LTLIB$uppername\"
5855 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5864 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5865 if test -n "$acl_shlibext"; then
5866 shrext=".$acl_shlibext" # typically: shrext=.so
5870 if test $use_additional = yes; then
5871 dir="$additional_libdir"
5872 if test -n "$acl_shlibext"; then
5873 if test -f "$dir/$libname$shrext"; then
5875 found_so="$dir/$libname$shrext"
5877 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5878 ver=`(cd "$dir" && \
5879 for f in "$libname$shrext".*; do echo "$f"; done \
5880 | sed -e "s,^$libname$shrext\\\\.,," \
5881 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5882 | sed 1q ) 2>/dev/null`
5883 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5885 found_so="$dir/$libname$shrext.$ver"
5888 eval library_names=\"$acl_library_names_spec\"
5889 for f in $library_names; do
5890 if test -f "$dir/$f"; then
5899 if test "X$found_dir" = "X"; then
5900 if test -f "$dir/$libname.$acl_libext"; then
5902 found_a="$dir/$libname.$acl_libext"
5905 if test "X$found_dir" != "X"; then
5906 if test -f "$dir/$libname.la"; then
5907 found_la="$dir/$libname.la"
5911 if test "X$found_dir" = "X"; then
5912 for x in $LDFLAGS $LTLIBINTL; do
5914 acl_save_prefix="$prefix"
5915 prefix="$acl_final_prefix"
5916 acl_save_exec_prefix="$exec_prefix"
5917 exec_prefix="$acl_final_exec_prefix"
5919 exec_prefix="$acl_save_exec_prefix"
5920 prefix="$acl_save_prefix"
5924 dir=`echo "X$x" | sed -e 's/^X-L//'`
5925 if test -n "$acl_shlibext"; then
5926 if test -f "$dir/$libname$shrext"; then
5928 found_so="$dir/$libname$shrext"
5930 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5931 ver=`(cd "$dir" && \
5932 for f in "$libname$shrext".*; do echo "$f"; done \
5933 | sed -e "s,^$libname$shrext\\\\.,," \
5934 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5935 | sed 1q ) 2>/dev/null`
5936 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5938 found_so="$dir/$libname$shrext.$ver"
5941 eval library_names=\"$acl_library_names_spec\"
5942 for f in $library_names; do
5943 if test -f "$dir/$f"; then
5952 if test "X$found_dir" = "X"; then
5953 if test -f "$dir/$libname.$acl_libext"; then
5955 found_a="$dir/$libname.$acl_libext"
5958 if test "X$found_dir" != "X"; then
5959 if test -f "$dir/$libname.la"; then
5960 found_la="$dir/$libname.la"
5965 if test "X$found_dir" != "X"; then
5970 if test "X$found_dir" != "X"; then
5971 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5972 if test "X$found_so" != "X"; then
5973 if test "$enable_rpath" = no \
5974 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5975 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5976 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5979 for x in $ltrpathdirs; do
5980 if test "X$x" = "X$found_dir"; then
5985 if test -z "$haveit"; then
5986 ltrpathdirs="$ltrpathdirs $found_dir"
5988 if test "$acl_hardcode_direct" = yes; then
5989 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5991 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5992 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5994 for x in $rpathdirs; do
5995 if test "X$x" = "X$found_dir"; then
6000 if test -z "$haveit"; then
6001 rpathdirs="$rpathdirs $found_dir"
6005 for x in $LDFLAGS $LIBINTL; do
6007 acl_save_prefix="$prefix"
6008 prefix="$acl_final_prefix"
6009 acl_save_exec_prefix="$exec_prefix"
6010 exec_prefix="$acl_final_exec_prefix"
6012 exec_prefix="$acl_save_exec_prefix"
6013 prefix="$acl_save_prefix"
6015 if test "X$x" = "X-L$found_dir"; then
6020 if test -z "$haveit"; then
6021 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6023 if test "$acl_hardcode_minus_L" != no; then
6024 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6026 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6032 if test "X$found_a" != "X"; then
6033 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6035 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6038 additional_includedir=
6039 case "$found_dir" in
6040 */$acl_libdirstem | */$acl_libdirstem/)
6041 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6042 if test "$name" = 'intl'; then
6043 LIBINTL_PREFIX="$basedir"
6045 additional_includedir="$basedir/include"
6047 */$acl_libdirstem2 | */$acl_libdirstem2/)
6048 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6049 if test "$name" = 'intl'; then
6050 LIBINTL_PREFIX="$basedir"
6052 additional_includedir="$basedir/include"
6055 if test "X$additional_includedir" != "X"; then
6056 if test "X$additional_includedir" != "X/usr/include"; then
6058 if test "X$additional_includedir" = "X/usr/local/include"; then
6059 if test -n "$GCC"; then
6061 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6065 if test -z "$haveit"; then
6066 for x in $CPPFLAGS $INCINTL; 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"
6076 if test "X$x" = "X-I$additional_includedir"; then
6081 if test -z "$haveit"; then
6082 if test -d "$additional_includedir"; then
6083 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6089 if test -n "$found_la"; then
6090 save_libdir="$libdir"
6092 */* | *\\*) . "$found_la" ;;
6093 *) . "./$found_la" ;;
6095 libdir="$save_libdir"
6096 for dep in $dependency_libs; do
6099 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6100 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6101 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6103 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6104 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6105 if test -n "$GCC"; then
6107 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6111 if test -z "$haveit"; then
6113 for x in $LDFLAGS $LIBINTL; do
6115 acl_save_prefix="$prefix"
6116 prefix="$acl_final_prefix"
6117 acl_save_exec_prefix="$exec_prefix"
6118 exec_prefix="$acl_final_exec_prefix"
6120 exec_prefix="$acl_save_exec_prefix"
6121 prefix="$acl_save_prefix"
6123 if test "X$x" = "X-L$additional_libdir"; then
6128 if test -z "$haveit"; then
6129 if test -d "$additional_libdir"; then
6130 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6134 for x in $LDFLAGS $LTLIBINTL; do
6136 acl_save_prefix="$prefix"
6137 prefix="$acl_final_prefix"
6138 acl_save_exec_prefix="$exec_prefix"
6139 exec_prefix="$acl_final_exec_prefix"
6141 exec_prefix="$acl_save_exec_prefix"
6142 prefix="$acl_save_prefix"
6144 if test "X$x" = "X-L$additional_libdir"; then
6149 if test -z "$haveit"; then
6150 if test -d "$additional_libdir"; then
6151 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6158 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6159 if test "$enable_rpath" != no; then
6161 for x in $rpathdirs; do
6162 if test "X$x" = "X$dir"; then
6167 if test -z "$haveit"; then
6168 rpathdirs="$rpathdirs $dir"
6171 for x in $ltrpathdirs; do
6172 if test "X$x" = "X$dir"; then
6177 if test -z "$haveit"; then
6178 ltrpathdirs="$ltrpathdirs $dir"
6183 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6186 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6189 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6190 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6196 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6197 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6203 if test "X$rpathdirs" != "X"; then
6204 if test -n "$acl_hardcode_libdir_separator"; then
6206 for found_dir in $rpathdirs; do
6207 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6209 acl_save_libdir="$libdir"
6211 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6212 libdir="$acl_save_libdir"
6213 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6215 for found_dir in $rpathdirs; do
6216 acl_save_libdir="$libdir"
6218 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6219 libdir="$acl_save_libdir"
6220 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6224 if test "X$ltrpathdirs" != "X"; then
6225 for found_dir in $ltrpathdirs; do
6226 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6236 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6237 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6238 $as_echo_n "(cached) " >&6
6240 gt_save_CPPFLAGS="$CPPFLAGS"
6241 CPPFLAGS="$CPPFLAGS $INCINTL"
6242 gt_save_LIBS="$LIBS"
6243 LIBS="$LIBS $LIBINTL"
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 #include <libintl.h>
6247 $gt_revision_test_code
6248 extern int _nl_msg_cat_cntr;
6253 const char *_nl_expand_alias (const char *);
6257 bindtextdomain ("", "");
6258 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6263 if ac_fn_c_try_link "$LINENO"; then :
6264 eval "$gt_func_gnugettext_libintl=yes"
6266 eval "$gt_func_gnugettext_libintl=no"
6268 rm -f core conftest.err conftest.$ac_objext \
6269 conftest$ac_exeext conftest.$ac_ext
6270 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6271 LIBS="$LIBS $LIBICONV"
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 #include <libintl.h>
6275 $gt_revision_test_code
6276 extern int _nl_msg_cat_cntr;
6281 const char *_nl_expand_alias (const char *);
6285 bindtextdomain ("", "");
6286 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6291 if ac_fn_c_try_link "$LINENO"; then :
6292 LIBINTL="$LIBINTL $LIBICONV"
6293 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6294 eval "$gt_func_gnugettext_libintl=yes"
6297 rm -f core conftest.err conftest.$ac_objext \
6298 conftest$ac_exeext conftest.$ac_ext
6300 CPPFLAGS="$gt_save_CPPFLAGS"
6301 LIBS="$gt_save_LIBS"
6303 eval ac_res=\$$gt_func_gnugettext_libintl
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6305 $as_echo "$ac_res" >&6; }
6308 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6309 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6310 && test "$PACKAGE" != gettext-runtime \
6311 && test "$PACKAGE" != gettext-tools; }; then
6312 gt_use_preinstalled_gnugettext=yes
6321 if test -n "$INTL_MACOSX_LIBS"; then
6322 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6323 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6324 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6325 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6329 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6330 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6332 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6340 $as_echo_n "checking whether to use NLS... " >&6; }
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6342 $as_echo "$USE_NLS" >&6; }
6343 if test "$USE_NLS" = "yes"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6345 $as_echo_n "checking where the gettext function comes from... " >&6; }
6346 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6347 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6348 gt_source="external libintl"
6353 gt_source="included intl directory"
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6356 $as_echo "$gt_source" >&6; }
6359 if test "$USE_NLS" = "yes"; then
6361 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6362 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6364 $as_echo_n "checking how to link with libintl... " >&6; }
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6366 $as_echo "$LIBINTL" >&6; }
6368 for element in $INCINTL; do
6370 for x in $CPPFLAGS; do
6372 acl_save_prefix="$prefix"
6373 prefix="$acl_final_prefix"
6374 acl_save_exec_prefix="$exec_prefix"
6375 exec_prefix="$acl_final_exec_prefix"
6377 exec_prefix="$acl_save_exec_prefix"
6378 prefix="$acl_save_prefix"
6380 if test "X$x" = "X$element"; then
6385 if test -z "$haveit"; then
6386 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6393 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6396 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6417 abook_localedir="$datadir/locale"
6418 abook_localedir=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6419 eval tmp_abook_prefix=\""$abook_localedir"\"
6420 eval echo $tmp_abook_prefix
6423 localedir="\$(datadir)/locale"
6426 # Check whether --with-localedir was given.
6427 if test "${with_localedir+set}" = set; then :
6428 withval=$with_localedir;
6431 if test "x$with_localedir" != "x"; then
6432 abook_localedir="$with_localedir"
6433 localedir="$with_localedir"
6437 cat >>confdefs.h <<_ACEOF
6438 #define LOCALEDIR "$abook_localedir"
6443 if test x$USE_INCLUDED_LIBINTL = xyes; then
6444 USE_INCLUDED_INTL_H_TRUE=
6445 USE_INCLUDED_INTL_H_FALSE='#'
6447 USE_INCLUDED_INTL_H_TRUE='#'
6448 USE_INCLUDED_INTL_H_FALSE=
6454 ac_cpp='$CPP $CPPFLAGS'
6455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6458 if test -n "$ac_tool_prefix"; then
6459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6460 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_CC+:} false; then :
6464 $as_echo_n "(cached) " >&6
6466 if test -n "$CC"; then
6467 ac_cv_prog_CC="$CC" # Let the user override the test.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 if test -n "$CC"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6489 $as_echo "$CC" >&6; }
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6497 if test -z "$ac_cv_prog_CC"; then
6499 # Extract the first word of "gcc", so it can be a program name with args.
6500 set dummy gcc; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6504 $as_echo_n "(cached) " >&6
6506 if test -n "$ac_ct_CC"; then
6507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516 ac_cv_prog_ac_ct_CC="gcc"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6527 if test -n "$ac_ct_CC"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6529 $as_echo "$ac_ct_CC" >&6; }
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6535 if test "x$ac_ct_CC" = x; then
6538 case $cross_compiling:$ac_tool_warned in
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6550 if test -z "$CC"; then
6551 if test -n "$ac_tool_prefix"; then
6552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6553 set dummy ${ac_tool_prefix}cc; ac_word=$2
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555 $as_echo_n "checking for $ac_word... " >&6; }
6556 if ${ac_cv_prog_CC+:} false; then :
6557 $as_echo_n "(cached) " >&6
6559 if test -n "$CC"; then
6560 ac_cv_prog_CC="$CC" # Let the user override the test.
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6569 ac_cv_prog_CC="${ac_tool_prefix}cc"
6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 if test -n "$CC"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6582 $as_echo "$CC" >&6; }
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 $as_echo "no" >&6; }
6591 if test -z "$CC"; then
6592 # Extract the first word of "cc", so it can be a program name with args.
6593 set dummy cc; ac_word=$2
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6595 $as_echo_n "checking for $ac_word... " >&6; }
6596 if ${ac_cv_prog_CC+:} false; then :
6597 $as_echo_n "(cached) " >&6
6599 if test -n "$CC"; then
6600 ac_cv_prog_CC="$CC" # Let the user override the test.
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6611 ac_prog_rejected=yes
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 if test $ac_prog_rejected = yes; then
6623 # We found a bogon in the path, so make sure we never use it.
6624 set dummy $ac_cv_prog_CC
6626 if test $# != 0; then
6627 # We chose a different compiler from the bogus one.
6628 # However, it has the same basename, so the bogon will be chosen
6629 # first if we set CC to just the basename; use the full file name.
6631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6637 if test -n "$CC"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6639 $as_echo "$CC" >&6; }
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6647 if test -z "$CC"; then
6648 if test -n "$ac_tool_prefix"; then
6649 for ac_prog in cl.exe
6651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_CC+:} false; then :
6656 $as_echo_n "(cached) " >&6
6658 if test -n "$CC"; then
6659 ac_cv_prog_CC="$CC" # Let the user override the test.
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 if test -n "$CC"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6681 $as_echo "$CC" >&6; }
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6688 test -n "$CC" && break
6691 if test -z "$CC"; then
6693 for ac_prog in cl.exe
6695 # Extract the first word of "$ac_prog", so it can be a program name with args.
6696 set dummy $ac_prog; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6700 $as_echo_n "(cached) " >&6
6702 if test -n "$ac_ct_CC"; then
6703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_ac_ct_CC="$ac_prog"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6723 if test -n "$ac_ct_CC"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6725 $as_echo "$ac_ct_CC" >&6; }
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6732 test -n "$ac_ct_CC" && break
6735 if test "x$ac_ct_CC" = x; then
6738 case $cross_compiling:$ac_tool_warned in
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6742 ac_tool_warned=yes ;;
6751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6753 as_fn_error $? "no acceptable C compiler found in \$PATH
6754 See \`config.log' for more details" "$LINENO" 5; }
6756 # Provide some information about the compiler.
6757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6760 for ac_option in --version -v -V -qversion; do
6761 { { ac_try="$ac_compiler $ac_option >&5"
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6767 $as_echo "$ac_try_echo"; } >&5
6768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6770 if test -s conftest.err; then
6772 ... rest of stderr output deleted ...
6773 10q' conftest.err >conftest.er1
6774 cat conftest.er1 >&5
6776 rm -f conftest.er1 conftest.err
6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778 test $ac_status = 0; }
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6782 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6783 if ${ac_cv_c_compiler_gnu+:} false; then :
6784 $as_echo_n "(cached) " >&6
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6800 if ac_fn_c_try_compile "$LINENO"; then :
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6810 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6811 if test $ac_compiler_gnu = yes; then
6816 ac_test_CFLAGS=${CFLAGS+set}
6817 ac_save_CFLAGS=$CFLAGS
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6819 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6820 if ${ac_cv_prog_cc_g+:} false; then :
6821 $as_echo_n "(cached) " >&6
6823 ac_save_c_werror_flag=$ac_c_werror_flag
6824 ac_c_werror_flag=yes
6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h. */
6838 if ac_fn_c_try_compile "$LINENO"; then :
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6853 if ac_fn_c_try_compile "$LINENO"; then :
6856 ac_c_werror_flag=$ac_save_c_werror_flag
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6869 if ac_fn_c_try_compile "$LINENO"; then :
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877 ac_c_werror_flag=$ac_save_c_werror_flag
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6880 $as_echo "$ac_cv_prog_cc_g" >&6; }
6881 if test "$ac_test_CFLAGS" = set; then
6882 CFLAGS=$ac_save_CFLAGS
6883 elif test $ac_cv_prog_cc_g = yes; then
6884 if test "$GCC" = yes; then
6890 if test "$GCC" = yes; then
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6897 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6898 if ${ac_cv_prog_cc_c89+:} false; then :
6899 $as_echo_n "(cached) " >&6
6901 ac_cv_prog_cc_c89=no
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6908 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6909 struct buf { int x; };
6910 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6911 static char *e (p, i)
6917 static char *f (char * (*g) (char **, int), char **p, ...)
6922 s = g (p, va_arg (v,int));
6927 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6928 function prototypes and stuff, but not '\xHH' hex character constants.
6929 These don't provoke an error unfortunately, instead are silently treated
6930 as 'x'. The following induces an error, until -std is added to get
6931 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6932 array size at least. It's necessary to write '\x00'==0 to get something
6933 that's true only with -std. */
6934 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6936 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6937 inside strings and character constants. */
6939 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6941 int test (int i, double x);
6942 struct s1 {int (*f) (int a);};
6943 struct s2 {int (*f) (double a);};
6944 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6950 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6955 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6956 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6958 CC="$ac_save_CC $ac_arg"
6959 if ac_fn_c_try_compile "$LINENO"; then :
6960 ac_cv_prog_cc_c89=$ac_arg
6962 rm -f core conftest.err conftest.$ac_objext
6963 test "x$ac_cv_prog_cc_c89" != "xno" && break
6965 rm -f conftest.$ac_ext
6970 case "x$ac_cv_prog_cc_c89" in
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6973 $as_echo "none needed" >&6; } ;;
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6976 $as_echo "unsupported" >&6; } ;;
6978 CC="$CC $ac_cv_prog_cc_c89"
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6980 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6982 if test "x$ac_cv_prog_cc_c89" != xno; then :
6987 ac_cpp='$CPP $CPPFLAGS'
6988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6992 depcc="$CC" am_compiler_list=
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6995 $as_echo_n "checking dependency style of $depcc... " >&6; }
6996 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6997 $as_echo_n "(cached) " >&6
6999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7000 # We make a subdir and do the tests there. Otherwise we can end up
7001 # making bogus files that we don't know about and never remove. For
7002 # instance it was reported that on HP-UX the gcc test will end up
7003 # making a dummy file named 'D' -- because '-MD' means "put the output
7007 # Copy depcomp to subdir because otherwise we won't find it if we're
7008 # using a relative directory.
7009 cp "$am_depcomp" conftest.dir
7011 # We will build objects and dependencies in a subdirectory because
7012 # it helps to detect inapplicable dependency modes. For instance
7013 # both Tru64's cc and ICC support -MD to output dependencies as a
7014 # side effect of compilation, but ICC will put the dependencies in
7015 # the current directory while Tru64 will put them in the object
7019 am_cv_CC_dependencies_compiler_type=none
7020 if test "$am_compiler_list" = ""; then
7021 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7024 case " $depcc " in #(
7025 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7028 for depmode in $am_compiler_list; do
7029 # Setup a source with many dependencies, because some compilers
7030 # like to wrap large dependency lists on column 80 (with \), and
7031 # we should not choose a depcomp mode which is confused by this.
7033 # We need to recreate these files for each test, as the compiler may
7034 # overwrite some of them when testing with obscure command lines.
7035 # This happens at least with the AIX C compiler.
7037 for i in 1 2 3 4 5 6; do
7038 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7039 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7040 # Solaris 10 /bin/sh.
7041 echo '/* dummy */' > sub/conftst$i.h
7043 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7045 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7046 # mode. It turns out that the SunPro C++ compiler does not properly
7047 # handle '-M -o', and we need to detect this. Also, some Intel
7048 # versions had trouble with output in subdirs.
7049 am__obj=sub/conftest.${OBJEXT-o}
7050 am__minus_obj="-o $am__obj"
7053 # This depmode causes a compiler race in universal mode.
7054 test "$am__universal" = false || continue
7057 # After this tag, mechanisms are not by side-effect, so they'll
7058 # only be used when explicitly requested.
7059 if test "x$enable_dependency_tracking" = xyes; then
7065 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7066 # This compiler won't grok '-c -o', but also, the minuso test has
7067 # not run yet. These depmodes are late enough in the game, and
7068 # so weak that their functioning should not be impacted.
7069 am__obj=conftest.${OBJEXT-o}
7074 if depmode=$depmode \
7075 source=sub/conftest.c object=$am__obj \
7076 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7077 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7078 >/dev/null 2>conftest.err &&
7079 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7080 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7081 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7082 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7083 # icc doesn't choke on unknown options, it will just issue warnings
7084 # or remarks (even with -Werror). So we grep stderr for any message
7085 # that says an option was ignored or not supported.
7086 # When given -MP, icc 7.0 and 7.1 complain thusly:
7087 # icc: Command line warning: ignoring option '-M'; no argument required
7088 # The diagnosis changed in icc 8.0:
7089 # icc: Command line remark: option '-MP' not supported
7090 if (grep 'ignoring option' conftest.err ||
7091 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7092 am_cv_CC_dependencies_compiler_type=$depmode
7101 am_cv_CC_dependencies_compiler_type=none
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7106 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7107 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7110 test "x$enable_dependency_tracking" != xno \
7111 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7113 am__fastdepCC_FALSE='#'
7115 am__fastdepCC_TRUE='#'
7116 am__fastdepCC_FALSE=
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7121 $as_echo_n "checking for library containing strerror... " >&6; }
7122 if ${ac_cv_search_strerror+:} false; then :
7123 $as_echo_n "(cached) " >&6
7125 ac_func_search_save_LIBS=$LIBS
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7129 /* Override any GCC internal prototype to avoid an error.
7130 Use char because int might match the return type of a GCC
7131 builtin and then its argument prototype would still apply. */
7144 for ac_lib in '' cposix; do
7145 if test -z "$ac_lib"; then
7146 ac_res="none required"
7149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7151 if ac_fn_c_try_link "$LINENO"; then :
7152 ac_cv_search_strerror=$ac_res
7154 rm -f core conftest.err conftest.$ac_objext \
7156 if ${ac_cv_search_strerror+:} false; then :
7160 if ${ac_cv_search_strerror+:} false; then :
7163 ac_cv_search_strerror=no
7166 LIBS=$ac_func_search_save_LIBS
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7169 $as_echo "$ac_cv_search_strerror" >&6; }
7170 ac_res=$ac_cv_search_strerror
7171 if test "$ac_res" != no; then :
7172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7176 if test "x$U" != "x"; then
7177 as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7180 $as_echo_n "checking for inline... " >&6; }
7181 if ${ac_cv_c_inline+:} false; then :
7182 $as_echo_n "(cached) " >&6
7185 for ac_kw in inline __inline__ __inline; do
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7190 static $ac_kw foo_t static_foo () {return 0; }
7191 $ac_kw foo_t foo () {return 0; }
7195 if ac_fn_c_try_compile "$LINENO"; then :
7196 ac_cv_c_inline=$ac_kw
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199 test "$ac_cv_c_inline" != no && break
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7204 $as_echo "$ac_cv_c_inline" >&6; }
7206 case $ac_cv_c_inline in
7209 case $ac_cv_c_inline in
7211 *) ac_val=$ac_cv_c_inline;;
7213 cat >>confdefs.h <<_ACEOF
7215 #define inline $ac_val
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7223 $as_echo_n "checking for ANSI C header files... " >&6; }
7224 if ${ac_cv_header_stdc+:} false; then :
7225 $as_echo_n "(cached) " >&6
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7242 if ac_fn_c_try_compile "$LINENO"; then :
7243 ac_cv_header_stdc=yes
7245 ac_cv_header_stdc=no
7247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249 if test $ac_cv_header_stdc = yes; then
7250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7257 $EGREP "memchr" >/dev/null 2>&1; then :
7260 ac_cv_header_stdc=no
7266 if test $ac_cv_header_stdc = yes; then
7267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7274 $EGREP "free" >/dev/null 2>&1; then :
7277 ac_cv_header_stdc=no
7283 if test $ac_cv_header_stdc = yes; then
7284 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7285 if test "$cross_compiling" = yes; then :
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7292 #if ((' ' & 0x0FF) == 0x020)
7293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7296 # define ISLOWER(c) \
7297 (('a' <= (c) && (c) <= 'i') \
7298 || ('j' <= (c) && (c) <= 'r') \
7299 || ('s' <= (c) && (c) <= 'z'))
7300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7308 for (i = 0; i < 256; i++)
7309 if (XOR (islower (i), ISLOWER (i))
7310 || toupper (i) != TOUPPER (i))
7315 if ac_fn_c_try_run "$LINENO"; then :
7318 ac_cv_header_stdc=no
7320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7321 conftest.$ac_objext conftest.beam conftest.$ac_ext
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7327 $as_echo "$ac_cv_header_stdc" >&6; }
7328 if test $ac_cv_header_stdc = yes; then
7330 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7334 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
7336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7337 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7338 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7339 cat >>confdefs.h <<_ACEOF
7340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7347 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
7348 if test "x$ac_cv_header_stdarg_h" = xyes; then :
7350 $as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
7353 as_fn_error $? "*** stdarg.h is missing on your system ***" "$LINENO" 5
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
7358 $as_echo_n "checking for working strcoll... " >&6; }
7359 if ${ac_cv_func_strcoll_works+:} false; then :
7360 $as_echo_n "(cached) " >&6
7362 if test "$cross_compiling" = yes; then :
7363 ac_cv_func_strcoll_works=no
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7367 $ac_includes_default
7371 return (strcoll ("abc", "def") >= 0 ||
7372 strcoll ("ABC", "DEF") >= 0 ||
7373 strcoll ("123", "456") >= 0)
7378 if ac_fn_c_try_run "$LINENO"; then :
7379 ac_cv_func_strcoll_works=yes
7381 ac_cv_func_strcoll_works=no
7383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7384 conftest.$ac_objext conftest.beam conftest.$ac_ext
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
7389 $as_echo "$ac_cv_func_strcoll_works" >&6; }
7390 if test $ac_cv_func_strcoll_works = yes; then
7392 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
7396 for ac_func in setlocale
7398 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
7399 if test "x$ac_cv_func_setlocale" = xyes; then :
7400 cat >>confdefs.h <<_ACEOF
7401 #define HAVE_SETLOCALE 1
7409 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
7410 if test "x$ac_cv_header_wchar_h" = xyes; then :
7414 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
7421 for ac_func in mbtowc wcwidth mbrtowc mbsinit
7423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7424 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7425 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7426 cat >>confdefs.h <<_ACEOF
7427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7435 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "$ac_includes_default"
7436 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
7442 cat >>confdefs.h <<_ACEOF
7443 #define HAVE_DECL_WCWIDTH $ac_have_decl
7446 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
7447 if test "x$ac_cv_type_wchar_t" = xyes; then :
7454 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
7455 ac_widec_possible=yes
7457 ac_widec_possible=no
7461 abook_cv_curses=/usr
7463 # Check whether --with-curses was given.
7464 if test "${with_curses+set}" = set; then :
7465 withval=$with_curses; if test $withval != yes; then
7466 abook_cv_curses=$withval
7468 if test x$abook_cv_curses != x/usr; then
7469 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
7470 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
7476 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
7477 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
7478 $as_echo_n "(cached) " >&6
7480 ac_check_lib_save_LIBS=$LIBS
7481 LIBS="-lncursesw $LIBS"
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7485 /* Override any GCC internal prototype to avoid an error.
7486 Use char because int might match the return type of a GCC
7487 builtin and then its argument prototype would still apply. */
7500 if ac_fn_c_try_link "$LINENO"; then :
7501 ac_cv_lib_ncursesw_initscr=yes
7503 ac_cv_lib_ncursesw_initscr=no
7505 rm -f core conftest.err conftest.$ac_objext \
7506 conftest$ac_exeext conftest.$ac_ext
7507 LIBS=$ac_check_lib_save_LIBS
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
7510 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
7511 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
7512 LIBS="$LIBS -lncursesw"
7513 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
7514 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
7516 for ac_header in ncurses.h
7518 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
7519 if test "x$ac_cv_header_ncurses_h" = xyes; then :
7520 cat >>confdefs.h <<_ACEOF
7521 #define HAVE_NCURSES_H 1
7530 ac_widec_possible=no
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
7532 $as_echo_n "checking for initscr in -lncurses... " >&6; }
7533 if ${ac_cv_lib_ncurses_initscr+:} false; then :
7534 $as_echo_n "(cached) " >&6
7536 ac_check_lib_save_LIBS=$LIBS
7537 LIBS="-lncurses $LIBS"
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7541 /* Override any GCC internal prototype to avoid an error.
7542 Use char because int might match the return type of a GCC
7543 builtin and then its argument prototype would still apply. */
7556 if ac_fn_c_try_link "$LINENO"; then :
7557 ac_cv_lib_ncurses_initscr=yes
7559 ac_cv_lib_ncurses_initscr=no
7561 rm -f core conftest.err conftest.$ac_objext \
7562 conftest$ac_exeext conftest.$ac_ext
7563 LIBS=$ac_check_lib_save_LIBS
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
7566 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
7567 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
7568 LIBS="$LIBS -lncurses"
7569 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
7570 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
7572 for ac_header in ncurses.h
7574 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
7575 if test "x$ac_cv_header_ncurses_h" = xyes; then :
7576 cat >>confdefs.h <<_ACEOF
7577 #define HAVE_NCURSES_H 1
7586 ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr"
7587 if test "x$ac_cv_func_initscr" = xyes; then :
7591 case $host_os in #(vi
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5
7594 $as_echo_n "checking for tgoto in -lmytinfo... " >&6; }
7595 if ${ac_cv_lib_mytinfo_tgoto+:} false; then :
7596 $as_echo_n "(cached) " >&6
7598 ac_check_lib_save_LIBS=$LIBS
7599 LIBS="-lmytinfo $LIBS"
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7603 /* Override any GCC internal prototype to avoid an error.
7604 Use char because int might match the return type of a GCC
7605 builtin and then its argument prototype would still apply. */
7618 if ac_fn_c_try_link "$LINENO"; then :
7619 ac_cv_lib_mytinfo_tgoto=yes
7621 ac_cv_lib_mytinfo_tgoto=no
7623 rm -f core conftest.err conftest.$ac_objext \
7624 conftest$ac_exeext conftest.$ac_ext
7625 LIBS=$ac_check_lib_save_LIBS
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5
7628 $as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; }
7629 if test "x$ac_cv_lib_mytinfo_tgoto" = xyes; then :
7630 LIBS="-lmytinfo $LIBS"
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5
7636 $as_echo_n "checking for initscr in -lcur_colr... " >&6; }
7637 if ${ac_cv_lib_cur_colr_initscr+:} false; then :
7638 $as_echo_n "(cached) " >&6
7640 ac_check_lib_save_LIBS=$LIBS
7641 LIBS="-lcur_colr $LIBS"
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7645 /* Override any GCC internal prototype to avoid an error.
7646 Use char because int might match the return type of a GCC
7647 builtin and then its argument prototype would still apply. */
7660 if ac_fn_c_try_link "$LINENO"; then :
7661 ac_cv_lib_cur_colr_initscr=yes
7663 ac_cv_lib_cur_colr_initscr=no
7665 rm -f core conftest.err conftest.$ac_objext \
7666 conftest$ac_exeext conftest.$ac_ext
7667 LIBS=$ac_check_lib_save_LIBS
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5
7670 $as_echo "$ac_cv_lib_cur_colr_initscr" >&6; }
7671 if test "x$ac_cv_lib_cur_colr_initscr" = xyes; then :
7673 LIBS="-lcur_colr $LIBS"
7674 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
7675 ac_cv_func_initscr=yes
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5
7680 $as_echo_n "checking for initscr in -lHcurses... " >&6; }
7681 if ${ac_cv_lib_Hcurses_initscr+:} false; then :
7682 $as_echo_n "(cached) " >&6
7684 ac_check_lib_save_LIBS=$LIBS
7685 LIBS="-lHcurses $LIBS"
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7689 /* Override any GCC internal prototype to avoid an error.
7690 Use char because int might match the return type of a GCC
7691 builtin and then its argument prototype would still apply. */
7704 if ac_fn_c_try_link "$LINENO"; then :
7705 ac_cv_lib_Hcurses_initscr=yes
7707 ac_cv_lib_Hcurses_initscr=no
7709 rm -f core conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 LIBS=$ac_check_lib_save_LIBS
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5
7714 $as_echo "$ac_cv_lib_Hcurses_initscr" >&6; }
7715 if test "x$ac_cv_lib_Hcurses_initscr" = xyes; then :
7717 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
7718 LIBS="-lHcurses $LIBS"
7719 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
7720 ac_cv_func_initscr=yes
7727 linux*) # Suse Linux does not follow /usr/lib convention
7732 if test ".$With5lib" != ".no" ; then
7733 if test -d /usr/5lib ; then
7735 CPPFLAGS="$CPPFLAGS -I/usr/5include"
7736 LIBS="$LIBS -L/usr/5lib"
7740 if test ".$ac_cv_func_initscr" != .yes ; then
7741 cf_save_LIBS="$LIBS"
7745 # Check for library containing tgoto. Do this before curses library
7746 # because it may be needed to link the test-case for initscr.
7747 ac_fn_c_check_func "$LINENO" "tgoto" "ac_cv_func_tgoto"
7748 if test "x$ac_cv_func_tgoto" = xyes; then :
7749 cf_term_lib=predefined
7752 for cf_term_lib in termcap termlib unknown
7754 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5
7756 $as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; }
7757 if eval \${$as_ac_Lib+:} false; then :
7758 $as_echo_n "(cached) " >&6
7760 ac_check_lib_save_LIBS=$LIBS
7761 LIBS="-l$cf_term_lib $LIBS"
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7765 /* Override any GCC internal prototype to avoid an error.
7766 Use char because int might match the return type of a GCC
7767 builtin and then its argument prototype would still apply. */
7780 if ac_fn_c_try_link "$LINENO"; then :
7781 eval "$as_ac_Lib=yes"
7783 eval "$as_ac_Lib=no"
7785 rm -f core conftest.err conftest.$ac_objext \
7786 conftest$ac_exeext conftest.$ac_ext
7787 LIBS=$ac_check_lib_save_LIBS
7789 eval ac_res=\$$as_ac_Lib
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7791 $as_echo "$ac_res" >&6; }
7792 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7801 # Check for library containing initscr
7802 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
7803 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
7805 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5
7807 $as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; }
7808 if eval \${$as_ac_Lib+:} false; then :
7809 $as_echo_n "(cached) " >&6
7811 ac_check_lib_save_LIBS=$LIBS
7812 LIBS="-l$cf_curs_lib $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 eval "$as_ac_Lib=yes"
7834 eval "$as_ac_Lib=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 eval ac_res=\$$as_ac_Lib
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7842 $as_echo "$ac_res" >&6; }
7843 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7848 test $cf_curs_lib = unknown && as_fn_error $? "no curses library found" "$LINENO" 5
7850 LIBS="-l$cf_curs_lib $cf_save_LIBS"
7851 if test "$cf_term_lib" = unknown ; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5
7853 $as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; }
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7856 #include <${cf_cv_ncurses_header-curses.h}>
7865 if ac_fn_c_try_link "$LINENO"; then :
7870 rm -f core conftest.err conftest.$ac_objext \
7871 conftest$ac_exeext conftest.$ac_ext
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
7873 $as_echo "$cf_result" >&6; }
7874 test $cf_result = no && as_fn_error $? "Cannot link curses library" "$LINENO" 5
7875 elif test "$cf_term_lib" != predefined ; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
7877 $as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; }
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7880 #include <${cf_cv_ncurses_header-curses.h}>
7884 initscr(); tgoto((char *)0, 0, 0);
7889 if ac_fn_c_try_link "$LINENO"; then :
7893 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7896 #include <${cf_cv_ncurses_header-curses.h}>
7905 if ac_fn_c_try_link "$LINENO"; then :
7910 rm -f core conftest.err conftest.$ac_objext \
7911 conftest$ac_exeext conftest.$ac_ext
7914 rm -f core conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
7917 $as_echo "$cf_result" >&6; }
7932 abook_cv_readline=/usr
7934 # Check whether --with-readline was given.
7935 if test "${with_readline+set}" = set; then :
7936 withval=$with_readline; if test $withval != yes; then
7937 abook_cv_readline=$withval
7939 if test x$abook_cv_readline != x/usr; then
7940 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
7941 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
7948 $as_echo_n "checking for a readline compatible library... " >&6; }
7949 if ${ac_cv_lib_readline+:} false; then :
7950 $as_echo_n "(cached) " >&6
7954 for readline_lib in readline edit editline; do
7955 for termcap_lib in "" termcap curses ncurses; do
7956 if test -z "$termcap_lib"; then
7957 TRY_LIB="-l$readline_lib"
7959 TRY_LIB="-l$readline_lib -l$termcap_lib"
7961 LIBS="$ORIG_LIBS $TRY_LIB"
7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h. */
7965 /* Override any GCC internal prototype to avoid an error.
7966 Use char because int might match the return type of a GCC
7967 builtin and then its argument prototype would still apply. */
7980 if ac_fn_c_try_link "$LINENO"; then :
7981 ac_cv_lib_readline="$TRY_LIB"
7983 rm -f core conftest.err conftest.$ac_objext \
7984 conftest$ac_exeext conftest.$ac_ext
7985 if test -n "$ac_cv_lib_readline"; then
7989 if test -n "$ac_cv_lib_readline"; then
7993 if test -z "$ac_cv_lib_readline"; then
7994 ac_cv_lib_readline="no"
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
8000 $as_echo "$ac_cv_lib_readline" >&6; }
8002 if test "$ac_cv_lib_readline" != "no"; then
8003 LIBS="$LIBS $ac_cv_lib_readline"
8005 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
8007 for ac_header in readline.h readline/readline.h
8009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8010 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8011 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8012 cat >>confdefs.h <<_ACEOF
8013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
8021 $as_echo_n "checking whether readline supports history... " >&6; }
8022 if ${ac_cv_lib_readline_history+:} false; then :
8023 $as_echo_n "(cached) " >&6
8026 ac_cv_lib_readline_history="no"
8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8030 /* Override any GCC internal prototype to avoid an error.
8031 Use char because int might match the return type of a GCC
8032 builtin and then its argument prototype would still apply. */
8036 char add_history ();
8040 return add_history ();
8045 if ac_fn_c_try_link "$LINENO"; then :
8046 ac_cv_lib_readline_history="yes"
8048 rm -f core conftest.err conftest.$ac_objext \
8049 conftest$ac_exeext conftest.$ac_ext
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
8053 $as_echo "$ac_cv_lib_readline_history" >&6; }
8054 if test "$ac_cv_lib_readline_history" = "yes"; then
8056 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
8058 for ac_header in history.h readline/history.h
8060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8061 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8062 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8063 cat >>confdefs.h <<_ACEOF
8064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8076 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
8077 as_fn_error $? "*** readline library not found or it doesn't support history ***" "$LINENO" 5
8082 # Check whether --enable-vformat was given.
8083 if test "${enable_vformat+set}" = set; then :
8084 enableval=$enable_vformat; case "${enableval}" in
8085 yes) vformat=true ;;
8086 no) vformat=false ;;
8087 *) as_fn_error $? "bad value ${enableval} for --enable-vformat" "$LINENO" 5 ;;
8093 if test x$vformat = xtrue; then
8094 ac_fn_c_check_header_mongrel "$LINENO" "vf_iface.h" "ac_cv_header_vf_iface_h" "$ac_includes_default"
8095 if test "x$ac_cv_header_vf_iface_h" = xyes; then :
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vf_read_file in -lvformat" >&5
8098 $as_echo_n "checking for vf_read_file in -lvformat... " >&6; }
8099 if ${ac_cv_lib_vformat_vf_read_file+:} false; then :
8100 $as_echo_n "(cached) " >&6
8102 ac_check_lib_save_LIBS=$LIBS
8103 LIBS="-lvformat $LIBS"
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8107 /* Override any GCC internal prototype to avoid an error.
8108 Use char because int might match the return type of a GCC
8109 builtin and then its argument prototype would still apply. */
8113 char vf_read_file ();
8117 return vf_read_file ();
8122 if ac_fn_c_try_link "$LINENO"; then :
8123 ac_cv_lib_vformat_vf_read_file=yes
8125 ac_cv_lib_vformat_vf_read_file=no
8127 rm -f core conftest.err conftest.$ac_objext \
8128 conftest$ac_exeext conftest.$ac_ext
8129 LIBS=$ac_check_lib_save_LIBS
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vformat_vf_read_file" >&5
8132 $as_echo "$ac_cv_lib_vformat_vf_read_file" >&6; }
8133 if test "x$ac_cv_lib_vformat_vf_read_file" = xyes; then :
8135 MODULES="$MODULES m_vcf"
8137 $as_echo "#define HAVE_VFORMAT 1" >>confdefs.h
8148 if test x"$have_vformat" = "xyes"; then
8149 ENABLE_VFORMAT_SUPPORT_TRUE=
8150 ENABLE_VFORMAT_SUPPORT_FALSE='#'
8152 ENABLE_VFORMAT_SUPPORT_TRUE='#'
8153 ENABLE_VFORMAT_SUPPORT_FALSE=
8159 if test x$ac_widec_possible = xyes; then
8161 $as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h
8165 for ac_func in resizeterm
8167 ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm"
8168 if test "x$ac_cv_func_resizeterm" = xyes; then :
8169 cat >>confdefs.h <<_ACEOF
8170 #define HAVE_RESIZETERM 1
8177 for ac_func in snprintf vsnprintf
8179 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8180 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8181 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8182 cat >>confdefs.h <<_ACEOF
8183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8190 for ac_func in strcasestr
8192 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
8193 if test "x$ac_cv_func_strcasestr" = xyes; then :
8194 cat >>confdefs.h <<_ACEOF
8195 #define HAVE_STRCASESTR 1
8197 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
8203 # Check whether --enable-debug was given.
8204 if test "${enable_debug+set}" = set; then :
8205 enableval=$enable_debug; case "${enableval}" in
8208 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
8215 if test x$debug = xtrue; then
8216 CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
8220 if test x$GCC = xyes; then
8221 CFLAGS="-Wall $CFLAGS"
8224 ac_config_files="$ac_config_files Makefile abook.spec po/Makefile.in"
8226 cat >confcache <<\_ACEOF
8227 # This file is a shell script that caches the results of configure
8228 # tests run on this system so they can be shared between configure
8229 # scripts and configure runs, see configure's option --config-cache.
8230 # It is not useful on other systems. If it contains results you don't
8231 # want to keep, you may remove or edit it.
8233 # config.status only pays attention to the cache file if you give it
8234 # the --recheck option to rerun configure.
8236 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8237 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8242 # The following way of writing the cache mishandles newlines in values,
8243 # but we know of no workaround that is simple, portable, and efficient.
8244 # So, we kill variables containing newlines.
8245 # Ultrix sh set writes to stderr and can't be redirected directly,
8246 # and sets the high bit in the cache file unless we assign to the vars.
8248 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8249 eval ac_val=\$$ac_var
8253 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8254 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8257 _ | IFS | as_nl) ;; #(
8258 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8259 *) { eval $ac_var=; unset $ac_var;} ;;
8265 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8266 *${as_nl}ac_space=\ *)
8267 # `set' does not quote correctly, so add quotes: double-quote
8268 # substitution turns \\\\ into \\, and sed turns \\ into \.
8271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8274 # `set' quotes correctly as required by POSIX, so do not add quotes.
8275 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8286 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8288 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8289 if test -w "$cache_file"; then
8290 if test "x$cache_file" != "x/dev/null"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8292 $as_echo "$as_me: updating cache $cache_file" >&6;}
8293 if test ! -f "$cache_file" || test -h "$cache_file"; then
8294 cat confcache >"$cache_file"
8296 case $cache_file in #(
8298 mv -f confcache "$cache_file"$$ &&
8299 mv -f "$cache_file"$$ "$cache_file" ;; #(
8301 mv -f confcache "$cache_file" ;;
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8307 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8312 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8313 # Let make expand exec_prefix.
8314 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8316 DEFS=-DHAVE_CONFIG_H
8321 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8322 # 1. Remove the extension, and $U if already installed.
8323 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8324 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8325 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8326 # will be set to the directory where LIBOBJS objects are built.
8327 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8328 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8332 LTLIBOBJS=$ac_ltlibobjs
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8336 $as_echo_n "checking that generated files are newer than configure... " >&6; }
8337 if test -n "$am_sleep_pid"; then
8338 # Hide warnings about reused PIDs.
8339 wait $am_sleep_pid 2>/dev/null
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
8342 $as_echo "done" >&6; }
8343 if test -n "$EXEEXT"; then
8345 am__EXEEXT_FALSE='#'
8351 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8352 as_fn_error $? "conditional \"AMDEP\" was never defined.
8353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8355 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8356 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8359 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
8360 as_fn_error $? "conditional \"USE_INCLUDED_INTL_H\" was never defined.
8361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8363 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8364 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8367 if test -z "${ENABLE_VFORMAT_SUPPORT_TRUE}" && test -z "${ENABLE_VFORMAT_SUPPORT_FALSE}"; then
8368 as_fn_error $? "conditional \"ENABLE_VFORMAT_SUPPORT\" was never defined.
8369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8372 : "${CONFIG_STATUS=./config.status}"
8374 ac_clean_files_save=$ac_clean_files
8375 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8377 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8379 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8381 # Generated by $as_me.
8382 # Run this file to recreate the current configuration.
8383 # Compiler output produced by configure, useful for debugging
8384 # configure, is in config.log if it exists.
8390 SHELL=\${CONFIG_SHELL-$SHELL}
8393 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8394 ## -------------------- ##
8395 ## M4sh Initialization. ##
8396 ## -------------------- ##
8398 # Be more Bourne compatible
8399 DUALCASE=1; export DUALCASE # for MKS sh
8400 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8403 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8404 # is contrary to our usage. Disable this feature.
8405 alias -g '${1+"$@"}'='"$@"'
8406 setopt NO_GLOB_SUBST
8408 case `(set -o) 2>/dev/null` in #(
8420 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8421 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8422 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8423 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8424 # Prefer a ksh shell builtin over an external printf program on Solaris,
8425 # but without wasting forks for bash or zsh.
8426 if test -z "$BASH_VERSION$ZSH_VERSION" \
8427 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8428 as_echo='print -r --'
8429 as_echo_n='print -rn --'
8430 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8431 as_echo='printf %s\n'
8432 as_echo_n='printf %s'
8434 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8435 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8436 as_echo_n='/usr/ucb/echo -n'
8438 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8439 as_echo_n_body='eval
8443 expr "X$arg" : "X\\(.*\\)$as_nl";
8444 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8446 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8448 export as_echo_n_body
8449 as_echo_n='sh -c $as_echo_n_body as_echo'
8452 as_echo='sh -c $as_echo_body as_echo'
8455 # The user is always right.
8456 if test "${PATH_SEPARATOR+set}" != set; then
8458 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8459 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8466 # We need space, tab and new line, in precisely that order. Quoting is
8467 # there to prevent editors from complaining about space-tab.
8468 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8469 # splitting by setting IFS to empty value.)
8472 # Find who we are. Look in the path if we contain no directory separator.
8475 *[\\/]* ) as_myself=$0 ;;
8476 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 test -z "$as_dir" && as_dir=.
8481 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8487 # We did not find ourselves, most probably we were run as `sh COMMAND'
8488 # in which case we are not to be found in the path.
8489 if test "x$as_myself" = x; then
8492 if test ! -f "$as_myself"; then
8493 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8497 # Unset variables that we do not need and which cause bugs (e.g. in
8498 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8499 # suppresses any "Segmentation fault" message there. '((' could
8500 # trigger a bug in pdksh 5.2.14.
8501 for as_var in BASH_ENV ENV MAIL MAILPATH
8502 do eval test x\${$as_var+set} = xset \
8503 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8516 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8519 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8520 # ----------------------------------------
8521 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8522 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8523 # script with STATUS, using 1 if that was 0.
8526 as_status=$1; test $as_status -eq 0 && as_status=1
8528 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8529 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8531 $as_echo "$as_me: error: $2" >&2
8532 as_fn_exit $as_status
8536 # as_fn_set_status STATUS
8537 # -----------------------
8538 # Set $? to STATUS, without forking.
8542 } # as_fn_set_status
8546 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8556 # Portably unset VAR.
8559 { eval $1=; unset $1;}
8561 as_unset=as_fn_unset
8562 # as_fn_append VAR VALUE
8563 # ----------------------
8564 # Append the text in VALUE to the end of the definition contained in VAR. Take
8565 # advantage of any shell optimizations that allow amortized linear growth over
8566 # repeated appends, instead of the typical quadratic growth present in naive
8568 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8569 eval 'as_fn_append ()
8580 # as_fn_arith ARG...
8581 # ------------------
8582 # Perform arithmetic evaluation on the ARGs, and store the result in the
8583 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8584 # must be portable across $(()) and expr.
8585 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8586 eval 'as_fn_arith ()
8593 as_val=`expr "$@" || test $? -eq 1`
8598 if expr a : '\(a\)' >/dev/null 2>&1 &&
8599 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8605 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8606 as_basename=basename
8611 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8617 as_me=`$as_basename -- "$0" ||
8618 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8619 X"$0" : 'X\(//\)$' \| \
8620 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8622 sed '/^.*\/\([^/][^/]*\)\/*$/{
8636 # Avoid depending upon Character Ranges.
8637 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8638 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8639 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8640 as_cr_digits='0123456789'
8641 as_cr_alnum=$as_cr_Letters$as_cr_digits
8643 ECHO_C= ECHO_N= ECHO_T=
8644 case `echo -n x` in #(((((
8646 case `echo 'xy\c'` in
8647 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8649 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8656 rm -f conf$$ conf$$.exe conf$$.file
8657 if test -d conf$$.dir; then
8658 rm -f conf$$.dir/conf$$.file
8661 mkdir conf$$.dir 2>/dev/null
8663 if (echo >conf$$.file) 2>/dev/null; then
8664 if ln -s conf$$.file conf$$ 2>/dev/null; then
8666 # ... but there are two gotchas:
8667 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8668 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8669 # In both cases, we have to default to `cp -pR'.
8670 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8672 elif ln conf$$.file conf$$ 2>/dev/null; then
8680 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8681 rmdir conf$$.dir 2>/dev/null
8686 # Create "$as_dir" as a directory, including parents if necessary.
8691 -*) as_dir=./$as_dir;;
8693 test -d "$as_dir" || eval $as_mkdir_p || {
8697 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8698 *) as_qdir=$as_dir;;
8700 as_dirs="'$as_qdir' $as_dirs"
8701 as_dir=`$as_dirname -- "$as_dir" ||
8702 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8703 X"$as_dir" : 'X\(//\)[^/]' \| \
8704 X"$as_dir" : 'X\(//\)$' \| \
8705 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8706 $as_echo X"$as_dir" |
8707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8724 test -d "$as_dir" && break
8726 test -z "$as_dirs" || eval "mkdir $as_dirs"
8727 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8731 if mkdir -p . 2>/dev/null; then
8732 as_mkdir_p='mkdir -p "$as_dir"'
8734 test -d ./-p && rmdir ./-p
8739 # as_fn_executable_p FILE
8740 # -----------------------
8741 # Test if FILE is an executable regular file.
8742 as_fn_executable_p ()
8744 test -f "$1" && test -x "$1"
8745 } # as_fn_executable_p
8747 as_executable_p=as_fn_executable_p
8749 # Sed expression to map a string onto a valid CPP name.
8750 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8752 # Sed expression to map a string onto a valid variable name.
8753 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8757 ## ----------------------------------- ##
8758 ## Main body of $CONFIG_STATUS script. ##
8759 ## ----------------------------------- ##
8761 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8764 # Save the log message, to keep $0 and so on meaningful, and to
8765 # report actual input values of CONFIG_FILES etc. instead of their
8766 # values after options handling.
8768 This file was extended by Abook $as_me 0.6.0pre2, which was
8769 generated by GNU Autoconf 2.69. Invocation command line was
8771 CONFIG_FILES = $CONFIG_FILES
8772 CONFIG_HEADERS = $CONFIG_HEADERS
8773 CONFIG_LINKS = $CONFIG_LINKS
8774 CONFIG_COMMANDS = $CONFIG_COMMANDS
8777 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8782 case $ac_config_files in *"
8783 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8786 case $ac_config_headers in *"
8787 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8792 # Files that config.status was made for.
8793 config_files="$ac_config_files"
8794 config_headers="$ac_config_headers"
8795 config_commands="$ac_config_commands"
8799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8801 \`$as_me' instantiates files and other configuration actions
8802 from templates according to the current configuration. Unless the files
8803 and actions are specified as TAGs, all are instantiated by default.
8805 Usage: $0 [OPTION]... [TAG]...
8807 -h, --help print this help, then exit
8808 -V, --version print version number and configuration settings, then exit
8809 --config print configuration, then exit
8810 -q, --quiet, --silent
8811 do not print progress messages
8812 -d, --debug don't remove temporary files
8813 --recheck update $as_me by reconfiguring in the same conditions
8814 --file=FILE[:TEMPLATE]
8815 instantiate the configuration file FILE
8816 --header=FILE[:TEMPLATE]
8817 instantiate the configuration header FILE
8819 Configuration files:
8822 Configuration headers:
8825 Configuration commands:
8828 Report bugs to <abook-devel@lists.sourceforge.net>.
8829 Abook home page: <http://abook.sourceforge.net>."
8832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8833 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8835 Abook config.status 0.6.0pre2
8836 configured by $0, generated by GNU Autoconf 2.69,
8837 with options \\"\$ac_cs_config\\"
8839 Copyright (C) 2012 Free Software Foundation, Inc.
8840 This config.status script is free software; the Free Software Foundation
8841 gives unlimited permission to copy, distribute and modify it."
8848 test -n "\$AWK" || AWK=awk
8851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8852 # The default lists apply if the user does not specify any file.
8858 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8859 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8863 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8875 # Handling of the options.
8876 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8878 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8879 $as_echo "$ac_cs_version"; exit ;;
8880 --config | --confi | --conf | --con | --co | --c )
8881 $as_echo "$ac_cs_config"; exit ;;
8882 --debug | --debu | --deb | --de | --d | -d )
8884 --file | --fil | --fi | --f )
8887 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8888 '') as_fn_error $? "missing file argument" ;;
8890 as_fn_append CONFIG_FILES " '$ac_optarg'"
8891 ac_need_defaults=false;;
8892 --header | --heade | --head | --hea )
8895 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8897 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8898 ac_need_defaults=false;;
8900 # Conflict between --help and --header
8901 as_fn_error $? "ambiguous option: \`$1'
8902 Try \`$0 --help' for more information.";;
8903 --help | --hel | -h )
8904 $as_echo "$ac_cs_usage"; exit ;;
8905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8906 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8910 -*) as_fn_error $? "unrecognized option: \`$1'
8911 Try \`$0 --help' for more information." ;;
8913 *) as_fn_append ac_config_targets " $1"
8914 ac_need_defaults=false ;;
8920 ac_configure_extra_args=
8922 if $ac_cs_silent; then
8924 ac_configure_extra_args="$ac_configure_extra_args --silent"
8928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8929 if \$ac_cs_recheck; then
8930 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8932 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8933 CONFIG_SHELL='$SHELL'
8939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8944 ## Running $as_me. ##
8950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8954 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8955 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8956 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8957 # from automake < 1.5.
8958 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8959 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8960 LINGUAS="${LINGUAS-%UNSET%}"
8965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8967 # Handling of arguments.
8968 for ac_config_target in $ac_config_targets
8970 case $ac_config_target in
8971 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8972 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8973 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8974 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8975 "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
8976 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8978 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8983 # If the user did not use the arguments to specify the items to instantiate,
8984 # then the envvar interface is used. Set only those that are not.
8985 # We use the long form for the default assignment because of an extremely
8986 # bizarre bug on SunOS 4.1.3.
8987 if $ac_need_defaults; then
8988 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8989 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8990 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8993 # Have a temporary directory for convenience. Make it in the build tree
8994 # simply because there is no reason against having it here, and in addition,
8995 # creating and moving files from /tmp can sometimes cause problems.
8996 # Hook for its removal unless debugging.
8997 # Note that there is a small window in which the directory will not be cleaned:
8998 # after its creation but before its name has been assigned to `$tmp'.
9002 trap 'exit_status=$?
9004 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9006 trap 'as_fn_exit 1' 1 2 13 15
9008 # Create a (secure) tmp directory for tmp files.
9011 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9015 tmp=./conf$$-$RANDOM
9016 (umask 077 && mkdir "$tmp")
9017 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9020 # Set up the scripts for CONFIG_FILES section.
9021 # No need to generate them if there are no CONFIG_FILES.
9022 # This happens for instance with `./config.status config.h'.
9023 if test -n "$CONFIG_FILES"; then
9026 ac_cr=`echo X | tr X '\015'`
9027 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9028 # But we know of no other shell where ac_cr would be empty at this
9029 # point, so we can use a bashism as a fallback.
9030 if test "x$ac_cr" = x; then
9031 eval ac_cr=\$\'\\r\'
9033 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9034 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9040 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9045 echo "cat >conf$$subs.awk <<_ACEOF" &&
9046 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9049 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9050 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9052 for ac_last_try in false false false false false :; do
9053 . ./conf$$subs.sh ||
9054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9056 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9057 if test $ac_delim_n = $ac_delim_num; then
9059 elif $ac_last_try; then
9060 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9062 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9068 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9072 s/^/S["/; s/!.*/"]=/
9082 s/\(.\{148\}\)..*/\1/
9084 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9089 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9096 s/\(.\{148\}\)..*/\1/
9098 s/["\\]/\\&/g; s/^/"/; s/$/"/
9102 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9107 ' <conf$$subs.awk | sed '
9112 ' >>$CONFIG_STATUS || ac_write_fail=1
9113 rm -f conf$$subs.awk
9114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9116 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9117 for (key in S) S_is_set[key] = 1
9123 nfields = split(line, field, "@")
9125 len = length(field[1])
9126 for (i = 2; i < nfields; i++) {
9128 keylen = length(key)
9129 if (S_is_set[key]) {
9131 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9132 len += length(value) + length(field[++i])
9143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9144 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9145 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9148 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9149 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9152 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9153 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9154 # trailing colons and then remove the whole line if VPATH becomes empty
9155 # (actually we leave an empty line to preserve line numbers).
9156 if test "x$srcdir" = x.; then
9157 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9176 fi # test -n "$CONFIG_FILES"
9178 # Set up the scripts for CONFIG_HEADERS section.
9179 # No need to generate them if there are no CONFIG_HEADERS.
9180 # This happens for instance with `./config.status Makefile'.
9181 if test -n "$CONFIG_HEADERS"; then
9182 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9186 # Transform confdefs.h into an awk script `defines.awk', embedded as
9187 # here-document in config.status, that substitutes the proper values into
9188 # config.h.in to produce config.h.
9190 # Create a delimiter string that does not exist in confdefs.h, to ease
9191 # handling of long lines.
9193 for ac_last_try in false false :; do
9194 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9195 if test -z "$ac_tt"; then
9197 elif $ac_last_try; then
9198 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9200 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9204 # For the awk script, D is an array of macro values keyed by name,
9205 # likewise P contains macro parameters if any. Preserve backslash
9206 # newline sequences.
9208 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9210 s/.\{148\}/&'"$ac_delim"'/g
9213 s/^[ ]*#[ ]*define[ ][ ]*/ /
9220 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9222 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9226 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9227 D["\1"]=" \3\\\\\\n"\\/p
9229 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9234 s/.\{148\}/&'"$ac_delim"'/g
9239 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9242 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9244 ' <confdefs.h | sed '
9245 s/'"$ac_delim"'/"\\\
9246 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9249 for (key in D) D_is_set[key] = 1
9252 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9254 split(line, arg, " ")
9255 if (arg[1] == "#") {
9259 defundef = substr(arg[1], 2)
9262 split(mac1, mac2, "(") #)
9264 prefix = substr(line, 1, index(line, defundef) - 1)
9265 if (D_is_set[macro]) {
9266 # Preserve the white space surrounding the "#".
9267 print prefix "define", macro P[macro] D[macro]
9270 # Replace #undef with comments. This is necessary, for example,
9271 # in the case of _POSIX_SOURCE, which is predefined and required
9272 # on some systems where configure will not decide to define it.
9273 if (defundef == "undef") {
9274 print "/*", prefix defundef, macro, "*/"
9282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9283 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9284 fi # test -n "$CONFIG_HEADERS"
9287 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9292 :[FHLC]) ac_mode=$ac_tag; continue;;
9294 case $ac_mode$ac_tag in
9296 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9297 :[FH]-) ac_tag=-:-;;
9298 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9315 -) ac_f="$ac_tmp/stdin";;
9316 *) # Look for the file first in the build tree, then in the source tree
9317 # (if the path is not absolute). The absolute path cannot be DOS-style,
9318 # because $ac_f cannot contain `:'.
9322 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9324 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9326 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9327 as_fn_append ac_file_inputs " '$ac_f'"
9330 # Let's still pretend it is `configure' which instantiates (i.e., don't
9331 # use $as_me), people would be surprised to read:
9332 # /* config.h. Generated by config.status. */
9333 configure_input='Generated from '`
9334 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9336 if test x"$ac_file" != x-; then
9337 configure_input="$ac_file. $configure_input"
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9339 $as_echo "$as_me: creating $ac_file" >&6;}
9341 # Neutralize special characters interpreted by sed in replacement strings.
9342 case $configure_input in #(
9343 *\&* | *\|* | *\\* )
9344 ac_sed_conf_input=`$as_echo "$configure_input" |
9345 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9346 *) ac_sed_conf_input=$configure_input;;
9350 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9351 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9356 ac_dir=`$as_dirname -- "$ac_file" ||
9357 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9358 X"$ac_file" : 'X\(//\)[^/]' \| \
9359 X"$ac_file" : 'X\(//\)$' \| \
9360 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9361 $as_echo X"$ac_file" |
9362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9379 as_dir="$ac_dir"; as_fn_mkdir_p
9383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9385 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9386 # A ".." for each directory in $ac_dir_suffix.
9387 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9388 case $ac_top_builddir_sub in
9389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9393 ac_abs_top_builddir=$ac_pwd
9394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9395 # for backward compatibility:
9396 ac_top_builddir=$ac_top_build_prefix
9399 .) # We are building in place.
9401 ac_top_srcdir=$ac_top_builddir_sub
9402 ac_abs_top_srcdir=$ac_pwd ;;
9403 [\\/]* | ?:[\\/]* ) # Absolute name.
9404 ac_srcdir=$srcdir$ac_dir_suffix;
9405 ac_top_srcdir=$srcdir
9406 ac_abs_top_srcdir=$srcdir ;;
9408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9409 ac_top_srcdir=$ac_top_build_prefix$srcdir
9410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9422 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9423 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9427 [\\/$]* | ?:[\\/]* ) ;;
9428 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9433 # If the template does not know about datarootdir, expand it.
9434 # FIXME: This hack should be removed a few years after 2.60.
9435 ac_datarootdir_hack=; ac_datarootdir_seen=
9446 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9447 *datarootdir*) ac_datarootdir_seen=yes;;
9448 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9450 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9453 ac_datarootdir_hack='
9454 s&@datadir@&$datadir&g
9455 s&@docdir@&$docdir&g
9456 s&@infodir@&$infodir&g
9457 s&@localedir@&$localedir&g
9458 s&@mandir@&$mandir&g
9459 s&\\\${datarootdir}&$datarootdir&g' ;;
9463 # Neutralize VPATH when `$srcdir' = `.'.
9464 # Shell code in configure.ac might set extrasub.
9465 # FIXME: do we really want to maintain this feature?
9466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9467 ac_sed_extra="$ac_vpsub
9470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9472 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9473 s|@configure_input@|$ac_sed_conf_input|;t t
9474 s&@top_builddir@&$ac_top_builddir_sub&;t t
9475 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9476 s&@srcdir@&$ac_srcdir&;t t
9477 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9478 s&@top_srcdir@&$ac_top_srcdir&;t t
9479 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9480 s&@builddir@&$ac_builddir&;t t
9481 s&@abs_builddir@&$ac_abs_builddir&;t t
9482 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9483 s&@INSTALL@&$ac_INSTALL&;t t
9484 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9485 $ac_datarootdir_hack
9487 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9488 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9490 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9491 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9492 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9493 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9495 which seems to be undefined. Please make sure it is defined" >&5
9496 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9497 which seems to be undefined. Please make sure it is defined" >&2;}
9499 rm -f "$ac_tmp/stdin"
9501 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9502 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9504 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9510 if test x"$ac_file" != x-; then
9512 $as_echo "/* $configure_input */" \
9513 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9514 } >"$ac_tmp/config.h" \
9515 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9516 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9518 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9521 mv "$ac_tmp/config.h" "$ac_file" \
9522 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9525 $as_echo "/* $configure_input */" \
9526 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9527 || as_fn_error $? "could not create -" "$LINENO" 5
9529 # Compute "$ac_file"'s index in $config_headers.
9532 for _am_header in $config_headers :; do
9534 $_am_arg | $_am_arg:* )
9537 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9540 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9541 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9542 X"$_am_arg" : 'X\(//\)[^/]' \| \
9543 X"$_am_arg" : 'X\(//\)$' \| \
9544 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9545 $as_echo X"$_am_arg" |
9546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9562 s/.*/./; q'`/stamp-h$_am_stamp_count
9565 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9566 $as_echo "$as_me: executing $ac_file commands" >&6;}
9571 case $ac_file$ac_mode in
9572 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9573 # Older Autoconf quotes --file arguments for eval, but not when files
9574 # are listed without --file. Let's play safe and only enable the eval
9575 # if we detect the quoting.
9576 case $CONFIG_FILES in
9577 *\'*) eval set x "$CONFIG_FILES" ;;
9578 *) set x $CONFIG_FILES ;;
9583 # Strip MF so we end up with the name of the file.
9584 mf=`echo "$mf" | sed -e 's/:.*$//'`
9585 # Check whether this is an Automake generated Makefile or not.
9586 # We used to match only the files named 'Makefile.in', but
9587 # some people rename them; so instead we look at the file content.
9588 # Grep'ing the first line is not enough: some people post-process
9589 # each Makefile.in and add a new line on top of each file to say so.
9590 # Grep'ing the whole file is not good either: AIX grep has a line
9591 # limit of 2048, but all sed's we know have understand at least 4000.
9592 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9593 dirpart=`$as_dirname -- "$mf" ||
9594 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9595 X"$mf" : 'X\(//\)[^/]' \| \
9596 X"$mf" : 'X\(//\)$' \| \
9597 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9619 # Extract the definition of DEPDIR, am__include, and am__quote
9620 # from the Makefile without running 'make'.
9621 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9622 test -z "$DEPDIR" && continue
9623 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9624 test -z "$am__include" && continue
9625 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9626 # Find all dependency output files, they are included files with
9627 # $(DEPDIR) in their names. We invoke sed twice because it is the
9628 # simplest approach to changing $(DEPDIR) to its actual value in the
9630 for file in `sed -n "
9631 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9632 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9633 # Make sure the directory exists.
9634 test -f "$dirpart/$file" && continue
9635 fdir=`$as_dirname -- "$file" ||
9636 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9637 X"$file" : 'X\(//\)[^/]' \| \
9638 X"$file" : 'X\(//\)$' \| \
9639 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9658 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9659 # echo "creating $dirpart/$file"
9660 echo '# dummy' > "$dirpart/$file"
9666 for ac_file in $CONFIG_FILES; do
9667 # Support "outfile[:infile[:infile...]]"
9669 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9671 # PO directories have a Makefile.in generated from Makefile.in.in.
9672 case "$ac_file" in */Makefile.in)
9673 # Adjust a relative srcdir.
9674 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9675 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9676 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9677 # In autoconf-2.13 it is called $ac_given_srcdir.
9678 # In autoconf-2.50 it is called $srcdir.
9679 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9680 case "$ac_given_srcdir" in
9681 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9682 /*) top_srcdir="$ac_given_srcdir" ;;
9683 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9685 # Treat a directory as a PO directory if and only if it has a
9686 # POTFILES.in file. This allows packages to have multiple PO
9687 # directories under different names or in different locations.
9688 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9689 rm -f "$ac_dir/POTFILES"
9690 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9691 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9692 POMAKEFILEDEPS="POTFILES.in"
9693 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9694 # on $ac_dir but don't depend on user-specified configuration
9696 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9697 # The LINGUAS file contains the set of available languages.
9698 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9699 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9701 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9702 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9703 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9704 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9706 # The set of available languages was given in configure.in.
9707 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9708 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9711 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9712 # Compute UPDATEPOFILES
9713 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9714 # Compute DUMMYPOFILES
9715 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9717 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9718 case "$ac_given_srcdir" in
9720 *) srcdirpre='$(srcdir)/' ;;
9726 for lang in $ALL_LINGUAS; do
9727 POFILES="$POFILES $srcdirpre$lang.po"
9728 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9729 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9730 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9732 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9733 # environment variable.
9735 if test -n "$ALL_LINGUAS"; then
9736 for presentlang in $ALL_LINGUAS; do
9738 if test "%UNSET%" != "$LINGUAS"; then
9739 desiredlanguages="$LINGUAS"
9741 desiredlanguages="$ALL_LINGUAS"
9743 for desiredlang in $desiredlanguages; do
9744 # Use the presentlang catalog if desiredlang is
9745 # a. equal to presentlang, or
9746 # b. a variant of presentlang (because in this case,
9747 # presentlang can be used as a fallback for messages
9748 # which are not translated in the desiredlang catalog).
9749 case "$desiredlang" in
9750 "$presentlang"*) useit=yes;;
9753 if test $useit = yes; then
9754 INST_LINGUAS="$INST_LINGUAS $presentlang"
9759 if test -n "$INST_LINGUAS"; then
9760 for lang in $INST_LINGUAS; do
9761 CATALOGS="$CATALOGS $lang.gmo"
9764 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9765 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"
9766 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9767 if test -f "$f"; then
9769 *.orig | *.bak | *~) ;;
9770 *) cat "$f" >> "$ac_dir/Makefile" ;;
9785 ac_clean_files=$ac_clean_files_save
9787 test $ac_write_fail = 0 ||
9788 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9791 # configure is writing to config.log, and then calls config.status.
9792 # config.status does its own redirection, appending to config.log.
9793 # Unfortunately, on DOS this fails, as config.log is still kept open
9794 # by configure, so config.status won't be able to write to it; its
9795 # output is simply discarded. So we exec the FD to /dev/null,
9796 # effectively closing config.log, so it can be properly (re)opened and
9797 # appended to by config.status. When coming back to configure, we
9798 # need to make the FD available again.
9799 if test "$no_create" != yes; then
9801 ac_config_status_args=
9802 test "$silent" = yes &&
9803 ac_config_status_args="$ac_config_status_args --quiet"
9805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9808 # would make configure fail if this is the last instruction.
9809 $ac_cs_success || as_fn_exit 1
9811 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9813 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}