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
675 INTL_LIBTOOL_SUFFIX_PREFIX
682 BUILD_INCLUDED_LIBINTL
692 INTL_DEFAULT_VERBOSITY
711 XGETTEXT_EXTRA_OPTIONS
719 GETTEXT_MACRO_VERSION
824 program_transform_name
835 ac_subst_files='MCONFIG
841 PUBLIC_CONFIG_HEADER'
843 enable_option_checking
849 enable_maintainer_mode
850 enable_symlink_install
851 enable_relative_symlinks
852 enable_symlink_relative_symlinks
854 enable_verbose_makecmds
870 enable_e2initrd_helper
875 enable_bmap_stats_ops
882 with_included_gettext
887 ac_precious_vars='build_alias
901 # Initialize some variables set by options.
903 ac_init_version=false
904 ac_unrecognized_opts=
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
915 program_transform_name=s,x,x,
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE}'
940 infodir='${datarootdir}/info'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
961 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966 # Accept the important Cygnus configure options, so we can diagnose typos.
968 case $ac_dashdash$ac_option in
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
990 cache_file=config.cache ;;
992 -datadir | --datadir | --datadi | --datad)
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1004 -disable-* | --disable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error $? "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1013 "enable_$ac_useropt"
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1018 eval enable_$ac_useropt=no ;;
1020 -docdir | --docdir | --docdi | --doc | --do)
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1030 -enable-* | --enable-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error $? "invalid feature name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1039 "enable_$ac_useropt"
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1044 eval enable_$ac_useropt=\$ac_optarg ;;
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075 htmldir=$ac_optarg ;;
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1089 -libdir | --libdir | --libdi | --libd)
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1180 -psdir | --psdir | --psdi | --psd | --ps)
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193 sbindir=$ac_optarg ;;
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204 sharedstatedir=$ac_optarg ;;
1206 -site | --site | --sit)
1208 -site=* | --site=* | --sit=*)
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1248 eval with_$ac_useropt=\$ac_optarg ;;
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1264 eval with_$ac_useropt=no ;;
1267 # Obsolete; use --with-x.
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285 Try \`$0 --help' for more information"
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1299 # FIXME: should be removed in autoconf 3.0.
1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1309 if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 as_fn_error $? "missing argument to $ac_option"
1314 if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1322 # Check all directory arguments for consistency.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1335 # Be sure to have absolute directory names.
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1348 target=$target_alias
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 elif test "x$build_alias" != "x$host_alias"; then
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362 test "$silent" = yes && exec 6>/dev/null
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 as_fn_error $? "pwd does not report name of working directory"
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1405 ac_srcdir_defaulted=no
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433 # Report the --help message.
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1439 \`configure' configures this package to adapt to many kinds of systems.
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1446 Defaults for the options are specified in brackets.
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking ...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1470 For better control, use the options below.
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1502 if test -n "$ac_init_help"; then
1507 --disable-option-checking ignore unrecognized --enable/--with options
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --enable-maintainer-mode enable makefile rules useful for maintainers
1511 --enable-symlink-install use symlinks when installing instead of hard links
1512 --enable-relative-symlinks use relative symlinks when installing
1514 --enable-symlink-build use symlinks while building instead of hard links
1515 --enable-verbose-makecmds enable verbose make command output
1516 --enable-elf-shlibs select ELF shared libraries
1517 --enable-bsd-shlibs select BSD shared libraries
1518 --enable-profile build profiling libraries
1519 --enable-gcov build for coverage testing using gcov
1520 --enable-jbd-debug enable journal debugging
1521 --enable-blkid-debug enable blkid debugging
1522 --disable-testio-debug disable the use of the test I/O manager for debugging
1523 --enable-libuuid build and use private uuid library
1524 --enable-libblkid build and use private blkid library
1525 --disable-backtrace disable use backtrace
1526 --disable-debugfs disable support of debugfs program
1527 --disable-imager disable support of e2image program
1528 --disable-resizer disable support of e2resize program
1529 --disable-defrag disable support of e4defrag program
1530 --enable-fsck build fsck wrapper program
1531 --enable-e2initrd-helper build e2initrd-helper program
1532 --disable-tls disable use of thread local support
1533 --disable-uuidd disable building the uuid daemon
1534 --disable-mmp disable support mmp, Multi Mount Protection
1535 --disable-bmap-stats disable collection of bitmap stats.
1536 --enable-bmap-stats-ops enable collection of additional bitmap stats
1537 --disable-nls do not use Native Language Support
1538 --enable-threads={posix|solaris|pth|windows}
1539 specify multithreading API
1540 --disable-threads build without multithread safety
1541 --disable-rpath do not hardcode runtime library paths
1542 --disable-fuse2fs do not build fuse2fs
1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1547 --with-diet-libc use diet libc
1548 --with-cc no longer supported, use CC= instead
1549 --with-ccopts no longer supported, use CFLAGS= instead
1550 --with-ldopts no longer supported, use LDFLAGS= instead
1551 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1553 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1554 --without-libpth-prefix don't search for libpth in includedir and libdir
1555 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1556 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1557 --with-included-gettext use the GNU gettext library included here
1558 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1559 --without-libintl-prefix don't search for libintl in includedir and libdir
1560 --with-multiarch=ARCH specify the multiarch triplet
1562 Some influential environment variables:
1563 CC C compiler command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1566 nonstandard directory <lib dir>
1567 LIBS libraries to pass to the linker, e.g. -l<library>
1568 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1569 you have headers in a nonstandard directory <include dir>
1571 PKG_CONFIG path to pkg-config utility
1573 directories to add to pkg-config's search path
1575 path overriding pkg-config's built-in search path
1577 Use these variables to override the choices made by `configure' or to help
1578 it to find libraries and programs with nonstandard names/locations.
1580 Report bugs to the package provider.
1585 if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588 test -d "$ac_dir" ||
1589 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1604 ac_abs_top_builddir=$ac_pwd
1605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606 # for backward compatibility:
1607 ac_top_builddir=$ac_top_build_prefix
1610 .) # We are building in place.
1612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
1615 ac_srcdir=$srcdir$ac_dir_suffix;
1616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1632 $SHELL "$ac_srcdir/configure" --help=recursive
1634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636 cd "$ac_pwd" || { ac_status=$?; break; }
1640 test -n "$ac_init_help" && exit $ac_status
1641 if $ac_init_version; then
1644 generated by GNU Autoconf 2.69
1646 Copyright (C) 2012 Free Software Foundation, Inc.
1647 This configure script is free software; the Free Software Foundation
1648 gives unlimited permission to copy, distribute and modify it.
1653 ## ------------------------ ##
1654 ## Autoconf initialization. ##
1655 ## ------------------------ ##
1657 # ac_fn_c_try_compile LINENO
1658 # --------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_compile ()
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1693 } # ac_fn_c_try_compile
1695 # ac_fn_c_try_link LINENO
1696 # -----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded.
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext conftest$ac_exeext
1702 if { { ac_try="$ac_link"
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>conftest.err
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest$ac_exeext && {
1721 test "$cross_compiling" = yes ||
1722 test -x conftest$ac_exeext
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1739 } # ac_fn_c_try_link
1741 # ac_fn_c_try_cpp LINENO
1742 # ----------------------
1743 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { { ac_try="$ac_cpp conftest.$ac_ext"
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } > conftest.i && {
1763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
1778 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1779 # -------------------------------------------------------
1780 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1781 # the include files in INCLUDES and setting the cache variable VAR
1783 ac_fn_c_check_header_mongrel ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if eval \${$3+:} false; then :
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 $as_echo_n "checking for $2... " >&6; }
1789 if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1796 # Is the header compilable?
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1798 $as_echo_n "checking $2 usability... " >&6; }
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1804 if ac_fn_c_try_compile "$LINENO"; then :
1805 ac_header_compiler=yes
1807 ac_header_compiler=no
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1811 $as_echo "$ac_header_compiler" >&6; }
1813 # Is the header present?
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1815 $as_echo_n "checking $2 presence... " >&6; }
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1820 if ac_fn_c_try_cpp "$LINENO"; then :
1821 ac_header_preproc=yes
1823 ac_header_preproc=no
1825 rm -f conftest.err conftest.i conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1827 $as_echo "$ac_header_preproc" >&6; }
1829 # So? What about this header?
1830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1833 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1839 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1841 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1843 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1845 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1855 eval "$3=\$ac_header_compiler"
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 } # ac_fn_c_check_header_mongrel
1865 # ac_fn_c_try_run LINENO
1866 # ----------------------
1867 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1868 # that executables *can* be run.
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_link"
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>&5
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1883 { { case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_try") 2>&5
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; }; }; then :
1895 $as_echo "$as_me: program exited with status $ac_status" >&5
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1899 ac_retval=$ac_status
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1907 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1908 # -------------------------------------------------------
1909 # Tests whether HEADER exists and can be compiled using the include files in
1910 # INCLUDES, setting the cache variable VAR accordingly.
1911 ac_fn_c_check_header_compile ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1924 if ac_fn_c_try_compile "$LINENO"; then :
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 } # ac_fn_c_check_header_compile
1938 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1939 # -------------------------------------------
1940 # Tests whether TYPE exists after having included INCLUDES, setting cache
1941 # variable VAR accordingly.
1942 ac_fn_c_check_type ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1976 if ac_fn_c_try_compile "$LINENO"; then :
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 } # ac_fn_c_check_type
1992 # ac_fn_c_check_func LINENO FUNC VAR
1993 # ----------------------------------
1994 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1995 ac_fn_c_check_func ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2005 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2007 #define $2 innocuous_$2
2009 /* System header to define __stub macros and hopefully few prototypes,
2010 which can conflict with char $2 (); below.
2011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2012 <limits.h> exists even on freestanding compilers. */
2015 # include <limits.h>
2017 # include <assert.h>
2022 /* Override any GCC internal prototype to avoid an error.
2023 Use char because int might match the return type of a GCC
2024 builtin and then its argument prototype would still apply. */
2029 /* The GNU C library defines this for functions which it implements
2030 to always fail with ENOSYS. Some functions are actually named
2031 something starting with __ and the normal name is an alias. */
2032 #if defined __stub_$2 || defined __stub___$2
2044 if ac_fn_c_try_link "$LINENO"; then :
2049 rm -f core conftest.err conftest.$ac_objext \
2050 conftest$ac_exeext conftest.$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 } # ac_fn_c_check_func
2059 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2060 # ---------------------------------------------
2061 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2063 ac_fn_c_check_decl ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 as_decl_name=`echo $2|sed 's/ *(.*//'`
2067 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2069 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2070 if eval \${$3+:} false; then :
2071 $as_echo_n "(cached) " >&6
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2079 #ifndef $as_decl_name
2081 (void) $as_decl_use;
2083 (void) $as_decl_name;
2091 if ac_fn_c_try_compile "$LINENO"; then :
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103 } # ac_fn_c_check_decl
2105 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2106 # --------------------------------------------
2107 # Tries to find the compile-time value of EXPR in a program that includes
2108 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2110 ac_fn_c_compute_int ()
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 if test "$cross_compiling" = yes; then
2114 # Depending upon the size, compute the lo and hi bounds.
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2121 static int test_array [1 - 2 * !(($2) >= 0)];
2123 return test_array [0];
2129 if ac_fn_c_try_compile "$LINENO"; then :
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2140 return test_array [0];
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_hi=$ac_mid; break
2149 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2150 if test $ac_lo -le $ac_mid; then
2154 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2165 static int test_array [1 - 2 * !(($2) < 0)];
2167 return test_array [0];
2173 if ac_fn_c_try_compile "$LINENO"; then :
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2182 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2184 return test_array [0];
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_lo=$ac_mid; break
2193 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2194 if test $ac_mid -le $ac_hi; then
2198 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 # Binary search between lo and hi bounds.
2209 while test "x$ac_lo" != "x$ac_hi"; do
2210 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2217 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2219 return test_array [0];
2225 if ac_fn_c_try_compile "$LINENO"; then :
2228 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2240 static long int longval () { return $2; }
2241 static unsigned long int ulongval () { return $2; }
2248 FILE *f = fopen ("conftest.val", "w");
2253 long int i = longval ();
2256 fprintf (f, "%ld", i);
2260 unsigned long int i = ulongval ();
2263 fprintf (f, "%lu", i);
2265 /* Do not output a trailing newline, as this causes \r\n confusion
2266 on some platforms. */
2267 return ferror (f) || fclose (f) != 0;
2273 if ac_fn_c_try_run "$LINENO"; then :
2274 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2279 conftest.$ac_objext conftest.beam conftest.$ac_ext
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284 as_fn_set_status $ac_retval
2286 } # ac_fn_c_compute_int
2288 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2289 # ----------------------------------------------------
2290 # Tries to find if the field MEMBER exists in type AGGR, after including
2291 # INCLUDES, setting cache variable VAR accordingly.
2292 ac_fn_c_check_member ()
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2296 $as_echo_n "checking for $2.$3... " >&6; }
2297 if eval \${$4+:} false; then :
2298 $as_echo_n "(cached) " >&6
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2313 if ac_fn_c_try_compile "$LINENO"; then :
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2323 if (sizeof ac_aggr.$3)
2329 if ac_fn_c_try_compile "$LINENO"; then :
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2343 } # ac_fn_c_check_member
2344 cat >config.log <<_ACEOF
2345 This file contains any messages produced by compilers while
2346 running configure, to aid debugging if configure makes a mistake.
2348 It was created by $as_me, which was
2349 generated by GNU Autoconf 2.69. Invocation command line was
2361 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2362 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2363 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2364 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2365 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2367 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2368 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2370 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2371 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2372 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2373 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2374 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2375 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2376 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 test -z "$as_dir" && as_dir=.
2385 $as_echo "PATH: $as_dir"
2401 # Keep a trace of the command line.
2402 # Strip out --no-create and --no-recursion so they do not pile up.
2403 # Strip out --silent because we don't want to record it for future runs.
2404 # Also quote any args containing shell meta-characters.
2405 # Make two passes to allow for proper duplicate-argument suppression.
2409 ac_must_keep_next=false
2415 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2417 | -silent | --silent | --silen | --sile | --sil)
2420 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2423 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2425 as_fn_append ac_configure_args1 " '$ac_arg'"
2426 if test $ac_must_keep_next = true; then
2427 ac_must_keep_next=false # Got value, back to normal.
2430 *=* | --config-cache | -C | -disable-* | --disable-* \
2431 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2432 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2433 | -with-* | --with-* | -without-* | --without-* | --x)
2434 case "$ac_configure_args0 " in
2435 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2438 -* ) ac_must_keep_next=true ;;
2441 as_fn_append ac_configure_args " '$ac_arg'"
2446 { ac_configure_args0=; unset ac_configure_args0;}
2447 { ac_configure_args1=; unset ac_configure_args1;}
2449 # When interrupted or exit'd, cleanup temporary files, and complete
2450 # config.log. We remove comments because anyway the quotes in there
2451 # would cause problems or look ugly.
2452 # WARNING: Use '\'' to represent an apostrophe within the trap.
2453 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2454 trap 'exit_status=$?
2455 # Save into config.log some information that might help in debugging.
2459 $as_echo "## ---------------- ##
2460 ## Cache variables. ##
2461 ## ---------------- ##"
2463 # The following way of writing the cache mishandles newlines in values,
2465 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2466 eval ac_val=\$$ac_var
2470 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2471 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2474 _ | IFS | as_nl) ;; #(
2475 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2476 *) { eval $ac_var=; unset $ac_var;} ;;
2481 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2482 *${as_nl}ac_space=\ *)
2484 "s/'\''/'\''\\\\'\'''\''/g;
2485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2488 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2495 $as_echo "## ----------------- ##
2496 ## Output variables. ##
2497 ## ----------------- ##"
2499 for ac_var in $ac_subst_vars
2501 eval ac_val=\$$ac_var
2503 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2505 $as_echo "$ac_var='\''$ac_val'\''"
2509 if test -n "$ac_subst_files"; then
2510 $as_echo "## ------------------- ##
2511 ## File substitutions. ##
2512 ## ------------------- ##"
2514 for ac_var in $ac_subst_files
2516 eval ac_val=\$$ac_var
2518 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2520 $as_echo "$ac_var='\''$ac_val'\''"
2525 if test -s confdefs.h; then
2526 $as_echo "## ----------- ##
2533 test "$ac_signal" != 0 &&
2534 $as_echo "$as_me: caught signal $ac_signal"
2535 $as_echo "$as_me: exit $exit_status"
2537 rm -f core *.core core.conftest.* &&
2538 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2541 for ac_signal in 1 2 13 15; do
2542 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2546 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2547 rm -f -r conftest* confdefs.h
2549 $as_echo "/* confdefs.h */" > confdefs.h
2551 # Predefined preprocessor variables.
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_NAME "$PACKAGE_NAME"
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_STRING "$PACKAGE_STRING"
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_URL "$PACKAGE_URL"
2578 # Let the site file select an alternate cache file if it wants to.
2579 # Prefer an explicitly selected file to automatically selected ones.
2582 if test -n "$CONFIG_SITE"; then
2583 # We do not want a PATH search for config.site.
2584 case $CONFIG_SITE in #((
2585 -*) ac_site_file1=./$CONFIG_SITE;;
2586 */*) ac_site_file1=$CONFIG_SITE;;
2587 *) ac_site_file1=./$CONFIG_SITE;;
2589 elif test "x$prefix" != xNONE; then
2590 ac_site_file1=$prefix/share/config.site
2591 ac_site_file2=$prefix/etc/config.site
2593 ac_site_file1=$ac_default_prefix/share/config.site
2594 ac_site_file2=$ac_default_prefix/etc/config.site
2596 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2598 test "x$ac_site_file" = xNONE && continue
2599 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2601 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2602 sed 's/^/| /' "$ac_site_file" >&5
2604 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 as_fn_error $? "failed to load site script $ac_site_file
2607 See \`config.log' for more details" "$LINENO" 5; }
2611 if test -r "$cache_file"; then
2612 # Some versions of bash will fail to source /dev/null (special files
2613 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2614 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2616 $as_echo "$as_me: loading cache $cache_file" >&6;}
2618 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2619 *) . "./$cache_file";;
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2624 $as_echo "$as_me: creating cache $cache_file" >&6;}
2628 gt_needs="$gt_needs "
2629 as_fn_append ac_header_list " stdlib.h"
2630 as_fn_append ac_header_list " unistd.h"
2631 as_fn_append ac_header_list " sys/param.h"
2632 as_fn_append ac_func_list " symlink"
2633 # Check that the precious variables saved in the cache have kept the same
2635 ac_cache_corrupted=false
2636 for ac_var in $ac_precious_vars; do
2637 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2638 eval ac_new_set=\$ac_env_${ac_var}_set
2639 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2640 eval ac_new_val=\$ac_env_${ac_var}_value
2641 case $ac_old_set,$ac_new_set in
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2644 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2645 ac_cache_corrupted=: ;;
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2648 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2649 ac_cache_corrupted=: ;;
2652 if test "x$ac_old_val" != "x$ac_new_val"; then
2653 # differences in whitespace do not lead to failure.
2654 ac_old_val_w=`echo x $ac_old_val`
2655 ac_new_val_w=`echo x $ac_new_val`
2656 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2658 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2659 ac_cache_corrupted=:
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2662 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2663 eval $ac_var=\$ac_old_val
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2666 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2668 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2671 # Pass precious variables to config.status.
2672 if test "$ac_new_set" = set; then
2674 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2675 *) ac_arg=$ac_var=$ac_new_val ;;
2677 case " $ac_configure_args " in
2678 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2679 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2683 if $ac_cache_corrupted; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2687 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2688 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2690 ## -------------------- ##
2691 ## Main body of script. ##
2692 ## -------------------- ##
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703 for ac_dir in config "$srcdir"/config; do
2704 if test -f "$ac_dir/install-sh"; then
2706 ac_install_sh="$ac_aux_dir/install-sh -c"
2708 elif test -f "$ac_dir/install.sh"; then
2710 ac_install_sh="$ac_aux_dir/install.sh -c"
2712 elif test -f "$ac_dir/shtool"; then
2714 ac_install_sh="$ac_aux_dir/shtool install -c"
2718 if test -z "$ac_aux_dir"; then
2719 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2722 # These three variables are undocumented and unsupported,
2723 # and are intended to be withdrawn in a future Autoconf release.
2724 # They can cause serious problems if a builder's source tree is in a directory
2725 # whose full name contains unusual characters.
2726 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2727 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2728 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2731 ac_config_headers="$ac_config_headers lib/config.h"
2737 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2738 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2739 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2741 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2742 MONTH=`echo $DATE | awk -F- '{print $2}'`
2743 YEAR=`echo $DATE | awk -F- '{print $3}'`
2745 if expr $YEAR ">" 1900 > /dev/null ; then
2746 E2FSPROGS_YEAR=$YEAR
2747 elif expr $YEAR ">" 90 >/dev/null ; then
2748 E2FSPROGS_YEAR=19$YEAR
2750 E2FSPROGS_YEAR=20$YEAR
2754 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2755 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2756 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2757 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2758 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2759 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2760 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2761 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2762 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2763 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2764 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2765 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2766 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2767 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2770 base_ver=`echo $E2FSPROGS_VERSION | \
2771 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2773 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2775 case $E2FSPROGS_VERSION in
2777 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2780 E2FSPROGS_PKGVER="$base_ver"
2784 unset DATE MONTH YEAR base_ver pre_vers date_spec
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2786 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2788 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2796 # Check whether --with-diet-libc was given.
2797 if test "${with_diet_libc+set}" = set; then :
2798 withval=$with_diet_libc; CC="diet cc -nostdinc"
2804 LIBS="$LIBS -lcompat"
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2807 $as_echo "CC=$CC" >&6; }
2809 # Make sure we can run config.sub.
2810 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2811 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2814 $as_echo_n "checking build system type... " >&6; }
2815 if ${ac_cv_build+:} false; then :
2816 $as_echo_n "(cached) " >&6
2818 ac_build_alias=$build_alias
2819 test "x$ac_build_alias" = x &&
2820 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2821 test "x$ac_build_alias" = x &&
2822 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2823 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2824 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2828 $as_echo "$ac_cv_build" >&6; }
2829 case $ac_cv_build in
2831 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2834 ac_save_IFS=$IFS; IFS='-'
2840 # Remember, the first character of IFS is used to create $*,
2841 # except with old shells:
2844 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2848 $as_echo_n "checking host system type... " >&6; }
2849 if ${ac_cv_host+:} false; then :
2850 $as_echo_n "(cached) " >&6
2852 if test "x$host_alias" = x; then
2853 ac_cv_host=$ac_cv_build
2855 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2856 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2861 $as_echo "$ac_cv_host" >&6; }
2864 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2867 ac_save_IFS=$IFS; IFS='-'
2873 # Remember, the first character of IFS is used to create $*,
2874 # except with old shells:
2877 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2882 ac_cpp='$CPP $CPPFLAGS'
2883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2886 if test -n "$ac_tool_prefix"; then
2887 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2888 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_CC+:} false; then :
2892 $as_echo_n "(cached) " >&6
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 if test -n "$CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917 $as_echo "$CC" >&6; }
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2925 if test -z "$ac_cv_prog_CC"; then
2927 # Extract the first word of "gcc", so it can be a program name with args.
2928 set dummy gcc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2934 if test -n "$ac_ct_CC"; then
2935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 ac_cv_prog_ac_ct_CC="gcc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2955 if test -n "$ac_ct_CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2957 $as_echo "$ac_ct_CC" >&6; }
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2963 if test "x$ac_ct_CC" = x; then
2966 case $cross_compiling:$ac_tool_warned in
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2970 ac_tool_warned=yes ;;
2978 if test -z "$CC"; then
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2981 set dummy ${ac_tool_prefix}cc; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_CC+:} false; then :
2985 $as_echo_n "(cached) " >&6
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_CC="${ac_tool_prefix}cc"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 if test -n "$CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3019 if test -z "$CC"; then
3020 # Extract the first word of "cc", so it can be a program name with args.
3021 set dummy cc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3039 ac_prog_rejected=yes
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 if test $ac_prog_rejected = yes; then
3051 # We found a bogon in the path, so make sure we never use it.
3052 set dummy $ac_cv_prog_CC
3054 if test $# != 0; then
3055 # We chose a different compiler from the bogus one.
3056 # However, it has the same basename, so the bogon will be chosen
3057 # first if we set CC to just the basename; use the full file name.
3059 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3075 if test -z "$CC"; then
3076 if test -n "$ac_tool_prefix"; then
3077 for ac_prog in cl.exe
3079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if ${ac_cv_prog_CC+:} false; then :
3084 $as_echo_n "(cached) " >&6
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC="$CC" # Let the user override the test.
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 if test -n "$CC"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3116 test -n "$CC" && break
3119 if test -z "$CC"; then
3121 for ac_prog in cl.exe
3123 # Extract the first word of "$ac_prog", so it can be a program name with args.
3124 set dummy $ac_prog; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3128 $as_echo_n "(cached) " >&6
3130 if test -n "$ac_ct_CC"; then
3131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_ac_ct_CC="$ac_prog"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3151 if test -n "$ac_ct_CC"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3153 $as_echo "$ac_ct_CC" >&6; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3160 test -n "$ac_ct_CC" && break
3163 if test "x$ac_ct_CC" = x; then
3166 case $cross_compiling:$ac_tool_warned in
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3170 ac_tool_warned=yes ;;
3179 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 as_fn_error $? "no acceptable C compiler found in \$PATH
3182 See \`config.log' for more details" "$LINENO" 5; }
3184 # Provide some information about the compiler.
3185 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3188 for ac_option in --version -v -V -qversion; do
3189 { { ac_try="$ac_compiler $ac_option >&5"
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3198 if test -s conftest.err; then
3200 ... rest of stderr output deleted ...
3201 10q' conftest.err >conftest.er1
3202 cat conftest.er1 >&5
3204 rm -f conftest.er1 conftest.err
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h. */
3220 ac_clean_files_save=$ac_clean_files
3221 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3222 # Try to create an executable without -o first, disregard a.out.
3223 # It will help us diagnose broken compilers, and finding out an intuition
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3226 $as_echo_n "checking whether the C compiler works... " >&6; }
3227 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3229 # The possible output files:
3230 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3233 for ac_file in $ac_files
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3237 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242 if { { ac_try="$ac_link_default"
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_link_default") 2>&5
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }; then :
3253 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3254 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3255 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3256 # so that the user can short-circuit this test for compilers unknown to
3258 for ac_file in $ac_files ''
3260 test -f "$ac_file" || continue
3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3265 # We found the default executable, but exeext='' is most
3269 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3271 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3273 # We set ac_cv_exeext here because the later test for it is not
3274 # safe: cross compilers may not add the suffix if given an `-o'
3275 # argument, so we may need to know it at that point already.
3276 # Even if this section looks crufty: it has the advantage of
3283 test "$ac_cv_exeext" = no && ac_cv_exeext=
3288 if test -z "$ac_file"; then :
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 $as_echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error 77 "C compiler cannot create executables
3297 See \`config.log' for more details" "$LINENO" 5; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3300 $as_echo "yes" >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3303 $as_echo_n "checking for C compiler default output file name... " >&6; }
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3305 $as_echo "$ac_file" >&6; }
3306 ac_exeext=$ac_cv_exeext
3308 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3309 ac_clean_files=$ac_clean_files_save
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3311 $as_echo_n "checking for suffix of executables... " >&6; }
3312 if { { ac_try="$ac_link"
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318 $as_echo "$ac_try_echo"; } >&5
3319 (eval "$ac_link") 2>&5
3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }; then :
3323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3324 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3325 # work properly (i.e., refer to `conftest.exe'), while it won't with
3327 for ac_file in conftest.exe conftest conftest.*; do
3328 test -f "$ac_file" || continue
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3340 See \`config.log' for more details" "$LINENO" 5; }
3342 rm -f conftest conftest$ac_cv_exeext
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3344 $as_echo "$ac_cv_exeext" >&6; }
3346 rm -f conftest.$ac_ext
3347 EXEEXT=$ac_cv_exeext
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3355 FILE *f = fopen ("conftest.out", "w");
3356 return ferror (f) || fclose (f) != 0;
3362 ac_clean_files="$ac_clean_files conftest.out"
3363 # Check that the compiler produces executables we can run. If not, either
3364 # the compiler is broken, or we cross compile.
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3366 $as_echo_n "checking whether we are cross compiling... " >&6; }
3367 if test "$cross_compiling" != yes; then
3368 { { ac_try="$ac_link"
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_link") 2>&5
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }
3379 if { ac_try='./conftest$ac_cv_exeext'
3380 { { case "(($ac_try" in
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_try") 2>&5
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }; }; then
3392 if test "$cross_compiling" = maybe; then
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot run C compiled programs.
3398 If you meant to cross compile, use \`--host'.
3399 See \`config.log' for more details" "$LINENO" 5; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3404 $as_echo "$cross_compiling" >&6; }
3406 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3407 ac_clean_files=$ac_clean_files_save
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3409 $as_echo_n "checking for suffix of object files... " >&6; }
3410 if ${ac_cv_objext+:} false; then :
3411 $as_echo_n "(cached) " >&6
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3424 rm -f conftest.o conftest.obj
3425 if { { ac_try="$ac_compile"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_compile") 2>&5
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; then :
3436 for ac_file in conftest.o conftest.obj conftest.*; do
3437 test -f "$ac_file" || continue;
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3440 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3445 $as_echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error $? "cannot compute suffix of object files: cannot compile
3451 See \`config.log' for more details" "$LINENO" 5; }
3453 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3456 $as_echo "$ac_cv_objext" >&6; }
3457 OBJEXT=$ac_cv_objext
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3460 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3461 if ${ac_cv_c_compiler_gnu+:} false; then :
3462 $as_echo_n "(cached) " >&6
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3478 if ac_fn_c_try_compile "$LINENO"; then :
3483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3488 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3489 if test $ac_compiler_gnu = yes; then
3494 ac_test_CFLAGS=${CFLAGS+set}
3495 ac_save_CFLAGS=$CFLAGS
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3497 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3498 if ${ac_cv_prog_cc_g+:} false; then :
3499 $as_echo_n "(cached) " >&6
3501 ac_save_c_werror_flag=$ac_c_werror_flag
3502 ac_c_werror_flag=yes
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3516 if ac_fn_c_try_compile "$LINENO"; then :
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3531 if ac_fn_c_try_compile "$LINENO"; then :
3534 ac_c_werror_flag=$ac_save_c_werror_flag
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3547 if ac_fn_c_try_compile "$LINENO"; then :
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 ac_c_werror_flag=$ac_save_c_werror_flag
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3558 $as_echo "$ac_cv_prog_cc_g" >&6; }
3559 if test "$ac_test_CFLAGS" = set; then
3560 CFLAGS=$ac_save_CFLAGS
3561 elif test $ac_cv_prog_cc_g = yes; then
3562 if test "$GCC" = yes; then
3568 if test "$GCC" = yes; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3575 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3576 if ${ac_cv_prog_cc_c89+:} false; then :
3577 $as_echo_n "(cached) " >&6
3579 ac_cv_prog_cc_c89=no
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3587 struct buf { int x; };
3588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3589 static char *e (p, i)
3595 static char *f (char * (*g) (char **, int), char **p, ...)
3600 s = g (p, va_arg (v,int));
3605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3606 function prototypes and stuff, but not '\xHH' hex character constants.
3607 These don't provoke an error unfortunately, instead are silently treated
3608 as 'x'. The following induces an error, until -std is added to get
3609 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3610 array size at least. It's necessary to write '\x00'==0 to get something
3611 that's true only with -std. */
3612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3614 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3615 inside strings and character constants. */
3617 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3619 int test (int i, double x);
3620 struct s1 {int (*f) (int a);};
3621 struct s2 {int (*f) (double a);};
3622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3634 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3636 CC="$ac_save_CC $ac_arg"
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_cv_prog_cc_c89=$ac_arg
3640 rm -f core conftest.err conftest.$ac_objext
3641 test "x$ac_cv_prog_cc_c89" != "xno" && break
3643 rm -f conftest.$ac_ext
3648 case "x$ac_cv_prog_cc_c89" in
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3651 $as_echo "none needed" >&6; } ;;
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3654 $as_echo "unsupported" >&6; } ;;
3656 CC="$CC $ac_cv_prog_cc_c89"
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3658 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3660 if test "x$ac_cv_prog_cc_c89" != xno; then :
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3672 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3673 if ${ac_cv_lib_dl_dlopen+:} false; then :
3674 $as_echo_n "(cached) " >&6
3676 ac_check_lib_save_LIBS=$LIBS
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3681 /* Override any GCC internal prototype to avoid an error.
3682 Use char because int might match the return type of a GCC
3683 builtin and then its argument prototype would still apply. */
3696 if ac_fn_c_try_link "$LINENO"; then :
3697 ac_cv_lib_dl_dlopen=yes
3699 ac_cv_lib_dl_dlopen=no
3701 rm -f core conftest.err conftest.$ac_objext \
3702 conftest$ac_exeext conftest.$ac_ext
3703 LIBS=$ac_check_lib_save_LIBS
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3706 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3707 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3710 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3716 # Check whether --with-cc was given.
3717 if test "${with_cc+set}" = set; then :
3718 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3722 # Check whether --with-ccopts was given.
3723 if test "${with_ccopts+set}" = set; then :
3724 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3728 # Check whether --with-ldopts was given.
3729 if test "${with_ldopts+set}" = set; then :
3730 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738 if test -n "$ac_tool_prefix"; then
3739 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3740 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if ${ac_cv_prog_CC+:} false; then :
3744 $as_echo_n "(cached) " >&6
3746 if test -n "$CC"; then
3747 ac_cv_prog_CC="$CC" # Let the user override the test.
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 if test -n "$CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3769 $as_echo "$CC" >&6; }
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3777 if test -z "$ac_cv_prog_CC"; then
3779 # Extract the first word of "gcc", so it can be a program name with args.
3780 set dummy gcc; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3784 $as_echo_n "(cached) " >&6
3786 if test -n "$ac_ct_CC"; then
3787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796 ac_cv_prog_ac_ct_CC="gcc"
3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3807 if test -n "$ac_ct_CC"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3809 $as_echo "$ac_ct_CC" >&6; }
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3815 if test "x$ac_ct_CC" = x; then
3818 case $cross_compiling:$ac_tool_warned in
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3822 ac_tool_warned=yes ;;
3830 if test -z "$CC"; then
3831 if test -n "$ac_tool_prefix"; then
3832 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3833 set dummy ${ac_tool_prefix}cc; ac_word=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if ${ac_cv_prog_CC+:} false; then :
3837 $as_echo_n "(cached) " >&6
3839 if test -n "$CC"; then
3840 ac_cv_prog_CC="$CC" # Let the user override the test.
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849 ac_cv_prog_CC="${ac_tool_prefix}cc"
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 if test -n "$CC"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3862 $as_echo "$CC" >&6; }
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 $as_echo "no" >&6; }
3871 if test -z "$CC"; then
3872 # Extract the first word of "cc", so it can be a program name with args.
3873 set dummy cc; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if ${ac_cv_prog_CC+:} false; then :
3877 $as_echo_n "(cached) " >&6
3879 if test -n "$CC"; then
3880 ac_cv_prog_CC="$CC" # Let the user override the test.
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3891 ac_prog_rejected=yes
3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 if test $ac_prog_rejected = yes; then
3903 # We found a bogon in the path, so make sure we never use it.
3904 set dummy $ac_cv_prog_CC
3906 if test $# != 0; then
3907 # We chose a different compiler from the bogus one.
3908 # However, it has the same basename, so the bogon will be chosen
3909 # first if we set CC to just the basename; use the full file name.
3911 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3917 if test -n "$CC"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919 $as_echo "$CC" >&6; }
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3927 if test -z "$CC"; then
3928 if test -n "$ac_tool_prefix"; then
3929 for ac_prog in cl.exe
3931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934 $as_echo_n "checking for $ac_word... " >&6; }
3935 if ${ac_cv_prog_CC+:} false; then :
3936 $as_echo_n "(cached) " >&6
3938 if test -n "$CC"; then
3939 ac_cv_prog_CC="$CC" # Let the user override the test.
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3948 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 if test -n "$CC"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3961 $as_echo "$CC" >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3968 test -n "$CC" && break
3971 if test -z "$CC"; then
3973 for ac_prog in cl.exe
3975 # Extract the first word of "$ac_prog", so it can be a program name with args.
3976 set dummy $ac_prog; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3980 $as_echo_n "(cached) " >&6
3982 if test -n "$ac_ct_CC"; then
3983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3992 ac_cv_prog_ac_ct_CC="$ac_prog"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4003 if test -n "$ac_ct_CC"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4005 $as_echo "$ac_ct_CC" >&6; }
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4012 test -n "$ac_ct_CC" && break
4015 if test "x$ac_ct_CC" = x; then
4018 case $cross_compiling:$ac_tool_warned in
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4022 ac_tool_warned=yes ;;
4031 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error $? "no acceptable C compiler found in \$PATH
4034 See \`config.log' for more details" "$LINENO" 5; }
4036 # Provide some information about the compiler.
4037 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4040 for ac_option in --version -v -V -qversion; do
4041 { { ac_try="$ac_compiler $ac_option >&5"
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047 $as_echo "$ac_try_echo"; } >&5
4048 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4050 if test -s conftest.err; then
4052 ... rest of stderr output deleted ...
4053 10q' conftest.err >conftest.er1
4054 cat conftest.er1 >&5
4056 rm -f conftest.er1 conftest.err
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4062 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4063 if ${ac_cv_c_compiler_gnu+:} false; then :
4064 $as_echo_n "(cached) " >&6
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4080 if ac_fn_c_try_compile "$LINENO"; then :
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4090 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4091 if test $ac_compiler_gnu = yes; then
4096 ac_test_CFLAGS=${CFLAGS+set}
4097 ac_save_CFLAGS=$CFLAGS
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4099 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4100 if ${ac_cv_prog_cc_g+:} false; then :
4101 $as_echo_n "(cached) " >&6
4103 ac_save_c_werror_flag=$ac_c_werror_flag
4104 ac_c_werror_flag=yes
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4118 if ac_fn_c_try_compile "$LINENO"; then :
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4133 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4149 if ac_fn_c_try_compile "$LINENO"; then :
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4160 $as_echo "$ac_cv_prog_cc_g" >&6; }
4161 if test "$ac_test_CFLAGS" = set; then
4162 CFLAGS=$ac_save_CFLAGS
4163 elif test $ac_cv_prog_cc_g = yes; then
4164 if test "$GCC" = yes; then
4170 if test "$GCC" = yes; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4177 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4178 if ${ac_cv_prog_cc_c89+:} false; then :
4179 $as_echo_n "(cached) " >&6
4181 ac_cv_prog_cc_c89=no
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4189 struct buf { int x; };
4190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4191 static char *e (p, i)
4197 static char *f (char * (*g) (char **, int), char **p, ...)
4202 s = g (p, va_arg (v,int));
4207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4208 function prototypes and stuff, but not '\xHH' hex character constants.
4209 These don't provoke an error unfortunately, instead are silently treated
4210 as 'x'. The following induces an error, until -std is added to get
4211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4212 array size at least. It's necessary to write '\x00'==0 to get something
4213 that's true only with -std. */
4214 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4217 inside strings and character constants. */
4219 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4221 int test (int i, double x);
4222 struct s1 {int (*f) (int a);};
4223 struct s2 {int (*f) (double a);};
4224 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4230 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4235 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4238 CC="$ac_save_CC $ac_arg"
4239 if ac_fn_c_try_compile "$LINENO"; then :
4240 ac_cv_prog_cc_c89=$ac_arg
4242 rm -f core conftest.err conftest.$ac_objext
4243 test "x$ac_cv_prog_cc_c89" != "xno" && break
4245 rm -f conftest.$ac_ext
4250 case "x$ac_cv_prog_cc_c89" in
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4253 $as_echo "none needed" >&6; } ;;
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4256 $as_echo "unsupported" >&6; } ;;
4258 CC="$CC $ac_cv_prog_cc_c89"
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4260 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4262 if test "x$ac_cv_prog_cc_c89" != xno; then :
4267 ac_cpp='$CPP $CPPFLAGS'
4268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4272 if test "$GCC" = yes; then
4273 RDYNAMIC="-rdynamic"
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4282 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4283 # On Suns, sometimes $CPP names a directory.
4284 if test -n "$CPP" && test -d "$CPP"; then
4287 if test -z "$CPP"; then
4288 if ${ac_cv_prog_CPP+:} false; then :
4289 $as_echo_n "(cached) " >&6
4291 # Double quotes because CPP needs to be expanded
4292 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4295 for ac_c_preproc_warn_flag in '' yes
4297 # Use a header file that comes with gcc, so configuring glibc
4298 # with a fresh cross-compiler works.
4299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4300 # <limits.h> exists even on freestanding compilers.
4301 # On the NeXT, cc -E runs the code through the compiler's parser,
4302 # not just through cpp. "Syntax error" is here to catch this case.
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4306 # include <limits.h>
4308 # include <assert.h>
4312 if ac_fn_c_try_cpp "$LINENO"; then :
4315 # Broken: fails on valid input.
4318 rm -f conftest.err conftest.i conftest.$ac_ext
4320 # OK, works on sane cases. Now check whether nonexistent headers
4321 # can be detected and how.
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324 #include <ac_nonexistent.h>
4326 if ac_fn_c_try_cpp "$LINENO"; then :
4327 # Broken: success on invalid input.
4330 # Passes both tests.
4334 rm -f conftest.err conftest.i conftest.$ac_ext
4337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4338 rm -f conftest.i conftest.err conftest.$ac_ext
4339 if $ac_preproc_ok; then :
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4352 $as_echo "$CPP" >&6; }
4354 for ac_c_preproc_warn_flag in '' yes
4356 # Use a header file that comes with gcc, so configuring glibc
4357 # with a fresh cross-compiler works.
4358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4359 # <limits.h> exists even on freestanding compilers.
4360 # On the NeXT, cc -E runs the code through the compiler's parser,
4361 # not just through cpp. "Syntax error" is here to catch this case.
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4365 # include <limits.h>
4367 # include <assert.h>
4371 if ac_fn_c_try_cpp "$LINENO"; then :
4374 # Broken: fails on valid input.
4377 rm -f conftest.err conftest.i conftest.$ac_ext
4379 # OK, works on sane cases. Now check whether nonexistent headers
4380 # can be detected and how.
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383 #include <ac_nonexistent.h>
4385 if ac_fn_c_try_cpp "$LINENO"; then :
4386 # Broken: success on invalid input.
4389 # Passes both tests.
4393 rm -f conftest.err conftest.i conftest.$ac_ext
4396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4397 rm -f conftest.i conftest.err conftest.$ac_ext
4398 if $ac_preproc_ok; then :
4401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4403 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4404 See \`config.log' for more details" "$LINENO" 5; }
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4414 $as_echo_n "checking for additional special compiler flags... " >&6; }
4415 if test "$GCC" = yes
4418 alpha) addcflags="-mieee" ;;
4421 if test "x$addcflags" != x
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4424 $as_echo "$addcflags" >&6; }
4425 CFLAGS="$addcflags $CFLAGS"
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4428 $as_echo "(none)" >&6; }
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4432 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4433 if ${ac_cv_path_GREP+:} false; then :
4434 $as_echo_n "(cached) " >&6
4436 if test -z "$GREP"; then
4437 ac_path_GREP_found=false
4438 # Loop through the user's path and test for each of PROGNAME-LIST
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4443 test -z "$as_dir" && as_dir=.
4444 for ac_prog in grep ggrep; do
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4447 as_fn_executable_p "$ac_path_GREP" || continue
4448 # Check for GNU ac_path_GREP and select it if it is found.
4449 # Check for GNU $ac_path_GREP
4450 case `"$ac_path_GREP" --version 2>&1` in
4452 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4455 $as_echo_n 0123456789 >"conftest.in"
4458 cat "conftest.in" "conftest.in" >"conftest.tmp"
4459 mv "conftest.tmp" "conftest.in"
4460 cp "conftest.in" "conftest.nl"
4461 $as_echo 'GREP' >> "conftest.nl"
4462 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4464 as_fn_arith $ac_count + 1 && ac_count=$as_val
4465 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4466 # Best one so far, save it but keep looking for a better one
4467 ac_cv_path_GREP="$ac_path_GREP"
4468 ac_path_GREP_max=$ac_count
4470 # 10*(2^10) chars as input seems more than enough
4471 test $ac_count -gt 10 && break
4473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4476 $ac_path_GREP_found && break 3
4481 if test -z "$ac_cv_path_GREP"; then
4482 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4485 ac_cv_path_GREP=$GREP
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4490 $as_echo "$ac_cv_path_GREP" >&6; }
4491 GREP="$ac_cv_path_GREP"
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4495 $as_echo_n "checking for egrep... " >&6; }
4496 if ${ac_cv_path_EGREP+:} false; then :
4497 $as_echo_n "(cached) " >&6
4499 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4500 then ac_cv_path_EGREP="$GREP -E"
4502 if test -z "$EGREP"; then
4503 ac_path_EGREP_found=false
4504 # Loop through the user's path and test for each of PROGNAME-LIST
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4509 test -z "$as_dir" && as_dir=.
4510 for ac_prog in egrep; do
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4513 as_fn_executable_p "$ac_path_EGREP" || continue
4514 # Check for GNU ac_path_EGREP and select it if it is found.
4515 # Check for GNU $ac_path_EGREP
4516 case `"$ac_path_EGREP" --version 2>&1` in
4518 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4521 $as_echo_n 0123456789 >"conftest.in"
4524 cat "conftest.in" "conftest.in" >"conftest.tmp"
4525 mv "conftest.tmp" "conftest.in"
4526 cp "conftest.in" "conftest.nl"
4527 $as_echo 'EGREP' >> "conftest.nl"
4528 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4529 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4530 as_fn_arith $ac_count + 1 && ac_count=$as_val
4531 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4532 # Best one so far, save it but keep looking for a better one
4533 ac_cv_path_EGREP="$ac_path_EGREP"
4534 ac_path_EGREP_max=$ac_count
4536 # 10*(2^10) chars as input seems more than enough
4537 test $ac_count -gt 10 && break
4539 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4542 $ac_path_EGREP_found && break 3
4547 if test -z "$ac_cv_path_EGREP"; then
4548 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4551 ac_cv_path_EGREP=$EGREP
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4557 $as_echo "$ac_cv_path_EGREP" >&6; }
4558 EGREP="$ac_cv_path_EGREP"
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4562 $as_echo_n "checking for ANSI C header files... " >&6; }
4563 if ${ac_cv_header_stdc+:} false; then :
4564 $as_echo_n "(cached) " >&6
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4581 if ac_fn_c_try_compile "$LINENO"; then :
4582 ac_cv_header_stdc=yes
4584 ac_cv_header_stdc=no
4586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588 if test $ac_cv_header_stdc = yes; then
4589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4596 $EGREP "memchr" >/dev/null 2>&1; then :
4599 ac_cv_header_stdc=no
4605 if test $ac_cv_header_stdc = yes; then
4606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "free" >/dev/null 2>&1; then :
4616 ac_cv_header_stdc=no
4622 if test $ac_cv_header_stdc = yes; then
4623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4624 if test "$cross_compiling" = yes; then :
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4631 #if ((' ' & 0x0FF) == 0x020)
4632 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4633 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4635 # define ISLOWER(c) \
4636 (('a' <= (c) && (c) <= 'i') \
4637 || ('j' <= (c) && (c) <= 'r') \
4638 || ('s' <= (c) && (c) <= 'z'))
4639 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4642 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4647 for (i = 0; i < 256; i++)
4648 if (XOR (islower (i), ISLOWER (i))
4649 || toupper (i) != TOUPPER (i))
4654 if ac_fn_c_try_run "$LINENO"; then :
4657 ac_cv_header_stdc=no
4659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4660 conftest.$ac_objext conftest.beam conftest.$ac_ext
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4666 $as_echo "$ac_cv_header_stdc" >&6; }
4667 if test $ac_cv_header_stdc = yes; then
4669 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4673 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4674 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4675 inttypes.h stdint.h unistd.h
4677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4678 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4680 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4681 cat >>confdefs.h <<_ACEOF
4682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4691 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4692 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4699 if test "$MINIX" = yes; then
4701 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4704 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4707 $as_echo "#define _MINIX 1" >>confdefs.h
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4713 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4714 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4715 $as_echo_n "(cached) " >&6
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4720 # define __EXTENSIONS__ 1
4721 $ac_includes_default
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731 ac_cv_safe_to_define___extensions__=yes
4733 ac_cv_safe_to_define___extensions__=no
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4738 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4739 test $ac_cv_safe_to_define___extensions__ = yes &&
4740 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4742 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4744 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4746 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4748 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4755 # Check whether --with-root-prefix was given.
4756 if test "${with_root_prefix+set}" = set; then :
4757 withval=$with_root_prefix; root_prefix=$withval
4761 # Check whether --enable-maintainer-mode was given.
4762 if test "${enable_maintainer_mode+set}" = set; then :
4763 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4767 $as_echo "Disabling maintainer mode" >&6; }
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4771 $as_echo "Enabling maintainer mode" >&6; }
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4777 $as_echo "Disabling maintainer mode by default" >&6; }
4782 # Check whether --enable-symlink-install was given.
4783 if test "${enable_symlink_install+set}" = set; then :
4784 enableval=$enable_symlink_install; if test "$enableval" = "no"
4786 LINK_INSTALL_FLAGS=-f
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4788 $as_echo "Disabling symlinks for install" >&6; }
4790 LINK_INSTALL_FLAGS=-sf
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4792 $as_echo "Enabling symlinks for install" >&6; }
4796 LINK_INSTALL_FLAGS=-f
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4798 $as_echo "Disabling symlinks for install by default" >&6; }
4803 relative_symlink_defined=
4804 # Check whether --enable-relative-symlinks was given.
4805 if test "${enable_relative_symlinks+set}" = set; then :
4806 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4809 relative_symlink_defined=yes
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4811 $as_echo "Disabling relative symlinks for install" >&6; }
4813 SYMLINK_RELATIVE=--relative
4814 relative_symlink_defined=yes
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4816 $as_echo "Enabling relative symlinks for install" >&6; }
4820 # Check whether --enable-symlink-relative-symlinks was given.
4821 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4822 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4824 SYMLINK_RELATIVE=yes
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4826 $as_echo "Disabling relative symlinks for install" >&6; }
4828 SYMLINK_RELATIVE=--relative
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4830 $as_echo "Enabling relative symlinks for install" >&6; }
4834 if test -z "$relative_symlink_defined"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4838 $as_echo "Disabling relative symlinks for install by default" >&6; }
4844 # Check whether --enable-symlink-build was given.
4845 if test "${enable_symlink_build+set}" = set; then :
4846 enableval=$enable_symlink_build; if test "$enableval" = "no"
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4850 $as_echo "Disabling symlinks for build" >&6; }
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4854 $as_echo "Enabling symlinks for build" >&6; }
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4860 $as_echo "Disabling symlinks for build by default" >&6; }
4865 # Check whether --enable-verbose-makecmds was given.
4866 if test "${enable_verbose_makecmds+set}" = set; then :
4867 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4870 $as_echo "Disabling verbose make commands" >&6; }
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4876 $as_echo "Enabling verbose make commands" >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4884 $as_echo "Disabling verbose make commands" >&6; }
4894 E2_PKG_CONFIG_STATIC=--static
4897 # Check whether --enable-elf-shlibs was given.
4898 if test "${enable_elf_shlibs+set}" = set; then :
4899 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4902 MAKEFILE_ELF=/dev/null
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4904 $as_echo "Disabling ELF shared libraries" >&6; }
4906 E2_PKG_CONFIG_STATIC=
4908 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4911 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4917 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4919 $as_echo "Enabling ELF shared libraries" >&6; }
4923 MAKEFILE_ELF=/dev/null
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4926 $as_echo "Disabling ELF shared libraries by default" >&6; }
4932 # Check whether --enable-bsd-shlibs was given.
4933 if test "${enable_bsd_shlibs+set}" = set; then :
4934 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4937 MAKEFILE_BSDLIB=/dev/null
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4939 $as_echo "Disabling BSD shared libraries" >&6; }
4941 E2_PKG_CONFIG_STATIC=
4943 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4947 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4952 $as_echo "Enabling BSD shared libraries" >&6; }
4956 MAKEFILE_BSDLIB=/dev/null
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4959 $as_echo "Disabling BSD shared libraries by default" >&6; }
4965 # Check whether --enable-profile was given.
4966 if test "${enable_profile+set}" = set; then :
4967 enableval=$enable_profile; if test "$enableval" = "no"
4970 MAKEFILE_PROFILE=/dev/null
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4972 $as_echo "Disabling profiling libraries" >&6; }
4975 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4976 PROFILED_LIB_EXT=_p.a
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4978 $as_echo "Building profiling libraries" >&6; }
4983 MAKEFILE_PROFILE=/dev/null
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4985 $as_echo "Disabling profiling libraries by default" >&6; }
4991 # Check whether --enable-gcov was given.
4992 if test "${enable_gcov+set}" = set; then :
4993 enableval=$enable_gcov; if test "$enableval" = "yes"
4995 CFLAGS="-g -fprofile-arcs -ftest-coverage"
4996 LDFLAGS="-fprofile-arcs -ftest-coverage"
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
4998 $as_echo "Enabling gcov support" >&6; }
5009 # Check whether --enable-jbd-debug was given.
5010 if test "${enable_jbd_debug+set}" = set; then :
5011 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5014 $as_echo "Disabling journal debugging" >&6; }
5017 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5020 $as_echo "Enabling journal debugging" >&6; }
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5025 $as_echo "Disabling journal debugging by default" >&6; }
5029 # Check whether --enable-blkid-debug was given.
5030 if test "${enable_blkid_debug+set}" = set; then :
5031 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5034 $as_echo "Disabling blkid debugging" >&6; }
5037 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5040 $as_echo "Enabling blkid debugging" >&6; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5045 $as_echo "Disabling blkid debugging by default" >&6; }
5049 # Check whether --enable-testio-debug was given.
5050 if test "${enable_testio_debug+set}" = set; then :
5051 enableval=$enable_testio_debug;
5052 if test "$enableval" = "no"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5055 $as_echo "Disabling testio debugging" >&6; }
5059 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5062 $as_echo "Enabling testio debugging" >&6; }
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5067 $as_echo "Enabling testio debugging by default" >&6; }
5068 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5082 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5083 if test -n "$ac_tool_prefix"; then
5084 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5085 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5089 $as_echo_n "(cached) " >&6
5093 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5115 if test -n "$PKG_CONFIG"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5117 $as_echo "$PKG_CONFIG" >&6; }
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5125 if test -z "$ac_cv_path_PKG_CONFIG"; then
5126 ac_pt_PKG_CONFIG=$PKG_CONFIG
5127 # Extract the first word of "pkg-config", so it can be a program name with args.
5128 set dummy pkg-config; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5132 $as_echo_n "(cached) " >&6
5134 case $ac_pt_PKG_CONFIG in
5136 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5158 if test -n "$ac_pt_PKG_CONFIG"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5160 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5166 if test "x$ac_pt_PKG_CONFIG" = x; then
5169 case $cross_compiling:$ac_tool_warned in
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5173 ac_tool_warned=yes ;;
5175 PKG_CONFIG=$ac_pt_PKG_CONFIG
5178 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5182 if test -n "$PKG_CONFIG"; then
5183 _pkg_min_version=0.9.0
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5185 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5186 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5188 $as_echo "yes" >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5200 DEPPROFILED_LIBUUID=
5202 # Check whether --enable-libuuid was given.
5203 if test "${enable_libuuid+set}" = set; then :
5204 enableval=$enable_libuuid; if test "$enableval" = "no"
5206 if test -z "$PKG_CONFIG"; then
5207 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5211 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5212 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 ac_check_lib_save_LIBS=$LIBS
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5220 /* Override any GCC internal prototype to avoid an error.
5221 Use char because int might match the return type of a GCC
5222 builtin and then its argument prototype would still apply. */
5226 char uuid_generate ();
5230 return uuid_generate ();
5235 if ac_fn_c_try_link "$LINENO"; then :
5236 ac_cv_lib_uuid_uuid_generate=yes
5238 ac_cv_lib_uuid_uuid_generate=no
5240 rm -f core conftest.err conftest.$ac_objext \
5241 conftest$ac_exeext conftest.$ac_ext
5242 LIBS=$ac_check_lib_save_LIBS
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5245 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5246 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5247 LIBUUID=`$PKG_CONFIG --libs uuid`;
5248 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5250 as_fn_error $? "external uuid library not found" "$LINENO" 5
5253 PROFILED_LIBUUID=$LIBUUID
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5256 $as_echo "Disabling private uuid library" >&6; }
5258 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5260 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5261 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5262 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5263 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5265 $as_echo "Enabling private uuid library" >&6; }
5269 if test -n "$PKG_CONFIG"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5271 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5272 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5273 $as_echo_n "(cached) " >&6
5275 ac_check_lib_save_LIBS=$LIBS
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5280 /* Override any GCC internal prototype to avoid an error.
5281 Use char because int might match the return type of a GCC
5282 builtin and then its argument prototype would still apply. */
5286 char uuid_generate ();
5290 return uuid_generate ();
5295 if ac_fn_c_try_link "$LINENO"; then :
5296 ac_cv_lib_uuid_uuid_generate=yes
5298 ac_cv_lib_uuid_uuid_generate=no
5300 rm -f core conftest.err conftest.$ac_objext \
5301 conftest$ac_exeext conftest.$ac_ext
5302 LIBS=$ac_check_lib_save_LIBS
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5305 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5306 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5307 LIBUUID=`$PKG_CONFIG --libs uuid`;
5308 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5312 if test -n "$LIBUUID"; then
5313 PROFILED_LIBUUID=$LIBUUID
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5316 $as_echo "Using system uuid by default" >&6; }
5318 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5320 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5321 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5322 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5323 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5325 $as_echo "Enabling private uuid library by default" >&6; }
5344 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5345 if test -n "$ac_tool_prefix"; then
5346 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5347 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5351 $as_echo_n "(cached) " >&6
5355 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5377 if test -n "$PKG_CONFIG"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5379 $as_echo "$PKG_CONFIG" >&6; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5387 if test -z "$ac_cv_path_PKG_CONFIG"; then
5388 ac_pt_PKG_CONFIG=$PKG_CONFIG
5389 # Extract the first word of "pkg-config", so it can be a program name with args.
5390 set dummy pkg-config; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5394 $as_echo_n "(cached) " >&6
5396 case $ac_pt_PKG_CONFIG in
5398 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5408 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5420 if test -n "$ac_pt_PKG_CONFIG"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5422 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5428 if test "x$ac_pt_PKG_CONFIG" = x; then
5431 case $cross_compiling:$ac_tool_warned in
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5435 ac_tool_warned=yes ;;
5437 PKG_CONFIG=$ac_pt_PKG_CONFIG
5440 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5444 if test -n "$PKG_CONFIG"; then
5445 _pkg_min_version=0.9.0
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5447 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5448 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5450 $as_echo "yes" >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5462 DEPPROFILED_LIBBLKID=
5465 # Check whether --enable-libblkid was given.
5466 if test "${enable_libblkid+set}" = set; then :
5467 enableval=$enable_libblkid; if test "$enableval" = "no"
5469 if test -z "$PKG_CONFIG"; then
5470 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5474 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5475 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5476 $as_echo_n "(cached) " >&6
5478 ac_check_lib_save_LIBS=$LIBS
5479 LIBS="-lblkid -luuid $LIBS"
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5483 /* Override any GCC internal prototype to avoid an error.
5484 Use char because int might match the return type of a GCC
5485 builtin and then its argument prototype would still apply. */
5489 char blkid_get_cache ();
5493 return blkid_get_cache ();
5498 if ac_fn_c_try_link "$LINENO"; then :
5499 ac_cv_lib_blkid_blkid_get_cache=yes
5501 ac_cv_lib_blkid_blkid_get_cache=no
5503 rm -f core conftest.err conftest.$ac_objext \
5504 conftest$ac_exeext conftest.$ac_ext
5505 LIBS=$ac_check_lib_save_LIBS
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5508 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5509 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5510 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5511 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5513 as_fn_error $? "external blkid library not found" "$LINENO" 5
5517 PROFILED_LIBBLKID=$LIBBLKID
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5519 $as_echo "Disabling private blkid library" >&6; }
5521 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5522 DEPLIBBLKID=$LIBBLKID
5523 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5524 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5525 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5526 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5527 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5530 $as_echo "Enabling private blkid library" >&6; }
5534 if test -n "$PKG_CONFIG"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5536 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5537 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5538 $as_echo_n "(cached) " >&6
5540 ac_check_lib_save_LIBS=$LIBS
5541 LIBS="-lblkid $LIBS"
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5545 /* Override any GCC internal prototype to avoid an error.
5546 Use char because int might match the return type of a GCC
5547 builtin and then its argument prototype would still apply. */
5551 char blkid_get_cache ();
5555 return blkid_get_cache ();
5560 if ac_fn_c_try_link "$LINENO"; then :
5561 ac_cv_lib_blkid_blkid_get_cache=yes
5563 ac_cv_lib_blkid_blkid_get_cache=no
5565 rm -f core conftest.err conftest.$ac_objext \
5566 conftest$ac_exeext conftest.$ac_ext
5567 LIBS=$ac_check_lib_save_LIBS
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5570 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5571 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5572 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5573 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5577 if test -n "$LIBBLKID"; then
5579 PROFILED_LIBBLKID=$LIBBLKID
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5581 $as_echo "Using system blkid library by default" >&6; }
5583 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5584 DEPLIBBLKID=$LIBBLKID
5585 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5586 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5587 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5588 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5589 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5592 $as_echo "Enabling private blkid library by default" >&6; }
5605 # Check whether --enable-backtrace was given.
5606 if test "${enable_backtrace+set}" = set; then :
5607 enableval=$enable_backtrace; if test "$enableval" = "no"
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5610 $as_echo "Disabling use of backtrace" >&6; }
5611 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5615 $as_echo "Enabling use of backtrace" >&6; }
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5620 $as_echo "Enabling use of backtrace by default" >&6; }
5624 # Check whether --enable-debugfs was given.
5625 if test "${enable_debugfs+set}" = set; then :
5626 enableval=$enable_debugfs; if test "$enableval" = "no"
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5629 $as_echo "Disabling debugfs support" >&6; }
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5634 $as_echo "Enabling debugfs support" >&6; }
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5639 $as_echo "Enabling debugfs support by default" >&6; }
5645 # Check whether --enable-imager was given.
5646 if test "${enable_imager+set}" = set; then :
5647 enableval=$enable_imager; if test "$enableval" = "no"
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5650 $as_echo "Disabling e2image support" >&6; }
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5655 $as_echo "Enabling e2image support" >&6; }
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5660 $as_echo "Enabling e2image support by default" >&6; }
5666 # Check whether --enable-resizer was given.
5667 if test "${enable_resizer+set}" = set; then :
5668 enableval=$enable_resizer; if test "$enableval" = "no"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5671 $as_echo "Disabling e2resize support" >&6; }
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5676 $as_echo "Enabling e2resize support" >&6; }
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5681 $as_echo "Enabling e2resize support by default" >&6; }
5687 # Check whether --enable-defrag was given.
5688 if test "${enable_defrag+set}" = set; then :
5689 enableval=$enable_defrag; if test "$enableval" = "no"
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5692 $as_echo "Disabling e4defrag support" >&6; }
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5697 $as_echo "Enabling e4defrag support" >&6; }
5701 if test -z "$WITH_DIET_LIBC"
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5704 $as_echo "Enabling e4defrag support by default" >&6; }
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5708 $as_echo "Disabling e4defrag support by default" >&6; }
5715 # Check whether --enable-fsck was given.
5716 if test "${enable_fsck+set}" = set; then :
5717 enableval=$enable_fsck; if test "$enableval" = "no"
5719 FSCK_PROG='' FSCK_MAN=''
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5721 $as_echo "Not building fsck wrapper" >&6; }
5723 FSCK_PROG=fsck FSCK_MAN=fsck.8
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5725 $as_echo "Building fsck wrapper" >&6; }
5731 FSCK_PROG='' FSCK_MAN=''
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5733 $as_echo "Not building fsck wrapper by default" >&6; }
5736 FSCK_PROG=fsck FSCK_MAN=fsck.8
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5738 $as_echo "Building fsck wrapper by default" >&6; }
5745 # Check whether --enable-e2initrd-helper was given.
5746 if test "${enable_e2initrd_helper+set}" = set; then :
5747 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5749 E2INITRD_PROG='' E2INITRD_MAN=''
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5751 $as_echo "Not building e2initrd helper" >&6; }
5753 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5755 $as_echo "Building e2initrd helper" >&6; }
5759 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5761 $as_echo "Building e2initrd helper by default" >&6; }
5767 # Check whether --enable-tls was given.
5768 if test "${enable_tls+set}" = set; then :
5769 enableval=$enable_tls; if test "$enableval" = "no"
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5773 $as_echo "Disabling thread local support" >&6; }
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5777 $as_echo "Enabling thread local support" >&6; }
5781 if test -n "$WITH_DIET_LIBC"
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5785 $as_echo "Diet libc does not support thread local support" >&6; }
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5789 $as_echo "Try using thread local support by default" >&6; }
5794 if test "$try_tls" = "yes"
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5798 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5799 if ${ac_cv_tls+:} false; then :
5800 $as_echo_n "(cached) " >&6
5803 ax_tls_keywords="__thread __declspec(thread) none"
5804 for ax_tls_keyword in $ax_tls_keywords; do
5805 case $ax_tls_keyword in
5806 none) ac_cv_tls=none ; break ;;
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5813 static $ax_tls_keyword int bar;
5824 if ac_fn_c_try_compile "$LINENO"; then :
5825 ac_cv_tls=$ax_tls_keyword ; break
5830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837 if test "$ac_cv_tls" != "none"; then
5839 cat >>confdefs.h <<_ACEOF
5840 #define TLS $ac_cv_tls
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5845 $as_echo "$ac_cv_tls" >&6; }
5849 # Check whether --enable-uuidd was given.
5850 if test "${enable_uuidd+set}" = set; then :
5851 enableval=$enable_uuidd; if test "$enableval" = "no"
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5854 $as_echo "Not building uuidd" >&6; }
5857 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5861 $as_echo "Building uuidd" >&6; }
5865 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5867 if test -z "$UUID_CMT"
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5871 $as_echo "Building uuidd by default" >&6; }
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5875 $as_echo "Disabling uuidd by default" >&6; }
5882 # Check whether --enable-mmp was given.
5883 if test "${enable_mmp+set}" = set; then :
5884 enableval=$enable_mmp; if test "$enableval" = "no"
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5887 $as_echo "Disabling mmp support" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5890 $as_echo "Enabling mmp support" >&6; }
5891 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5897 $as_echo "Enabling mmp support by default" >&6; }
5898 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5904 # Check whether --enable-bmap-stats was given.
5905 if test "${enable_bmap_stats+set}" = set; then :
5906 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5909 $as_echo "Disabling bitmap statistics support" >&6; }
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5912 $as_echo "Enabling bitmap statistics support" >&6; }
5913 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5919 $as_echo "Enabling bitmap statistics support by default" >&6; }
5920 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5926 # Check whether --enable-bmap-stats-ops was given.
5927 if test "${enable_bmap_stats_ops+set}" = set; then :
5928 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5931 $as_echo "Disabling additional bitmap statistics" >&6; }
5933 if test "x${enable_bmap_stats}" = "xno"; then :
5934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5936 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5937 See \`config.log' for more details" "$LINENO" 5; }
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5941 $as_echo "Enabling additional bitmap statistics" >&6; }
5942 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5948 $as_echo "Disabling additional bitmap statistics by default" >&6; }
5952 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5954 GETTEXT_PACKAGE=e2fsprogs
5956 VERSION="$E2FSPROGS_VERSION"
5959 cat >>confdefs.h <<_ACEOF
5960 #define PACKAGE "$PACKAGE"
5964 cat >>confdefs.h <<_ACEOF
5965 #define VERSION "$VERSION"
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5973 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5975 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5976 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5977 $as_echo_n "(cached) " >&6
5979 cat >conftest.make <<\_ACEOF
5982 @echo '@@@%%%=$(MAKE)=@@@%%%'
5984 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5985 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5987 eval ac_cv_prog_make_${ac_make}_set=yes;;
5989 eval ac_cv_prog_make_${ac_make}_set=no;;
5993 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5995 $as_echo "yes" >&6; }
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6000 SET_MAKE="MAKE=${MAKE-make}"
6003 # Find a good install program. We prefer a C program (faster),
6004 # so one script is as good as another. But avoid the broken or
6005 # incompatible versions:
6006 # SysV /etc/install, /usr/sbin/install
6007 # SunOS /usr/etc/install
6008 # IRIX /sbin/install
6010 # AmigaOS /C/install, which installs bootblocks on floppy discs
6011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6014 # OS/2's system install, which has a completely different semantic
6015 # ./install, which can be erroneously created by make from ./install.sh.
6016 # Reject install programs that cannot install multiple files.
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6018 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6019 if test -z "$INSTALL"; then
6020 if ${ac_cv_path_install+:} false; then :
6021 $as_echo_n "(cached) " >&6
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 test -z "$as_dir" && as_dir=.
6028 # Account for people who put trailing slashes in PATH elements.
6029 case $as_dir/ in #((
6030 ./ | .// | /[cC]/* | \
6031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6032 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6035 # OSF1 and SCO ODT 3.0 have their own names for install.
6036 # Don't use installbsd from OSF since it installs stuff as root
6038 for ac_prog in ginstall scoinst install; do
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6041 if test $ac_prog = install &&
6042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6043 # AIX install. It has an incompatible calling convention.
6045 elif test $ac_prog = install &&
6046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6047 # program-specific install script used by HP pwplus--don't use.
6050 rm -rf conftest.one conftest.two conftest.dir
6051 echo one > conftest.one
6052 echo two > conftest.two
6054 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6055 test -s conftest.one && test -s conftest.two &&
6056 test -s conftest.dir/conftest.one &&
6057 test -s conftest.dir/conftest.two
6059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6072 rm -rf conftest.one conftest.two conftest.dir
6075 if test "${ac_cv_path_install+set}" = set; then
6076 INSTALL=$ac_cv_path_install
6078 # As a last resort, use the slow shell script. Don't cache a
6079 # value for INSTALL within a source directory, because that will
6080 # break other packages using the cache if that directory is
6081 # removed, or if the value is a relative name.
6082 INSTALL=$ac_install_sh
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6086 $as_echo "$INSTALL" >&6; }
6088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6089 # It thinks the first close brace ends the variable substitution.
6090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6097 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6098 if test -z "$MKDIR_P"; then
6099 if ${ac_cv_path_mkdir+:} false; then :
6100 $as_echo_n "(cached) " >&6
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6106 test -z "$as_dir" && as_dir=.
6107 for ac_prog in mkdir gmkdir; do
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6110 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6111 'mkdir (GNU coreutils) '* | \
6112 'mkdir (coreutils) '* | \
6113 'mkdir (fileutils) '4.1*)
6114 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6124 test -d ./--version && rmdir ./--version
6125 if test "${ac_cv_path_mkdir+set}" = set; then
6126 MKDIR_P="$ac_cv_path_mkdir -p"
6128 # As a last resort, use the slow shell script. Don't cache a
6129 # value for MKDIR_P within a source directory, because that will
6130 # break other packages using the cache if that directory is
6131 # removed, or if the value is a relative name.
6132 MKDIR_P="$ac_install_sh -d"
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6136 $as_echo "$MKDIR_P" >&6; }
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6139 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6140 if ${ac_cv_path_SED+:} false; then :
6141 $as_echo_n "(cached) " >&6
6143 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6144 for ac_i in 1 2 3 4 5 6 7; do
6145 ac_script="$ac_script$as_nl$ac_script"
6147 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6148 { ac_script=; unset ac_script;}
6149 if test -z "$SED"; then
6150 ac_path_SED_found=false
6151 # Loop through the user's path and test for each of PROGNAME-LIST
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 test -z "$as_dir" && as_dir=.
6157 for ac_prog in sed gsed; do
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6160 as_fn_executable_p "$ac_path_SED" || continue
6161 # Check for GNU ac_path_SED and select it if it is found.
6162 # Check for GNU $ac_path_SED
6163 case `"$ac_path_SED" --version 2>&1` in
6165 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6168 $as_echo_n 0123456789 >"conftest.in"
6171 cat "conftest.in" "conftest.in" >"conftest.tmp"
6172 mv "conftest.tmp" "conftest.in"
6173 cp "conftest.in" "conftest.nl"
6174 $as_echo '' >> "conftest.nl"
6175 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6177 as_fn_arith $ac_count + 1 && ac_count=$as_val
6178 if test $ac_count -gt ${ac_path_SED_max-0}; then
6179 # Best one so far, save it but keep looking for a better one
6180 ac_cv_path_SED="$ac_path_SED"
6181 ac_path_SED_max=$ac_count
6183 # 10*(2^10) chars as input seems more than enough
6184 test $ac_count -gt 10 && break
6186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6189 $ac_path_SED_found && break 3
6194 if test -z "$ac_cv_path_SED"; then
6195 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6203 $as_echo "$ac_cv_path_SED" >&6; }
6204 SED="$ac_cv_path_SED"
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6209 $as_echo_n "checking whether NLS is requested... " >&6; }
6210 # Check whether --enable-nls was given.
6211 if test "${enable_nls+set}" = set; then :
6212 enableval=$enable_nls; USE_NLS=$enableval
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6218 $as_echo "$USE_NLS" >&6; }
6223 GETTEXT_MACRO_VERSION=0.18
6228 # Prepare PATH_SEPARATOR.
6229 # The user is always right.
6230 if test "${PATH_SEPARATOR+set}" != set; then
6231 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6232 # contains only /bin. Note that ksh looks also at the FPATH variable,
6233 # so we have to set that as well for the test.
6235 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6236 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6237 || PATH_SEPARATOR=';'
6241 # Find out how to test for executable files. Don't use a zero-byte file,
6242 # as systems may use methods other than mode bits to determine executability.
6243 cat >conf$$.file <<_ASEOF
6247 chmod +x conf$$.file
6248 if test -x conf$$.file >/dev/null 2>&1; then
6249 ac_executable_p="test -x"
6251 ac_executable_p="test -f"
6255 # Extract the first word of "msgfmt", so it can be a program name with args.
6256 set dummy msgfmt; ac_word=$2
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258 $as_echo_n "checking for $ac_word... " >&6; }
6259 if ${ac_cv_path_MSGFMT+:} false; then :
6260 $as_echo_n "(cached) " >&6
6264 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6267 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6268 for ac_dir in $PATH; do
6270 test -z "$ac_dir" && ac_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6273 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6274 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6275 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6276 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6283 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6287 MSGFMT="$ac_cv_path_MSGFMT"
6288 if test "$MSGFMT" != ":"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6290 $as_echo "$MSGFMT" >&6; }
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6296 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6297 set dummy gmsgfmt; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_path_GMSGFMT+:} false; then :
6301 $as_echo_n "(cached) " >&6
6305 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6315 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6327 GMSGFMT=$ac_cv_path_GMSGFMT
6328 if test -n "$GMSGFMT"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6330 $as_echo "$GMSGFMT" >&6; }
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6338 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6339 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6340 *) MSGFMT_015=$MSGFMT ;;
6343 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6344 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6345 *) GMSGFMT_015=$GMSGFMT ;;
6350 # Prepare PATH_SEPARATOR.
6351 # The user is always right.
6352 if test "${PATH_SEPARATOR+set}" != set; then
6353 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6354 # contains only /bin. Note that ksh looks also at the FPATH variable,
6355 # so we have to set that as well for the test.
6357 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6358 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6359 || PATH_SEPARATOR=';'
6363 # Find out how to test for executable files. Don't use a zero-byte file,
6364 # as systems may use methods other than mode bits to determine executability.
6365 cat >conf$$.file <<_ASEOF
6369 chmod +x conf$$.file
6370 if test -x conf$$.file >/dev/null 2>&1; then
6371 ac_executable_p="test -x"
6373 ac_executable_p="test -f"
6377 # Extract the first word of "xgettext", so it can be a program name with args.
6378 set dummy xgettext; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_path_XGETTEXT+:} false; then :
6382 $as_echo_n "(cached) " >&6
6386 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6389 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6390 for ac_dir in $PATH; do
6392 test -z "$ac_dir" && ac_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6395 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6396 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6397 (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
6398 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6405 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6409 XGETTEXT="$ac_cv_path_XGETTEXT"
6410 if test "$XGETTEXT" != ":"; then
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6412 $as_echo "$XGETTEXT" >&6; }
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6420 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6421 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6422 *) XGETTEXT_015=$XGETTEXT ;;
6427 # Prepare PATH_SEPARATOR.
6428 # The user is always right.
6429 if test "${PATH_SEPARATOR+set}" != set; then
6430 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6431 # contains only /bin. Note that ksh looks also at the FPATH variable,
6432 # so we have to set that as well for the test.
6434 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6435 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6436 || PATH_SEPARATOR=';'
6440 # Find out how to test for executable files. Don't use a zero-byte file,
6441 # as systems may use methods other than mode bits to determine executability.
6442 cat >conf$$.file <<_ASEOF
6446 chmod +x conf$$.file
6447 if test -x conf$$.file >/dev/null 2>&1; then
6448 ac_executable_p="test -x"
6450 ac_executable_p="test -f"
6454 # Extract the first word of "msgmerge", so it can be a program name with args.
6455 set dummy msgmerge; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if ${ac_cv_path_MSGMERGE+:} false; then :
6459 $as_echo_n "(cached) " >&6
6463 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6466 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6467 for ac_dir in $PATH; do
6469 test -z "$ac_dir" && ac_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6472 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6473 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6474 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6481 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6485 MSGMERGE="$ac_cv_path_MSGMERGE"
6486 if test "$MSGMERGE" != ":"; then
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6488 $as_echo "$MSGMERGE" >&6; }
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6495 test -n "$localedir" || localedir='${datadir}/locale'
6498 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6501 ac_config_commands="$ac_config_commands po-directories"
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6506 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6507 if ${ac_cv_gnu_library_2+:} false; then :
6508 $as_echo_n "(cached) " >&6
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6513 #include <features.h>
6514 #ifdef __GNU_LIBRARY__
6515 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6522 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6523 ac_cv_gnu_library_2=yes
6525 ac_cv_gnu_library_2=no
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6533 $as_echo "$ac_cv_gnu_library_2" >&6; }
6535 GLIBC2="$ac_cv_gnu_library_2"
6538 if test -n "$ac_tool_prefix"; then
6539 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6540 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if ${ac_cv_prog_RANLIB+:} false; then :
6544 $as_echo_n "(cached) " >&6
6546 if test -n "$RANLIB"; then
6547 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6556 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 RANLIB=$ac_cv_prog_RANLIB
6567 if test -n "$RANLIB"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6569 $as_echo "$RANLIB" >&6; }
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6577 if test -z "$ac_cv_prog_RANLIB"; then
6578 ac_ct_RANLIB=$RANLIB
6579 # Extract the first word of "ranlib", so it can be a program name with args.
6580 set dummy ranlib; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6584 $as_echo_n "(cached) " >&6
6586 if test -n "$ac_ct_RANLIB"; then
6587 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6596 ac_cv_prog_ac_ct_RANLIB="ranlib"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6607 if test -n "$ac_ct_RANLIB"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6609 $as_echo "$ac_ct_RANLIB" >&6; }
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6615 if test "x$ac_ct_RANLIB" = x; then
6618 case $cross_compiling:$ac_tool_warned in
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6622 ac_tool_warned=yes ;;
6624 RANLIB=$ac_ct_RANLIB
6627 RANLIB="$ac_cv_prog_RANLIB"
6634 if test -n "$GCC"; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6636 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6637 if ${gl_cv_cc_vis_werror+:} false; then :
6638 $as_echo_n "(cached) " >&6
6641 gl_save_CFLAGS="$CFLAGS"
6642 CFLAGS="$CFLAGS -Werror"
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6654 if ac_fn_c_try_compile "$LINENO"; then :
6655 gl_cv_cc_vis_werror=yes
6657 gl_cv_cc_vis_werror=no
6659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660 CFLAGS="$gl_save_CFLAGS"
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6664 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6666 $as_echo_n "checking for simple visibility declarations... " >&6; }
6667 if ${gl_cv_cc_visibility+:} false; then :
6668 $as_echo_n "(cached) " >&6
6671 gl_save_CFLAGS="$CFLAGS"
6672 CFLAGS="$CFLAGS -fvisibility=hidden"
6673 if test $gl_cv_cc_vis_werror = yes; then
6674 CFLAGS="$CFLAGS -Werror"
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6678 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6679 extern __attribute__((__visibility__("default"))) int exportedvar;
6680 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6681 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6682 void dummyfunc (void) {}
6692 if ac_fn_c_try_compile "$LINENO"; then :
6693 gl_cv_cc_visibility=yes
6695 gl_cv_cc_visibility=no
6697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 CFLAGS="$gl_save_CFLAGS"
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6702 $as_echo "$gl_cv_cc_visibility" >&6; }
6703 if test $gl_cv_cc_visibility = yes; then
6704 CFLAG_VISIBILITY="-fvisibility=hidden"
6711 cat >>confdefs.h <<_ACEOF
6712 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6717 $as_echo_n "checking for inline... " >&6; }
6718 if ${ac_cv_c_inline+:} false; then :
6719 $as_echo_n "(cached) " >&6
6722 for ac_kw in inline __inline__ __inline; do
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6727 static $ac_kw foo_t static_foo () {return 0; }
6728 $ac_kw foo_t foo () {return 0; }
6732 if ac_fn_c_try_compile "$LINENO"; then :
6733 ac_cv_c_inline=$ac_kw
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 test "$ac_cv_c_inline" != no && break
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6741 $as_echo "$ac_cv_c_inline" >&6; }
6743 case $ac_cv_c_inline in
6746 case $ac_cv_c_inline in
6748 *) ac_val=$ac_cv_c_inline;;
6750 cat >>confdefs.h <<_ACEOF
6752 #define inline $ac_val
6758 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6759 if test "x$ac_cv_type_size_t" = xyes; then :
6763 cat >>confdefs.h <<_ACEOF
6764 #define size_t unsigned int
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6771 $as_echo_n "checking for stdint.h... " >&6; }
6772 if ${gl_cv_header_stdint_h+:} false; then :
6773 $as_echo_n "(cached) " >&6
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 #include <sys/types.h>
6782 uintmax_t i = (uintmax_t) -1; return !i;
6787 if ac_fn_c_try_compile "$LINENO"; then :
6788 gl_cv_header_stdint_h=yes
6790 gl_cv_header_stdint_h=no
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6795 $as_echo "$gl_cv_header_stdint_h" >&6; }
6796 if test $gl_cv_header_stdint_h = yes; then
6798 cat >>confdefs.h <<_ACEOF
6799 #define HAVE_STDINT_H_WITH_UINTMAX 1
6804 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6805 # for constant arguments. Useless!
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6807 $as_echo_n "checking for working alloca.h... " >&6; }
6808 if ${ac_cv_working_alloca_h+:} false; then :
6809 $as_echo_n "(cached) " >&6
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6817 char *p = (char *) alloca (2 * sizeof (int));
6823 if ac_fn_c_try_link "$LINENO"; then :
6824 ac_cv_working_alloca_h=yes
6826 ac_cv_working_alloca_h=no
6828 rm -f core conftest.err conftest.$ac_objext \
6829 conftest$ac_exeext conftest.$ac_ext
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6832 $as_echo "$ac_cv_working_alloca_h" >&6; }
6833 if test $ac_cv_working_alloca_h = yes; then
6835 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6840 $as_echo_n "checking for alloca... " >&6; }
6841 if ${ac_cv_func_alloca_works+:} false; then :
6842 $as_echo_n "(cached) " >&6
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6847 # define alloca __builtin_alloca
6850 # include <malloc.h>
6851 # define alloca _alloca
6853 # ifdef HAVE_ALLOCA_H
6854 # include <alloca.h>
6859 # ifndef alloca /* predefined by HP cc +Olibcalls */
6860 void *alloca (size_t);
6870 char *p = (char *) alloca (1);
6876 if ac_fn_c_try_link "$LINENO"; then :
6877 ac_cv_func_alloca_works=yes
6879 ac_cv_func_alloca_works=no
6881 rm -f core conftest.err conftest.$ac_objext \
6882 conftest$ac_exeext conftest.$ac_ext
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6885 $as_echo "$ac_cv_func_alloca_works" >&6; }
6887 if test $ac_cv_func_alloca_works = yes; then
6889 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6892 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6893 # that cause trouble. Some versions do not even contain alloca or
6894 # contain a buggy version. If you still want to use their alloca,
6895 # use ar to extract alloca.o from them instead of compiling alloca.c.
6897 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6899 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6903 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6904 if ${ac_cv_os_cray+:} false; then :
6905 $as_echo_n "(cached) " >&6
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6909 #if defined CRAY && ! defined CRAY2
6916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6917 $EGREP "webecray" >/dev/null 2>&1; then :
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6926 $as_echo "$ac_cv_os_cray" >&6; }
6927 if test $ac_cv_os_cray = yes; then
6928 for ac_func in _getb67 GETB67 getb67; do
6929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6930 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6931 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6933 cat >>confdefs.h <<_ACEOF
6934 #define CRAY_STACKSEG_END $ac_func
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6944 $as_echo_n "checking stack direction for C alloca... " >&6; }
6945 if ${ac_cv_c_stack_direction+:} false; then :
6946 $as_echo_n "(cached) " >&6
6948 if test "$cross_compiling" = yes; then :
6949 ac_cv_c_stack_direction=0
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6953 $ac_includes_default
6955 find_stack_direction (int *addr, int depth)
6960 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6961 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6966 main (int argc, char **argv)
6968 return find_stack_direction (0, argc + !argv + 20) < 0;
6971 if ac_fn_c_try_run "$LINENO"; then :
6972 ac_cv_c_stack_direction=1
6974 ac_cv_c_stack_direction=-1
6976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6977 conftest.$ac_objext conftest.beam conftest.$ac_ext
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6982 $as_echo "$ac_cv_c_stack_direction" >&6; }
6983 cat >>confdefs.h <<_ACEOF
6984 #define STACK_DIRECTION $ac_cv_c_stack_direction
6993 for ac_header in $ac_header_list
6995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6996 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6998 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6999 cat >>confdefs.h <<_ACEOF
7000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7014 for ac_func in getpagesize
7016 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7017 if test "x$ac_cv_func_getpagesize" = xyes; then :
7018 cat >>confdefs.h <<_ACEOF
7019 #define HAVE_GETPAGESIZE 1
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7026 $as_echo_n "checking for working mmap... " >&6; }
7027 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7028 $as_echo_n "(cached) " >&6
7030 if test "$cross_compiling" = yes; then :
7031 ac_cv_func_mmap_fixed_mapped=no
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7035 $ac_includes_default
7036 /* malloc might have been renamed as rpl_malloc. */
7039 /* Thanks to Mike Haertel and Jim Avera for this test.
7040 Here is a matrix of mmap possibilities:
7041 mmap private not fixed
7042 mmap private fixed at somewhere currently unmapped
7043 mmap private fixed at somewhere already mapped
7044 mmap shared not fixed
7045 mmap shared fixed at somewhere currently unmapped
7046 mmap shared fixed at somewhere already mapped
7047 For private mappings, we should verify that changes cannot be read()
7048 back from the file, nor mmap's back from the file at a different
7049 address. (There have been systems where private was not correctly
7050 implemented like the infamous i386 svr4.0, and systems where the
7051 VM page cache was not coherent with the file system buffer cache
7052 like early versions of FreeBSD and possibly contemporary NetBSD.)
7053 For shared mappings, we should conversely verify that changes get
7054 propagated back to all the places they're supposed to be.
7056 Grep wants private fixed already mapped.
7057 The main things grep needs to know about mmap are:
7058 * does it exist and is it safe to write into the mmap'd area
7059 * how to use it (BSD variants) */
7062 #include <sys/mman.h>
7064 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7068 /* This mess was copied from the GNU getpagesize.h. */
7069 #ifndef HAVE_GETPAGESIZE
7070 # ifdef _SC_PAGESIZE
7071 # define getpagesize() sysconf(_SC_PAGESIZE)
7072 # else /* no _SC_PAGESIZE */
7073 # ifdef HAVE_SYS_PARAM_H
7074 # include <sys/param.h>
7075 # ifdef EXEC_PAGESIZE
7076 # define getpagesize() EXEC_PAGESIZE
7077 # else /* no EXEC_PAGESIZE */
7079 # define getpagesize() NBPG * CLSIZE
7082 # endif /* no CLSIZE */
7083 # else /* no NBPG */
7085 # define getpagesize() NBPC
7086 # else /* no NBPC */
7088 # define getpagesize() PAGESIZE
7089 # endif /* PAGESIZE */
7090 # endif /* no NBPC */
7091 # endif /* no NBPG */
7092 # endif /* no EXEC_PAGESIZE */
7093 # else /* no HAVE_SYS_PARAM_H */
7094 # define getpagesize() 8192 /* punt totally */
7095 # endif /* no HAVE_SYS_PARAM_H */
7096 # endif /* no _SC_PAGESIZE */
7098 #endif /* no HAVE_GETPAGESIZE */
7103 char *data, *data2, *data3;
7108 pagesize = getpagesize ();
7110 /* First, make a file with some known garbage in it. */
7111 data = (char *) malloc (pagesize);
7114 for (i = 0; i < pagesize; ++i)
7115 *(data + i) = rand ();
7117 fd = creat ("conftest.mmap", 0600);
7120 if (write (fd, data, pagesize) != pagesize)
7124 /* Next, check that the tail of a page is zero-filled. File must have
7125 non-zero length, otherwise we risk SIGBUS for entire page. */
7126 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7130 if (write (fd2, cdata2, 1) != 1)
7132 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7133 if (data2 == MAP_FAILED)
7135 for (i = 0; i < pagesize; ++i)
7139 if (munmap (data2, pagesize))
7142 /* Next, try to mmap the file at a fixed address which already has
7143 something else allocated at it. If we can, also make sure that
7144 we see the same garbage. */
7145 fd = open ("conftest.mmap", O_RDWR);
7148 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7149 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7151 for (i = 0; i < pagesize; ++i)
7152 if (*(data + i) != *(data2 + i))
7155 /* Finally, make sure that changes to the mapped area do not
7156 percolate back to the file as seen by read(). (This is a bug on
7157 some variants of i386 svr4.0.) */
7158 for (i = 0; i < pagesize; ++i)
7159 *(data2 + i) = *(data2 + i) + 1;
7160 data3 = (char *) malloc (pagesize);
7163 if (read (fd, data3, pagesize) != pagesize)
7165 for (i = 0; i < pagesize; ++i)
7166 if (*(data + i) != *(data3 + i))
7172 if ac_fn_c_try_run "$LINENO"; then :
7173 ac_cv_func_mmap_fixed_mapped=yes
7175 ac_cv_func_mmap_fixed_mapped=no
7177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7178 conftest.$ac_objext conftest.beam conftest.$ac_ext
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7183 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7184 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7186 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7189 rm -f conftest.mmap conftest.txt
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7194 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7195 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7196 $as_echo_n "(cached) " >&6
7199 gt_cv_int_divbyzero_sigfpe=
7201 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7202 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7203 # compiling. If we were to perform the real test, 1 Crash Report
7204 # dialog window would pop up.
7206 i[34567]86 | x86_64)
7207 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7211 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7212 if test "$cross_compiling" = yes; then :
7214 # Guess based on the CPU.
7216 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7217 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7219 gt_cv_int_divbyzero_sigfpe="guessing no";;
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7230 sigfpe_handler (int sig)
7232 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7233 exit (sig != SIGFPE);
7243 signal (SIGFPE, sigfpe_handler);
7244 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7245 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7246 signal (SIGTRAP, sigfpe_handler);
7248 /* Linux/SPARC yields signal SIGILL. */
7249 #if defined (__sparc__) && defined (__linux__)
7250 signal (SIGILL, sigfpe_handler);
7259 if ac_fn_c_try_run "$LINENO"; then :
7260 gt_cv_int_divbyzero_sigfpe=yes
7262 gt_cv_int_divbyzero_sigfpe=no
7264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7265 conftest.$ac_objext conftest.beam conftest.$ac_ext
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7272 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7273 case "$gt_cv_int_divbyzero_sigfpe" in
7278 cat >>confdefs.h <<_ACEOF
7279 #define INTDIV0_RAISES_SIGFPE $value
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7285 $as_echo_n "checking for inttypes.h... " >&6; }
7286 if ${gl_cv_header_inttypes_h+:} false; then :
7287 $as_echo_n "(cached) " >&6
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7292 #include <sys/types.h>
7293 #include <inttypes.h>
7298 uintmax_t i = (uintmax_t) -1; return !i;
7303 if ac_fn_c_try_compile "$LINENO"; then :
7304 gl_cv_header_inttypes_h=yes
7306 gl_cv_header_inttypes_h=no
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7311 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7312 if test $gl_cv_header_inttypes_h = yes; then
7314 cat >>confdefs.h <<_ACEOF
7315 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7322 $as_echo_n "checking for unsigned long long int... " >&6; }
7323 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7324 $as_echo_n "(cached) " >&6
7326 ac_cv_type_unsigned_long_long_int=yes
7327 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7331 /* For now, do not test the preprocessor; as of 2007 there are too many
7332 implementations with broken preprocessors. Perhaps this can
7333 be revisited in 2012. In the meantime, code should not expect
7334 #if to work with literals wider than 32 bits. */
7335 /* Test literals. */
7336 long long int ll = 9223372036854775807ll;
7337 long long int nll = -9223372036854775807LL;
7338 unsigned long long int ull = 18446744073709551615ULL;
7339 /* Test constant expressions. */
7340 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7342 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7348 /* Test availability of runtime routines for shift and division. */
7349 long long int llmax = 9223372036854775807ll;
7350 unsigned long long int ullmax = 18446744073709551615ull;
7351 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7352 | (llmax / ll) | (llmax % ll)
7353 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7354 | (ullmax / ull) | (ullmax % ull));
7360 if ac_fn_c_try_link "$LINENO"; then :
7363 ac_cv_type_unsigned_long_long_int=no
7365 rm -f core conftest.err conftest.$ac_objext \
7366 conftest$ac_exeext conftest.$ac_ext
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7370 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7371 if test $ac_cv_type_unsigned_long_long_int = yes; then
7373 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7380 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7382 test $ac_cv_type_unsigned_long_long_int = yes \
7383 && ac_type='unsigned long long' \
7384 || ac_type='unsigned long'
7386 cat >>confdefs.h <<_ACEOF
7387 #define uintmax_t $ac_type
7392 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7397 for ac_header in inttypes.h
7399 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7400 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7401 cat >>confdefs.h <<_ACEOF
7402 #define HAVE_INTTYPES_H 1
7409 if test $ac_cv_header_inttypes_h = yes; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7411 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7412 if ${gt_cv_inttypes_pri_broken+:} false; then :
7413 $as_echo_n "(cached) " >&6
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7419 #include <inttypes.h>
7432 if ac_fn_c_try_compile "$LINENO"; then :
7433 gt_cv_inttypes_pri_broken=no
7435 gt_cv_inttypes_pri_broken=yes
7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7441 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7443 if test "$gt_cv_inttypes_pri_broken" = yes; then
7445 cat >>confdefs.h <<_ACEOF
7446 #define PRI_MACROS_BROKEN 1
7460 # Check whether --enable-threads was given.
7461 if test "${enable_threads+set}" = set; then :
7462 enableval=$enable_threads; gl_use_threads=$enableval
7464 if test -n "$gl_use_threads_default"; then
7465 gl_use_threads="$gl_use_threads_default"
7468 osf*) gl_use_threads=no ;;
7471 1.[0-5].*) gl_use_threads=no ;;
7472 *) gl_use_threads=yes ;;
7475 *) gl_use_threads=yes ;;
7481 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7482 # For using <pthread.h>:
7485 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7486 # groks <pthread.h>. cc also understands the flag -pthread, but
7487 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7488 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7489 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7490 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7491 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7494 # Some systems optimize for single-threaded programs by default, and
7495 # need special flags to disable these optimizations. For example, the
7496 # definition of 'errno' in <errno.h>.
7498 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7499 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7507 if test "X$prefix" = "XNONE"; then
7508 acl_final_prefix="$ac_default_prefix"
7510 acl_final_prefix="$prefix"
7512 if test "X$exec_prefix" = "XNONE"; then
7513 acl_final_exec_prefix='${prefix}'
7515 acl_final_exec_prefix="$exec_prefix"
7517 acl_save_prefix="$prefix"
7518 prefix="$acl_final_prefix"
7519 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7520 prefix="$acl_save_prefix"
7524 # Check whether --with-gnu-ld was given.
7525 if test "${with_gnu_ld+set}" = set; then :
7526 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7531 # Prepare PATH_SEPARATOR.
7532 # The user is always right.
7533 if test "${PATH_SEPARATOR+set}" != set; then
7534 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7535 # contains only /bin. Note that ksh looks also at the FPATH variable,
7536 # so we have to set that as well for the test.
7538 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7539 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7540 || PATH_SEPARATOR=';'
7545 if test "$GCC" = yes; then
7546 # Check if gcc -print-prog-name=ld gives a path.
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7548 $as_echo_n "checking for ld used by $CC... " >&6; }
7551 # gcc leaves a trailing carriage return which upsets mingw
7552 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7554 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7557 # Accept absolute paths.
7559 re_direlt='/[^/][^/]*/\.\./'
7560 # Canonicalize the pathname of ld
7561 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7562 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7563 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7565 test -z "$LD" && LD="$ac_prog"
7568 # If it fails, then pretend we aren't using GCC.
7572 # If it is relative, then search for the first ld in PATH.
7576 elif test "$with_gnu_ld" = yes; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7578 $as_echo_n "checking for GNU ld... " >&6; }
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7581 $as_echo_n "checking for non-GNU ld... " >&6; }
7583 if ${acl_cv_path_LD+:} false; then :
7584 $as_echo_n "(cached) " >&6
7586 if test -z "$LD"; then
7587 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7588 for ac_dir in $PATH; do
7590 test -z "$ac_dir" && ac_dir=.
7591 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7592 acl_cv_path_LD="$ac_dir/$ac_prog"
7593 # Check to see if the program is GNU ld. I'd rather use --version,
7594 # but apparently some variants of GNU ld only accept -v.
7595 # Break only if it was the GNU/non-GNU ld that we prefer.
7596 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7597 *GNU* | *'with BFD'*)
7598 test "$with_gnu_ld" != no && break
7601 test "$with_gnu_ld" != yes && break
7608 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7612 LD="$acl_cv_path_LD"
7613 if test -n "$LD"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7615 $as_echo "$LD" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7620 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7622 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7623 if ${acl_cv_prog_gnu_ld+:} false; then :
7624 $as_echo_n "(cached) " >&6
7626 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7627 case `$LD -v 2>&1 </dev/null` in
7628 *GNU* | *'with BFD'*)
7629 acl_cv_prog_gnu_ld=yes
7632 acl_cv_prog_gnu_ld=no
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7637 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7638 with_gnu_ld=$acl_cv_prog_gnu_ld
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7644 $as_echo_n "checking for shared library run path origin... " >&6; }
7645 if ${acl_cv_rpath+:} false; then :
7646 $as_echo_n "(cached) " >&6
7649 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7650 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7657 $as_echo "$acl_cv_rpath" >&6; }
7659 acl_libext="$acl_cv_libext"
7660 acl_shlibext="$acl_cv_shlibext"
7661 acl_libname_spec="$acl_cv_libname_spec"
7662 acl_library_names_spec="$acl_cv_library_names_spec"
7663 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7664 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7665 acl_hardcode_direct="$acl_cv_hardcode_direct"
7666 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7667 # Check whether --enable-rpath was given.
7668 if test "${enable_rpath+set}" = set; then :
7669 enableval=$enable_rpath; :
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7682 $as_echo_n "checking for 64-bit host... " >&6; }
7683 if ${gl_cv_solaris_64bit+:} false; then :
7684 $as_echo_n "(cached) " >&6
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7695 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7696 gl_cv_solaris_64bit=yes
7698 gl_cv_solaris_64bit=no
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7705 $as_echo "$gl_cv_solaris_64bit" >&6; }
7706 if test $gl_cv_solaris_64bit = yes; then
7707 acl_libdirstem=lib/64
7709 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7710 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7715 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7716 if test -n "$searchpath"; then
7717 acl_save_IFS="${IFS= }"; IFS=":"
7718 for searchdir in $searchpath; do
7719 if test -d "$searchdir"; then
7720 case "$searchdir" in
7721 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7723 # Better ignore directories of this form. They are misleading.
7725 *) searchdir=`cd "$searchdir" && pwd`
7726 case "$searchdir" in
7727 */lib64 ) acl_libdirstem=lib64 ;;
7736 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7745 if test "$gl_use_threads" != no; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7747 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7748 if ${gl_cv_have_weak+:} false; then :
7749 $as_echo_n "(cached) " >&6
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754 extern void xyzzy ();
7764 if ac_fn_c_try_link "$LINENO"; then :
7765 gl_cv_have_weak=maybe
7767 rm -f core conftest.err conftest.$ac_objext \
7768 conftest$ac_exeext conftest.$ac_ext
7769 if test $gl_cv_have_weak = maybe; then
7770 if test "$cross_compiling" = yes; then :
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7774 Extensible Linking Format
7778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7779 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7780 gl_cv_have_weak="guessing yes"
7782 gl_cv_have_weak="guessing no"
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7795 return (fputs == NULL);
7798 if ac_fn_c_try_run "$LINENO"; then :
7803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7804 conftest.$ac_objext conftest.beam conftest.$ac_ext
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7811 $as_echo "$gl_cv_have_weak" >&6; }
7812 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7813 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7814 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7815 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7816 if test "x$ac_cv_header_pthread_h" = xyes; then :
7817 gl_have_pthread_h=yes
7819 gl_have_pthread_h=no
7823 if test "$gl_have_pthread_h" = yes; then
7824 # Other possible tests:
7825 # -lpthreads (FSU threads, PCthreads)
7828 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7829 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7830 # the second one only in libpthread, and lock.c needs it.
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 #include <pthread.h>
7837 pthread_mutex_lock((pthread_mutex_t*)0);
7838 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7843 if ac_fn_c_try_link "$LINENO"; then :
7846 rm -f core conftest.err conftest.$ac_objext \
7847 conftest$ac_exeext conftest.$ac_ext
7848 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7849 # since it is defined as a macro on OSF/1.)
7850 if test -n "$gl_have_pthread"; then
7851 # The program links fine without libpthread. But it may actually
7852 # need to link with libpthread in order to create multiple threads.
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7854 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7855 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7856 $as_echo_n "(cached) " >&6
7858 ac_check_lib_save_LIBS=$LIBS
7859 LIBS="-lpthread $LIBS"
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7863 /* Override any GCC internal prototype to avoid an error.
7864 Use char because int might match the return type of a GCC
7865 builtin and then its argument prototype would still apply. */
7869 char pthread_kill ();
7873 return pthread_kill ();
7878 if ac_fn_c_try_link "$LINENO"; then :
7879 ac_cv_lib_pthread_pthread_kill=yes
7881 ac_cv_lib_pthread_pthread_kill=no
7883 rm -f core conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7885 LIBS=$ac_check_lib_save_LIBS
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7888 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7889 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7890 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7891 # On Solaris and HP-UX, most pthread functions exist also in libc.
7892 # Therefore pthread_in_use() needs to actually try to create a
7893 # thread: pthread_create from libc will fail, whereas
7894 # pthread_create will actually create a thread.
7898 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7905 # Some library is needed. Try libpthread and libc_r.
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7907 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7908 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7909 $as_echo_n "(cached) " >&6
7911 ac_check_lib_save_LIBS=$LIBS
7912 LIBS="-lpthread $LIBS"
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7916 /* Override any GCC internal prototype to avoid an error.
7917 Use char because int might match the return type of a GCC
7918 builtin and then its argument prototype would still apply. */
7922 char pthread_kill ();
7926 return pthread_kill ();
7931 if ac_fn_c_try_link "$LINENO"; then :
7932 ac_cv_lib_pthread_pthread_kill=yes
7934 ac_cv_lib_pthread_pthread_kill=no
7936 rm -f core conftest.err conftest.$ac_objext \
7937 conftest$ac_exeext conftest.$ac_ext
7938 LIBS=$ac_check_lib_save_LIBS
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7941 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7942 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7944 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7945 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7948 if test -z "$gl_have_pthread"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7951 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7952 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7953 $as_echo_n "(cached) " >&6
7955 ac_check_lib_save_LIBS=$LIBS
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7960 /* Override any GCC internal prototype to avoid an error.
7961 Use char because int might match the return type of a GCC
7962 builtin and then its argument prototype would still apply. */
7966 char pthread_kill ();
7970 return pthread_kill ();
7975 if ac_fn_c_try_link "$LINENO"; then :
7976 ac_cv_lib_c_r_pthread_kill=yes
7978 ac_cv_lib_c_r_pthread_kill=no
7980 rm -f core conftest.err conftest.$ac_objext \
7981 conftest$ac_exeext conftest.$ac_ext
7982 LIBS=$ac_check_lib_save_LIBS
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
7985 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
7986 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
7988 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
7989 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
7994 if test -n "$gl_have_pthread"; then
7995 gl_threads_api=posix
7997 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
7999 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8000 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8002 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8011 if test -z "$gl_have_pthread"; then
8012 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8013 gl_have_solaristhread=
8014 gl_save_LIBS="$LIBS"
8015 LIBS="$LIBS -lthread"
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8030 if ac_fn_c_try_link "$LINENO"; then :
8031 gl_have_solaristhread=yes
8033 rm -f core conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 LIBS="$gl_save_LIBS"
8036 if test -n "$gl_have_solaristhread"; then
8037 gl_threads_api=solaris
8039 LTLIBTHREAD=-lthread
8040 LIBMULTITHREAD="$LIBTHREAD"
8041 LTLIBMULTITHREAD="$LTLIBTHREAD"
8043 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8045 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8047 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8055 if test "$gl_use_threads" = pth; then
8056 gl_save_CPPFLAGS="$CPPFLAGS"
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8063 $as_echo_n "checking how to link with libpth... " >&6; }
8064 if ${ac_cv_libpth_libs+:} false; then :
8065 $as_echo_n "(cached) " >&6
8077 acl_save_prefix="$prefix"
8078 prefix="$acl_final_prefix"
8079 acl_save_exec_prefix="$exec_prefix"
8080 exec_prefix="$acl_final_exec_prefix"
8082 eval additional_includedir=\"$includedir\"
8083 eval additional_libdir=\"$libdir\"
8085 exec_prefix="$acl_save_exec_prefix"
8086 prefix="$acl_save_prefix"
8089 # Check whether --with-libpth-prefix was given.
8090 if test "${with_libpth_prefix+set}" = set; then :
8091 withval=$with_libpth_prefix;
8092 if test "X$withval" = "Xno"; then
8095 if test "X$withval" = "X"; then
8097 acl_save_prefix="$prefix"
8098 prefix="$acl_final_prefix"
8099 acl_save_exec_prefix="$exec_prefix"
8100 exec_prefix="$acl_final_exec_prefix"
8102 eval additional_includedir=\"$includedir\"
8103 eval additional_libdir=\"$libdir\"
8105 exec_prefix="$acl_save_exec_prefix"
8106 prefix="$acl_save_prefix"
8109 additional_includedir="$withval/include"
8110 additional_libdir="$withval/$acl_libdirstem"
8111 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8112 && ! test -d "$withval/$acl_libdirstem"; then
8113 additional_libdir="$withval/$acl_libdirstem2"
8127 names_already_handled=
8128 names_next_round='pth '
8129 while test -n "$names_next_round"; do
8130 names_this_round="$names_next_round"
8132 for name in $names_this_round; do
8134 for n in $names_already_handled; do
8135 if test "$n" = "$name"; then
8140 if test -z "$already_handled"; then
8141 names_already_handled="$names_already_handled $name"
8142 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8143 eval value=\"\$HAVE_LIB$uppername\"
8144 if test -n "$value"; then
8145 if test "$value" = yes; then
8146 eval value=\"\$LIB$uppername\"
8147 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8148 eval value=\"\$LTLIB$uppername\"
8149 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8158 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8159 if test -n "$acl_shlibext"; then
8160 shrext=".$acl_shlibext" # typically: shrext=.so
8164 if test $use_additional = yes; then
8165 dir="$additional_libdir"
8166 if test -n "$acl_shlibext"; then
8167 if test -f "$dir/$libname$shrext"; then
8169 found_so="$dir/$libname$shrext"
8171 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8172 ver=`(cd "$dir" && \
8173 for f in "$libname$shrext".*; do echo "$f"; done \
8174 | sed -e "s,^$libname$shrext\\\\.,," \
8175 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8176 | sed 1q ) 2>/dev/null`
8177 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8179 found_so="$dir/$libname$shrext.$ver"
8182 eval library_names=\"$acl_library_names_spec\"
8183 for f in $library_names; do
8184 if test -f "$dir/$f"; then
8193 if test "X$found_dir" = "X"; then
8194 if test -f "$dir/$libname.$acl_libext"; then
8196 found_a="$dir/$libname.$acl_libext"
8199 if test "X$found_dir" != "X"; then
8200 if test -f "$dir/$libname.la"; then
8201 found_la="$dir/$libname.la"
8205 if test "X$found_dir" = "X"; then
8206 for x in $LDFLAGS $LTLIBPTH; do
8208 acl_save_prefix="$prefix"
8209 prefix="$acl_final_prefix"
8210 acl_save_exec_prefix="$exec_prefix"
8211 exec_prefix="$acl_final_exec_prefix"
8213 exec_prefix="$acl_save_exec_prefix"
8214 prefix="$acl_save_prefix"
8218 dir=`echo "X$x" | sed -e 's/^X-L//'`
8219 if test -n "$acl_shlibext"; then
8220 if test -f "$dir/$libname$shrext"; then
8222 found_so="$dir/$libname$shrext"
8224 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8225 ver=`(cd "$dir" && \
8226 for f in "$libname$shrext".*; do echo "$f"; done \
8227 | sed -e "s,^$libname$shrext\\\\.,," \
8228 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8229 | sed 1q ) 2>/dev/null`
8230 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8232 found_so="$dir/$libname$shrext.$ver"
8235 eval library_names=\"$acl_library_names_spec\"
8236 for f in $library_names; do
8237 if test -f "$dir/$f"; then
8246 if test "X$found_dir" = "X"; then
8247 if test -f "$dir/$libname.$acl_libext"; then
8249 found_a="$dir/$libname.$acl_libext"
8252 if test "X$found_dir" != "X"; then
8253 if test -f "$dir/$libname.la"; then
8254 found_la="$dir/$libname.la"
8259 if test "X$found_dir" != "X"; then
8264 if test "X$found_dir" != "X"; then
8265 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8266 if test "X$found_so" != "X"; then
8267 if test "$enable_rpath" = no \
8268 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8269 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8270 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8273 for x in $ltrpathdirs; do
8274 if test "X$x" = "X$found_dir"; then
8279 if test -z "$haveit"; then
8280 ltrpathdirs="$ltrpathdirs $found_dir"
8282 if test "$acl_hardcode_direct" = yes; then
8283 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8285 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8286 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8288 for x in $rpathdirs; do
8289 if test "X$x" = "X$found_dir"; then
8294 if test -z "$haveit"; then
8295 rpathdirs="$rpathdirs $found_dir"
8299 for x in $LDFLAGS $LIBPTH; do
8301 acl_save_prefix="$prefix"
8302 prefix="$acl_final_prefix"
8303 acl_save_exec_prefix="$exec_prefix"
8304 exec_prefix="$acl_final_exec_prefix"
8306 exec_prefix="$acl_save_exec_prefix"
8307 prefix="$acl_save_prefix"
8309 if test "X$x" = "X-L$found_dir"; then
8314 if test -z "$haveit"; then
8315 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8317 if test "$acl_hardcode_minus_L" != no; then
8318 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8320 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8326 if test "X$found_a" != "X"; then
8327 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8329 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8332 additional_includedir=
8333 case "$found_dir" in
8334 */$acl_libdirstem | */$acl_libdirstem/)
8335 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8336 if test "$name" = 'pth'; then
8337 LIBPTH_PREFIX="$basedir"
8339 additional_includedir="$basedir/include"
8341 */$acl_libdirstem2 | */$acl_libdirstem2/)
8342 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8343 if test "$name" = 'pth'; then
8344 LIBPTH_PREFIX="$basedir"
8346 additional_includedir="$basedir/include"
8349 if test "X$additional_includedir" != "X"; then
8350 if test "X$additional_includedir" != "X/usr/include"; then
8352 if test "X$additional_includedir" = "X/usr/local/include"; then
8353 if test -n "$GCC"; then
8355 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8359 if test -z "$haveit"; then
8360 for x in $CPPFLAGS $INCPTH; do
8362 acl_save_prefix="$prefix"
8363 prefix="$acl_final_prefix"
8364 acl_save_exec_prefix="$exec_prefix"
8365 exec_prefix="$acl_final_exec_prefix"
8367 exec_prefix="$acl_save_exec_prefix"
8368 prefix="$acl_save_prefix"
8370 if test "X$x" = "X-I$additional_includedir"; then
8375 if test -z "$haveit"; then
8376 if test -d "$additional_includedir"; then
8377 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8383 if test -n "$found_la"; then
8384 save_libdir="$libdir"
8386 */* | *\\*) . "$found_la" ;;
8387 *) . "./$found_la" ;;
8389 libdir="$save_libdir"
8390 for dep in $dependency_libs; do
8393 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8394 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8395 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8397 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8398 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8399 if test -n "$GCC"; then
8401 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8405 if test -z "$haveit"; then
8407 for x in $LDFLAGS $LIBPTH; do
8409 acl_save_prefix="$prefix"
8410 prefix="$acl_final_prefix"
8411 acl_save_exec_prefix="$exec_prefix"
8412 exec_prefix="$acl_final_exec_prefix"
8414 exec_prefix="$acl_save_exec_prefix"
8415 prefix="$acl_save_prefix"
8417 if test "X$x" = "X-L$additional_libdir"; then
8422 if test -z "$haveit"; then
8423 if test -d "$additional_libdir"; then
8424 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8428 for x in $LDFLAGS $LTLIBPTH; do
8430 acl_save_prefix="$prefix"
8431 prefix="$acl_final_prefix"
8432 acl_save_exec_prefix="$exec_prefix"
8433 exec_prefix="$acl_final_exec_prefix"
8435 exec_prefix="$acl_save_exec_prefix"
8436 prefix="$acl_save_prefix"
8438 if test "X$x" = "X-L$additional_libdir"; then
8443 if test -z "$haveit"; then
8444 if test -d "$additional_libdir"; then
8445 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8452 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8453 if test "$enable_rpath" != no; then
8455 for x in $rpathdirs; do
8456 if test "X$x" = "X$dir"; then
8461 if test -z "$haveit"; then
8462 rpathdirs="$rpathdirs $dir"
8465 for x in $ltrpathdirs; do
8466 if test "X$x" = "X$dir"; then
8471 if test -z "$haveit"; then
8472 ltrpathdirs="$ltrpathdirs $dir"
8477 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8480 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8483 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8484 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8490 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8491 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8497 if test "X$rpathdirs" != "X"; then
8498 if test -n "$acl_hardcode_libdir_separator"; then
8500 for found_dir in $rpathdirs; do
8501 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8503 acl_save_libdir="$libdir"
8505 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8506 libdir="$acl_save_libdir"
8507 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8509 for found_dir in $rpathdirs; do
8510 acl_save_libdir="$libdir"
8512 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8513 libdir="$acl_save_libdir"
8514 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8518 if test "X$ltrpathdirs" != "X"; then
8519 for found_dir in $ltrpathdirs; do
8520 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8529 ac_cv_libpth_libs="$LIBPTH"
8530 ac_cv_libpth_ltlibs="$LTLIBPTH"
8531 ac_cv_libpth_cppflags="$INCPTH"
8532 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8536 $as_echo "$ac_cv_libpth_libs" >&6; }
8537 LIBPTH="$ac_cv_libpth_libs"
8538 LTLIBPTH="$ac_cv_libpth_ltlibs"
8539 INCPTH="$ac_cv_libpth_cppflags"
8540 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8542 for element in $INCPTH; do
8544 for x in $CPPFLAGS; do
8546 acl_save_prefix="$prefix"
8547 prefix="$acl_final_prefix"
8548 acl_save_exec_prefix="$exec_prefix"
8549 exec_prefix="$acl_final_exec_prefix"
8551 exec_prefix="$acl_save_exec_prefix"
8552 prefix="$acl_save_prefix"
8554 if test "X$x" = "X$element"; then
8559 if test -z "$haveit"; then
8560 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8572 gl_save_LIBS="$LIBS"
8573 LIBS="$LIBS $LIBPTH"
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8585 if ac_fn_c_try_link "$LINENO"; then :
8588 rm -f core conftest.err conftest.$ac_objext \
8589 conftest$ac_exeext conftest.$ac_ext
8590 LIBS="$gl_save_LIBS"
8591 if test -n "$gl_have_pth"; then
8594 LTLIBTHREAD="$LTLIBPTH"
8595 LIBMULTITHREAD="$LIBTHREAD"
8596 LTLIBMULTITHREAD="$LTLIBTHREAD"
8598 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8600 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8601 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8603 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8610 CPPFLAGS="$gl_save_CPPFLAGS"
8613 if test -z "$gl_have_pthread"; then
8614 case "$gl_use_threads" in
8615 yes | windows | win32) # The 'win32' is for backward compatibility.
8616 if { case "$host_os" in
8621 gl_threads_api=windows
8623 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8631 $as_echo_n "checking for multithread API to use... " >&6; }
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8633 $as_echo "$gl_threads_api" >&6; }
8645 if test "$gl_threads_api" = posix; then
8646 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8647 # pthread_rwlock_* functions.
8648 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8650 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8652 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8656 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8660 #include <pthread.h>
8665 #if __FreeBSD__ == 4
8666 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8667 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8668 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8669 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8671 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8679 if ac_fn_c_try_compile "$LINENO"; then :
8681 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8701 acl_save_prefix="$prefix"
8702 prefix="$acl_final_prefix"
8703 acl_save_exec_prefix="$exec_prefix"
8704 exec_prefix="$acl_final_exec_prefix"
8706 eval additional_includedir=\"$includedir\"
8707 eval additional_libdir=\"$libdir\"
8709 exec_prefix="$acl_save_exec_prefix"
8710 prefix="$acl_save_prefix"
8713 # Check whether --with-libiconv-prefix was given.
8714 if test "${with_libiconv_prefix+set}" = set; then :
8715 withval=$with_libiconv_prefix;
8716 if test "X$withval" = "Xno"; then
8719 if test "X$withval" = "X"; then
8721 acl_save_prefix="$prefix"
8722 prefix="$acl_final_prefix"
8723 acl_save_exec_prefix="$exec_prefix"
8724 exec_prefix="$acl_final_exec_prefix"
8726 eval additional_includedir=\"$includedir\"
8727 eval additional_libdir=\"$libdir\"
8729 exec_prefix="$acl_save_exec_prefix"
8730 prefix="$acl_save_prefix"
8733 additional_includedir="$withval/include"
8734 additional_libdir="$withval/$acl_libdirstem"
8735 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8736 && ! test -d "$withval/$acl_libdirstem"; then
8737 additional_libdir="$withval/$acl_libdirstem2"
8751 names_already_handled=
8752 names_next_round='iconv '
8753 while test -n "$names_next_round"; do
8754 names_this_round="$names_next_round"
8756 for name in $names_this_round; do
8758 for n in $names_already_handled; do
8759 if test "$n" = "$name"; then
8764 if test -z "$already_handled"; then
8765 names_already_handled="$names_already_handled $name"
8766 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8767 eval value=\"\$HAVE_LIB$uppername\"
8768 if test -n "$value"; then
8769 if test "$value" = yes; then
8770 eval value=\"\$LIB$uppername\"
8771 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8772 eval value=\"\$LTLIB$uppername\"
8773 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8782 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8783 if test -n "$acl_shlibext"; then
8784 shrext=".$acl_shlibext" # typically: shrext=.so
8788 if test $use_additional = yes; then
8789 dir="$additional_libdir"
8790 if test -n "$acl_shlibext"; then
8791 if test -f "$dir/$libname$shrext"; then
8793 found_so="$dir/$libname$shrext"
8795 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8796 ver=`(cd "$dir" && \
8797 for f in "$libname$shrext".*; do echo "$f"; done \
8798 | sed -e "s,^$libname$shrext\\\\.,," \
8799 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8800 | sed 1q ) 2>/dev/null`
8801 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8803 found_so="$dir/$libname$shrext.$ver"
8806 eval library_names=\"$acl_library_names_spec\"
8807 for f in $library_names; do
8808 if test -f "$dir/$f"; then
8817 if test "X$found_dir" = "X"; then
8818 if test -f "$dir/$libname.$acl_libext"; then
8820 found_a="$dir/$libname.$acl_libext"
8823 if test "X$found_dir" != "X"; then
8824 if test -f "$dir/$libname.la"; then
8825 found_la="$dir/$libname.la"
8829 if test "X$found_dir" = "X"; then
8830 for x in $LDFLAGS $LTLIBICONV; do
8832 acl_save_prefix="$prefix"
8833 prefix="$acl_final_prefix"
8834 acl_save_exec_prefix="$exec_prefix"
8835 exec_prefix="$acl_final_exec_prefix"
8837 exec_prefix="$acl_save_exec_prefix"
8838 prefix="$acl_save_prefix"
8842 dir=`echo "X$x" | sed -e 's/^X-L//'`
8843 if test -n "$acl_shlibext"; then
8844 if test -f "$dir/$libname$shrext"; then
8846 found_so="$dir/$libname$shrext"
8848 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8849 ver=`(cd "$dir" && \
8850 for f in "$libname$shrext".*; do echo "$f"; done \
8851 | sed -e "s,^$libname$shrext\\\\.,," \
8852 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8853 | sed 1q ) 2>/dev/null`
8854 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8856 found_so="$dir/$libname$shrext.$ver"
8859 eval library_names=\"$acl_library_names_spec\"
8860 for f in $library_names; do
8861 if test -f "$dir/$f"; then
8870 if test "X$found_dir" = "X"; then
8871 if test -f "$dir/$libname.$acl_libext"; then
8873 found_a="$dir/$libname.$acl_libext"
8876 if test "X$found_dir" != "X"; then
8877 if test -f "$dir/$libname.la"; then
8878 found_la="$dir/$libname.la"
8883 if test "X$found_dir" != "X"; then
8888 if test "X$found_dir" != "X"; then
8889 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8890 if test "X$found_so" != "X"; then
8891 if test "$enable_rpath" = no \
8892 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8893 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8894 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8897 for x in $ltrpathdirs; do
8898 if test "X$x" = "X$found_dir"; then
8903 if test -z "$haveit"; then
8904 ltrpathdirs="$ltrpathdirs $found_dir"
8906 if test "$acl_hardcode_direct" = yes; then
8907 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8909 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8910 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8912 for x in $rpathdirs; do
8913 if test "X$x" = "X$found_dir"; then
8918 if test -z "$haveit"; then
8919 rpathdirs="$rpathdirs $found_dir"
8923 for x in $LDFLAGS $LIBICONV; do
8925 acl_save_prefix="$prefix"
8926 prefix="$acl_final_prefix"
8927 acl_save_exec_prefix="$exec_prefix"
8928 exec_prefix="$acl_final_exec_prefix"
8930 exec_prefix="$acl_save_exec_prefix"
8931 prefix="$acl_save_prefix"
8933 if test "X$x" = "X-L$found_dir"; then
8938 if test -z "$haveit"; then
8939 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8941 if test "$acl_hardcode_minus_L" != no; then
8942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8944 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8950 if test "X$found_a" != "X"; then
8951 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8953 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8956 additional_includedir=
8957 case "$found_dir" in
8958 */$acl_libdirstem | */$acl_libdirstem/)
8959 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8960 if test "$name" = 'iconv'; then
8961 LIBICONV_PREFIX="$basedir"
8963 additional_includedir="$basedir/include"
8965 */$acl_libdirstem2 | */$acl_libdirstem2/)
8966 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8967 if test "$name" = 'iconv'; then
8968 LIBICONV_PREFIX="$basedir"
8970 additional_includedir="$basedir/include"
8973 if test "X$additional_includedir" != "X"; then
8974 if test "X$additional_includedir" != "X/usr/include"; then
8976 if test "X$additional_includedir" = "X/usr/local/include"; then
8977 if test -n "$GCC"; then
8979 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8983 if test -z "$haveit"; then
8984 for x in $CPPFLAGS $INCICONV; do
8986 acl_save_prefix="$prefix"
8987 prefix="$acl_final_prefix"
8988 acl_save_exec_prefix="$exec_prefix"
8989 exec_prefix="$acl_final_exec_prefix"
8991 exec_prefix="$acl_save_exec_prefix"
8992 prefix="$acl_save_prefix"
8994 if test "X$x" = "X-I$additional_includedir"; then
8999 if test -z "$haveit"; then
9000 if test -d "$additional_includedir"; then
9001 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9007 if test -n "$found_la"; then
9008 save_libdir="$libdir"
9010 */* | *\\*) . "$found_la" ;;
9011 *) . "./$found_la" ;;
9013 libdir="$save_libdir"
9014 for dep in $dependency_libs; do
9017 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9018 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9019 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9021 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9022 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9023 if test -n "$GCC"; then
9025 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9029 if test -z "$haveit"; then
9031 for x in $LDFLAGS $LIBICONV; do
9033 acl_save_prefix="$prefix"
9034 prefix="$acl_final_prefix"
9035 acl_save_exec_prefix="$exec_prefix"
9036 exec_prefix="$acl_final_exec_prefix"
9038 exec_prefix="$acl_save_exec_prefix"
9039 prefix="$acl_save_prefix"
9041 if test "X$x" = "X-L$additional_libdir"; then
9046 if test -z "$haveit"; then
9047 if test -d "$additional_libdir"; then
9048 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9052 for x in $LDFLAGS $LTLIBICONV; do
9054 acl_save_prefix="$prefix"
9055 prefix="$acl_final_prefix"
9056 acl_save_exec_prefix="$exec_prefix"
9057 exec_prefix="$acl_final_exec_prefix"
9059 exec_prefix="$acl_save_exec_prefix"
9060 prefix="$acl_save_prefix"
9062 if test "X$x" = "X-L$additional_libdir"; then
9067 if test -z "$haveit"; then
9068 if test -d "$additional_libdir"; then
9069 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9076 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9077 if test "$enable_rpath" != no; then
9079 for x in $rpathdirs; do
9080 if test "X$x" = "X$dir"; then
9085 if test -z "$haveit"; then
9086 rpathdirs="$rpathdirs $dir"
9089 for x in $ltrpathdirs; do
9090 if test "X$x" = "X$dir"; then
9095 if test -z "$haveit"; then
9096 ltrpathdirs="$ltrpathdirs $dir"
9101 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9104 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9107 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9108 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9114 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9121 if test "X$rpathdirs" != "X"; then
9122 if test -n "$acl_hardcode_libdir_separator"; then
9124 for found_dir in $rpathdirs; do
9125 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9127 acl_save_libdir="$libdir"
9129 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9130 libdir="$acl_save_libdir"
9131 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9133 for found_dir in $rpathdirs; do
9134 acl_save_libdir="$libdir"
9136 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9137 libdir="$acl_save_libdir"
9138 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9142 if test "X$ltrpathdirs" != "X"; then
9143 for found_dir in $ltrpathdirs; do
9144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9159 am_save_CPPFLAGS="$CPPFLAGS"
9161 for element in $INCICONV; do
9163 for x in $CPPFLAGS; do
9165 acl_save_prefix="$prefix"
9166 prefix="$acl_final_prefix"
9167 acl_save_exec_prefix="$exec_prefix"
9168 exec_prefix="$acl_final_exec_prefix"
9170 exec_prefix="$acl_save_exec_prefix"
9171 prefix="$acl_save_prefix"
9173 if test "X$x" = "X$element"; then
9178 if test -z "$haveit"; then
9179 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9185 $as_echo_n "checking for iconv... " >&6; }
9186 if ${am_cv_func_iconv+:} false; then :
9187 $as_echo_n "(cached) " >&6
9190 am_cv_func_iconv="no, consider installing GNU libiconv"
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9201 iconv_t cd = iconv_open("","");
9202 iconv(cd,NULL,NULL,NULL,NULL);
9208 if ac_fn_c_try_link "$LINENO"; then :
9209 am_cv_func_iconv=yes
9211 rm -f core conftest.err conftest.$ac_objext \
9212 conftest$ac_exeext conftest.$ac_ext
9213 if test "$am_cv_func_iconv" != yes; then
9214 am_save_LIBS="$LIBS"
9215 LIBS="$LIBS $LIBICONV"
9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9225 iconv_t cd = iconv_open("","");
9226 iconv(cd,NULL,NULL,NULL,NULL);
9232 if ac_fn_c_try_link "$LINENO"; then :
9234 am_cv_func_iconv=yes
9236 rm -f core conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
9238 LIBS="$am_save_LIBS"
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9243 $as_echo "$am_cv_func_iconv" >&6; }
9244 if test "$am_cv_func_iconv" = yes; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9246 $as_echo_n "checking for working iconv... " >&6; }
9247 if ${am_cv_func_iconv_works+:} false; then :
9248 $as_echo_n "(cached) " >&6
9251 am_save_LIBS="$LIBS"
9252 if test $am_cv_lib_iconv = yes; then
9253 LIBS="$LIBS $LIBICONV"
9255 if test "$cross_compiling" = yes; then :
9258 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9259 *) am_cv_func_iconv_works="guessing yes" ;;
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9271 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9274 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9275 if (cd_utf8_to_88591 != (iconv_t)(-1))
9277 static const char input[] = "\342\202\254"; /* EURO SIGN */
9279 const char *inptr = input;
9280 size_t inbytesleft = strlen (input);
9282 size_t outbytesleft = sizeof (buf);
9283 size_t res = iconv (cd_utf8_to_88591,
9284 (char **) &inptr, &inbytesleft,
9285 &outptr, &outbytesleft);
9288 iconv_close (cd_utf8_to_88591);
9291 /* Test against Solaris 10 bug: Failures are not distinguishable from
9292 successful returns. */
9294 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9295 if (cd_ascii_to_88591 != (iconv_t)(-1))
9297 static const char input[] = "\263";
9299 const char *inptr = input;
9300 size_t inbytesleft = strlen (input);
9302 size_t outbytesleft = sizeof (buf);
9303 size_t res = iconv (cd_ascii_to_88591,
9304 (char **) &inptr, &inbytesleft,
9305 &outptr, &outbytesleft);
9308 iconv_close (cd_ascii_to_88591);
9311 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9313 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9314 if (cd_88591_to_utf8 != (iconv_t)(-1))
9316 static const char input[] = "\304";
9317 static char buf[2] = { (char)0xDE, (char)0xAD };
9318 const char *inptr = input;
9319 size_t inbytesleft = 1;
9321 size_t outbytesleft = 1;
9322 size_t res = iconv (cd_88591_to_utf8,
9323 (char **) &inptr, &inbytesleft,
9324 &outptr, &outbytesleft);
9325 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9327 iconv_close (cd_88591_to_utf8);
9330 #if 0 /* This bug could be worked around by the caller. */
9331 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9333 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9334 if (cd_88591_to_utf8 != (iconv_t)(-1))
9336 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9338 const char *inptr = input;
9339 size_t inbytesleft = strlen (input);
9341 size_t outbytesleft = sizeof (buf);
9342 size_t res = iconv (cd_88591_to_utf8,
9343 (char **) &inptr, &inbytesleft,
9344 &outptr, &outbytesleft);
9347 iconv_close (cd_88591_to_utf8);
9351 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9353 if (/* Try standardized names. */
9354 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9355 /* Try IRIX, OSF/1 names. */
9356 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9357 /* Try AIX names. */
9358 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9359 /* Try HP-UX names. */
9360 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9365 if ac_fn_c_try_run "$LINENO"; then :
9366 am_cv_func_iconv_works=yes
9368 am_cv_func_iconv_works=no
9370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9371 conftest.$ac_objext conftest.beam conftest.$ac_ext
9374 LIBS="$am_save_LIBS"
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9378 $as_echo "$am_cv_func_iconv_works" >&6; }
9379 case "$am_cv_func_iconv_works" in
9380 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9381 *) am_func_iconv=yes ;;
9384 am_func_iconv=no am_cv_lib_iconv=no
9386 if test "$am_func_iconv" = yes; then
9388 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9391 if test "$am_cv_lib_iconv" = yes; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9393 $as_echo_n "checking how to link with libiconv... " >&6; }
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9395 $as_echo "$LIBICONV" >&6; }
9397 CPPFLAGS="$am_save_CPPFLAGS"
9404 if test "$am_cv_func_iconv" = yes; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9406 $as_echo_n "checking for iconv declaration... " >&6; }
9407 if ${am_cv_proto_iconv+:} false; then :
9408 $as_echo_n "(cached) " >&6
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9420 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9421 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9434 if ac_fn_c_try_compile "$LINENO"; then :
9435 am_cv_proto_iconv_arg1=""
9437 am_cv_proto_iconv_arg1="const"
9439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9440 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);"
9443 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9445 $am_cv_proto_iconv" >&5
9447 $am_cv_proto_iconv" >&6; }
9449 cat >>confdefs.h <<_ACEOF
9450 #define ICONV_CONST $am_cv_proto_iconv_arg1
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9461 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9470 if ac_fn_c_try_link "$LINENO"; then :
9472 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9475 rm -f core conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
9478 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9481 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9482 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9483 cat >>confdefs.h <<_ACEOF
9484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9491 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9492 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9493 argz_stringify argz_next __fsetlocking
9495 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9496 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9497 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9498 cat >>confdefs.h <<_ACEOF
9499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9506 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9508 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9514 cat >>confdefs.h <<_ACEOF
9515 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9517 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9519 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9525 cat >>confdefs.h <<_ACEOF
9526 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9532 for ac_prog in bison
9534 # Extract the first word of "$ac_prog", so it can be a program name with args.
9535 set dummy $ac_prog; ac_word=$2
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9537 $as_echo_n "checking for $ac_word... " >&6; }
9538 if ${ac_cv_prog_INTLBISON+:} false; then :
9539 $as_echo_n "(cached) " >&6
9541 if test -n "$INTLBISON"; then
9542 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9551 ac_cv_prog_INTLBISON="$ac_prog"
9552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9561 INTLBISON=$ac_cv_prog_INTLBISON
9562 if test -n "$INTLBISON"; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9564 $as_echo "$INTLBISON" >&6; }
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9571 test -n "$INTLBISON" && break
9574 if test -z "$INTLBISON"; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9578 $as_echo_n "checking version of bison... " >&6; }
9579 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9580 case $ac_prog_version in
9581 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9582 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9583 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9584 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9587 $as_echo "$ac_prog_version" >&6; }
9589 if test $ac_verc_fail = yes; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9596 $as_echo_n "checking for long long int... " >&6; }
9597 if ${ac_cv_type_long_long_int+:} false; then :
9598 $as_echo_n "(cached) " >&6
9600 ac_cv_type_long_long_int=yes
9601 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9602 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9603 if test $ac_cv_type_long_long_int = yes; then
9604 if test "$cross_compiling" = yes; then :
9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9612 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9613 # define LLONG_MAX (HALF - 1 + HALF)
9618 long long int n = 1;
9622 long long int m = n << i;
9625 if (LLONG_MAX / 2 < m)
9633 if ac_fn_c_try_run "$LINENO"; then :
9636 ac_cv_type_long_long_int=no
9638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9639 conftest.$ac_objext conftest.beam conftest.$ac_ext
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9646 $as_echo "$ac_cv_type_long_long_int" >&6; }
9647 if test $ac_cv_type_long_long_int = yes; then
9649 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9655 $as_echo_n "checking for wchar_t... " >&6; }
9656 if ${gt_cv_c_wchar_t+:} false; then :
9657 $as_echo_n "(cached) " >&6
9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660 /* end confdefs.h. */
9662 wchar_t foo = (wchar_t)'\0';
9671 if ac_fn_c_try_compile "$LINENO"; then :
9676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9679 $as_echo "$gt_cv_c_wchar_t" >&6; }
9680 if test $gt_cv_c_wchar_t = yes; then
9682 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9688 $as_echo_n "checking for wint_t... " >&6; }
9689 if ${gt_cv_c_wint_t+:} false; then :
9690 $as_echo_n "(cached) " >&6
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9695 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9697 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9698 before <wchar.h>. */
9703 wint_t foo = (wchar_t)'\0';
9712 if ac_fn_c_try_compile "$LINENO"; then :
9717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9720 $as_echo "$gt_cv_c_wint_t" >&6; }
9721 if test $gt_cv_c_wint_t = yes; then
9723 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9731 $as_echo_n "checking for intmax_t... " >&6; }
9732 if ${gt_cv_c_intmax_t+:} false; then :
9733 $as_echo_n "(cached) " >&6
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9740 #if HAVE_STDINT_H_WITH_UINTMAX
9743 #if HAVE_INTTYPES_H_WITH_UINTMAX
9744 #include <inttypes.h>
9756 if ac_fn_c_try_compile "$LINENO"; then :
9757 gt_cv_c_intmax_t=yes
9761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9764 $as_echo "$gt_cv_c_intmax_t" >&6; }
9765 if test $gt_cv_c_intmax_t = yes; then
9767 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9774 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9775 if ${gt_cv_func_printf_posix+:} false; then :
9776 $as_echo_n "(cached) " >&6
9779 if test "$cross_compiling" = yes; then :
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9784 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9790 $EGREP "notposix" >/dev/null 2>&1; then :
9791 gt_cv_func_printf_posix="guessing no"
9793 gt_cv_func_printf_posix="guessing yes"
9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800 /* end confdefs.h. */
9804 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9805 dollar expansion (possibly an autoconf bug). */
9806 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9807 static char buf[100];
9810 sprintf (buf, format, 33, 55);
9811 return (strcmp (buf, "55 33") != 0);
9814 if ac_fn_c_try_run "$LINENO"; then :
9815 gt_cv_func_printf_posix=yes
9817 gt_cv_func_printf_posix=no
9819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9820 conftest.$ac_objext conftest.beam conftest.$ac_ext
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9826 $as_echo "$gt_cv_func_printf_posix" >&6; }
9827 case $gt_cv_func_printf_posix in
9830 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9837 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9838 if ${ac_cv_gnu_library_2_1+:} false; then :
9839 $as_echo_n "(cached) " >&6
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9844 #include <features.h>
9845 #ifdef __GNU_LIBRARY__
9846 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9856 $EGREP "Lucky" >/dev/null 2>&1; then :
9857 ac_cv_gnu_library_2_1=yes
9859 ac_cv_gnu_library_2_1=no
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9867 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9869 GLIBC21="$ac_cv_gnu_library_2_1"
9873 for ac_header in stdint.h
9875 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9876 if test "x$ac_cv_header_stdint_h" = xyes; then :
9877 cat >>confdefs.h <<_ACEOF
9878 #define HAVE_STDINT_H 1
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9886 $as_echo_n "checking for SIZE_MAX... " >&6; }
9887 if ${gl_cv_size_max+:} false; then :
9888 $as_echo_n "(cached) " >&6
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9905 $EGREP "Found it" >/dev/null 2>&1; then :
9910 if test -z "$gl_cv_size_max"; then
9911 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9912 #include <limits.h>"; then :
9915 size_t_bits_minus_1=
9918 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9924 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9925 if test $fits_in_uint = 1; then
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9930 extern unsigned long foo;
9940 if ac_fn_c_try_compile "$LINENO"; then :
9943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9945 if test $fits_in_uint = 1; then
9946 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9948 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9951 gl_cv_size_max='((size_t)~(size_t)0)'
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9957 $as_echo "$gl_cv_size_max" >&6; }
9958 if test "$gl_cv_size_max" != yes; then
9960 cat >>confdefs.h <<_ACEOF
9961 #define SIZE_MAX $gl_cv_size_max
9969 for ac_header in stdint.h
9971 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9972 if test "x$ac_cv_header_stdint_h" = xyes; then :
9973 cat >>confdefs.h <<_ACEOF
9974 #define HAVE_STDINT_H 1
9985 for ac_func in $ac_func_list
9987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9988 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9989 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9990 cat >>confdefs.h <<_ACEOF
9991 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10005 $as_echo_n "checking for working fcntl.h... " >&6; }
10006 if ${gl_cv_header_working_fcntl_h+:} false; then :
10007 $as_echo_n "(cached) " >&6
10009 if test "$cross_compiling" = yes; then :
10010 gl_cv_header_working_fcntl_h=cross-compiling
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10014 #include <sys/types.h>
10015 #include <sys/stat.h>
10017 # include <unistd.h>
10018 #else /* on Windows with MSVC */
10020 # include <stdlib.h>
10021 # defined sleep(n) _sleep ((n) * 1000)
10025 #define O_NOATIME 0
10028 #define O_NOFOLLOW 0
10030 static int const constants[] =
10032 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10033 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10040 int result = !constants;
10043 static char const sym[] = "conftest.sym";
10044 if (symlink ("/dev/null", sym) != 0)
10048 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10055 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10059 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10070 static char const file[] = "confdefs.h";
10071 int fd = open (file, O_RDONLY | O_NOATIME);
10077 if (fstat (fd, &st0) != 0)
10083 if (read (fd, &c, 1) != 1)
10087 if (close (fd) != 0)
10092 if (stat (file, &st1) != 0)
10095 if (st0.st_atime != st1.st_atime)
10107 if ac_fn_c_try_run "$LINENO"; then :
10108 gl_cv_header_working_fcntl_h=yes
10111 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10112 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10113 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10114 *) gl_cv_header_working_fcntl_h='no';;
10117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10118 conftest.$ac_objext conftest.beam conftest.$ac_ext
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10123 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10125 case $gl_cv_header_working_fcntl_h in #(
10126 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10130 cat >>confdefs.h <<_ACEOF
10131 #define HAVE_WORKING_O_NOATIME $ac_val
10135 case $gl_cv_header_working_fcntl_h in #(
10136 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10140 cat >>confdefs.h <<_ACEOF
10141 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10147 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10148 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10149 $as_echo_n "(cached) " >&6
10151 gt_save_LIBS="$LIBS"
10152 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10155 #include <CoreFoundation/CFPreferences.h>
10159 CFPreferencesCopyAppValue(NULL, NULL)
10164 if ac_fn_c_try_link "$LINENO"; then :
10165 gt_cv_func_CFPreferencesCopyAppValue=yes
10167 gt_cv_func_CFPreferencesCopyAppValue=no
10169 rm -f core conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LIBS="$gt_save_LIBS"
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10174 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10175 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10177 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10181 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10182 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10183 $as_echo_n "(cached) " >&6
10185 gt_save_LIBS="$LIBS"
10186 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10189 #include <CoreFoundation/CFLocale.h>
10193 CFLocaleCopyCurrent();
10198 if ac_fn_c_try_link "$LINENO"; then :
10199 gt_cv_func_CFLocaleCopyCurrent=yes
10201 gt_cv_func_CFLocaleCopyCurrent=no
10203 rm -f core conftest.err conftest.$ac_objext \
10204 conftest$ac_exeext conftest.$ac_ext
10205 LIBS="$gt_save_LIBS"
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10208 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10209 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10211 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10215 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10216 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10228 case "$enable_silent_rules" in
10229 yes) INTL_DEFAULT_VERBOSITY=0;;
10230 no) INTL_DEFAULT_VERBOSITY=1;;
10231 *) INTL_DEFAULT_VERBOSITY=1;;
10235 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10236 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10240 $as_echo "#define ptrdiff_t long" >>confdefs.h
10245 for ac_header in features.h stddef.h stdlib.h string.h
10247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10248 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10249 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10250 cat >>confdefs.h <<_ACEOF
10251 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10258 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10259 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10262 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10263 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10264 cat >>confdefs.h <<_ACEOF
10265 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10272 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10274 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10280 cat >>confdefs.h <<_ACEOF
10281 #define HAVE_DECL__SNPRINTF $ac_have_decl
10283 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10285 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10291 cat >>confdefs.h <<_ACEOF
10292 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10296 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10298 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10304 cat >>confdefs.h <<_ACEOF
10305 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10309 case $gt_cv_func_printf_posix in
10310 *yes) HAVE_POSIX_PRINTF=1 ;;
10311 *) HAVE_POSIX_PRINTF=0 ;;
10314 if test "$ac_cv_func_asprintf" = yes; then
10320 if test "$ac_cv_func_snprintf" = yes; then
10326 if test "$ac_cv_func_newlocale" = yes; then
10332 if test "$ac_cv_func_wprintf" = yes; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10341 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10342 if ${am_cv_langinfo_codeset+:} false; then :
10343 $as_echo_n "(cached) " >&6
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h. */
10347 #include <langinfo.h>
10351 char* cs = nl_langinfo(CODESET); return !cs;
10356 if ac_fn_c_try_link "$LINENO"; then :
10357 am_cv_langinfo_codeset=yes
10359 am_cv_langinfo_codeset=no
10361 rm -f core conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10366 $as_echo "$am_cv_langinfo_codeset" >&6; }
10367 if test $am_cv_langinfo_codeset = yes; then
10369 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10375 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10376 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10377 $as_echo_n "(cached) " >&6
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10381 #include <locale.h>
10390 if ac_fn_c_try_link "$LINENO"; then :
10391 gt_cv_val_LC_MESSAGES=yes
10393 gt_cv_val_LC_MESSAGES=no
10395 rm -f core conftest.err conftest.$ac_objext \
10396 conftest$ac_exeext conftest.$ac_ext
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10399 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10400 if test $gt_cv_val_LC_MESSAGES = yes; then
10402 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10407 if test "$enable_shared" = yes; then
10409 mingw* | cygwin*) is_woe32dll=yes ;;
10410 *) is_woe32dll=no ;;
10415 WOE32DLL=$is_woe32dll
10419 mingw* | cygwin*) is_woe32=yes ;;
10424 if test $WOE32 = yes; then
10425 if test -n "$ac_tool_prefix"; then
10426 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10427 set dummy ${ac_tool_prefix}windres; ac_word=$2
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429 $as_echo_n "checking for $ac_word... " >&6; }
10430 if ${ac_cv_prog_WINDRES+:} false; then :
10431 $as_echo_n "(cached) " >&6
10433 if test -n "$WINDRES"; then
10434 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437 for as_dir in $PATH
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10443 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10453 WINDRES=$ac_cv_prog_WINDRES
10454 if test -n "$WINDRES"; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10456 $as_echo "$WINDRES" >&6; }
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10464 if test -z "$ac_cv_prog_WINDRES"; then
10465 ac_ct_WINDRES=$WINDRES
10466 # Extract the first word of "windres", so it can be a program name with args.
10467 set dummy windres; ac_word=$2
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10469 $as_echo_n "checking for $ac_word... " >&6; }
10470 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10471 $as_echo_n "(cached) " >&6
10473 if test -n "$ac_ct_WINDRES"; then
10474 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477 for as_dir in $PATH
10480 test -z "$as_dir" && as_dir=.
10481 for ac_exec_ext in '' $ac_executable_extensions; do
10482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10483 ac_cv_prog_ac_ct_WINDRES="windres"
10484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10493 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10494 if test -n "$ac_ct_WINDRES"; then
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10496 $as_echo "$ac_ct_WINDRES" >&6; }
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499 $as_echo "no" >&6; }
10502 if test "x$ac_ct_WINDRES" = x; then
10505 case $cross_compiling:$ac_tool_warned in
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10509 ac_tool_warned=yes ;;
10511 WINDRES=$ac_ct_WINDRES
10514 WINDRES="$ac_cv_prog_WINDRES"
10520 hpux*) LTLIBC="" ;;
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10551 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10552 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10553 $as_echo_n "(cached) " >&6
10555 gt_save_LIBS="$LIBS"
10556 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558 /* end confdefs.h. */
10559 #include <CoreFoundation/CFPreferences.h>
10563 CFPreferencesCopyAppValue(NULL, NULL)
10568 if ac_fn_c_try_link "$LINENO"; then :
10569 gt_cv_func_CFPreferencesCopyAppValue=yes
10571 gt_cv_func_CFPreferencesCopyAppValue=no
10573 rm -f core conftest.err conftest.$ac_objext \
10574 conftest$ac_exeext conftest.$ac_ext
10575 LIBS="$gt_save_LIBS"
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10578 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10579 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10581 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10585 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10586 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10587 $as_echo_n "(cached) " >&6
10589 gt_save_LIBS="$LIBS"
10590 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593 #include <CoreFoundation/CFLocale.h>
10597 CFLocaleCopyCurrent();
10602 if ac_fn_c_try_link "$LINENO"; then :
10603 gt_cv_func_CFLocaleCopyCurrent=yes
10605 gt_cv_func_CFLocaleCopyCurrent=no
10607 rm -f core conftest.err conftest.$ac_objext \
10608 conftest$ac_exeext conftest.$ac_ext
10609 LIBS="$gt_save_LIBS"
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10612 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10613 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10615 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10619 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10620 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10628 BUILD_INCLUDED_LIBINTL=no
10629 USE_INCLUDED_LIBINTL=no
10635 case " $gt_needs " in
10636 *" need-formatstring-macros "*) gt_api_version=3 ;;
10637 *" need-ngettext "*) gt_api_version=2 ;;
10638 *) gt_api_version=1 ;;
10640 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10641 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10643 if test "$USE_NLS" = "yes"; then
10644 gt_use_preinstalled_gnugettext=no
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10647 $as_echo_n "checking whether included gettext is requested... " >&6; }
10649 # Check whether --with-included-gettext was given.
10650 if test "${with_included_gettext+set}" = set; then :
10651 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10653 nls_cv_force_use_gnu_gettext=no
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10657 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10659 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10660 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10663 if test $gt_api_version -ge 3; then
10664 gt_revision_test_code='
10665 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10666 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10668 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10671 gt_revision_test_code=
10673 if test $gt_api_version -ge 2; then
10674 gt_expression_test_code=' + * ngettext ("", "", 0)'
10676 gt_expression_test_code=
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10680 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10681 if eval \${$gt_func_gnugettext_libc+:} false; then :
10682 $as_echo_n "(cached) " >&6
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10687 #include <libintl.h>
10688 $gt_revision_test_code
10689 extern int _nl_msg_cat_cntr;
10690 extern int *_nl_domain_bindings;
10696 bindtextdomain ("", "");
10697 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10703 if ac_fn_c_try_link "$LINENO"; then :
10704 eval "$gt_func_gnugettext_libc=yes"
10706 eval "$gt_func_gnugettext_libc=no"
10708 rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10711 eval ac_res=\$$gt_func_gnugettext_libc
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10713 $as_echo "$ac_res" >&6; }
10715 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10726 acl_save_prefix="$prefix"
10727 prefix="$acl_final_prefix"
10728 acl_save_exec_prefix="$exec_prefix"
10729 exec_prefix="$acl_final_exec_prefix"
10731 eval additional_includedir=\"$includedir\"
10732 eval additional_libdir=\"$libdir\"
10734 exec_prefix="$acl_save_exec_prefix"
10735 prefix="$acl_save_prefix"
10738 # Check whether --with-libintl-prefix was given.
10739 if test "${with_libintl_prefix+set}" = set; then :
10740 withval=$with_libintl_prefix;
10741 if test "X$withval" = "Xno"; then
10744 if test "X$withval" = "X"; then
10746 acl_save_prefix="$prefix"
10747 prefix="$acl_final_prefix"
10748 acl_save_exec_prefix="$exec_prefix"
10749 exec_prefix="$acl_final_exec_prefix"
10751 eval additional_includedir=\"$includedir\"
10752 eval additional_libdir=\"$libdir\"
10754 exec_prefix="$acl_save_exec_prefix"
10755 prefix="$acl_save_prefix"
10758 additional_includedir="$withval/include"
10759 additional_libdir="$withval/$acl_libdirstem"
10760 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10761 && ! test -d "$withval/$acl_libdirstem"; then
10762 additional_libdir="$withval/$acl_libdirstem2"
10776 names_already_handled=
10777 names_next_round='intl '
10778 while test -n "$names_next_round"; do
10779 names_this_round="$names_next_round"
10781 for name in $names_this_round; do
10783 for n in $names_already_handled; do
10784 if test "$n" = "$name"; then
10785 already_handled=yes
10789 if test -z "$already_handled"; then
10790 names_already_handled="$names_already_handled $name"
10791 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10792 eval value=\"\$HAVE_LIB$uppername\"
10793 if test -n "$value"; then
10794 if test "$value" = yes; then
10795 eval value=\"\$LIB$uppername\"
10796 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10797 eval value=\"\$LTLIB$uppername\"
10798 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10807 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10808 if test -n "$acl_shlibext"; then
10809 shrext=".$acl_shlibext" # typically: shrext=.so
10813 if test $use_additional = yes; then
10814 dir="$additional_libdir"
10815 if test -n "$acl_shlibext"; then
10816 if test -f "$dir/$libname$shrext"; then
10818 found_so="$dir/$libname$shrext"
10820 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10821 ver=`(cd "$dir" && \
10822 for f in "$libname$shrext".*; do echo "$f"; done \
10823 | sed -e "s,^$libname$shrext\\\\.,," \
10824 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10825 | sed 1q ) 2>/dev/null`
10826 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10828 found_so="$dir/$libname$shrext.$ver"
10831 eval library_names=\"$acl_library_names_spec\"
10832 for f in $library_names; do
10833 if test -f "$dir/$f"; then
10842 if test "X$found_dir" = "X"; then
10843 if test -f "$dir/$libname.$acl_libext"; then
10845 found_a="$dir/$libname.$acl_libext"
10848 if test "X$found_dir" != "X"; then
10849 if test -f "$dir/$libname.la"; then
10850 found_la="$dir/$libname.la"
10854 if test "X$found_dir" = "X"; then
10855 for x in $LDFLAGS $LTLIBINTL; do
10857 acl_save_prefix="$prefix"
10858 prefix="$acl_final_prefix"
10859 acl_save_exec_prefix="$exec_prefix"
10860 exec_prefix="$acl_final_exec_prefix"
10862 exec_prefix="$acl_save_exec_prefix"
10863 prefix="$acl_save_prefix"
10867 dir=`echo "X$x" | sed -e 's/^X-L//'`
10868 if test -n "$acl_shlibext"; then
10869 if test -f "$dir/$libname$shrext"; then
10871 found_so="$dir/$libname$shrext"
10873 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10874 ver=`(cd "$dir" && \
10875 for f in "$libname$shrext".*; do echo "$f"; done \
10876 | sed -e "s,^$libname$shrext\\\\.,," \
10877 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10878 | sed 1q ) 2>/dev/null`
10879 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10881 found_so="$dir/$libname$shrext.$ver"
10884 eval library_names=\"$acl_library_names_spec\"
10885 for f in $library_names; do
10886 if test -f "$dir/$f"; then
10895 if test "X$found_dir" = "X"; then
10896 if test -f "$dir/$libname.$acl_libext"; then
10898 found_a="$dir/$libname.$acl_libext"
10901 if test "X$found_dir" != "X"; then
10902 if test -f "$dir/$libname.la"; then
10903 found_la="$dir/$libname.la"
10908 if test "X$found_dir" != "X"; then
10913 if test "X$found_dir" != "X"; then
10914 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10915 if test "X$found_so" != "X"; then
10916 if test "$enable_rpath" = no \
10917 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10918 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10919 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10922 for x in $ltrpathdirs; do
10923 if test "X$x" = "X$found_dir"; then
10928 if test -z "$haveit"; then
10929 ltrpathdirs="$ltrpathdirs $found_dir"
10931 if test "$acl_hardcode_direct" = yes; then
10932 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10934 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10935 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10937 for x in $rpathdirs; do
10938 if test "X$x" = "X$found_dir"; then
10943 if test -z "$haveit"; then
10944 rpathdirs="$rpathdirs $found_dir"
10948 for x in $LDFLAGS $LIBINTL; do
10950 acl_save_prefix="$prefix"
10951 prefix="$acl_final_prefix"
10952 acl_save_exec_prefix="$exec_prefix"
10953 exec_prefix="$acl_final_exec_prefix"
10955 exec_prefix="$acl_save_exec_prefix"
10956 prefix="$acl_save_prefix"
10958 if test "X$x" = "X-L$found_dir"; then
10963 if test -z "$haveit"; then
10964 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10966 if test "$acl_hardcode_minus_L" != no; then
10967 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10969 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10975 if test "X$found_a" != "X"; then
10976 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10978 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10981 additional_includedir=
10982 case "$found_dir" in
10983 */$acl_libdirstem | */$acl_libdirstem/)
10984 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10985 if test "$name" = 'intl'; then
10986 LIBINTL_PREFIX="$basedir"
10988 additional_includedir="$basedir/include"
10990 */$acl_libdirstem2 | */$acl_libdirstem2/)
10991 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10992 if test "$name" = 'intl'; then
10993 LIBINTL_PREFIX="$basedir"
10995 additional_includedir="$basedir/include"
10998 if test "X$additional_includedir" != "X"; then
10999 if test "X$additional_includedir" != "X/usr/include"; then
11001 if test "X$additional_includedir" = "X/usr/local/include"; then
11002 if test -n "$GCC"; then
11004 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11008 if test -z "$haveit"; then
11009 for x in $CPPFLAGS $INCINTL; do
11011 acl_save_prefix="$prefix"
11012 prefix="$acl_final_prefix"
11013 acl_save_exec_prefix="$exec_prefix"
11014 exec_prefix="$acl_final_exec_prefix"
11016 exec_prefix="$acl_save_exec_prefix"
11017 prefix="$acl_save_prefix"
11019 if test "X$x" = "X-I$additional_includedir"; then
11024 if test -z "$haveit"; then
11025 if test -d "$additional_includedir"; then
11026 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11032 if test -n "$found_la"; then
11033 save_libdir="$libdir"
11034 case "$found_la" in
11035 */* | *\\*) . "$found_la" ;;
11036 *) . "./$found_la" ;;
11038 libdir="$save_libdir"
11039 for dep in $dependency_libs; do
11042 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11043 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11044 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11046 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11047 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11048 if test -n "$GCC"; then
11050 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11054 if test -z "$haveit"; then
11056 for x in $LDFLAGS $LIBINTL; do
11058 acl_save_prefix="$prefix"
11059 prefix="$acl_final_prefix"
11060 acl_save_exec_prefix="$exec_prefix"
11061 exec_prefix="$acl_final_exec_prefix"
11063 exec_prefix="$acl_save_exec_prefix"
11064 prefix="$acl_save_prefix"
11066 if test "X$x" = "X-L$additional_libdir"; then
11071 if test -z "$haveit"; then
11072 if test -d "$additional_libdir"; then
11073 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11077 for x in $LDFLAGS $LTLIBINTL; do
11079 acl_save_prefix="$prefix"
11080 prefix="$acl_final_prefix"
11081 acl_save_exec_prefix="$exec_prefix"
11082 exec_prefix="$acl_final_exec_prefix"
11084 exec_prefix="$acl_save_exec_prefix"
11085 prefix="$acl_save_prefix"
11087 if test "X$x" = "X-L$additional_libdir"; then
11092 if test -z "$haveit"; then
11093 if test -d "$additional_libdir"; then
11094 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11101 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11102 if test "$enable_rpath" != no; then
11104 for x in $rpathdirs; do
11105 if test "X$x" = "X$dir"; then
11110 if test -z "$haveit"; then
11111 rpathdirs="$rpathdirs $dir"
11114 for x in $ltrpathdirs; do
11115 if test "X$x" = "X$dir"; then
11120 if test -z "$haveit"; then
11121 ltrpathdirs="$ltrpathdirs $dir"
11126 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11129 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11132 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11133 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11139 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11140 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11146 if test "X$rpathdirs" != "X"; then
11147 if test -n "$acl_hardcode_libdir_separator"; then
11149 for found_dir in $rpathdirs; do
11150 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11152 acl_save_libdir="$libdir"
11154 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11155 libdir="$acl_save_libdir"
11156 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11158 for found_dir in $rpathdirs; do
11159 acl_save_libdir="$libdir"
11160 libdir="$found_dir"
11161 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11162 libdir="$acl_save_libdir"
11163 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11167 if test "X$ltrpathdirs" != "X"; then
11168 for found_dir in $ltrpathdirs; do
11169 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11179 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11180 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11181 $as_echo_n "(cached) " >&6
11183 gt_save_CPPFLAGS="$CPPFLAGS"
11184 CPPFLAGS="$CPPFLAGS $INCINTL"
11185 gt_save_LIBS="$LIBS"
11186 LIBS="$LIBS $LIBINTL"
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11190 #include <libintl.h>
11191 $gt_revision_test_code
11192 extern int _nl_msg_cat_cntr;
11197 const char *_nl_expand_alias (const char *);
11203 bindtextdomain ("", "");
11204 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11210 if ac_fn_c_try_link "$LINENO"; then :
11211 eval "$gt_func_gnugettext_libintl=yes"
11213 eval "$gt_func_gnugettext_libintl=no"
11215 rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
11217 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11218 LIBS="$LIBS $LIBICONV"
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11222 #include <libintl.h>
11223 $gt_revision_test_code
11224 extern int _nl_msg_cat_cntr;
11229 const char *_nl_expand_alias (const char *);
11235 bindtextdomain ("", "");
11236 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11242 if ac_fn_c_try_link "$LINENO"; then :
11243 LIBINTL="$LIBINTL $LIBICONV"
11244 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11245 eval "$gt_func_gnugettext_libintl=yes"
11248 rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11251 CPPFLAGS="$gt_save_CPPFLAGS"
11252 LIBS="$gt_save_LIBS"
11254 eval ac_res=\$$gt_func_gnugettext_libintl
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11256 $as_echo "$ac_res" >&6; }
11259 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11260 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11261 && test "$PACKAGE" != gettext-runtime \
11262 && test "$PACKAGE" != gettext-tools; }; then
11263 gt_use_preinstalled_gnugettext=yes
11271 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11272 nls_cv_use_gnu_gettext=yes
11276 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11277 BUILD_INCLUDED_LIBINTL=yes
11278 USE_INCLUDED_LIBINTL=yes
11279 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11280 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11281 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11285 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11286 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11291 if test -n "$INTL_MACOSX_LIBS"; then
11292 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11293 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11294 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11295 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11299 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11300 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11302 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11310 $as_echo_n "checking whether to use NLS... " >&6; }
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11312 $as_echo "$USE_NLS" >&6; }
11313 if test "$USE_NLS" = "yes"; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11315 $as_echo_n "checking where the gettext function comes from... " >&6; }
11316 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11317 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11318 gt_source="external libintl"
11323 gt_source="included intl directory"
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11326 $as_echo "$gt_source" >&6; }
11329 if test "$USE_NLS" = "yes"; then
11331 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11332 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11334 $as_echo_n "checking how to link with libintl... " >&6; }
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11336 $as_echo "$LIBINTL" >&6; }
11338 for element in $INCINTL; do
11340 for x in $CPPFLAGS; do
11342 acl_save_prefix="$prefix"
11343 prefix="$acl_final_prefix"
11344 acl_save_exec_prefix="$exec_prefix"
11345 exec_prefix="$acl_final_exec_prefix"
11347 exec_prefix="$acl_save_exec_prefix"
11348 prefix="$acl_save_prefix"
11350 if test "X$x" = "X$element"; then
11355 if test -z "$haveit"; then
11356 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11363 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11366 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11374 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11375 BUILD_INCLUDED_LIBINTL=yes
11382 nls_cv_header_intl=
11383 nls_cv_header_libgt=
11395 if test "$USE_INCLUDED_LIBINTL" = yes; then
11396 INTLOBJS="\$(GETTOBJS)"
11400 INTL_LIBTOOL_SUFFIX_PREFIX=
11404 INTLLIBS="$LIBINTL"
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11413 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11415 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11416 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11417 $as_echo_n "(cached) " >&6
11419 cat >conftest.make <<\_ACEOF
11422 @echo '@@@%%%=$(MAKE)=@@@%%%'
11424 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11425 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11426 *@@@%%%=?*=@@@%%%*)
11427 eval ac_cv_prog_make_${ac_make}_set=yes;;
11429 eval ac_cv_prog_make_${ac_make}_set=no;;
11431 rm -f conftest.make
11433 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11435 $as_echo "yes" >&6; }
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439 $as_echo "no" >&6; }
11440 SET_MAKE="MAKE=${MAKE-make}"
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11444 $as_echo_n "checking for GNU make... " >&6; }
11445 if ${_cv_gnu_make_command+:} false; then :
11446 $as_echo_n "(cached) " >&6
11448 _cv_gnu_make_command='' ;
11449 for a in "$MAKE" make gmake gnumake ; do
11450 if test -z "$a" ; then continue ; fi ;
11451 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11452 _cv_gnu_make_command=$a ;
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11459 $as_echo "$_cv_gnu_make_command" >&6; } ;
11460 if test "x$_cv_gnu_make_command" != "x" ; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11467 $as_echo "\"Not found\"" >&6; };
11472 # Extract the first word of "ln", so it can be a program name with args.
11473 set dummy ln; ac_word=$2
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11475 $as_echo_n "checking for $ac_word... " >&6; }
11476 if ${ac_cv_path_LN+:} false; then :
11477 $as_echo_n "(cached) " >&6
11481 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11485 for as_dir in $PATH
11488 test -z "$as_dir" && as_dir=.
11489 for ac_exec_ext in '' $ac_executable_extensions; do
11490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11491 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11499 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11504 if test -n "$LN"; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11506 $as_echo "$LN" >&6; }
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11514 $as_echo_n "checking whether ln -s works... " >&6; }
11516 if test "$LN_S" = "ln -s"; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518 $as_echo "yes" >&6; }
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11521 $as_echo "no, using $LN_S" >&6; }
11524 # Extract the first word of "mv", so it can be a program name with args.
11525 set dummy mv; ac_word=$2
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527 $as_echo_n "checking for $ac_word... " >&6; }
11528 if ${ac_cv_path_MV+:} false; then :
11529 $as_echo_n "(cached) " >&6
11533 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537 for as_dir in $PATH
11540 test -z "$as_dir" && as_dir=.
11541 for ac_exec_ext in '' $ac_executable_extensions; do
11542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11543 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11551 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11556 if test -n "$MV"; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11558 $as_echo "$MV" >&6; }
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561 $as_echo "no" >&6; }
11565 # Extract the first word of "cp", so it can be a program name with args.
11566 set dummy cp; ac_word=$2
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 $as_echo_n "checking for $ac_word... " >&6; }
11569 if ${ac_cv_path_CP+:} false; then :
11570 $as_echo_n "(cached) " >&6
11574 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578 for as_dir in $PATH
11581 test -z "$as_dir" && as_dir=.
11582 for ac_exec_ext in '' $ac_executable_extensions; do
11583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11584 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11597 if test -n "$CP"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11599 $as_echo "$CP" >&6; }
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11606 # Extract the first word of "rm", so it can be a program name with args.
11607 set dummy rm; ac_word=$2
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11609 $as_echo_n "checking for $ac_word... " >&6; }
11610 if ${ac_cv_path_RM+:} false; then :
11611 $as_echo_n "(cached) " >&6
11615 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in $PATH
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
11624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11625 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11633 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11638 if test -n "$RM"; then
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11640 $as_echo "$RM" >&6; }
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643 $as_echo "no" >&6; }
11647 # Extract the first word of "chmod", so it can be a program name with args.
11648 set dummy chmod; ac_word=$2
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11650 $as_echo_n "checking for $ac_word... " >&6; }
11651 if ${ac_cv_path_CHMOD+:} false; then :
11652 $as_echo_n "(cached) " >&6
11656 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11674 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11678 CHMOD=$ac_cv_path_CHMOD
11679 if test -n "$CHMOD"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11681 $as_echo "$CHMOD" >&6; }
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; }
11688 for ac_prog in gawk mawk nawk awk
11690 # Extract the first word of "$ac_prog", so it can be a program name with args.
11691 set dummy $ac_prog; ac_word=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693 $as_echo_n "checking for $ac_word... " >&6; }
11694 if ${ac_cv_prog_AWK+:} false; then :
11695 $as_echo_n "(cached) " >&6
11697 if test -n "$AWK"; then
11698 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701 for as_dir in $PATH
11704 test -z "$as_dir" && as_dir=.
11705 for ac_exec_ext in '' $ac_executable_extensions; do
11706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11707 ac_cv_prog_AWK="$ac_prog"
11708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717 AWK=$ac_cv_prog_AWK
11718 if test -n "$AWK"; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11720 $as_echo "$AWK" >&6; }
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11727 test -n "$AWK" && break
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11731 $as_echo_n "checking for egrep... " >&6; }
11732 if ${ac_cv_path_EGREP+:} false; then :
11733 $as_echo_n "(cached) " >&6
11735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11736 then ac_cv_path_EGREP="$GREP -E"
11738 if test -z "$EGREP"; then
11739 ac_path_EGREP_found=false
11740 # Loop through the user's path and test for each of PROGNAME-LIST
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11745 test -z "$as_dir" && as_dir=.
11746 for ac_prog in egrep; do
11747 for ac_exec_ext in '' $ac_executable_extensions; do
11748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11749 as_fn_executable_p "$ac_path_EGREP" || continue
11750 # Check for GNU ac_path_EGREP and select it if it is found.
11751 # Check for GNU $ac_path_EGREP
11752 case `"$ac_path_EGREP" --version 2>&1` in
11754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11757 $as_echo_n 0123456789 >"conftest.in"
11760 cat "conftest.in" "conftest.in" >"conftest.tmp"
11761 mv "conftest.tmp" "conftest.in"
11762 cp "conftest.in" "conftest.nl"
11763 $as_echo 'EGREP' >> "conftest.nl"
11764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11766 as_fn_arith $ac_count + 1 && ac_count=$as_val
11767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11768 # Best one so far, save it but keep looking for a better one
11769 ac_cv_path_EGREP="$ac_path_EGREP"
11770 ac_path_EGREP_max=$ac_count
11772 # 10*(2^10) chars as input seems more than enough
11773 test $ac_count -gt 10 && break
11775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11778 $ac_path_EGREP_found && break 3
11783 if test -z "$ac_cv_path_EGREP"; then
11784 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11787 ac_cv_path_EGREP=$EGREP
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11793 $as_echo "$ac_cv_path_EGREP" >&6; }
11794 EGREP="$ac_cv_path_EGREP"
11797 # Extract the first word of "sed", so it can be a program name with args.
11798 set dummy sed; ac_word=$2
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11800 $as_echo_n "checking for $ac_word... " >&6; }
11801 if ${ac_cv_path_SED+:} false; then :
11802 $as_echo_n "(cached) " >&6
11806 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810 for as_dir in $PATH
11813 test -z "$as_dir" && as_dir=.
11814 for ac_exec_ext in '' $ac_executable_extensions; do
11815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11816 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11828 SED=$ac_cv_path_SED
11829 if test -n "$SED"; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11831 $as_echo "$SED" >&6; }
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 $as_echo "no" >&6; }
11838 # Extract the first word of "perl", so it can be a program name with args.
11839 set dummy perl; ac_word=$2
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11841 $as_echo_n "checking for $ac_word... " >&6; }
11842 if ${ac_cv_path_PERL+:} false; then :
11843 $as_echo_n "(cached) " >&6
11847 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851 for as_dir in $PATH
11854 test -z "$as_dir" && as_dir=.
11855 for ac_exec_ext in '' $ac_executable_extensions; do
11856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11857 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11865 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11869 PERL=$ac_cv_path_PERL
11870 if test -n "$PERL"; then
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11872 $as_echo "$PERL" >&6; }
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11879 # Extract the first word of "ldconfig", so it can be a program name with args.
11880 set dummy ldconfig; ac_word=$2
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882 $as_echo_n "checking for $ac_word... " >&6; }
11883 if ${ac_cv_path_LDCONFIG+:} false; then :
11884 $as_echo_n "(cached) " >&6
11888 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in $PATH
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11898 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11910 LDCONFIG=$ac_cv_path_LDCONFIG
11911 if test -n "$LDCONFIG"; then
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11913 $as_echo "$LDCONFIG" >&6; }
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11920 if test -n "$ac_tool_prefix"; then
11921 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11922 set dummy ${ac_tool_prefix}ar; ac_word=$2
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11924 $as_echo_n "checking for $ac_word... " >&6; }
11925 if ${ac_cv_prog_AR+:} false; then :
11926 $as_echo_n "(cached) " >&6
11928 if test -n "$AR"; then
11929 ac_cv_prog_AR="$AR" # Let the user override the test.
11931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11932 for as_dir in $PATH
11935 test -z "$as_dir" && as_dir=.
11936 for ac_exec_ext in '' $ac_executable_extensions; do
11937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11938 ac_cv_prog_AR="${ac_tool_prefix}ar"
11939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11949 if test -n "$AR"; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11951 $as_echo "$AR" >&6; }
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954 $as_echo "no" >&6; }
11959 if test -z "$ac_cv_prog_AR"; then
11961 # Extract the first word of "ar", so it can be a program name with args.
11962 set dummy ar; ac_word=$2
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11964 $as_echo_n "checking for $ac_word... " >&6; }
11965 if ${ac_cv_prog_ac_ct_AR+:} false; then :
11966 $as_echo_n "(cached) " >&6
11968 if test -n "$ac_ct_AR"; then
11969 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972 for as_dir in $PATH
11975 test -z "$as_dir" && as_dir=.
11976 for ac_exec_ext in '' $ac_executable_extensions; do
11977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11978 ac_cv_prog_ac_ct_AR="ar"
11979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11988 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11989 if test -n "$ac_ct_AR"; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11991 $as_echo "$ac_ct_AR" >&6; }
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
11997 if test "x$ac_ct_AR" = x; then
12000 case $cross_compiling:$ac_tool_warned in
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12004 ac_tool_warned=yes ;;
12009 AR="$ac_cv_prog_AR"
12012 if test -n "$ac_tool_prefix"; then
12013 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12014 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12016 $as_echo_n "checking for $ac_word... " >&6; }
12017 if ${ac_cv_prog_RANLIB+:} false; then :
12018 $as_echo_n "(cached) " >&6
12020 if test -n "$RANLIB"; then
12021 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12027 test -z "$as_dir" && as_dir=.
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12030 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12040 RANLIB=$ac_cv_prog_RANLIB
12041 if test -n "$RANLIB"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12043 $as_echo "$RANLIB" >&6; }
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12051 if test -z "$ac_cv_prog_RANLIB"; then
12052 ac_ct_RANLIB=$RANLIB
12053 # Extract the first word of "ranlib", so it can be a program name with args.
12054 set dummy ranlib; ac_word=$2
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12056 $as_echo_n "checking for $ac_word... " >&6; }
12057 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12058 $as_echo_n "(cached) " >&6
12060 if test -n "$ac_ct_RANLIB"; then
12061 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12070 ac_cv_prog_ac_ct_RANLIB="ranlib"
12071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12080 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12081 if test -n "$ac_ct_RANLIB"; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12083 $as_echo "$ac_ct_RANLIB" >&6; }
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12089 if test "x$ac_ct_RANLIB" = x; then
12092 case $cross_compiling:$ac_tool_warned in
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12096 ac_tool_warned=yes ;;
12098 RANLIB=$ac_ct_RANLIB
12101 RANLIB="$ac_cv_prog_RANLIB"
12104 if test -n "$ac_tool_prefix"; then
12105 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12106 set dummy ${ac_tool_prefix}strip; ac_word=$2
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12108 $as_echo_n "checking for $ac_word... " >&6; }
12109 if ${ac_cv_prog_STRIP+:} false; then :
12110 $as_echo_n "(cached) " >&6
12112 if test -n "$STRIP"; then
12113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12116 for as_dir in $PATH
12119 test -z "$as_dir" && as_dir=.
12120 for ac_exec_ext in '' $ac_executable_extensions; do
12121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12122 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12132 STRIP=$ac_cv_prog_STRIP
12133 if test -n "$STRIP"; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12135 $as_echo "$STRIP" >&6; }
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138 $as_echo "no" >&6; }
12143 if test -z "$ac_cv_prog_STRIP"; then
12145 # Extract the first word of "strip", so it can be a program name with args.
12146 set dummy strip; ac_word=$2
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148 $as_echo_n "checking for $ac_word... " >&6; }
12149 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12150 $as_echo_n "(cached) " >&6
12152 if test -n "$ac_ct_STRIP"; then
12153 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12162 ac_cv_prog_ac_ct_STRIP="strip"
12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12172 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12173 if test -n "$ac_ct_STRIP"; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12175 $as_echo "$ac_ct_STRIP" >&6; }
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178 $as_echo "no" >&6; }
12181 if test "x$ac_ct_STRIP" = x; then
12184 case $cross_compiling:$ac_tool_warned in
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12188 ac_tool_warned=yes ;;
12193 STRIP="$ac_cv_prog_STRIP"
12196 # Extract the first word of "makeinfo", so it can be a program name with args.
12197 set dummy makeinfo; ac_word=$2
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199 $as_echo_n "checking for $ac_word... " >&6; }
12200 if ${ac_cv_prog_MAKEINFO+:} false; then :
12201 $as_echo_n "(cached) " >&6
12203 if test -n "$MAKEINFO"; then
12204 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12210 test -z "$as_dir" && as_dir=.
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12213 ac_cv_prog_MAKEINFO="makeinfo"
12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12223 MAKEINFO=$ac_cv_prog_MAKEINFO
12224 if test -n "$MAKEINFO"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12226 $as_echo "$MAKEINFO" >&6; }
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12233 if test "_$MAKEINFO" = "_"; then
12234 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12236 case "$MAKEINFO" in
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12239 *** Makeinfo is missing. Info documentation will not be built." >&5
12240 $as_echo "$as_me: WARNING:
12241 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12249 # See if we need a separate native compiler.
12250 if test $cross_compiling = no; then
12254 for ac_prog in gcc cc
12256 # Extract the first word of "$ac_prog", so it can be a program name with args.
12257 set dummy $ac_prog; ac_word=$2
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259 $as_echo_n "checking for $ac_word... " >&6; }
12260 if ${ac_cv_prog_BUILD_CC+:} false; then :
12261 $as_echo_n "(cached) " >&6
12263 if test -n "$BUILD_CC"; then
12264 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267 for as_dir in $PATH
12270 test -z "$as_dir" && as_dir=.
12271 for ac_exec_ext in '' $ac_executable_extensions; do
12272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12273 ac_cv_prog_BUILD_CC="$ac_prog"
12274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12283 BUILD_CC=$ac_cv_prog_BUILD_CC
12284 if test -n "$BUILD_CC"; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12286 $as_echo "$BUILD_CC" >&6; }
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12293 test -n "$BUILD_CC" && break
12297 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/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.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/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
12299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12300 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12301 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12302 cat >>confdefs.h <<_ACEOF
12303 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12310 for ac_header in net/if.h
12312 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12313 #if HAVE_SYS_TYPES_H
12314 #include <sys/types.h>
12316 #if HAVE_SYS_SOCKET
12317 #include <sys/socket.h>
12321 if test "x$ac_cv_header_net_if_h" = xyes; then :
12322 cat >>confdefs.h <<_ACEOF
12323 #define HAVE_NET_IF_H 1
12330 for ac_func in vprintf
12332 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12333 if test "x$ac_cv_func_vprintf" = xyes; then :
12334 cat >>confdefs.h <<_ACEOF
12335 #define HAVE_VPRINTF 1
12338 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12339 if test "x$ac_cv_func__doprnt" = xyes; then :
12341 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12349 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12351 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12353 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12357 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12358 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12360 cat >>confdefs.h <<_ACEOF
12361 #define HAVE_STRUCT_STAT_ST_ATIM 1
12367 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12369 if test "x$ac_cv_type_ssize_t" = xyes; then :
12371 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12375 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12377 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12379 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12383 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12384 #define _LARGEFILE64_SOURCE
12385 #include <unistd.h>
12387 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12389 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12393 # The cast to long int works around a bug in the HP C Compiler
12394 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12395 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12396 # This bug is HP SR number 8606223364.
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12398 $as_echo_n "checking size of short... " >&6; }
12399 if ${ac_cv_sizeof_short+:} false; then :
12400 $as_echo_n "(cached) " >&6
12402 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12405 if test "$ac_cv_type_short" = yes; then
12406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12408 as_fn_error 77 "cannot compute sizeof (short)
12409 See \`config.log' for more details" "$LINENO" 5; }
12411 ac_cv_sizeof_short=0
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12417 $as_echo "$ac_cv_sizeof_short" >&6; }
12421 cat >>confdefs.h <<_ACEOF
12422 #define SIZEOF_SHORT $ac_cv_sizeof_short
12426 # The cast to long int works around a bug in the HP C Compiler
12427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12429 # This bug is HP SR number 8606223364.
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12431 $as_echo_n "checking size of int... " >&6; }
12432 if ${ac_cv_sizeof_int+:} false; then :
12433 $as_echo_n "(cached) " >&6
12435 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12438 if test "$ac_cv_type_int" = yes; then
12439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12441 as_fn_error 77 "cannot compute sizeof (int)
12442 See \`config.log' for more details" "$LINENO" 5; }
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12450 $as_echo "$ac_cv_sizeof_int" >&6; }
12454 cat >>confdefs.h <<_ACEOF
12455 #define SIZEOF_INT $ac_cv_sizeof_int
12459 # The cast to long int works around a bug in the HP C Compiler
12460 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12461 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12462 # This bug is HP SR number 8606223364.
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12464 $as_echo_n "checking size of long... " >&6; }
12465 if ${ac_cv_sizeof_long+:} false; then :
12466 $as_echo_n "(cached) " >&6
12468 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12471 if test "$ac_cv_type_long" = yes; then
12472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12474 as_fn_error 77 "cannot compute sizeof (long)
12475 See \`config.log' for more details" "$LINENO" 5; }
12477 ac_cv_sizeof_long=0
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12483 $as_echo "$ac_cv_sizeof_long" >&6; }
12487 cat >>confdefs.h <<_ACEOF
12488 #define SIZEOF_LONG $ac_cv_sizeof_long
12492 # The cast to long int works around a bug in the HP C Compiler
12493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12495 # This bug is HP SR number 8606223364.
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12497 $as_echo_n "checking size of long long... " >&6; }
12498 if ${ac_cv_sizeof_long_long+:} false; then :
12499 $as_echo_n "(cached) " >&6
12501 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12504 if test "$ac_cv_type_long_long" = yes; then
12505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12507 as_fn_error 77 "cannot compute sizeof (long long)
12508 See \`config.log' for more details" "$LINENO" 5; }
12510 ac_cv_sizeof_long_long=0
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12516 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12520 cat >>confdefs.h <<_ACEOF
12521 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12525 # The cast to long int works around a bug in the HP C Compiler
12526 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12527 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12528 # This bug is HP SR number 8606223364.
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12530 $as_echo_n "checking size of off_t... " >&6; }
12531 if ${ac_cv_sizeof_off_t+:} false; then :
12532 $as_echo_n "(cached) " >&6
12534 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12537 if test "$ac_cv_type_off_t" = yes; then
12538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12540 as_fn_error 77 "cannot compute sizeof (off_t)
12541 See \`config.log' for more details" "$LINENO" 5; }
12543 ac_cv_sizeof_off_t=0
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12549 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12553 cat >>confdefs.h <<_ACEOF
12554 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12558 SIZEOF_SHORT=$ac_cv_sizeof_short
12559 SIZEOF_INT=$ac_cv_sizeof_int
12560 SIZEOF_LONG=$ac_cv_sizeof_long
12561 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12562 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12569 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12570 if ${ac_cv_c_bigendian+:} false; then :
12571 $as_echo_n "(cached) " >&6
12573 ac_cv_c_bigendian=unknown
12574 # See if we're dealing with a universal compiler.
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12577 #ifndef __APPLE_CC__
12578 not a universal capable compiler
12583 if ac_fn_c_try_compile "$LINENO"; then :
12585 # Check for potential -arch flags. It is not universal unless
12586 # there are at least two -arch flags with different values.
12589 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12590 if test -n "$ac_prev"; then
12592 i?86 | x86_64 | ppc | ppc64)
12593 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12596 ac_cv_c_bigendian=universal
12602 elif test "x$ac_word" = "x-arch"; then
12607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12608 if test $ac_cv_c_bigendian = unknown; then
12609 # See if sys/param.h defines the BYTE_ORDER macro.
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12612 #include <sys/types.h>
12613 #include <sys/param.h>
12618 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12619 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12621 bogus endian macros
12628 if ac_fn_c_try_compile "$LINENO"; then :
12629 # It does; now see whether it defined to BIG_ENDIAN or not.
12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h. */
12632 #include <sys/types.h>
12633 #include <sys/param.h>
12638 #if BYTE_ORDER != BIG_ENDIAN
12646 if ac_fn_c_try_compile "$LINENO"; then :
12647 ac_cv_c_bigendian=yes
12649 ac_cv_c_bigendian=no
12651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12655 if test $ac_cv_c_bigendian = unknown; then
12656 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12659 #include <limits.h>
12664 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12665 bogus endian macros
12672 if ac_fn_c_try_compile "$LINENO"; then :
12673 # It does; now see whether it defined to _BIG_ENDIAN or not.
12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h. */
12676 #include <limits.h>
12681 #ifndef _BIG_ENDIAN
12689 if ac_fn_c_try_compile "$LINENO"; then :
12690 ac_cv_c_bigendian=yes
12692 ac_cv_c_bigendian=no
12694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698 if test $ac_cv_c_bigendian = unknown; then
12699 # Compile a test program.
12700 if test "$cross_compiling" = yes; then :
12701 # Try to guess by grepping values from an object file.
12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704 short int ascii_mm[] =
12705 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12706 short int ascii_ii[] =
12707 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12708 int use_ascii (int i) {
12709 return ascii_mm[i] + ascii_ii[i];
12711 short int ebcdic_ii[] =
12712 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12713 short int ebcdic_mm[] =
12714 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12715 int use_ebcdic (int i) {
12716 return ebcdic_mm[i] + ebcdic_ii[i];
12723 return use_ascii (foo) == use_ebcdic (foo);
12728 if ac_fn_c_try_compile "$LINENO"; then :
12729 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12730 ac_cv_c_bigendian=yes
12732 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12733 if test "$ac_cv_c_bigendian" = unknown; then
12734 ac_cv_c_bigendian=no
12736 # finding both strings is unlikely to happen, but who knows?
12737 ac_cv_c_bigendian=unknown
12741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12745 $ac_includes_default
12750 /* Are we little or big endian? From Harbison&Steele. */
12754 char c[sizeof (long int)];
12757 return u.c[sizeof (long int) - 1] == 1;
12763 if ac_fn_c_try_run "$LINENO"; then :
12764 ac_cv_c_bigendian=no
12766 ac_cv_c_bigendian=yes
12768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12769 conftest.$ac_objext conftest.beam conftest.$ac_ext
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12775 $as_echo "$ac_cv_c_bigendian" >&6; }
12776 case $ac_cv_c_bigendian in #(
12778 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12784 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12788 as_fn_error $? "unknown endianness
12789 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12792 if test $cross_compiling = no; then
12793 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12795 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12797 ASM_TYPES_HEADER=./asm_types.h
12799 echo "/* These defines are needed for the public ext2fs.h header file */" \
12801 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12802 uniq tmp_config.$$ >> public_config.h
12804 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12806 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12807 uniq tmp_config.$$ >> public_config.h
12809 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12811 rm -f tmp_config.$$
12812 PUBLIC_CONFIG_HEADER=./public_config.h
12814 for ac_header in inttypes.h
12816 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12817 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12818 cat >>confdefs.h <<_ACEOF
12819 #define HAVE_INTTYPES_H 1
12826 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12827 if test "x$ac_cv_type_intptr_t" = xyes; then :
12829 cat >>confdefs.h <<_ACEOF
12830 #define HAVE_INTPTR_T 1
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12837 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12838 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12839 $as_echo_n "(cached) " >&6
12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h. */
12843 #include <sys/stat.h>
12847 struct stat stat; stat.st_flags = 0;
12852 if ac_fn_c_try_compile "$LINENO"; then :
12853 e2fsprogs_cv_struct_st_flags=yes
12855 e2fsprogs_cv_struct_st_flags=no
12857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12861 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
12862 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12864 $as_echo_n "checking whether st_flags field is useful... " >&6; }
12865 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
12866 $as_echo_n "(cached) " >&6
12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12870 #include <sys/stat.h>
12874 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12879 if ac_fn_c_try_compile "$LINENO"; then :
12880 e2fsprogs_cv_struct_st_flags_immut=yes
12882 e2fsprogs_cv_struct_st_flags_immut=no
12884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12888 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12889 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12891 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
12895 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12896 #include <sys/socket.h>
12898 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
12900 cat >>confdefs.h <<_ACEOF
12901 #define HAVE_SA_LEN 1
12906 if test -n "$BLKID_CMT"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
12908 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
12909 if ${ac_cv_search_blkid_probe_all+:} false; then :
12910 $as_echo_n "(cached) " >&6
12912 ac_func_search_save_LIBS=$LIBS
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12916 /* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12922 char blkid_probe_all ();
12926 return blkid_probe_all ();
12931 for ac_lib in '' blkid; do
12932 if test -z "$ac_lib"; then
12933 ac_res="none required"
12936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12938 if ac_fn_c_try_link "$LINENO"; then :
12939 ac_cv_search_blkid_probe_all=$ac_res
12941 rm -f core conftest.err conftest.$ac_objext \
12943 if ${ac_cv_search_blkid_probe_all+:} false; then :
12947 if ${ac_cv_search_blkid_probe_all+:} false; then :
12950 ac_cv_search_blkid_probe_all=no
12952 rm conftest.$ac_ext
12953 LIBS=$ac_func_search_save_LIBS
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
12956 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
12957 ac_res=$ac_cv_search_blkid_probe_all
12958 if test "$ac_res" != no; then :
12959 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12964 for ac_func in __secure_getenv add_key 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 keyctl 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
12966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12967 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12968 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12969 cat >>confdefs.h <<_ACEOF
12970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
12978 $as_echo_n "checking for socket in -lsocket... " >&6; }
12979 if ${ac_cv_lib_socket_socket+:} false; then :
12980 $as_echo_n "(cached) " >&6
12982 ac_check_lib_save_LIBS=$LIBS
12983 LIBS="-lsocket $LIBS"
12984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985 /* end confdefs.h. */
12987 /* Override any GCC internal prototype to avoid an error.
12988 Use char because int might match the return type of a GCC
12989 builtin and then its argument prototype would still apply. */
13002 if ac_fn_c_try_link "$LINENO"; then :
13003 ac_cv_lib_socket_socket=yes
13005 ac_cv_lib_socket_socket=no
13007 rm -f core conftest.err conftest.$ac_objext \
13008 conftest$ac_exeext conftest.$ac_ext
13009 LIBS=$ac_check_lib_save_LIBS
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13012 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13013 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13014 SOCKET_LIB=-lsocket
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13019 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13020 if ${ac_cv_lib_magic_magic_file+:} false; then :
13021 $as_echo_n "(cached) " >&6
13023 ac_check_lib_save_LIBS=$LIBS
13024 LIBS="-lmagic $LIBS"
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13028 /* Override any GCC internal prototype to avoid an error.
13029 Use char because int might match the return type of a GCC
13030 builtin and then its argument prototype would still apply. */
13034 char magic_file ();
13038 return magic_file ();
13043 if ac_fn_c_try_link "$LINENO"; then :
13044 ac_cv_lib_magic_magic_file=yes
13046 ac_cv_lib_magic_magic_file=no
13048 rm -f core conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext conftest.$ac_ext
13050 LIBS=$ac_check_lib_save_LIBS
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13053 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13054 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13056 for ac_header in magic.h
13058 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13059 if test "x$ac_cv_header_magic_h" = xyes; then :
13060 cat >>confdefs.h <<_ACEOF
13061 #define HAVE_MAGIC_H 1
13070 if test "$ac_cv_lib_dl_dlopen" = yes ; then
13071 MAGIC_LIB=$DLOPEN_LIB
13076 # Check whether --enable-fuse2fs was given.
13077 if test "${enable_fuse2fs+set}" = set; then :
13078 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13082 $as_echo "Disabling fuse2fs" >&6; }
13084 for ac_header in pthread.h fuse.h
13086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13087 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13088 #define FUSE_USE_VERSION 29
13090 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13091 cat >>confdefs.h <<_ACEOF
13092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13098 as_fn_error $? "Cannot find fuse2fs headers.
13099 See \`config.log' for more details" "$LINENO" 5; }
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h. */
13107 #define FUSE_USE_VERSION 29
13109 #include <linux/fs.h>
13110 #include <linux/falloc.h>
13111 #include <linux/xattr.h>
13122 if ac_fn_c_try_cpp "$LINENO"; then :
13125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13127 as_fn_error $? "Cannot find fuse2fs Linux headers.
13128 See \`config.log' for more details" "$LINENO" 5; }
13130 rm -f conftest.err conftest.i conftest.$ac_ext
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13133 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13134 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13135 $as_echo_n "(cached) " >&6
13137 ac_check_lib_save_LIBS=$LIBS
13138 LIBS="-losxfuse $LIBS"
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13142 /* Override any GCC internal prototype to avoid an error.
13143 Use char because int might match the return type of a GCC
13144 builtin and then its argument prototype would still apply. */
13152 return fuse_main ();
13157 if ac_fn_c_try_link "$LINENO"; then :
13158 ac_cv_lib_osxfuse_fuse_main=yes
13160 ac_cv_lib_osxfuse_fuse_main=no
13162 rm -f core conftest.err conftest.$ac_objext \
13163 conftest$ac_exeext conftest.$ac_ext
13164 LIBS=$ac_check_lib_save_LIBS
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13167 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13168 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13172 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13173 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13174 $as_echo_n "(cached) " >&6
13176 ac_check_lib_save_LIBS=$LIBS
13177 LIBS="-lfuse $LIBS"
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13181 /* Override any GCC internal prototype to avoid an error.
13182 Use char because int might match the return type of a GCC
13183 builtin and then its argument prototype would still apply. */
13191 return fuse_main ();
13196 if ac_fn_c_try_link "$LINENO"; then :
13197 ac_cv_lib_fuse_fuse_main=yes
13199 ac_cv_lib_fuse_fuse_main=no
13201 rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203 LIBS=$ac_check_lib_save_LIBS
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13206 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13207 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13212 as_fn_error $? "Cannot find fuse library.
13213 See \`config.log' for more details" "$LINENO" 5; }
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13219 $as_echo "Enabling fuse2fs" >&6; }
13223 for ac_header in pthread.h fuse.h
13225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13226 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13227 #define FUSE_USE_VERSION 29
13229 # include <linux/fs.h>
13230 # include <linux/falloc.h>
13231 # include <linux/xattr.h>
13234 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13235 cat >>confdefs.h <<_ACEOF
13236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13245 if test -z "$FUSE_CMT"
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13248 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13249 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13250 $as_echo_n "(cached) " >&6
13252 ac_check_lib_save_LIBS=$LIBS
13253 LIBS="-losxfuse $LIBS"
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h. */
13257 /* Override any GCC internal prototype to avoid an error.
13258 Use char because int might match the return type of a GCC
13259 builtin and then its argument prototype would still apply. */
13267 return fuse_main ();
13272 if ac_fn_c_try_link "$LINENO"; then :
13273 ac_cv_lib_osxfuse_fuse_main=yes
13275 ac_cv_lib_osxfuse_fuse_main=no
13277 rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext conftest.$ac_ext
13279 LIBS=$ac_check_lib_save_LIBS
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13282 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13283 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13287 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13288 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13289 $as_echo_n "(cached) " >&6
13291 ac_check_lib_save_LIBS=$LIBS
13292 LIBS="-lfuse $LIBS"
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13296 /* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13306 return fuse_main ();
13311 if ac_fn_c_try_link "$LINENO"; then :
13312 ac_cv_lib_fuse_fuse_main=yes
13314 ac_cv_lib_fuse_fuse_main=no
13316 rm -f core conftest.err conftest.$ac_objext \
13317 conftest$ac_exeext conftest.$ac_ext
13318 LIBS=$ac_check_lib_save_LIBS
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13321 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13322 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13331 if test -z "$FUSE_CMT"
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13334 $as_echo "Enabling fuse2fs by default." >&6; }
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13342 $as_echo_n "checking for optreset... " >&6; }
13343 if ${ac_cv_have_optreset+:} false; then :
13344 $as_echo_n "(cached) " >&6
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13348 #include <unistd.h>
13351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13352 $EGREP "optreset" >/dev/null 2>&1; then :
13353 ac_cv_have_optreset=yes
13355 ac_cv_have_optreset=no
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13361 $as_echo "$ac_cv_have_optreset" >&6; }
13362 if test $ac_cv_have_optreset = yes; then
13364 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13369 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13370 if test "x$ac_cv_func_sem_init" = xyes; then :
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13374 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13375 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13376 $as_echo_n "(cached) " >&6
13378 ac_check_lib_save_LIBS=$LIBS
13379 LIBS="-lpthread $LIBS"
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13383 /* Override any GCC internal prototype to avoid an error.
13384 Use char because int might match the return type of a GCC
13385 builtin and then its argument prototype would still apply. */
13393 return sem_init ();
13398 if ac_fn_c_try_link "$LINENO"; then :
13399 ac_cv_lib_pthread_sem_init=yes
13401 ac_cv_lib_pthread_sem_init=no
13403 rm -f core conftest.err conftest.$ac_objext \
13404 conftest$ac_exeext conftest.$ac_ext
13405 LIBS=$ac_check_lib_save_LIBS
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13408 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13409 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13410 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13412 SEM_INIT_LIB=-lpthread
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13415 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13416 if ${ac_cv_lib_rt_sem_init+:} false; then :
13417 $as_echo_n "(cached) " >&6
13419 ac_check_lib_save_LIBS=$LIBS
13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13424 /* Override any GCC internal prototype to avoid an error.
13425 Use char because int might match the return type of a GCC
13426 builtin and then its argument prototype would still apply. */
13434 return sem_init ();
13439 if ac_fn_c_try_link "$LINENO"; then :
13440 ac_cv_lib_rt_sem_init=yes
13442 ac_cv_lib_rt_sem_init=no
13444 rm -f core conftest.err conftest.$ac_objext \
13445 conftest$ac_exeext conftest.$ac_ext
13446 LIBS=$ac_check_lib_save_LIBS
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13449 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13450 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13451 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13456 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13457 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13458 $as_echo_n "(cached) " >&6
13460 ac_check_lib_save_LIBS=$LIBS
13461 LIBS="-lposix4 $LIBS"
13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463 /* end confdefs.h. */
13465 /* Override any GCC internal prototype to avoid an error.
13466 Use char because int might match the return type of a GCC
13467 builtin and then its argument prototype would still apply. */
13475 return sem_init ();
13480 if ac_fn_c_try_link "$LINENO"; then :
13481 ac_cv_lib_posix4_sem_init=yes
13483 ac_cv_lib_posix4_sem_init=no
13485 rm -f core conftest.err conftest.$ac_objext \
13486 conftest$ac_exeext conftest.$ac_ext
13487 LIBS=$ac_check_lib_save_LIBS
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13490 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13491 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13492 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13494 SEM_INIT_LIB=-lposix4
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13504 $as_echo_n "checking for unified diff option... " >&6; }
13505 if diff -u $0 $0 > /dev/null 2>&1 ; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13511 $as_echo "$UNI_DIFF_OPTS" >&6; }
13516 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13536 linux* | gnu* | k*bsd*-gnu)
13537 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13540 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13545 linux* | gnu* | k*bsd*-gnu)
13546 if test "$prefix" = NONE ; then
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13549 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13550 if test "$mandir" = '${prefix}/man' ; then
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13552 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13553 mandir=/usr/share/man
13558 if test "$root_prefix" = NONE ; then
13559 if test "$prefix" = NONE ; then
13560 root_prefix="$ac_default_prefix"
13562 root_prefix="$prefix"
13564 root_bindir=$bindir
13565 root_sbindir=$sbindir
13566 root_libdir=$libdir
13567 root_sysconfdir=$sysconfdir
13569 root_bindir='${root_prefix}/bin'
13570 root_sbindir='${root_prefix}/sbin'
13571 root_libdir='${root_prefix}/lib'
13572 root_sysconfdir='${root_prefix}/etc'
13574 if test "$bindir" != '${exec_prefix}/bin'; then
13575 root_bindir=$bindir
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13577 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13579 if test "$sbindir" != '${exec_prefix}/sbin'; then
13580 root_sbindir=$sbindir
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13582 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13584 if test "$libdir" != '${exec_prefix}/lib'; then
13585 root_libdir=$libdir
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13587 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13589 if test "$sysconfdir" != '${prefix}/etc'; then
13590 root_sysconfdir=$sysconfdir
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13592 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13600 # Check whether --with-multiarch was given.
13601 if test "${with_multiarch+set}" = set; then :
13602 withval=$with_multiarch; if test "$withval" = "lib64"; then
13606 libdir=$libdir/$withval
13607 root_libdir=$root_libdir/$withval
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13612 $as_echo_n "checking whether we can link with -static... " >&6; }
13613 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13614 $as_echo_n "(cached) " >&6
13616 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13628 if ac_fn_c_try_link "$LINENO"; then :
13629 ac_cv_e2fsprogs_use_static=yes
13631 ac_cv_e2fsprogs_use_static=no
13633 rm -f core conftest.err conftest.$ac_objext \
13634 conftest$ac_exeext conftest.$ac_ext
13635 LDFLAGS=$SAVE_LDFLAGS
13640 ac_cv_e2fsprogs_use_static=no
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13644 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13646 if test $ac_cv_e2fsprogs_use_static = yes; then
13647 LDFLAG_STATIC=-static
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13653 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13655 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13659 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13660 ET_DIR=`cd ${srcdir}/lib/et; pwd`
13663 if test "$cross_compiling" = yes ; then
13666 DO_TEST_SUITE=check
13669 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13670 if test -n "$CPPFLAGS" ; then
13671 INCLUDES="$INCLUDES $CPPFLAGS"
13673 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13674 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13676 if test -n "$WITH_DIET_LIBC" ; then
13677 INCLUDES="$INCLUDES -D_REENTRANT"
13682 if test -n "$ac_aux_dir"; then
13683 case "$ac_aux_dir" in
13684 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13685 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13688 if test -z "$MKINSTALLDIRS"; then
13689 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13693 if test $cross_compiling = no; then
13694 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13695 BUILD_LDFLAGS="$LDFLAGS"
13699 test -d lib || mkdir lib
13700 test -d include || mkdir include
13701 test -d include/linux || mkdir include/linux
13702 test -d include/asm || mkdir include/asm
13703 if test -z "$UUID_CMT" ; then
13704 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13705 lib/uuid/uuid_types.h"
13707 if test -z "$BLKID_CMT" ; then
13708 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13709 lib/blkid/blkid_types.h"
13711 for i in MCONFIG Makefile e2fsprogs.spec \
13712 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13713 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13714 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13715 $uuid_out_list $blkid_out_list lib/support/Makefile \
13716 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
13717 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13718 debugfs/Makefile tests/Makefile tests/progs/Makefile \
13719 resize/Makefile doc/Makefile intl/Makefile \
13720 intl/libgnuintl.h po/Makefile.in ; do
13721 if test -d `dirname ${srcdir}/$i` ; then
13722 outlist="$outlist $i"
13725 ac_config_files="$ac_config_files $outlist"
13727 cat >confcache <<\_ACEOF
13728 # This file is a shell script that caches the results of configure
13729 # tests run on this system so they can be shared between configure
13730 # scripts and configure runs, see configure's option --config-cache.
13731 # It is not useful on other systems. If it contains results you don't
13732 # want to keep, you may remove or edit it.
13734 # config.status only pays attention to the cache file if you give it
13735 # the --recheck option to rerun configure.
13737 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13739 # following values.
13743 # The following way of writing the cache mishandles newlines in values,
13744 # but we know of no workaround that is simple, portable, and efficient.
13745 # So, we kill variables containing newlines.
13746 # Ultrix sh set writes to stderr and can't be redirected directly,
13747 # and sets the high bit in the cache file unless we assign to the vars.
13749 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13750 eval ac_val=\$$ac_var
13754 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13755 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13758 _ | IFS | as_nl) ;; #(
13759 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13760 *) { eval $ac_var=; unset $ac_var;} ;;
13766 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13767 *${as_nl}ac_space=\ *)
13768 # `set' does not quote correctly, so add quotes: double-quote
13769 # substitution turns \\\\ into \\, and sed turns \\ into \.
13772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13775 # `set' quotes correctly as required by POSIX, so do not add quotes.
13776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13787 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13789 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13790 if test -w "$cache_file"; then
13791 if test "x$cache_file" != "x/dev/null"; then
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13793 $as_echo "$as_me: updating cache $cache_file" >&6;}
13794 if test ! -f "$cache_file" || test -h "$cache_file"; then
13795 cat confcache >"$cache_file"
13797 case $cache_file in #(
13799 mv -f confcache "$cache_file"$$ &&
13800 mv -f "$cache_file"$$ "$cache_file" ;; #(
13802 mv -f confcache "$cache_file" ;;
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13808 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13813 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13814 # Let make expand exec_prefix.
13815 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13817 DEFS=-DHAVE_CONFIG_H
13822 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13823 # 1. Remove the extension, and $U if already installed.
13824 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13825 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13826 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13827 # will be set to the directory where LIBOBJS objects are built.
13828 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13829 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13831 LIBOBJS=$ac_libobjs
13833 LTLIBOBJS=$ac_ltlibobjs
13838 : "${CONFIG_STATUS=./config.status}"
13840 ac_clean_files_save=$ac_clean_files
13841 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13843 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13845 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13847 # Generated by $as_me.
13848 # Run this file to recreate the current configuration.
13849 # Compiler output produced by configure, useful for debugging
13850 # configure, is in config.log if it exists.
13853 ac_cs_recheck=false
13856 SHELL=\${CONFIG_SHELL-$SHELL}
13859 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13860 ## -------------------- ##
13861 ## M4sh Initialization. ##
13862 ## -------------------- ##
13864 # Be more Bourne compatible
13865 DUALCASE=1; export DUALCASE # for MKS sh
13866 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13869 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13870 # is contrary to our usage. Disable this feature.
13871 alias -g '${1+"$@"}'='"$@"'
13872 setopt NO_GLOB_SUBST
13874 case `(set -o) 2>/dev/null` in #(
13886 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13887 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13888 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13889 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13890 # Prefer a ksh shell builtin over an external printf program on Solaris,
13891 # but without wasting forks for bash or zsh.
13892 if test -z "$BASH_VERSION$ZSH_VERSION" \
13893 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13894 as_echo='print -r --'
13895 as_echo_n='print -rn --'
13896 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13897 as_echo='printf %s\n'
13898 as_echo_n='printf %s'
13900 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13901 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13902 as_echo_n='/usr/ucb/echo -n'
13904 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13905 as_echo_n_body='eval
13909 expr "X$arg" : "X\\(.*\\)$as_nl";
13910 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13912 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13914 export as_echo_n_body
13915 as_echo_n='sh -c $as_echo_n_body as_echo'
13917 export as_echo_body
13918 as_echo='sh -c $as_echo_body as_echo'
13921 # The user is always right.
13922 if test "${PATH_SEPARATOR+set}" != set; then
13924 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13925 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13932 # We need space, tab and new line, in precisely that order. Quoting is
13933 # there to prevent editors from complaining about space-tab.
13934 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13935 # splitting by setting IFS to empty value.)
13938 # Find who we are. Look in the path if we contain no directory separator.
13941 *[\\/]* ) as_myself=$0 ;;
13942 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13943 for as_dir in $PATH
13946 test -z "$as_dir" && as_dir=.
13947 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13953 # We did not find ourselves, most probably we were run as `sh COMMAND'
13954 # in which case we are not to be found in the path.
13955 if test "x$as_myself" = x; then
13958 if test ! -f "$as_myself"; then
13959 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13963 # Unset variables that we do not need and which cause bugs (e.g. in
13964 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13965 # suppresses any "Segmentation fault" message there. '((' could
13966 # trigger a bug in pdksh 5.2.14.
13967 for as_var in BASH_ENV ENV MAIL MAILPATH
13968 do eval test x\${$as_var+set} = xset \
13969 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13982 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13985 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13986 # ----------------------------------------
13987 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13988 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13989 # script with STATUS, using 1 if that was 0.
13992 as_status=$1; test $as_status -eq 0 && as_status=1
13994 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13995 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13997 $as_echo "$as_me: error: $2" >&2
13998 as_fn_exit $as_status
14002 # as_fn_set_status STATUS
14003 # -----------------------
14004 # Set $? to STATUS, without forking.
14005 as_fn_set_status ()
14008 } # as_fn_set_status
14010 # as_fn_exit STATUS
14011 # -----------------
14012 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14016 as_fn_set_status $1
14022 # Portably unset VAR.
14025 { eval $1=; unset $1;}
14027 as_unset=as_fn_unset
14028 # as_fn_append VAR VALUE
14029 # ----------------------
14030 # Append the text in VALUE to the end of the definition contained in VAR. Take
14031 # advantage of any shell optimizations that allow amortized linear growth over
14032 # repeated appends, instead of the typical quadratic growth present in naive
14034 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14035 eval 'as_fn_append ()
14046 # as_fn_arith ARG...
14047 # ------------------
14048 # Perform arithmetic evaluation on the ARGs, and store the result in the
14049 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14050 # must be portable across $(()) and expr.
14051 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14052 eval 'as_fn_arith ()
14059 as_val=`expr "$@" || test $? -eq 1`
14064 if expr a : '\(a\)' >/dev/null 2>&1 &&
14065 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14071 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14072 as_basename=basename
14077 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14083 as_me=`$as_basename -- "$0" ||
14084 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14085 X"$0" : 'X\(//\)$' \| \
14086 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14088 sed '/^.*\/\([^/][^/]*\)\/*$/{
14102 # Avoid depending upon Character Ranges.
14103 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14104 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14105 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14106 as_cr_digits='0123456789'
14107 as_cr_alnum=$as_cr_Letters$as_cr_digits
14109 ECHO_C= ECHO_N= ECHO_T=
14110 case `echo -n x` in #(((((
14112 case `echo 'xy\c'` in
14113 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14115 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14122 rm -f conf$$ conf$$.exe conf$$.file
14123 if test -d conf$$.dir; then
14124 rm -f conf$$.dir/conf$$.file
14127 mkdir conf$$.dir 2>/dev/null
14129 if (echo >conf$$.file) 2>/dev/null; then
14130 if ln -s conf$$.file conf$$ 2>/dev/null; then
14132 # ... but there are two gotchas:
14133 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14134 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14135 # In both cases, we have to default to `cp -pR'.
14136 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14138 elif ln conf$$.file conf$$ 2>/dev/null; then
14146 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14147 rmdir conf$$.dir 2>/dev/null
14152 # Create "$as_dir" as a directory, including parents if necessary.
14157 -*) as_dir=./$as_dir;;
14159 test -d "$as_dir" || eval $as_mkdir_p || {
14163 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14164 *) as_qdir=$as_dir;;
14166 as_dirs="'$as_qdir' $as_dirs"
14167 as_dir=`$as_dirname -- "$as_dir" ||
14168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14169 X"$as_dir" : 'X\(//\)[^/]' \| \
14170 X"$as_dir" : 'X\(//\)$' \| \
14171 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14172 $as_echo X"$as_dir" |
14173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14177 /^X\(\/\/\)[^/].*/{
14190 test -d "$as_dir" && break
14192 test -z "$as_dirs" || eval "mkdir $as_dirs"
14193 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14197 if mkdir -p . 2>/dev/null; then
14198 as_mkdir_p='mkdir -p "$as_dir"'
14200 test -d ./-p && rmdir ./-p
14205 # as_fn_executable_p FILE
14206 # -----------------------
14207 # Test if FILE is an executable regular file.
14208 as_fn_executable_p ()
14210 test -f "$1" && test -x "$1"
14211 } # as_fn_executable_p
14212 as_test_x='test -x'
14213 as_executable_p=as_fn_executable_p
14215 # Sed expression to map a string onto a valid CPP name.
14216 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14218 # Sed expression to map a string onto a valid variable name.
14219 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14223 ## ----------------------------------- ##
14224 ## Main body of $CONFIG_STATUS script. ##
14225 ## ----------------------------------- ##
14227 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14230 # Save the log message, to keep $0 and so on meaningful, and to
14231 # report actual input values of CONFIG_FILES etc. instead of their
14232 # values after options handling.
14234 This file was extended by $as_me, which was
14235 generated by GNU Autoconf 2.69. Invocation command line was
14237 CONFIG_FILES = $CONFIG_FILES
14238 CONFIG_HEADERS = $CONFIG_HEADERS
14239 CONFIG_LINKS = $CONFIG_LINKS
14240 CONFIG_COMMANDS = $CONFIG_COMMANDS
14243 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14248 case $ac_config_files in *"
14249 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14252 case $ac_config_headers in *"
14253 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14258 # Files that config.status was made for.
14259 config_files="$ac_config_files"
14260 config_headers="$ac_config_headers"
14261 config_commands="$ac_config_commands"
14265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14267 \`$as_me' instantiates files and other configuration actions
14268 from templates according to the current configuration. Unless the files
14269 and actions are specified as TAGs, all are instantiated by default.
14271 Usage: $0 [OPTION]... [TAG]...
14273 -h, --help print this help, then exit
14274 -V, --version print version number and configuration settings, then exit
14275 --config print configuration, then exit
14276 -q, --quiet, --silent
14277 do not print progress messages
14278 -d, --debug don't remove temporary files
14279 --recheck update $as_me by reconfiguring in the same conditions
14280 --file=FILE[:TEMPLATE]
14281 instantiate the configuration file FILE
14282 --header=FILE[:TEMPLATE]
14283 instantiate the configuration header FILE
14285 Configuration files:
14288 Configuration headers:
14291 Configuration commands:
14294 Report bugs to the package provider."
14297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14298 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14301 configured by $0, generated by GNU Autoconf 2.69,
14302 with options \\"\$ac_cs_config\\"
14304 Copyright (C) 2012 Free Software Foundation, Inc.
14305 This config.status script is free software; the Free Software Foundation
14306 gives unlimited permission to copy, distribute and modify it."
14313 test -n "\$AWK" || AWK=awk
14316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14317 # The default lists apply if the user does not specify any file.
14323 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14324 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14340 # Handling of the options.
14341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14343 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14344 $as_echo "$ac_cs_version"; exit ;;
14345 --config | --confi | --conf | --con | --co | --c )
14346 $as_echo "$ac_cs_config"; exit ;;
14347 --debug | --debu | --deb | --de | --d | -d )
14349 --file | --fil | --fi | --f )
14352 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14353 '') as_fn_error $? "missing file argument" ;;
14355 as_fn_append CONFIG_FILES " '$ac_optarg'"
14356 ac_need_defaults=false;;
14357 --header | --heade | --head | --hea )
14360 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14362 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14363 ac_need_defaults=false;;
14365 # Conflict between --help and --header
14366 as_fn_error $? "ambiguous option: \`$1'
14367 Try \`$0 --help' for more information.";;
14368 --help | --hel | -h )
14369 $as_echo "$ac_cs_usage"; exit ;;
14370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14371 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14374 # This is an error.
14375 -*) as_fn_error $? "unrecognized option: \`$1'
14376 Try \`$0 --help' for more information." ;;
14378 *) as_fn_append ac_config_targets " $1"
14379 ac_need_defaults=false ;;
14385 ac_configure_extra_args=
14387 if $ac_cs_silent; then
14389 ac_configure_extra_args="$ac_configure_extra_args --silent"
14393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14394 if \$ac_cs_recheck; then
14395 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14397 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14398 CONFIG_SHELL='$SHELL'
14399 export CONFIG_SHELL
14404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14408 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14409 ## Running $as_me. ##
14415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14419 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14420 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14421 # from automake < 1.5.
14422 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14423 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14424 LINGUAS="${LINGUAS-%UNSET%}"
14429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14431 # Handling of arguments.
14432 for ac_config_target in $ac_config_targets
14434 case $ac_config_target in
14435 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14436 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14437 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14439 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14444 # If the user did not use the arguments to specify the items to instantiate,
14445 # then the envvar interface is used. Set only those that are not.
14446 # We use the long form for the default assignment because of an extremely
14447 # bizarre bug on SunOS 4.1.3.
14448 if $ac_need_defaults; then
14449 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14450 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14451 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14454 # Have a temporary directory for convenience. Make it in the build tree
14455 # simply because there is no reason against having it here, and in addition,
14456 # creating and moving files from /tmp can sometimes cause problems.
14457 # Hook for its removal unless debugging.
14458 # Note that there is a small window in which the directory will not be cleaned:
14459 # after its creation but before its name has been assigned to `$tmp'.
14463 trap 'exit_status=$?
14464 : "${ac_tmp:=$tmp}"
14465 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14467 trap 'as_fn_exit 1' 1 2 13 15
14469 # Create a (secure) tmp directory for tmp files.
14472 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14476 tmp=./conf$$-$RANDOM
14477 (umask 077 && mkdir "$tmp")
14478 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14481 # Set up the scripts for CONFIG_FILES section.
14482 # No need to generate them if there are no CONFIG_FILES.
14483 # This happens for instance with `./config.status config.h'.
14484 if test -n "$CONFIG_FILES"; then
14486 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14487 ac_cs_awk_getline=:
14488 ac_cs_awk_pipe_init=
14489 ac_cs_awk_read_file='
14490 while ((getline aline < (F[key])) > 0)
14493 ac_cs_awk_pipe_fini=
14495 ac_cs_awk_getline=false
14496 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14497 ac_cs_awk_read_file='
14499 print "cat " F[key] " &&"
14500 '$ac_cs_awk_pipe_init
14501 # The final `:' finishes the AND list.
14502 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14504 ac_cr=`echo X | tr X '\015'`
14505 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14506 # But we know of no other shell where ac_cr would be empty at this
14507 # point, so we can use a bashism as a fallback.
14508 if test "x$ac_cr" = x; then
14509 eval ac_cr=\$\'\\r\'
14511 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14512 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14515 ac_cs_awk_cr=$ac_cr
14518 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14521 # Create commands to substitute file output variables.
14523 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14524 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14525 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14528 } >conf$$files.sh &&
14529 . ./conf$$files.sh ||
14530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14531 rm -f conf$$files.sh
14534 echo "cat >conf$$subs.awk <<_ACEOF" &&
14535 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14537 } >conf$$subs.sh ||
14538 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14539 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14541 for ac_last_try in false false false false false :; do
14542 . ./conf$$subs.sh ||
14543 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14545 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14546 if test $ac_delim_n = $ac_delim_num; then
14548 elif $ac_last_try; then
14549 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14554 rm -f conf$$subs.sh
14556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14557 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14561 s/^/S["/; s/!.*/"]=/
14571 s/\(.\{148\}\)..*/\1/
14573 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14578 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14585 s/\(.\{148\}\)..*/\1/
14587 s/["\\]/\\&/g; s/^/"/; s/$/"/
14591 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14596 ' <conf$$subs.awk | sed '
14601 ' >>$CONFIG_STATUS || ac_write_fail=1
14602 rm -f conf$$subs.awk
14603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14605 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14606 for (key in S) S_is_set[key] = 1
14608 \$ac_cs_awk_pipe_init
14612 nfields = split(line, field, "@")
14614 len = length(field[1])
14615 for (i = 2; i < nfields; i++) {
14617 keylen = length(key)
14618 if (S_is_set[key]) {
14620 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14621 len += length(value) + length(field[++i])
14626 if (nfields == 3 && !substed) {
14628 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14629 \$ac_cs_awk_read_file
14635 \$ac_cs_awk_pipe_fini
14638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14639 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14640 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14643 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14644 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14647 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14648 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14649 # trailing colons and then remove the whole line if VPATH becomes empty
14650 # (actually we leave an empty line to preserve line numbers).
14651 if test "x$srcdir" = x.; then
14652 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14671 fi # test -n "$CONFIG_FILES"
14673 # Set up the scripts for CONFIG_HEADERS section.
14674 # No need to generate them if there are no CONFIG_HEADERS.
14675 # This happens for instance with `./config.status Makefile'.
14676 if test -n "$CONFIG_HEADERS"; then
14677 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14681 # Transform confdefs.h into an awk script `defines.awk', embedded as
14682 # here-document in config.status, that substitutes the proper values into
14683 # config.h.in to produce config.h.
14685 # Create a delimiter string that does not exist in confdefs.h, to ease
14686 # handling of long lines.
14688 for ac_last_try in false false :; do
14689 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14690 if test -z "$ac_tt"; then
14692 elif $ac_last_try; then
14693 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14695 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14699 # For the awk script, D is an array of macro values keyed by name,
14700 # likewise P contains macro parameters if any. Preserve backslash
14701 # newline sequences.
14703 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14705 s/.\{148\}/&'"$ac_delim"'/g
14708 s/^[ ]*#[ ]*define[ ][ ]*/ /
14715 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14717 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14721 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14722 D["\1"]=" \3\\\\\\n"\\/p
14724 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14729 s/.\{148\}/&'"$ac_delim"'/g
14734 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14737 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14739 ' <confdefs.h | sed '
14740 s/'"$ac_delim"'/"\\\
14741 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14744 for (key in D) D_is_set[key] = 1
14747 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14749 split(line, arg, " ")
14750 if (arg[1] == "#") {
14754 defundef = substr(arg[1], 2)
14757 split(mac1, mac2, "(") #)
14759 prefix = substr(line, 1, index(line, defundef) - 1)
14760 if (D_is_set[macro]) {
14761 # Preserve the white space surrounding the "#".
14762 print prefix "define", macro P[macro] D[macro]
14765 # Replace #undef with comments. This is necessary, for example,
14766 # in the case of _POSIX_SOURCE, which is predefined and required
14767 # on some systems where configure will not decide to define it.
14768 if (defundef == "undef") {
14769 print "/*", prefix defundef, macro, "*/"
14777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14778 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14779 fi # test -n "$CONFIG_HEADERS"
14782 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14787 :[FHLC]) ac_mode=$ac_tag; continue;;
14789 case $ac_mode$ac_tag in
14791 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14792 :[FH]-) ac_tag=-:-;;
14793 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14810 -) ac_f="$ac_tmp/stdin";;
14811 *) # Look for the file first in the build tree, then in the source tree
14812 # (if the path is not absolute). The absolute path cannot be DOS-style,
14813 # because $ac_f cannot contain `:'.
14817 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14819 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14821 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14822 as_fn_append ac_file_inputs " '$ac_f'"
14825 # Let's still pretend it is `configure' which instantiates (i.e., don't
14826 # use $as_me), people would be surprised to read:
14827 # /* config.h. Generated by config.status. */
14828 configure_input='Generated from '`
14829 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14831 if test x"$ac_file" != x-; then
14832 configure_input="$ac_file. $configure_input"
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14834 $as_echo "$as_me: creating $ac_file" >&6;}
14836 # Neutralize special characters interpreted by sed in replacement strings.
14837 case $configure_input in #(
14838 *\&* | *\|* | *\\* )
14839 ac_sed_conf_input=`$as_echo "$configure_input" |
14840 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14841 *) ac_sed_conf_input=$configure_input;;
14845 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14851 ac_dir=`$as_dirname -- "$ac_file" ||
14852 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14853 X"$ac_file" : 'X\(//\)[^/]' \| \
14854 X"$ac_file" : 'X\(//\)$' \| \
14855 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14856 $as_echo X"$ac_file" |
14857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14861 /^X\(\/\/\)[^/].*/{
14874 as_dir="$ac_dir"; as_fn_mkdir_p
14878 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14880 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14881 # A ".." for each directory in $ac_dir_suffix.
14882 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14883 case $ac_top_builddir_sub in
14884 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14885 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14888 ac_abs_top_builddir=$ac_pwd
14889 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14890 # for backward compatibility:
14891 ac_top_builddir=$ac_top_build_prefix
14894 .) # We are building in place.
14896 ac_top_srcdir=$ac_top_builddir_sub
14897 ac_abs_top_srcdir=$ac_pwd ;;
14898 [\\/]* | ?:[\\/]* ) # Absolute name.
14899 ac_srcdir=$srcdir$ac_dir_suffix;
14900 ac_top_srcdir=$srcdir
14901 ac_abs_top_srcdir=$srcdir ;;
14902 *) # Relative name.
14903 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14904 ac_top_srcdir=$ac_top_build_prefix$srcdir
14905 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14907 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14917 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14918 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14920 ac_MKDIR_P=$MKDIR_P
14922 [\\/$]* | ?:[\\/]* ) ;;
14923 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14928 # If the template does not know about datarootdir, expand it.
14929 # FIXME: This hack should be removed a few years after 2.60.
14930 ac_datarootdir_hack=; ac_datarootdir_seen=
14941 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14942 *datarootdir*) ac_datarootdir_seen=yes;;
14943 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14945 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14948 ac_datarootdir_hack='
14949 s&@datadir@&$datadir&g
14950 s&@docdir@&$docdir&g
14951 s&@infodir@&$infodir&g
14952 s&@localedir@&$localedir&g
14953 s&@mandir@&$mandir&g
14954 s&\\\${datarootdir}&$datarootdir&g' ;;
14958 # Neutralize VPATH when `$srcdir' = `.'.
14959 # Shell code in configure.ac might set extrasub.
14960 # FIXME: do we really want to maintain this feature?
14961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14962 ac_sed_extra="$ac_vpsub
14965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14968 s|@configure_input@|$ac_sed_conf_input|;t t
14969 s&@top_builddir@&$ac_top_builddir_sub&;t t
14970 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14971 s&@srcdir@&$ac_srcdir&;t t
14972 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14973 s&@top_srcdir@&$ac_top_srcdir&;t t
14974 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14975 s&@builddir@&$ac_builddir&;t t
14976 s&@abs_builddir@&$ac_abs_builddir&;t t
14977 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14978 s&@INSTALL@&$ac_INSTALL&;t t
14979 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14980 $ac_datarootdir_hack
14982 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14983 if $ac_cs_awk_getline; then
14984 $AWK -f "$ac_tmp/subs.awk"
14986 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14988 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14990 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14991 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14992 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14993 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14995 which seems to be undefined. Please make sure it is defined" >&5
14996 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14997 which seems to be undefined. Please make sure it is defined" >&2;}
14999 rm -f "$ac_tmp/stdin"
15001 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15002 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15010 if test x"$ac_file" != x-; then
15012 $as_echo "/* $configure_input */" \
15013 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15014 } >"$ac_tmp/config.h" \
15015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15016 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15018 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15021 mv "$ac_tmp/config.h" "$ac_file" \
15022 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15025 $as_echo "/* $configure_input */" \
15026 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15027 || as_fn_error $? "could not create -" "$LINENO" 5
15031 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15032 $as_echo "$as_me: executing $ac_file commands" >&6;}
15037 case $ac_file$ac_mode in
15038 "po-directories":C)
15039 for ac_file in $CONFIG_FILES; do
15040 # Support "outfile[:infile[:infile...]]"
15042 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15044 # PO directories have a Makefile.in generated from Makefile.in.in.
15045 case "$ac_file" in */Makefile.in)
15046 # Adjust a relative srcdir.
15047 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15048 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15049 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15050 # In autoconf-2.13 it is called $ac_given_srcdir.
15051 # In autoconf-2.50 it is called $srcdir.
15052 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15053 case "$ac_given_srcdir" in
15054 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15055 /*) top_srcdir="$ac_given_srcdir" ;;
15056 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15058 # Treat a directory as a PO directory if and only if it has a
15059 # POTFILES.in file. This allows packages to have multiple PO
15060 # directories under different names or in different locations.
15061 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15062 rm -f "$ac_dir/POTFILES"
15063 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15064 gt_tab=`printf '\t'`
15065 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"
15066 POMAKEFILEDEPS="POTFILES.in"
15067 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15068 # on $ac_dir but don't depend on user-specified configuration
15070 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15071 # The LINGUAS file contains the set of available languages.
15072 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15073 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15075 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15076 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15077 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15078 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15080 # The set of available languages was given in configure.in.
15081 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15082 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15085 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15086 # Compute UPDATEPOFILES
15087 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15088 # Compute DUMMYPOFILES
15089 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15091 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15092 case "$ac_given_srcdir" in
15094 *) srcdirpre='$(srcdir)/' ;;
15100 for lang in $ALL_LINGUAS; do
15101 POFILES="$POFILES $srcdirpre$lang.po"
15102 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15103 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15104 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15106 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15107 # environment variable.
15109 if test -n "$ALL_LINGUAS"; then
15110 for presentlang in $ALL_LINGUAS; do
15112 if test "%UNSET%" != "$LINGUAS"; then
15113 desiredlanguages="$LINGUAS"
15115 desiredlanguages="$ALL_LINGUAS"
15117 for desiredlang in $desiredlanguages; do
15118 # Use the presentlang catalog if desiredlang is
15119 # a. equal to presentlang, or
15120 # b. a variant of presentlang (because in this case,
15121 # presentlang can be used as a fallback for messages
15122 # which are not translated in the desiredlang catalog).
15123 case "$desiredlang" in
15124 "$presentlang"*) useit=yes;;
15127 if test $useit = yes; then
15128 INST_LINGUAS="$INST_LINGUAS $presentlang"
15133 if test -n "$INST_LINGUAS"; then
15134 for lang in $INST_LINGUAS; do
15135 CATALOGS="$CATALOGS $lang.gmo"
15138 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15139 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"
15140 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15141 if test -f "$f"; then
15143 *.orig | *.bak | *~) ;;
15144 *) cat "$f" >> "$ac_dir/Makefile" ;;
15159 ac_clean_files=$ac_clean_files_save
15161 test $ac_write_fail = 0 ||
15162 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15165 # configure is writing to config.log, and then calls config.status.
15166 # config.status does its own redirection, appending to config.log.
15167 # Unfortunately, on DOS this fails, as config.log is still kept open
15168 # by configure, so config.status won't be able to write to it; its
15169 # output is simply discarded. So we exec the FD to /dev/null,
15170 # effectively closing config.log, so it can be properly (re)opened and
15171 # appended to by config.status. When coming back to configure, we
15172 # need to make the FD available again.
15173 if test "$no_create" != yes; then
15175 ac_config_status_args=
15176 test "$silent" = yes &&
15177 ac_config_status_args="$ac_config_status_args --quiet"
15179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15182 # would make configure fail if this is the last instruction.
15183 $ac_cs_success || as_fn_exit 1
15185 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15187 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15190 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi