2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
624 gl_use_threads_default=
626 ac_subst_vars='LTLIBOBJS
673 INTL_LIBTOOL_SUFFIX_PREFIX
680 BUILD_INCLUDED_LIBINTL
690 INTL_DEFAULT_VERBOSITY
709 XGETTEXT_EXTRA_OPTIONS
717 GETTEXT_MACRO_VERSION
831 program_transform_name
842 ac_subst_files='MCONFIG
848 PUBLIC_CONFIG_HEADER'
850 enable_option_checking
856 enable_maintainer_mode
857 enable_symlink_install
858 enable_relative_symlinks
859 enable_symlink_relative_symlinks
861 enable_verbose_makecmds
880 enable_e2initrd_helper
885 enable_bmap_stats_ops
892 with_included_gettext
896 ac_precious_vars='build_alias
910 # Initialize some variables set by options.
912 ac_init_version=false
913 ac_unrecognized_opts=
915 # The variables have the same names as the options, with
916 # dashes changed to underlines.
924 program_transform_name=s,x,x,
932 # Installation directory options.
933 # These are left unexpanded so users can "make install exec_prefix=/foo"
934 # and all the variables that are supposed to be based on exec_prefix
935 # by default will actually change.
936 # Use braces instead of parens because sh, perl, etc. also accept them.
937 # (The list follows the same order as the GNU Coding Standards.)
938 bindir='${exec_prefix}/bin'
939 sbindir='${exec_prefix}/sbin'
940 libexecdir='${exec_prefix}/libexec'
941 datarootdir='${prefix}/share'
942 datadir='${datarootdir}'
943 sysconfdir='${prefix}/etc'
944 sharedstatedir='${prefix}/com'
945 localstatedir='${prefix}/var'
946 includedir='${prefix}/include'
947 oldincludedir='/usr/include'
948 docdir='${datarootdir}/doc/${PACKAGE}'
949 infodir='${datarootdir}/info'
954 libdir='${exec_prefix}/lib'
955 localedir='${datarootdir}/locale'
956 mandir='${datarootdir}/man'
962 # If the previous option needs an argument, assign it.
963 if test -n "$ac_prev"; then
964 eval $ac_prev=\$ac_option
970 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 # Accept the important Cygnus configure options, so we can diagnose typos.
977 case $ac_dashdash$ac_option in
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 -build | --build | --buil | --bui | --bu)
987 ac_prev=build_alias ;;
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989 build_alias=$ac_optarg ;;
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996 cache_file=$ac_optarg ;;
999 cache_file=config.cache ;;
1001 -datadir | --datadir | --datadi | --datad)
1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004 datadir=$ac_optarg ;;
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1013 -disable-* | --disable-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 as_fn_error $? "invalid feature name: $ac_useropt"
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1022 "enable_$ac_useropt"
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1027 eval enable_$ac_useropt=no ;;
1029 -docdir | --docdir | --docdi | --doc | --do)
1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032 docdir=$ac_optarg ;;
1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037 dvidir=$ac_optarg ;;
1039 -enable-* | --enable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error $? "invalid feature name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_$ac_useropt"
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1053 eval enable_$ac_useropt=\$ac_optarg ;;
1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057 | --exec | --exe | --ex)
1058 ac_prev=exec_prefix ;;
1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061 | --exec=* | --exe=* | --ex=*)
1062 exec_prefix=$ac_optarg ;;
1064 -gas | --gas | --ga | --g)
1065 # Obsolete; use --with-gas.
1068 -help | --help | --hel | --he | -h)
1069 ac_init_help=long ;;
1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071 ac_init_help=recursive ;;
1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073 ac_init_help=short ;;
1075 -host | --host | --hos | --ho)
1076 ac_prev=host_alias ;;
1077 -host=* | --host=* | --hos=* | --ho=*)
1078 host_alias=$ac_optarg ;;
1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084 htmldir=$ac_optarg ;;
1086 -includedir | --includedir | --includedi | --included | --include \
1087 | --includ | --inclu | --incl | --inc)
1088 ac_prev=includedir ;;
1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090 | --includ=* | --inclu=* | --incl=* | --inc=*)
1091 includedir=$ac_optarg ;;
1093 -infodir | --infodir | --infodi | --infod | --info | --inf)
1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1096 infodir=$ac_optarg ;;
1098 -libdir | --libdir | --libdi | --libd)
1100 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1101 libdir=$ac_optarg ;;
1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104 | --libexe | --libex | --libe)
1105 ac_prev=libexecdir ;;
1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107 | --libexe=* | --libex=* | --libe=*)
1108 libexecdir=$ac_optarg ;;
1110 -localedir | --localedir | --localedi | --localed | --locale)
1111 ac_prev=localedir ;;
1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113 localedir=$ac_optarg ;;
1115 -localstatedir | --localstatedir | --localstatedi | --localstated \
1116 | --localstate | --localstat | --localsta | --localst | --locals)
1117 ac_prev=localstatedir ;;
1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1120 localstatedir=$ac_optarg ;;
1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1125 mandir=$ac_optarg ;;
1127 -nfp | --nfp | --nf)
1128 # Obsolete; use --without-fp.
1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1132 | --no-cr | --no-c | -n)
1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141 | --oldin | --oldi | --old | --ol | --o)
1142 ac_prev=oldincludedir ;;
1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1146 oldincludedir=$ac_optarg ;;
1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1151 prefix=$ac_optarg ;;
1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154 | --program-pre | --program-pr | --program-p)
1155 ac_prev=program_prefix ;;
1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1158 program_prefix=$ac_optarg ;;
1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161 | --program-suf | --program-su | --program-s)
1162 ac_prev=program_suffix ;;
1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1165 program_suffix=$ac_optarg ;;
1167 -program-transform-name | --program-transform-name \
1168 | --program-transform-nam | --program-transform-na \
1169 | --program-transform-n | --program-transform- \
1170 | --program-transform | --program-transfor \
1171 | --program-transfo | --program-transf \
1172 | --program-trans | --program-tran \
1173 | --progr-tra | --program-tr | --program-t)
1174 ac_prev=program_transform_name ;;
1175 -program-transform-name=* | --program-transform-name=* \
1176 | --program-transform-nam=* | --program-transform-na=* \
1177 | --program-transform-n=* | --program-transform-=* \
1178 | --program-transform=* | --program-transfor=* \
1179 | --program-transfo=* | --program-transf=* \
1180 | --program-trans=* | --program-tran=* \
1181 | --progr-tra=* | --program-tr=* | --program-t=*)
1182 program_transform_name=$ac_optarg ;;
1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187 pdfdir=$ac_optarg ;;
1189 -psdir | --psdir | --psdi | --psd | --ps)
1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195 | -silent | --silent | --silen | --sile | --sil)
1198 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1200 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1202 sbindir=$ac_optarg ;;
1204 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1205 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1206 | --sharedst | --shareds | --shared | --share | --shar \
1208 ac_prev=sharedstatedir ;;
1209 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1210 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1211 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1213 sharedstatedir=$ac_optarg ;;
1215 -site | --site | --sit)
1217 -site=* | --site=* | --sit=*)
1220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1223 srcdir=$ac_optarg ;;
1225 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1226 | --syscon | --sysco | --sysc | --sys | --sy)
1227 ac_prev=sysconfdir ;;
1228 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1229 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1230 sysconfdir=$ac_optarg ;;
1232 -target | --target | --targe | --targ | --tar | --ta | --t)
1233 ac_prev=target_alias ;;
1234 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1235 target_alias=$ac_optarg ;;
1237 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240 -version | --version | --versio | --versi | --vers | -V)
1241 ac_init_version=: ;;
1244 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1257 eval with_$ac_useropt=\$ac_optarg ;;
1259 -without-* | --without-*)
1260 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263 as_fn_error $? "invalid package name: $ac_useropt"
1264 ac_useropt_orig=$ac_useropt
1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1271 ac_unrecognized_sep=', ';;
1273 eval with_$ac_useropt=no ;;
1276 # Obsolete; use --with-x.
1279 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1280 | --x-incl | --x-inc | --x-in | --x-i)
1281 ac_prev=x_includes ;;
1282 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1283 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1284 x_includes=$ac_optarg ;;
1286 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1287 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1288 ac_prev=x_libraries ;;
1289 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1290 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1291 x_libraries=$ac_optarg ;;
1293 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1294 Try \`$0 --help' for more information"
1298 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1299 # Reject names that are not valid shell variable names.
1300 case $ac_envvar in #(
1301 '' | [0-9]* | *[!_$as_cr_alnum]* )
1302 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1304 eval $ac_envvar=\$ac_optarg
1305 export $ac_envvar ;;
1308 # FIXME: should be removed in autoconf 3.0.
1309 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1310 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1311 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1312 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318 if test -n "$ac_prev"; then
1319 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1320 as_fn_error $? "missing argument to $ac_option"
1323 if test -n "$ac_unrecognized_opts"; then
1324 case $enable_option_checking in
1326 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1327 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1331 # Check all directory arguments for consistency.
1332 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
1337 eval ac_val=\$$ac_var
1338 # Remove trailing slashes.
1341 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342 eval $ac_var=\$ac_val;;
1344 # Be sure to have absolute directory names.
1346 [\\/$]* | ?:[\\/]* ) continue;;
1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1349 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1352 # There might be people who depend on the old broken behavior: `$host'
1353 # used to hold the argument of --host etc.
1354 # FIXME: To remove some day.
1357 target=$target_alias
1359 # FIXME: To remove some day.
1360 if test "x$host_alias" != x; then
1361 if test "x$build_alias" = x; then
1362 cross_compiling=maybe
1363 elif test "x$build_alias" != "x$host_alias"; then
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371 test "$silent" = yes && exec 6>/dev/null
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377 as_fn_error $? "working directory cannot be determined"
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379 as_fn_error $? "pwd does not report name of working directory"
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
1385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir=`$as_dirname -- "$as_myself" ||
1387 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$as_myself" : 'X\(//\)[^/]' \| \
1389 X"$as_myself" : 'X\(//\)$' \| \
1390 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1391 $as_echo X"$as_myself" |
1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1414 ac_srcdir_defaulted=no
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1420 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442 # Report the --help message.
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1448 \`configure' configures this package to adapt to many kinds of systems.
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1455 Defaults for the options are specified in brackets.
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking ...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1479 For better control, use the options below.
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1506 --build=BUILD configure for building on BUILD [guessed]
1507 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511 if test -n "$ac_init_help"; then
1516 --disable-option-checking ignore unrecognized --enable/--with options
1517 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1518 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1519 --enable-maintainer-mode enable makefile rules useful for maintainers
1520 --enable-symlink-install use symlinks when installing instead of hard links
1521 --enable-relative-symlinks use relative symlinks when installing
1523 --enable-symlink-build use symlinks while building instead of hard links
1524 --enable-verbose-makecmds enable verbose make command output
1525 --enable-compression enable EXPERIMENTAL compression support
1526 --enable-htree enable EXPERIMENTAL htree directory support
1527 --enable-elf-shlibs select ELF shared libraries
1528 --enable-bsd-shlibs select BSD shared libraries
1529 --enable-profile build profiling libraries
1530 --enable-gcov build for coverage testing using gcov
1531 --enable-jbd-debug enable journal debugging
1532 --enable-blkid-debug enable blkid debugging
1533 --disable-testio-debug disable the use of the test I/O manager for debugging
1534 --disable-libuuid do not build private uuid library
1535 --disable-libblkid do not build private blkid library
1536 --enable-quota enable quota support
1537 --disable-backtrace disable use backtrace
1538 --disable-debugfs disable support of debugfs program
1539 --disable-imager disable support of e2image program
1540 --disable-resizer disable support of e2resize program
1541 --disable-defrag disable support of e4defrag program
1542 --enable-fsck build fsck wrapper program
1543 --enable-e2initrd-helper build e2initrd-helper program
1544 --disable-tls disable use of thread local support
1545 --disable-uuidd disable building the uuid daemon
1546 --disable-mmp disable support mmp, Multi Mount Protection
1547 --disable-bmap-stats disable collection of bitmap stats.
1548 --enable-bmap-stats-ops enable collection of additional bitmap stats
1549 --disable-nls do not use Native Language Support
1550 --enable-threads={posix|solaris|pth|windows}
1551 specify multithreading API
1552 --disable-threads build without multithread safety
1553 --disable-rpath do not hardcode runtime library paths
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1558 --with-diet-libc use diet libc
1559 --with-cc no longer supported, use CC= instead
1560 --with-ccopts no longer supported, use CFLAGS= instead
1561 --with-ldopts no longer supported, use LDFLAGS= instead
1562 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1563 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1564 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1565 --without-libpth-prefix don't search for libpth in includedir and libdir
1566 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1567 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1568 --with-included-gettext use the GNU gettext library included here
1569 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1570 --without-libintl-prefix don't search for libintl in includedir and libdir
1571 --with-multiarch=ARCH specify the multiarch triplet
1573 Some influential environment variables:
1574 CC C compiler command
1575 CFLAGS C compiler flags
1576 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1577 nonstandard directory <lib dir>
1578 LIBS libraries to pass to the linker, e.g. -l<library>
1579 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1580 you have headers in a nonstandard directory <include dir>
1582 PKG_CONFIG path to pkg-config utility
1584 directories to add to pkg-config's search path
1586 path overriding pkg-config's built-in search path
1588 Use these variables to override the choices made by `configure' or to help
1589 it to find libraries and programs with nonstandard names/locations.
1591 Report bugs to the package provider.
1596 if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
1598 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599 test -d "$ac_dir" ||
1600 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608 # A ".." for each directory in $ac_dir_suffix.
1609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1615 ac_abs_top_builddir=$ac_pwd
1616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir=$ac_top_build_prefix
1621 .) # We are building in place.
1623 ac_top_srcdir=$ac_top_builddir_sub
1624 ac_abs_top_srcdir=$ac_pwd ;;
1625 [\\/]* | ?:[\\/]* ) # Absolute name.
1626 ac_srcdir=$srcdir$ac_dir_suffix;
1627 ac_top_srcdir=$srcdir
1628 ac_abs_top_srcdir=$srcdir ;;
1630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636 cd "$ac_dir" || { ac_status=$?; continue; }
1637 # Check for guested configure.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1645 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 cd "$ac_pwd" || { ac_status=$?; break; }
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1655 generated by GNU Autoconf 2.69
1657 Copyright (C) 2012 Free Software Foundation, Inc.
1658 This configure script is free software; the Free Software Foundation
1659 gives unlimited permission to copy, distribute and modify it.
1664 ## ------------------------ ##
1665 ## Autoconf initialization. ##
1666 ## ------------------------ ##
1668 # ac_fn_c_try_compile LINENO
1669 # --------------------------
1670 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_compile ()
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext
1675 if { { ac_try="$ac_compile"
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_compile") 2>conftest.err
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest.$ac_objext; then :
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_compile
1706 # ac_fn_c_try_link LINENO
1707 # -----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded.
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext conftest$ac_exeext
1713 if { { ac_try="$ac_link"
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>conftest.err
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest$ac_exeext && {
1732 test "$cross_compiling" = yes ||
1733 test -x conftest$ac_exeext
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1742 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1743 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1744 # interfere with the next link command; also delete a directory that is
1745 # left behind by Apple's compiler. We do this before executing the actions.
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1750 } # ac_fn_c_try_link
1752 # ac_fn_c_try_cpp LINENO
1753 # ----------------------
1754 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if { { ac_try="$ac_cpp conftest.$ac_ext"
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } > conftest.i && {
1774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1789 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1790 # -------------------------------------------------------
1791 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792 # the include files in INCLUDES and setting the cache variable VAR
1794 ac_fn_c_check_header_mongrel ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if eval \${$3+:} false; then :
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \${$3+:} false; then :
1801 $as_echo_n "(cached) " >&6
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1807 # Is the header compilable?
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809 $as_echo_n "checking $2 usability... " >&6; }
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816 ac_header_compiler=yes
1818 ac_header_compiler=no
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822 $as_echo "$ac_header_compiler" >&6; }
1824 # Is the header present?
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826 $as_echo_n "checking $2 presence... " >&6; }
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1831 if ac_fn_c_try_cpp "$LINENO"; then :
1832 ac_header_preproc=yes
1834 ac_header_preproc=no
1836 rm -f conftest.err conftest.i conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838 $as_echo "$ac_header_preproc" >&6; }
1840 # So? What about this header?
1841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1852 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1856 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1866 eval "$3=\$ac_header_compiler"
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 } # ac_fn_c_check_header_mongrel
1876 # ac_fn_c_try_run LINENO
1877 # ----------------------
1878 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1879 # that executables *can* be run.
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { { ac_try="$ac_link"
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_link") 2>&5
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1894 { { case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_try") 2>&5
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; }; }; then :
1906 $as_echo "$as_me: program exited with status $ac_status" >&5
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1910 ac_retval=$ac_status
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1918 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1919 # -------------------------------------------------------
1920 # Tests whether HEADER exists and can be compiled using the include files in
1921 # INCLUDES, setting the cache variable VAR accordingly.
1922 ac_fn_c_check_header_compile ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1935 if ac_fn_c_try_compile "$LINENO"; then :
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 } # ac_fn_c_check_header_compile
1949 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1950 # -------------------------------------------
1951 # Tests whether TYPE exists after having included INCLUDES, setting cache
1952 # variable VAR accordingly.
1953 ac_fn_c_check_type ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1987 if ac_fn_c_try_compile "$LINENO"; then :
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 } # ac_fn_c_check_type
2003 # ac_fn_c_check_func LINENO FUNC VAR
2004 # ----------------------------------
2005 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2006 ac_fn_c_check_func ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2018 #define $2 innocuous_$2
2020 /* System header to define __stub macros and hopefully few prototypes,
2021 which can conflict with char $2 (); below.
2022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2023 <limits.h> exists even on freestanding compilers. */
2026 # include <limits.h>
2028 # include <assert.h>
2033 /* Override any GCC internal prototype to avoid an error.
2034 Use char because int might match the return type of a GCC
2035 builtin and then its argument prototype would still apply. */
2040 /* The GNU C library defines this for functions which it implements
2041 to always fail with ENOSYS. Some functions are actually named
2042 something starting with __ and the normal name is an alias. */
2043 #if defined __stub_$2 || defined __stub___$2
2055 if ac_fn_c_try_link "$LINENO"; then :
2060 rm -f core conftest.err conftest.$ac_objext \
2061 conftest$ac_exeext conftest.$ac_ext
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065 $as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068 } # ac_fn_c_check_func
2070 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2071 # ---------------------------------------------
2072 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2074 ac_fn_c_check_decl ()
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 as_decl_name=`echo $2|sed 's/ *(.*//'`
2078 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2080 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2081 if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2090 #ifndef $as_decl_name
2092 (void) $as_decl_use;
2094 (void) $as_decl_name;
2102 if ac_fn_c_try_compile "$LINENO"; then :
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 } # ac_fn_c_check_decl
2116 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2117 # --------------------------------------------
2118 # Tries to find the compile-time value of EXPR in a program that includes
2119 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2121 ac_fn_c_compute_int ()
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 if test "$cross_compiling" = yes; then
2125 # Depending upon the size, compute the lo and hi bounds.
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2132 static int test_array [1 - 2 * !(($2) >= 0)];
2134 return test_array [0];
2140 if ac_fn_c_try_compile "$LINENO"; then :
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2149 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2151 return test_array [0];
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158 ac_hi=$ac_mid; break
2160 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2161 if test $ac_lo -le $ac_mid; then
2165 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2176 static int test_array [1 - 2 * !(($2) < 0)];
2178 return test_array [0];
2184 if ac_fn_c_try_compile "$LINENO"; then :
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2193 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2195 return test_array [0];
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202 ac_lo=$ac_mid; break
2204 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2205 if test $ac_mid -le $ac_hi; then
2209 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 # Binary search between lo and hi bounds.
2220 while test "x$ac_lo" != "x$ac_hi"; do
2221 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2228 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2230 return test_array [0];
2236 if ac_fn_c_try_compile "$LINENO"; then :
2239 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2251 static long int longval () { return $2; }
2252 static unsigned long int ulongval () { return $2; }
2259 FILE *f = fopen ("conftest.val", "w");
2264 long int i = longval ();
2267 fprintf (f, "%ld", i);
2271 unsigned long int i = ulongval ();
2274 fprintf (f, "%lu", i);
2276 /* Do not output a trailing newline, as this causes \r\n confusion
2277 on some platforms. */
2278 return ferror (f) || fclose (f) != 0;
2284 if ac_fn_c_try_run "$LINENO"; then :
2285 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2290 conftest.$ac_objext conftest.beam conftest.$ac_ext
2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295 as_fn_set_status $ac_retval
2297 } # ac_fn_c_compute_int
2299 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2300 # ----------------------------------------------------
2301 # Tries to find if the field MEMBER exists in type AGGR, after including
2302 # INCLUDES, setting cache variable VAR accordingly.
2303 ac_fn_c_check_member ()
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2307 $as_echo_n "checking for $2.$3... " >&6; }
2308 if eval \${$4+:} false; then :
2309 $as_echo_n "(cached) " >&6
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2324 if ac_fn_c_try_compile "$LINENO"; then :
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2334 if (sizeof ac_aggr.$3)
2340 if ac_fn_c_try_compile "$LINENO"; then :
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354 } # ac_fn_c_check_member
2355 cat >config.log <<_ACEOF
2356 This file contains any messages produced by compilers while
2357 running configure, to aid debugging if configure makes a mistake.
2359 It was created by $as_me, which was
2360 generated by GNU Autoconf 2.69. Invocation command line was
2372 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2373 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2374 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2375 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2376 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2378 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2379 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2381 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2382 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2383 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2384 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2385 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2386 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2387 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 $as_echo "PATH: $as_dir"
2412 # Keep a trace of the command line.
2413 # Strip out --no-create and --no-recursion so they do not pile up.
2414 # Strip out --silent because we don't want to record it for future runs.
2415 # Also quote any args containing shell meta-characters.
2416 # Make two passes to allow for proper duplicate-argument suppression.
2420 ac_must_keep_next=false
2426 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2428 | -silent | --silent | --silen | --sile | --sil)
2431 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2434 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2436 as_fn_append ac_configure_args1 " '$ac_arg'"
2437 if test $ac_must_keep_next = true; then
2438 ac_must_keep_next=false # Got value, back to normal.
2441 *=* | --config-cache | -C | -disable-* | --disable-* \
2442 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2443 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2444 | -with-* | --with-* | -without-* | --without-* | --x)
2445 case "$ac_configure_args0 " in
2446 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2449 -* ) ac_must_keep_next=true ;;
2452 as_fn_append ac_configure_args " '$ac_arg'"
2457 { ac_configure_args0=; unset ac_configure_args0;}
2458 { ac_configure_args1=; unset ac_configure_args1;}
2460 # When interrupted or exit'd, cleanup temporary files, and complete
2461 # config.log. We remove comments because anyway the quotes in there
2462 # would cause problems or look ugly.
2463 # WARNING: Use '\'' to represent an apostrophe within the trap.
2464 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2465 trap 'exit_status=$?
2466 # Save into config.log some information that might help in debugging.
2470 $as_echo "## ---------------- ##
2471 ## Cache variables. ##
2472 ## ---------------- ##"
2474 # The following way of writing the cache mishandles newlines in values,
2476 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2477 eval ac_val=\$$ac_var
2481 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2482 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2485 _ | IFS | as_nl) ;; #(
2486 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2487 *) { eval $ac_var=; unset $ac_var;} ;;
2492 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2493 *${as_nl}ac_space=\ *)
2495 "s/'\''/'\''\\\\'\'''\''/g;
2496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2506 $as_echo "## ----------------- ##
2507 ## Output variables. ##
2508 ## ----------------- ##"
2510 for ac_var in $ac_subst_vars
2512 eval ac_val=\$$ac_var
2514 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2516 $as_echo "$ac_var='\''$ac_val'\''"
2520 if test -n "$ac_subst_files"; then
2521 $as_echo "## ------------------- ##
2522 ## File substitutions. ##
2523 ## ------------------- ##"
2525 for ac_var in $ac_subst_files
2527 eval ac_val=\$$ac_var
2529 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2531 $as_echo "$ac_var='\''$ac_val'\''"
2536 if test -s confdefs.h; then
2537 $as_echo "## ----------- ##
2544 test "$ac_signal" != 0 &&
2545 $as_echo "$as_me: caught signal $ac_signal"
2546 $as_echo "$as_me: exit $exit_status"
2548 rm -f core *.core core.conftest.* &&
2549 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2552 for ac_signal in 1 2 13 15; do
2553 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2557 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2558 rm -f -r conftest* confdefs.h
2560 $as_echo "/* confdefs.h */" > confdefs.h
2562 # Predefined preprocessor variables.
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_NAME "$PACKAGE_NAME"
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_STRING "$PACKAGE_STRING"
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_URL "$PACKAGE_URL"
2589 # Let the site file select an alternate cache file if it wants to.
2590 # Prefer an explicitly selected file to automatically selected ones.
2593 if test -n "$CONFIG_SITE"; then
2594 # We do not want a PATH search for config.site.
2595 case $CONFIG_SITE in #((
2596 -*) ac_site_file1=./$CONFIG_SITE;;
2597 */*) ac_site_file1=$CONFIG_SITE;;
2598 *) ac_site_file1=./$CONFIG_SITE;;
2600 elif test "x$prefix" != xNONE; then
2601 ac_site_file1=$prefix/share/config.site
2602 ac_site_file2=$prefix/etc/config.site
2604 ac_site_file1=$ac_default_prefix/share/config.site
2605 ac_site_file2=$ac_default_prefix/etc/config.site
2607 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2609 test "x$ac_site_file" = xNONE && continue
2610 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2612 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2613 sed 's/^/| /' "$ac_site_file" >&5
2615 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617 as_fn_error $? "failed to load site script $ac_site_file
2618 See \`config.log' for more details" "$LINENO" 5; }
2622 if test -r "$cache_file"; then
2623 # Some versions of bash will fail to source /dev/null (special files
2624 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2625 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2627 $as_echo "$as_me: loading cache $cache_file" >&6;}
2629 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2630 *) . "./$cache_file";;
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2635 $as_echo "$as_me: creating cache $cache_file" >&6;}
2639 gt_needs="$gt_needs "
2640 as_fn_append ac_header_list " stdlib.h"
2641 as_fn_append ac_header_list " unistd.h"
2642 as_fn_append ac_header_list " sys/param.h"
2643 as_fn_append ac_func_list " symlink"
2644 # Check that the precious variables saved in the cache have kept the same
2646 ac_cache_corrupted=false
2647 for ac_var in $ac_precious_vars; do
2648 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2649 eval ac_new_set=\$ac_env_${ac_var}_set
2650 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2651 eval ac_new_val=\$ac_env_${ac_var}_value
2652 case $ac_old_set,$ac_new_set in
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2655 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2656 ac_cache_corrupted=: ;;
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2659 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2660 ac_cache_corrupted=: ;;
2663 if test "x$ac_old_val" != "x$ac_new_val"; then
2664 # differences in whitespace do not lead to failure.
2665 ac_old_val_w=`echo x $ac_old_val`
2666 ac_new_val_w=`echo x $ac_new_val`
2667 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2669 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2670 ac_cache_corrupted=:
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2673 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2674 eval $ac_var=\$ac_old_val
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2677 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2679 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2682 # Pass precious variables to config.status.
2683 if test "$ac_new_set" = set; then
2685 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2686 *) ac_arg=$ac_var=$ac_new_val ;;
2688 case " $ac_configure_args " in
2689 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2690 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2694 if $ac_cache_corrupted; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2698 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2699 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2701 ## -------------------- ##
2702 ## Main body of script. ##
2703 ## -------------------- ##
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714 for ac_dir in config "$srcdir"/config; do
2715 if test -f "$ac_dir/install-sh"; then
2717 ac_install_sh="$ac_aux_dir/install-sh -c"
2719 elif test -f "$ac_dir/install.sh"; then
2721 ac_install_sh="$ac_aux_dir/install.sh -c"
2723 elif test -f "$ac_dir/shtool"; then
2725 ac_install_sh="$ac_aux_dir/shtool install -c"
2729 if test -z "$ac_aux_dir"; then
2730 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2733 # These three variables are undocumented and unsupported,
2734 # and are intended to be withdrawn in a future Autoconf release.
2735 # They can cause serious problems if a builder's source tree is in a directory
2736 # whose full name contains unusual characters.
2737 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2738 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2739 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2742 ac_config_headers="$ac_config_headers lib/config.h"
2748 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2749 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2750 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2752 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2753 MONTH=`echo $DATE | awk -F- '{print $2}'`
2754 YEAR=`echo $DATE | awk -F- '{print $3}'`
2756 if expr $YEAR ">" 1900 > /dev/null ; then
2757 E2FSPROGS_YEAR=$YEAR
2758 elif expr $YEAR ">" 90 >/dev/null ; then
2759 E2FSPROGS_YEAR=19$YEAR
2761 E2FSPROGS_YEAR=20$YEAR
2765 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2766 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2767 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2768 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2769 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2770 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2771 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2772 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2773 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2774 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2775 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2776 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2777 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2778 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2781 base_ver=`echo $E2FSPROGS_VERSION | \
2782 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2784 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2786 case $E2FSPROGS_VERSION in
2788 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2791 E2FSPROGS_PKGVER="$base_ver"
2795 unset DATE MONTH YEAR base_ver pre_vers date_spec
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2797 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2799 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2807 # Check whether --with-diet-libc was given.
2808 if test "${with_diet_libc+set}" = set; then :
2809 withval=$with_diet_libc; CC="diet cc -nostdinc"
2815 LIBS="$LIBS -lcompat"
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2818 $as_echo "CC=$CC" >&6; }
2820 # Make sure we can run config.sub.
2821 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2822 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2825 $as_echo_n "checking build system type... " >&6; }
2826 if ${ac_cv_build+:} false; then :
2827 $as_echo_n "(cached) " >&6
2829 ac_build_alias=$build_alias
2830 test "x$ac_build_alias" = x &&
2831 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2832 test "x$ac_build_alias" = x &&
2833 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2834 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2835 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2839 $as_echo "$ac_cv_build" >&6; }
2840 case $ac_cv_build in
2842 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2845 ac_save_IFS=$IFS; IFS='-'
2851 # Remember, the first character of IFS is used to create $*,
2852 # except with old shells:
2855 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2859 $as_echo_n "checking host system type... " >&6; }
2860 if ${ac_cv_host+:} false; then :
2861 $as_echo_n "(cached) " >&6
2863 if test "x$host_alias" = x; then
2864 ac_cv_host=$ac_cv_build
2866 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2867 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2872 $as_echo "$ac_cv_host" >&6; }
2875 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2878 ac_save_IFS=$IFS; IFS='-'
2884 # Remember, the first character of IFS is used to create $*,
2885 # except with old shells:
2888 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2893 ac_cpp='$CPP $CPPFLAGS'
2894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2897 if test -n "$ac_tool_prefix"; then
2898 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2899 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if ${ac_cv_prog_CC+:} false; then :
2903 $as_echo_n "(cached) " >&6
2905 if test -n "$CC"; then
2906 ac_cv_prog_CC="$CC" # Let the user override the test.
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 if test -n "$CC"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928 $as_echo "$CC" >&6; }
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2936 if test -z "$ac_cv_prog_CC"; then
2938 # Extract the first word of "gcc", so it can be a program name with args.
2939 set dummy gcc; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2943 $as_echo_n "(cached) " >&6
2945 if test -n "$ac_ct_CC"; then
2946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_ac_ct_CC="gcc"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2966 if test -n "$ac_ct_CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2968 $as_echo "$ac_ct_CC" >&6; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2974 if test "x$ac_ct_CC" = x; then
2977 case $cross_compiling:$ac_tool_warned in
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2981 ac_tool_warned=yes ;;
2989 if test -z "$CC"; then
2990 if test -n "$ac_tool_prefix"; then
2991 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2992 set dummy ${ac_tool_prefix}cc; ac_word=$2
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994 $as_echo_n "checking for $ac_word... " >&6; }
2995 if ${ac_cv_prog_CC+:} false; then :
2996 $as_echo_n "(cached) " >&6
2998 if test -n "$CC"; then
2999 ac_cv_prog_CC="$CC" # Let the user override the test.
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008 ac_cv_prog_CC="${ac_tool_prefix}cc"
3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 if test -n "$CC"; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021 $as_echo "$CC" >&6; }
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3030 if test -z "$CC"; then
3031 # Extract the first word of "cc", so it can be a program name with args.
3032 set dummy cc; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if ${ac_cv_prog_CC+:} false; then :
3036 $as_echo_n "(cached) " >&6
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3050 ac_prog_rejected=yes
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 if test $ac_prog_rejected = yes; then
3062 # We found a bogon in the path, so make sure we never use it.
3063 set dummy $ac_cv_prog_CC
3065 if test $# != 0; then
3066 # We chose a different compiler from the bogus one.
3067 # However, it has the same basename, so the bogon will be chosen
3068 # first if we set CC to just the basename; use the full file name.
3070 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3076 if test -n "$CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078 $as_echo "$CC" >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3086 if test -z "$CC"; then
3087 if test -n "$ac_tool_prefix"; then
3088 for ac_prog in cl.exe
3090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3091 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_CC+:} false; then :
3095 $as_echo_n "(cached) " >&6
3097 if test -n "$CC"; then
3098 ac_cv_prog_CC="$CC" # Let the user override the test.
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 if test -n "$CC"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3120 $as_echo "$CC" >&6; }
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3127 test -n "$CC" && break
3130 if test -z "$CC"; then
3132 for ac_prog in cl.exe
3134 # Extract the first word of "$ac_prog", so it can be a program name with args.
3135 set dummy $ac_prog; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3139 $as_echo_n "(cached) " >&6
3141 if test -n "$ac_ct_CC"; then
3142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151 ac_cv_prog_ac_ct_CC="$ac_prog"
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3162 if test -n "$ac_ct_CC"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3164 $as_echo "$ac_ct_CC" >&6; }
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3171 test -n "$ac_ct_CC" && break
3174 if test "x$ac_ct_CC" = x; then
3177 case $cross_compiling:$ac_tool_warned in
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3181 ac_tool_warned=yes ;;
3190 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error $? "no acceptable C compiler found in \$PATH
3193 See \`config.log' for more details" "$LINENO" 5; }
3195 # Provide some information about the compiler.
3196 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3199 for ac_option in --version -v -V -qversion; do
3200 { { ac_try="$ac_compiler $ac_option >&5"
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3209 if test -s conftest.err; then
3211 ... rest of stderr output deleted ...
3212 10q' conftest.err >conftest.er1
3213 cat conftest.er1 >&5
3215 rm -f conftest.er1 conftest.err
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3231 ac_clean_files_save=$ac_clean_files
3232 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3233 # Try to create an executable without -o first, disregard a.out.
3234 # It will help us diagnose broken compilers, and finding out an intuition
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3237 $as_echo_n "checking whether the C compiler works... " >&6; }
3238 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3240 # The possible output files:
3241 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3244 for ac_file in $ac_files
3247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3248 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3253 if { { ac_try="$ac_link_default"
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259 $as_echo "$ac_try_echo"; } >&5
3260 (eval "$ac_link_default") 2>&5
3262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3263 test $ac_status = 0; }; then :
3264 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3265 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3266 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3267 # so that the user can short-circuit this test for compilers unknown to
3269 for ac_file in $ac_files ''
3271 test -f "$ac_file" || continue
3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3276 # We found the default executable, but exeext='' is most
3280 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3282 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3284 # We set ac_cv_exeext here because the later test for it is not
3285 # safe: cross compilers may not add the suffix if given an `-o'
3286 # argument, so we may need to know it at that point already.
3287 # Even if this section looks crufty: it has the advantage of
3294 test "$ac_cv_exeext" = no && ac_cv_exeext=
3299 if test -z "$ac_file"; then :
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302 $as_echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error 77 "C compiler cannot create executables
3308 See \`config.log' for more details" "$LINENO" 5; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3314 $as_echo_n "checking for C compiler default output file name... " >&6; }
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3316 $as_echo "$ac_file" >&6; }
3317 ac_exeext=$ac_cv_exeext
3319 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3320 ac_clean_files=$ac_clean_files_save
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3322 $as_echo_n "checking for suffix of executables... " >&6; }
3323 if { { ac_try="$ac_link"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_link") 2>&5
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; then :
3334 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3335 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3336 # work properly (i.e., refer to `conftest.exe'), while it won't with
3338 for ac_file in conftest.exe conftest conftest.*; do
3339 test -f "$ac_file" || continue
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3342 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3351 See \`config.log' for more details" "$LINENO" 5; }
3353 rm -f conftest conftest$ac_cv_exeext
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3355 $as_echo "$ac_cv_exeext" >&6; }
3357 rm -f conftest.$ac_ext
3358 EXEEXT=$ac_cv_exeext
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3366 FILE *f = fopen ("conftest.out", "w");
3367 return ferror (f) || fclose (f) != 0;
3373 ac_clean_files="$ac_clean_files conftest.out"
3374 # Check that the compiler produces executables we can run. If not, either
3375 # the compiler is broken, or we cross compile.
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3377 $as_echo_n "checking whether we are cross compiling... " >&6; }
3378 if test "$cross_compiling" != yes; then
3379 { { ac_try="$ac_link"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 $as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_link") 2>&5
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }
3390 if { ac_try='./conftest$ac_cv_exeext'
3391 { { case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396 $as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_try") 2>&5
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }; }; then
3403 if test "$cross_compiling" = maybe; then
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $? "cannot run C compiled programs.
3409 If you meant to cross compile, use \`--host'.
3410 See \`config.log' for more details" "$LINENO" 5; }
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3415 $as_echo "$cross_compiling" >&6; }
3417 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3418 ac_clean_files=$ac_clean_files_save
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3420 $as_echo_n "checking for suffix of object files... " >&6; }
3421 if ${ac_cv_objext+:} false; then :
3422 $as_echo_n "(cached) " >&6
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3435 rm -f conftest.o conftest.obj
3436 if { { ac_try="$ac_compile"
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443 (eval "$ac_compile") 2>&5
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }; then :
3447 for ac_file in conftest.o conftest.obj conftest.*; do
3448 test -f "$ac_file" || continue;
3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3451 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3456 $as_echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461 as_fn_error $? "cannot compute suffix of object files: cannot compile
3462 See \`config.log' for more details" "$LINENO" 5; }
3464 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3467 $as_echo "$ac_cv_objext" >&6; }
3468 OBJEXT=$ac_cv_objext
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3471 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3472 if ${ac_cv_c_compiler_gnu+:} false; then :
3473 $as_echo_n "(cached) " >&6
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3489 if ac_fn_c_try_compile "$LINENO"; then :
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3499 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3500 if test $ac_compiler_gnu = yes; then
3505 ac_test_CFLAGS=${CFLAGS+set}
3506 ac_save_CFLAGS=$CFLAGS
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3508 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3509 if ${ac_cv_prog_cc_g+:} false; then :
3510 $as_echo_n "(cached) " >&6
3512 ac_save_c_werror_flag=$ac_c_werror_flag
3513 ac_c_werror_flag=yes
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3527 if ac_fn_c_try_compile "$LINENO"; then :
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3542 if ac_fn_c_try_compile "$LINENO"; then :
3545 ac_c_werror_flag=$ac_save_c_werror_flag
3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3558 if ac_fn_c_try_compile "$LINENO"; then :
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_c_werror_flag=$ac_save_c_werror_flag
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3569 $as_echo "$ac_cv_prog_cc_g" >&6; }
3570 if test "$ac_test_CFLAGS" = set; then
3571 CFLAGS=$ac_save_CFLAGS
3572 elif test $ac_cv_prog_cc_g = yes; then
3573 if test "$GCC" = yes; then
3579 if test "$GCC" = yes; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3586 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3587 if ${ac_cv_prog_cc_c89+:} false; then :
3588 $as_echo_n "(cached) " >&6
3590 ac_cv_prog_cc_c89=no
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3597 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3598 struct buf { int x; };
3599 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3600 static char *e (p, i)
3606 static char *f (char * (*g) (char **, int), char **p, ...)
3611 s = g (p, va_arg (v,int));
3616 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3617 function prototypes and stuff, but not '\xHH' hex character constants.
3618 These don't provoke an error unfortunately, instead are silently treated
3619 as 'x'. The following induces an error, until -std is added to get
3620 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3621 array size at least. It's necessary to write '\x00'==0 to get something
3622 that's true only with -std. */
3623 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3625 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3626 inside strings and character constants. */
3628 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3630 int test (int i, double x);
3631 struct s1 {int (*f) (int a);};
3632 struct s2 {int (*f) (double a);};
3633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3639 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3644 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3645 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3647 CC="$ac_save_CC $ac_arg"
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649 ac_cv_prog_cc_c89=$ac_arg
3651 rm -f core conftest.err conftest.$ac_objext
3652 test "x$ac_cv_prog_cc_c89" != "xno" && break
3654 rm -f conftest.$ac_ext
3659 case "x$ac_cv_prog_cc_c89" in
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3662 $as_echo "none needed" >&6; } ;;
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3665 $as_echo "unsupported" >&6; } ;;
3667 CC="$CC $ac_cv_prog_cc_c89"
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3669 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3671 if test "x$ac_cv_prog_cc_c89" != xno; then :
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3683 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3684 if ${ac_cv_lib_dl_dlopen+:} false; then :
3685 $as_echo_n "(cached) " >&6
3687 ac_check_lib_save_LIBS=$LIBS
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3692 /* Override any GCC internal prototype to avoid an error.
3693 Use char because int might match the return type of a GCC
3694 builtin and then its argument prototype would still apply. */
3707 if ac_fn_c_try_link "$LINENO"; then :
3708 ac_cv_lib_dl_dlopen=yes
3710 ac_cv_lib_dl_dlopen=no
3712 rm -f core conftest.err conftest.$ac_objext \
3713 conftest$ac_exeext conftest.$ac_ext
3714 LIBS=$ac_check_lib_save_LIBS
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3717 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3718 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3721 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3727 # Check whether --with-cc was given.
3728 if test "${with_cc+set}" = set; then :
3729 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3733 # Check whether --with-ccopts was given.
3734 if test "${with_ccopts+set}" = set; then :
3735 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3739 # Check whether --with-ldopts was given.
3740 if test "${with_ldopts+set}" = set; then :
3741 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3745 ac_cpp='$CPP $CPPFLAGS'
3746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749 if test -n "$ac_tool_prefix"; then
3750 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3751 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if ${ac_cv_prog_CC+:} false; then :
3755 $as_echo_n "(cached) " >&6
3757 if test -n "$CC"; then
3758 ac_cv_prog_CC="$CC" # Let the user override the test.
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 if test -n "$CC"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3780 $as_echo "$CC" >&6; }
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3788 if test -z "$ac_cv_prog_CC"; then
3790 # Extract the first word of "gcc", so it can be a program name with args.
3791 set dummy gcc; ac_word=$2
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 $as_echo_n "checking for $ac_word... " >&6; }
3794 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3795 $as_echo_n "(cached) " >&6
3797 if test -n "$ac_ct_CC"; then
3798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807 ac_cv_prog_ac_ct_CC="gcc"
3808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3818 if test -n "$ac_ct_CC"; then
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3820 $as_echo "$ac_ct_CC" >&6; }
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3826 if test "x$ac_ct_CC" = x; then
3829 case $cross_compiling:$ac_tool_warned in
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3833 ac_tool_warned=yes ;;
3841 if test -z "$CC"; then
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}cc; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if ${ac_cv_prog_CC+:} false; then :
3848 $as_echo_n "(cached) " >&6
3850 if test -n "$CC"; then
3851 ac_cv_prog_CC="$CC" # Let the user override the test.
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_CC="${ac_tool_prefix}cc"
3861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 if test -n "$CC"; then
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3873 $as_echo "$CC" >&6; }
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3882 if test -z "$CC"; then
3883 # Extract the first word of "cc", so it can be a program name with args.
3884 set dummy cc; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_CC+:} false; then :
3888 $as_echo_n "(cached) " >&6
3890 if test -n "$CC"; then
3891 ac_cv_prog_CC="$CC" # Let the user override the test.
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3902 ac_prog_rejected=yes
3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 if test $ac_prog_rejected = yes; then
3914 # We found a bogon in the path, so make sure we never use it.
3915 set dummy $ac_cv_prog_CC
3917 if test $# != 0; then
3918 # We chose a different compiler from the bogus one.
3919 # However, it has the same basename, so the bogon will be chosen
3920 # first if we set CC to just the basename; use the full file name.
3922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3928 if test -n "$CC"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3930 $as_echo "$CC" >&6; }
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3938 if test -z "$CC"; then
3939 if test -n "$ac_tool_prefix"; then
3940 for ac_prog in cl.exe
3942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945 $as_echo_n "checking for $ac_word... " >&6; }
3946 if ${ac_cv_prog_CC+:} false; then :
3947 $as_echo_n "(cached) " >&6
3949 if test -n "$CC"; then
3950 ac_cv_prog_CC="$CC" # Let the user override the test.
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 if test -n "$CC"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3972 $as_echo "$CC" >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3979 test -n "$CC" && break
3982 if test -z "$CC"; then
3984 for ac_prog in cl.exe
3986 # Extract the first word of "$ac_prog", so it can be a program name with args.
3987 set dummy $ac_prog; ac_word=$2
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989 $as_echo_n "checking for $ac_word... " >&6; }
3990 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3991 $as_echo_n "(cached) " >&6
3993 if test -n "$ac_ct_CC"; then
3994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_ac_ct_CC="$ac_prog"
4004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4014 if test -n "$ac_ct_CC"; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4016 $as_echo "$ac_ct_CC" >&6; }
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 $as_echo "no" >&6; }
4023 test -n "$ac_ct_CC" && break
4026 if test "x$ac_ct_CC" = x; then
4029 case $cross_compiling:$ac_tool_warned in
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4033 ac_tool_warned=yes ;;
4042 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4044 as_fn_error $? "no acceptable C compiler found in \$PATH
4045 See \`config.log' for more details" "$LINENO" 5; }
4047 # Provide some information about the compiler.
4048 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4051 for ac_option in --version -v -V -qversion; do
4052 { { ac_try="$ac_compiler $ac_option >&5"
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4058 $as_echo "$ac_try_echo"; } >&5
4059 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4061 if test -s conftest.err; then
4063 ... rest of stderr output deleted ...
4064 10q' conftest.err >conftest.er1
4065 cat conftest.er1 >&5
4067 rm -f conftest.er1 conftest.err
4068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4069 test $ac_status = 0; }
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4073 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4074 if ${ac_cv_c_compiler_gnu+:} false; then :
4075 $as_echo_n "(cached) " >&6
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4091 if ac_fn_c_try_compile "$LINENO"; then :
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4101 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4102 if test $ac_compiler_gnu = yes; then
4107 ac_test_CFLAGS=${CFLAGS+set}
4108 ac_save_CFLAGS=$CFLAGS
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4110 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4111 if ${ac_cv_prog_cc_g+:} false; then :
4112 $as_echo_n "(cached) " >&6
4114 ac_save_c_werror_flag=$ac_c_werror_flag
4115 ac_c_werror_flag=yes
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4129 if ac_fn_c_try_compile "$LINENO"; then :
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4144 if ac_fn_c_try_compile "$LINENO"; then :
4147 ac_c_werror_flag=$ac_save_c_werror_flag
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4160 if ac_fn_c_try_compile "$LINENO"; then :
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168 ac_c_werror_flag=$ac_save_c_werror_flag
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4171 $as_echo "$ac_cv_prog_cc_g" >&6; }
4172 if test "$ac_test_CFLAGS" = set; then
4173 CFLAGS=$ac_save_CFLAGS
4174 elif test $ac_cv_prog_cc_g = yes; then
4175 if test "$GCC" = yes; then
4181 if test "$GCC" = yes; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4188 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4189 if ${ac_cv_prog_cc_c89+:} false; then :
4190 $as_echo_n "(cached) " >&6
4192 ac_cv_prog_cc_c89=no
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4199 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4200 struct buf { int x; };
4201 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4202 static char *e (p, i)
4208 static char *f (char * (*g) (char **, int), char **p, ...)
4213 s = g (p, va_arg (v,int));
4218 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4219 function prototypes and stuff, but not '\xHH' hex character constants.
4220 These don't provoke an error unfortunately, instead are silently treated
4221 as 'x'. The following induces an error, until -std is added to get
4222 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4223 array size at least. It's necessary to write '\x00'==0 to get something
4224 that's true only with -std. */
4225 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4227 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4228 inside strings and character constants. */
4230 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4232 int test (int i, double x);
4233 struct s1 {int (*f) (int a);};
4234 struct s2 {int (*f) (double a);};
4235 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4241 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4246 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4247 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4249 CC="$ac_save_CC $ac_arg"
4250 if ac_fn_c_try_compile "$LINENO"; then :
4251 ac_cv_prog_cc_c89=$ac_arg
4253 rm -f core conftest.err conftest.$ac_objext
4254 test "x$ac_cv_prog_cc_c89" != "xno" && break
4256 rm -f conftest.$ac_ext
4261 case "x$ac_cv_prog_cc_c89" in
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4264 $as_echo "none needed" >&6; } ;;
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4267 $as_echo "unsupported" >&6; } ;;
4269 CC="$CC $ac_cv_prog_cc_c89"
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4271 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4273 if test "x$ac_cv_prog_cc_c89" != xno; then :
4278 ac_cpp='$CPP $CPPFLAGS'
4279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283 if test "$GCC" = yes; then
4284 RDYNAMIC="-rdynamic"
4288 ac_cpp='$CPP $CPPFLAGS'
4289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4293 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4294 # On Suns, sometimes $CPP names a directory.
4295 if test -n "$CPP" && test -d "$CPP"; then
4298 if test -z "$CPP"; then
4299 if ${ac_cv_prog_CPP+:} false; then :
4300 $as_echo_n "(cached) " >&6
4302 # Double quotes because CPP needs to be expanded
4303 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4306 for ac_c_preproc_warn_flag in '' yes
4308 # Use a header file that comes with gcc, so configuring glibc
4309 # with a fresh cross-compiler works.
4310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4311 # <limits.h> exists even on freestanding compilers.
4312 # On the NeXT, cc -E runs the code through the compiler's parser,
4313 # not just through cpp. "Syntax error" is here to catch this case.
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4317 # include <limits.h>
4319 # include <assert.h>
4323 if ac_fn_c_try_cpp "$LINENO"; then :
4326 # Broken: fails on valid input.
4329 rm -f conftest.err conftest.i conftest.$ac_ext
4331 # OK, works on sane cases. Now check whether nonexistent headers
4332 # can be detected and how.
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335 #include <ac_nonexistent.h>
4337 if ac_fn_c_try_cpp "$LINENO"; then :
4338 # Broken: success on invalid input.
4341 # Passes both tests.
4345 rm -f conftest.err conftest.i conftest.$ac_ext
4348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4349 rm -f conftest.i conftest.err conftest.$ac_ext
4350 if $ac_preproc_ok; then :
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4363 $as_echo "$CPP" >&6; }
4365 for ac_c_preproc_warn_flag in '' yes
4367 # Use a header file that comes with gcc, so configuring glibc
4368 # with a fresh cross-compiler works.
4369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4370 # <limits.h> exists even on freestanding compilers.
4371 # On the NeXT, cc -E runs the code through the compiler's parser,
4372 # not just through cpp. "Syntax error" is here to catch this case.
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4376 # include <limits.h>
4378 # include <assert.h>
4382 if ac_fn_c_try_cpp "$LINENO"; then :
4385 # Broken: fails on valid input.
4388 rm -f conftest.err conftest.i conftest.$ac_ext
4390 # OK, works on sane cases. Now check whether nonexistent headers
4391 # can be detected and how.
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #include <ac_nonexistent.h>
4396 if ac_fn_c_try_cpp "$LINENO"; then :
4397 # Broken: success on invalid input.
4400 # Passes both tests.
4404 rm -f conftest.err conftest.i conftest.$ac_ext
4407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4408 rm -f conftest.i conftest.err conftest.$ac_ext
4409 if $ac_preproc_ok; then :
4412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4414 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4415 See \`config.log' for more details" "$LINENO" 5; }
4419 ac_cpp='$CPP $CPPFLAGS'
4420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4425 $as_echo_n "checking for additional special compiler flags... " >&6; }
4426 if test "$GCC" = yes
4429 alpha) addcflags="-mieee" ;;
4432 if test "x$addcflags" != x
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4435 $as_echo "$addcflags" >&6; }
4436 CFLAGS="$addcflags $CFLAGS"
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4439 $as_echo "(none)" >&6; }
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4443 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4444 if ${ac_cv_path_GREP+:} false; then :
4445 $as_echo_n "(cached) " >&6
4447 if test -z "$GREP"; then
4448 ac_path_GREP_found=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4454 test -z "$as_dir" && as_dir=.
4455 for ac_prog in grep ggrep; do
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4458 as_fn_executable_p "$ac_path_GREP" || continue
4459 # Check for GNU ac_path_GREP and select it if it is found.
4460 # Check for GNU $ac_path_GREP
4461 case `"$ac_path_GREP" --version 2>&1` in
4463 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4466 $as_echo_n 0123456789 >"conftest.in"
4469 cat "conftest.in" "conftest.in" >"conftest.tmp"
4470 mv "conftest.tmp" "conftest.in"
4471 cp "conftest.in" "conftest.nl"
4472 $as_echo 'GREP' >> "conftest.nl"
4473 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475 as_fn_arith $ac_count + 1 && ac_count=$as_val
4476 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_GREP="$ac_path_GREP"
4479 ac_path_GREP_max=$ac_count
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4487 $ac_path_GREP_found && break 3
4492 if test -z "$ac_cv_path_GREP"; then
4493 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4496 ac_cv_path_GREP=$GREP
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4501 $as_echo "$ac_cv_path_GREP" >&6; }
4502 GREP="$ac_cv_path_GREP"
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4506 $as_echo_n "checking for egrep... " >&6; }
4507 if ${ac_cv_path_EGREP+:} false; then :
4508 $as_echo_n "(cached) " >&6
4510 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4511 then ac_cv_path_EGREP="$GREP -E"
4513 if test -z "$EGREP"; then
4514 ac_path_EGREP_found=false
4515 # Loop through the user's path and test for each of PROGNAME-LIST
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4520 test -z "$as_dir" && as_dir=.
4521 for ac_prog in egrep; do
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4524 as_fn_executable_p "$ac_path_EGREP" || continue
4525 # Check for GNU ac_path_EGREP and select it if it is found.
4526 # Check for GNU $ac_path_EGREP
4527 case `"$ac_path_EGREP" --version 2>&1` in
4529 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4532 $as_echo_n 0123456789 >"conftest.in"
4535 cat "conftest.in" "conftest.in" >"conftest.tmp"
4536 mv "conftest.tmp" "conftest.in"
4537 cp "conftest.in" "conftest.nl"
4538 $as_echo 'EGREP' >> "conftest.nl"
4539 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4540 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4541 as_fn_arith $ac_count + 1 && ac_count=$as_val
4542 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4543 # Best one so far, save it but keep looking for a better one
4544 ac_cv_path_EGREP="$ac_path_EGREP"
4545 ac_path_EGREP_max=$ac_count
4547 # 10*(2^10) chars as input seems more than enough
4548 test $ac_count -gt 10 && break
4550 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4553 $ac_path_EGREP_found && break 3
4558 if test -z "$ac_cv_path_EGREP"; then
4559 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4562 ac_cv_path_EGREP=$EGREP
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4568 $as_echo "$ac_cv_path_EGREP" >&6; }
4569 EGREP="$ac_cv_path_EGREP"
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4573 $as_echo_n "checking for ANSI C header files... " >&6; }
4574 if ${ac_cv_header_stdc+:} false; then :
4575 $as_echo_n "(cached) " >&6
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4592 if ac_fn_c_try_compile "$LINENO"; then :
4593 ac_cv_header_stdc=yes
4595 ac_cv_header_stdc=no
4597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 if test $ac_cv_header_stdc = yes; then
4600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4607 $EGREP "memchr" >/dev/null 2>&1; then :
4610 ac_cv_header_stdc=no
4616 if test $ac_cv_header_stdc = yes; then
4617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4624 $EGREP "free" >/dev/null 2>&1; then :
4627 ac_cv_header_stdc=no
4633 if test $ac_cv_header_stdc = yes; then
4634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4635 if test "$cross_compiling" = yes; then :
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4642 #if ((' ' & 0x0FF) == 0x020)
4643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4646 # define ISLOWER(c) \
4647 (('a' <= (c) && (c) <= 'i') \
4648 || ('j' <= (c) && (c) <= 'r') \
4649 || ('s' <= (c) && (c) <= 'z'))
4650 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4658 for (i = 0; i < 256; i++)
4659 if (XOR (islower (i), ISLOWER (i))
4660 || toupper (i) != TOUPPER (i))
4665 if ac_fn_c_try_run "$LINENO"; then :
4668 ac_cv_header_stdc=no
4670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4671 conftest.$ac_objext conftest.beam conftest.$ac_ext
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4677 $as_echo "$ac_cv_header_stdc" >&6; }
4678 if test $ac_cv_header_stdc = yes; then
4680 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4684 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4685 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4686 inttypes.h stdint.h unistd.h
4688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4689 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4692 cat >>confdefs.h <<_ACEOF
4693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4702 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4703 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4710 if test "$MINIX" = yes; then
4712 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4715 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4718 $as_echo "#define _MINIX 1" >>confdefs.h
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4724 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4725 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4726 $as_echo_n "(cached) " >&6
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4731 # define __EXTENSIONS__ 1
4732 $ac_includes_default
4741 if ac_fn_c_try_compile "$LINENO"; then :
4742 ac_cv_safe_to_define___extensions__=yes
4744 ac_cv_safe_to_define___extensions__=no
4746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4749 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4750 test $ac_cv_safe_to_define___extensions__ = yes &&
4751 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4753 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4755 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4757 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4759 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4766 # Check whether --with-root-prefix was given.
4767 if test "${with_root_prefix+set}" = set; then :
4768 withval=$with_root_prefix; root_prefix=$withval
4772 # Check whether --enable-maintainer-mode was given.
4773 if test "${enable_maintainer_mode+set}" = set; then :
4774 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4778 $as_echo "Disabling maintainer mode" >&6; }
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4782 $as_echo "Enabling maintainer mode" >&6; }
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4788 $as_echo "Disabling maintainer mode by default" >&6; }
4793 # Check whether --enable-symlink-install was given.
4794 if test "${enable_symlink_install+set}" = set; then :
4795 enableval=$enable_symlink_install; if test "$enableval" = "no"
4797 LINK_INSTALL_FLAGS=-f
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4799 $as_echo "Disabling symlinks for install" >&6; }
4801 LINK_INSTALL_FLAGS=-sf
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4803 $as_echo "Enabling symlinks for install" >&6; }
4807 LINK_INSTALL_FLAGS=-f
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4809 $as_echo "Disabling symlinks for install by default" >&6; }
4814 relative_symlink_defined=
4815 # Check whether --enable-relative-symlinks was given.
4816 if test "${enable_relative_symlinks+set}" = set; then :
4817 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4820 relative_symlink_defined=yes
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4822 $as_echo "Disabling relative symlinks for install" >&6; }
4824 SYMLINK_RELATIVE=--relative
4825 relative_symlink_defined=yes
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4827 $as_echo "Enabling relative symlinks for install" >&6; }
4831 # Check whether --enable-symlink-relative-symlinks was given.
4832 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4833 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4835 SYMLINK_RELATIVE=yes
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4837 $as_echo "Disabling relative symlinks for install" >&6; }
4839 SYMLINK_RELATIVE=--relative
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4841 $as_echo "Enabling relative symlinks for install" >&6; }
4845 if test -z "$relative_symlink_defined"
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4849 $as_echo "Disabling relative symlinks for install by default" >&6; }
4855 # Check whether --enable-symlink-build was given.
4856 if test "${enable_symlink_build+set}" = set; then :
4857 enableval=$enable_symlink_build; if test "$enableval" = "no"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4861 $as_echo "Disabling symlinks for build" >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4865 $as_echo "Enabling symlinks for build" >&6; }
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4871 $as_echo "Disabling symlinks for build by default" >&6; }
4876 # Check whether --enable-verbose-makecmds was given.
4877 if test "${enable_verbose_makecmds+set}" = set; then :
4878 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4881 $as_echo "Disabling verbose make commands" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4887 $as_echo "Enabling verbose make commands" >&6; }
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4895 $as_echo "Disabling verbose make commands" >&6; }
4905 # Check whether --enable-compression was given.
4906 if test "${enable_compression+set}" = set; then :
4907 enableval=$enable_compression; if test "$enableval" = "no"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4910 $as_echo "Disabling compression support" >&6; }
4913 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4916 $as_echo "Enabling compression support" >&6; }
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4918 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4923 $as_echo "Disabling compression support by default" >&6; }
4928 # Check whether --enable-htree was given.
4929 if test "${enable_htree+set}" = set; then :
4930 enableval=$enable_htree; if test "$enableval" = "no"
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4934 $as_echo "Disabling htree directory support" >&6; }
4937 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4940 $as_echo "Enabling htree directory support" >&6; }
4945 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4948 $as_echo "Enabling htree directory support by default" >&6; }
4953 E2_PKG_CONFIG_STATIC=--static
4956 # Check whether --enable-elf-shlibs was given.
4957 if test "${enable_elf_shlibs+set}" = set; then :
4958 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4961 MAKEFILE_ELF=/dev/null
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4963 $as_echo "Disabling ELF shared libraries" >&6; }
4965 E2_PKG_CONFIG_STATIC=
4967 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4970 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4976 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4978 $as_echo "Enabling ELF shared libraries" >&6; }
4982 MAKEFILE_ELF=/dev/null
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4985 $as_echo "Disabling ELF shared libraries by default" >&6; }
4991 # Check whether --enable-bsd-shlibs was given.
4992 if test "${enable_bsd_shlibs+set}" = set; then :
4993 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4996 MAKEFILE_BSDLIB=/dev/null
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4998 $as_echo "Disabling BSD shared libraries" >&6; }
5000 E2_PKG_CONFIG_STATIC=
5002 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5006 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5011 $as_echo "Enabling BSD shared libraries" >&6; }
5015 MAKEFILE_BSDLIB=/dev/null
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5018 $as_echo "Disabling BSD shared libraries by default" >&6; }
5024 # Check whether --enable-profile was given.
5025 if test "${enable_profile+set}" = set; then :
5026 enableval=$enable_profile; if test "$enableval" = "no"
5029 MAKEFILE_PROFILE=/dev/null
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5031 $as_echo "Disabling profiling libraries" >&6; }
5034 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5035 PROFILED_LIB_EXT=_p.a
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5037 $as_echo "Building profiling libraries" >&6; }
5042 MAKEFILE_PROFILE=/dev/null
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5044 $as_echo "Disabling profiling libraries by default" >&6; }
5050 # Check whether --enable-gcov was given.
5051 if test "${enable_gcov+set}" = set; then :
5052 enableval=$enable_gcov; if test "$enableval" = "yes"
5054 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5055 LDFLAGS="-fprofile-arcs -ftest-coverage"
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5057 $as_echo "Enabling gcov support" >&6; }
5068 # Check whether --enable-jbd-debug was given.
5069 if test "${enable_jbd_debug+set}" = set; then :
5070 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5073 $as_echo "Disabling journal debugging" >&6; }
5076 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5079 $as_echo "Enabling journal debugging" >&6; }
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5084 $as_echo "Disabling journal debugging by default" >&6; }
5088 # Check whether --enable-blkid-debug was given.
5089 if test "${enable_blkid_debug+set}" = set; then :
5090 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5093 $as_echo "Disabling blkid debugging" >&6; }
5096 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5099 $as_echo "Enabling blkid debugging" >&6; }
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5104 $as_echo "Disabling blkid debugging by default" >&6; }
5108 # Check whether --enable-testio-debug was given.
5109 if test "${enable_testio_debug+set}" = set; then :
5110 enableval=$enable_testio_debug;
5111 if test "$enableval" = "no"
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5114 $as_echo "Disabling testio debugging" >&6; }
5118 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5121 $as_echo "Enabling testio debugging" >&6; }
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5126 $as_echo "Enabling testio debugging by default" >&6; }
5127 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5141 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5142 if test -n "$ac_tool_prefix"; then
5143 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5144 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5148 $as_echo_n "(cached) " >&6
5152 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5174 if test -n "$PKG_CONFIG"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5176 $as_echo "$PKG_CONFIG" >&6; }
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5184 if test -z "$ac_cv_path_PKG_CONFIG"; then
5185 ac_pt_PKG_CONFIG=$PKG_CONFIG
5186 # Extract the first word of "pkg-config", so it can be a program name with args.
5187 set dummy pkg-config; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5191 $as_echo_n "(cached) " >&6
5193 case $ac_pt_PKG_CONFIG in
5195 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5217 if test -n "$ac_pt_PKG_CONFIG"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5219 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5225 if test "x$ac_pt_PKG_CONFIG" = x; then
5228 case $cross_compiling:$ac_tool_warned in
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232 ac_tool_warned=yes ;;
5234 PKG_CONFIG=$ac_pt_PKG_CONFIG
5237 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5241 if test -n "$PKG_CONFIG"; then
5242 _pkg_min_version=0.9.0
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5244 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5245 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5247 $as_echo "yes" >&6; }
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5259 DEPPROFILED_LIBUUID=
5261 # Check whether --enable-libuuid was given.
5262 if test "${enable_libuuid+set}" = set; then :
5263 enableval=$enable_libuuid; if test "$enableval" = "no"
5265 if test -z "$PKG_CONFIG"; then
5266 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5270 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5271 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5272 $as_echo_n "(cached) " >&6
5274 ac_check_lib_save_LIBS=$LIBS
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5279 /* Override any GCC internal prototype to avoid an error.
5280 Use char because int might match the return type of a GCC
5281 builtin and then its argument prototype would still apply. */
5285 char uuid_generate ();
5289 return uuid_generate ();
5294 if ac_fn_c_try_link "$LINENO"; then :
5295 ac_cv_lib_uuid_uuid_generate=yes
5297 ac_cv_lib_uuid_uuid_generate=no
5299 rm -f core conftest.err conftest.$ac_objext \
5300 conftest$ac_exeext conftest.$ac_ext
5301 LIBS=$ac_check_lib_save_LIBS
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5304 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5305 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5306 LIBUUID=`$PKG_CONFIG --libs uuid`;
5307 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5309 as_fn_error $? "external uuid library not found" "$LINENO" 5
5312 PROFILED_LIBUUID=$LIBUUID
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5315 $as_echo "Disabling private uuid library" >&6; }
5317 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5319 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5320 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5321 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5322 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5324 $as_echo "Enabling private uuid library" >&6; }
5328 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5330 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5331 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5332 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5333 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5335 $as_echo "Enabling private uuid library by default" >&6; }
5353 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5354 if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5360 $as_echo_n "(cached) " >&6
5364 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5386 if test -n "$PKG_CONFIG"; then
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5388 $as_echo "$PKG_CONFIG" >&6; }
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5396 if test -z "$ac_cv_path_PKG_CONFIG"; then
5397 ac_pt_PKG_CONFIG=$PKG_CONFIG
5398 # Extract the first word of "pkg-config", so it can be a program name with args.
5399 set dummy pkg-config; ac_word=$2
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5403 $as_echo_n "(cached) " >&6
5405 case $ac_pt_PKG_CONFIG in
5407 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5429 if test -n "$ac_pt_PKG_CONFIG"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5431 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5437 if test "x$ac_pt_PKG_CONFIG" = x; then
5440 case $cross_compiling:$ac_tool_warned in
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5444 ac_tool_warned=yes ;;
5446 PKG_CONFIG=$ac_pt_PKG_CONFIG
5449 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5453 if test -n "$PKG_CONFIG"; then
5454 _pkg_min_version=0.9.0
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5456 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5457 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5459 $as_echo "yes" >&6; }
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5471 DEPPROFILED_LIBBLKID=
5474 # Check whether --enable-libblkid was given.
5475 if test "${enable_libblkid+set}" = set; then :
5476 enableval=$enable_libblkid; if test "$enableval" = "no"
5478 if test -z "$PKG_CONFIG"; then
5479 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5483 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5484 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5485 $as_echo_n "(cached) " >&6
5487 ac_check_lib_save_LIBS=$LIBS
5488 LIBS="-lblkid -luuid $LIBS"
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h. */
5492 /* Override any GCC internal prototype to avoid an error.
5493 Use char because int might match the return type of a GCC
5494 builtin and then its argument prototype would still apply. */
5498 char blkid_get_cache ();
5502 return blkid_get_cache ();
5507 if ac_fn_c_try_link "$LINENO"; then :
5508 ac_cv_lib_blkid_blkid_get_cache=yes
5510 ac_cv_lib_blkid_blkid_get_cache=no
5512 rm -f core conftest.err conftest.$ac_objext \
5513 conftest$ac_exeext conftest.$ac_ext
5514 LIBS=$ac_check_lib_save_LIBS
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5517 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5518 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5519 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5520 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5522 as_fn_error $? "external blkid library not found" "$LINENO" 5
5526 PROFILED_LIBBLKID=$LIBBLKID
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5528 $as_echo "Disabling private blkid library" >&6; }
5530 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5531 DEPLIBBLKID=$LIBBLKID
5532 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5533 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5534 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5535 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5536 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5539 $as_echo "Enabling private blkid library" >&6; }
5543 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5544 DEPLIBBLKID=$LIBBLKID
5545 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5546 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5547 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5548 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5549 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5552 $as_echo "Enabling private blkid library by default" >&6; }
5563 QUOTA_MAN_COMMENT='.\"'
5573 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5574 if test -n "$ac_tool_prefix"; then
5575 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5576 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5580 $as_echo_n "(cached) " >&6
5584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5606 if test -n "$PKG_CONFIG"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5608 $as_echo "$PKG_CONFIG" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5616 if test -z "$ac_cv_path_PKG_CONFIG"; then
5617 ac_pt_PKG_CONFIG=$PKG_CONFIG
5618 # Extract the first word of "pkg-config", so it can be a program name with args.
5619 set dummy pkg-config; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5623 $as_echo_n "(cached) " >&6
5625 case $ac_pt_PKG_CONFIG in
5627 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5649 if test -n "$ac_pt_PKG_CONFIG"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5651 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5657 if test "x$ac_pt_PKG_CONFIG" = x; then
5660 case $cross_compiling:$ac_tool_warned in
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5664 ac_tool_warned=yes ;;
5666 PKG_CONFIG=$ac_pt_PKG_CONFIG
5669 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5673 if test -n "$PKG_CONFIG"; then
5674 _pkg_min_version=0.9.0
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5676 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5677 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5679 $as_echo "yes" >&6; }
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5687 # Check whether --enable-quota was given.
5688 if test "${enable_quota+set}" = set; then :
5689 enableval=$enable_quota; if test "$enableval" = "no"
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5693 $as_echo "Disabling quota support" >&6; }
5696 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5699 $as_echo "Enabling quota support" >&6; }
5700 QUOTA_MAN_COMMENT=""
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5707 $as_echo "Disabling quota support by default" >&6; }
5711 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5712 DEPLIBQUOTA=$LIBQUOTA
5713 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5714 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5715 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5716 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5725 # Check whether --enable-backtrace was given.
5726 if test "${enable_backtrace+set}" = set; then :
5727 enableval=$enable_backtrace; if test "$enableval" = "no"
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5730 $as_echo "Disabling use of backtrace" >&6; }
5731 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5735 $as_echo "Enabling use of backtrace" >&6; }
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5740 $as_echo "Enabling use of backtrace by default" >&6; }
5744 # Check whether --enable-debugfs was given.
5745 if test "${enable_debugfs+set}" = set; then :
5746 enableval=$enable_debugfs; if test "$enableval" = "no"
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5749 $as_echo "Disabling debugfs support" >&6; }
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5754 $as_echo "Enabling debugfs support" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5759 $as_echo "Enabling debugfs support by default" >&6; }
5765 # Check whether --enable-imager was given.
5766 if test "${enable_imager+set}" = set; then :
5767 enableval=$enable_imager; if test "$enableval" = "no"
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5770 $as_echo "Disabling e2image support" >&6; }
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5775 $as_echo "Enabling e2image support" >&6; }
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5780 $as_echo "Enabling e2image support by default" >&6; }
5786 # Check whether --enable-resizer was given.
5787 if test "${enable_resizer+set}" = set; then :
5788 enableval=$enable_resizer; if test "$enableval" = "no"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5791 $as_echo "Disabling e2resize support" >&6; }
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5796 $as_echo "Enabling e2resize support" >&6; }
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5801 $as_echo "Enabling e2resize support by default" >&6; }
5807 # Check whether --enable-defrag was given.
5808 if test "${enable_defrag+set}" = set; then :
5809 enableval=$enable_defrag; if test "$enableval" = "no"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5812 $as_echo "Disabling e4defrag support" >&6; }
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5817 $as_echo "Enabling e4defrag support" >&6; }
5821 if test -z "$WITH_DIET_LIBC"
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5824 $as_echo "Enabling e4defrag support by default" >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5828 $as_echo "Disabling e4defrag support by default" >&6; }
5835 # Check whether --enable-fsck was given.
5836 if test "${enable_fsck+set}" = set; then :
5837 enableval=$enable_fsck; if test "$enableval" = "no"
5839 FSCK_PROG='' FSCK_MAN=''
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5841 $as_echo "Not building fsck wrapper" >&6; }
5843 FSCK_PROG=fsck FSCK_MAN=fsck.8
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5845 $as_echo "Building fsck wrapper" >&6; }
5851 FSCK_PROG='' FSCK_MAN=''
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5853 $as_echo "Not building fsck wrapper by default" >&6; }
5856 FSCK_PROG=fsck FSCK_MAN=fsck.8
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5858 $as_echo "Building fsck wrapper by default" >&6; }
5865 # Check whether --enable-e2initrd-helper was given.
5866 if test "${enable_e2initrd_helper+set}" = set; then :
5867 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5869 E2INITRD_PROG='' E2INITRD_MAN=''
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5871 $as_echo "Not building e2initrd helper" >&6; }
5873 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5875 $as_echo "Building e2initrd helper" >&6; }
5879 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5881 $as_echo "Building e2initrd helper by default" >&6; }
5887 # Check whether --enable-tls was given.
5888 if test "${enable_tls+set}" = set; then :
5889 enableval=$enable_tls; if test "$enableval" = "no"
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5893 $as_echo "Disabling thread local support" >&6; }
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5897 $as_echo "Enabling thread local support" >&6; }
5901 if test -n "$WITH_DIET_LIBC"
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5905 $as_echo "Diet libc does not support thread local support" >&6; }
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5909 $as_echo "Try using thread local support by default" >&6; }
5914 if test "$try_tls" = "yes"
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5918 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5919 if ${ac_cv_tls+:} false; then :
5920 $as_echo_n "(cached) " >&6
5923 ax_tls_keywords="__thread __declspec(thread) none"
5924 for ax_tls_keyword in $ax_tls_keywords; do
5925 case $ax_tls_keyword in
5926 none) ac_cv_tls=none ; break ;;
5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929 /* end confdefs.h. */
5933 static $ax_tls_keyword int bar;
5944 if ac_fn_c_try_compile "$LINENO"; then :
5945 ac_cv_tls=$ax_tls_keyword ; break
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957 if test "$ac_cv_tls" != "none"; then
5959 cat >>confdefs.h <<_ACEOF
5960 #define TLS $ac_cv_tls
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5965 $as_echo "$ac_cv_tls" >&6; }
5969 # Check whether --enable-uuidd was given.
5970 if test "${enable_uuidd+set}" = set; then :
5971 enableval=$enable_uuidd; if test "$enableval" = "no"
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5974 $as_echo "Not building uuidd" >&6; }
5977 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5981 $as_echo "Building uuidd" >&6; }
5985 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5987 if test -z "$UUID_CMT"
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5991 $as_echo "Building uuidd by default" >&6; }
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5995 $as_echo "Disabling uuidd by default" >&6; }
6002 # Check whether --enable-mmp was given.
6003 if test "${enable_mmp+set}" = set; then :
6004 enableval=$enable_mmp; if test "$enableval" = "no"
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6007 $as_echo "Disabling mmp support" >&6; }
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6010 $as_echo "Enabling mmp support" >&6; }
6011 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6017 $as_echo "Enabling mmp support by default" >&6; }
6018 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6024 # Check whether --enable-bmap-stats was given.
6025 if test "${enable_bmap_stats+set}" = set; then :
6026 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6029 $as_echo "Disabling bitmap statistics support" >&6; }
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6032 $as_echo "Enabling bitmap statistics support" >&6; }
6033 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6039 $as_echo "Enabling bitmap statistics support by default" >&6; }
6040 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6046 # Check whether --enable-bmap-stats-ops was given.
6047 if test "${enable_bmap_stats_ops+set}" = set; then :
6048 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6051 $as_echo "Disabling additional bitmap statistics" >&6; }
6053 if test "x${enable_bmap_stats}" = "xno"; then :
6054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6056 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6057 See \`config.log' for more details" "$LINENO" 5; }
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6061 $as_echo "Enabling additional bitmap statistics" >&6; }
6062 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6068 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6072 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6074 GETTEXT_PACKAGE=e2fsprogs
6076 VERSION="$E2FSPROGS_VERSION"
6079 cat >>confdefs.h <<_ACEOF
6080 #define PACKAGE "$PACKAGE"
6084 cat >>confdefs.h <<_ACEOF
6085 #define VERSION "$VERSION"
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6093 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6095 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6096 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6097 $as_echo_n "(cached) " >&6
6099 cat >conftest.make <<\_ACEOF
6102 @echo '@@@%%%=$(MAKE)=@@@%%%'
6104 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6105 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6107 eval ac_cv_prog_make_${ac_make}_set=yes;;
6109 eval ac_cv_prog_make_${ac_make}_set=no;;
6113 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6115 $as_echo "yes" >&6; }
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6120 SET_MAKE="MAKE=${MAKE-make}"
6123 # Find a good install program. We prefer a C program (faster),
6124 # so one script is as good as another. But avoid the broken or
6125 # incompatible versions:
6126 # SysV /etc/install, /usr/sbin/install
6127 # SunOS /usr/etc/install
6128 # IRIX /sbin/install
6130 # AmigaOS /C/install, which installs bootblocks on floppy discs
6131 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6132 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6133 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6134 # OS/2's system install, which has a completely different semantic
6135 # ./install, which can be erroneously created by make from ./install.sh.
6136 # Reject install programs that cannot install multiple files.
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6138 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6139 if test -z "$INSTALL"; then
6140 if ${ac_cv_path_install+:} false; then :
6141 $as_echo_n "(cached) " >&6
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 test -z "$as_dir" && as_dir=.
6148 # Account for people who put trailing slashes in PATH elements.
6149 case $as_dir/ in #((
6150 ./ | .// | /[cC]/* | \
6151 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6152 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6155 # OSF1 and SCO ODT 3.0 have their own names for install.
6156 # Don't use installbsd from OSF since it installs stuff as root
6158 for ac_prog in ginstall scoinst install; do
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6161 if test $ac_prog = install &&
6162 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6163 # AIX install. It has an incompatible calling convention.
6165 elif test $ac_prog = install &&
6166 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6167 # program-specific install script used by HP pwplus--don't use.
6170 rm -rf conftest.one conftest.two conftest.dir
6171 echo one > conftest.one
6172 echo two > conftest.two
6174 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6175 test -s conftest.one && test -s conftest.two &&
6176 test -s conftest.dir/conftest.one &&
6177 test -s conftest.dir/conftest.two
6179 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6192 rm -rf conftest.one conftest.two conftest.dir
6195 if test "${ac_cv_path_install+set}" = set; then
6196 INSTALL=$ac_cv_path_install
6198 # As a last resort, use the slow shell script. Don't cache a
6199 # value for INSTALL within a source directory, because that will
6200 # break other packages using the cache if that directory is
6201 # removed, or if the value is a relative name.
6202 INSTALL=$ac_install_sh
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6206 $as_echo "$INSTALL" >&6; }
6208 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6209 # It thinks the first close brace ends the variable substitution.
6210 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6212 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6214 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6217 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6218 if test -z "$MKDIR_P"; then
6219 if ${ac_cv_path_mkdir+:} false; then :
6220 $as_echo_n "(cached) " >&6
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6226 test -z "$as_dir" && as_dir=.
6227 for ac_prog in mkdir gmkdir; do
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6230 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6231 'mkdir (GNU coreutils) '* | \
6232 'mkdir (coreutils) '* | \
6233 'mkdir (fileutils) '4.1*)
6234 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6244 test -d ./--version && rmdir ./--version
6245 if test "${ac_cv_path_mkdir+set}" = set; then
6246 MKDIR_P="$ac_cv_path_mkdir -p"
6248 # As a last resort, use the slow shell script. Don't cache a
6249 # value for MKDIR_P within a source directory, because that will
6250 # break other packages using the cache if that directory is
6251 # removed, or if the value is a relative name.
6252 MKDIR_P="$ac_install_sh -d"
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6256 $as_echo "$MKDIR_P" >&6; }
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6259 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6260 if ${ac_cv_path_SED+:} false; then :
6261 $as_echo_n "(cached) " >&6
6263 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6264 for ac_i in 1 2 3 4 5 6 7; do
6265 ac_script="$ac_script$as_nl$ac_script"
6267 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6268 { ac_script=; unset ac_script;}
6269 if test -z "$SED"; then
6270 ac_path_SED_found=false
6271 # Loop through the user's path and test for each of PROGNAME-LIST
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 test -z "$as_dir" && as_dir=.
6277 for ac_prog in sed gsed; do
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6280 as_fn_executable_p "$ac_path_SED" || continue
6281 # Check for GNU ac_path_SED and select it if it is found.
6282 # Check for GNU $ac_path_SED
6283 case `"$ac_path_SED" --version 2>&1` in
6285 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6288 $as_echo_n 0123456789 >"conftest.in"
6291 cat "conftest.in" "conftest.in" >"conftest.tmp"
6292 mv "conftest.tmp" "conftest.in"
6293 cp "conftest.in" "conftest.nl"
6294 $as_echo '' >> "conftest.nl"
6295 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6297 as_fn_arith $ac_count + 1 && ac_count=$as_val
6298 if test $ac_count -gt ${ac_path_SED_max-0}; then
6299 # Best one so far, save it but keep looking for a better one
6300 ac_cv_path_SED="$ac_path_SED"
6301 ac_path_SED_max=$ac_count
6303 # 10*(2^10) chars as input seems more than enough
6304 test $ac_count -gt 10 && break
6306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6309 $ac_path_SED_found && break 3
6314 if test -z "$ac_cv_path_SED"; then
6315 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6323 $as_echo "$ac_cv_path_SED" >&6; }
6324 SED="$ac_cv_path_SED"
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6329 $as_echo_n "checking whether NLS is requested... " >&6; }
6330 # Check whether --enable-nls was given.
6331 if test "${enable_nls+set}" = set; then :
6332 enableval=$enable_nls; USE_NLS=$enableval
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6338 $as_echo "$USE_NLS" >&6; }
6343 GETTEXT_MACRO_VERSION=0.18
6348 # Prepare PATH_SEPARATOR.
6349 # The user is always right.
6350 if test "${PATH_SEPARATOR+set}" != set; then
6351 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6352 # contains only /bin. Note that ksh looks also at the FPATH variable,
6353 # so we have to set that as well for the test.
6355 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6356 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6357 || PATH_SEPARATOR=';'
6361 # Find out how to test for executable files. Don't use a zero-byte file,
6362 # as systems may use methods other than mode bits to determine executability.
6363 cat >conf$$.file <<_ASEOF
6367 chmod +x conf$$.file
6368 if test -x conf$$.file >/dev/null 2>&1; then
6369 ac_executable_p="test -x"
6371 ac_executable_p="test -f"
6375 # Extract the first word of "msgfmt", so it can be a program name with args.
6376 set dummy msgfmt; ac_word=$2
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378 $as_echo_n "checking for $ac_word... " >&6; }
6379 if ${ac_cv_path_MSGFMT+:} false; then :
6380 $as_echo_n "(cached) " >&6
6384 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6387 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6388 for ac_dir in $PATH; do
6390 test -z "$ac_dir" && ac_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6393 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6394 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6395 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6396 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6403 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6407 MSGFMT="$ac_cv_path_MSGFMT"
6408 if test "$MSGFMT" != ":"; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6410 $as_echo "$MSGFMT" >&6; }
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6416 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6417 set dummy gmsgfmt; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_path_GMSGFMT+:} false; then :
6421 $as_echo_n "(cached) " >&6
6425 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6435 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6447 GMSGFMT=$ac_cv_path_GMSGFMT
6448 if test -n "$GMSGFMT"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6450 $as_echo "$GMSGFMT" >&6; }
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6458 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6459 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6460 *) MSGFMT_015=$MSGFMT ;;
6463 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6464 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6465 *) GMSGFMT_015=$GMSGFMT ;;
6470 # Prepare PATH_SEPARATOR.
6471 # The user is always right.
6472 if test "${PATH_SEPARATOR+set}" != set; then
6473 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6474 # contains only /bin. Note that ksh looks also at the FPATH variable,
6475 # so we have to set that as well for the test.
6477 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6478 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6479 || PATH_SEPARATOR=';'
6483 # Find out how to test for executable files. Don't use a zero-byte file,
6484 # as systems may use methods other than mode bits to determine executability.
6485 cat >conf$$.file <<_ASEOF
6489 chmod +x conf$$.file
6490 if test -x conf$$.file >/dev/null 2>&1; then
6491 ac_executable_p="test -x"
6493 ac_executable_p="test -f"
6497 # Extract the first word of "xgettext", so it can be a program name with args.
6498 set dummy xgettext; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if ${ac_cv_path_XGETTEXT+:} false; then :
6502 $as_echo_n "(cached) " >&6
6506 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6509 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6510 for ac_dir in $PATH; do
6512 test -z "$ac_dir" && ac_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6515 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6516 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6517 (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
6518 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6525 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6529 XGETTEXT="$ac_cv_path_XGETTEXT"
6530 if test "$XGETTEXT" != ":"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6532 $as_echo "$XGETTEXT" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6540 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6541 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6542 *) XGETTEXT_015=$XGETTEXT ;;
6547 # Prepare PATH_SEPARATOR.
6548 # The user is always right.
6549 if test "${PATH_SEPARATOR+set}" != set; then
6550 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6551 # contains only /bin. Note that ksh looks also at the FPATH variable,
6552 # so we have to set that as well for the test.
6554 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6555 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6556 || PATH_SEPARATOR=';'
6560 # Find out how to test for executable files. Don't use a zero-byte file,
6561 # as systems may use methods other than mode bits to determine executability.
6562 cat >conf$$.file <<_ASEOF
6566 chmod +x conf$$.file
6567 if test -x conf$$.file >/dev/null 2>&1; then
6568 ac_executable_p="test -x"
6570 ac_executable_p="test -f"
6574 # Extract the first word of "msgmerge", so it can be a program name with args.
6575 set dummy msgmerge; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if ${ac_cv_path_MSGMERGE+:} false; then :
6579 $as_echo_n "(cached) " >&6
6583 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6586 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6587 for ac_dir in $PATH; do
6589 test -z "$ac_dir" && ac_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6592 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6593 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6594 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6601 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6605 MSGMERGE="$ac_cv_path_MSGMERGE"
6606 if test "$MSGMERGE" != ":"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6608 $as_echo "$MSGMERGE" >&6; }
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6615 test -n "$localedir" || localedir='${datadir}/locale'
6618 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6621 ac_config_commands="$ac_config_commands po-directories"
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6626 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6627 if ${ac_cv_gnu_library_2+:} false; then :
6628 $as_echo_n "(cached) " >&6
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6633 #include <features.h>
6634 #ifdef __GNU_LIBRARY__
6635 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6642 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6643 ac_cv_gnu_library_2=yes
6645 ac_cv_gnu_library_2=no
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6653 $as_echo "$ac_cv_gnu_library_2" >&6; }
6655 GLIBC2="$ac_cv_gnu_library_2"
6658 if test -n "$ac_tool_prefix"; then
6659 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6660 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 $as_echo_n "checking for $ac_word... " >&6; }
6663 if ${ac_cv_prog_RANLIB+:} false; then :
6664 $as_echo_n "(cached) " >&6
6666 if test -n "$RANLIB"; then
6667 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6676 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 RANLIB=$ac_cv_prog_RANLIB
6687 if test -n "$RANLIB"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6689 $as_echo "$RANLIB" >&6; }
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6697 if test -z "$ac_cv_prog_RANLIB"; then
6698 ac_ct_RANLIB=$RANLIB
6699 # Extract the first word of "ranlib", so it can be a program name with args.
6700 set dummy ranlib; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6704 $as_echo_n "(cached) " >&6
6706 if test -n "$ac_ct_RANLIB"; then
6707 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_ac_ct_RANLIB="ranlib"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6727 if test -n "$ac_ct_RANLIB"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6729 $as_echo "$ac_ct_RANLIB" >&6; }
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6735 if test "x$ac_ct_RANLIB" = 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 ;;
6744 RANLIB=$ac_ct_RANLIB
6747 RANLIB="$ac_cv_prog_RANLIB"
6754 if test -n "$GCC"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6756 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6757 if ${gl_cv_cc_vis_werror+:} false; then :
6758 $as_echo_n "(cached) " >&6
6761 gl_save_CFLAGS="$CFLAGS"
6762 CFLAGS="$CFLAGS -Werror"
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6774 if ac_fn_c_try_compile "$LINENO"; then :
6775 gl_cv_cc_vis_werror=yes
6777 gl_cv_cc_vis_werror=no
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 CFLAGS="$gl_save_CFLAGS"
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6784 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6786 $as_echo_n "checking for simple visibility declarations... " >&6; }
6787 if ${gl_cv_cc_visibility+:} false; then :
6788 $as_echo_n "(cached) " >&6
6791 gl_save_CFLAGS="$CFLAGS"
6792 CFLAGS="$CFLAGS -fvisibility=hidden"
6793 if test $gl_cv_cc_vis_werror = yes; then
6794 CFLAGS="$CFLAGS -Werror"
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6799 extern __attribute__((__visibility__("default"))) int exportedvar;
6800 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6801 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6802 void dummyfunc (void) {}
6812 if ac_fn_c_try_compile "$LINENO"; then :
6813 gl_cv_cc_visibility=yes
6815 gl_cv_cc_visibility=no
6817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818 CFLAGS="$gl_save_CFLAGS"
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6822 $as_echo "$gl_cv_cc_visibility" >&6; }
6823 if test $gl_cv_cc_visibility = yes; then
6824 CFLAG_VISIBILITY="-fvisibility=hidden"
6831 cat >>confdefs.h <<_ACEOF
6832 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6837 $as_echo_n "checking for inline... " >&6; }
6838 if ${ac_cv_c_inline+:} false; then :
6839 $as_echo_n "(cached) " >&6
6842 for ac_kw in inline __inline__ __inline; do
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6847 static $ac_kw foo_t static_foo () {return 0; }
6848 $ac_kw foo_t foo () {return 0; }
6852 if ac_fn_c_try_compile "$LINENO"; then :
6853 ac_cv_c_inline=$ac_kw
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 test "$ac_cv_c_inline" != no && break
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6861 $as_echo "$ac_cv_c_inline" >&6; }
6863 case $ac_cv_c_inline in
6866 case $ac_cv_c_inline in
6868 *) ac_val=$ac_cv_c_inline;;
6870 cat >>confdefs.h <<_ACEOF
6872 #define inline $ac_val
6878 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6879 if test "x$ac_cv_type_size_t" = xyes; then :
6883 cat >>confdefs.h <<_ACEOF
6884 #define size_t unsigned int
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6891 $as_echo_n "checking for stdint.h... " >&6; }
6892 if ${gl_cv_header_stdint_h+:} false; then :
6893 $as_echo_n "(cached) " >&6
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6897 #include <sys/types.h>
6902 uintmax_t i = (uintmax_t) -1; return !i;
6907 if ac_fn_c_try_compile "$LINENO"; then :
6908 gl_cv_header_stdint_h=yes
6910 gl_cv_header_stdint_h=no
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6915 $as_echo "$gl_cv_header_stdint_h" >&6; }
6916 if test $gl_cv_header_stdint_h = yes; then
6918 cat >>confdefs.h <<_ACEOF
6919 #define HAVE_STDINT_H_WITH_UINTMAX 1
6924 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6925 # for constant arguments. Useless!
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6927 $as_echo_n "checking for working alloca.h... " >&6; }
6928 if ${ac_cv_working_alloca_h+:} false; then :
6929 $as_echo_n "(cached) " >&6
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6937 char *p = (char *) alloca (2 * sizeof (int));
6943 if ac_fn_c_try_link "$LINENO"; then :
6944 ac_cv_working_alloca_h=yes
6946 ac_cv_working_alloca_h=no
6948 rm -f core conftest.err conftest.$ac_objext \
6949 conftest$ac_exeext conftest.$ac_ext
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6952 $as_echo "$ac_cv_working_alloca_h" >&6; }
6953 if test $ac_cv_working_alloca_h = yes; then
6955 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6960 $as_echo_n "checking for alloca... " >&6; }
6961 if ${ac_cv_func_alloca_works+:} false; then :
6962 $as_echo_n "(cached) " >&6
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6967 # define alloca __builtin_alloca
6970 # include <malloc.h>
6971 # define alloca _alloca
6973 # ifdef HAVE_ALLOCA_H
6974 # include <alloca.h>
6979 # ifndef alloca /* predefined by HP cc +Olibcalls */
6980 void *alloca (size_t);
6990 char *p = (char *) alloca (1);
6996 if ac_fn_c_try_link "$LINENO"; then :
6997 ac_cv_func_alloca_works=yes
6999 ac_cv_func_alloca_works=no
7001 rm -f core conftest.err conftest.$ac_objext \
7002 conftest$ac_exeext conftest.$ac_ext
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7005 $as_echo "$ac_cv_func_alloca_works" >&6; }
7007 if test $ac_cv_func_alloca_works = yes; then
7009 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7012 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7013 # that cause trouble. Some versions do not even contain alloca or
7014 # contain a buggy version. If you still want to use their alloca,
7015 # use ar to extract alloca.o from them instead of compiling alloca.c.
7017 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7019 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7023 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7024 if ${ac_cv_os_cray+:} false; then :
7025 $as_echo_n "(cached) " >&6
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7029 #if defined CRAY && ! defined CRAY2
7036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7037 $EGREP "webecray" >/dev/null 2>&1; then :
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7046 $as_echo "$ac_cv_os_cray" >&6; }
7047 if test $ac_cv_os_cray = yes; then
7048 for ac_func in _getb67 GETB67 getb67; do
7049 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7050 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7051 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7053 cat >>confdefs.h <<_ACEOF
7054 #define CRAY_STACKSEG_END $ac_func
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7064 $as_echo_n "checking stack direction for C alloca... " >&6; }
7065 if ${ac_cv_c_stack_direction+:} false; then :
7066 $as_echo_n "(cached) " >&6
7068 if test "$cross_compiling" = yes; then :
7069 ac_cv_c_stack_direction=0
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7073 $ac_includes_default
7075 find_stack_direction (int *addr, int depth)
7080 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7081 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7086 main (int argc, char **argv)
7088 return find_stack_direction (0, argc + !argv + 20) < 0;
7091 if ac_fn_c_try_run "$LINENO"; then :
7092 ac_cv_c_stack_direction=1
7094 ac_cv_c_stack_direction=-1
7096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7097 conftest.$ac_objext conftest.beam conftest.$ac_ext
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7102 $as_echo "$ac_cv_c_stack_direction" >&6; }
7103 cat >>confdefs.h <<_ACEOF
7104 #define STACK_DIRECTION $ac_cv_c_stack_direction
7113 for ac_header in $ac_header_list
7115 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7116 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7118 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7119 cat >>confdefs.h <<_ACEOF
7120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7134 for ac_func in getpagesize
7136 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7137 if test "x$ac_cv_func_getpagesize" = xyes; then :
7138 cat >>confdefs.h <<_ACEOF
7139 #define HAVE_GETPAGESIZE 1
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7146 $as_echo_n "checking for working mmap... " >&6; }
7147 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7148 $as_echo_n "(cached) " >&6
7150 if test "$cross_compiling" = yes; then :
7151 ac_cv_func_mmap_fixed_mapped=no
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7155 $ac_includes_default
7156 /* malloc might have been renamed as rpl_malloc. */
7159 /* Thanks to Mike Haertel and Jim Avera for this test.
7160 Here is a matrix of mmap possibilities:
7161 mmap private not fixed
7162 mmap private fixed at somewhere currently unmapped
7163 mmap private fixed at somewhere already mapped
7164 mmap shared not fixed
7165 mmap shared fixed at somewhere currently unmapped
7166 mmap shared fixed at somewhere already mapped
7167 For private mappings, we should verify that changes cannot be read()
7168 back from the file, nor mmap's back from the file at a different
7169 address. (There have been systems where private was not correctly
7170 implemented like the infamous i386 svr4.0, and systems where the
7171 VM page cache was not coherent with the file system buffer cache
7172 like early versions of FreeBSD and possibly contemporary NetBSD.)
7173 For shared mappings, we should conversely verify that changes get
7174 propagated back to all the places they're supposed to be.
7176 Grep wants private fixed already mapped.
7177 The main things grep needs to know about mmap are:
7178 * does it exist and is it safe to write into the mmap'd area
7179 * how to use it (BSD variants) */
7182 #include <sys/mman.h>
7184 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7188 /* This mess was copied from the GNU getpagesize.h. */
7189 #ifndef HAVE_GETPAGESIZE
7190 # ifdef _SC_PAGESIZE
7191 # define getpagesize() sysconf(_SC_PAGESIZE)
7192 # else /* no _SC_PAGESIZE */
7193 # ifdef HAVE_SYS_PARAM_H
7194 # include <sys/param.h>
7195 # ifdef EXEC_PAGESIZE
7196 # define getpagesize() EXEC_PAGESIZE
7197 # else /* no EXEC_PAGESIZE */
7199 # define getpagesize() NBPG * CLSIZE
7202 # endif /* no CLSIZE */
7203 # else /* no NBPG */
7205 # define getpagesize() NBPC
7206 # else /* no NBPC */
7208 # define getpagesize() PAGESIZE
7209 # endif /* PAGESIZE */
7210 # endif /* no NBPC */
7211 # endif /* no NBPG */
7212 # endif /* no EXEC_PAGESIZE */
7213 # else /* no HAVE_SYS_PARAM_H */
7214 # define getpagesize() 8192 /* punt totally */
7215 # endif /* no HAVE_SYS_PARAM_H */
7216 # endif /* no _SC_PAGESIZE */
7218 #endif /* no HAVE_GETPAGESIZE */
7223 char *data, *data2, *data3;
7228 pagesize = getpagesize ();
7230 /* First, make a file with some known garbage in it. */
7231 data = (char *) malloc (pagesize);
7234 for (i = 0; i < pagesize; ++i)
7235 *(data + i) = rand ();
7237 fd = creat ("conftest.mmap", 0600);
7240 if (write (fd, data, pagesize) != pagesize)
7244 /* Next, check that the tail of a page is zero-filled. File must have
7245 non-zero length, otherwise we risk SIGBUS for entire page. */
7246 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7250 if (write (fd2, cdata2, 1) != 1)
7252 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7253 if (data2 == MAP_FAILED)
7255 for (i = 0; i < pagesize; ++i)
7259 if (munmap (data2, pagesize))
7262 /* Next, try to mmap the file at a fixed address which already has
7263 something else allocated at it. If we can, also make sure that
7264 we see the same garbage. */
7265 fd = open ("conftest.mmap", O_RDWR);
7268 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7269 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7271 for (i = 0; i < pagesize; ++i)
7272 if (*(data + i) != *(data2 + i))
7275 /* Finally, make sure that changes to the mapped area do not
7276 percolate back to the file as seen by read(). (This is a bug on
7277 some variants of i386 svr4.0.) */
7278 for (i = 0; i < pagesize; ++i)
7279 *(data2 + i) = *(data2 + i) + 1;
7280 data3 = (char *) malloc (pagesize);
7283 if (read (fd, data3, pagesize) != pagesize)
7285 for (i = 0; i < pagesize; ++i)
7286 if (*(data + i) != *(data3 + i))
7292 if ac_fn_c_try_run "$LINENO"; then :
7293 ac_cv_func_mmap_fixed_mapped=yes
7295 ac_cv_func_mmap_fixed_mapped=no
7297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7298 conftest.$ac_objext conftest.beam conftest.$ac_ext
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7303 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7304 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7306 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7309 rm -f conftest.mmap conftest.txt
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7314 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7315 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7316 $as_echo_n "(cached) " >&6
7319 gt_cv_int_divbyzero_sigfpe=
7321 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7322 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7323 # compiling. If we were to perform the real test, 1 Crash Report
7324 # dialog window would pop up.
7326 i[34567]86 | x86_64)
7327 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7331 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7332 if test "$cross_compiling" = yes; then :
7334 # Guess based on the CPU.
7336 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7337 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7339 gt_cv_int_divbyzero_sigfpe="guessing no";;
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7350 sigfpe_handler (int sig)
7352 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7353 exit (sig != SIGFPE);
7363 signal (SIGFPE, sigfpe_handler);
7364 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7365 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7366 signal (SIGTRAP, sigfpe_handler);
7368 /* Linux/SPARC yields signal SIGILL. */
7369 #if defined (__sparc__) && defined (__linux__)
7370 signal (SIGILL, sigfpe_handler);
7379 if ac_fn_c_try_run "$LINENO"; then :
7380 gt_cv_int_divbyzero_sigfpe=yes
7382 gt_cv_int_divbyzero_sigfpe=no
7384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7385 conftest.$ac_objext conftest.beam conftest.$ac_ext
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7392 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7393 case "$gt_cv_int_divbyzero_sigfpe" in
7398 cat >>confdefs.h <<_ACEOF
7399 #define INTDIV0_RAISES_SIGFPE $value
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7405 $as_echo_n "checking for inttypes.h... " >&6; }
7406 if ${gl_cv_header_inttypes_h+:} false; then :
7407 $as_echo_n "(cached) " >&6
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7412 #include <sys/types.h>
7413 #include <inttypes.h>
7418 uintmax_t i = (uintmax_t) -1; return !i;
7423 if ac_fn_c_try_compile "$LINENO"; then :
7424 gl_cv_header_inttypes_h=yes
7426 gl_cv_header_inttypes_h=no
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7431 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7432 if test $gl_cv_header_inttypes_h = yes; then
7434 cat >>confdefs.h <<_ACEOF
7435 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7442 $as_echo_n "checking for unsigned long long int... " >&6; }
7443 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7444 $as_echo_n "(cached) " >&6
7446 ac_cv_type_unsigned_long_long_int=yes
7447 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7451 /* For now, do not test the preprocessor; as of 2007 there are too many
7452 implementations with broken preprocessors. Perhaps this can
7453 be revisited in 2012. In the meantime, code should not expect
7454 #if to work with literals wider than 32 bits. */
7455 /* Test literals. */
7456 long long int ll = 9223372036854775807ll;
7457 long long int nll = -9223372036854775807LL;
7458 unsigned long long int ull = 18446744073709551615ULL;
7459 /* Test constant expressions. */
7460 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7462 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7468 /* Test availability of runtime routines for shift and division. */
7469 long long int llmax = 9223372036854775807ll;
7470 unsigned long long int ullmax = 18446744073709551615ull;
7471 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7472 | (llmax / ll) | (llmax % ll)
7473 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7474 | (ullmax / ull) | (ullmax % ull));
7480 if ac_fn_c_try_link "$LINENO"; then :
7483 ac_cv_type_unsigned_long_long_int=no
7485 rm -f core conftest.err conftest.$ac_objext \
7486 conftest$ac_exeext conftest.$ac_ext
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7490 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7491 if test $ac_cv_type_unsigned_long_long_int = yes; then
7493 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7500 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7502 test $ac_cv_type_unsigned_long_long_int = yes \
7503 && ac_type='unsigned long long' \
7504 || ac_type='unsigned long'
7506 cat >>confdefs.h <<_ACEOF
7507 #define uintmax_t $ac_type
7512 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7517 for ac_header in inttypes.h
7519 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7520 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7521 cat >>confdefs.h <<_ACEOF
7522 #define HAVE_INTTYPES_H 1
7529 if test $ac_cv_header_inttypes_h = yes; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7531 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7532 if ${gt_cv_inttypes_pri_broken+:} false; then :
7533 $as_echo_n "(cached) " >&6
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7539 #include <inttypes.h>
7552 if ac_fn_c_try_compile "$LINENO"; then :
7553 gt_cv_inttypes_pri_broken=no
7555 gt_cv_inttypes_pri_broken=yes
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7561 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7563 if test "$gt_cv_inttypes_pri_broken" = yes; then
7565 cat >>confdefs.h <<_ACEOF
7566 #define PRI_MACROS_BROKEN 1
7580 # Check whether --enable-threads was given.
7581 if test "${enable_threads+set}" = set; then :
7582 enableval=$enable_threads; gl_use_threads=$enableval
7584 if test -n "$gl_use_threads_default"; then
7585 gl_use_threads="$gl_use_threads_default"
7588 osf*) gl_use_threads=no ;;
7591 1.[0-5].*) gl_use_threads=no ;;
7592 *) gl_use_threads=yes ;;
7595 *) gl_use_threads=yes ;;
7601 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7602 # For using <pthread.h>:
7605 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7606 # groks <pthread.h>. cc also understands the flag -pthread, but
7607 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7608 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7609 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7610 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7611 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7614 # Some systems optimize for single-threaded programs by default, and
7615 # need special flags to disable these optimizations. For example, the
7616 # definition of 'errno' in <errno.h>.
7618 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7619 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7627 if test "X$prefix" = "XNONE"; then
7628 acl_final_prefix="$ac_default_prefix"
7630 acl_final_prefix="$prefix"
7632 if test "X$exec_prefix" = "XNONE"; then
7633 acl_final_exec_prefix='${prefix}'
7635 acl_final_exec_prefix="$exec_prefix"
7637 acl_save_prefix="$prefix"
7638 prefix="$acl_final_prefix"
7639 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7640 prefix="$acl_save_prefix"
7644 # Check whether --with-gnu-ld was given.
7645 if test "${with_gnu_ld+set}" = set; then :
7646 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7651 # Prepare PATH_SEPARATOR.
7652 # The user is always right.
7653 if test "${PATH_SEPARATOR+set}" != set; then
7654 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7655 # contains only /bin. Note that ksh looks also at the FPATH variable,
7656 # so we have to set that as well for the test.
7658 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7659 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7660 || PATH_SEPARATOR=';'
7665 if test "$GCC" = yes; then
7666 # Check if gcc -print-prog-name=ld gives a path.
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7668 $as_echo_n "checking for ld used by $CC... " >&6; }
7671 # gcc leaves a trailing carriage return which upsets mingw
7672 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7674 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7677 # Accept absolute paths.
7679 re_direlt='/[^/][^/]*/\.\./'
7680 # Canonicalize the pathname of ld
7681 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7682 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7683 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7685 test -z "$LD" && LD="$ac_prog"
7688 # If it fails, then pretend we aren't using GCC.
7692 # If it is relative, then search for the first ld in PATH.
7696 elif test "$with_gnu_ld" = yes; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7698 $as_echo_n "checking for GNU ld... " >&6; }
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7701 $as_echo_n "checking for non-GNU ld... " >&6; }
7703 if ${acl_cv_path_LD+:} false; then :
7704 $as_echo_n "(cached) " >&6
7706 if test -z "$LD"; then
7707 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7708 for ac_dir in $PATH; do
7710 test -z "$ac_dir" && ac_dir=.
7711 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7712 acl_cv_path_LD="$ac_dir/$ac_prog"
7713 # Check to see if the program is GNU ld. I'd rather use --version,
7714 # but apparently some variants of GNU ld only accept -v.
7715 # Break only if it was the GNU/non-GNU ld that we prefer.
7716 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7717 *GNU* | *'with BFD'*)
7718 test "$with_gnu_ld" != no && break
7721 test "$with_gnu_ld" != yes && break
7728 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7732 LD="$acl_cv_path_LD"
7733 if test -n "$LD"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7735 $as_echo "$LD" >&6; }
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7740 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7742 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7743 if ${acl_cv_prog_gnu_ld+:} false; then :
7744 $as_echo_n "(cached) " >&6
7746 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7747 case `$LD -v 2>&1 </dev/null` in
7748 *GNU* | *'with BFD'*)
7749 acl_cv_prog_gnu_ld=yes
7752 acl_cv_prog_gnu_ld=no
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7757 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7758 with_gnu_ld=$acl_cv_prog_gnu_ld
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7764 $as_echo_n "checking for shared library run path origin... " >&6; }
7765 if ${acl_cv_rpath+:} false; then :
7766 $as_echo_n "(cached) " >&6
7769 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7770 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7777 $as_echo "$acl_cv_rpath" >&6; }
7779 acl_libext="$acl_cv_libext"
7780 acl_shlibext="$acl_cv_shlibext"
7781 acl_libname_spec="$acl_cv_libname_spec"
7782 acl_library_names_spec="$acl_cv_library_names_spec"
7783 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7784 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7785 acl_hardcode_direct="$acl_cv_hardcode_direct"
7786 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7787 # Check whether --enable-rpath was given.
7788 if test "${enable_rpath+set}" = set; then :
7789 enableval=$enable_rpath; :
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7802 $as_echo_n "checking for 64-bit host... " >&6; }
7803 if ${gl_cv_solaris_64bit+:} false; then :
7804 $as_echo_n "(cached) " >&6
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7815 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7816 gl_cv_solaris_64bit=yes
7818 gl_cv_solaris_64bit=no
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7825 $as_echo "$gl_cv_solaris_64bit" >&6; }
7826 if test $gl_cv_solaris_64bit = yes; then
7827 acl_libdirstem=lib/64
7829 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7830 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7835 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7836 if test -n "$searchpath"; then
7837 acl_save_IFS="${IFS= }"; IFS=":"
7838 for searchdir in $searchpath; do
7839 if test -d "$searchdir"; then
7840 case "$searchdir" in
7841 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7843 # Better ignore directories of this form. They are misleading.
7845 *) searchdir=`cd "$searchdir" && pwd`
7846 case "$searchdir" in
7847 */lib64 ) acl_libdirstem=lib64 ;;
7856 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7865 if test "$gl_use_threads" != no; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7867 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7868 if ${gl_cv_have_weak+:} false; then :
7869 $as_echo_n "(cached) " >&6
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7874 extern void xyzzy ();
7884 if ac_fn_c_try_link "$LINENO"; then :
7885 gl_cv_have_weak=maybe
7887 rm -f core conftest.err conftest.$ac_objext \
7888 conftest$ac_exeext conftest.$ac_ext
7889 if test $gl_cv_have_weak = maybe; then
7890 if test "$cross_compiling" = yes; then :
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7894 Extensible Linking Format
7898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7899 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7900 gl_cv_have_weak="guessing yes"
7902 gl_cv_have_weak="guessing no"
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7915 return (fputs == NULL);
7918 if ac_fn_c_try_run "$LINENO"; then :
7923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7924 conftest.$ac_objext conftest.beam conftest.$ac_ext
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7931 $as_echo "$gl_cv_have_weak" >&6; }
7932 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7933 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7934 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7935 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7936 if test "x$ac_cv_header_pthread_h" = xyes; then :
7937 gl_have_pthread_h=yes
7939 gl_have_pthread_h=no
7943 if test "$gl_have_pthread_h" = yes; then
7944 # Other possible tests:
7945 # -lpthreads (FSU threads, PCthreads)
7948 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7949 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7950 # the second one only in libpthread, and lock.c needs it.
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7953 #include <pthread.h>
7957 pthread_mutex_lock((pthread_mutex_t*)0);
7958 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7963 if ac_fn_c_try_link "$LINENO"; then :
7966 rm -f core conftest.err conftest.$ac_objext \
7967 conftest$ac_exeext conftest.$ac_ext
7968 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7969 # since it is defined as a macro on OSF/1.)
7970 if test -n "$gl_have_pthread"; then
7971 # The program links fine without libpthread. But it may actually
7972 # need to link with libpthread in order to create multiple threads.
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7974 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7975 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7976 $as_echo_n "(cached) " >&6
7978 ac_check_lib_save_LIBS=$LIBS
7979 LIBS="-lpthread $LIBS"
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7983 /* Override any GCC internal prototype to avoid an error.
7984 Use char because int might match the return type of a GCC
7985 builtin and then its argument prototype would still apply. */
7989 char pthread_kill ();
7993 return pthread_kill ();
7998 if ac_fn_c_try_link "$LINENO"; then :
7999 ac_cv_lib_pthread_pthread_kill=yes
8001 ac_cv_lib_pthread_pthread_kill=no
8003 rm -f core conftest.err conftest.$ac_objext \
8004 conftest$ac_exeext conftest.$ac_ext
8005 LIBS=$ac_check_lib_save_LIBS
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8008 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8009 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8010 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8011 # On Solaris and HP-UX, most pthread functions exist also in libc.
8012 # Therefore pthread_in_use() needs to actually try to create a
8013 # thread: pthread_create from libc will fail, whereas
8014 # pthread_create will actually create a thread.
8018 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8025 # Some library is needed. Try libpthread and libc_r.
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8027 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8028 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8029 $as_echo_n "(cached) " >&6
8031 ac_check_lib_save_LIBS=$LIBS
8032 LIBS="-lpthread $LIBS"
8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h. */
8036 /* Override any GCC internal prototype to avoid an error.
8037 Use char because int might match the return type of a GCC
8038 builtin and then its argument prototype would still apply. */
8042 char pthread_kill ();
8046 return pthread_kill ();
8051 if ac_fn_c_try_link "$LINENO"; then :
8052 ac_cv_lib_pthread_pthread_kill=yes
8054 ac_cv_lib_pthread_pthread_kill=no
8056 rm -f core conftest.err conftest.$ac_objext \
8057 conftest$ac_exeext conftest.$ac_ext
8058 LIBS=$ac_check_lib_save_LIBS
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8061 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8062 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8064 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8065 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8068 if test -z "$gl_have_pthread"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8071 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8072 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8073 $as_echo_n "(cached) " >&6
8075 ac_check_lib_save_LIBS=$LIBS
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8080 /* Override any GCC internal prototype to avoid an error.
8081 Use char because int might match the return type of a GCC
8082 builtin and then its argument prototype would still apply. */
8086 char pthread_kill ();
8090 return pthread_kill ();
8095 if ac_fn_c_try_link "$LINENO"; then :
8096 ac_cv_lib_c_r_pthread_kill=yes
8098 ac_cv_lib_c_r_pthread_kill=no
8100 rm -f core conftest.err conftest.$ac_objext \
8101 conftest$ac_exeext conftest.$ac_ext
8102 LIBS=$ac_check_lib_save_LIBS
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8105 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8106 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8108 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8109 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8114 if test -n "$gl_have_pthread"; then
8115 gl_threads_api=posix
8117 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8119 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8120 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8122 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8131 if test -z "$gl_have_pthread"; then
8132 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8133 gl_have_solaristhread=
8134 gl_save_LIBS="$LIBS"
8135 LIBS="$LIBS -lthread"
8136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137 /* end confdefs.h. */
8150 if ac_fn_c_try_link "$LINENO"; then :
8151 gl_have_solaristhread=yes
8153 rm -f core conftest.err conftest.$ac_objext \
8154 conftest$ac_exeext conftest.$ac_ext
8155 LIBS="$gl_save_LIBS"
8156 if test -n "$gl_have_solaristhread"; then
8157 gl_threads_api=solaris
8159 LTLIBTHREAD=-lthread
8160 LIBMULTITHREAD="$LIBTHREAD"
8161 LTLIBMULTITHREAD="$LTLIBTHREAD"
8163 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8165 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8167 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8175 if test "$gl_use_threads" = pth; then
8176 gl_save_CPPFLAGS="$CPPFLAGS"
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8183 $as_echo_n "checking how to link with libpth... " >&6; }
8184 if ${ac_cv_libpth_libs+:} false; then :
8185 $as_echo_n "(cached) " >&6
8197 acl_save_prefix="$prefix"
8198 prefix="$acl_final_prefix"
8199 acl_save_exec_prefix="$exec_prefix"
8200 exec_prefix="$acl_final_exec_prefix"
8202 eval additional_includedir=\"$includedir\"
8203 eval additional_libdir=\"$libdir\"
8205 exec_prefix="$acl_save_exec_prefix"
8206 prefix="$acl_save_prefix"
8209 # Check whether --with-libpth-prefix was given.
8210 if test "${with_libpth_prefix+set}" = set; then :
8211 withval=$with_libpth_prefix;
8212 if test "X$withval" = "Xno"; then
8215 if test "X$withval" = "X"; then
8217 acl_save_prefix="$prefix"
8218 prefix="$acl_final_prefix"
8219 acl_save_exec_prefix="$exec_prefix"
8220 exec_prefix="$acl_final_exec_prefix"
8222 eval additional_includedir=\"$includedir\"
8223 eval additional_libdir=\"$libdir\"
8225 exec_prefix="$acl_save_exec_prefix"
8226 prefix="$acl_save_prefix"
8229 additional_includedir="$withval/include"
8230 additional_libdir="$withval/$acl_libdirstem"
8231 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8232 && ! test -d "$withval/$acl_libdirstem"; then
8233 additional_libdir="$withval/$acl_libdirstem2"
8247 names_already_handled=
8248 names_next_round='pth '
8249 while test -n "$names_next_round"; do
8250 names_this_round="$names_next_round"
8252 for name in $names_this_round; do
8254 for n in $names_already_handled; do
8255 if test "$n" = "$name"; then
8260 if test -z "$already_handled"; then
8261 names_already_handled="$names_already_handled $name"
8262 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8263 eval value=\"\$HAVE_LIB$uppername\"
8264 if test -n "$value"; then
8265 if test "$value" = yes; then
8266 eval value=\"\$LIB$uppername\"
8267 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8268 eval value=\"\$LTLIB$uppername\"
8269 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8278 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8279 if test -n "$acl_shlibext"; then
8280 shrext=".$acl_shlibext" # typically: shrext=.so
8284 if test $use_additional = yes; then
8285 dir="$additional_libdir"
8286 if test -n "$acl_shlibext"; then
8287 if test -f "$dir/$libname$shrext"; then
8289 found_so="$dir/$libname$shrext"
8291 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8292 ver=`(cd "$dir" && \
8293 for f in "$libname$shrext".*; do echo "$f"; done \
8294 | sed -e "s,^$libname$shrext\\\\.,," \
8295 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8296 | sed 1q ) 2>/dev/null`
8297 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8299 found_so="$dir/$libname$shrext.$ver"
8302 eval library_names=\"$acl_library_names_spec\"
8303 for f in $library_names; do
8304 if test -f "$dir/$f"; then
8313 if test "X$found_dir" = "X"; then
8314 if test -f "$dir/$libname.$acl_libext"; then
8316 found_a="$dir/$libname.$acl_libext"
8319 if test "X$found_dir" != "X"; then
8320 if test -f "$dir/$libname.la"; then
8321 found_la="$dir/$libname.la"
8325 if test "X$found_dir" = "X"; then
8326 for x in $LDFLAGS $LTLIBPTH; do
8328 acl_save_prefix="$prefix"
8329 prefix="$acl_final_prefix"
8330 acl_save_exec_prefix="$exec_prefix"
8331 exec_prefix="$acl_final_exec_prefix"
8333 exec_prefix="$acl_save_exec_prefix"
8334 prefix="$acl_save_prefix"
8338 dir=`echo "X$x" | sed -e 's/^X-L//'`
8339 if test -n "$acl_shlibext"; then
8340 if test -f "$dir/$libname$shrext"; then
8342 found_so="$dir/$libname$shrext"
8344 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8345 ver=`(cd "$dir" && \
8346 for f in "$libname$shrext".*; do echo "$f"; done \
8347 | sed -e "s,^$libname$shrext\\\\.,," \
8348 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8349 | sed 1q ) 2>/dev/null`
8350 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8352 found_so="$dir/$libname$shrext.$ver"
8355 eval library_names=\"$acl_library_names_spec\"
8356 for f in $library_names; do
8357 if test -f "$dir/$f"; then
8366 if test "X$found_dir" = "X"; then
8367 if test -f "$dir/$libname.$acl_libext"; then
8369 found_a="$dir/$libname.$acl_libext"
8372 if test "X$found_dir" != "X"; then
8373 if test -f "$dir/$libname.la"; then
8374 found_la="$dir/$libname.la"
8379 if test "X$found_dir" != "X"; then
8384 if test "X$found_dir" != "X"; then
8385 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8386 if test "X$found_so" != "X"; then
8387 if test "$enable_rpath" = no \
8388 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8389 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8390 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8393 for x in $ltrpathdirs; do
8394 if test "X$x" = "X$found_dir"; then
8399 if test -z "$haveit"; then
8400 ltrpathdirs="$ltrpathdirs $found_dir"
8402 if test "$acl_hardcode_direct" = yes; then
8403 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8405 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8406 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8408 for x in $rpathdirs; do
8409 if test "X$x" = "X$found_dir"; then
8414 if test -z "$haveit"; then
8415 rpathdirs="$rpathdirs $found_dir"
8419 for x in $LDFLAGS $LIBPTH; do
8421 acl_save_prefix="$prefix"
8422 prefix="$acl_final_prefix"
8423 acl_save_exec_prefix="$exec_prefix"
8424 exec_prefix="$acl_final_exec_prefix"
8426 exec_prefix="$acl_save_exec_prefix"
8427 prefix="$acl_save_prefix"
8429 if test "X$x" = "X-L$found_dir"; then
8434 if test -z "$haveit"; then
8435 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8437 if test "$acl_hardcode_minus_L" != no; then
8438 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8440 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8446 if test "X$found_a" != "X"; then
8447 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8449 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8452 additional_includedir=
8453 case "$found_dir" in
8454 */$acl_libdirstem | */$acl_libdirstem/)
8455 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8456 if test "$name" = 'pth'; then
8457 LIBPTH_PREFIX="$basedir"
8459 additional_includedir="$basedir/include"
8461 */$acl_libdirstem2 | */$acl_libdirstem2/)
8462 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8463 if test "$name" = 'pth'; then
8464 LIBPTH_PREFIX="$basedir"
8466 additional_includedir="$basedir/include"
8469 if test "X$additional_includedir" != "X"; then
8470 if test "X$additional_includedir" != "X/usr/include"; then
8472 if test "X$additional_includedir" = "X/usr/local/include"; then
8473 if test -n "$GCC"; then
8475 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8479 if test -z "$haveit"; then
8480 for x in $CPPFLAGS $INCPTH; do
8482 acl_save_prefix="$prefix"
8483 prefix="$acl_final_prefix"
8484 acl_save_exec_prefix="$exec_prefix"
8485 exec_prefix="$acl_final_exec_prefix"
8487 exec_prefix="$acl_save_exec_prefix"
8488 prefix="$acl_save_prefix"
8490 if test "X$x" = "X-I$additional_includedir"; then
8495 if test -z "$haveit"; then
8496 if test -d "$additional_includedir"; then
8497 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8503 if test -n "$found_la"; then
8504 save_libdir="$libdir"
8506 */* | *\\*) . "$found_la" ;;
8507 *) . "./$found_la" ;;
8509 libdir="$save_libdir"
8510 for dep in $dependency_libs; do
8513 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8514 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8515 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8517 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8518 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8519 if test -n "$GCC"; then
8521 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8525 if test -z "$haveit"; then
8527 for x in $LDFLAGS $LIBPTH; do
8529 acl_save_prefix="$prefix"
8530 prefix="$acl_final_prefix"
8531 acl_save_exec_prefix="$exec_prefix"
8532 exec_prefix="$acl_final_exec_prefix"
8534 exec_prefix="$acl_save_exec_prefix"
8535 prefix="$acl_save_prefix"
8537 if test "X$x" = "X-L$additional_libdir"; then
8542 if test -z "$haveit"; then
8543 if test -d "$additional_libdir"; then
8544 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8548 for x in $LDFLAGS $LTLIBPTH; do
8550 acl_save_prefix="$prefix"
8551 prefix="$acl_final_prefix"
8552 acl_save_exec_prefix="$exec_prefix"
8553 exec_prefix="$acl_final_exec_prefix"
8555 exec_prefix="$acl_save_exec_prefix"
8556 prefix="$acl_save_prefix"
8558 if test "X$x" = "X-L$additional_libdir"; then
8563 if test -z "$haveit"; then
8564 if test -d "$additional_libdir"; then
8565 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8572 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8573 if test "$enable_rpath" != no; then
8575 for x in $rpathdirs; do
8576 if test "X$x" = "X$dir"; then
8581 if test -z "$haveit"; then
8582 rpathdirs="$rpathdirs $dir"
8585 for x in $ltrpathdirs; do
8586 if test "X$x" = "X$dir"; then
8591 if test -z "$haveit"; then
8592 ltrpathdirs="$ltrpathdirs $dir"
8597 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8600 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8603 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8604 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8610 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8611 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8617 if test "X$rpathdirs" != "X"; then
8618 if test -n "$acl_hardcode_libdir_separator"; then
8620 for found_dir in $rpathdirs; do
8621 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8623 acl_save_libdir="$libdir"
8625 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8626 libdir="$acl_save_libdir"
8627 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8629 for found_dir in $rpathdirs; do
8630 acl_save_libdir="$libdir"
8632 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8633 libdir="$acl_save_libdir"
8634 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8638 if test "X$ltrpathdirs" != "X"; then
8639 for found_dir in $ltrpathdirs; do
8640 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8649 ac_cv_libpth_libs="$LIBPTH"
8650 ac_cv_libpth_ltlibs="$LTLIBPTH"
8651 ac_cv_libpth_cppflags="$INCPTH"
8652 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8656 $as_echo "$ac_cv_libpth_libs" >&6; }
8657 LIBPTH="$ac_cv_libpth_libs"
8658 LTLIBPTH="$ac_cv_libpth_ltlibs"
8659 INCPTH="$ac_cv_libpth_cppflags"
8660 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8662 for element in $INCPTH; do
8664 for x in $CPPFLAGS; do
8666 acl_save_prefix="$prefix"
8667 prefix="$acl_final_prefix"
8668 acl_save_exec_prefix="$exec_prefix"
8669 exec_prefix="$acl_final_exec_prefix"
8671 exec_prefix="$acl_save_exec_prefix"
8672 prefix="$acl_save_prefix"
8674 if test "X$x" = "X$element"; then
8679 if test -z "$haveit"; then
8680 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8692 gl_save_LIBS="$LIBS"
8693 LIBS="$LIBS $LIBPTH"
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8705 if ac_fn_c_try_link "$LINENO"; then :
8708 rm -f core conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8710 LIBS="$gl_save_LIBS"
8711 if test -n "$gl_have_pth"; then
8714 LTLIBTHREAD="$LTLIBPTH"
8715 LIBMULTITHREAD="$LIBTHREAD"
8716 LTLIBMULTITHREAD="$LTLIBTHREAD"
8718 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8720 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8721 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8723 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8730 CPPFLAGS="$gl_save_CPPFLAGS"
8733 if test -z "$gl_have_pthread"; then
8734 case "$gl_use_threads" in
8735 yes | windows | win32) # The 'win32' is for backward compatibility.
8736 if { case "$host_os" in
8741 gl_threads_api=windows
8743 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8751 $as_echo_n "checking for multithread API to use... " >&6; }
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8753 $as_echo "$gl_threads_api" >&6; }
8765 if test "$gl_threads_api" = posix; then
8766 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8767 # pthread_rwlock_* functions.
8768 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8770 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8772 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8776 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8780 #include <pthread.h>
8785 #if __FreeBSD__ == 4
8786 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8787 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8788 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8789 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8791 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8799 if ac_fn_c_try_compile "$LINENO"; then :
8801 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821 acl_save_prefix="$prefix"
8822 prefix="$acl_final_prefix"
8823 acl_save_exec_prefix="$exec_prefix"
8824 exec_prefix="$acl_final_exec_prefix"
8826 eval additional_includedir=\"$includedir\"
8827 eval additional_libdir=\"$libdir\"
8829 exec_prefix="$acl_save_exec_prefix"
8830 prefix="$acl_save_prefix"
8833 # Check whether --with-libiconv-prefix was given.
8834 if test "${with_libiconv_prefix+set}" = set; then :
8835 withval=$with_libiconv_prefix;
8836 if test "X$withval" = "Xno"; then
8839 if test "X$withval" = "X"; then
8841 acl_save_prefix="$prefix"
8842 prefix="$acl_final_prefix"
8843 acl_save_exec_prefix="$exec_prefix"
8844 exec_prefix="$acl_final_exec_prefix"
8846 eval additional_includedir=\"$includedir\"
8847 eval additional_libdir=\"$libdir\"
8849 exec_prefix="$acl_save_exec_prefix"
8850 prefix="$acl_save_prefix"
8853 additional_includedir="$withval/include"
8854 additional_libdir="$withval/$acl_libdirstem"
8855 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8856 && ! test -d "$withval/$acl_libdirstem"; then
8857 additional_libdir="$withval/$acl_libdirstem2"
8871 names_already_handled=
8872 names_next_round='iconv '
8873 while test -n "$names_next_round"; do
8874 names_this_round="$names_next_round"
8876 for name in $names_this_round; do
8878 for n in $names_already_handled; do
8879 if test "$n" = "$name"; then
8884 if test -z "$already_handled"; then
8885 names_already_handled="$names_already_handled $name"
8886 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8887 eval value=\"\$HAVE_LIB$uppername\"
8888 if test -n "$value"; then
8889 if test "$value" = yes; then
8890 eval value=\"\$LIB$uppername\"
8891 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8892 eval value=\"\$LTLIB$uppername\"
8893 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8902 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8903 if test -n "$acl_shlibext"; then
8904 shrext=".$acl_shlibext" # typically: shrext=.so
8908 if test $use_additional = yes; then
8909 dir="$additional_libdir"
8910 if test -n "$acl_shlibext"; then
8911 if test -f "$dir/$libname$shrext"; then
8913 found_so="$dir/$libname$shrext"
8915 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8916 ver=`(cd "$dir" && \
8917 for f in "$libname$shrext".*; do echo "$f"; done \
8918 | sed -e "s,^$libname$shrext\\\\.,," \
8919 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8920 | sed 1q ) 2>/dev/null`
8921 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8923 found_so="$dir/$libname$shrext.$ver"
8926 eval library_names=\"$acl_library_names_spec\"
8927 for f in $library_names; do
8928 if test -f "$dir/$f"; then
8937 if test "X$found_dir" = "X"; then
8938 if test -f "$dir/$libname.$acl_libext"; then
8940 found_a="$dir/$libname.$acl_libext"
8943 if test "X$found_dir" != "X"; then
8944 if test -f "$dir/$libname.la"; then
8945 found_la="$dir/$libname.la"
8949 if test "X$found_dir" = "X"; then
8950 for x in $LDFLAGS $LTLIBICONV; do
8952 acl_save_prefix="$prefix"
8953 prefix="$acl_final_prefix"
8954 acl_save_exec_prefix="$exec_prefix"
8955 exec_prefix="$acl_final_exec_prefix"
8957 exec_prefix="$acl_save_exec_prefix"
8958 prefix="$acl_save_prefix"
8962 dir=`echo "X$x" | sed -e 's/^X-L//'`
8963 if test -n "$acl_shlibext"; then
8964 if test -f "$dir/$libname$shrext"; then
8966 found_so="$dir/$libname$shrext"
8968 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8969 ver=`(cd "$dir" && \
8970 for f in "$libname$shrext".*; do echo "$f"; done \
8971 | sed -e "s,^$libname$shrext\\\\.,," \
8972 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8973 | sed 1q ) 2>/dev/null`
8974 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8976 found_so="$dir/$libname$shrext.$ver"
8979 eval library_names=\"$acl_library_names_spec\"
8980 for f in $library_names; do
8981 if test -f "$dir/$f"; then
8990 if test "X$found_dir" = "X"; then
8991 if test -f "$dir/$libname.$acl_libext"; then
8993 found_a="$dir/$libname.$acl_libext"
8996 if test "X$found_dir" != "X"; then
8997 if test -f "$dir/$libname.la"; then
8998 found_la="$dir/$libname.la"
9003 if test "X$found_dir" != "X"; then
9008 if test "X$found_dir" != "X"; then
9009 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9010 if test "X$found_so" != "X"; then
9011 if test "$enable_rpath" = no \
9012 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9013 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9014 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9017 for x in $ltrpathdirs; do
9018 if test "X$x" = "X$found_dir"; then
9023 if test -z "$haveit"; then
9024 ltrpathdirs="$ltrpathdirs $found_dir"
9026 if test "$acl_hardcode_direct" = yes; then
9027 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9029 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9030 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9032 for x in $rpathdirs; do
9033 if test "X$x" = "X$found_dir"; then
9038 if test -z "$haveit"; then
9039 rpathdirs="$rpathdirs $found_dir"
9043 for x in $LDFLAGS $LIBICONV; do
9045 acl_save_prefix="$prefix"
9046 prefix="$acl_final_prefix"
9047 acl_save_exec_prefix="$exec_prefix"
9048 exec_prefix="$acl_final_exec_prefix"
9050 exec_prefix="$acl_save_exec_prefix"
9051 prefix="$acl_save_prefix"
9053 if test "X$x" = "X-L$found_dir"; then
9058 if test -z "$haveit"; then
9059 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9061 if test "$acl_hardcode_minus_L" != no; then
9062 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9064 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9070 if test "X$found_a" != "X"; then
9071 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9073 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9076 additional_includedir=
9077 case "$found_dir" in
9078 */$acl_libdirstem | */$acl_libdirstem/)
9079 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9080 if test "$name" = 'iconv'; then
9081 LIBICONV_PREFIX="$basedir"
9083 additional_includedir="$basedir/include"
9085 */$acl_libdirstem2 | */$acl_libdirstem2/)
9086 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9087 if test "$name" = 'iconv'; then
9088 LIBICONV_PREFIX="$basedir"
9090 additional_includedir="$basedir/include"
9093 if test "X$additional_includedir" != "X"; then
9094 if test "X$additional_includedir" != "X/usr/include"; then
9096 if test "X$additional_includedir" = "X/usr/local/include"; then
9097 if test -n "$GCC"; then
9099 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9103 if test -z "$haveit"; then
9104 for x in $CPPFLAGS $INCICONV; do
9106 acl_save_prefix="$prefix"
9107 prefix="$acl_final_prefix"
9108 acl_save_exec_prefix="$exec_prefix"
9109 exec_prefix="$acl_final_exec_prefix"
9111 exec_prefix="$acl_save_exec_prefix"
9112 prefix="$acl_save_prefix"
9114 if test "X$x" = "X-I$additional_includedir"; then
9119 if test -z "$haveit"; then
9120 if test -d "$additional_includedir"; then
9121 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9127 if test -n "$found_la"; then
9128 save_libdir="$libdir"
9130 */* | *\\*) . "$found_la" ;;
9131 *) . "./$found_la" ;;
9133 libdir="$save_libdir"
9134 for dep in $dependency_libs; do
9137 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9138 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9139 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9141 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9142 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9143 if test -n "$GCC"; then
9145 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9149 if test -z "$haveit"; then
9151 for x in $LDFLAGS $LIBICONV; do
9153 acl_save_prefix="$prefix"
9154 prefix="$acl_final_prefix"
9155 acl_save_exec_prefix="$exec_prefix"
9156 exec_prefix="$acl_final_exec_prefix"
9158 exec_prefix="$acl_save_exec_prefix"
9159 prefix="$acl_save_prefix"
9161 if test "X$x" = "X-L$additional_libdir"; then
9166 if test -z "$haveit"; then
9167 if test -d "$additional_libdir"; then
9168 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9172 for x in $LDFLAGS $LTLIBICONV; do
9174 acl_save_prefix="$prefix"
9175 prefix="$acl_final_prefix"
9176 acl_save_exec_prefix="$exec_prefix"
9177 exec_prefix="$acl_final_exec_prefix"
9179 exec_prefix="$acl_save_exec_prefix"
9180 prefix="$acl_save_prefix"
9182 if test "X$x" = "X-L$additional_libdir"; then
9187 if test -z "$haveit"; then
9188 if test -d "$additional_libdir"; then
9189 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9196 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9197 if test "$enable_rpath" != no; then
9199 for x in $rpathdirs; do
9200 if test "X$x" = "X$dir"; then
9205 if test -z "$haveit"; then
9206 rpathdirs="$rpathdirs $dir"
9209 for x in $ltrpathdirs; do
9210 if test "X$x" = "X$dir"; then
9215 if test -z "$haveit"; then
9216 ltrpathdirs="$ltrpathdirs $dir"
9221 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9224 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9227 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9228 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9234 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9235 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9241 if test "X$rpathdirs" != "X"; then
9242 if test -n "$acl_hardcode_libdir_separator"; then
9244 for found_dir in $rpathdirs; do
9245 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9247 acl_save_libdir="$libdir"
9249 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9250 libdir="$acl_save_libdir"
9251 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9253 for found_dir in $rpathdirs; do
9254 acl_save_libdir="$libdir"
9256 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9257 libdir="$acl_save_libdir"
9258 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9262 if test "X$ltrpathdirs" != "X"; then
9263 for found_dir in $ltrpathdirs; do
9264 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9279 am_save_CPPFLAGS="$CPPFLAGS"
9281 for element in $INCICONV; do
9283 for x in $CPPFLAGS; do
9285 acl_save_prefix="$prefix"
9286 prefix="$acl_final_prefix"
9287 acl_save_exec_prefix="$exec_prefix"
9288 exec_prefix="$acl_final_exec_prefix"
9290 exec_prefix="$acl_save_exec_prefix"
9291 prefix="$acl_save_prefix"
9293 if test "X$x" = "X$element"; then
9298 if test -z "$haveit"; then
9299 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9305 $as_echo_n "checking for iconv... " >&6; }
9306 if ${am_cv_func_iconv+:} false; then :
9307 $as_echo_n "(cached) " >&6
9310 am_cv_func_iconv="no, consider installing GNU libiconv"
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9321 iconv_t cd = iconv_open("","");
9322 iconv(cd,NULL,NULL,NULL,NULL);
9328 if ac_fn_c_try_link "$LINENO"; then :
9329 am_cv_func_iconv=yes
9331 rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9333 if test "$am_cv_func_iconv" != yes; then
9334 am_save_LIBS="$LIBS"
9335 LIBS="$LIBS $LIBICONV"
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9345 iconv_t cd = iconv_open("","");
9346 iconv(cd,NULL,NULL,NULL,NULL);
9352 if ac_fn_c_try_link "$LINENO"; then :
9354 am_cv_func_iconv=yes
9356 rm -f core conftest.err conftest.$ac_objext \
9357 conftest$ac_exeext conftest.$ac_ext
9358 LIBS="$am_save_LIBS"
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9363 $as_echo "$am_cv_func_iconv" >&6; }
9364 if test "$am_cv_func_iconv" = yes; then
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9366 $as_echo_n "checking for working iconv... " >&6; }
9367 if ${am_cv_func_iconv_works+:} false; then :
9368 $as_echo_n "(cached) " >&6
9371 am_save_LIBS="$LIBS"
9372 if test $am_cv_lib_iconv = yes; then
9373 LIBS="$LIBS $LIBICONV"
9375 if test "$cross_compiling" = yes; then :
9378 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9379 *) am_cv_func_iconv_works="guessing yes" ;;
9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h. */
9391 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9394 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9395 if (cd_utf8_to_88591 != (iconv_t)(-1))
9397 static const char input[] = "\342\202\254"; /* EURO SIGN */
9399 const char *inptr = input;
9400 size_t inbytesleft = strlen (input);
9402 size_t outbytesleft = sizeof (buf);
9403 size_t res = iconv (cd_utf8_to_88591,
9404 (char **) &inptr, &inbytesleft,
9405 &outptr, &outbytesleft);
9408 iconv_close (cd_utf8_to_88591);
9411 /* Test against Solaris 10 bug: Failures are not distinguishable from
9412 successful returns. */
9414 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9415 if (cd_ascii_to_88591 != (iconv_t)(-1))
9417 static const char input[] = "\263";
9419 const char *inptr = input;
9420 size_t inbytesleft = strlen (input);
9422 size_t outbytesleft = sizeof (buf);
9423 size_t res = iconv (cd_ascii_to_88591,
9424 (char **) &inptr, &inbytesleft,
9425 &outptr, &outbytesleft);
9428 iconv_close (cd_ascii_to_88591);
9431 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9433 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9434 if (cd_88591_to_utf8 != (iconv_t)(-1))
9436 static const char input[] = "\304";
9437 static char buf[2] = { (char)0xDE, (char)0xAD };
9438 const char *inptr = input;
9439 size_t inbytesleft = 1;
9441 size_t outbytesleft = 1;
9442 size_t res = iconv (cd_88591_to_utf8,
9443 (char **) &inptr, &inbytesleft,
9444 &outptr, &outbytesleft);
9445 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9447 iconv_close (cd_88591_to_utf8);
9450 #if 0 /* This bug could be worked around by the caller. */
9451 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9453 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9454 if (cd_88591_to_utf8 != (iconv_t)(-1))
9456 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9458 const char *inptr = input;
9459 size_t inbytesleft = strlen (input);
9461 size_t outbytesleft = sizeof (buf);
9462 size_t res = iconv (cd_88591_to_utf8,
9463 (char **) &inptr, &inbytesleft,
9464 &outptr, &outbytesleft);
9467 iconv_close (cd_88591_to_utf8);
9471 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9473 if (/* Try standardized names. */
9474 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9475 /* Try IRIX, OSF/1 names. */
9476 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9477 /* Try AIX names. */
9478 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9479 /* Try HP-UX names. */
9480 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9485 if ac_fn_c_try_run "$LINENO"; then :
9486 am_cv_func_iconv_works=yes
9488 am_cv_func_iconv_works=no
9490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9491 conftest.$ac_objext conftest.beam conftest.$ac_ext
9494 LIBS="$am_save_LIBS"
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9498 $as_echo "$am_cv_func_iconv_works" >&6; }
9499 case "$am_cv_func_iconv_works" in
9500 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9501 *) am_func_iconv=yes ;;
9504 am_func_iconv=no am_cv_lib_iconv=no
9506 if test "$am_func_iconv" = yes; then
9508 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9511 if test "$am_cv_lib_iconv" = yes; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9513 $as_echo_n "checking how to link with libiconv... " >&6; }
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9515 $as_echo "$LIBICONV" >&6; }
9517 CPPFLAGS="$am_save_CPPFLAGS"
9524 if test "$am_cv_func_iconv" = yes; then
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9526 $as_echo_n "checking for iconv declaration... " >&6; }
9527 if ${am_cv_proto_iconv+:} false; then :
9528 $as_echo_n "(cached) " >&6
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9540 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9541 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9554 if ac_fn_c_try_compile "$LINENO"; then :
9555 am_cv_proto_iconv_arg1=""
9557 am_cv_proto_iconv_arg1="const"
9559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9563 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9565 $am_cv_proto_iconv" >&5
9567 $am_cv_proto_iconv" >&6; }
9569 cat >>confdefs.h <<_ACEOF
9570 #define ICONV_CONST $am_cv_proto_iconv_arg1
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9590 if ac_fn_c_try_link "$LINENO"; then :
9592 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9595 rm -f core conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext conftest.$ac_ext
9598 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9601 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9602 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9603 cat >>confdefs.h <<_ACEOF
9604 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9611 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9612 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9613 argz_stringify argz_next __fsetlocking
9615 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9616 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9617 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9618 cat >>confdefs.h <<_ACEOF
9619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9626 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9628 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9634 cat >>confdefs.h <<_ACEOF
9635 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9637 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9639 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9645 cat >>confdefs.h <<_ACEOF
9646 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9652 for ac_prog in bison
9654 # Extract the first word of "$ac_prog", so it can be a program name with args.
9655 set dummy $ac_prog; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if ${ac_cv_prog_INTLBISON+:} false; then :
9659 $as_echo_n "(cached) " >&6
9661 if test -n "$INTLBISON"; then
9662 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9668 test -z "$as_dir" && as_dir=.
9669 for ac_exec_ext in '' $ac_executable_extensions; do
9670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9671 ac_cv_prog_INTLBISON="$ac_prog"
9672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9681 INTLBISON=$ac_cv_prog_INTLBISON
9682 if test -n "$INTLBISON"; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9684 $as_echo "$INTLBISON" >&6; }
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687 $as_echo "no" >&6; }
9691 test -n "$INTLBISON" && break
9694 if test -z "$INTLBISON"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9698 $as_echo_n "checking version of bison... " >&6; }
9699 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9700 case $ac_prog_version in
9701 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9702 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9703 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9704 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9707 $as_echo "$ac_prog_version" >&6; }
9709 if test $ac_verc_fail = yes; then
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9716 $as_echo_n "checking for long long int... " >&6; }
9717 if ${ac_cv_type_long_long_int+:} false; then :
9718 $as_echo_n "(cached) " >&6
9720 ac_cv_type_long_long_int=yes
9721 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9722 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9723 if test $ac_cv_type_long_long_int = yes; then
9724 if test "$cross_compiling" = yes; then :
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9732 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9733 # define LLONG_MAX (HALF - 1 + HALF)
9738 long long int n = 1;
9742 long long int m = n << i;
9745 if (LLONG_MAX / 2 < m)
9753 if ac_fn_c_try_run "$LINENO"; then :
9756 ac_cv_type_long_long_int=no
9758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9759 conftest.$ac_objext conftest.beam conftest.$ac_ext
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9766 $as_echo "$ac_cv_type_long_long_int" >&6; }
9767 if test $ac_cv_type_long_long_int = yes; then
9769 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9775 $as_echo_n "checking for wchar_t... " >&6; }
9776 if ${gt_cv_c_wchar_t+:} false; then :
9777 $as_echo_n "(cached) " >&6
9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h. */
9782 wchar_t foo = (wchar_t)'\0';
9791 if ac_fn_c_try_compile "$LINENO"; then :
9796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9799 $as_echo "$gt_cv_c_wchar_t" >&6; }
9800 if test $gt_cv_c_wchar_t = yes; then
9802 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9808 $as_echo_n "checking for wint_t... " >&6; }
9809 if ${gt_cv_c_wint_t+:} false; then :
9810 $as_echo_n "(cached) " >&6
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9815 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9817 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9818 before <wchar.h>. */
9823 wint_t foo = (wchar_t)'\0';
9832 if ac_fn_c_try_compile "$LINENO"; then :
9837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9840 $as_echo "$gt_cv_c_wint_t" >&6; }
9841 if test $gt_cv_c_wint_t = yes; then
9843 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9851 $as_echo_n "checking for intmax_t... " >&6; }
9852 if ${gt_cv_c_intmax_t+:} false; then :
9853 $as_echo_n "(cached) " >&6
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9860 #if HAVE_STDINT_H_WITH_UINTMAX
9863 #if HAVE_INTTYPES_H_WITH_UINTMAX
9864 #include <inttypes.h>
9876 if ac_fn_c_try_compile "$LINENO"; then :
9877 gt_cv_c_intmax_t=yes
9881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9884 $as_echo "$gt_cv_c_intmax_t" >&6; }
9885 if test $gt_cv_c_intmax_t = yes; then
9887 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9894 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9895 if ${gt_cv_func_printf_posix+:} false; then :
9896 $as_echo_n "(cached) " >&6
9899 if test "$cross_compiling" = yes; then :
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9904 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9910 $EGREP "notposix" >/dev/null 2>&1; then :
9911 gt_cv_func_printf_posix="guessing no"
9913 gt_cv_func_printf_posix="guessing yes"
9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h. */
9924 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9925 dollar expansion (possibly an autoconf bug). */
9926 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9927 static char buf[100];
9930 sprintf (buf, format, 33, 55);
9931 return (strcmp (buf, "55 33") != 0);
9934 if ac_fn_c_try_run "$LINENO"; then :
9935 gt_cv_func_printf_posix=yes
9937 gt_cv_func_printf_posix=no
9939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9940 conftest.$ac_objext conftest.beam conftest.$ac_ext
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9946 $as_echo "$gt_cv_func_printf_posix" >&6; }
9947 case $gt_cv_func_printf_posix in
9950 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9957 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9958 if ${ac_cv_gnu_library_2_1+:} false; then :
9959 $as_echo_n "(cached) " >&6
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9964 #include <features.h>
9965 #ifdef __GNU_LIBRARY__
9966 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9976 $EGREP "Lucky" >/dev/null 2>&1; then :
9977 ac_cv_gnu_library_2_1=yes
9979 ac_cv_gnu_library_2_1=no
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9987 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9989 GLIBC21="$ac_cv_gnu_library_2_1"
9993 for ac_header in stdint.h
9995 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9996 if test "x$ac_cv_header_stdint_h" = xyes; then :
9997 cat >>confdefs.h <<_ACEOF
9998 #define HAVE_STDINT_H 1
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10006 $as_echo_n "checking for SIZE_MAX... " >&6; }
10007 if ${gl_cv_size_max+:} false; then :
10008 $as_echo_n "(cached) " >&6
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10015 #include <limits.h>
10017 #include <stdint.h>
10024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10025 $EGREP "Found it" >/dev/null 2>&1; then :
10030 if test -z "$gl_cv_size_max"; then
10031 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10032 #include <limits.h>"; then :
10035 size_t_bits_minus_1=
10038 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10044 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10045 if test $fits_in_uint = 1; then
10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h. */
10048 #include <stddef.h>
10050 extern unsigned long foo;
10060 if ac_fn_c_try_compile "$LINENO"; then :
10063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10065 if test $fits_in_uint = 1; then
10066 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10068 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10071 gl_cv_size_max='((size_t)~(size_t)0)'
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10077 $as_echo "$gl_cv_size_max" >&6; }
10078 if test "$gl_cv_size_max" != yes; then
10080 cat >>confdefs.h <<_ACEOF
10081 #define SIZE_MAX $gl_cv_size_max
10089 for ac_header in stdint.h
10091 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10092 if test "x$ac_cv_header_stdint_h" = xyes; then :
10093 cat >>confdefs.h <<_ACEOF
10094 #define HAVE_STDINT_H 1
10105 for ac_func in $ac_func_list
10107 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10108 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10109 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10110 cat >>confdefs.h <<_ACEOF
10111 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10125 $as_echo_n "checking for working fcntl.h... " >&6; }
10126 if ${gl_cv_header_working_fcntl_h+:} false; then :
10127 $as_echo_n "(cached) " >&6
10129 if test "$cross_compiling" = yes; then :
10130 gl_cv_header_working_fcntl_h=cross-compiling
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10134 #include <sys/types.h>
10135 #include <sys/stat.h>
10137 # include <unistd.h>
10138 #else /* on Windows with MSVC */
10140 # include <stdlib.h>
10141 # defined sleep(n) _sleep ((n) * 1000)
10145 #define O_NOATIME 0
10148 #define O_NOFOLLOW 0
10150 static int const constants[] =
10152 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10153 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10160 int result = !constants;
10163 static char const sym[] = "conftest.sym";
10164 if (symlink ("/dev/null", sym) != 0)
10168 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10175 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10179 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10190 static char const file[] = "confdefs.h";
10191 int fd = open (file, O_RDONLY | O_NOATIME);
10197 if (fstat (fd, &st0) != 0)
10203 if (read (fd, &c, 1) != 1)
10207 if (close (fd) != 0)
10212 if (stat (file, &st1) != 0)
10215 if (st0.st_atime != st1.st_atime)
10227 if ac_fn_c_try_run "$LINENO"; then :
10228 gl_cv_header_working_fcntl_h=yes
10231 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10232 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10233 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10234 *) gl_cv_header_working_fcntl_h='no';;
10237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10238 conftest.$ac_objext conftest.beam conftest.$ac_ext
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10243 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10245 case $gl_cv_header_working_fcntl_h in #(
10246 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10250 cat >>confdefs.h <<_ACEOF
10251 #define HAVE_WORKING_O_NOATIME $ac_val
10255 case $gl_cv_header_working_fcntl_h in #(
10256 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10260 cat >>confdefs.h <<_ACEOF
10261 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10267 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10268 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10269 $as_echo_n "(cached) " >&6
10271 gt_save_LIBS="$LIBS"
10272 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 #include <CoreFoundation/CFPreferences.h>
10279 CFPreferencesCopyAppValue(NULL, NULL)
10284 if ac_fn_c_try_link "$LINENO"; then :
10285 gt_cv_func_CFPreferencesCopyAppValue=yes
10287 gt_cv_func_CFPreferencesCopyAppValue=no
10289 rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
10291 LIBS="$gt_save_LIBS"
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10294 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10295 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10297 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10301 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10302 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10303 $as_echo_n "(cached) " >&6
10305 gt_save_LIBS="$LIBS"
10306 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10309 #include <CoreFoundation/CFLocale.h>
10313 CFLocaleCopyCurrent();
10318 if ac_fn_c_try_link "$LINENO"; then :
10319 gt_cv_func_CFLocaleCopyCurrent=yes
10321 gt_cv_func_CFLocaleCopyCurrent=no
10323 rm -f core conftest.err conftest.$ac_objext \
10324 conftest$ac_exeext conftest.$ac_ext
10325 LIBS="$gt_save_LIBS"
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10328 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10329 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10331 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10335 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10336 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10348 case "$enable_silent_rules" in
10349 yes) INTL_DEFAULT_VERBOSITY=0;;
10350 no) INTL_DEFAULT_VERBOSITY=1;;
10351 *) INTL_DEFAULT_VERBOSITY=1;;
10355 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10356 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10360 $as_echo "#define ptrdiff_t long" >>confdefs.h
10365 for ac_header in features.h stddef.h stdlib.h string.h
10367 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10368 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10369 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10370 cat >>confdefs.h <<_ACEOF
10371 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10378 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10379 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10381 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10382 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10383 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10384 cat >>confdefs.h <<_ACEOF
10385 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10392 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10394 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10400 cat >>confdefs.h <<_ACEOF
10401 #define HAVE_DECL__SNPRINTF $ac_have_decl
10403 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10405 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10411 cat >>confdefs.h <<_ACEOF
10412 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10416 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10418 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10424 cat >>confdefs.h <<_ACEOF
10425 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10429 case $gt_cv_func_printf_posix in
10430 *yes) HAVE_POSIX_PRINTF=1 ;;
10431 *) HAVE_POSIX_PRINTF=0 ;;
10434 if test "$ac_cv_func_asprintf" = yes; then
10440 if test "$ac_cv_func_snprintf" = yes; then
10446 if test "$ac_cv_func_newlocale" = yes; then
10452 if test "$ac_cv_func_wprintf" = yes; then
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10461 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10462 if ${am_cv_langinfo_codeset+:} false; then :
10463 $as_echo_n "(cached) " >&6
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10467 #include <langinfo.h>
10471 char* cs = nl_langinfo(CODESET); return !cs;
10476 if ac_fn_c_try_link "$LINENO"; then :
10477 am_cv_langinfo_codeset=yes
10479 am_cv_langinfo_codeset=no
10481 rm -f core conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10486 $as_echo "$am_cv_langinfo_codeset" >&6; }
10487 if test $am_cv_langinfo_codeset = yes; then
10489 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10495 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10496 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10497 $as_echo_n "(cached) " >&6
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10501 #include <locale.h>
10510 if ac_fn_c_try_link "$LINENO"; then :
10511 gt_cv_val_LC_MESSAGES=yes
10513 gt_cv_val_LC_MESSAGES=no
10515 rm -f core conftest.err conftest.$ac_objext \
10516 conftest$ac_exeext conftest.$ac_ext
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10519 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10520 if test $gt_cv_val_LC_MESSAGES = yes; then
10522 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10527 if test "$enable_shared" = yes; then
10529 mingw* | cygwin*) is_woe32dll=yes ;;
10530 *) is_woe32dll=no ;;
10535 WOE32DLL=$is_woe32dll
10539 mingw* | cygwin*) is_woe32=yes ;;
10544 if test $WOE32 = yes; then
10545 if test -n "$ac_tool_prefix"; then
10546 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10547 set dummy ${ac_tool_prefix}windres; ac_word=$2
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10549 $as_echo_n "checking for $ac_word... " >&6; }
10550 if ${ac_cv_prog_WINDRES+:} false; then :
10551 $as_echo_n "(cached) " >&6
10553 if test -n "$WINDRES"; then
10554 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10557 for as_dir in $PATH
10560 test -z "$as_dir" && as_dir=.
10561 for ac_exec_ext in '' $ac_executable_extensions; do
10562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10563 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10573 WINDRES=$ac_cv_prog_WINDRES
10574 if test -n "$WINDRES"; then
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10576 $as_echo "$WINDRES" >&6; }
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579 $as_echo "no" >&6; }
10584 if test -z "$ac_cv_prog_WINDRES"; then
10585 ac_ct_WINDRES=$WINDRES
10586 # Extract the first word of "windres", so it can be a program name with args.
10587 set dummy windres; ac_word=$2
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10589 $as_echo_n "checking for $ac_word... " >&6; }
10590 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10591 $as_echo_n "(cached) " >&6
10593 if test -n "$ac_ct_WINDRES"; then
10594 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597 for as_dir in $PATH
10600 test -z "$as_dir" && as_dir=.
10601 for ac_exec_ext in '' $ac_executable_extensions; do
10602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10603 ac_cv_prog_ac_ct_WINDRES="windres"
10604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10613 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10614 if test -n "$ac_ct_WINDRES"; then
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10616 $as_echo "$ac_ct_WINDRES" >&6; }
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619 $as_echo "no" >&6; }
10622 if test "x$ac_ct_WINDRES" = x; then
10625 case $cross_compiling:$ac_tool_warned in
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10629 ac_tool_warned=yes ;;
10631 WINDRES=$ac_ct_WINDRES
10634 WINDRES="$ac_cv_prog_WINDRES"
10640 hpux*) LTLIBC="" ;;
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10671 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10672 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10673 $as_echo_n "(cached) " >&6
10675 gt_save_LIBS="$LIBS"
10676 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10679 #include <CoreFoundation/CFPreferences.h>
10683 CFPreferencesCopyAppValue(NULL, NULL)
10688 if ac_fn_c_try_link "$LINENO"; then :
10689 gt_cv_func_CFPreferencesCopyAppValue=yes
10691 gt_cv_func_CFPreferencesCopyAppValue=no
10693 rm -f core conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10695 LIBS="$gt_save_LIBS"
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10698 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10699 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10701 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10705 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10706 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10707 $as_echo_n "(cached) " >&6
10709 gt_save_LIBS="$LIBS"
10710 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10713 #include <CoreFoundation/CFLocale.h>
10717 CFLocaleCopyCurrent();
10722 if ac_fn_c_try_link "$LINENO"; then :
10723 gt_cv_func_CFLocaleCopyCurrent=yes
10725 gt_cv_func_CFLocaleCopyCurrent=no
10727 rm -f core conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
10729 LIBS="$gt_save_LIBS"
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10732 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10733 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10735 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10739 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10740 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10748 BUILD_INCLUDED_LIBINTL=no
10749 USE_INCLUDED_LIBINTL=no
10755 case " $gt_needs " in
10756 *" need-formatstring-macros "*) gt_api_version=3 ;;
10757 *" need-ngettext "*) gt_api_version=2 ;;
10758 *) gt_api_version=1 ;;
10760 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10761 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10763 if test "$USE_NLS" = "yes"; then
10764 gt_use_preinstalled_gnugettext=no
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10767 $as_echo_n "checking whether included gettext is requested... " >&6; }
10769 # Check whether --with-included-gettext was given.
10770 if test "${with_included_gettext+set}" = set; then :
10771 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10773 nls_cv_force_use_gnu_gettext=no
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10777 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10779 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10780 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10783 if test $gt_api_version -ge 3; then
10784 gt_revision_test_code='
10785 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10786 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10788 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10791 gt_revision_test_code=
10793 if test $gt_api_version -ge 2; then
10794 gt_expression_test_code=' + * ngettext ("", "", 0)'
10796 gt_expression_test_code=
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10800 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10801 if eval \${$gt_func_gnugettext_libc+:} false; then :
10802 $as_echo_n "(cached) " >&6
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10807 #include <libintl.h>
10808 $gt_revision_test_code
10809 extern int _nl_msg_cat_cntr;
10810 extern int *_nl_domain_bindings;
10816 bindtextdomain ("", "");
10817 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10823 if ac_fn_c_try_link "$LINENO"; then :
10824 eval "$gt_func_gnugettext_libc=yes"
10826 eval "$gt_func_gnugettext_libc=no"
10828 rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10831 eval ac_res=\$$gt_func_gnugettext_libc
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10833 $as_echo "$ac_res" >&6; }
10835 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10846 acl_save_prefix="$prefix"
10847 prefix="$acl_final_prefix"
10848 acl_save_exec_prefix="$exec_prefix"
10849 exec_prefix="$acl_final_exec_prefix"
10851 eval additional_includedir=\"$includedir\"
10852 eval additional_libdir=\"$libdir\"
10854 exec_prefix="$acl_save_exec_prefix"
10855 prefix="$acl_save_prefix"
10858 # Check whether --with-libintl-prefix was given.
10859 if test "${with_libintl_prefix+set}" = set; then :
10860 withval=$with_libintl_prefix;
10861 if test "X$withval" = "Xno"; then
10864 if test "X$withval" = "X"; then
10866 acl_save_prefix="$prefix"
10867 prefix="$acl_final_prefix"
10868 acl_save_exec_prefix="$exec_prefix"
10869 exec_prefix="$acl_final_exec_prefix"
10871 eval additional_includedir=\"$includedir\"
10872 eval additional_libdir=\"$libdir\"
10874 exec_prefix="$acl_save_exec_prefix"
10875 prefix="$acl_save_prefix"
10878 additional_includedir="$withval/include"
10879 additional_libdir="$withval/$acl_libdirstem"
10880 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10881 && ! test -d "$withval/$acl_libdirstem"; then
10882 additional_libdir="$withval/$acl_libdirstem2"
10896 names_already_handled=
10897 names_next_round='intl '
10898 while test -n "$names_next_round"; do
10899 names_this_round="$names_next_round"
10901 for name in $names_this_round; do
10903 for n in $names_already_handled; do
10904 if test "$n" = "$name"; then
10905 already_handled=yes
10909 if test -z "$already_handled"; then
10910 names_already_handled="$names_already_handled $name"
10911 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10912 eval value=\"\$HAVE_LIB$uppername\"
10913 if test -n "$value"; then
10914 if test "$value" = yes; then
10915 eval value=\"\$LIB$uppername\"
10916 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10917 eval value=\"\$LTLIB$uppername\"
10918 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10927 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10928 if test -n "$acl_shlibext"; then
10929 shrext=".$acl_shlibext" # typically: shrext=.so
10933 if test $use_additional = yes; then
10934 dir="$additional_libdir"
10935 if test -n "$acl_shlibext"; then
10936 if test -f "$dir/$libname$shrext"; then
10938 found_so="$dir/$libname$shrext"
10940 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10941 ver=`(cd "$dir" && \
10942 for f in "$libname$shrext".*; do echo "$f"; done \
10943 | sed -e "s,^$libname$shrext\\\\.,," \
10944 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10945 | sed 1q ) 2>/dev/null`
10946 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10948 found_so="$dir/$libname$shrext.$ver"
10951 eval library_names=\"$acl_library_names_spec\"
10952 for f in $library_names; do
10953 if test -f "$dir/$f"; then
10962 if test "X$found_dir" = "X"; then
10963 if test -f "$dir/$libname.$acl_libext"; then
10965 found_a="$dir/$libname.$acl_libext"
10968 if test "X$found_dir" != "X"; then
10969 if test -f "$dir/$libname.la"; then
10970 found_la="$dir/$libname.la"
10974 if test "X$found_dir" = "X"; then
10975 for x in $LDFLAGS $LTLIBINTL; do
10977 acl_save_prefix="$prefix"
10978 prefix="$acl_final_prefix"
10979 acl_save_exec_prefix="$exec_prefix"
10980 exec_prefix="$acl_final_exec_prefix"
10982 exec_prefix="$acl_save_exec_prefix"
10983 prefix="$acl_save_prefix"
10987 dir=`echo "X$x" | sed -e 's/^X-L//'`
10988 if test -n "$acl_shlibext"; then
10989 if test -f "$dir/$libname$shrext"; then
10991 found_so="$dir/$libname$shrext"
10993 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10994 ver=`(cd "$dir" && \
10995 for f in "$libname$shrext".*; do echo "$f"; done \
10996 | sed -e "s,^$libname$shrext\\\\.,," \
10997 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10998 | sed 1q ) 2>/dev/null`
10999 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11001 found_so="$dir/$libname$shrext.$ver"
11004 eval library_names=\"$acl_library_names_spec\"
11005 for f in $library_names; do
11006 if test -f "$dir/$f"; then
11015 if test "X$found_dir" = "X"; then
11016 if test -f "$dir/$libname.$acl_libext"; then
11018 found_a="$dir/$libname.$acl_libext"
11021 if test "X$found_dir" != "X"; then
11022 if test -f "$dir/$libname.la"; then
11023 found_la="$dir/$libname.la"
11028 if test "X$found_dir" != "X"; then
11033 if test "X$found_dir" != "X"; then
11034 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11035 if test "X$found_so" != "X"; then
11036 if test "$enable_rpath" = no \
11037 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11038 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11039 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11042 for x in $ltrpathdirs; do
11043 if test "X$x" = "X$found_dir"; then
11048 if test -z "$haveit"; then
11049 ltrpathdirs="$ltrpathdirs $found_dir"
11051 if test "$acl_hardcode_direct" = yes; then
11052 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11054 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11055 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11057 for x in $rpathdirs; do
11058 if test "X$x" = "X$found_dir"; then
11063 if test -z "$haveit"; then
11064 rpathdirs="$rpathdirs $found_dir"
11068 for x in $LDFLAGS $LIBINTL; do
11070 acl_save_prefix="$prefix"
11071 prefix="$acl_final_prefix"
11072 acl_save_exec_prefix="$exec_prefix"
11073 exec_prefix="$acl_final_exec_prefix"
11075 exec_prefix="$acl_save_exec_prefix"
11076 prefix="$acl_save_prefix"
11078 if test "X$x" = "X-L$found_dir"; then
11083 if test -z "$haveit"; then
11084 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11086 if test "$acl_hardcode_minus_L" != no; then
11087 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11089 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11095 if test "X$found_a" != "X"; then
11096 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11098 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11101 additional_includedir=
11102 case "$found_dir" in
11103 */$acl_libdirstem | */$acl_libdirstem/)
11104 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11105 if test "$name" = 'intl'; then
11106 LIBINTL_PREFIX="$basedir"
11108 additional_includedir="$basedir/include"
11110 */$acl_libdirstem2 | */$acl_libdirstem2/)
11111 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11112 if test "$name" = 'intl'; then
11113 LIBINTL_PREFIX="$basedir"
11115 additional_includedir="$basedir/include"
11118 if test "X$additional_includedir" != "X"; then
11119 if test "X$additional_includedir" != "X/usr/include"; then
11121 if test "X$additional_includedir" = "X/usr/local/include"; then
11122 if test -n "$GCC"; then
11124 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11128 if test -z "$haveit"; then
11129 for x in $CPPFLAGS $INCINTL; do
11131 acl_save_prefix="$prefix"
11132 prefix="$acl_final_prefix"
11133 acl_save_exec_prefix="$exec_prefix"
11134 exec_prefix="$acl_final_exec_prefix"
11136 exec_prefix="$acl_save_exec_prefix"
11137 prefix="$acl_save_prefix"
11139 if test "X$x" = "X-I$additional_includedir"; then
11144 if test -z "$haveit"; then
11145 if test -d "$additional_includedir"; then
11146 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11152 if test -n "$found_la"; then
11153 save_libdir="$libdir"
11154 case "$found_la" in
11155 */* | *\\*) . "$found_la" ;;
11156 *) . "./$found_la" ;;
11158 libdir="$save_libdir"
11159 for dep in $dependency_libs; do
11162 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11163 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11164 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11166 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11167 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11168 if test -n "$GCC"; then
11170 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11174 if test -z "$haveit"; then
11176 for x in $LDFLAGS $LIBINTL; do
11178 acl_save_prefix="$prefix"
11179 prefix="$acl_final_prefix"
11180 acl_save_exec_prefix="$exec_prefix"
11181 exec_prefix="$acl_final_exec_prefix"
11183 exec_prefix="$acl_save_exec_prefix"
11184 prefix="$acl_save_prefix"
11186 if test "X$x" = "X-L$additional_libdir"; then
11191 if test -z "$haveit"; then
11192 if test -d "$additional_libdir"; then
11193 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11197 for x in $LDFLAGS $LTLIBINTL; do
11199 acl_save_prefix="$prefix"
11200 prefix="$acl_final_prefix"
11201 acl_save_exec_prefix="$exec_prefix"
11202 exec_prefix="$acl_final_exec_prefix"
11204 exec_prefix="$acl_save_exec_prefix"
11205 prefix="$acl_save_prefix"
11207 if test "X$x" = "X-L$additional_libdir"; then
11212 if test -z "$haveit"; then
11213 if test -d "$additional_libdir"; then
11214 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11221 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11222 if test "$enable_rpath" != no; then
11224 for x in $rpathdirs; do
11225 if test "X$x" = "X$dir"; then
11230 if test -z "$haveit"; then
11231 rpathdirs="$rpathdirs $dir"
11234 for x in $ltrpathdirs; do
11235 if test "X$x" = "X$dir"; then
11240 if test -z "$haveit"; then
11241 ltrpathdirs="$ltrpathdirs $dir"
11246 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11249 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11252 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11253 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11259 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11260 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11266 if test "X$rpathdirs" != "X"; then
11267 if test -n "$acl_hardcode_libdir_separator"; then
11269 for found_dir in $rpathdirs; do
11270 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11272 acl_save_libdir="$libdir"
11274 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11275 libdir="$acl_save_libdir"
11276 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11278 for found_dir in $rpathdirs; do
11279 acl_save_libdir="$libdir"
11280 libdir="$found_dir"
11281 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11282 libdir="$acl_save_libdir"
11283 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11287 if test "X$ltrpathdirs" != "X"; then
11288 for found_dir in $ltrpathdirs; do
11289 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11299 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11300 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11301 $as_echo_n "(cached) " >&6
11303 gt_save_CPPFLAGS="$CPPFLAGS"
11304 CPPFLAGS="$CPPFLAGS $INCINTL"
11305 gt_save_LIBS="$LIBS"
11306 LIBS="$LIBS $LIBINTL"
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11310 #include <libintl.h>
11311 $gt_revision_test_code
11312 extern int _nl_msg_cat_cntr;
11317 const char *_nl_expand_alias (const char *);
11323 bindtextdomain ("", "");
11324 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11330 if ac_fn_c_try_link "$LINENO"; then :
11331 eval "$gt_func_gnugettext_libintl=yes"
11333 eval "$gt_func_gnugettext_libintl=no"
11335 rm -f core conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11338 LIBS="$LIBS $LIBICONV"
11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11342 #include <libintl.h>
11343 $gt_revision_test_code
11344 extern int _nl_msg_cat_cntr;
11349 const char *_nl_expand_alias (const char *);
11355 bindtextdomain ("", "");
11356 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11362 if ac_fn_c_try_link "$LINENO"; then :
11363 LIBINTL="$LIBINTL $LIBICONV"
11364 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11365 eval "$gt_func_gnugettext_libintl=yes"
11368 rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11371 CPPFLAGS="$gt_save_CPPFLAGS"
11372 LIBS="$gt_save_LIBS"
11374 eval ac_res=\$$gt_func_gnugettext_libintl
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11376 $as_echo "$ac_res" >&6; }
11379 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11380 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11381 && test "$PACKAGE" != gettext-runtime \
11382 && test "$PACKAGE" != gettext-tools; }; then
11383 gt_use_preinstalled_gnugettext=yes
11391 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11392 nls_cv_use_gnu_gettext=yes
11396 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11397 BUILD_INCLUDED_LIBINTL=yes
11398 USE_INCLUDED_LIBINTL=yes
11399 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11400 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11401 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11405 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11406 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11411 if test -n "$INTL_MACOSX_LIBS"; then
11412 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11413 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11414 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11415 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11419 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11420 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11422 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11430 $as_echo_n "checking whether to use NLS... " >&6; }
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11432 $as_echo "$USE_NLS" >&6; }
11433 if test "$USE_NLS" = "yes"; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11435 $as_echo_n "checking where the gettext function comes from... " >&6; }
11436 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11437 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11438 gt_source="external libintl"
11443 gt_source="included intl directory"
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11446 $as_echo "$gt_source" >&6; }
11449 if test "$USE_NLS" = "yes"; then
11451 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11452 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11454 $as_echo_n "checking how to link with libintl... " >&6; }
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11456 $as_echo "$LIBINTL" >&6; }
11458 for element in $INCINTL; do
11460 for x in $CPPFLAGS; do
11462 acl_save_prefix="$prefix"
11463 prefix="$acl_final_prefix"
11464 acl_save_exec_prefix="$exec_prefix"
11465 exec_prefix="$acl_final_exec_prefix"
11467 exec_prefix="$acl_save_exec_prefix"
11468 prefix="$acl_save_prefix"
11470 if test "X$x" = "X$element"; then
11475 if test -z "$haveit"; then
11476 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11483 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11486 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11494 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11495 BUILD_INCLUDED_LIBINTL=yes
11502 nls_cv_header_intl=
11503 nls_cv_header_libgt=
11515 if test "$USE_INCLUDED_LIBINTL" = yes; then
11516 INTLOBJS="\$(GETTOBJS)"
11520 INTL_LIBTOOL_SUFFIX_PREFIX=
11524 INTLLIBS="$LIBINTL"
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11533 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11535 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11536 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11537 $as_echo_n "(cached) " >&6
11539 cat >conftest.make <<\_ACEOF
11542 @echo '@@@%%%=$(MAKE)=@@@%%%'
11544 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11545 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11546 *@@@%%%=?*=@@@%%%*)
11547 eval ac_cv_prog_make_${ac_make}_set=yes;;
11549 eval ac_cv_prog_make_${ac_make}_set=no;;
11551 rm -f conftest.make
11553 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11555 $as_echo "yes" >&6; }
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559 $as_echo "no" >&6; }
11560 SET_MAKE="MAKE=${MAKE-make}"
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11564 $as_echo_n "checking for GNU make... " >&6; }
11565 if ${_cv_gnu_make_command+:} false; then :
11566 $as_echo_n "(cached) " >&6
11568 _cv_gnu_make_command='' ;
11569 for a in "$MAKE" make gmake gnumake ; do
11570 if test -z "$a" ; then continue ; fi ;
11571 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11572 _cv_gnu_make_command=$a ;
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11579 $as_echo "$_cv_gnu_make_command" >&6; } ;
11580 if test "x$_cv_gnu_make_command" != "x" ; then
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11587 $as_echo "\"Not found\"" >&6; };
11592 # Extract the first word of "ln", so it can be a program name with args.
11593 set dummy ln; ac_word=$2
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11595 $as_echo_n "checking for $ac_word... " >&6; }
11596 if ${ac_cv_path_LN+:} false; then :
11597 $as_echo_n "(cached) " >&6
11601 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605 for as_dir in $PATH
11608 test -z "$as_dir" && as_dir=.
11609 for ac_exec_ext in '' $ac_executable_extensions; do
11610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11611 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11619 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11624 if test -n "$LN"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11626 $as_echo "$LN" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11634 $as_echo_n "checking whether ln -s works... " >&6; }
11636 if test "$LN_S" = "ln -s"; then
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11638 $as_echo "yes" >&6; }
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11641 $as_echo "no, using $LN_S" >&6; }
11644 # Extract the first word of "mv", so it can be a program name with args.
11645 set dummy mv; ac_word=$2
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647 $as_echo_n "checking for $ac_word... " >&6; }
11648 if ${ac_cv_path_MV+:} false; then :
11649 $as_echo_n "(cached) " >&6
11653 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657 for as_dir in $PATH
11660 test -z "$as_dir" && as_dir=.
11661 for ac_exec_ext in '' $ac_executable_extensions; do
11662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11663 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11671 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11676 if test -n "$MV"; then
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11678 $as_echo "$MV" >&6; }
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681 $as_echo "no" >&6; }
11685 # Extract the first word of "cp", so it can be a program name with args.
11686 set dummy cp; ac_word=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if ${ac_cv_path_CP+:} false; then :
11690 $as_echo_n "(cached) " >&6
11694 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in $PATH
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
11703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11704 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11717 if test -n "$CP"; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11719 $as_echo "$CP" >&6; }
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722 $as_echo "no" >&6; }
11726 # Extract the first word of "rm", so it can be a program name with args.
11727 set dummy rm; ac_word=$2
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729 $as_echo_n "checking for $ac_word... " >&6; }
11730 if ${ac_cv_path_RM+:} false; then :
11731 $as_echo_n "(cached) " >&6
11735 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739 for as_dir in $PATH
11742 test -z "$as_dir" && as_dir=.
11743 for ac_exec_ext in '' $ac_executable_extensions; do
11744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11745 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11758 if test -n "$RM"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11760 $as_echo "$RM" >&6; }
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763 $as_echo "no" >&6; }
11767 # Extract the first word of "chmod", so it can be a program name with args.
11768 set dummy chmod; ac_word=$2
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770 $as_echo_n "checking for $ac_word... " >&6; }
11771 if ${ac_cv_path_CHMOD+:} false; then :
11772 $as_echo_n "(cached) " >&6
11776 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780 for as_dir in $PATH
11783 test -z "$as_dir" && as_dir=.
11784 for ac_exec_ext in '' $ac_executable_extensions; do
11785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11786 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11794 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11798 CHMOD=$ac_cv_path_CHMOD
11799 if test -n "$CHMOD"; then
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11801 $as_echo "$CHMOD" >&6; }
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804 $as_echo "no" >&6; }
11808 for ac_prog in gawk mawk nawk awk
11810 # Extract the first word of "$ac_prog", so it can be a program name with args.
11811 set dummy $ac_prog; ac_word=$2
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813 $as_echo_n "checking for $ac_word... " >&6; }
11814 if ${ac_cv_prog_AWK+:} false; then :
11815 $as_echo_n "(cached) " >&6
11817 if test -n "$AWK"; then
11818 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821 for as_dir in $PATH
11824 test -z "$as_dir" && as_dir=.
11825 for ac_exec_ext in '' $ac_executable_extensions; do
11826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11827 ac_cv_prog_AWK="$ac_prog"
11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837 AWK=$ac_cv_prog_AWK
11838 if test -n "$AWK"; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11840 $as_echo "$AWK" >&6; }
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11847 test -n "$AWK" && break
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11851 $as_echo_n "checking for egrep... " >&6; }
11852 if ${ac_cv_path_EGREP+:} false; then :
11853 $as_echo_n "(cached) " >&6
11855 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11856 then ac_cv_path_EGREP="$GREP -E"
11858 if test -z "$EGREP"; then
11859 ac_path_EGREP_found=false
11860 # Loop through the user's path and test for each of PROGNAME-LIST
11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11865 test -z "$as_dir" && as_dir=.
11866 for ac_prog in egrep; do
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11869 as_fn_executable_p "$ac_path_EGREP" || continue
11870 # Check for GNU ac_path_EGREP and select it if it is found.
11871 # Check for GNU $ac_path_EGREP
11872 case `"$ac_path_EGREP" --version 2>&1` in
11874 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11877 $as_echo_n 0123456789 >"conftest.in"
11880 cat "conftest.in" "conftest.in" >"conftest.tmp"
11881 mv "conftest.tmp" "conftest.in"
11882 cp "conftest.in" "conftest.nl"
11883 $as_echo 'EGREP' >> "conftest.nl"
11884 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11885 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11886 as_fn_arith $ac_count + 1 && ac_count=$as_val
11887 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11888 # Best one so far, save it but keep looking for a better one
11889 ac_cv_path_EGREP="$ac_path_EGREP"
11890 ac_path_EGREP_max=$ac_count
11892 # 10*(2^10) chars as input seems more than enough
11893 test $ac_count -gt 10 && break
11895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11898 $ac_path_EGREP_found && break 3
11903 if test -z "$ac_cv_path_EGREP"; then
11904 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11907 ac_cv_path_EGREP=$EGREP
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11913 $as_echo "$ac_cv_path_EGREP" >&6; }
11914 EGREP="$ac_cv_path_EGREP"
11917 # Extract the first word of "sed", so it can be a program name with args.
11918 set dummy sed; ac_word=$2
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11920 $as_echo_n "checking for $ac_word... " >&6; }
11921 if ${ac_cv_path_SED+:} false; then :
11922 $as_echo_n "(cached) " >&6
11926 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930 for as_dir in $PATH
11933 test -z "$as_dir" && as_dir=.
11934 for ac_exec_ext in '' $ac_executable_extensions; do
11935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11936 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11944 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11948 SED=$ac_cv_path_SED
11949 if test -n "$SED"; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11951 $as_echo "$SED" >&6; }
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954 $as_echo "no" >&6; }
11958 # Extract the first word of "perl", so it can be a program name with args.
11959 set dummy perl; ac_word=$2
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961 $as_echo_n "checking for $ac_word... " >&6; }
11962 if ${ac_cv_path_PERL+:} false; then :
11963 $as_echo_n "(cached) " >&6
11967 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971 for as_dir in $PATH
11974 test -z "$as_dir" && as_dir=.
11975 for ac_exec_ext in '' $ac_executable_extensions; do
11976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11977 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11989 PERL=$ac_cv_path_PERL
11990 if test -n "$PERL"; then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11992 $as_echo "$PERL" >&6; }
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995 $as_echo "no" >&6; }
11999 # Extract the first word of "ldconfig", so it can be a program name with args.
12000 set dummy ldconfig; ac_word=$2
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002 $as_echo_n "checking for $ac_word... " >&6; }
12003 if ${ac_cv_path_LDCONFIG+:} false; then :
12004 $as_echo_n "(cached) " >&6
12008 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12018 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12030 LDCONFIG=$ac_cv_path_LDCONFIG
12031 if test -n "$LDCONFIG"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12033 $as_echo "$LDCONFIG" >&6; }
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12040 if test -n "$ac_tool_prefix"; then
12041 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12042 set dummy ${ac_tool_prefix}ar; ac_word=$2
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12044 $as_echo_n "checking for $ac_word... " >&6; }
12045 if ${ac_cv_prog_AR+:} false; then :
12046 $as_echo_n "(cached) " >&6
12048 if test -n "$AR"; then
12049 ac_cv_prog_AR="$AR" # Let the user override the test.
12051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in $PATH
12055 test -z "$as_dir" && as_dir=.
12056 for ac_exec_ext in '' $ac_executable_extensions; do
12057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12058 ac_cv_prog_AR="${ac_tool_prefix}ar"
12059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12069 if test -n "$AR"; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12071 $as_echo "$AR" >&6; }
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12079 if test -z "$ac_cv_prog_AR"; then
12081 # Extract the first word of "ar", so it can be a program name with args.
12082 set dummy ar; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12086 $as_echo_n "(cached) " >&6
12088 if test -n "$ac_ct_AR"; then
12089 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12095 test -z "$as_dir" && as_dir=.
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12098 ac_cv_prog_ac_ct_AR="ar"
12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12108 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12109 if test -n "$ac_ct_AR"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12111 $as_echo "$ac_ct_AR" >&6; }
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12117 if test "x$ac_ct_AR" = x; then
12120 case $cross_compiling:$ac_tool_warned in
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12124 ac_tool_warned=yes ;;
12129 AR="$ac_cv_prog_AR"
12132 if test -n "$ac_tool_prefix"; then
12133 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12134 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12136 $as_echo_n "checking for $ac_word... " >&6; }
12137 if ${ac_cv_prog_RANLIB+:} false; then :
12138 $as_echo_n "(cached) " >&6
12140 if test -n "$RANLIB"; then
12141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144 for as_dir in $PATH
12147 test -z "$as_dir" && as_dir=.
12148 for ac_exec_ext in '' $ac_executable_extensions; do
12149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12150 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12160 RANLIB=$ac_cv_prog_RANLIB
12161 if test -n "$RANLIB"; then
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12163 $as_echo "$RANLIB" >&6; }
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166 $as_echo "no" >&6; }
12171 if test -z "$ac_cv_prog_RANLIB"; then
12172 ac_ct_RANLIB=$RANLIB
12173 # Extract the first word of "ranlib", so it can be a program name with args.
12174 set dummy ranlib; ac_word=$2
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12176 $as_echo_n "checking for $ac_word... " >&6; }
12177 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12178 $as_echo_n "(cached) " >&6
12180 if test -n "$ac_ct_RANLIB"; then
12181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184 for as_dir in $PATH
12187 test -z "$as_dir" && as_dir=.
12188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12190 ac_cv_prog_ac_ct_RANLIB="ranlib"
12191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12201 if test -n "$ac_ct_RANLIB"; then
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12203 $as_echo "$ac_ct_RANLIB" >&6; }
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12209 if test "x$ac_ct_RANLIB" = x; then
12212 case $cross_compiling:$ac_tool_warned in
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12216 ac_tool_warned=yes ;;
12218 RANLIB=$ac_ct_RANLIB
12221 RANLIB="$ac_cv_prog_RANLIB"
12224 if test -n "$ac_tool_prefix"; then
12225 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12226 set dummy ${ac_tool_prefix}strip; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if ${ac_cv_prog_STRIP+:} false; then :
12230 $as_echo_n "(cached) " >&6
12232 if test -n "$STRIP"; then
12233 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 STRIP=$ac_cv_prog_STRIP
12253 if test -n "$STRIP"; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12255 $as_echo "$STRIP" >&6; }
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258 $as_echo "no" >&6; }
12263 if test -z "$ac_cv_prog_STRIP"; then
12265 # Extract the first word of "strip", so it can be a program name with args.
12266 set dummy strip; ac_word=$2
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12268 $as_echo_n "checking for $ac_word... " >&6; }
12269 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12270 $as_echo_n "(cached) " >&6
12272 if test -n "$ac_ct_STRIP"; then
12273 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276 for as_dir in $PATH
12279 test -z "$as_dir" && as_dir=.
12280 for ac_exec_ext in '' $ac_executable_extensions; do
12281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12282 ac_cv_prog_ac_ct_STRIP="strip"
12283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12293 if test -n "$ac_ct_STRIP"; then
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12295 $as_echo "$ac_ct_STRIP" >&6; }
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12301 if test "x$ac_ct_STRIP" = x; then
12304 case $cross_compiling:$ac_tool_warned in
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12308 ac_tool_warned=yes ;;
12313 STRIP="$ac_cv_prog_STRIP"
12316 # Extract the first word of "makeinfo", so it can be a program name with args.
12317 set dummy makeinfo; ac_word=$2
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12319 $as_echo_n "checking for $ac_word... " >&6; }
12320 if ${ac_cv_prog_MAKEINFO+:} false; then :
12321 $as_echo_n "(cached) " >&6
12323 if test -n "$MAKEINFO"; then
12324 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327 for as_dir in $PATH
12330 test -z "$as_dir" && as_dir=.
12331 for ac_exec_ext in '' $ac_executable_extensions; do
12332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12333 ac_cv_prog_MAKEINFO="makeinfo"
12334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 MAKEINFO=$ac_cv_prog_MAKEINFO
12344 if test -n "$MAKEINFO"; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12346 $as_echo "$MAKEINFO" >&6; }
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; }
12353 if test "_$MAKEINFO" = "_"; then
12354 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12356 case "$MAKEINFO" in
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12359 *** Makeinfo is missing. Info documentation will not be built." >&5
12360 $as_echo "$as_me: WARNING:
12361 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12369 # See if we need a separate native compiler.
12370 if test $cross_compiling = no; then
12374 for ac_prog in gcc cc
12376 # Extract the first word of "$ac_prog", so it can be a program name with args.
12377 set dummy $ac_prog; ac_word=$2
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379 $as_echo_n "checking for $ac_word... " >&6; }
12380 if ${ac_cv_prog_BUILD_CC+:} false; then :
12381 $as_echo_n "(cached) " >&6
12383 if test -n "$BUILD_CC"; then
12384 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387 for as_dir in $PATH
12390 test -z "$as_dir" && as_dir=.
12391 for ac_exec_ext in '' $ac_executable_extensions; do
12392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12393 ac_cv_prog_BUILD_CC="$ac_prog"
12394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403 BUILD_CC=$ac_cv_prog_BUILD_CC
12404 if test -n "$BUILD_CC"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12406 $as_echo "$BUILD_CC" >&6; }
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12413 test -n "$BUILD_CC" && break
12417 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
12419 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12420 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12422 cat >>confdefs.h <<_ACEOF
12423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12430 for ac_header in net/if.h
12432 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12433 #if HAVE_SYS_TYPES_H
12434 #include <sys/types.h>
12436 #if HAVE_SYS_SOCKET
12437 #include <sys/socket.h>
12441 if test "x$ac_cv_header_net_if_h" = xyes; then :
12442 cat >>confdefs.h <<_ACEOF
12443 #define HAVE_NET_IF_H 1
12450 for ac_func in vprintf
12452 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12453 if test "x$ac_cv_func_vprintf" = xyes; then :
12454 cat >>confdefs.h <<_ACEOF
12455 #define HAVE_VPRINTF 1
12458 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12459 if test "x$ac_cv_func__doprnt" = xyes; then :
12461 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12469 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12471 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12473 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12477 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12478 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12480 cat >>confdefs.h <<_ACEOF
12481 #define HAVE_STRUCT_STAT_ST_ATIM 1
12487 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12489 if test "x$ac_cv_type_ssize_t" = xyes; then :
12491 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12495 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12497 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12499 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12503 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12504 #define _LARGEFILE64_SOURCE
12505 #include <unistd.h>
12507 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12509 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12513 # The cast to long int works around a bug in the HP C Compiler
12514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12516 # This bug is HP SR number 8606223364.
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12518 $as_echo_n "checking size of short... " >&6; }
12519 if ${ac_cv_sizeof_short+:} false; then :
12520 $as_echo_n "(cached) " >&6
12522 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12525 if test "$ac_cv_type_short" = yes; then
12526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12528 as_fn_error 77 "cannot compute sizeof (short)
12529 See \`config.log' for more details" "$LINENO" 5; }
12531 ac_cv_sizeof_short=0
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12537 $as_echo "$ac_cv_sizeof_short" >&6; }
12541 cat >>confdefs.h <<_ACEOF
12542 #define SIZEOF_SHORT $ac_cv_sizeof_short
12546 # The cast to long int works around a bug in the HP C Compiler
12547 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12548 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12549 # This bug is HP SR number 8606223364.
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12551 $as_echo_n "checking size of int... " >&6; }
12552 if ${ac_cv_sizeof_int+:} false; then :
12553 $as_echo_n "(cached) " >&6
12555 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12558 if test "$ac_cv_type_int" = yes; then
12559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12561 as_fn_error 77 "cannot compute sizeof (int)
12562 See \`config.log' for more details" "$LINENO" 5; }
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12570 $as_echo "$ac_cv_sizeof_int" >&6; }
12574 cat >>confdefs.h <<_ACEOF
12575 #define SIZEOF_INT $ac_cv_sizeof_int
12579 # The cast to long int works around a bug in the HP C Compiler
12580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12582 # This bug is HP SR number 8606223364.
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12584 $as_echo_n "checking size of long... " >&6; }
12585 if ${ac_cv_sizeof_long+:} false; then :
12586 $as_echo_n "(cached) " >&6
12588 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12591 if test "$ac_cv_type_long" = yes; then
12592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12594 as_fn_error 77 "cannot compute sizeof (long)
12595 See \`config.log' for more details" "$LINENO" 5; }
12597 ac_cv_sizeof_long=0
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12603 $as_echo "$ac_cv_sizeof_long" >&6; }
12607 cat >>confdefs.h <<_ACEOF
12608 #define SIZEOF_LONG $ac_cv_sizeof_long
12612 # The cast to long int works around a bug in the HP C Compiler
12613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12615 # This bug is HP SR number 8606223364.
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12617 $as_echo_n "checking size of long long... " >&6; }
12618 if ${ac_cv_sizeof_long_long+:} false; then :
12619 $as_echo_n "(cached) " >&6
12621 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12624 if test "$ac_cv_type_long_long" = yes; then
12625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12627 as_fn_error 77 "cannot compute sizeof (long long)
12628 See \`config.log' for more details" "$LINENO" 5; }
12630 ac_cv_sizeof_long_long=0
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12636 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12640 cat >>confdefs.h <<_ACEOF
12641 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12645 # The cast to long int works around a bug in the HP C Compiler
12646 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12647 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12648 # This bug is HP SR number 8606223364.
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12650 $as_echo_n "checking size of off_t... " >&6; }
12651 if ${ac_cv_sizeof_off_t+:} false; then :
12652 $as_echo_n "(cached) " >&6
12654 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12657 if test "$ac_cv_type_off_t" = yes; then
12658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12660 as_fn_error 77 "cannot compute sizeof (off_t)
12661 See \`config.log' for more details" "$LINENO" 5; }
12663 ac_cv_sizeof_off_t=0
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12669 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12673 cat >>confdefs.h <<_ACEOF
12674 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12678 SIZEOF_SHORT=$ac_cv_sizeof_short
12679 SIZEOF_INT=$ac_cv_sizeof_int
12680 SIZEOF_LONG=$ac_cv_sizeof_long
12681 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12682 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12689 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12690 if ${ac_cv_c_bigendian+:} false; then :
12691 $as_echo_n "(cached) " >&6
12693 ac_cv_c_bigendian=unknown
12694 # See if we're dealing with a universal compiler.
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12697 #ifndef __APPLE_CC__
12698 not a universal capable compiler
12703 if ac_fn_c_try_compile "$LINENO"; then :
12705 # Check for potential -arch flags. It is not universal unless
12706 # there are at least two -arch flags with different values.
12709 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12710 if test -n "$ac_prev"; then
12712 i?86 | x86_64 | ppc | ppc64)
12713 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12716 ac_cv_c_bigendian=universal
12722 elif test "x$ac_word" = "x-arch"; then
12727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12728 if test $ac_cv_c_bigendian = unknown; then
12729 # See if sys/param.h defines the BYTE_ORDER macro.
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12732 #include <sys/types.h>
12733 #include <sys/param.h>
12738 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12739 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12741 bogus endian macros
12748 if ac_fn_c_try_compile "$LINENO"; then :
12749 # It does; now see whether it defined to BIG_ENDIAN or not.
12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h. */
12752 #include <sys/types.h>
12753 #include <sys/param.h>
12758 #if BYTE_ORDER != BIG_ENDIAN
12766 if ac_fn_c_try_compile "$LINENO"; then :
12767 ac_cv_c_bigendian=yes
12769 ac_cv_c_bigendian=no
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12775 if test $ac_cv_c_bigendian = unknown; then
12776 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12779 #include <limits.h>
12784 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12785 bogus endian macros
12792 if ac_fn_c_try_compile "$LINENO"; then :
12793 # It does; now see whether it defined to _BIG_ENDIAN or not.
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796 #include <limits.h>
12801 #ifndef _BIG_ENDIAN
12809 if ac_fn_c_try_compile "$LINENO"; then :
12810 ac_cv_c_bigendian=yes
12812 ac_cv_c_bigendian=no
12814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818 if test $ac_cv_c_bigendian = unknown; then
12819 # Compile a test program.
12820 if test "$cross_compiling" = yes; then :
12821 # Try to guess by grepping values from an object file.
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12824 short int ascii_mm[] =
12825 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12826 short int ascii_ii[] =
12827 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12828 int use_ascii (int i) {
12829 return ascii_mm[i] + ascii_ii[i];
12831 short int ebcdic_ii[] =
12832 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12833 short int ebcdic_mm[] =
12834 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12835 int use_ebcdic (int i) {
12836 return ebcdic_mm[i] + ebcdic_ii[i];
12843 return use_ascii (foo) == use_ebcdic (foo);
12848 if ac_fn_c_try_compile "$LINENO"; then :
12849 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12850 ac_cv_c_bigendian=yes
12852 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12853 if test "$ac_cv_c_bigendian" = unknown; then
12854 ac_cv_c_bigendian=no
12856 # finding both strings is unlikely to happen, but who knows?
12857 ac_cv_c_bigendian=unknown
12861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12864 /* end confdefs.h. */
12865 $ac_includes_default
12870 /* Are we little or big endian? From Harbison&Steele. */
12874 char c[sizeof (long int)];
12877 return u.c[sizeof (long int) - 1] == 1;
12883 if ac_fn_c_try_run "$LINENO"; then :
12884 ac_cv_c_bigendian=no
12886 ac_cv_c_bigendian=yes
12888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12889 conftest.$ac_objext conftest.beam conftest.$ac_ext
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12895 $as_echo "$ac_cv_c_bigendian" >&6; }
12896 case $ac_cv_c_bigendian in #(
12898 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12904 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12908 as_fn_error $? "unknown endianness
12909 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12912 if test $cross_compiling = no; then
12913 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12915 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12917 ASM_TYPES_HEADER=./asm_types.h
12919 echo "/* These defines are needed for the public ext2fs.h header file */" \
12921 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12922 uniq tmp_config.$$ >> public_config.h
12924 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12926 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12927 uniq tmp_config.$$ >> public_config.h
12929 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12931 rm -f tmp_config.$$
12932 PUBLIC_CONFIG_HEADER=./public_config.h
12934 for ac_header in inttypes.h
12936 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12937 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12938 cat >>confdefs.h <<_ACEOF
12939 #define HAVE_INTTYPES_H 1
12946 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12947 if test "x$ac_cv_type_intptr_t" = xyes; then :
12949 cat >>confdefs.h <<_ACEOF
12950 #define HAVE_INTPTR_T 1
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12957 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12958 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12959 $as_echo_n "(cached) " >&6
12961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962 /* end confdefs.h. */
12963 #include <sys/stat.h>
12967 struct stat stat; stat.st_flags = 0;
12972 if ac_fn_c_try_compile "$LINENO"; then :
12973 e2fsprogs_cv_struct_st_flags=yes
12975 e2fsprogs_cv_struct_st_flags=no
12977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12981 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
12982 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12984 $as_echo_n "checking whether st_flags field is useful... " >&6; }
12985 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
12986 $as_echo_n "(cached) " >&6
12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989 /* end confdefs.h. */
12990 #include <sys/stat.h>
12994 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12999 if ac_fn_c_try_compile "$LINENO"; then :
13000 e2fsprogs_cv_struct_st_flags_immut=yes
13002 e2fsprogs_cv_struct_st_flags_immut=no
13004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13008 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13009 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13011 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13015 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13016 #include <sys/socket.h>
13018 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13020 cat >>confdefs.h <<_ACEOF
13021 #define HAVE_SA_LEN 1
13026 if test -n "$BLKID_CMT"; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13028 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13029 if ${ac_cv_search_blkid_probe_all+:} false; then :
13030 $as_echo_n "(cached) " >&6
13032 ac_func_search_save_LIBS=$LIBS
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13036 /* Override any GCC internal prototype to avoid an error.
13037 Use char because int might match the return type of a GCC
13038 builtin and then its argument prototype would still apply. */
13042 char blkid_probe_all ();
13046 return blkid_probe_all ();
13051 for ac_lib in '' blkid; do
13052 if test -z "$ac_lib"; then
13053 ac_res="none required"
13056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13058 if ac_fn_c_try_link "$LINENO"; then :
13059 ac_cv_search_blkid_probe_all=$ac_res
13061 rm -f core conftest.err conftest.$ac_objext \
13063 if ${ac_cv_search_blkid_probe_all+:} false; then :
13067 if ${ac_cv_search_blkid_probe_all+:} false; then :
13070 ac_cv_search_blkid_probe_all=no
13072 rm conftest.$ac_ext
13073 LIBS=$ac_func_search_save_LIBS
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13076 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13077 ac_res=$ac_cv_search_blkid_probe_all
13078 if test "$ac_res" != no; then :
13079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13084 for ac_func in __secure_getenv backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
13086 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13087 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13088 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13089 cat >>confdefs.h <<_ACEOF
13090 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13098 $as_echo_n "checking for socket in -lsocket... " >&6; }
13099 if ${ac_cv_lib_socket_socket+:} false; then :
13100 $as_echo_n "(cached) " >&6
13102 ac_check_lib_save_LIBS=$LIBS
13103 LIBS="-lsocket $LIBS"
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13107 /* Override any GCC internal prototype to avoid an error.
13108 Use char because int might match the return type of a GCC
13109 builtin and then its argument prototype would still apply. */
13122 if ac_fn_c_try_link "$LINENO"; then :
13123 ac_cv_lib_socket_socket=yes
13125 ac_cv_lib_socket_socket=no
13127 rm -f core conftest.err conftest.$ac_objext \
13128 conftest$ac_exeext conftest.$ac_ext
13129 LIBS=$ac_check_lib_save_LIBS
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13132 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13133 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13134 SOCKET_LIB=-lsocket
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13139 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13140 if ${ac_cv_lib_magic_magic_file+:} false; then :
13141 $as_echo_n "(cached) " >&6
13143 ac_check_lib_save_LIBS=$LIBS
13144 LIBS="-lmagic $LIBS"
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13148 /* Override any GCC internal prototype to avoid an error.
13149 Use char because int might match the return type of a GCC
13150 builtin and then its argument prototype would still apply. */
13154 char magic_file ();
13158 return magic_file ();
13163 if ac_fn_c_try_link "$LINENO"; then :
13164 ac_cv_lib_magic_magic_file=yes
13166 ac_cv_lib_magic_magic_file=no
13168 rm -f core conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13170 LIBS=$ac_check_lib_save_LIBS
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13173 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13174 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13176 for ac_header in magic.h
13178 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13179 if test "x$ac_cv_header_magic_h" = xyes; then :
13180 cat >>confdefs.h <<_ACEOF
13181 #define HAVE_MAGIC_H 1
13190 if test "$ac_cv_lib_dl_dlopen" = yes ; then
13191 MAGIC_LIB=$DLOPEN_LIB
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13195 $as_echo_n "checking for optreset... " >&6; }
13196 if ${ac_cv_have_optreset+:} false; then :
13197 $as_echo_n "(cached) " >&6
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201 #include <unistd.h>
13204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13205 $EGREP "optreset" >/dev/null 2>&1; then :
13206 ac_cv_have_optreset=yes
13208 ac_cv_have_optreset=no
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13214 $as_echo "$ac_cv_have_optreset" >&6; }
13215 if test $ac_cv_have_optreset = yes; then
13217 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13222 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13223 if test "x$ac_cv_func_sem_init" = xyes; then :
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13227 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13228 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13229 $as_echo_n "(cached) " >&6
13231 ac_check_lib_save_LIBS=$LIBS
13232 LIBS="-lpthread $LIBS"
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13236 /* Override any GCC internal prototype to avoid an error.
13237 Use char because int might match the return type of a GCC
13238 builtin and then its argument prototype would still apply. */
13246 return sem_init ();
13251 if ac_fn_c_try_link "$LINENO"; then :
13252 ac_cv_lib_pthread_sem_init=yes
13254 ac_cv_lib_pthread_sem_init=no
13256 rm -f core conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext conftest.$ac_ext
13258 LIBS=$ac_check_lib_save_LIBS
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13261 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13262 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13263 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13265 SEM_INIT_LIB=-lpthread
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13268 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13269 if ${ac_cv_lib_rt_sem_init+:} false; then :
13270 $as_echo_n "(cached) " >&6
13272 ac_check_lib_save_LIBS=$LIBS
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13277 /* Override any GCC internal prototype to avoid an error.
13278 Use char because int might match the return type of a GCC
13279 builtin and then its argument prototype would still apply. */
13287 return sem_init ();
13292 if ac_fn_c_try_link "$LINENO"; then :
13293 ac_cv_lib_rt_sem_init=yes
13295 ac_cv_lib_rt_sem_init=no
13297 rm -f core conftest.err conftest.$ac_objext \
13298 conftest$ac_exeext conftest.$ac_ext
13299 LIBS=$ac_check_lib_save_LIBS
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13302 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13303 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13304 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13309 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13310 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13311 $as_echo_n "(cached) " >&6
13313 ac_check_lib_save_LIBS=$LIBS
13314 LIBS="-lposix4 $LIBS"
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13318 /* Override any GCC internal prototype to avoid an error.
13319 Use char because int might match the return type of a GCC
13320 builtin and then its argument prototype would still apply. */
13328 return sem_init ();
13333 if ac_fn_c_try_link "$LINENO"; then :
13334 ac_cv_lib_posix4_sem_init=yes
13336 ac_cv_lib_posix4_sem_init=no
13338 rm -f core conftest.err conftest.$ac_objext \
13339 conftest$ac_exeext conftest.$ac_ext
13340 LIBS=$ac_check_lib_save_LIBS
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13343 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13344 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13345 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13347 SEM_INIT_LIB=-lposix4
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13357 $as_echo_n "checking for unified diff option... " >&6; }
13358 if diff -u $0 $0 > /dev/null 2>&1 ; then
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13364 $as_echo "$UNI_DIFF_OPTS" >&6; }
13369 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13389 linux* | gnu* | k*bsd*-gnu)
13390 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13393 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13398 linux* | gnu* | k*bsd*-gnu)
13399 if test "$prefix" = NONE ; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13402 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13403 if test "$mandir" = '${prefix}/man' ; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13405 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13406 mandir=/usr/share/man
13411 if test "$root_prefix" = NONE ; then
13412 if test "$prefix" = NONE ; then
13413 root_prefix="$ac_default_prefix"
13415 root_prefix="$prefix"
13417 root_bindir=$bindir
13418 root_sbindir=$sbindir
13419 root_libdir=$libdir
13420 root_sysconfdir=$sysconfdir
13422 root_bindir='${root_prefix}/bin'
13423 root_sbindir='${root_prefix}/sbin'
13424 root_libdir='${root_prefix}/lib'
13425 root_sysconfdir='${root_prefix}/etc'
13427 if test "$bindir" != '${exec_prefix}/bin'; then
13428 root_bindir=$bindir
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13430 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13432 if test "$sbindir" != '${exec_prefix}/sbin'; then
13433 root_sbindir=$sbindir
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13435 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13437 if test "$libdir" != '${exec_prefix}/lib'; then
13438 root_libdir=$libdir
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13440 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13442 if test "$sysconfdir" != '${prefix}/etc'; then
13443 root_sysconfdir=$sysconfdir
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13445 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13453 # Check whether --with-multiarch was given.
13454 if test "${with_multiarch+set}" = set; then :
13455 withval=$with_multiarch; if test "$withval" = "lib64"; then
13459 libdir=$libdir/$withval
13460 root_libdir=$root_libdir/$withval
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13465 $as_echo_n "checking whether we can link with -static... " >&6; }
13466 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13467 $as_echo_n "(cached) " >&6
13469 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
13470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471 /* end confdefs.h. */
13481 if ac_fn_c_try_link "$LINENO"; then :
13482 ac_cv_e2fsprogs_use_static=yes
13484 ac_cv_e2fsprogs_use_static=no
13486 rm -f core conftest.err conftest.$ac_objext \
13487 conftest$ac_exeext conftest.$ac_ext
13488 LDFLAGS=$SAVE_LDFLAGS
13493 ac_cv_e2fsprogs_use_static=no
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13497 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13499 if test $ac_cv_e2fsprogs_use_static = yes; then
13500 LDFLAG_STATIC=-static
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13506 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13508 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13512 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13513 ET_DIR=`cd ${srcdir}/lib/et; pwd`
13516 if test "$cross_compiling" = yes ; then
13519 DO_TEST_SUITE=check
13522 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13523 if test -n "$CPPFLAGS" ; then
13524 INCLUDES="$INCLUDES $CPPFLAGS"
13526 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13527 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13529 if test -n "$WITH_DIET_LIBC" ; then
13530 INCLUDES="$INCLUDES -D_REENTRANT"
13535 if test -n "$ac_aux_dir"; then
13536 case "$ac_aux_dir" in
13537 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13538 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13541 if test -z "$MKINSTALLDIRS"; then
13542 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13546 if test $cross_compiling = no; then
13547 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13548 BUILD_LDFLAGS="$LDFLAGS"
13552 test -d lib || mkdir lib
13553 test -d include || mkdir include
13554 test -d include/linux || mkdir include/linux
13555 test -d include/asm || mkdir include/asm
13556 for i in MCONFIG Makefile e2fsprogs.spec \
13557 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13558 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13559 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13560 lib/uuid/Makefile lib/uuid/uuid_types.h \
13561 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
13562 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
13563 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
13564 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13565 debugfs/Makefile tests/Makefile tests/progs/Makefile \
13566 resize/Makefile doc/Makefile intl/Makefile \
13567 intl/libgnuintl.h po/Makefile.in ; do
13568 if test -d `dirname ${srcdir}/$i` ; then
13569 outlist="$outlist $i"
13572 ac_config_files="$ac_config_files $outlist"
13574 cat >confcache <<\_ACEOF
13575 # This file is a shell script that caches the results of configure
13576 # tests run on this system so they can be shared between configure
13577 # scripts and configure runs, see configure's option --config-cache.
13578 # It is not useful on other systems. If it contains results you don't
13579 # want to keep, you may remove or edit it.
13581 # config.status only pays attention to the cache file if you give it
13582 # the --recheck option to rerun configure.
13584 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13585 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13586 # following values.
13590 # The following way of writing the cache mishandles newlines in values,
13591 # but we know of no workaround that is simple, portable, and efficient.
13592 # So, we kill variables containing newlines.
13593 # Ultrix sh set writes to stderr and can't be redirected directly,
13594 # and sets the high bit in the cache file unless we assign to the vars.
13596 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13597 eval ac_val=\$$ac_var
13601 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13602 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13605 _ | IFS | as_nl) ;; #(
13606 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13607 *) { eval $ac_var=; unset $ac_var;} ;;
13613 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13614 *${as_nl}ac_space=\ *)
13615 # `set' does not quote correctly, so add quotes: double-quote
13616 # substitution turns \\\\ into \\, and sed turns \\ into \.
13619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13622 # `set' quotes correctly as required by POSIX, so do not add quotes.
13623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13634 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13636 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13637 if test -w "$cache_file"; then
13638 if test "x$cache_file" != "x/dev/null"; then
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13640 $as_echo "$as_me: updating cache $cache_file" >&6;}
13641 if test ! -f "$cache_file" || test -h "$cache_file"; then
13642 cat confcache >"$cache_file"
13644 case $cache_file in #(
13646 mv -f confcache "$cache_file"$$ &&
13647 mv -f "$cache_file"$$ "$cache_file" ;; #(
13649 mv -f confcache "$cache_file" ;;
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13655 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13660 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13661 # Let make expand exec_prefix.
13662 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13664 DEFS=-DHAVE_CONFIG_H
13669 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13670 # 1. Remove the extension, and $U if already installed.
13671 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13672 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13673 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13674 # will be set to the directory where LIBOBJS objects are built.
13675 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13676 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13678 LIBOBJS=$ac_libobjs
13680 LTLIBOBJS=$ac_ltlibobjs
13685 : "${CONFIG_STATUS=./config.status}"
13687 ac_clean_files_save=$ac_clean_files
13688 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13690 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13692 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13694 # Generated by $as_me.
13695 # Run this file to recreate the current configuration.
13696 # Compiler output produced by configure, useful for debugging
13697 # configure, is in config.log if it exists.
13700 ac_cs_recheck=false
13703 SHELL=\${CONFIG_SHELL-$SHELL}
13706 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13707 ## -------------------- ##
13708 ## M4sh Initialization. ##
13709 ## -------------------- ##
13711 # Be more Bourne compatible
13712 DUALCASE=1; export DUALCASE # for MKS sh
13713 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13716 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13717 # is contrary to our usage. Disable this feature.
13718 alias -g '${1+"$@"}'='"$@"'
13719 setopt NO_GLOB_SUBST
13721 case `(set -o) 2>/dev/null` in #(
13733 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13734 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13735 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13736 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13737 # Prefer a ksh shell builtin over an external printf program on Solaris,
13738 # but without wasting forks for bash or zsh.
13739 if test -z "$BASH_VERSION$ZSH_VERSION" \
13740 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13741 as_echo='print -r --'
13742 as_echo_n='print -rn --'
13743 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13744 as_echo='printf %s\n'
13745 as_echo_n='printf %s'
13747 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13748 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13749 as_echo_n='/usr/ucb/echo -n'
13751 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13752 as_echo_n_body='eval
13756 expr "X$arg" : "X\\(.*\\)$as_nl";
13757 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13759 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13761 export as_echo_n_body
13762 as_echo_n='sh -c $as_echo_n_body as_echo'
13764 export as_echo_body
13765 as_echo='sh -c $as_echo_body as_echo'
13768 # The user is always right.
13769 if test "${PATH_SEPARATOR+set}" != set; then
13771 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13772 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13779 # We need space, tab and new line, in precisely that order. Quoting is
13780 # there to prevent editors from complaining about space-tab.
13781 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13782 # splitting by setting IFS to empty value.)
13785 # Find who we are. Look in the path if we contain no directory separator.
13788 *[\\/]* ) as_myself=$0 ;;
13789 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790 for as_dir in $PATH
13793 test -z "$as_dir" && as_dir=.
13794 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13800 # We did not find ourselves, most probably we were run as `sh COMMAND'
13801 # in which case we are not to be found in the path.
13802 if test "x$as_myself" = x; then
13805 if test ! -f "$as_myself"; then
13806 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13810 # Unset variables that we do not need and which cause bugs (e.g. in
13811 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13812 # suppresses any "Segmentation fault" message there. '((' could
13813 # trigger a bug in pdksh 5.2.14.
13814 for as_var in BASH_ENV ENV MAIL MAILPATH
13815 do eval test x\${$as_var+set} = xset \
13816 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13829 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13832 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13833 # ----------------------------------------
13834 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13835 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13836 # script with STATUS, using 1 if that was 0.
13839 as_status=$1; test $as_status -eq 0 && as_status=1
13841 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13842 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13844 $as_echo "$as_me: error: $2" >&2
13845 as_fn_exit $as_status
13849 # as_fn_set_status STATUS
13850 # -----------------------
13851 # Set $? to STATUS, without forking.
13852 as_fn_set_status ()
13855 } # as_fn_set_status
13857 # as_fn_exit STATUS
13858 # -----------------
13859 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13863 as_fn_set_status $1
13869 # Portably unset VAR.
13872 { eval $1=; unset $1;}
13874 as_unset=as_fn_unset
13875 # as_fn_append VAR VALUE
13876 # ----------------------
13877 # Append the text in VALUE to the end of the definition contained in VAR. Take
13878 # advantage of any shell optimizations that allow amortized linear growth over
13879 # repeated appends, instead of the typical quadratic growth present in naive
13881 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13882 eval 'as_fn_append ()
13893 # as_fn_arith ARG...
13894 # ------------------
13895 # Perform arithmetic evaluation on the ARGs, and store the result in the
13896 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13897 # must be portable across $(()) and expr.
13898 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13899 eval 'as_fn_arith ()
13906 as_val=`expr "$@" || test $? -eq 1`
13911 if expr a : '\(a\)' >/dev/null 2>&1 &&
13912 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13918 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13919 as_basename=basename
13924 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13930 as_me=`$as_basename -- "$0" ||
13931 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13932 X"$0" : 'X\(//\)$' \| \
13933 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13935 sed '/^.*\/\([^/][^/]*\)\/*$/{
13949 # Avoid depending upon Character Ranges.
13950 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13951 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13952 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13953 as_cr_digits='0123456789'
13954 as_cr_alnum=$as_cr_Letters$as_cr_digits
13956 ECHO_C= ECHO_N= ECHO_T=
13957 case `echo -n x` in #(((((
13959 case `echo 'xy\c'` in
13960 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13962 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13969 rm -f conf$$ conf$$.exe conf$$.file
13970 if test -d conf$$.dir; then
13971 rm -f conf$$.dir/conf$$.file
13974 mkdir conf$$.dir 2>/dev/null
13976 if (echo >conf$$.file) 2>/dev/null; then
13977 if ln -s conf$$.file conf$$ 2>/dev/null; then
13979 # ... but there are two gotchas:
13980 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13981 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13982 # In both cases, we have to default to `cp -pR'.
13983 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13985 elif ln conf$$.file conf$$ 2>/dev/null; then
13993 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13994 rmdir conf$$.dir 2>/dev/null
13999 # Create "$as_dir" as a directory, including parents if necessary.
14004 -*) as_dir=./$as_dir;;
14006 test -d "$as_dir" || eval $as_mkdir_p || {
14010 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14011 *) as_qdir=$as_dir;;
14013 as_dirs="'$as_qdir' $as_dirs"
14014 as_dir=`$as_dirname -- "$as_dir" ||
14015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14016 X"$as_dir" : 'X\(//\)[^/]' \| \
14017 X"$as_dir" : 'X\(//\)$' \| \
14018 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14019 $as_echo X"$as_dir" |
14020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14024 /^X\(\/\/\)[^/].*/{
14037 test -d "$as_dir" && break
14039 test -z "$as_dirs" || eval "mkdir $as_dirs"
14040 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14044 if mkdir -p . 2>/dev/null; then
14045 as_mkdir_p='mkdir -p "$as_dir"'
14047 test -d ./-p && rmdir ./-p
14052 # as_fn_executable_p FILE
14053 # -----------------------
14054 # Test if FILE is an executable regular file.
14055 as_fn_executable_p ()
14057 test -f "$1" && test -x "$1"
14058 } # as_fn_executable_p
14059 as_test_x='test -x'
14060 as_executable_p=as_fn_executable_p
14062 # Sed expression to map a string onto a valid CPP name.
14063 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14065 # Sed expression to map a string onto a valid variable name.
14066 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14070 ## ----------------------------------- ##
14071 ## Main body of $CONFIG_STATUS script. ##
14072 ## ----------------------------------- ##
14074 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14077 # Save the log message, to keep $0 and so on meaningful, and to
14078 # report actual input values of CONFIG_FILES etc. instead of their
14079 # values after options handling.
14081 This file was extended by $as_me, which was
14082 generated by GNU Autoconf 2.69. Invocation command line was
14084 CONFIG_FILES = $CONFIG_FILES
14085 CONFIG_HEADERS = $CONFIG_HEADERS
14086 CONFIG_LINKS = $CONFIG_LINKS
14087 CONFIG_COMMANDS = $CONFIG_COMMANDS
14090 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14095 case $ac_config_files in *"
14096 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14099 case $ac_config_headers in *"
14100 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14105 # Files that config.status was made for.
14106 config_files="$ac_config_files"
14107 config_headers="$ac_config_headers"
14108 config_commands="$ac_config_commands"
14112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14114 \`$as_me' instantiates files and other configuration actions
14115 from templates according to the current configuration. Unless the files
14116 and actions are specified as TAGs, all are instantiated by default.
14118 Usage: $0 [OPTION]... [TAG]...
14120 -h, --help print this help, then exit
14121 -V, --version print version number and configuration settings, then exit
14122 --config print configuration, then exit
14123 -q, --quiet, --silent
14124 do not print progress messages
14125 -d, --debug don't remove temporary files
14126 --recheck update $as_me by reconfiguring in the same conditions
14127 --file=FILE[:TEMPLATE]
14128 instantiate the configuration file FILE
14129 --header=FILE[:TEMPLATE]
14130 instantiate the configuration header FILE
14132 Configuration files:
14135 Configuration headers:
14138 Configuration commands:
14141 Report bugs to the package provider."
14144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14145 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14148 configured by $0, generated by GNU Autoconf 2.69,
14149 with options \\"\$ac_cs_config\\"
14151 Copyright (C) 2012 Free Software Foundation, Inc.
14152 This config.status script is free software; the Free Software Foundation
14153 gives unlimited permission to copy, distribute and modify it."
14160 test -n "\$AWK" || AWK=awk
14163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14164 # The default lists apply if the user does not specify any file.
14170 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14171 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14175 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14187 # Handling of the options.
14188 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14190 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14191 $as_echo "$ac_cs_version"; exit ;;
14192 --config | --confi | --conf | --con | --co | --c )
14193 $as_echo "$ac_cs_config"; exit ;;
14194 --debug | --debu | --deb | --de | --d | -d )
14196 --file | --fil | --fi | --f )
14199 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14200 '') as_fn_error $? "missing file argument" ;;
14202 as_fn_append CONFIG_FILES " '$ac_optarg'"
14203 ac_need_defaults=false;;
14204 --header | --heade | --head | --hea )
14207 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14209 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14210 ac_need_defaults=false;;
14212 # Conflict between --help and --header
14213 as_fn_error $? "ambiguous option: \`$1'
14214 Try \`$0 --help' for more information.";;
14215 --help | --hel | -h )
14216 $as_echo "$ac_cs_usage"; exit ;;
14217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14218 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14221 # This is an error.
14222 -*) as_fn_error $? "unrecognized option: \`$1'
14223 Try \`$0 --help' for more information." ;;
14225 *) as_fn_append ac_config_targets " $1"
14226 ac_need_defaults=false ;;
14232 ac_configure_extra_args=
14234 if $ac_cs_silent; then
14236 ac_configure_extra_args="$ac_configure_extra_args --silent"
14240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14241 if \$ac_cs_recheck; then
14242 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14244 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14245 CONFIG_SHELL='$SHELL'
14246 export CONFIG_SHELL
14251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14255 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14256 ## Running $as_me. ##
14262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14266 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14267 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14268 # from automake < 1.5.
14269 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14270 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14271 LINGUAS="${LINGUAS-%UNSET%}"
14276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14278 # Handling of arguments.
14279 for ac_config_target in $ac_config_targets
14281 case $ac_config_target in
14282 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14283 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14284 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14286 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14291 # If the user did not use the arguments to specify the items to instantiate,
14292 # then the envvar interface is used. Set only those that are not.
14293 # We use the long form for the default assignment because of an extremely
14294 # bizarre bug on SunOS 4.1.3.
14295 if $ac_need_defaults; then
14296 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14297 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14298 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14301 # Have a temporary directory for convenience. Make it in the build tree
14302 # simply because there is no reason against having it here, and in addition,
14303 # creating and moving files from /tmp can sometimes cause problems.
14304 # Hook for its removal unless debugging.
14305 # Note that there is a small window in which the directory will not be cleaned:
14306 # after its creation but before its name has been assigned to `$tmp'.
14310 trap 'exit_status=$?
14311 : "${ac_tmp:=$tmp}"
14312 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14314 trap 'as_fn_exit 1' 1 2 13 15
14316 # Create a (secure) tmp directory for tmp files.
14319 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14323 tmp=./conf$$-$RANDOM
14324 (umask 077 && mkdir "$tmp")
14325 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14328 # Set up the scripts for CONFIG_FILES section.
14329 # No need to generate them if there are no CONFIG_FILES.
14330 # This happens for instance with `./config.status config.h'.
14331 if test -n "$CONFIG_FILES"; then
14333 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14334 ac_cs_awk_getline=:
14335 ac_cs_awk_pipe_init=
14336 ac_cs_awk_read_file='
14337 while ((getline aline < (F[key])) > 0)
14340 ac_cs_awk_pipe_fini=
14342 ac_cs_awk_getline=false
14343 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14344 ac_cs_awk_read_file='
14346 print "cat " F[key] " &&"
14347 '$ac_cs_awk_pipe_init
14348 # The final `:' finishes the AND list.
14349 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14351 ac_cr=`echo X | tr X '\015'`
14352 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14353 # But we know of no other shell where ac_cr would be empty at this
14354 # point, so we can use a bashism as a fallback.
14355 if test "x$ac_cr" = x; then
14356 eval ac_cr=\$\'\\r\'
14358 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14359 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14362 ac_cs_awk_cr=$ac_cr
14365 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14368 # Create commands to substitute file output variables.
14370 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14371 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14372 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14375 } >conf$$files.sh &&
14376 . ./conf$$files.sh ||
14377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14378 rm -f conf$$files.sh
14381 echo "cat >conf$$subs.awk <<_ACEOF" &&
14382 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14384 } >conf$$subs.sh ||
14385 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14386 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14388 for ac_last_try in false false false false false :; do
14389 . ./conf$$subs.sh ||
14390 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14392 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14393 if test $ac_delim_n = $ac_delim_num; then
14395 elif $ac_last_try; then
14396 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14401 rm -f conf$$subs.sh
14403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14404 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14408 s/^/S["/; s/!.*/"]=/
14418 s/\(.\{148\}\)..*/\1/
14420 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14425 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14432 s/\(.\{148\}\)..*/\1/
14434 s/["\\]/\\&/g; s/^/"/; s/$/"/
14438 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14443 ' <conf$$subs.awk | sed '
14448 ' >>$CONFIG_STATUS || ac_write_fail=1
14449 rm -f conf$$subs.awk
14450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14452 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14453 for (key in S) S_is_set[key] = 1
14455 \$ac_cs_awk_pipe_init
14459 nfields = split(line, field, "@")
14461 len = length(field[1])
14462 for (i = 2; i < nfields; i++) {
14464 keylen = length(key)
14465 if (S_is_set[key]) {
14467 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14468 len += length(value) + length(field[++i])
14473 if (nfields == 3 && !substed) {
14475 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14476 \$ac_cs_awk_read_file
14482 \$ac_cs_awk_pipe_fini
14485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14486 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14487 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14490 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14491 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14494 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14495 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14496 # trailing colons and then remove the whole line if VPATH becomes empty
14497 # (actually we leave an empty line to preserve line numbers).
14498 if test "x$srcdir" = x.; then
14499 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14518 fi # test -n "$CONFIG_FILES"
14520 # Set up the scripts for CONFIG_HEADERS section.
14521 # No need to generate them if there are no CONFIG_HEADERS.
14522 # This happens for instance with `./config.status Makefile'.
14523 if test -n "$CONFIG_HEADERS"; then
14524 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14528 # Transform confdefs.h into an awk script `defines.awk', embedded as
14529 # here-document in config.status, that substitutes the proper values into
14530 # config.h.in to produce config.h.
14532 # Create a delimiter string that does not exist in confdefs.h, to ease
14533 # handling of long lines.
14535 for ac_last_try in false false :; do
14536 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14537 if test -z "$ac_tt"; then
14539 elif $ac_last_try; then
14540 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14546 # For the awk script, D is an array of macro values keyed by name,
14547 # likewise P contains macro parameters if any. Preserve backslash
14548 # newline sequences.
14550 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14552 s/.\{148\}/&'"$ac_delim"'/g
14555 s/^[ ]*#[ ]*define[ ][ ]*/ /
14562 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14564 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14568 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14569 D["\1"]=" \3\\\\\\n"\\/p
14571 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14576 s/.\{148\}/&'"$ac_delim"'/g
14581 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14584 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14586 ' <confdefs.h | sed '
14587 s/'"$ac_delim"'/"\\\
14588 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14591 for (key in D) D_is_set[key] = 1
14594 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14596 split(line, arg, " ")
14597 if (arg[1] == "#") {
14601 defundef = substr(arg[1], 2)
14604 split(mac1, mac2, "(") #)
14606 prefix = substr(line, 1, index(line, defundef) - 1)
14607 if (D_is_set[macro]) {
14608 # Preserve the white space surrounding the "#".
14609 print prefix "define", macro P[macro] D[macro]
14612 # Replace #undef with comments. This is necessary, for example,
14613 # in the case of _POSIX_SOURCE, which is predefined and required
14614 # on some systems where configure will not decide to define it.
14615 if (defundef == "undef") {
14616 print "/*", prefix defundef, macro, "*/"
14624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14625 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14626 fi # test -n "$CONFIG_HEADERS"
14629 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14634 :[FHLC]) ac_mode=$ac_tag; continue;;
14636 case $ac_mode$ac_tag in
14638 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14639 :[FH]-) ac_tag=-:-;;
14640 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14657 -) ac_f="$ac_tmp/stdin";;
14658 *) # Look for the file first in the build tree, then in the source tree
14659 # (if the path is not absolute). The absolute path cannot be DOS-style,
14660 # because $ac_f cannot contain `:'.
14664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14666 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14668 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14669 as_fn_append ac_file_inputs " '$ac_f'"
14672 # Let's still pretend it is `configure' which instantiates (i.e., don't
14673 # use $as_me), people would be surprised to read:
14674 # /* config.h. Generated by config.status. */
14675 configure_input='Generated from '`
14676 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14678 if test x"$ac_file" != x-; then
14679 configure_input="$ac_file. $configure_input"
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14681 $as_echo "$as_me: creating $ac_file" >&6;}
14683 # Neutralize special characters interpreted by sed in replacement strings.
14684 case $configure_input in #(
14685 *\&* | *\|* | *\\* )
14686 ac_sed_conf_input=`$as_echo "$configure_input" |
14687 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14688 *) ac_sed_conf_input=$configure_input;;
14692 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14698 ac_dir=`$as_dirname -- "$ac_file" ||
14699 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14700 X"$ac_file" : 'X\(//\)[^/]' \| \
14701 X"$ac_file" : 'X\(//\)$' \| \
14702 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14703 $as_echo X"$ac_file" |
14704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14708 /^X\(\/\/\)[^/].*/{
14721 as_dir="$ac_dir"; as_fn_mkdir_p
14725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14727 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14728 # A ".." for each directory in $ac_dir_suffix.
14729 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14730 case $ac_top_builddir_sub in
14731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14735 ac_abs_top_builddir=$ac_pwd
14736 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14737 # for backward compatibility:
14738 ac_top_builddir=$ac_top_build_prefix
14741 .) # We are building in place.
14743 ac_top_srcdir=$ac_top_builddir_sub
14744 ac_abs_top_srcdir=$ac_pwd ;;
14745 [\\/]* | ?:[\\/]* ) # Absolute name.
14746 ac_srcdir=$srcdir$ac_dir_suffix;
14747 ac_top_srcdir=$srcdir
14748 ac_abs_top_srcdir=$srcdir ;;
14749 *) # Relative name.
14750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14751 ac_top_srcdir=$ac_top_build_prefix$srcdir
14752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14754 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14764 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14765 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14767 ac_MKDIR_P=$MKDIR_P
14769 [\\/$]* | ?:[\\/]* ) ;;
14770 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14775 # If the template does not know about datarootdir, expand it.
14776 # FIXME: This hack should be removed a few years after 2.60.
14777 ac_datarootdir_hack=; ac_datarootdir_seen=
14788 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14789 *datarootdir*) ac_datarootdir_seen=yes;;
14790 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14792 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14795 ac_datarootdir_hack='
14796 s&@datadir@&$datadir&g
14797 s&@docdir@&$docdir&g
14798 s&@infodir@&$infodir&g
14799 s&@localedir@&$localedir&g
14800 s&@mandir@&$mandir&g
14801 s&\\\${datarootdir}&$datarootdir&g' ;;
14805 # Neutralize VPATH when `$srcdir' = `.'.
14806 # Shell code in configure.ac might set extrasub.
14807 # FIXME: do we really want to maintain this feature?
14808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14809 ac_sed_extra="$ac_vpsub
14812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14815 s|@configure_input@|$ac_sed_conf_input|;t t
14816 s&@top_builddir@&$ac_top_builddir_sub&;t t
14817 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14818 s&@srcdir@&$ac_srcdir&;t t
14819 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14820 s&@top_srcdir@&$ac_top_srcdir&;t t
14821 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14822 s&@builddir@&$ac_builddir&;t t
14823 s&@abs_builddir@&$ac_abs_builddir&;t t
14824 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14825 s&@INSTALL@&$ac_INSTALL&;t t
14826 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14827 $ac_datarootdir_hack
14829 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14830 if $ac_cs_awk_getline; then
14831 $AWK -f "$ac_tmp/subs.awk"
14833 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14835 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14837 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14838 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14839 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14840 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14842 which seems to be undefined. Please make sure it is defined" >&5
14843 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14844 which seems to be undefined. Please make sure it is defined" >&2;}
14846 rm -f "$ac_tmp/stdin"
14848 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14849 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14851 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14857 if test x"$ac_file" != x-; then
14859 $as_echo "/* $configure_input */" \
14860 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14861 } >"$ac_tmp/config.h" \
14862 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14863 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14865 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14868 mv "$ac_tmp/config.h" "$ac_file" \
14869 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14872 $as_echo "/* $configure_input */" \
14873 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14874 || as_fn_error $? "could not create -" "$LINENO" 5
14878 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14879 $as_echo "$as_me: executing $ac_file commands" >&6;}
14884 case $ac_file$ac_mode in
14885 "po-directories":C)
14886 for ac_file in $CONFIG_FILES; do
14887 # Support "outfile[:infile[:infile...]]"
14889 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14891 # PO directories have a Makefile.in generated from Makefile.in.in.
14892 case "$ac_file" in */Makefile.in)
14893 # Adjust a relative srcdir.
14894 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14895 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14896 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14897 # In autoconf-2.13 it is called $ac_given_srcdir.
14898 # In autoconf-2.50 it is called $srcdir.
14899 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14900 case "$ac_given_srcdir" in
14901 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14902 /*) top_srcdir="$ac_given_srcdir" ;;
14903 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14905 # Treat a directory as a PO directory if and only if it has a
14906 # POTFILES.in file. This allows packages to have multiple PO
14907 # directories under different names or in different locations.
14908 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14909 rm -f "$ac_dir/POTFILES"
14910 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14911 gt_tab=`printf '\t'`
14912 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14913 POMAKEFILEDEPS="POTFILES.in"
14914 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14915 # on $ac_dir but don't depend on user-specified configuration
14917 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14918 # The LINGUAS file contains the set of available languages.
14919 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14920 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14922 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14923 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14924 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14925 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14927 # The set of available languages was given in configure.in.
14928 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14929 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14932 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14933 # Compute UPDATEPOFILES
14934 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14935 # Compute DUMMYPOFILES
14936 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14938 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14939 case "$ac_given_srcdir" in
14941 *) srcdirpre='$(srcdir)/' ;;
14947 for lang in $ALL_LINGUAS; do
14948 POFILES="$POFILES $srcdirpre$lang.po"
14949 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14950 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14951 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14953 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14954 # environment variable.
14956 if test -n "$ALL_LINGUAS"; then
14957 for presentlang in $ALL_LINGUAS; do
14959 if test "%UNSET%" != "$LINGUAS"; then
14960 desiredlanguages="$LINGUAS"
14962 desiredlanguages="$ALL_LINGUAS"
14964 for desiredlang in $desiredlanguages; do
14965 # Use the presentlang catalog if desiredlang is
14966 # a. equal to presentlang, or
14967 # b. a variant of presentlang (because in this case,
14968 # presentlang can be used as a fallback for messages
14969 # which are not translated in the desiredlang catalog).
14970 case "$desiredlang" in
14971 "$presentlang"*) useit=yes;;
14974 if test $useit = yes; then
14975 INST_LINGUAS="$INST_LINGUAS $presentlang"
14980 if test -n "$INST_LINGUAS"; then
14981 for lang in $INST_LINGUAS; do
14982 CATALOGS="$CATALOGS $lang.gmo"
14985 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14986 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"
14987 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14988 if test -f "$f"; then
14990 *.orig | *.bak | *~) ;;
14991 *) cat "$f" >> "$ac_dir/Makefile" ;;
15006 ac_clean_files=$ac_clean_files_save
15008 test $ac_write_fail = 0 ||
15009 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15012 # configure is writing to config.log, and then calls config.status.
15013 # config.status does its own redirection, appending to config.log.
15014 # Unfortunately, on DOS this fails, as config.log is still kept open
15015 # by configure, so config.status won't be able to write to it; its
15016 # output is simply discarded. So we exec the FD to /dev/null,
15017 # effectively closing config.log, so it can be properly (re)opened and
15018 # appended to by config.status. When coming back to configure, we
15019 # need to make the FD available again.
15020 if test "$no_create" != yes; then
15022 ac_config_status_args=
15023 test "$silent" = yes &&
15024 ac_config_status_args="$ac_config_status_args --quiet"
15026 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15028 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15029 # would make configure fail if this is the last instruction.
15030 $ac_cs_success || as_fn_exit 1
15032 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15034 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15037 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi