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>
623 ac_subst_vars='LTLIBOBJS
625 systemd_system_unit_dir
704 XGETTEXT_EXTRA_OPTIONS
705 MSGMERGE_FOR_MSGFMT_OPTION
712 GETTEXT_MACRO_VERSION
828 program_transform_name
839 ac_subst_files='MCONFIG
845 PUBLIC_CONFIG_HEADER'
847 enable_option_checking
853 enable_maintainer_mode
854 enable_symlink_install
855 enable_relative_symlinks
856 enable_symlink_relative_symlinks
858 enable_verbose_makecmds
867 enable_developer_features
877 enable_e2initrd_helper
884 enable_bmap_stats_ops
898 with_systemd_unit_dir
900 ac_precious_vars='build_alias
918 # Initialize some variables set by options.
920 ac_init_version=false
921 ac_unrecognized_opts=
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
932 program_transform_name=s,x,x,
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir='${exec_prefix}/bin'
947 sbindir='${exec_prefix}/sbin'
948 libexecdir='${exec_prefix}/libexec'
949 datarootdir='${prefix}/share'
950 datadir='${datarootdir}'
951 sysconfdir='${prefix}/etc'
952 sharedstatedir='${prefix}/com'
953 localstatedir='${prefix}/var'
954 runstatedir='${localstatedir}/run'
955 includedir='${prefix}/include'
956 oldincludedir='/usr/include'
957 docdir='${datarootdir}/doc/${PACKAGE}'
958 infodir='${datarootdir}/info'
963 libdir='${exec_prefix}/lib'
964 localedir='${datarootdir}/locale'
965 mandir='${datarootdir}/man'
971 # If the previous option needs an argument, assign it.
972 if test -n "$ac_prev"; then
973 eval $ac_prev=\$ac_option
979 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984 # Accept the important Cygnus configure options, so we can diagnose typos.
986 case $ac_dashdash$ac_option in
990 -bindir | --bindir | --bindi | --bind | --bin | --bi)
992 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995 -build | --build | --buil | --bui | --bu)
996 ac_prev=build_alias ;;
997 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998 build_alias=$ac_optarg ;;
1000 -cache-file | --cache-file | --cache-fil | --cache-fi \
1001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002 ac_prev=cache_file ;;
1003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005 cache_file=$ac_optarg ;;
1007 --config-cache | -C)
1008 cache_file=config.cache ;;
1010 -datadir | --datadir | --datadi | --datad)
1012 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013 datadir=$ac_optarg ;;
1015 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016 | --dataroo | --dataro | --datar)
1017 ac_prev=datarootdir ;;
1018 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020 datarootdir=$ac_optarg ;;
1022 -disable-* | --disable-*)
1023 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026 as_fn_error $? "invalid feature name: $ac_useropt"
1027 ac_useropt_orig=$ac_useropt
1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1031 "enable_$ac_useropt"
1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034 ac_unrecognized_sep=', ';;
1036 eval enable_$ac_useropt=no ;;
1038 -docdir | --docdir | --docdi | --doc | --do)
1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041 docdir=$ac_optarg ;;
1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046 dvidir=$ac_optarg ;;
1048 -enable-* | --enable-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error $? "invalid feature name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1057 "enable_$ac_useropt"
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1062 eval enable_$ac_useropt=\$ac_optarg ;;
1064 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066 | --exec | --exe | --ex)
1067 ac_prev=exec_prefix ;;
1068 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070 | --exec=* | --exe=* | --ex=*)
1071 exec_prefix=$ac_optarg ;;
1073 -gas | --gas | --ga | --g)
1074 # Obsolete; use --with-gas.
1077 -help | --help | --hel | --he | -h)
1078 ac_init_help=long ;;
1079 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080 ac_init_help=recursive ;;
1081 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082 ac_init_help=short ;;
1084 -host | --host | --hos | --ho)
1085 ac_prev=host_alias ;;
1086 -host=* | --host=* | --hos=* | --ho=*)
1087 host_alias=$ac_optarg ;;
1089 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093 htmldir=$ac_optarg ;;
1095 -includedir | --includedir | --includedi | --included | --include \
1096 | --includ | --inclu | --incl | --inc)
1097 ac_prev=includedir ;;
1098 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099 | --includ=* | --inclu=* | --incl=* | --inc=*)
1100 includedir=$ac_optarg ;;
1102 -infodir | --infodir | --infodi | --infod | --info | --inf)
1104 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1105 infodir=$ac_optarg ;;
1107 -libdir | --libdir | --libdi | --libd)
1109 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1110 libdir=$ac_optarg ;;
1112 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113 | --libexe | --libex | --libe)
1114 ac_prev=libexecdir ;;
1115 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116 | --libexe=* | --libex=* | --libe=*)
1117 libexecdir=$ac_optarg ;;
1119 -localedir | --localedir | --localedi | --localed | --locale)
1120 ac_prev=localedir ;;
1121 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122 localedir=$ac_optarg ;;
1124 -localstatedir | --localstatedir | --localstatedi | --localstated \
1125 | --localstate | --localstat | --localsta | --localst | --locals)
1126 ac_prev=localstatedir ;;
1127 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1128 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1129 localstatedir=$ac_optarg ;;
1131 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1134 mandir=$ac_optarg ;;
1136 -nfp | --nfp | --nf)
1137 # Obsolete; use --without-fp.
1140 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1141 | --no-cr | --no-c | -n)
1144 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150 | --oldin | --oldi | --old | --ol | --o)
1151 ac_prev=oldincludedir ;;
1152 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1155 oldincludedir=$ac_optarg ;;
1157 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1160 prefix=$ac_optarg ;;
1162 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163 | --program-pre | --program-pr | --program-p)
1164 ac_prev=program_prefix ;;
1165 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1167 program_prefix=$ac_optarg ;;
1169 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170 | --program-suf | --program-su | --program-s)
1171 ac_prev=program_suffix ;;
1172 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1174 program_suffix=$ac_optarg ;;
1176 -program-transform-name | --program-transform-name \
1177 | --program-transform-nam | --program-transform-na \
1178 | --program-transform-n | --program-transform- \
1179 | --program-transform | --program-transfor \
1180 | --program-transfo | --program-transf \
1181 | --program-trans | --program-tran \
1182 | --progr-tra | --program-tr | --program-t)
1183 ac_prev=program_transform_name ;;
1184 -program-transform-name=* | --program-transform-name=* \
1185 | --program-transform-nam=* | --program-transform-na=* \
1186 | --program-transform-n=* | --program-transform-=* \
1187 | --program-transform=* | --program-transfor=* \
1188 | --program-transfo=* | --program-transf=* \
1189 | --program-trans=* | --program-tran=* \
1190 | --progr-tra=* | --program-tr=* | --program-t=*)
1191 program_transform_name=$ac_optarg ;;
1193 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196 pdfdir=$ac_optarg ;;
1198 -psdir | --psdir | --psdi | --psd | --ps)
1200 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204 | -silent | --silent | --silen | --sile | --sil)
1207 -runstatedir | --runstatedir | --runstatedi | --runstated \
1208 | --runstate | --runstat | --runsta | --runst | --runs \
1209 | --run | --ru | --r)
1210 ac_prev=runstatedir ;;
1211 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1212 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1213 | --run=* | --ru=* | --r=*)
1214 runstatedir=$ac_optarg ;;
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220 sbindir=$ac_optarg ;;
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231 sharedstatedir=$ac_optarg ;;
1233 -site | --site | --sit)
1235 -site=* | --site=* | --sit=*)
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1262 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265 as_fn_error $? "invalid package name: $ac_useropt"
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1275 eval with_$ac_useropt=\$ac_optarg ;;
1277 -without-* | --without-*)
1278 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 as_fn_error $? "invalid package name: $ac_useropt"
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1291 eval with_$ac_useropt=no ;;
1294 # Obsolete; use --with-x.
1297 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298 | --x-incl | --x-inc | --x-in | --x-i)
1299 ac_prev=x_includes ;;
1300 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302 x_includes=$ac_optarg ;;
1304 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306 ac_prev=x_libraries ;;
1307 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309 x_libraries=$ac_optarg ;;
1311 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1312 Try \`$0 --help' for more information"
1316 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317 # Reject names that are not valid shell variable names.
1318 case $ac_envvar in #(
1319 '' | [0-9]* | *[!_$as_cr_alnum]* )
1320 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1322 eval $ac_envvar=\$ac_optarg
1323 export $ac_envvar ;;
1326 # FIXME: should be removed in autoconf 3.0.
1327 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1336 if test -n "$ac_prev"; then
1337 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338 as_fn_error $? "missing argument to $ac_option"
1341 if test -n "$ac_unrecognized_opts"; then
1342 case $enable_option_checking in
1344 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1345 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1349 # Check all directory arguments for consistency.
1350 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir runstatedir
1355 eval ac_val=\$$ac_var
1356 # Remove trailing slashes.
1359 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360 eval $ac_var=\$ac_val;;
1362 # Be sure to have absolute directory names.
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1375 target=$target_alias
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
1381 elif test "x$build_alias" != "x$host_alias"; then
1387 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1389 test "$silent" = yes && exec 6>/dev/null
1392 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1393 ac_ls_di=`ls -di .` &&
1394 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1395 as_fn_error $? "working directory cannot be determined"
1396 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1397 as_fn_error $? "pwd does not report name of working directory"
1400 # Find the source files, if location was not specified.
1401 if test -z "$srcdir"; then
1402 ac_srcdir_defaulted=yes
1403 # Try the directory containing this script, then the parent directory.
1404 ac_confdir=`$as_dirname -- "$as_myself" ||
1405 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1406 X"$as_myself" : 'X\(//\)[^/]' \| \
1407 X"$as_myself" : 'X\(//\)$' \| \
1408 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1409 $as_echo X"$as_myself" |
1410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1432 ac_srcdir_defaulted=no
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1435 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1436 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1438 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1442 # When building in place, set srcdir=.
1443 if test "$ac_abs_confdir" = "$ac_pwd"; then
1446 # Remove unnecessary trailing slashes from srcdir.
1447 # Double slashes in file names in object file debugging info
1448 # mess up M-x gdb in Emacs.
1450 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452 for ac_var in $ac_precious_vars; do
1453 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_env_${ac_var}_value=\$${ac_var}
1455 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460 # Report the --help message.
1462 if test "$ac_init_help" = "long"; then
1463 # Omit some internal or obsolete options to make the list less imposing.
1464 # This message is too long to be a string in the A/UX 3.1 sh.
1466 \`configure' configures this package to adapt to many kinds of systems.
1468 Usage: $0 [OPTION]... [VAR=VALUE]...
1470 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471 VAR=VALUE. See below for descriptions of some of the useful variables.
1473 Defaults for the options are specified in brackets.
1476 -h, --help display this help and exit
1477 --help=short display options specific to this package
1478 --help=recursive display the short help of all the included packages
1479 -V, --version display version information and exit
1480 -q, --quiet, --silent do not print \`checking ...' messages
1481 --cache-file=FILE cache test results in FILE [disabled]
1482 -C, --config-cache alias for \`--cache-file=config.cache'
1483 -n, --no-create do not create output files
1484 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1486 Installation directories:
1487 --prefix=PREFIX install architecture-independent files in PREFIX
1488 [$ac_default_prefix]
1489 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1492 By default, \`make install' will install all the files in
1493 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495 for instance \`--prefix=\$HOME'.
1497 For better control, use the options below.
1499 Fine tuning of the installation directories:
1500 --bindir=DIR user executables [EPREFIX/bin]
1501 --sbindir=DIR system admin executables [EPREFIX/sbin]
1502 --libexecdir=DIR program executables [EPREFIX/libexec]
1503 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1504 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1505 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1506 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1507 --libdir=DIR object code libraries [EPREFIX/lib]
1508 --includedir=DIR C header files [PREFIX/include]
1509 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1512 --infodir=DIR info documentation [DATAROOTDIR/info]
1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1514 --mandir=DIR man documentation [DATAROOTDIR/man]
1515 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1516 --htmldir=DIR html documentation [DOCDIR]
1517 --dvidir=DIR dvi documentation [DOCDIR]
1518 --pdfdir=DIR pdf documentation [DOCDIR]
1519 --psdir=DIR ps documentation [DOCDIR]
1525 --build=BUILD configure for building on BUILD [guessed]
1526 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1530 if test -n "$ac_init_help"; then
1535 --disable-option-checking ignore unrecognized --enable/--with options
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-maintainer-mode enable makefile rules useful for maintainers
1539 --enable-symlink-install use symlinks when installing instead of hard links
1540 --enable-relative-symlinks use relative symlinks when installing
1542 --enable-symlink-build use symlinks while building instead of hard links
1543 --enable-verbose-makecmds enable verbose make command output
1544 --enable-elf-shlibs select ELF shared libraries
1545 --enable-bsd-shlibs select BSD shared libraries
1546 --enable-profile build profiling libraries
1547 --enable-gcov build for coverage testing using gcov
1548 --enable-hardening build for coverage testing using gcov
1549 --enable-jbd-debug enable journal debugging
1550 --enable-blkid-debug enable blkid debugging
1551 --disable-testio-debug disable the use of the test I/O manager for debugging
1552 --enable-developer-features enable features for use by ext4 developers
1553 --enable-libuuid build and use private uuid library
1554 --enable-libblkid build and use private blkid library
1555 --enable-subset enable subset-only build
1556 --disable-backtrace disable use backtrace
1557 --disable-debugfs disable support of debugfs program
1558 --disable-imager disable support of e2image program
1559 --disable-resizer disable support of e2resize program
1560 --disable-defrag disable support of e4defrag program
1561 --enable-fsck build fsck wrapper program
1562 --enable-e2initrd-helper build e2initrd-helper program
1563 --disable-tls disable use of thread local support
1564 --disable-uuidd disable building the uuid daemon
1565 --disable-mmp disable support mmp, Multi Mount Protection
1566 --disable-tdb disable tdb support
1567 --disable-bmap-stats disable collection of bitmap stats.
1568 --enable-bmap-stats-ops enable collection of additional bitmap stats
1569 --disable-nls do not use Native Language Support
1570 --disable-rpath do not hardcode runtime library paths
1571 --disable-fuse2fs do not build fuse2fs
1572 --enable-lto enable link time optimization
1573 --enable-ubsan enable undefined behavior sanitizer
1574 --enable-addrsan enable address sanitizer
1575 --enable-threadsan enable thread sanitizer
1578 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1579 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1580 --with-diet-libc use diet libc
1581 --with-cc no longer supported, use CC= instead
1582 --with-ccopts no longer supported, use CFLAGS= instead
1583 --with-ldopts no longer supported, use LDFLAGS= instead
1584 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1585 --without-pthread disable use of pthread support
1586 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1587 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1588 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1589 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1590 --without-libintl-prefix don't search for libintl in includedir and libdir
1591 --with-multiarch=ARCH specify the multiarch triplet
1592 --with-udev-rules-dir[=DIR]
1593 Install udev rules into DIR.
1594 --with-crond-dir[=DIR] Install system crontabs into DIR.
1595 --with-systemd-unit-dir[=DIR]
1596 Install systemd system units into DIR.
1598 Some influential environment variables:
1599 CC C compiler command
1600 CFLAGS C compiler flags
1601 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1602 nonstandard directory <lib dir>
1603 LIBS libraries to pass to the linker, e.g. -l<library>
1604 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1605 you have headers in a nonstandard directory <include dir>
1607 PKG_CONFIG path to pkg-config utility
1609 directories to add to pkg-config's search path
1611 path overriding pkg-config's built-in search path
1612 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1613 udev_LIBS linker flags for udev, overriding pkg-config
1615 C compiler flags for systemd, overriding pkg-config
1617 linker flags for systemd, overriding pkg-config
1619 Use these variables to override the choices made by `configure' or to help
1620 it to find libraries and programs with nonstandard names/locations.
1622 Report bugs to the package provider.
1627 if test "$ac_init_help" = "recursive"; then
1628 # If there are subdirs, report their specific --help.
1629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630 test -d "$ac_dir" ||
1631 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1652 .) # We are building in place.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1676 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1686 generated by GNU Autoconf 2.69
1688 Copyright (C) 2012 Free Software Foundation, Inc.
1689 This configure script is free software; the Free Software Foundation
1690 gives unlimited permission to copy, distribute and modify it.
1695 ## ------------------------ ##
1696 ## Autoconf initialization. ##
1697 ## ------------------------ ##
1699 # ac_fn_c_try_compile LINENO
1700 # --------------------------
1701 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_compile ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext
1706 if { { ac_try="$ac_compile"
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_compile") 2>conftest.err
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest.$ac_objext; then :
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1735 } # ac_fn_c_try_compile
1737 # ac_fn_c_try_link LINENO
1738 # -----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded.
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext conftest$ac_exeext
1744 if { { ac_try="$ac_link"
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>conftest.err
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest$ac_exeext && {
1763 test "$cross_compiling" = yes ||
1764 test -x conftest$ac_exeext
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1773 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775 # interfere with the next link command; also delete a directory that is
1776 # left behind by Apple's compiler. We do this before executing the actions.
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1781 } # ac_fn_c_try_link
1783 # ac_fn_c_try_cpp LINENO
1784 # ----------------------
1785 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_cpp conftest.$ac_ext"
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } > conftest.i && {
1805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 as_fn_set_status $ac_retval
1820 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1821 # -------------------------------------------------------
1822 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1823 # the include files in INCLUDES and setting the cache variable VAR
1825 ac_fn_c_check_header_mongrel ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if eval \${$3+:} false; then :
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1838 # Is the header compilable?
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1840 $as_echo_n "checking $2 usability... " >&6; }
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847 ac_header_compiler=yes
1849 ac_header_compiler=no
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1853 $as_echo "$ac_header_compiler" >&6; }
1855 # Is the header present?
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1857 $as_echo_n "checking $2 presence... " >&6; }
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1862 if ac_fn_c_try_cpp "$LINENO"; then :
1863 ac_header_preproc=yes
1865 ac_header_preproc=no
1867 rm -f conftest.err conftest.i conftest.$ac_ext
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1869 $as_echo "$ac_header_preproc" >&6; }
1871 # So? What about this header?
1872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1875 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1877 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1881 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1883 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1885 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1887 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1889 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1897 eval "$3=\$ac_header_compiler"
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 } # ac_fn_c_check_header_mongrel
1907 # ac_fn_c_try_run LINENO
1908 # ----------------------
1909 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1910 # that executables *can* be run.
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if { { ac_try="$ac_link"
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_link") 2>&5
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1925 { { case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_try") 2>&5
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; }; }; then :
1937 $as_echo "$as_me: program exited with status $ac_status" >&5
1938 $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1941 ac_retval=$ac_status
1943 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 as_fn_set_status $ac_retval
1949 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1950 # -------------------------------------------------------
1951 # Tests whether HEADER exists and can be compiled using the include files in
1952 # INCLUDES, setting the cache variable VAR accordingly.
1953 ac_fn_c_check_header_compile ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1966 if ac_fn_c_try_compile "$LINENO"; then :
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 } # ac_fn_c_check_header_compile
1980 # ac_fn_c_check_func LINENO FUNC VAR
1981 # ----------------------------------
1982 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1983 ac_fn_c_check_func ()
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \${$3+:} false; then :
1989 $as_echo_n "(cached) " >&6
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1995 #define $2 innocuous_$2
1997 /* System header to define __stub macros and hopefully few prototypes,
1998 which can conflict with char $2 (); below.
1999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2000 <limits.h> exists even on freestanding compilers. */
2003 # include <limits.h>
2005 # include <assert.h>
2010 /* Override any GCC internal prototype to avoid an error.
2011 Use char because int might match the return type of a GCC
2012 builtin and then its argument prototype would still apply. */
2017 /* The GNU C library defines this for functions which it implements
2018 to always fail with ENOSYS. Some functions are actually named
2019 something starting with __ and the normal name is an alias. */
2020 #if defined __stub_$2 || defined __stub___$2
2032 if ac_fn_c_try_link "$LINENO"; then :
2037 rm -f core conftest.err conftest.$ac_objext \
2038 conftest$ac_exeext conftest.$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045 } # ac_fn_c_check_func
2047 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2048 # ----------------------------------------------------
2049 # Tries to find if the field MEMBER exists in type AGGR, after including
2050 # INCLUDES, setting cache variable VAR accordingly.
2051 ac_fn_c_check_member ()
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2055 $as_echo_n "checking for $2.$3... " >&6; }
2056 if eval \${$4+:} false; then :
2057 $as_echo_n "(cached) " >&6
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2072 if ac_fn_c_try_compile "$LINENO"; then :
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2082 if (sizeof ac_aggr.$3)
2088 if ac_fn_c_try_compile "$LINENO"; then :
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102 } # ac_fn_c_check_member
2104 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2105 # -------------------------------------------
2106 # Tests whether TYPE exists after having included INCLUDES, setting cache
2107 # variable VAR accordingly.
2108 ac_fn_c_check_type ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if eval \${$3+:} false; then :
2114 $as_echo_n "(cached) " >&6
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2142 if ac_fn_c_try_compile "$LINENO"; then :
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 } # ac_fn_c_check_type
2158 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2159 # ---------------------------------------------
2160 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2162 ac_fn_c_check_decl ()
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 as_decl_name=`echo $2|sed 's/ *(.*//'`
2166 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2168 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2169 if eval \${$3+:} false; then :
2170 $as_echo_n "(cached) " >&6
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2178 #ifndef $as_decl_name
2180 (void) $as_decl_use;
2182 (void) $as_decl_name;
2190 if ac_fn_c_try_compile "$LINENO"; then :
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 } # ac_fn_c_check_decl
2204 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2205 # --------------------------------------------
2206 # Tries to find the compile-time value of EXPR in a program that includes
2207 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2209 ac_fn_c_compute_int ()
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 if test "$cross_compiling" = yes; then
2213 # Depending upon the size, compute the lo and hi bounds.
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2220 static int test_array [1 - 2 * !(($2) >= 0)];
2222 return test_array [0];
2228 if ac_fn_c_try_compile "$LINENO"; then :
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2237 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2239 return test_array [0];
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246 ac_hi=$ac_mid; break
2248 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2249 if test $ac_lo -le $ac_mid; then
2253 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2264 static int test_array [1 - 2 * !(($2) < 0)];
2266 return test_array [0];
2272 if ac_fn_c_try_compile "$LINENO"; then :
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2281 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2283 return test_array [0];
2289 if ac_fn_c_try_compile "$LINENO"; then :
2290 ac_lo=$ac_mid; break
2292 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2293 if test $ac_mid -le $ac_hi; then
2297 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 # Binary search between lo and hi bounds.
2308 while test "x$ac_lo" != "x$ac_hi"; do
2309 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2316 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2318 return test_array [0];
2324 if ac_fn_c_try_compile "$LINENO"; then :
2327 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2339 static long int longval () { return $2; }
2340 static unsigned long int ulongval () { return $2; }
2347 FILE *f = fopen ("conftest.val", "w");
2352 long int i = longval ();
2355 fprintf (f, "%ld", i);
2359 unsigned long int i = ulongval ();
2362 fprintf (f, "%lu", i);
2364 /* Do not output a trailing newline, as this causes \r\n confusion
2365 on some platforms. */
2366 return ferror (f) || fclose (f) != 0;
2372 if ac_fn_c_try_run "$LINENO"; then :
2373 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2378 conftest.$ac_objext conftest.beam conftest.$ac_ext
2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2383 as_fn_set_status $ac_retval
2385 } # ac_fn_c_compute_int
2386 cat >config.log <<_ACEOF
2387 This file contains any messages produced by compilers while
2388 running configure, to aid debugging if configure makes a mistake.
2390 It was created by $as_me, which was
2391 generated by GNU Autoconf 2.69. Invocation command line was
2403 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2404 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2405 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2406 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2407 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2409 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2410 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2412 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2413 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2414 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2415 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2416 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2417 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2418 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 test -z "$as_dir" && as_dir=.
2427 $as_echo "PATH: $as_dir"
2443 # Keep a trace of the command line.
2444 # Strip out --no-create and --no-recursion so they do not pile up.
2445 # Strip out --silent because we don't want to record it for future runs.
2446 # Also quote any args containing shell meta-characters.
2447 # Make two passes to allow for proper duplicate-argument suppression.
2451 ac_must_keep_next=false
2457 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2459 | -silent | --silent | --silen | --sile | --sil)
2462 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2465 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2467 as_fn_append ac_configure_args1 " '$ac_arg'"
2468 if test $ac_must_keep_next = true; then
2469 ac_must_keep_next=false # Got value, back to normal.
2472 *=* | --config-cache | -C | -disable-* | --disable-* \
2473 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2474 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2475 | -with-* | --with-* | -without-* | --without-* | --x)
2476 case "$ac_configure_args0 " in
2477 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2480 -* ) ac_must_keep_next=true ;;
2483 as_fn_append ac_configure_args " '$ac_arg'"
2488 { ac_configure_args0=; unset ac_configure_args0;}
2489 { ac_configure_args1=; unset ac_configure_args1;}
2491 # When interrupted or exit'd, cleanup temporary files, and complete
2492 # config.log. We remove comments because anyway the quotes in there
2493 # would cause problems or look ugly.
2494 # WARNING: Use '\'' to represent an apostrophe within the trap.
2495 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2496 trap 'exit_status=$?
2497 # Save into config.log some information that might help in debugging.
2501 $as_echo "## ---------------- ##
2502 ## Cache variables. ##
2503 ## ---------------- ##"
2505 # The following way of writing the cache mishandles newlines in values,
2507 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2508 eval ac_val=\$$ac_var
2512 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2513 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2516 _ | IFS | as_nl) ;; #(
2517 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2518 *) { eval $ac_var=; unset $ac_var;} ;;
2523 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2524 *${as_nl}ac_space=\ *)
2526 "s/'\''/'\''\\\\'\'''\''/g;
2527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2537 $as_echo "## ----------------- ##
2538 ## Output variables. ##
2539 ## ----------------- ##"
2541 for ac_var in $ac_subst_vars
2543 eval ac_val=\$$ac_var
2545 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2547 $as_echo "$ac_var='\''$ac_val'\''"
2551 if test -n "$ac_subst_files"; then
2552 $as_echo "## ------------------- ##
2553 ## File substitutions. ##
2554 ## ------------------- ##"
2556 for ac_var in $ac_subst_files
2558 eval ac_val=\$$ac_var
2560 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2562 $as_echo "$ac_var='\''$ac_val'\''"
2567 if test -s confdefs.h; then
2568 $as_echo "## ----------- ##
2575 test "$ac_signal" != 0 &&
2576 $as_echo "$as_me: caught signal $ac_signal"
2577 $as_echo "$as_me: exit $exit_status"
2579 rm -f core *.core core.conftest.* &&
2580 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2583 for ac_signal in 1 2 13 15; do
2584 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2588 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2589 rm -f -r conftest* confdefs.h
2591 $as_echo "/* confdefs.h */" > confdefs.h
2593 # Predefined preprocessor variables.
2595 cat >>confdefs.h <<_ACEOF
2596 #define PACKAGE_NAME "$PACKAGE_NAME"
2599 cat >>confdefs.h <<_ACEOF
2600 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2603 cat >>confdefs.h <<_ACEOF
2604 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2607 cat >>confdefs.h <<_ACEOF
2608 #define PACKAGE_STRING "$PACKAGE_STRING"
2611 cat >>confdefs.h <<_ACEOF
2612 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2615 cat >>confdefs.h <<_ACEOF
2616 #define PACKAGE_URL "$PACKAGE_URL"
2620 # Let the site file select an alternate cache file if it wants to.
2621 # Prefer an explicitly selected file to automatically selected ones.
2624 if test -n "$CONFIG_SITE"; then
2625 # We do not want a PATH search for config.site.
2626 case $CONFIG_SITE in #((
2627 -*) ac_site_file1=./$CONFIG_SITE;;
2628 */*) ac_site_file1=$CONFIG_SITE;;
2629 *) ac_site_file1=./$CONFIG_SITE;;
2631 elif test "x$prefix" != xNONE; then
2632 ac_site_file1=$prefix/share/config.site
2633 ac_site_file2=$prefix/etc/config.site
2635 ac_site_file1=$ac_default_prefix/share/config.site
2636 ac_site_file2=$ac_default_prefix/etc/config.site
2638 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2640 test "x$ac_site_file" = xNONE && continue
2641 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2643 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2644 sed 's/^/| /' "$ac_site_file" >&5
2646 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648 as_fn_error $? "failed to load site script $ac_site_file
2649 See \`config.log' for more details" "$LINENO" 5; }
2653 if test -r "$cache_file"; then
2654 # Some versions of bash will fail to source /dev/null (special files
2655 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2656 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2658 $as_echo "$as_me: loading cache $cache_file" >&6;}
2660 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2661 *) . "./$cache_file";;
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2666 $as_echo "$as_me: creating cache $cache_file" >&6;}
2670 gt_needs="$gt_needs "
2671 # Check that the precious variables saved in the cache have kept the same
2673 ac_cache_corrupted=false
2674 for ac_var in $ac_precious_vars; do
2675 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2676 eval ac_new_set=\$ac_env_${ac_var}_set
2677 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2678 eval ac_new_val=\$ac_env_${ac_var}_value
2679 case $ac_old_set,$ac_new_set in
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2682 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2683 ac_cache_corrupted=: ;;
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2686 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2687 ac_cache_corrupted=: ;;
2690 if test "x$ac_old_val" != "x$ac_new_val"; then
2691 # differences in whitespace do not lead to failure.
2692 ac_old_val_w=`echo x $ac_old_val`
2693 ac_new_val_w=`echo x $ac_new_val`
2694 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2696 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2697 ac_cache_corrupted=:
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2700 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2701 eval $ac_var=\$ac_old_val
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2704 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2706 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2709 # Pass precious variables to config.status.
2710 if test "$ac_new_set" = set; then
2712 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2713 *) ac_arg=$ac_var=$ac_new_val ;;
2715 case " $ac_configure_args " in
2716 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2717 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2721 if $ac_cache_corrupted; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2725 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2726 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2728 ## -------------------- ##
2729 ## Main body of script. ##
2730 ## -------------------- ##
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 for ac_dir in config "$srcdir"/config; do
2742 if test -f "$ac_dir/install-sh"; then
2744 ac_install_sh="$ac_aux_dir/install-sh -c"
2746 elif test -f "$ac_dir/install.sh"; then
2748 ac_install_sh="$ac_aux_dir/install.sh -c"
2750 elif test -f "$ac_dir/shtool"; then
2752 ac_install_sh="$ac_aux_dir/shtool install -c"
2756 if test -z "$ac_aux_dir"; then
2757 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2760 # These three variables are undocumented and unsupported,
2761 # and are intended to be withdrawn in a future Autoconf release.
2762 # They can cause serious problems if a builder's source tree is in a directory
2763 # whose full name contains unusual characters.
2764 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2765 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2766 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2769 ac_config_headers="$ac_config_headers lib/config.h"
2775 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2776 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2777 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2778 | tr \" " " | awk '{print $1}'`
2779 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2780 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2781 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2783 if expr $YEAR ">" 1900 > /dev/null ; then
2784 E2FSPROGS_YEAR=$YEAR
2785 elif expr $YEAR ">" 90 >/dev/null ; then
2786 E2FSPROGS_YEAR=19$YEAR
2788 E2FSPROGS_YEAR=20$YEAR
2792 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2793 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2794 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2795 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2796 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2797 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2798 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2799 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2800 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2801 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2802 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2803 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2804 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2805 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2808 base_ver=`echo $E2FSPROGS_VERSION | \
2809 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2811 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2813 case $E2FSPROGS_VERSION in
2815 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2818 E2FSPROGS_PKGVER="$base_ver"
2822 unset DATE MONTH YEAR base_ver pre_vers date_spec
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2824 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2826 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2835 # Check whether --with-diet-libc was given.
2836 if test "${with_diet_libc+set}" = set; then :
2837 withval=$with_diet_libc; CC="diet cc -nostdinc"
2843 LIBS="$LIBS -lcompat"
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2846 $as_echo "CC=$CC" >&6; }
2848 # Make sure we can run config.sub.
2849 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2850 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2853 $as_echo_n "checking build system type... " >&6; }
2854 if ${ac_cv_build+:} false; then :
2855 $as_echo_n "(cached) " >&6
2857 ac_build_alias=$build_alias
2858 test "x$ac_build_alias" = x &&
2859 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2860 test "x$ac_build_alias" = x &&
2861 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2862 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2863 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2867 $as_echo "$ac_cv_build" >&6; }
2868 case $ac_cv_build in
2870 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2873 ac_save_IFS=$IFS; IFS='-'
2879 # Remember, the first character of IFS is used to create $*,
2880 # except with old shells:
2883 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2887 $as_echo_n "checking host system type... " >&6; }
2888 if ${ac_cv_host+:} false; then :
2889 $as_echo_n "(cached) " >&6
2891 if test "x$host_alias" = x; then
2892 ac_cv_host=$ac_cv_build
2894 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2895 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2900 $as_echo "$ac_cv_host" >&6; }
2903 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2906 ac_save_IFS=$IFS; IFS='-'
2912 # Remember, the first character of IFS is used to create $*,
2913 # except with old shells:
2916 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2921 ac_cpp='$CPP $CPPFLAGS'
2922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2927 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_CC+:} false; then :
2931 $as_echo_n "(cached) " >&6
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 if test -n "$CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 $as_echo "$CC" >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2964 if test -z "$ac_cv_prog_CC"; then
2966 # Extract the first word of "gcc", so it can be a program name with args.
2967 set dummy gcc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2971 $as_echo_n "(cached) " >&6
2973 if test -n "$ac_ct_CC"; then
2974 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983 ac_cv_prog_ac_ct_CC="gcc"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2994 if test -n "$ac_ct_CC"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2996 $as_echo "$ac_ct_CC" >&6; }
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3002 if test "x$ac_ct_CC" = x; then
3005 case $cross_compiling:$ac_tool_warned in
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009 ac_tool_warned=yes ;;
3017 if test -z "$CC"; then
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}cc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_CC+:} false; then :
3024 $as_echo_n "(cached) " >&6
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036 ac_cv_prog_CC="${ac_tool_prefix}cc"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3058 if test -z "$CC"; then
3059 # Extract the first word of "cc", so it can be a program name with args.
3060 set dummy cc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_CC+:} false; then :
3064 $as_echo_n "(cached) " >&6
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3078 ac_prog_rejected=yes
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 if test $ac_prog_rejected = yes; then
3090 # We found a bogon in the path, so make sure we never use it.
3091 set dummy $ac_cv_prog_CC
3093 if test $# != 0; then
3094 # We chose a different compiler from the bogus one.
3095 # However, it has the same basename, so the bogon will be chosen
3096 # first if we set CC to just the basename; use the full file name.
3098 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3104 if test -n "$CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106 $as_echo "$CC" >&6; }
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3114 if test -z "$CC"; then
3115 if test -n "$ac_tool_prefix"; then
3116 for ac_prog in cl.exe
3118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_CC+:} false; then :
3123 $as_echo_n "(cached) " >&6
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 if test -n "$CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3155 test -n "$CC" && break
3158 if test -z "$CC"; then
3160 for ac_prog in cl.exe
3162 # Extract the first word of "$ac_prog", so it can be a program name with args.
3163 set dummy $ac_prog; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3167 $as_echo_n "(cached) " >&6
3169 if test -n "$ac_ct_CC"; then
3170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_ac_ct_CC="$ac_prog"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3190 if test -n "$ac_ct_CC"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3192 $as_echo "$ac_ct_CC" >&6; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3199 test -n "$ac_ct_CC" && break
3202 if test "x$ac_ct_CC" = x; then
3205 case $cross_compiling:$ac_tool_warned in
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209 ac_tool_warned=yes ;;
3218 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220 as_fn_error $? "no acceptable C compiler found in \$PATH
3221 See \`config.log' for more details" "$LINENO" 5; }
3223 # Provide some information about the compiler.
3224 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3227 for ac_option in --version -v -V -qversion; do
3228 { { ac_try="$ac_compiler $ac_option >&5"
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234 $as_echo "$ac_try_echo"; } >&5
3235 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3237 if test -s conftest.err; then
3239 ... rest of stderr output deleted ...
3240 10q' conftest.err >conftest.er1
3241 cat conftest.er1 >&5
3243 rm -f conftest.er1 conftest.err
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3259 ac_clean_files_save=$ac_clean_files
3260 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3261 # Try to create an executable without -o first, disregard a.out.
3262 # It will help us diagnose broken compilers, and finding out an intuition
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3265 $as_echo_n "checking whether the C compiler works... " >&6; }
3266 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3268 # The possible output files:
3269 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3272 for ac_file in $ac_files
3275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3276 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3281 if { { ac_try="$ac_link_default"
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 $as_echo "$ac_try_echo"; } >&5
3288 (eval "$ac_link_default") 2>&5
3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291 test $ac_status = 0; }; then :
3292 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3293 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3294 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3295 # so that the user can short-circuit this test for compilers unknown to
3297 for ac_file in $ac_files ''
3299 test -f "$ac_file" || continue
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3304 # We found the default executable, but exeext='' is most
3308 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3310 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312 # We set ac_cv_exeext here because the later test for it is not
3313 # safe: cross compilers may not add the suffix if given an `-o'
3314 # argument, so we may need to know it at that point already.
3315 # Even if this section looks crufty: it has the advantage of
3322 test "$ac_cv_exeext" = no && ac_cv_exeext=
3327 if test -z "$ac_file"; then :
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 $as_echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error 77 "C compiler cannot create executables
3336 See \`config.log' for more details" "$LINENO" 5; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3339 $as_echo "yes" >&6; }
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3342 $as_echo_n "checking for C compiler default output file name... " >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3344 $as_echo "$ac_file" >&6; }
3345 ac_exeext=$ac_cv_exeext
3347 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3348 ac_clean_files=$ac_clean_files_save
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3350 $as_echo_n "checking for suffix of executables... " >&6; }
3351 if { { ac_try="$ac_link"
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_link") 2>&5
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }; then :
3362 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3363 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3364 # work properly (i.e., refer to `conftest.exe'), while it won't with
3366 for ac_file in conftest.exe conftest conftest.*; do
3367 test -f "$ac_file" || continue
3369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3370 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3379 See \`config.log' for more details" "$LINENO" 5; }
3381 rm -f conftest conftest$ac_cv_exeext
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3383 $as_echo "$ac_cv_exeext" >&6; }
3385 rm -f conftest.$ac_ext
3386 EXEEXT=$ac_cv_exeext
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3394 FILE *f = fopen ("conftest.out", "w");
3395 return ferror (f) || fclose (f) != 0;
3401 ac_clean_files="$ac_clean_files conftest.out"
3402 # Check that the compiler produces executables we can run. If not, either
3403 # the compiler is broken, or we cross compile.
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3405 $as_echo_n "checking whether we are cross compiling... " >&6; }
3406 if test "$cross_compiling" != yes; then
3407 { { ac_try="$ac_link"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_link") 2>&5
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }
3418 if { ac_try='./conftest$ac_cv_exeext'
3419 { { case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_try") 2>&5
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }; }; then
3431 if test "$cross_compiling" = maybe; then
3434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error $? "cannot run C compiled programs.
3437 If you meant to cross compile, use \`--host'.
3438 See \`config.log' for more details" "$LINENO" 5; }
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3443 $as_echo "$cross_compiling" >&6; }
3445 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3446 ac_clean_files=$ac_clean_files_save
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3448 $as_echo_n "checking for suffix of object files... " >&6; }
3449 if ${ac_cv_objext+:} false; then :
3450 $as_echo_n "(cached) " >&6
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3463 rm -f conftest.o conftest.obj
3464 if { { ac_try="$ac_compile"
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471 (eval "$ac_compile") 2>&5
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }; then :
3475 for ac_file in conftest.o conftest.obj conftest.*; do
3476 test -f "$ac_file" || continue;
3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3479 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3484 $as_echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error $? "cannot compute suffix of object files: cannot compile
3490 See \`config.log' for more details" "$LINENO" 5; }
3492 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3495 $as_echo "$ac_cv_objext" >&6; }
3496 OBJEXT=$ac_cv_objext
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3499 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3500 if ${ac_cv_c_compiler_gnu+:} false; then :
3501 $as_echo_n "(cached) " >&6
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3517 if ac_fn_c_try_compile "$LINENO"; then :
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3527 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3528 if test $ac_compiler_gnu = yes; then
3533 ac_test_CFLAGS=${CFLAGS+set}
3534 ac_save_CFLAGS=$CFLAGS
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3536 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3537 if ${ac_cv_prog_cc_g+:} false; then :
3538 $as_echo_n "(cached) " >&6
3540 ac_save_c_werror_flag=$ac_c_werror_flag
3541 ac_c_werror_flag=yes
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3555 if ac_fn_c_try_compile "$LINENO"; then :
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3570 if ac_fn_c_try_compile "$LINENO"; then :
3573 ac_c_werror_flag=$ac_save_c_werror_flag
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3586 if ac_fn_c_try_compile "$LINENO"; then :
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 ac_c_werror_flag=$ac_save_c_werror_flag
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3597 $as_echo "$ac_cv_prog_cc_g" >&6; }
3598 if test "$ac_test_CFLAGS" = set; then
3599 CFLAGS=$ac_save_CFLAGS
3600 elif test $ac_cv_prog_cc_g = yes; then
3601 if test "$GCC" = yes; then
3607 if test "$GCC" = yes; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3614 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3615 if ${ac_cv_prog_cc_c89+:} false; then :
3616 $as_echo_n "(cached) " >&6
3618 ac_cv_prog_cc_c89=no
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3625 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3626 struct buf { int x; };
3627 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3628 static char *e (p, i)
3634 static char *f (char * (*g) (char **, int), char **p, ...)
3639 s = g (p, va_arg (v,int));
3644 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3645 function prototypes and stuff, but not '\xHH' hex character constants.
3646 These don't provoke an error unfortunately, instead are silently treated
3647 as 'x'. The following induces an error, until -std is added to get
3648 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3649 array size at least. It's necessary to write '\x00'==0 to get something
3650 that's true only with -std. */
3651 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3653 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3654 inside strings and character constants. */
3656 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3658 int test (int i, double x);
3659 struct s1 {int (*f) (int a);};
3660 struct s2 {int (*f) (double a);};
3661 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3667 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3672 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3673 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3675 CC="$ac_save_CC $ac_arg"
3676 if ac_fn_c_try_compile "$LINENO"; then :
3677 ac_cv_prog_cc_c89=$ac_arg
3679 rm -f core conftest.err conftest.$ac_objext
3680 test "x$ac_cv_prog_cc_c89" != "xno" && break
3682 rm -f conftest.$ac_ext
3687 case "x$ac_cv_prog_cc_c89" in
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3690 $as_echo "none needed" >&6; } ;;
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3693 $as_echo "unsupported" >&6; } ;;
3695 CC="$CC $ac_cv_prog_cc_c89"
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3697 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3699 if test "x$ac_cv_prog_cc_c89" != xno; then :
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3711 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3712 if ${ac_cv_lib_dl_dlopen+:} false; then :
3713 $as_echo_n "(cached) " >&6
3715 ac_check_lib_save_LIBS=$LIBS
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3720 /* Override any GCC internal prototype to avoid an error.
3721 Use char because int might match the return type of a GCC
3722 builtin and then its argument prototype would still apply. */
3735 if ac_fn_c_try_link "$LINENO"; then :
3736 ac_cv_lib_dl_dlopen=yes
3738 ac_cv_lib_dl_dlopen=no
3740 rm -f core conftest.err conftest.$ac_objext \
3741 conftest$ac_exeext conftest.$ac_ext
3742 LIBS=$ac_check_lib_save_LIBS
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3745 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3746 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3752 # Check whether --with-cc was given.
3753 if test "${with_cc+set}" = set; then :
3754 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3758 # Check whether --with-ccopts was given.
3759 if test "${with_ccopts+set}" = set; then :
3760 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3764 # Check whether --with-ldopts was given.
3765 if test "${with_ldopts+set}" = set; then :
3766 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774 if test -n "$ac_tool_prefix"; then
3775 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3776 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3778 $as_echo_n "checking for $ac_word... " >&6; }
3779 if ${ac_cv_prog_CC+:} false; then :
3780 $as_echo_n "(cached) " >&6
3782 if test -n "$CC"; then
3783 ac_cv_prog_CC="$CC" # Let the user override the test.
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 test -z "$as_dir" && as_dir=.
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3792 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 if test -n "$CC"; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3805 $as_echo "$CC" >&6; }
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3808 $as_echo "no" >&6; }
3813 if test -z "$ac_cv_prog_CC"; then
3815 # Extract the first word of "gcc", so it can be a program name with args.
3816 set dummy gcc; ac_word=$2
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818 $as_echo_n "checking for $ac_word... " >&6; }
3819 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3820 $as_echo_n "(cached) " >&6
3822 if test -n "$ac_ct_CC"; then
3823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 test -z "$as_dir" && as_dir=.
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3832 ac_cv_prog_ac_ct_CC="gcc"
3833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3843 if test -n "$ac_ct_CC"; then
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3845 $as_echo "$ac_ct_CC" >&6; }
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848 $as_echo "no" >&6; }
3851 if test "x$ac_ct_CC" = x; then
3854 case $cross_compiling:$ac_tool_warned in
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3858 ac_tool_warned=yes ;;
3866 if test -z "$CC"; then
3867 if test -n "$ac_tool_prefix"; then
3868 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3869 set dummy ${ac_tool_prefix}cc; ac_word=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if ${ac_cv_prog_CC+:} false; then :
3873 $as_echo_n "(cached) " >&6
3875 if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885 ac_cv_prog_CC="${ac_tool_prefix}cc"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 if test -n "$CC"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3898 $as_echo "$CC" >&6; }
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3907 if test -z "$CC"; then
3908 # Extract the first word of "cc", so it can be a program name with args.
3909 set dummy cc; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if ${ac_cv_prog_CC+:} false; then :
3913 $as_echo_n "(cached) " >&6
3915 if test -n "$CC"; then
3916 ac_cv_prog_CC="$CC" # Let the user override the test.
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3927 ac_prog_rejected=yes
3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 if test $ac_prog_rejected = yes; then
3939 # We found a bogon in the path, so make sure we never use it.
3940 set dummy $ac_cv_prog_CC
3942 if test $# != 0; then
3943 # We chose a different compiler from the bogus one.
3944 # However, it has the same basename, so the bogon will be chosen
3945 # first if we set CC to just the basename; use the full file name.
3947 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3953 if test -n "$CC"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3955 $as_echo "$CC" >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3963 if test -z "$CC"; then
3964 if test -n "$ac_tool_prefix"; then
3965 for ac_prog in cl.exe
3967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 $as_echo_n "checking for $ac_word... " >&6; }
3971 if ${ac_cv_prog_CC+:} false; then :
3972 $as_echo_n "(cached) " >&6
3974 if test -n "$CC"; then
3975 ac_cv_prog_CC="$CC" # Let the user override the test.
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3984 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 if test -n "$CC"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3997 $as_echo "$CC" >&6; }
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4004 test -n "$CC" && break
4007 if test -z "$CC"; then
4009 for ac_prog in cl.exe
4011 # Extract the first word of "$ac_prog", so it can be a program name with args.
4012 set dummy $ac_prog; ac_word=$2
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014 $as_echo_n "checking for $ac_word... " >&6; }
4015 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4016 $as_echo_n "(cached) " >&6
4018 if test -n "$ac_ct_CC"; then
4019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028 ac_cv_prog_ac_ct_CC="$ac_prog"
4029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4039 if test -n "$ac_ct_CC"; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4041 $as_echo "$ac_ct_CC" >&6; }
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4048 test -n "$ac_ct_CC" && break
4051 if test "x$ac_ct_CC" = x; then
4054 case $cross_compiling:$ac_tool_warned in
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4058 ac_tool_warned=yes ;;
4067 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4069 as_fn_error $? "no acceptable C compiler found in \$PATH
4070 See \`config.log' for more details" "$LINENO" 5; }
4072 # Provide some information about the compiler.
4073 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4076 for ac_option in --version -v -V -qversion; do
4077 { { ac_try="$ac_compiler $ac_option >&5"
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083 $as_echo "$ac_try_echo"; } >&5
4084 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4086 if test -s conftest.err; then
4088 ... rest of stderr output deleted ...
4089 10q' conftest.err >conftest.er1
4090 cat conftest.er1 >&5
4092 rm -f conftest.er1 conftest.err
4093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094 test $ac_status = 0; }
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4098 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4099 if ${ac_cv_c_compiler_gnu+:} false; then :
4100 $as_echo_n "(cached) " >&6
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4116 if ac_fn_c_try_compile "$LINENO"; then :
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4126 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4127 if test $ac_compiler_gnu = yes; then
4132 ac_test_CFLAGS=${CFLAGS+set}
4133 ac_save_CFLAGS=$CFLAGS
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4135 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4136 if ${ac_cv_prog_cc_g+:} false; then :
4137 $as_echo_n "(cached) " >&6
4139 ac_save_c_werror_flag=$ac_c_werror_flag
4140 ac_c_werror_flag=yes
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4154 if ac_fn_c_try_compile "$LINENO"; then :
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4169 if ac_fn_c_try_compile "$LINENO"; then :
4172 ac_c_werror_flag=$ac_save_c_werror_flag
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4185 if ac_fn_c_try_compile "$LINENO"; then :
4188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 ac_c_werror_flag=$ac_save_c_werror_flag
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4196 $as_echo "$ac_cv_prog_cc_g" >&6; }
4197 if test "$ac_test_CFLAGS" = set; then
4198 CFLAGS=$ac_save_CFLAGS
4199 elif test $ac_cv_prog_cc_g = yes; then
4200 if test "$GCC" = yes; then
4206 if test "$GCC" = yes; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4213 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4214 if ${ac_cv_prog_cc_c89+:} false; then :
4215 $as_echo_n "(cached) " >&6
4217 ac_cv_prog_cc_c89=no
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4225 struct buf { int x; };
4226 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4227 static char *e (p, i)
4233 static char *f (char * (*g) (char **, int), char **p, ...)
4238 s = g (p, va_arg (v,int));
4243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4244 function prototypes and stuff, but not '\xHH' hex character constants.
4245 These don't provoke an error unfortunately, instead are silently treated
4246 as 'x'. The following induces an error, until -std is added to get
4247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4248 array size at least. It's necessary to write '\x00'==0 to get something
4249 that's true only with -std. */
4250 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4252 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4253 inside strings and character constants. */
4255 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4257 int test (int i, double x);
4258 struct s1 {int (*f) (int a);};
4259 struct s2 {int (*f) (double a);};
4260 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4266 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4271 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4272 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4274 CC="$ac_save_CC $ac_arg"
4275 if ac_fn_c_try_compile "$LINENO"; then :
4276 ac_cv_prog_cc_c89=$ac_arg
4278 rm -f core conftest.err conftest.$ac_objext
4279 test "x$ac_cv_prog_cc_c89" != "xno" && break
4281 rm -f conftest.$ac_ext
4286 case "x$ac_cv_prog_cc_c89" in
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4289 $as_echo "none needed" >&6; } ;;
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4292 $as_echo "unsupported" >&6; } ;;
4294 CC="$CC $ac_cv_prog_cc_c89"
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4296 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4298 if test "x$ac_cv_prog_cc_c89" != xno; then :
4303 ac_cpp='$CPP $CPPFLAGS'
4304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308 if test "$GCC" = yes; then
4309 RDYNAMIC="-rdynamic"
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4318 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4319 # On Suns, sometimes $CPP names a directory.
4320 if test -n "$CPP" && test -d "$CPP"; then
4323 if test -z "$CPP"; then
4324 if ${ac_cv_prog_CPP+:} false; then :
4325 $as_echo_n "(cached) " >&6
4327 # Double quotes because CPP needs to be expanded
4328 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4331 for ac_c_preproc_warn_flag in '' yes
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
4337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4342 # include <limits.h>
4344 # include <assert.h>
4348 if ac_fn_c_try_cpp "$LINENO"; then :
4351 # Broken: fails on valid input.
4354 rm -f conftest.err conftest.i conftest.$ac_ext
4356 # OK, works on sane cases. Now check whether nonexistent headers
4357 # can be detected and how.
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360 #include <ac_nonexistent.h>
4362 if ac_fn_c_try_cpp "$LINENO"; then :
4363 # Broken: success on invalid input.
4366 # Passes both tests.
4370 rm -f conftest.err conftest.i conftest.$ac_ext
4373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4374 rm -f conftest.i conftest.err conftest.$ac_ext
4375 if $ac_preproc_ok; then :
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4388 $as_echo "$CPP" >&6; }
4390 for ac_c_preproc_warn_flag in '' yes
4392 # Use a header file that comes with gcc, so configuring glibc
4393 # with a fresh cross-compiler works.
4394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4395 # <limits.h> exists even on freestanding compilers.
4396 # On the NeXT, cc -E runs the code through the compiler's parser,
4397 # not just through cpp. "Syntax error" is here to catch this case.
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4401 # include <limits.h>
4403 # include <assert.h>
4407 if ac_fn_c_try_cpp "$LINENO"; then :
4410 # Broken: fails on valid input.
4413 rm -f conftest.err conftest.i conftest.$ac_ext
4415 # OK, works on sane cases. Now check whether nonexistent headers
4416 # can be detected and how.
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4419 #include <ac_nonexistent.h>
4421 if ac_fn_c_try_cpp "$LINENO"; then :
4422 # Broken: success on invalid input.
4425 # Passes both tests.
4429 rm -f conftest.err conftest.i conftest.$ac_ext
4432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4433 rm -f conftest.i conftest.err conftest.$ac_ext
4434 if $ac_preproc_ok; then :
4437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4439 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4440 See \`config.log' for more details" "$LINENO" 5; }
4444 ac_cpp='$CPP $CPPFLAGS'
4445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4450 $as_echo_n "checking for additional special compiler flags... " >&6; }
4451 if test "$GCC" = yes
4454 alpha) addcflags="-mieee" ;;
4457 if test "x$addcflags" != x
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4460 $as_echo "$addcflags" >&6; }
4461 CFLAGS="$addcflags $CFLAGS"
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4464 $as_echo "(none)" >&6; }
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4468 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4469 if ${ac_cv_path_GREP+:} false; then :
4470 $as_echo_n "(cached) " >&6
4472 if test -z "$GREP"; then
4473 ac_path_GREP_found=false
4474 # Loop through the user's path and test for each of PROGNAME-LIST
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4479 test -z "$as_dir" && as_dir=.
4480 for ac_prog in grep ggrep; do
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4483 as_fn_executable_p "$ac_path_GREP" || continue
4484 # Check for GNU ac_path_GREP and select it if it is found.
4485 # Check for GNU $ac_path_GREP
4486 case `"$ac_path_GREP" --version 2>&1` in
4488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4491 $as_echo_n 0123456789 >"conftest.in"
4494 cat "conftest.in" "conftest.in" >"conftest.tmp"
4495 mv "conftest.tmp" "conftest.in"
4496 cp "conftest.in" "conftest.nl"
4497 $as_echo 'GREP' >> "conftest.nl"
4498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4500 as_fn_arith $ac_count + 1 && ac_count=$as_val
4501 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4502 # Best one so far, save it but keep looking for a better one
4503 ac_cv_path_GREP="$ac_path_GREP"
4504 ac_path_GREP_max=$ac_count
4506 # 10*(2^10) chars as input seems more than enough
4507 test $ac_count -gt 10 && break
4509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4512 $ac_path_GREP_found && break 3
4517 if test -z "$ac_cv_path_GREP"; then
4518 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4521 ac_cv_path_GREP=$GREP
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4526 $as_echo "$ac_cv_path_GREP" >&6; }
4527 GREP="$ac_cv_path_GREP"
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4531 $as_echo_n "checking for egrep... " >&6; }
4532 if ${ac_cv_path_EGREP+:} false; then :
4533 $as_echo_n "(cached) " >&6
4535 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4536 then ac_cv_path_EGREP="$GREP -E"
4538 if test -z "$EGREP"; then
4539 ac_path_EGREP_found=false
4540 # Loop through the user's path and test for each of PROGNAME-LIST
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4545 test -z "$as_dir" && as_dir=.
4546 for ac_prog in egrep; do
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4549 as_fn_executable_p "$ac_path_EGREP" || continue
4550 # Check for GNU ac_path_EGREP and select it if it is found.
4551 # Check for GNU $ac_path_EGREP
4552 case `"$ac_path_EGREP" --version 2>&1` in
4554 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4557 $as_echo_n 0123456789 >"conftest.in"
4560 cat "conftest.in" "conftest.in" >"conftest.tmp"
4561 mv "conftest.tmp" "conftest.in"
4562 cp "conftest.in" "conftest.nl"
4563 $as_echo 'EGREP' >> "conftest.nl"
4564 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4565 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4566 as_fn_arith $ac_count + 1 && ac_count=$as_val
4567 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4568 # Best one so far, save it but keep looking for a better one
4569 ac_cv_path_EGREP="$ac_path_EGREP"
4570 ac_path_EGREP_max=$ac_count
4572 # 10*(2^10) chars as input seems more than enough
4573 test $ac_count -gt 10 && break
4575 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4578 $ac_path_EGREP_found && break 3
4583 if test -z "$ac_cv_path_EGREP"; then
4584 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4587 ac_cv_path_EGREP=$EGREP
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4593 $as_echo "$ac_cv_path_EGREP" >&6; }
4594 EGREP="$ac_cv_path_EGREP"
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4598 $as_echo_n "checking for ANSI C header files... " >&6; }
4599 if ${ac_cv_header_stdc+:} false; then :
4600 $as_echo_n "(cached) " >&6
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618 ac_cv_header_stdc=yes
4620 ac_cv_header_stdc=no
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 if test $ac_cv_header_stdc = yes; then
4625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4632 $EGREP "memchr" >/dev/null 2>&1; then :
4635 ac_cv_header_stdc=no
4641 if test $ac_cv_header_stdc = yes; then
4642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4649 $EGREP "free" >/dev/null 2>&1; then :
4652 ac_cv_header_stdc=no
4658 if test $ac_cv_header_stdc = yes; then
4659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4660 if test "$cross_compiling" = yes; then :
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4667 #if ((' ' & 0x0FF) == 0x020)
4668 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4669 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4671 # define ISLOWER(c) \
4672 (('a' <= (c) && (c) <= 'i') \
4673 || ('j' <= (c) && (c) <= 'r') \
4674 || ('s' <= (c) && (c) <= 'z'))
4675 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4678 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4683 for (i = 0; i < 256; i++)
4684 if (XOR (islower (i), ISLOWER (i))
4685 || toupper (i) != TOUPPER (i))
4690 if ac_fn_c_try_run "$LINENO"; then :
4693 ac_cv_header_stdc=no
4695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4696 conftest.$ac_objext conftest.beam conftest.$ac_ext
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4702 $as_echo "$ac_cv_header_stdc" >&6; }
4703 if test $ac_cv_header_stdc = yes; then
4705 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4709 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4710 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4711 inttypes.h stdint.h unistd.h
4713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4714 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4716 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4717 cat >>confdefs.h <<_ACEOF
4718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4727 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4728 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4735 if test "$MINIX" = yes; then
4737 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4740 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4743 $as_echo "#define _MINIX 1" >>confdefs.h
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4749 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4750 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4751 $as_echo_n "(cached) " >&6
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4756 # define __EXTENSIONS__ 1
4757 $ac_includes_default
4766 if ac_fn_c_try_compile "$LINENO"; then :
4767 ac_cv_safe_to_define___extensions__=yes
4769 ac_cv_safe_to_define___extensions__=no
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4774 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4775 test $ac_cv_safe_to_define___extensions__ = yes &&
4776 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4778 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4780 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4782 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4784 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4791 # Check whether --with-root-prefix was given.
4792 if test "${with_root_prefix+set}" = set; then :
4793 withval=$with_root_prefix; root_prefix=$withval
4797 # Check whether --enable-maintainer-mode was given.
4798 if test "${enable_maintainer_mode+set}" = set; then :
4799 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4803 $as_echo "Disabling maintainer mode" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4807 $as_echo "Enabling maintainer mode" >&6; }
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4813 $as_echo "Disabling maintainer mode by default" >&6; }
4818 # Check whether --enable-symlink-install was given.
4819 if test "${enable_symlink_install+set}" = set; then :
4820 enableval=$enable_symlink_install; if test "$enableval" = "no"
4822 LINK_INSTALL_FLAGS=-f
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4824 $as_echo "Disabling symlinks for install" >&6; }
4826 LINK_INSTALL_FLAGS=-sf
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4828 $as_echo "Enabling symlinks for install" >&6; }
4832 LINK_INSTALL_FLAGS=-f
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4834 $as_echo "Disabling symlinks for install by default" >&6; }
4839 relative_symlink_defined=
4840 # Check whether --enable-relative-symlinks was given.
4841 if test "${enable_relative_symlinks+set}" = set; then :
4842 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4845 relative_symlink_defined=yes
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4847 $as_echo "Disabling relative symlinks for install" >&6; }
4849 SYMLINK_RELATIVE=--relative
4850 relative_symlink_defined=yes
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4852 $as_echo "Enabling relative symlinks for install" >&6; }
4856 # Check whether --enable-symlink-relative-symlinks was given.
4857 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4858 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4860 SYMLINK_RELATIVE=yes
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4862 $as_echo "Disabling relative symlinks for install" >&6; }
4864 SYMLINK_RELATIVE=--relative
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4866 $as_echo "Enabling relative symlinks for install" >&6; }
4870 if test -z "$relative_symlink_defined"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4874 $as_echo "Disabling relative symlinks for install by default" >&6; }
4880 # Check whether --enable-symlink-build was given.
4881 if test "${enable_symlink_build+set}" = set; then :
4882 enableval=$enable_symlink_build; if test "$enableval" = "no"
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4886 $as_echo "Disabling symlinks for build" >&6; }
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4890 $as_echo "Enabling symlinks for build" >&6; }
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4896 $as_echo "Disabling symlinks for build by default" >&6; }
4901 # Check whether --enable-verbose-makecmds was given.
4902 if test "${enable_verbose_makecmds+set}" = set; then :
4903 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4906 $as_echo "Disabling verbose make commands" >&6; }
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4912 $as_echo "Enabling verbose make commands" >&6; }
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4920 $as_echo "Disabling verbose make commands" >&6; }
4930 E2_PKG_CONFIG_STATIC=--static
4933 # Check whether --enable-elf-shlibs was given.
4934 if test "${enable_elf_shlibs+set}" = set; then :
4935 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4938 MAKEFILE_ELF=/dev/null
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4940 $as_echo "Disabling ELF shared libraries" >&6; }
4942 E2_PKG_CONFIG_STATIC=
4944 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4947 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4953 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4955 $as_echo "Enabling ELF shared libraries" >&6; }
4959 MAKEFILE_ELF=/dev/null
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4962 $as_echo "Disabling ELF shared libraries by default" >&6; }
4968 # Check whether --enable-bsd-shlibs was given.
4969 if test "${enable_bsd_shlibs+set}" = set; then :
4970 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4973 MAKEFILE_BSDLIB=/dev/null
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4975 $as_echo "Disabling BSD shared libraries" >&6; }
4977 E2_PKG_CONFIG_STATIC=
4979 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4983 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4988 $as_echo "Enabling BSD shared libraries" >&6; }
4992 MAKEFILE_BSDLIB=/dev/null
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4995 $as_echo "Disabling BSD shared libraries by default" >&6; }
5001 # Check whether --enable-profile was given.
5002 if test "${enable_profile+set}" = set; then :
5003 enableval=$enable_profile; if test "$enableval" = "no"
5006 MAKEFILE_PROFILE=/dev/null
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5008 $as_echo "Disabling profiling libraries" >&6; }
5011 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5012 PROFILED_LIB_EXT=_p.a
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5014 $as_echo "Building profiling libraries" >&6; }
5019 MAKEFILE_PROFILE=/dev/null
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5021 $as_echo "Disabling profiling libraries by default" >&6; }
5027 # Check whether --enable-gcov was given.
5028 if test "${enable_gcov+set}" = set; then :
5029 enableval=$enable_gcov; if test "$enableval" = "yes"
5031 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5032 LDFLAGS="-fprofile-arcs -ftest-coverage"
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5034 $as_echo "Enabling gcov support" >&6; }
5039 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5040 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5041 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5042 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5043 # Check whether --enable-hardening was given.
5044 if test "${enable_hardening+set}" = set; then :
5045 enableval=$enable_hardening; if test "$enableval" = "yes"
5047 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5048 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5049 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5050 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5051 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5052 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5053 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5054 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5056 $as_echo "Enabling hardening support" >&6; }
5066 # Check whether --enable-jbd-debug was given.
5067 if test "${enable_jbd_debug+set}" = set; then :
5068 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5071 $as_echo "Disabling journal debugging" >&6; }
5074 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5077 $as_echo "Enabling journal debugging" >&6; }
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5082 $as_echo "Disabling journal debugging by default" >&6; }
5086 # Check whether --enable-blkid-debug was given.
5087 if test "${enable_blkid_debug+set}" = set; then :
5088 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5091 $as_echo "Disabling blkid debugging" >&6; }
5094 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5097 $as_echo "Enabling blkid debugging" >&6; }
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5102 $as_echo "Disabling blkid debugging by default" >&6; }
5106 # Check whether --enable-testio-debug was given.
5107 if test "${enable_testio_debug+set}" = set; then :
5108 enableval=$enable_testio_debug;
5109 if test "$enableval" = "no"
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5112 $as_echo "Disabling testio debugging" >&6; }
5116 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5119 $as_echo "Enabling testio debugging" >&6; }
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5124 $as_echo "Enabling testio debugging by default" >&6; }
5125 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5132 # Check whether --enable-developer-features was given.
5133 if test "${enable_developer_features+set}" = set; then :
5134 enableval=$enable_developer_features;
5135 if test "$enableval" = "yes"
5138 $as_echo "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
5141 $as_echo "Enabling ext4 developer features" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
5144 $as_echo "Disabling ext4 developer features" >&6; }
5145 DEV_FEATURES_CMT="#"
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
5150 $as_echo "Disabling ext4 developer features by default" >&6; }
5163 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5164 if test -n "$ac_tool_prefix"; then
5165 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5166 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5170 $as_echo_n "(cached) " >&6
5174 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5196 if test -n "$PKG_CONFIG"; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5198 $as_echo "$PKG_CONFIG" >&6; }
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5206 if test -z "$ac_cv_path_PKG_CONFIG"; then
5207 ac_pt_PKG_CONFIG=$PKG_CONFIG
5208 # Extract the first word of "pkg-config", so it can be a program name with args.
5209 set dummy pkg-config; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 case $ac_pt_PKG_CONFIG in
5217 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5239 if test -n "$ac_pt_PKG_CONFIG"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5241 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5247 if test "x$ac_pt_PKG_CONFIG" = x; then
5250 case $cross_compiling:$ac_tool_warned in
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5254 ac_tool_warned=yes ;;
5256 PKG_CONFIG=$ac_pt_PKG_CONFIG
5259 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5263 if test -n "$PKG_CONFIG"; then
5264 _pkg_min_version=0.9.0
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5266 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5267 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5269 $as_echo "yes" >&6; }
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5281 DEPPROFILED_LIBUUID=
5283 # Check whether --enable-libuuid was given.
5284 if test "${enable_libuuid+set}" = set; then :
5285 enableval=$enable_libuuid; if test "$enableval" = "no"
5287 if test -z "$PKG_CONFIG"; then
5288 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5292 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5293 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5294 $as_echo_n "(cached) " >&6
5296 ac_check_lib_save_LIBS=$LIBS
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5301 /* Override any GCC internal prototype to avoid an error.
5302 Use char because int might match the return type of a GCC
5303 builtin and then its argument prototype would still apply. */
5307 char uuid_generate ();
5311 return uuid_generate ();
5316 if ac_fn_c_try_link "$LINENO"; then :
5317 ac_cv_lib_uuid_uuid_generate=yes
5319 ac_cv_lib_uuid_uuid_generate=no
5321 rm -f core conftest.err conftest.$ac_objext \
5322 conftest$ac_exeext conftest.$ac_ext
5323 LIBS=$ac_check_lib_save_LIBS
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5326 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5327 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5328 LIBUUID=`$PKG_CONFIG --libs uuid`;
5329 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5331 as_fn_error $? "external uuid library not found" "$LINENO" 5
5334 PROFILED_LIBUUID=$LIBUUID
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5337 $as_echo "Disabling private uuid library" >&6; }
5339 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5341 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5342 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5343 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5344 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5346 $as_echo "Enabling private uuid library" >&6; }
5350 if test -n "$PKG_CONFIG"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5352 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5353 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5354 $as_echo_n "(cached) " >&6
5356 ac_check_lib_save_LIBS=$LIBS
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5361 /* Override any GCC internal prototype to avoid an error.
5362 Use char because int might match the return type of a GCC
5363 builtin and then its argument prototype would still apply. */
5367 char uuid_generate ();
5371 return uuid_generate ();
5376 if ac_fn_c_try_link "$LINENO"; then :
5377 ac_cv_lib_uuid_uuid_generate=yes
5379 ac_cv_lib_uuid_uuid_generate=no
5381 rm -f core conftest.err conftest.$ac_objext \
5382 conftest$ac_exeext conftest.$ac_ext
5383 LIBS=$ac_check_lib_save_LIBS
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5386 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5387 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5388 LIBUUID=`$PKG_CONFIG --libs uuid`;
5389 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5393 if test -n "$LIBUUID"; then
5394 PROFILED_LIBUUID=$LIBUUID
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5397 $as_echo "Using system uuid by default" >&6; }
5399 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5401 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5402 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5403 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5404 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5406 $as_echo "Enabling private uuid library by default" >&6; }
5425 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5426 if test -n "$ac_tool_prefix"; then
5427 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5428 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5432 $as_echo_n "(cached) " >&6
5436 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5458 if test -n "$PKG_CONFIG"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5460 $as_echo "$PKG_CONFIG" >&6; }
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5468 if test -z "$ac_cv_path_PKG_CONFIG"; then
5469 ac_pt_PKG_CONFIG=$PKG_CONFIG
5470 # Extract the first word of "pkg-config", so it can be a program name with args.
5471 set dummy pkg-config; ac_word=$2
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5473 $as_echo_n "checking for $ac_word... " >&6; }
5474 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5475 $as_echo_n "(cached) " >&6
5477 case $ac_pt_PKG_CONFIG in
5479 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5501 if test -n "$ac_pt_PKG_CONFIG"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5503 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5509 if test "x$ac_pt_PKG_CONFIG" = x; then
5512 case $cross_compiling:$ac_tool_warned in
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5516 ac_tool_warned=yes ;;
5518 PKG_CONFIG=$ac_pt_PKG_CONFIG
5521 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5525 if test -n "$PKG_CONFIG"; then
5526 _pkg_min_version=0.9.0
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5528 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5529 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5531 $as_echo "yes" >&6; }
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5543 DEPPROFILED_LIBBLKID=
5546 # Check whether --enable-libblkid was given.
5547 if test "${enable_libblkid+set}" = set; then :
5548 enableval=$enable_libblkid; if test "$enableval" = "no"
5550 if test -z "$PKG_CONFIG"; then
5551 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5555 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5556 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5557 $as_echo_n "(cached) " >&6
5559 ac_check_lib_save_LIBS=$LIBS
5560 LIBS="-lblkid -luuid $LIBS"
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5564 /* Override any GCC internal prototype to avoid an error.
5565 Use char because int might match the return type of a GCC
5566 builtin and then its argument prototype would still apply. */
5570 char blkid_get_cache ();
5574 return blkid_get_cache ();
5579 if ac_fn_c_try_link "$LINENO"; then :
5580 ac_cv_lib_blkid_blkid_get_cache=yes
5582 ac_cv_lib_blkid_blkid_get_cache=no
5584 rm -f core conftest.err conftest.$ac_objext \
5585 conftest$ac_exeext conftest.$ac_ext
5586 LIBS=$ac_check_lib_save_LIBS
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5589 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5590 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5591 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5592 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5594 as_fn_error $? "external blkid library not found" "$LINENO" 5
5598 PROFILED_LIBBLKID=$LIBBLKID
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5600 $as_echo "Disabling private blkid library" >&6; }
5602 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5603 DEPLIBBLKID=$LIBBLKID
5604 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5605 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5606 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5607 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5608 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5611 $as_echo "Enabling private blkid library" >&6; }
5615 if test -n "$PKG_CONFIG"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5617 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5618 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5619 $as_echo_n "(cached) " >&6
5621 ac_check_lib_save_LIBS=$LIBS
5622 LIBS="-lblkid $LIBS"
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5626 /* Override any GCC internal prototype to avoid an error.
5627 Use char because int might match the return type of a GCC
5628 builtin and then its argument prototype would still apply. */
5632 char blkid_get_cache ();
5636 return blkid_get_cache ();
5641 if ac_fn_c_try_link "$LINENO"; then :
5642 ac_cv_lib_blkid_blkid_get_cache=yes
5644 ac_cv_lib_blkid_blkid_get_cache=no
5646 rm -f core conftest.err conftest.$ac_objext \
5647 conftest$ac_exeext conftest.$ac_ext
5648 LIBS=$ac_check_lib_save_LIBS
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5651 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5652 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5653 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5654 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5658 if test -n "$LIBBLKID"; then
5660 PROFILED_LIBBLKID=$LIBBLKID
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5662 $as_echo "Using system blkid library by default" >&6; }
5664 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5665 DEPLIBBLKID=$LIBBLKID
5666 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5667 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5668 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5669 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5670 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5673 $as_echo "Enabling private blkid library by default" >&6; }
5687 # Check whether --enable-subset was given.
5688 if test "${enable_subset+set}" = set; then :
5689 enableval=$enable_subset; if test "$enableval" = "no"
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5693 $as_echo "Disabling subset-only build" >&6; }
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5697 $as_echo "Enabling subset-only-build" >&6; }
5705 # Check whether --enable-backtrace was given.
5706 if test "${enable_backtrace+set}" = set; then :
5707 enableval=$enable_backtrace; if test "$enableval" = "no"
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5710 $as_echo "Disabling use of backtrace" >&6; }
5711 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5715 $as_echo "Enabling use of backtrace" >&6; }
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5720 $as_echo "Enabling use of backtrace by default" >&6; }
5724 # Check whether --enable-debugfs was given.
5725 if test "${enable_debugfs+set}" = set; then :
5726 enableval=$enable_debugfs; if test "$enableval" = "no"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5729 $as_echo "Disabling debugfs support" >&6; }
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5734 $as_echo "Enabling debugfs support" >&6; }
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5739 $as_echo "Enabling debugfs support by default" >&6; }
5745 # Check whether --enable-imager was given.
5746 if test "${enable_imager+set}" = set; then :
5747 enableval=$enable_imager; if test "$enableval" = "no"
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5750 $as_echo "Disabling e2image support" >&6; }
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5755 $as_echo "Enabling e2image support" >&6; }
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5760 $as_echo "Enabling e2image support by default" >&6; }
5766 # Check whether --enable-resizer was given.
5767 if test "${enable_resizer+set}" = set; then :
5768 enableval=$enable_resizer; if test "$enableval" = "no"
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5771 $as_echo "Disabling e2resize support" >&6; }
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5776 $as_echo "Enabling e2resize support" >&6; }
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5781 $as_echo "Enabling e2resize support by default" >&6; }
5787 # Check whether --enable-defrag was given.
5788 if test "${enable_defrag+set}" = set; then :
5789 enableval=$enable_defrag; if test "$enableval" = "no"
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5792 $as_echo "Disabling e4defrag support" >&6; }
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5797 $as_echo "Enabling e4defrag support" >&6; }
5801 if test -z "$WITH_DIET_LIBC"
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5804 $as_echo "Enabling e4defrag support by default" >&6; }
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5808 $as_echo "Disabling e4defrag support by default" >&6; }
5815 # Check whether --enable-fsck was given.
5816 if test "${enable_fsck+set}" = set; then :
5817 enableval=$enable_fsck; if test "$enableval" = "no"
5819 FSCK_PROG='' FSCK_MAN=''
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5821 $as_echo "Not building fsck wrapper" >&6; }
5823 FSCK_PROG=fsck FSCK_MAN=fsck.8
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5825 $as_echo "Building fsck wrapper" >&6; }
5831 FSCK_PROG='' FSCK_MAN=''
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5833 $as_echo "Not building fsck wrapper by default" >&6; }
5836 FSCK_PROG=fsck FSCK_MAN=fsck.8
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5838 $as_echo "Building fsck wrapper by default" >&6; }
5845 # Check whether --enable-e2initrd-helper was given.
5846 if test "${enable_e2initrd_helper+set}" = set; then :
5847 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5849 E2INITRD_PROG='' E2INITRD_MAN=''
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5851 $as_echo "Not building e2initrd helper" >&6; }
5853 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5855 $as_echo "Building e2initrd helper" >&6; }
5859 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5861 $as_echo "Building e2initrd helper by default" >&6; }
5867 # Check whether --enable-tls was given.
5868 if test "${enable_tls+set}" = set; then :
5869 enableval=$enable_tls; if test "$enableval" = "no"
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5873 $as_echo "Disabling thread local support" >&6; }
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5877 $as_echo "Enabling thread local support" >&6; }
5881 if test -n "$WITH_DIET_LIBC"
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5885 $as_echo "Diet libc does not support thread local support" >&6; }
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5889 $as_echo "Try using thread local support by default" >&6; }
5894 if test "$try_tls" = "yes"
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5898 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5899 if ${ac_cv_tls+:} false; then :
5900 $as_echo_n "(cached) " >&6
5903 ax_tls_keywords="__thread __declspec(thread) none"
5904 for ax_tls_keyword in $ax_tls_keywords; do
5905 case $ax_tls_keyword in
5906 none) ac_cv_tls=none ; break ;;
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5913 static $ax_tls_keyword int bar;
5924 if ac_fn_c_try_compile "$LINENO"; then :
5925 ac_cv_tls=$ax_tls_keyword ; break
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937 if test "$ac_cv_tls" != "none"; then
5939 cat >>confdefs.h <<_ACEOF
5940 #define TLS $ac_cv_tls
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5945 $as_echo "$ac_cv_tls" >&6; }
5949 # Check whether --with-pthread was given.
5950 if test "${with_pthread+set}" = set; then :
5951 withval=$with_pthread; if test "$withval" = "no"
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
5955 $as_echo "Disabling pthread support" >&6; }
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
5959 $as_echo "Testing for pthread support" >&6; }
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
5965 $as_echo "Try testing for pthread support by default" >&6; }
5969 if test "$try_pthread" = "yes"
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5972 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5973 if ${ac_cv_path_SED+:} false; then :
5974 $as_echo_n "(cached) " >&6
5976 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5977 for ac_i in 1 2 3 4 5 6 7; do
5978 ac_script="$ac_script$as_nl$ac_script"
5980 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5981 { ac_script=; unset ac_script;}
5982 if test -z "$SED"; then
5983 ac_path_SED_found=false
5984 # Loop through the user's path and test for each of PROGNAME-LIST
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 test -z "$as_dir" && as_dir=.
5990 for ac_prog in sed gsed; do
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5993 as_fn_executable_p "$ac_path_SED" || continue
5994 # Check for GNU ac_path_SED and select it if it is found.
5995 # Check for GNU $ac_path_SED
5996 case `"$ac_path_SED" --version 2>&1` in
5998 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6001 $as_echo_n 0123456789 >"conftest.in"
6004 cat "conftest.in" "conftest.in" >"conftest.tmp"
6005 mv "conftest.tmp" "conftest.in"
6006 cp "conftest.in" "conftest.nl"
6007 $as_echo '' >> "conftest.nl"
6008 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6010 as_fn_arith $ac_count + 1 && ac_count=$as_val
6011 if test $ac_count -gt ${ac_path_SED_max-0}; then
6012 # Best one so far, save it but keep looking for a better one
6013 ac_cv_path_SED="$ac_path_SED"
6014 ac_path_SED_max=$ac_count
6016 # 10*(2^10) chars as input seems more than enough
6017 test $ac_count -gt 10 && break
6019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6022 $ac_path_SED_found && break 3
6027 if test -z "$ac_cv_path_SED"; then
6028 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6036 $as_echo "$ac_cv_path_SED" >&6; }
6037 SED="$ac_cv_path_SED"
6045 ac_cpp='$CPP $CPPFLAGS'
6046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6052 # We used to check for pthread.h first, but this fails if pthread.h
6053 # requires special compiler flags (e.g. on Tru64 or Sequent).
6054 # It gets checked for in the link test anyway.
6056 # First of all, check if the user has set any of the PTHREAD_LIBS,
6057 # etcetera environment variables, and if threads linking works using
6059 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
6060 ax_pthread_save_CC="$CC"
6061 ax_pthread_save_CFLAGS="$CFLAGS"
6062 ax_pthread_save_LIBS="$LIBS"
6063 if test "x$PTHREAD_CC" != "x"; then :
6066 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6067 LIBS="$PTHREAD_LIBS $LIBS"
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
6069 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6073 /* Override any GCC internal prototype to avoid an error.
6074 Use char because int might match the return type of a GCC
6075 builtin and then its argument prototype would still apply. */
6079 char pthread_join ();
6083 return pthread_join ();
6088 if ac_fn_c_try_link "$LINENO"; then :
6091 rm -f core conftest.err conftest.$ac_objext \
6092 conftest$ac_exeext conftest.$ac_ext
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6094 $as_echo "$ax_pthread_ok" >&6; }
6095 if test "x$ax_pthread_ok" = "xno"; then
6099 CC="$ax_pthread_save_CC"
6100 CFLAGS="$ax_pthread_save_CFLAGS"
6101 LIBS="$ax_pthread_save_LIBS"
6104 # We must check for the threads library under a number of different
6105 # names; the ordering is very important because some systems
6106 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6107 # libraries is broken (non-POSIX).
6109 # Create a list of thread flags to try. Items starting with a "-" are
6110 # C compiler flags, and other items are library names, except for "none"
6111 # which indicates that we try without any flags at all, and "pthread-config"
6112 # which is a program returning the flags for the Pth emulation library.
6114 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6116 # The ordering *is* (sometimes) important. Some notes on the
6117 # individual items follow:
6119 # pthreads: AIX (must check this before -lpthread)
6120 # none: in case threads are in libc; should be tried before -Kthread and
6121 # other compiler flags to prevent continual compiler warnings
6122 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6123 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
6124 # (Note: HP C rejects this with "bad form for `-t' option")
6125 # -pthreads: Solaris/gcc (Note: HP C also rejects)
6126 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6127 # doesn't hurt to check since this sometimes defines pthreads and
6128 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
6129 # is present but should not be used directly; and before -mthreads,
6130 # because the compiler interprets this as "-mt" + "-hreads")
6131 # -mthreads: Mingw32/gcc, Lynx/gcc
6132 # pthread: Linux, etcetera
6133 # --thread-safe: KAI C++
6134 # pthread-config: use pthread-config program (for GNU Pth library)
6140 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6141 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6143 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
6148 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
6149 # multi-threading and also sets -lpthread."
6151 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
6156 # IBM z/OS requires a feature-test macro to be defined in order to
6157 # enable POSIX threads at all, so give the user a hint if this is
6158 # not set. (We don't define these ourselves, as they can affect
6159 # other portions of the system API in unpredictable ways.)
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6164 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
6165 AX_PTHREAD_ZOS_MISSING
6169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6170 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
6172 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
6180 # On Solaris (at least, for some versions), libc contains stubbed
6181 # (non-functional) versions of the pthreads routines, so link-based
6182 # tests will erroneously succeed. (N.B.: The stubs are missing
6183 # pthread_cleanup_push, or rather a function called by this macro,
6184 # so we could check for that, but who knows whether they'll stub
6185 # that too in a future libc.) So we'll check first for the
6186 # standard Solaris way of linking pthreads (-mt -lpthread).
6188 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
6192 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
6194 if test "x$GCC" = "xyes"; then :
6195 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
6198 # The presence of a feature test macro requesting re-entrant function
6199 # definitions is, on some systems, a strong hint that pthreads support is
6203 darwin* | hpux* | linux* | osf* | solaris*)
6204 ax_pthread_check_macro="_REENTRANT"
6208 ax_pthread_check_macro="_THREAD_SAFE"
6212 ax_pthread_check_macro="--"
6215 if test "x$ax_pthread_check_macro" = "x--"; then :
6216 ax_pthread_check_cond=0
6218 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
6221 # Are we compiling with Clang?
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
6224 $as_echo_n "checking whether $CC is Clang... " >&6; }
6225 if ${ax_cv_PTHREAD_CLANG+:} false; then :
6226 $as_echo_n "(cached) " >&6
6228 ax_cv_PTHREAD_CLANG=no
6229 # Note that Autoconf sets GCC=yes for Clang as well as GCC
6230 if test "x$GCC" = "xyes"; then
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
6234 # if defined(__clang__) && defined(__llvm__)
6235 AX_PTHREAD_CC_IS_CLANG
6239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6240 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
6241 ax_cv_PTHREAD_CLANG=yes
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
6249 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
6250 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
6252 ax_pthread_clang_warning=no
6254 # Clang needs special handling, because older versions handle the -pthread
6255 # option in a rather... idiosyncratic way
6257 if test "x$ax_pthread_clang" = "xyes"; then
6259 # Clang takes -pthread; it has never supported any other flag
6261 # (Note 1: This will need to be revisited if a system that Clang
6262 # supports has POSIX threads in a separate library. This tends not
6263 # to be the way of modern systems, but it's conceivable.)
6265 # (Note 2: On some systems, notably Darwin, -pthread is not needed
6266 # to get POSIX threads support; the API is always present and
6267 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
6268 # -pthread does define _REENTRANT, and while the Darwin headers
6269 # ignore this macro, third-party headers might not.)
6271 PTHREAD_CFLAGS="-pthread"
6276 # However, older versions of Clang make a point of warning the user
6277 # that, in an invocation where only linking and no compilation is
6278 # taking place, the -pthread option has no effect ("argument unused
6279 # during compilation"). They expect -pthread to be passed in only
6280 # when source code is being compiled.
6282 # Problem is, this is at odds with the way Automake and most other
6283 # C build frameworks function, which is that the same flags used in
6284 # compilation (CFLAGS) are also used in linking. Many systems
6285 # supported by AX_PTHREAD require exactly this for POSIX threads
6286 # support, and in fact it is often not straightforward to specify a
6287 # flag that is used only in the compilation phase and not in
6288 # linking. Such a scenario is extremely rare in practice.
6290 # Even though use of the -pthread flag in linking would only print
6291 # a warning, this can be a nuisance for well-run software projects
6292 # that build with -Werror. So if the active version of Clang has
6293 # this misfeature, we search for an option to squash it.
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
6296 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
6297 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
6298 $as_echo_n "(cached) " >&6
6300 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
6301 # Create an alternate version of $ac_link that compiles and
6302 # links in two steps (.c -> .o, .o -> exe) instead of one
6303 # (.c -> exe), because the warning occurs only in the second
6305 ax_pthread_save_ac_link="$ac_link"
6306 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
6307 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
6308 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
6309 ax_pthread_save_CFLAGS="$CFLAGS"
6310 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
6311 if test "x$ax_pthread_try" = "xunknown"; then :
6314 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
6315 ac_link="$ax_pthread_save_ac_link"
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6318 int main(void){return 0;}
6320 if ac_fn_c_try_link "$LINENO"; then :
6321 ac_link="$ax_pthread_2step_ac_link"
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6324 int main(void){return 0;}
6326 if ac_fn_c_try_link "$LINENO"; then :
6329 rm -f core conftest.err conftest.$ac_objext \
6330 conftest$ac_exeext conftest.$ac_ext
6333 rm -f core conftest.err conftest.$ac_objext \
6334 conftest$ac_exeext conftest.$ac_ext
6336 ac_link="$ax_pthread_save_ac_link"
6337 CFLAGS="$ax_pthread_save_CFLAGS"
6338 if test "x$ax_pthread_try" = "x"; then :
6341 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
6345 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
6347 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
6349 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
6352 fi # $ax_pthread_clang = yes
6354 if test "x$ax_pthread_ok" = "xno"; then
6355 for ax_pthread_try_flag in $ax_pthread_flags; do
6357 case $ax_pthread_try_flag in
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6360 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
6365 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
6366 PTHREAD_CFLAGS="-mt"
6367 PTHREAD_LIBS="-lpthread"
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
6372 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
6373 PTHREAD_CFLAGS="$ax_pthread_try_flag"
6377 # Extract the first word of "pthread-config", so it can be a program name with args.
6378 set dummy pthread-config; 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_prog_ax_pthread_config+:} false; then :
6382 $as_echo_n "(cached) " >&6
6384 if test -n "$ax_pthread_config"; then
6385 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_ax_pthread_config="yes"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6405 ax_pthread_config=$ac_cv_prog_ax_pthread_config
6406 if test -n "$ax_pthread_config"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6408 $as_echo "$ax_pthread_config" >&6; }
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6415 if test "x$ax_pthread_config" = "xno"; then :
6418 PTHREAD_CFLAGS="`pthread-config --cflags`"
6419 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
6424 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
6425 PTHREAD_LIBS="-l$ax_pthread_try_flag"
6429 ax_pthread_save_CFLAGS="$CFLAGS"
6430 ax_pthread_save_LIBS="$LIBS"
6431 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6432 LIBS="$PTHREAD_LIBS $LIBS"
6434 # Check for various functions. We must include pthread.h,
6435 # since some functions may be macros. (On the Sequent, we
6436 # need a special flag -Kthread to make this header compile.)
6437 # We check for pthread_join because it is in -lpthread on IRIX
6438 # while pthread_create is in libc. We check for pthread_attr_init
6439 # due to DEC craziness with -lpthreads. We check for
6440 # pthread_cleanup_push because it is one of the few pthread
6441 # functions on Solaris that doesn't have a non-functional libc stub.
6442 # We try pthread_create on general principles.
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446 #include <pthread.h>
6447 # if $ax_pthread_check_cond
6448 # error "$ax_pthread_check_macro must be defined"
6450 static void routine(void *a) { a = 0; }
6451 static void *start_routine(void *a) { return a; }
6455 pthread_t th; pthread_attr_t attr;
6456 pthread_create(&th, 0, start_routine, 0);
6457 pthread_join(th, 0);
6458 pthread_attr_init(&attr);
6459 pthread_cleanup_push(routine, 0);
6460 pthread_cleanup_pop(0) /* ; */
6465 if ac_fn_c_try_link "$LINENO"; then :
6468 rm -f core conftest.err conftest.$ac_objext \
6469 conftest$ac_exeext conftest.$ac_ext
6471 CFLAGS="$ax_pthread_save_CFLAGS"
6472 LIBS="$ax_pthread_save_LIBS"
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6475 $as_echo "$ax_pthread_ok" >&6; }
6476 if test "x$ax_pthread_ok" = "xyes"; then :
6485 # Various other checks:
6486 if test "x$ax_pthread_ok" = "xyes"; then
6487 ax_pthread_save_CFLAGS="$CFLAGS"
6488 ax_pthread_save_LIBS="$LIBS"
6489 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6490 LIBS="$PTHREAD_LIBS $LIBS"
6492 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6494 $as_echo_n "checking for joinable pthread attribute... " >&6; }
6495 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
6496 $as_echo_n "(cached) " >&6
6498 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
6499 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6502 #include <pthread.h>
6506 int attr = $ax_pthread_attr; return attr /* ; */
6511 if ac_fn_c_try_link "$LINENO"; then :
6512 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
6514 rm -f core conftest.err conftest.$ac_objext \
6515 conftest$ac_exeext conftest.$ac_ext
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
6520 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
6521 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
6522 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
6523 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
6525 cat >>confdefs.h <<_ACEOF
6526 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
6529 ax_pthread_joinable_attr_defined=yes
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
6534 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
6535 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
6536 $as_echo_n "(cached) " >&6
6538 ax_cv_PTHREAD_SPECIAL_FLAGS=no
6541 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
6547 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
6548 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
6549 test "x$ax_pthread_special_flags_added" != "xyes"; then :
6550 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
6551 ax_pthread_special_flags_added=yes
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
6555 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
6556 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
6557 $as_echo_n "(cached) " >&6
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 #include <pthread.h>
6565 int i = PTHREAD_PRIO_INHERIT;
6570 if ac_fn_c_try_link "$LINENO"; then :
6571 ax_cv_PTHREAD_PRIO_INHERIT=yes
6573 ax_cv_PTHREAD_PRIO_INHERIT=no
6575 rm -f core conftest.err conftest.$ac_objext \
6576 conftest$ac_exeext conftest.$ac_ext
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
6580 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
6581 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
6582 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
6584 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
6586 ax_pthread_prio_inherit_defined=yes
6590 CFLAGS="$ax_pthread_save_CFLAGS"
6591 LIBS="$ax_pthread_save_LIBS"
6593 # More AIX lossage: compile with *_r variant
6594 if test "x$GCC" != "xyes"; then
6598 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
6599 #handle absolute path differently from PATH based program lookup
6602 if as_fn_executable_p ${CC}_r; then :
6603 PTHREAD_CC="${CC}_r"
6606 for ac_prog in ${CC}_r
6608 # Extract the first word of "$ac_prog", so it can be a program name with args.
6609 set dummy $ac_prog; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
6613 $as_echo_n "(cached) " >&6
6615 if test -n "$PTHREAD_CC"; then
6616 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_PTHREAD_CC="$ac_prog"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6636 if test -n "$PTHREAD_CC"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
6638 $as_echo "$PTHREAD_CC" >&6; }
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6645 test -n "$PTHREAD_CC" && break
6647 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6658 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6664 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6665 if test "x$ax_pthread_ok" = "xyes"; then
6667 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6675 ac_cpp='$CPP $CPPFLAGS'
6676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6682 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6686 # Check whether --enable-uuidd was given.
6687 if test "${enable_uuidd+set}" = set; then :
6688 enableval=$enable_uuidd; if test "$enableval" = "no"
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
6691 $as_echo "Not building uuidd" >&6; }
6694 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
6698 $as_echo "Building uuidd" >&6; }
6702 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6704 if test -z "$UUID_CMT"
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
6708 $as_echo "Building uuidd by default" >&6; }
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
6712 $as_echo "Disabling uuidd by default" >&6; }
6719 # Check whether --enable-mmp was given.
6720 if test "${enable_mmp+set}" = set; then :
6721 enableval=$enable_mmp; if test "$enableval" = "no"
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6724 $as_echo "Disabling mmp support" >&6; }
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6727 $as_echo "Enabling mmp support" >&6; }
6728 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6734 $as_echo "Enabling mmp support by default" >&6; }
6735 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6741 # Check whether --enable-tdb was given.
6742 if test "${enable_tdb+set}" = set; then :
6743 enableval=$enable_tdb; if test "$enableval" = "no"
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6746 $as_echo "Disabling tdb support" >&6; }
6748 TDB_MAN_COMMENT='.\"'
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6751 $as_echo "Enabling tdb support" >&6; }
6752 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6760 $as_echo "Enabling mmp support by default" >&6; }
6761 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6771 # Check whether --enable-bmap-stats was given.
6772 if test "${enable_bmap_stats+set}" = set; then :
6773 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6776 $as_echo "Disabling bitmap statistics support" >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6779 $as_echo "Enabling bitmap statistics support" >&6; }
6780 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6786 $as_echo "Enabling bitmap statistics support by default" >&6; }
6787 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6793 # Check whether --enable-bmap-stats-ops was given.
6794 if test "${enable_bmap_stats_ops+set}" = set; then :
6795 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6798 $as_echo "Disabling additional bitmap statistics" >&6; }
6800 if test "x${enable_bmap_stats}" = "xno"; then :
6801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6803 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6804 See \`config.log' for more details" "$LINENO" 5; }
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6808 $as_echo "Enabling additional bitmap statistics" >&6; }
6809 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6815 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6819 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6821 GETTEXT_PACKAGE=e2fsprogs
6823 VERSION="$E2FSPROGS_VERSION"
6826 cat >>confdefs.h <<_ACEOF
6827 #define PACKAGE "$PACKAGE"
6831 cat >>confdefs.h <<_ACEOF
6832 #define VERSION "$VERSION"
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6840 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6842 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6843 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6844 $as_echo_n "(cached) " >&6
6846 cat >conftest.make <<\_ACEOF
6849 @echo '@@@%%%=$(MAKE)=@@@%%%'
6851 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6852 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6854 eval ac_cv_prog_make_${ac_make}_set=yes;;
6856 eval ac_cv_prog_make_${ac_make}_set=no;;
6860 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6862 $as_echo "yes" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6867 SET_MAKE="MAKE=${MAKE-make}"
6870 # Find a good install program. We prefer a C program (faster),
6871 # so one script is as good as another. But avoid the broken or
6872 # incompatible versions:
6873 # SysV /etc/install, /usr/sbin/install
6874 # SunOS /usr/etc/install
6875 # IRIX /sbin/install
6877 # AmigaOS /C/install, which installs bootblocks on floppy discs
6878 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6879 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6880 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6881 # OS/2's system install, which has a completely different semantic
6882 # ./install, which can be erroneously created by make from ./install.sh.
6883 # Reject install programs that cannot install multiple files.
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6885 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6886 if test -z "$INSTALL"; then
6887 if ${ac_cv_path_install+:} false; then :
6888 $as_echo_n "(cached) " >&6
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 test -z "$as_dir" && as_dir=.
6895 # Account for people who put trailing slashes in PATH elements.
6896 case $as_dir/ in #((
6897 ./ | .// | /[cC]/* | \
6898 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6899 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6902 # OSF1 and SCO ODT 3.0 have their own names for install.
6903 # Don't use installbsd from OSF since it installs stuff as root
6905 for ac_prog in ginstall scoinst install; do
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6908 if test $ac_prog = install &&
6909 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6910 # AIX install. It has an incompatible calling convention.
6912 elif test $ac_prog = install &&
6913 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6914 # program-specific install script used by HP pwplus--don't use.
6917 rm -rf conftest.one conftest.two conftest.dir
6918 echo one > conftest.one
6919 echo two > conftest.two
6921 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6922 test -s conftest.one && test -s conftest.two &&
6923 test -s conftest.dir/conftest.one &&
6924 test -s conftest.dir/conftest.two
6926 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6939 rm -rf conftest.one conftest.two conftest.dir
6942 if test "${ac_cv_path_install+set}" = set; then
6943 INSTALL=$ac_cv_path_install
6945 # As a last resort, use the slow shell script. Don't cache a
6946 # value for INSTALL within a source directory, because that will
6947 # break other packages using the cache if that directory is
6948 # removed, or if the value is a relative name.
6949 INSTALL=$ac_install_sh
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6953 $as_echo "$INSTALL" >&6; }
6955 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6956 # It thinks the first close brace ends the variable substitution.
6957 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6959 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6961 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6964 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6965 if test -z "$MKDIR_P"; then
6966 if ${ac_cv_path_mkdir+:} false; then :
6967 $as_echo_n "(cached) " >&6
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6973 test -z "$as_dir" && as_dir=.
6974 for ac_prog in mkdir gmkdir; do
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6977 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6978 'mkdir (GNU coreutils) '* | \
6979 'mkdir (coreutils) '* | \
6980 'mkdir (fileutils) '4.1*)
6981 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6991 test -d ./--version && rmdir ./--version
6992 if test "${ac_cv_path_mkdir+set}" = set; then
6993 MKDIR_P="$ac_cv_path_mkdir -p"
6995 # As a last resort, use the slow shell script. Don't cache a
6996 # value for MKDIR_P within a source directory, because that will
6997 # break other packages using the cache if that directory is
6998 # removed, or if the value is a relative name.
6999 MKDIR_P="$ac_install_sh -d"
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7003 $as_echo "$MKDIR_P" >&6; }
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7007 $as_echo_n "checking whether NLS is requested... " >&6; }
7008 # Check whether --enable-nls was given.
7009 if test "${enable_nls+set}" = set; then :
7010 enableval=$enable_nls; USE_NLS=$enableval
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7016 $as_echo "$USE_NLS" >&6; }
7021 GETTEXT_MACRO_VERSION=0.20
7026 # Prepare PATH_SEPARATOR.
7027 # The user is always right.
7028 if test "${PATH_SEPARATOR+set}" != set; then
7029 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7030 # contains only /bin. Note that ksh looks also at the FPATH variable,
7031 # so we have to set that as well for the test.
7033 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7034 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7035 || PATH_SEPARATOR=';'
7039 # Find out how to test for executable files. Don't use a zero-byte file,
7040 # as systems may use methods other than mode bits to determine executability.
7041 cat >conf$$.file <<_ASEOF
7045 chmod +x conf$$.file
7046 if test -x conf$$.file >/dev/null 2>&1; then
7047 ac_executable_p="test -x"
7049 ac_executable_p="test -f"
7053 # Extract the first word of "msgfmt", so it can be a program name with args.
7054 set dummy msgfmt; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 $as_echo_n "checking for $ac_word... " >&6; }
7057 if ${ac_cv_path_MSGFMT+:} false; then :
7058 $as_echo_n "(cached) " >&6
7062 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7065 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7066 for ac_dir in $PATH; do
7068 test -z "$ac_dir" && ac_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7071 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7072 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7073 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7074 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7081 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7085 MSGFMT="$ac_cv_path_MSGFMT"
7086 if test "$MSGFMT" != ":"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7088 $as_echo "$MSGFMT" >&6; }
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7094 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7095 set dummy gmsgfmt; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if ${ac_cv_path_GMSGFMT+:} false; then :
7099 $as_echo_n "(cached) " >&6
7103 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7113 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7125 GMSGFMT=$ac_cv_path_GMSGFMT
7126 if test -n "$GMSGFMT"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7128 $as_echo "$GMSGFMT" >&6; }
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7136 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7137 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7138 *) GMSGFMT_015=$GMSGFMT ;;
7143 # Prepare PATH_SEPARATOR.
7144 # The user is always right.
7145 if test "${PATH_SEPARATOR+set}" != set; then
7146 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7147 # contains only /bin. Note that ksh looks also at the FPATH variable,
7148 # so we have to set that as well for the test.
7150 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7151 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7152 || PATH_SEPARATOR=';'
7156 # Find out how to test for executable files. Don't use a zero-byte file,
7157 # as systems may use methods other than mode bits to determine executability.
7158 cat >conf$$.file <<_ASEOF
7162 chmod +x conf$$.file
7163 if test -x conf$$.file >/dev/null 2>&1; then
7164 ac_executable_p="test -x"
7166 ac_executable_p="test -f"
7170 # Extract the first word of "xgettext", so it can be a program name with args.
7171 set dummy xgettext; ac_word=$2
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if ${ac_cv_path_XGETTEXT+:} false; then :
7175 $as_echo_n "(cached) " >&6
7179 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7182 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7183 for ac_dir in $PATH; do
7185 test -z "$ac_dir" && ac_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7188 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7189 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7190 (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
7191 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7198 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7202 XGETTEXT="$ac_cv_path_XGETTEXT"
7203 if test "$XGETTEXT" != ":"; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7205 $as_echo "$XGETTEXT" >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7213 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7214 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7215 *) XGETTEXT_015=$XGETTEXT ;;
7220 # Prepare PATH_SEPARATOR.
7221 # The user is always right.
7222 if test "${PATH_SEPARATOR+set}" != set; then
7223 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7224 # contains only /bin. Note that ksh looks also at the FPATH variable,
7225 # so we have to set that as well for the test.
7227 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7228 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7229 || PATH_SEPARATOR=';'
7233 # Find out how to test for executable files. Don't use a zero-byte file,
7234 # as systems may use methods other than mode bits to determine executability.
7235 cat >conf$$.file <<_ASEOF
7239 chmod +x conf$$.file
7240 if test -x conf$$.file >/dev/null 2>&1; then
7241 ac_executable_p="test -x"
7243 ac_executable_p="test -f"
7247 # Extract the first word of "msgmerge", so it can be a program name with args.
7248 set dummy msgmerge; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_path_MSGMERGE+:} false; then :
7252 $as_echo_n "(cached) " >&6
7256 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7259 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7260 for ac_dir in $PATH; do
7262 test -z "$ac_dir" && ac_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7265 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7266 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7267 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7274 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7278 MSGMERGE="$ac_cv_path_MSGMERGE"
7279 if test "$MSGMERGE" != ":"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7281 $as_echo "$MSGMERGE" >&6; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7288 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
7289 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
7291 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
7292 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
7294 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
7299 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7302 ac_config_commands="$ac_config_commands po-directories"
7306 if test "X$prefix" = "XNONE"; then
7307 acl_final_prefix="$ac_default_prefix"
7309 acl_final_prefix="$prefix"
7311 if test "X$exec_prefix" = "XNONE"; then
7312 acl_final_exec_prefix='${prefix}'
7314 acl_final_exec_prefix="$exec_prefix"
7316 acl_save_prefix="$prefix"
7317 prefix="$acl_final_prefix"
7318 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7319 prefix="$acl_save_prefix"
7323 # Check whether --with-gnu-ld was given.
7324 if test "${with_gnu_ld+set}" = set; then :
7325 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7330 # Prepare PATH_SEPARATOR.
7331 # The user is always right.
7332 if test "${PATH_SEPARATOR+set}" != set; then
7333 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7334 # contains only /bin. Note that ksh looks also at the FPATH variable,
7335 # so we have to set that as well for the test.
7337 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7338 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7339 || PATH_SEPARATOR=';'
7343 if test -n "$LD"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
7345 $as_echo_n "checking for ld... " >&6; }
7346 elif test "$GCC" = yes; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7348 $as_echo_n "checking for ld used by $CC... " >&6; }
7349 elif test "$with_gnu_ld" = yes; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7351 $as_echo_n "checking for GNU ld... " >&6; }
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7354 $as_echo_n "checking for non-GNU ld... " >&6; }
7356 if test -n "$LD"; then
7357 # Let the user override the test with a path.
7360 if ${acl_cv_path_LD+:} false; then :
7361 $as_echo_n "(cached) " >&6
7364 acl_cv_path_LD= # Final result of this test
7365 ac_prog=ld # Program to search in $PATH
7366 if test "$GCC" = yes; then
7367 # Check if gcc -print-prog-name=ld gives a path.
7370 # gcc leaves a trailing carriage return which upsets mingw
7371 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7373 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
7376 # Accept absolute paths.
7378 re_direlt='/[^/][^/]*/\.\./'
7379 # Canonicalize the pathname of ld
7380 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
7381 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
7382 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
7384 # Got the pathname. No search in PATH is needed.
7385 acl_cv_path_LD="$acl_output"
7389 # If it fails, then pretend we aren't using GCC.
7392 # If it is relative, then search for the first ld in PATH.
7397 if test -n "$ac_prog"; then
7398 # Search for $ac_prog in $PATH.
7399 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7400 for ac_dir in $PATH; do
7402 test -z "$ac_dir" && ac_dir=.
7403 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7404 acl_cv_path_LD="$ac_dir/$ac_prog"
7405 # Check to see if the program is GNU ld. I'd rather use --version,
7406 # but apparently some variants of GNU ld only accept -v.
7407 # Break only if it was the GNU/non-GNU ld that we prefer.
7408 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7409 *GNU* | *'with BFD'*)
7410 test "$with_gnu_ld" != no && break
7413 test "$with_gnu_ld" != yes && break
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7424 #if defined __powerpc64__ || defined _ARCH_PPC64
7431 if ac_fn_c_try_compile "$LINENO"; then :
7432 # The compiler produces 64-bit code. Add option '-b64' so that the
7433 # linker groks 64-bit object files.
7434 case "$acl_cv_path_LD " in
7436 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
7440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7445 #if defined __sparcv9 || defined __arch64__
7452 if ac_fn_c_try_compile "$LINENO"; then :
7455 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
7456 # so that the linker groks 32-bit object files.
7457 case "$acl_cv_path_LD " in
7458 *" -m elf32_sparc "*) ;;
7459 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
7463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 LD="$acl_cv_path_LD"
7471 if test -n "$LD"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7473 $as_echo "$LD" >&6; }
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7477 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7480 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7481 if ${acl_cv_prog_gnu_ld+:} false; then :
7482 $as_echo_n "(cached) " >&6
7484 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7485 case `$LD -v 2>&1 </dev/null` in
7486 *GNU* | *'with BFD'*)
7487 acl_cv_prog_gnu_ld=yes
7490 acl_cv_prog_gnu_ld=no
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7495 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7496 with_gnu_ld=$acl_cv_prog_gnu_ld
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7502 $as_echo_n "checking for shared library run path origin... " >&6; }
7503 if ${acl_cv_rpath+:} false; then :
7504 $as_echo_n "(cached) " >&6
7507 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7508 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7515 $as_echo "$acl_cv_rpath" >&6; }
7517 acl_libext="$acl_cv_libext"
7518 acl_shlibext="$acl_cv_shlibext"
7519 acl_libname_spec="$acl_cv_libname_spec"
7520 acl_library_names_spec="$acl_cv_library_names_spec"
7521 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7522 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7523 acl_hardcode_direct="$acl_cv_hardcode_direct"
7524 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7525 # Check whether --enable-rpath was given.
7526 if test "${enable_rpath+set}" = set; then :
7527 enableval=$enable_rpath; :
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
7536 $as_echo_n "checking 32-bit host C ABI... " >&6; }
7537 if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
7538 $as_echo_n "(cached) " >&6
7540 if test -n "$gl_cv_host_cpu_c_abi"; then
7541 case "$gl_cv_host_cpu_c_abi" in
7542 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
7543 gl_cv_host_cpu_c_abi_32bit=yes ;;
7544 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
7545 gl_cv_host_cpu_c_abi_32bit=no ;;
7547 gl_cv_host_cpu_c_abi_32bit=unknown ;;
7552 # CPUs that only support a 32-bit ABI.
7561 | microblaze | microblazeel \
7562 | nds32 | nds32le | nds32be \
7563 | nios2 | nios2eb | nios2el \
7566 | sh | sh1234 | sh1234elb \
7569 gl_cv_host_cpu_c_abi_32bit=yes
7572 # CPUs that only support a 64-bit ABI.
7573 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
7575 gl_cv_host_cpu_c_abi_32bit=no
7579 gl_cv_host_cpu_c_abi_32bit=yes
7583 # On x86_64 systems, the C compiler may be generating code in one of
7585 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
7586 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
7587 # with native Windows (mingw, MSVC).
7588 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
7589 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7592 #if (defined __x86_64__ || defined __amd64__ \
7593 || defined _M_X64 || defined _M_AMD64) \
7594 && !(defined __ILP32__ || defined _ILP32)
7601 if ac_fn_c_try_compile "$LINENO"; then :
7602 gl_cv_host_cpu_c_abi_32bit=no
7604 gl_cv_host_cpu_c_abi_32bit=yes
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 # Assume arm with EABI.
7611 # On arm64 systems, the C compiler may be generating code in one of
7613 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
7614 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
7615 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7618 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
7625 if ac_fn_c_try_compile "$LINENO"; then :
7626 gl_cv_host_cpu_c_abi_32bit=no
7628 gl_cv_host_cpu_c_abi_32bit=yes
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7633 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
7634 # On hppa, the C compiler may be generating 32-bit code or 64-bit
7635 # code. In the latter case, it defines _LP64 and __LP64__.
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7645 if ac_fn_c_try_compile "$LINENO"; then :
7646 gl_cv_host_cpu_c_abi_32bit=no
7648 gl_cv_host_cpu_c_abi_32bit=yes
7650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
7655 # 32-bit code. In the latter case, it defines _ILP32.
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7665 if ac_fn_c_try_compile "$LINENO"; then :
7666 gl_cv_host_cpu_c_abi_32bit=yes
7668 gl_cv_host_cpu_c_abi_32bit=no
7670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7678 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
7685 if ac_fn_c_try_compile "$LINENO"; then :
7686 gl_cv_host_cpu_c_abi_32bit=no
7688 gl_cv_host_cpu_c_abi_32bit=yes
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
7695 # No need to distinguish them here; the caller may distinguish
7696 # them based on the OS.
7697 # On powerpc64 systems, the C compiler may still be generating
7698 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
7699 # be generating 64-bit code.
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7702 #if defined __powerpc64__ || defined _ARCH_PPC64
7709 if ac_fn_c_try_compile "$LINENO"; then :
7710 gl_cv_host_cpu_c_abi_32bit=no
7712 gl_cv_host_cpu_c_abi_32bit=yes
7714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 gl_cv_host_cpu_c_abi_32bit=yes
7722 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
7723 # Size of 'long' and 'void *':
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7726 #if defined __LP64__
7733 if ac_fn_c_try_compile "$LINENO"; then :
7734 gl_cv_host_cpu_c_abi_32bit=no
7736 gl_cv_host_cpu_c_abi_32bit=yes
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 # On s390x, the C compiler may be generating 64-bit (= s390x) code
7743 # or 31-bit (= s390) code.
7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745 /* end confdefs.h. */
7746 #if defined __LP64__ || defined __s390x__
7753 if ac_fn_c_try_compile "$LINENO"; then :
7754 gl_cv_host_cpu_c_abi_32bit=no
7756 gl_cv_host_cpu_c_abi_32bit=yes
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
7763 # C compiler still generates 32-bit code.
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7766 #if defined __sparcv9 || defined __arch64__
7773 if ac_fn_c_try_compile "$LINENO"; then :
7774 gl_cv_host_cpu_c_abi_32bit=no
7776 gl_cv_host_cpu_c_abi_32bit=yes
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782 gl_cv_host_cpu_c_abi_32bit=unknown
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
7789 $as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
7791 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
7798 $as_echo_n "checking for ELF binary format... " >&6; }
7799 if ${gl_cv_elf+:} false; then :
7800 $as_echo_n "(cached) " >&6
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7805 Extensible Linking Format
7809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7810 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
7820 $as_echo "$gl_cv_elf" >&6; }
7821 if test $gl_cv_elf; then
7822 # Extract the ELF class of a file (5th byte) in decimal.
7823 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
7824 if od -A x < /dev/null >/dev/null 2>/dev/null; then
7828 od -A n -t d1 -j 4 -N 1
7834 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
7838 case $HOST_CPU_C_ABI_32BIT in
7841 acl_is_expected_elfclass ()
7843 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
7848 acl_is_expected_elfclass ()
7850 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
7855 acl_is_expected_elfclass ()
7862 acl_is_expected_elfclass ()
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
7869 $as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
7870 if ${acl_cv_libdirstems+:} false; then :
7871 $as_echo_n "(cached) " >&6
7878 if test $HOST_CPU_C_ABI_32BIT = no; then
7879 acl_libdirstem2=lib/64
7881 sparc*) acl_libdirstem3=lib/sparcv9 ;;
7882 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
7887 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
7888 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7889 if test $HOST_CPU_C_ABI_32BIT != no; then
7890 # 32-bit or unknown ABI.
7891 if test -d /usr/lib32; then
7892 acl_libdirstem2=lib32
7895 if test $HOST_CPU_C_ABI_32BIT != yes; then
7896 # 64-bit or unknown ABI.
7897 if test -d /usr/lib64; then
7898 acl_libdirstem3=lib64
7901 if test -n "$searchpath"; then
7902 acl_save_IFS="${IFS= }"; IFS=":"
7903 for searchdir in $searchpath; do
7904 if test -d "$searchdir"; then
7905 case "$searchdir" in
7906 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
7907 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
7909 # Better ignore directories of this form. They are misleading.
7911 *) searchdir=`cd "$searchdir" && pwd`
7912 case "$searchdir" in
7913 */lib32 ) acl_libdirstem2=lib32 ;;
7914 */lib64 ) acl_libdirstem3=lib64 ;;
7920 if test $HOST_CPU_C_ABI_32BIT = yes; then
7924 if test $HOST_CPU_C_ABI_32BIT = no; then
7931 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7932 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
7933 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
7937 $as_echo "$acl_cv_libdirstems" >&6; }
7938 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
7939 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
7940 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
7954 acl_save_prefix="$prefix"
7955 prefix="$acl_final_prefix"
7956 acl_save_exec_prefix="$exec_prefix"
7957 exec_prefix="$acl_final_exec_prefix"
7959 eval additional_includedir=\"$includedir\"
7960 eval additional_libdir=\"$libdir\"
7961 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7962 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7964 exec_prefix="$acl_save_exec_prefix"
7965 prefix="$acl_save_prefix"
7968 # Check whether --with-libiconv-prefix was given.
7969 if test "${with_libiconv_prefix+set}" = set; then :
7970 withval=$with_libiconv_prefix;
7971 if test "X$withval" = "Xno"; then
7974 if test "X$withval" = "X"; then
7976 acl_save_prefix="$prefix"
7977 prefix="$acl_final_prefix"
7978 acl_save_exec_prefix="$exec_prefix"
7979 exec_prefix="$acl_final_exec_prefix"
7981 eval additional_includedir=\"$includedir\"
7982 eval additional_libdir=\"$libdir\"
7983 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7984 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7986 exec_prefix="$acl_save_exec_prefix"
7987 prefix="$acl_save_prefix"
7990 additional_includedir="$withval/include"
7991 additional_libdir="$withval/$acl_libdirstem"
7992 additional_libdir2="$withval/$acl_libdirstem2"
7993 additional_libdir3="$withval/$acl_libdirstem3"
7999 if test "X$additional_libdir2" = "X$additional_libdir"; then
8002 if test "X$additional_libdir3" = "X$additional_libdir"; then
8012 names_already_handled=
8013 names_next_round='iconv '
8014 while test -n "$names_next_round"; do
8015 names_this_round="$names_next_round"
8017 for name in $names_this_round; do
8019 for n in $names_already_handled; do
8020 if test "$n" = "$name"; then
8025 if test -z "$already_handled"; then
8026 names_already_handled="$names_already_handled $name"
8027 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8028 eval value=\"\$HAVE_LIB$uppername\"
8029 if test -n "$value"; then
8030 if test "$value" = yes; then
8031 eval value=\"\$LIB$uppername\"
8032 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8033 eval value=\"\$LTLIB$uppername\"
8034 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8043 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8044 if test -n "$acl_shlibext"; then
8045 shrext=".$acl_shlibext" # typically: shrext=.so
8049 if test $use_additional = yes; then
8050 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8051 if test "X$found_dir" = "X"; then
8052 eval dir=\$$additional_libdir_variable
8053 if test -n "$dir"; then
8054 if test -n "$acl_shlibext"; then
8055 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8057 found_so="$dir/$libname$shrext"
8059 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8060 ver=`(cd "$dir" && \
8061 for f in "$libname$shrext".*; do echo "$f"; done \
8062 | sed -e "s,^$libname$shrext\\\\.,," \
8063 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8064 | sed 1q ) 2>/dev/null`
8065 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8067 found_so="$dir/$libname$shrext.$ver"
8070 eval library_names=\"$acl_library_names_spec\"
8071 for f in $library_names; do
8072 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8081 if test "X$found_dir" = "X"; then
8082 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8084 found_a="$dir/$libname.$acl_libext"
8087 if test "X$found_dir" != "X"; then
8088 if test -f "$dir/$libname.la"; then
8089 found_la="$dir/$libname.la"
8096 if test "X$found_dir" = "X"; then
8097 for x in $LDFLAGS $LTLIBICONV; do
8099 acl_save_prefix="$prefix"
8100 prefix="$acl_final_prefix"
8101 acl_save_exec_prefix="$exec_prefix"
8102 exec_prefix="$acl_final_exec_prefix"
8104 exec_prefix="$acl_save_exec_prefix"
8105 prefix="$acl_save_prefix"
8109 dir=`echo "X$x" | sed -e 's/^X-L//'`
8110 if test -n "$acl_shlibext"; then
8111 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8113 found_so="$dir/$libname$shrext"
8115 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8116 ver=`(cd "$dir" && \
8117 for f in "$libname$shrext".*; do echo "$f"; done \
8118 | sed -e "s,^$libname$shrext\\\\.,," \
8119 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8120 | sed 1q ) 2>/dev/null`
8121 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8123 found_so="$dir/$libname$shrext.$ver"
8126 eval library_names=\"$acl_library_names_spec\"
8127 for f in $library_names; do
8128 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8137 if test "X$found_dir" = "X"; then
8138 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8140 found_a="$dir/$libname.$acl_libext"
8143 if test "X$found_dir" != "X"; then
8144 if test -f "$dir/$libname.la"; then
8145 found_la="$dir/$libname.la"
8150 if test "X$found_dir" != "X"; then
8155 if test "X$found_dir" != "X"; then
8156 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8157 if test "X$found_so" != "X"; then
8158 if test "$enable_rpath" = no \
8159 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8160 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
8161 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
8162 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8165 for x in $ltrpathdirs; do
8166 if test "X$x" = "X$found_dir"; then
8171 if test -z "$haveit"; then
8172 ltrpathdirs="$ltrpathdirs $found_dir"
8174 if test "$acl_hardcode_direct" = yes; then
8175 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8177 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8178 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8180 for x in $rpathdirs; do
8181 if test "X$x" = "X$found_dir"; then
8186 if test -z "$haveit"; then
8187 rpathdirs="$rpathdirs $found_dir"
8191 for x in $LDFLAGS $LIBICONV; do
8193 acl_save_prefix="$prefix"
8194 prefix="$acl_final_prefix"
8195 acl_save_exec_prefix="$exec_prefix"
8196 exec_prefix="$acl_final_exec_prefix"
8198 exec_prefix="$acl_save_exec_prefix"
8199 prefix="$acl_save_prefix"
8201 if test "X$x" = "X-L$found_dir"; then
8206 if test -z "$haveit"; then
8207 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8209 if test "$acl_hardcode_minus_L" != no; then
8210 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8212 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8218 if test "X$found_a" != "X"; then
8219 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8221 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8224 additional_includedir=
8225 case "$found_dir" in
8226 */$acl_libdirstem | */$acl_libdirstem/)
8227 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8228 if test "$name" = 'iconv'; then
8229 LIBICONV_PREFIX="$basedir"
8231 additional_includedir="$basedir/include"
8233 */$acl_libdirstem2 | */$acl_libdirstem2/)
8234 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8235 if test "$name" = 'iconv'; then
8236 LIBICONV_PREFIX="$basedir"
8238 additional_includedir="$basedir/include"
8240 */$acl_libdirstem3 | */$acl_libdirstem3/)
8241 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
8242 if test "$name" = 'iconv'; then
8243 LIBICONV_PREFIX="$basedir"
8245 additional_includedir="$basedir/include"
8248 if test "X$additional_includedir" != "X"; then
8249 if test "X$additional_includedir" != "X/usr/include"; then
8251 if test "X$additional_includedir" = "X/usr/local/include"; then
8252 if test -n "$GCC"; then
8254 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8258 if test -z "$haveit"; then
8259 for x in $CPPFLAGS $INCICONV; do
8261 acl_save_prefix="$prefix"
8262 prefix="$acl_final_prefix"
8263 acl_save_exec_prefix="$exec_prefix"
8264 exec_prefix="$acl_final_exec_prefix"
8266 exec_prefix="$acl_save_exec_prefix"
8267 prefix="$acl_save_prefix"
8269 if test "X$x" = "X-I$additional_includedir"; then
8274 if test -z "$haveit"; then
8275 if test -d "$additional_includedir"; then
8276 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8282 if test -n "$found_la"; then
8283 save_libdir="$libdir"
8285 */* | *\\*) . "$found_la" ;;
8286 *) . "./$found_la" ;;
8288 libdir="$save_libdir"
8289 for dep in $dependency_libs; do
8292 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8293 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
8294 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
8295 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
8297 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
8298 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
8299 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
8300 if test -n "$GCC"; then
8302 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8306 if test -z "$haveit"; then
8308 for x in $LDFLAGS $LIBICONV; do
8310 acl_save_prefix="$prefix"
8311 prefix="$acl_final_prefix"
8312 acl_save_exec_prefix="$exec_prefix"
8313 exec_prefix="$acl_final_exec_prefix"
8315 exec_prefix="$acl_save_exec_prefix"
8316 prefix="$acl_save_prefix"
8318 if test "X$x" = "X-L$dependency_libdir"; then
8323 if test -z "$haveit"; then
8324 if test -d "$dependency_libdir"; then
8325 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
8329 for x in $LDFLAGS $LTLIBICONV; do
8331 acl_save_prefix="$prefix"
8332 prefix="$acl_final_prefix"
8333 acl_save_exec_prefix="$exec_prefix"
8334 exec_prefix="$acl_final_exec_prefix"
8336 exec_prefix="$acl_save_exec_prefix"
8337 prefix="$acl_save_prefix"
8339 if test "X$x" = "X-L$dependency_libdir"; then
8344 if test -z "$haveit"; then
8345 if test -d "$dependency_libdir"; then
8346 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
8353 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8354 if test "$enable_rpath" != no; then
8356 for x in $rpathdirs; do
8357 if test "X$x" = "X$dir"; then
8362 if test -z "$haveit"; then
8363 rpathdirs="$rpathdirs $dir"
8366 for x in $ltrpathdirs; do
8367 if test "X$x" = "X$dir"; then
8372 if test -z "$haveit"; then
8373 ltrpathdirs="$ltrpathdirs $dir"
8378 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8381 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8384 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8385 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8391 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8392 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8398 if test "X$rpathdirs" != "X"; then
8399 if test -n "$acl_hardcode_libdir_separator"; then
8401 for found_dir in $rpathdirs; do
8402 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8404 acl_save_libdir="$libdir"
8406 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8407 libdir="$acl_save_libdir"
8408 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8410 for found_dir in $rpathdirs; do
8411 acl_save_libdir="$libdir"
8413 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8414 libdir="$acl_save_libdir"
8415 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8419 if test "X$ltrpathdirs" != "X"; then
8420 for found_dir in $ltrpathdirs; do
8421 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8454 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8455 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8456 $as_echo_n "(cached) " >&6
8458 gt_save_LIBS="$LIBS"
8459 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 #include <CoreFoundation/CFPreferences.h>
8466 CFPreferencesCopyAppValue(NULL, NULL)
8471 if ac_fn_c_try_link "$LINENO"; then :
8472 gt_cv_func_CFPreferencesCopyAppValue=yes
8474 gt_cv_func_CFPreferencesCopyAppValue=no
8476 rm -f core conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8478 LIBS="$gt_save_LIBS"
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8481 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8482 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8484 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
8488 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
8489 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
8490 $as_echo_n "(cached) " >&6
8492 gt_save_LIBS="$LIBS"
8493 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 #include <CoreFoundation/CFLocale.h>
8500 CFLocaleCopyPreferredLanguages();
8505 if ac_fn_c_try_link "$LINENO"; then :
8506 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
8508 gt_cv_func_CFLocaleCopyPreferredLanguages=no
8510 rm -f core conftest.err conftest.$ac_objext \
8511 conftest$ac_exeext conftest.$ac_ext
8512 LIBS="$gt_save_LIBS"
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
8515 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
8516 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
8518 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
8522 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
8523 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
8524 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8536 case " $gt_needs " in
8537 *" need-formatstring-macros "*) gt_api_version=3 ;;
8538 *" need-ngettext "*) gt_api_version=2 ;;
8539 *) gt_api_version=1 ;;
8541 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8542 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8544 if test "$USE_NLS" = "yes"; then
8545 gt_use_preinstalled_gnugettext=no
8548 if test $gt_api_version -ge 3; then
8549 gt_revision_test_code='
8550 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8551 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8553 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8556 gt_revision_test_code=
8558 if test $gt_api_version -ge 2; then
8559 gt_expression_test_code=' + * ngettext ("", "", 0)'
8561 gt_expression_test_code=
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8565 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8566 if eval \${$gt_func_gnugettext_libc+:} false; then :
8567 $as_echo_n "(cached) " >&6
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8572 #include <libintl.h>
8573 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8574 extern int _nl_msg_cat_cntr;
8575 extern int *_nl_domain_bindings;
8576 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
8578 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8580 $gt_revision_test_code
8586 bindtextdomain ("", "");
8587 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8593 if ac_fn_c_try_link "$LINENO"; then :
8594 eval "$gt_func_gnugettext_libc=yes"
8596 eval "$gt_func_gnugettext_libc=no"
8598 rm -f core conftest.err conftest.$ac_objext \
8599 conftest$ac_exeext conftest.$ac_ext
8601 eval ac_res=\$$gt_func_gnugettext_libc
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8603 $as_echo "$ac_res" >&6; }
8605 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8611 am_save_CPPFLAGS="$CPPFLAGS"
8613 for element in $INCICONV; do
8615 for x in $CPPFLAGS; do
8617 acl_save_prefix="$prefix"
8618 prefix="$acl_final_prefix"
8619 acl_save_exec_prefix="$exec_prefix"
8620 exec_prefix="$acl_final_exec_prefix"
8622 exec_prefix="$acl_save_exec_prefix"
8623 prefix="$acl_save_prefix"
8625 if test "X$x" = "X$element"; then
8630 if test -z "$haveit"; then
8631 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8637 $as_echo_n "checking for iconv... " >&6; }
8638 if ${am_cv_func_iconv+:} false; then :
8639 $as_echo_n "(cached) " >&6
8642 am_cv_func_iconv="no, consider installing GNU libiconv"
8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h. */
8653 iconv_t cd = iconv_open("","");
8654 iconv(cd,NULL,NULL,NULL,NULL);
8660 if ac_fn_c_try_link "$LINENO"; then :
8661 am_cv_func_iconv=yes
8663 rm -f core conftest.err conftest.$ac_objext \
8664 conftest$ac_exeext conftest.$ac_ext
8665 if test "$am_cv_func_iconv" != yes; then
8666 am_save_LIBS="$LIBS"
8667 LIBS="$LIBS $LIBICONV"
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8677 iconv_t cd = iconv_open("","");
8678 iconv(cd,NULL,NULL,NULL,NULL);
8684 if ac_fn_c_try_link "$LINENO"; then :
8686 am_cv_func_iconv=yes
8688 rm -f core conftest.err conftest.$ac_objext \
8689 conftest$ac_exeext conftest.$ac_ext
8690 LIBS="$am_save_LIBS"
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8695 $as_echo "$am_cv_func_iconv" >&6; }
8696 if test "$am_cv_func_iconv" = yes; then
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8698 $as_echo_n "checking for working iconv... " >&6; }
8699 if ${am_cv_func_iconv_works+:} false; then :
8700 $as_echo_n "(cached) " >&6
8703 am_save_LIBS="$LIBS"
8704 if test $am_cv_lib_iconv = yes; then
8705 LIBS="$LIBS $LIBICONV"
8707 am_cv_func_iconv_works=no
8708 for ac_iconv_const in '' 'const'; do
8709 if test "$cross_compiling" = yes; then :
8711 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8712 *) am_cv_func_iconv_works="guessing yes" ;;
8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8722 # define ICONV_CONST $ac_iconv_const
8729 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8732 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8733 if (cd_utf8_to_88591 != (iconv_t)(-1))
8735 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8737 ICONV_CONST char *inptr = input;
8738 size_t inbytesleft = strlen (input);
8740 size_t outbytesleft = sizeof (buf);
8741 size_t res = iconv (cd_utf8_to_88591,
8742 &inptr, &inbytesleft,
8743 &outptr, &outbytesleft);
8746 iconv_close (cd_utf8_to_88591);
8749 /* Test against Solaris 10 bug: Failures are not distinguishable from
8750 successful returns. */
8752 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8753 if (cd_ascii_to_88591 != (iconv_t)(-1))
8755 static ICONV_CONST char input[] = "\263";
8757 ICONV_CONST char *inptr = input;
8758 size_t inbytesleft = strlen (input);
8760 size_t outbytesleft = sizeof (buf);
8761 size_t res = iconv (cd_ascii_to_88591,
8762 &inptr, &inbytesleft,
8763 &outptr, &outbytesleft);
8766 iconv_close (cd_ascii_to_88591);
8769 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8771 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8772 if (cd_88591_to_utf8 != (iconv_t)(-1))
8774 static ICONV_CONST char input[] = "\304";
8775 static char buf[2] = { (char)0xDE, (char)0xAD };
8776 ICONV_CONST char *inptr = input;
8777 size_t inbytesleft = 1;
8779 size_t outbytesleft = 1;
8780 size_t res = iconv (cd_88591_to_utf8,
8781 &inptr, &inbytesleft,
8782 &outptr, &outbytesleft);
8783 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8785 iconv_close (cd_88591_to_utf8);
8788 #if 0 /* This bug could be worked around by the caller. */
8789 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8791 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8792 if (cd_88591_to_utf8 != (iconv_t)(-1))
8794 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8796 ICONV_CONST char *inptr = input;
8797 size_t inbytesleft = strlen (input);
8799 size_t outbytesleft = sizeof (buf);
8800 size_t res = iconv (cd_88591_to_utf8,
8801 &inptr, &inbytesleft,
8802 &outptr, &outbytesleft);
8805 iconv_close (cd_88591_to_utf8);
8809 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8812 /* Try standardized names. */
8813 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8814 /* Try IRIX, OSF/1 names. */
8815 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8816 /* Try AIX names. */
8817 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8818 /* Try HP-UX names. */
8819 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8820 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8821 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8823 if (cd1 != (iconv_t)(-1))
8825 if (cd2 != (iconv_t)(-1))
8827 if (cd3 != (iconv_t)(-1))
8829 if (cd4 != (iconv_t)(-1))
8838 if ac_fn_c_try_run "$LINENO"; then :
8839 am_cv_func_iconv_works=yes
8841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8842 conftest.$ac_objext conftest.beam conftest.$ac_ext
8845 test "$am_cv_func_iconv_works" = no || break
8847 LIBS="$am_save_LIBS"
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8851 $as_echo "$am_cv_func_iconv_works" >&6; }
8852 case "$am_cv_func_iconv_works" in
8853 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8854 *) am_func_iconv=yes ;;
8857 am_func_iconv=no am_cv_lib_iconv=no
8859 if test "$am_func_iconv" = yes; then
8861 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8864 if test "$am_cv_lib_iconv" = yes; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8866 $as_echo_n "checking how to link with libiconv... " >&6; }
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8868 $as_echo "$LIBICONV" >&6; }
8870 CPPFLAGS="$am_save_CPPFLAGS"
8886 acl_save_prefix="$prefix"
8887 prefix="$acl_final_prefix"
8888 acl_save_exec_prefix="$exec_prefix"
8889 exec_prefix="$acl_final_exec_prefix"
8891 eval additional_includedir=\"$includedir\"
8892 eval additional_libdir=\"$libdir\"
8893 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8894 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8896 exec_prefix="$acl_save_exec_prefix"
8897 prefix="$acl_save_prefix"
8900 # Check whether --with-libintl-prefix was given.
8901 if test "${with_libintl_prefix+set}" = set; then :
8902 withval=$with_libintl_prefix;
8903 if test "X$withval" = "Xno"; then
8906 if test "X$withval" = "X"; then
8908 acl_save_prefix="$prefix"
8909 prefix="$acl_final_prefix"
8910 acl_save_exec_prefix="$exec_prefix"
8911 exec_prefix="$acl_final_exec_prefix"
8913 eval additional_includedir=\"$includedir\"
8914 eval additional_libdir=\"$libdir\"
8915 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8916 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8918 exec_prefix="$acl_save_exec_prefix"
8919 prefix="$acl_save_prefix"
8922 additional_includedir="$withval/include"
8923 additional_libdir="$withval/$acl_libdirstem"
8924 additional_libdir2="$withval/$acl_libdirstem2"
8925 additional_libdir3="$withval/$acl_libdirstem3"
8931 if test "X$additional_libdir2" = "X$additional_libdir"; then
8934 if test "X$additional_libdir3" = "X$additional_libdir"; then
8944 names_already_handled=
8945 names_next_round='intl '
8946 while test -n "$names_next_round"; do
8947 names_this_round="$names_next_round"
8949 for name in $names_this_round; do
8951 for n in $names_already_handled; do
8952 if test "$n" = "$name"; then
8957 if test -z "$already_handled"; then
8958 names_already_handled="$names_already_handled $name"
8959 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8960 eval value=\"\$HAVE_LIB$uppername\"
8961 if test -n "$value"; then
8962 if test "$value" = yes; then
8963 eval value=\"\$LIB$uppername\"
8964 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8965 eval value=\"\$LTLIB$uppername\"
8966 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8975 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8976 if test -n "$acl_shlibext"; then
8977 shrext=".$acl_shlibext" # typically: shrext=.so
8981 if test $use_additional = yes; then
8982 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8983 if test "X$found_dir" = "X"; then
8984 eval dir=\$$additional_libdir_variable
8985 if test -n "$dir"; then
8986 if test -n "$acl_shlibext"; then
8987 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8989 found_so="$dir/$libname$shrext"
8991 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8992 ver=`(cd "$dir" && \
8993 for f in "$libname$shrext".*; do echo "$f"; done \
8994 | sed -e "s,^$libname$shrext\\\\.,," \
8995 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8996 | sed 1q ) 2>/dev/null`
8997 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8999 found_so="$dir/$libname$shrext.$ver"
9002 eval library_names=\"$acl_library_names_spec\"
9003 for f in $library_names; do
9004 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9013 if test "X$found_dir" = "X"; then
9014 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9016 found_a="$dir/$libname.$acl_libext"
9019 if test "X$found_dir" != "X"; then
9020 if test -f "$dir/$libname.la"; then
9021 found_la="$dir/$libname.la"
9028 if test "X$found_dir" = "X"; then
9029 for x in $LDFLAGS $LTLIBINTL; do
9031 acl_save_prefix="$prefix"
9032 prefix="$acl_final_prefix"
9033 acl_save_exec_prefix="$exec_prefix"
9034 exec_prefix="$acl_final_exec_prefix"
9036 exec_prefix="$acl_save_exec_prefix"
9037 prefix="$acl_save_prefix"
9041 dir=`echo "X$x" | sed -e 's/^X-L//'`
9042 if test -n "$acl_shlibext"; then
9043 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9045 found_so="$dir/$libname$shrext"
9047 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9048 ver=`(cd "$dir" && \
9049 for f in "$libname$shrext".*; do echo "$f"; done \
9050 | sed -e "s,^$libname$shrext\\\\.,," \
9051 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9052 | sed 1q ) 2>/dev/null`
9053 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9055 found_so="$dir/$libname$shrext.$ver"
9058 eval library_names=\"$acl_library_names_spec\"
9059 for f in $library_names; do
9060 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9069 if test "X$found_dir" = "X"; then
9070 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9072 found_a="$dir/$libname.$acl_libext"
9075 if test "X$found_dir" != "X"; then
9076 if test -f "$dir/$libname.la"; then
9077 found_la="$dir/$libname.la"
9082 if test "X$found_dir" != "X"; then
9087 if test "X$found_dir" != "X"; then
9088 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9089 if test "X$found_so" != "X"; then
9090 if test "$enable_rpath" = no \
9091 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9092 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9093 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9094 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9097 for x in $ltrpathdirs; do
9098 if test "X$x" = "X$found_dir"; then
9103 if test -z "$haveit"; then
9104 ltrpathdirs="$ltrpathdirs $found_dir"
9106 if test "$acl_hardcode_direct" = yes; then
9107 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9109 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9110 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9112 for x in $rpathdirs; do
9113 if test "X$x" = "X$found_dir"; then
9118 if test -z "$haveit"; then
9119 rpathdirs="$rpathdirs $found_dir"
9123 for x in $LDFLAGS $LIBINTL; do
9125 acl_save_prefix="$prefix"
9126 prefix="$acl_final_prefix"
9127 acl_save_exec_prefix="$exec_prefix"
9128 exec_prefix="$acl_final_exec_prefix"
9130 exec_prefix="$acl_save_exec_prefix"
9131 prefix="$acl_save_prefix"
9133 if test "X$x" = "X-L$found_dir"; then
9138 if test -z "$haveit"; then
9139 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9141 if test "$acl_hardcode_minus_L" != no; then
9142 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9144 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9150 if test "X$found_a" != "X"; then
9151 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9153 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9156 additional_includedir=
9157 case "$found_dir" in
9158 */$acl_libdirstem | */$acl_libdirstem/)
9159 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9160 if test "$name" = 'intl'; then
9161 LIBINTL_PREFIX="$basedir"
9163 additional_includedir="$basedir/include"
9165 */$acl_libdirstem2 | */$acl_libdirstem2/)
9166 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9167 if test "$name" = 'intl'; then
9168 LIBINTL_PREFIX="$basedir"
9170 additional_includedir="$basedir/include"
9172 */$acl_libdirstem3 | */$acl_libdirstem3/)
9173 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9174 if test "$name" = 'intl'; then
9175 LIBINTL_PREFIX="$basedir"
9177 additional_includedir="$basedir/include"
9180 if test "X$additional_includedir" != "X"; then
9181 if test "X$additional_includedir" != "X/usr/include"; then
9183 if test "X$additional_includedir" = "X/usr/local/include"; then
9184 if test -n "$GCC"; then
9186 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9190 if test -z "$haveit"; then
9191 for x in $CPPFLAGS $INCINTL; do
9193 acl_save_prefix="$prefix"
9194 prefix="$acl_final_prefix"
9195 acl_save_exec_prefix="$exec_prefix"
9196 exec_prefix="$acl_final_exec_prefix"
9198 exec_prefix="$acl_save_exec_prefix"
9199 prefix="$acl_save_prefix"
9201 if test "X$x" = "X-I$additional_includedir"; then
9206 if test -z "$haveit"; then
9207 if test -d "$additional_includedir"; then
9208 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9214 if test -n "$found_la"; then
9215 save_libdir="$libdir"
9217 */* | *\\*) . "$found_la" ;;
9218 *) . "./$found_la" ;;
9220 libdir="$save_libdir"
9221 for dep in $dependency_libs; do
9224 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9225 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9226 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9227 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9229 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9230 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9231 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9232 if test -n "$GCC"; then
9234 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9238 if test -z "$haveit"; then
9240 for x in $LDFLAGS $LIBINTL; do
9242 acl_save_prefix="$prefix"
9243 prefix="$acl_final_prefix"
9244 acl_save_exec_prefix="$exec_prefix"
9245 exec_prefix="$acl_final_exec_prefix"
9247 exec_prefix="$acl_save_exec_prefix"
9248 prefix="$acl_save_prefix"
9250 if test "X$x" = "X-L$dependency_libdir"; then
9255 if test -z "$haveit"; then
9256 if test -d "$dependency_libdir"; then
9257 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
9261 for x in $LDFLAGS $LTLIBINTL; do
9263 acl_save_prefix="$prefix"
9264 prefix="$acl_final_prefix"
9265 acl_save_exec_prefix="$exec_prefix"
9266 exec_prefix="$acl_final_exec_prefix"
9268 exec_prefix="$acl_save_exec_prefix"
9269 prefix="$acl_save_prefix"
9271 if test "X$x" = "X-L$dependency_libdir"; then
9276 if test -z "$haveit"; then
9277 if test -d "$dependency_libdir"; then
9278 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
9285 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9286 if test "$enable_rpath" != no; then
9288 for x in $rpathdirs; do
9289 if test "X$x" = "X$dir"; then
9294 if test -z "$haveit"; then
9295 rpathdirs="$rpathdirs $dir"
9298 for x in $ltrpathdirs; do
9299 if test "X$x" = "X$dir"; then
9304 if test -z "$haveit"; then
9305 ltrpathdirs="$ltrpathdirs $dir"
9310 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9313 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9316 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9317 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9323 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9324 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9330 if test "X$rpathdirs" != "X"; then
9331 if test -n "$acl_hardcode_libdir_separator"; then
9333 for found_dir in $rpathdirs; do
9334 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9336 acl_save_libdir="$libdir"
9338 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9339 libdir="$acl_save_libdir"
9340 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9342 for found_dir in $rpathdirs; do
9343 acl_save_libdir="$libdir"
9345 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9346 libdir="$acl_save_libdir"
9347 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9351 if test "X$ltrpathdirs" != "X"; then
9352 for found_dir in $ltrpathdirs; do
9353 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9362 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9363 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9364 $as_echo_n "(cached) " >&6
9366 gt_save_CPPFLAGS="$CPPFLAGS"
9367 CPPFLAGS="$CPPFLAGS $INCINTL"
9368 gt_save_LIBS="$LIBS"
9369 LIBS="$LIBS $LIBINTL"
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9373 #include <libintl.h>
9374 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9375 extern int _nl_msg_cat_cntr;
9380 const char *_nl_expand_alias (const char *);
9381 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9383 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9385 $gt_revision_test_code
9391 bindtextdomain ("", "");
9392 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9398 if ac_fn_c_try_link "$LINENO"; then :
9399 eval "$gt_func_gnugettext_libintl=yes"
9401 eval "$gt_func_gnugettext_libintl=no"
9403 rm -f core conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
9405 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9406 LIBS="$LIBS $LIBICONV"
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9410 #include <libintl.h>
9411 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9412 extern int _nl_msg_cat_cntr;
9417 const char *_nl_expand_alias (const char *);
9418 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9420 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9422 $gt_revision_test_code
9428 bindtextdomain ("", "");
9429 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9435 if ac_fn_c_try_link "$LINENO"; then :
9436 LIBINTL="$LIBINTL $LIBICONV"
9437 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9438 eval "$gt_func_gnugettext_libintl=yes"
9441 rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
9444 CPPFLAGS="$gt_save_CPPFLAGS"
9445 LIBS="$gt_save_LIBS"
9447 eval ac_res=\$$gt_func_gnugettext_libintl
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9449 $as_echo "$ac_res" >&6; }
9452 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9453 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9454 && test "$PACKAGE" != gettext-runtime \
9455 && test "$PACKAGE" != gettext-tools; }; then
9456 gt_use_preinstalled_gnugettext=yes
9465 if test -n "$INTL_MACOSX_LIBS"; then
9466 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9467 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9468 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9469 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9473 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9474 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9476 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9484 $as_echo_n "checking whether to use NLS... " >&6; }
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9486 $as_echo "$USE_NLS" >&6; }
9487 if test "$USE_NLS" = "yes"; then
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9489 $as_echo_n "checking where the gettext function comes from... " >&6; }
9490 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9491 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9492 gt_source="external libintl"
9497 gt_source="included intl directory"
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9500 $as_echo "$gt_source" >&6; }
9503 if test "$USE_NLS" = "yes"; then
9505 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9506 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9508 $as_echo_n "checking how to link with libintl... " >&6; }
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9510 $as_echo "$LIBINTL" >&6; }
9512 for element in $INCINTL; do
9514 for x in $CPPFLAGS; do
9516 acl_save_prefix="$prefix"
9517 prefix="$acl_final_prefix"
9518 acl_save_exec_prefix="$exec_prefix"
9519 exec_prefix="$acl_final_exec_prefix"
9521 exec_prefix="$acl_save_exec_prefix"
9522 prefix="$acl_save_prefix"
9524 if test "X$x" = "X$element"; then
9529 if test -z "$haveit"; then
9530 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9537 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9540 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9558 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9560 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9561 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9562 $as_echo_n "(cached) " >&6
9564 cat >conftest.make <<\_ACEOF
9567 @echo '@@@%%%=$(MAKE)=@@@%%%'
9569 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9570 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9572 eval ac_cv_prog_make_${ac_make}_set=yes;;
9574 eval ac_cv_prog_make_${ac_make}_set=no;;
9578 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9580 $as_echo "yes" >&6; }
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9584 $as_echo "no" >&6; }
9585 SET_MAKE="MAKE=${MAKE-make}"
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9589 $as_echo_n "checking for GNU make... " >&6; }
9590 if ${_cv_gnu_make_command+:} false; then :
9591 $as_echo_n "(cached) " >&6
9593 _cv_gnu_make_command='' ;
9594 if test -n "$FORCE_NATIVE_MAKE" ; then
9597 MAKES="make gmake gnumake"
9599 for a in "$MAKE" $MAKES ; do
9600 if test -z "$a" ; then continue ; fi ;
9601 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9602 _cv_gnu_make_command=$a ;
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9609 $as_echo "$_cv_gnu_make_command" >&6; } ;
9610 if test "x$_cv_gnu_make_command" != "x" ; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9617 $as_echo "\"Not found\"" >&6; };
9622 # Extract the first word of "ln", so it can be a program name with args.
9623 set dummy ln; ac_word=$2
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625 $as_echo_n "checking for $ac_word... " >&6; }
9626 if ${ac_cv_path_LN+:} false; then :
9627 $as_echo_n "(cached) " >&6
9631 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638 test -z "$as_dir" && as_dir=.
9639 for ac_exec_ext in '' $ac_executable_extensions; do
9640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9641 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9654 if test -n "$LN"; then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9656 $as_echo "$LN" >&6; }
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9665 $as_echo_n "checking whether ln -s works... " >&6; }
9667 if test "$LN_S" = "ln -s"; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9669 $as_echo "yes" >&6; }
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9672 $as_echo "no, using $LN_S" >&6; }
9675 # Extract the first word of "mv", so it can be a program name with args.
9676 set dummy mv; ac_word=$2
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 $as_echo_n "checking for $ac_word... " >&6; }
9679 if ${ac_cv_path_MV+:} false; then :
9680 $as_echo_n "(cached) " >&6
9684 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691 test -z "$as_dir" && as_dir=.
9692 for ac_exec_ext in '' $ac_executable_extensions; do
9693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9694 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9707 if test -n "$MV"; then
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9709 $as_echo "$MV" >&6; }
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712 $as_echo "no" >&6; }
9716 # Extract the first word of "cp", so it can be a program name with args.
9717 set dummy cp; ac_word=$2
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719 $as_echo_n "checking for $ac_word... " >&6; }
9720 if ${ac_cv_path_CP+:} false; then :
9721 $as_echo_n "(cached) " >&6
9725 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9735 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9743 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9748 if test -n "$CP"; then
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9750 $as_echo "$CP" >&6; }
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9753 $as_echo "no" >&6; }
9757 # Extract the first word of "rm", so it can be a program name with args.
9758 set dummy rm; ac_word=$2
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760 $as_echo_n "checking for $ac_word... " >&6; }
9761 if ${ac_cv_path_RM+:} false; then :
9762 $as_echo_n "(cached) " >&6
9766 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 test -z "$as_dir" && as_dir=.
9774 for ac_exec_ext in '' $ac_executable_extensions; do
9775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9776 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9784 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9789 if test -n "$RM"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9791 $as_echo "$RM" >&6; }
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9798 # Extract the first word of "chmod", so it can be a program name with args.
9799 set dummy chmod; ac_word=$2
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9801 $as_echo_n "checking for $ac_word... " >&6; }
9802 if ${ac_cv_path_CHMOD+:} false; then :
9803 $as_echo_n "(cached) " >&6
9807 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 test -z "$as_dir" && as_dir=.
9815 for ac_exec_ext in '' $ac_executable_extensions; do
9816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9817 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9825 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9829 CHMOD=$ac_cv_path_CHMOD
9830 if test -n "$CHMOD"; then
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9832 $as_echo "$CHMOD" >&6; }
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835 $as_echo "no" >&6; }
9839 for ac_prog in gawk mawk nawk awk
9841 # Extract the first word of "$ac_prog", so it can be a program name with args.
9842 set dummy $ac_prog; ac_word=$2
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9844 $as_echo_n "checking for $ac_word... " >&6; }
9845 if ${ac_cv_prog_AWK+:} false; then :
9846 $as_echo_n "(cached) " >&6
9848 if test -n "$AWK"; then
9849 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855 test -z "$as_dir" && as_dir=.
9856 for ac_exec_ext in '' $ac_executable_extensions; do
9857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9858 ac_cv_prog_AWK="$ac_prog"
9859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9869 if test -n "$AWK"; then
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9871 $as_echo "$AWK" >&6; }
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9874 $as_echo "no" >&6; }
9878 test -n "$AWK" && break
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9882 $as_echo_n "checking for egrep... " >&6; }
9883 if ${ac_cv_path_EGREP+:} false; then :
9884 $as_echo_n "(cached) " >&6
9886 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9887 then ac_cv_path_EGREP="$GREP -E"
9889 if test -z "$EGREP"; then
9890 ac_path_EGREP_found=false
9891 # Loop through the user's path and test for each of PROGNAME-LIST
9892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9896 test -z "$as_dir" && as_dir=.
9897 for ac_prog in egrep; do
9898 for ac_exec_ext in '' $ac_executable_extensions; do
9899 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9900 as_fn_executable_p "$ac_path_EGREP" || continue
9901 # Check for GNU ac_path_EGREP and select it if it is found.
9902 # Check for GNU $ac_path_EGREP
9903 case `"$ac_path_EGREP" --version 2>&1` in
9905 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9908 $as_echo_n 0123456789 >"conftest.in"
9911 cat "conftest.in" "conftest.in" >"conftest.tmp"
9912 mv "conftest.tmp" "conftest.in"
9913 cp "conftest.in" "conftest.nl"
9914 $as_echo 'EGREP' >> "conftest.nl"
9915 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9917 as_fn_arith $ac_count + 1 && ac_count=$as_val
9918 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9919 # Best one so far, save it but keep looking for a better one
9920 ac_cv_path_EGREP="$ac_path_EGREP"
9921 ac_path_EGREP_max=$ac_count
9923 # 10*(2^10) chars as input seems more than enough
9924 test $ac_count -gt 10 && break
9926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9929 $ac_path_EGREP_found && break 3
9934 if test -z "$ac_cv_path_EGREP"; then
9935 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9938 ac_cv_path_EGREP=$EGREP
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9944 $as_echo "$ac_cv_path_EGREP" >&6; }
9945 EGREP="$ac_cv_path_EGREP"
9948 # Extract the first word of "sed", so it can be a program name with args.
9949 set dummy sed; ac_word=$2
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951 $as_echo_n "checking for $ac_word... " >&6; }
9952 if ${ac_cv_path_SED+:} false; then :
9953 $as_echo_n "(cached) " >&6
9957 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964 test -z "$as_dir" && as_dir=.
9965 for ac_exec_ext in '' $ac_executable_extensions; do
9966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9967 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9975 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9980 if test -n "$SED"; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9982 $as_echo "$SED" >&6; }
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9989 # Extract the first word of "perl", so it can be a program name with args.
9990 set dummy perl; ac_word=$2
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992 $as_echo_n "checking for $ac_word... " >&6; }
9993 if ${ac_cv_path_PERL+:} false; then :
9994 $as_echo_n "(cached) " >&6
9998 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in $PATH
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10008 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10016 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10020 PERL=$ac_cv_path_PERL
10021 if test -n "$PERL"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10023 $as_echo "$PERL" >&6; }
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026 $as_echo "no" >&6; }
10030 # Extract the first word of "ldconfig", so it can be a program name with args.
10031 set dummy ldconfig; ac_word=$2
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10033 $as_echo_n "checking for $ac_word... " >&6; }
10034 if ${ac_cv_path_LDCONFIG+:} false; then :
10035 $as_echo_n "(cached) " >&6
10039 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10043 for as_dir in $PATH
10046 test -z "$as_dir" && as_dir=.
10047 for ac_exec_ext in '' $ac_executable_extensions; do
10048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10049 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10061 LDCONFIG=$ac_cv_path_LDCONFIG
10062 if test -n "$LDCONFIG"; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10064 $as_echo "$LDCONFIG" >&6; }
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10071 if test -n "$ac_tool_prefix"; then
10072 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10073 set dummy ${ac_tool_prefix}ar; ac_word=$2
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075 $as_echo_n "checking for $ac_word... " >&6; }
10076 if ${ac_cv_prog_AR+:} false; then :
10077 $as_echo_n "(cached) " >&6
10079 if test -n "$AR"; then
10080 ac_cv_prog_AR="$AR" # Let the user override the test.
10082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10083 for as_dir in $PATH
10086 test -z "$as_dir" && as_dir=.
10087 for ac_exec_ext in '' $ac_executable_extensions; do
10088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10089 ac_cv_prog_AR="${ac_tool_prefix}ar"
10090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10100 if test -n "$AR"; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10102 $as_echo "$AR" >&6; }
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105 $as_echo "no" >&6; }
10110 if test -z "$ac_cv_prog_AR"; then
10112 # Extract the first word of "ar", so it can be a program name with args.
10113 set dummy ar; ac_word=$2
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10115 $as_echo_n "checking for $ac_word... " >&6; }
10116 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10117 $as_echo_n "(cached) " >&6
10119 if test -n "$ac_ct_AR"; then
10120 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123 for as_dir in $PATH
10126 test -z "$as_dir" && as_dir=.
10127 for ac_exec_ext in '' $ac_executable_extensions; do
10128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10129 ac_cv_prog_ac_ct_AR="ar"
10130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10139 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10140 if test -n "$ac_ct_AR"; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10142 $as_echo "$ac_ct_AR" >&6; }
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }
10148 if test "x$ac_ct_AR" = x; then
10151 case $cross_compiling:$ac_tool_warned in
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10155 ac_tool_warned=yes ;;
10160 AR="$ac_cv_prog_AR"
10163 if test -n "$ac_tool_prefix"; then
10164 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10165 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167 $as_echo_n "checking for $ac_word... " >&6; }
10168 if ${ac_cv_prog_RANLIB+:} false; then :
10169 $as_echo_n "(cached) " >&6
10171 if test -n "$RANLIB"; then
10172 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175 for as_dir in $PATH
10178 test -z "$as_dir" && as_dir=.
10179 for ac_exec_ext in '' $ac_executable_extensions; do
10180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10181 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10191 RANLIB=$ac_cv_prog_RANLIB
10192 if test -n "$RANLIB"; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10194 $as_echo "$RANLIB" >&6; }
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197 $as_echo "no" >&6; }
10202 if test -z "$ac_cv_prog_RANLIB"; then
10203 ac_ct_RANLIB=$RANLIB
10204 # Extract the first word of "ranlib", so it can be a program name with args.
10205 set dummy ranlib; ac_word=$2
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10207 $as_echo_n "checking for $ac_word... " >&6; }
10208 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10209 $as_echo_n "(cached) " >&6
10211 if test -n "$ac_ct_RANLIB"; then
10212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215 for as_dir in $PATH
10218 test -z "$as_dir" && as_dir=.
10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10221 ac_cv_prog_ac_ct_RANLIB="ranlib"
10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10231 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10232 if test -n "$ac_ct_RANLIB"; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10234 $as_echo "$ac_ct_RANLIB" >&6; }
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237 $as_echo "no" >&6; }
10240 if test "x$ac_ct_RANLIB" = x; then
10243 case $cross_compiling:$ac_tool_warned in
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10247 ac_tool_warned=yes ;;
10249 RANLIB=$ac_ct_RANLIB
10252 RANLIB="$ac_cv_prog_RANLIB"
10255 if test -n "$ac_tool_prefix"; then
10256 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10257 set dummy ${ac_tool_prefix}strip; ac_word=$2
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259 $as_echo_n "checking for $ac_word... " >&6; }
10260 if ${ac_cv_prog_STRIP+:} false; then :
10261 $as_echo_n "(cached) " >&6
10263 if test -n "$STRIP"; then
10264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267 for as_dir in $PATH
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10273 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10283 STRIP=$ac_cv_prog_STRIP
10284 if test -n "$STRIP"; then
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10286 $as_echo "$STRIP" >&6; }
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289 $as_echo "no" >&6; }
10294 if test -z "$ac_cv_prog_STRIP"; then
10296 # Extract the first word of "strip", so it can be a program name with args.
10297 set dummy strip; ac_word=$2
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299 $as_echo_n "checking for $ac_word... " >&6; }
10300 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10301 $as_echo_n "(cached) " >&6
10303 if test -n "$ac_ct_STRIP"; then
10304 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in $PATH
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
10312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10313 ac_cv_prog_ac_ct_STRIP="strip"
10314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10323 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10324 if test -n "$ac_ct_STRIP"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10326 $as_echo "$ac_ct_STRIP" >&6; }
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329 $as_echo "no" >&6; }
10332 if test "x$ac_ct_STRIP" = x; then
10335 case $cross_compiling:$ac_tool_warned in
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10339 ac_tool_warned=yes ;;
10344 STRIP="$ac_cv_prog_STRIP"
10347 # Extract the first word of "makeinfo", so it can be a program name with args.
10348 set dummy makeinfo; ac_word=$2
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10350 $as_echo_n "checking for $ac_word... " >&6; }
10351 if ${ac_cv_prog_MAKEINFO+:} false; then :
10352 $as_echo_n "(cached) " >&6
10354 if test -n "$MAKEINFO"; then
10355 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
10363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364 ac_cv_prog_MAKEINFO="makeinfo"
10365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 MAKEINFO=$ac_cv_prog_MAKEINFO
10375 if test -n "$MAKEINFO"; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10377 $as_echo "$MAKEINFO" >&6; }
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10384 if test "_$MAKEINFO" = "_"; then
10385 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
10387 case "$MAKEINFO" in
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10390 *** Makeinfo is missing. Info documentation will not be built." >&5
10391 $as_echo "$as_me: WARNING:
10392 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10400 # See if we need a separate native compiler.
10401 if test $cross_compiling = no; then
10405 for ac_prog in gcc cc
10407 # Extract the first word of "$ac_prog", so it can be a program name with args.
10408 set dummy $ac_prog; ac_word=$2
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10410 $as_echo_n "checking for $ac_word... " >&6; }
10411 if ${ac_cv_prog_BUILD_CC+:} false; then :
10412 $as_echo_n "(cached) " >&6
10414 if test -n "$BUILD_CC"; then
10415 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418 for as_dir in $PATH
10421 test -z "$as_dir" && as_dir=.
10422 for ac_exec_ext in '' $ac_executable_extensions; do
10423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10424 ac_cv_prog_BUILD_CC="$ac_prog"
10425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10434 BUILD_CC=$ac_cv_prog_BUILD_CC
10435 if test -n "$BUILD_CC"; then
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10437 $as_echo "$BUILD_CC" >&6; }
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10440 $as_echo "no" >&6; }
10444 test -n "$BUILD_CC" && break
10448 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/fsmap.h linux/major.h linux/loop.h linux/types.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 sys/xattr.h
10450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10451 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10452 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10453 cat >>confdefs.h <<_ACEOF
10454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
10462 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
10464 for i in dd gdd ; do
10465 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
10470 if test -n "$DD" ; then
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
10472 $as_echo "$DD" >&6; }
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
10475 $as_echo "not found, using dd" >&6; }
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
10478 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
10482 for ac_header in net/if.h
10484 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10485 #if HAVE_SYS_TYPES_H
10486 #include <sys/types.h>
10488 #if HAVE_SYS_SOCKET
10489 #include <sys/socket.h>
10493 if test "x$ac_cv_header_net_if_h" = xyes; then :
10494 cat >>confdefs.h <<_ACEOF
10495 #define HAVE_NET_IF_H 1
10502 for ac_func in vprintf
10504 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10505 if test "x$ac_cv_func_vprintf" = xyes; then :
10506 cat >>confdefs.h <<_ACEOF
10507 #define HAVE_VPRINTF 1
10510 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10511 if test "x$ac_cv_func__doprnt" = xyes; then :
10513 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10521 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10523 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10525 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10529 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10530 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10532 cat >>confdefs.h <<_ACEOF
10533 #define HAVE_STRUCT_STAT_ST_ATIM 1
10539 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10541 if test "x$ac_cv_type_ssize_t" = xyes; then :
10543 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10547 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10549 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10551 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10555 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10556 #define _LARGEFILE64_SOURCE
10557 #include <unistd.h>
10559 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10561 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10565 # The cast to long int works around a bug in the HP C Compiler
10566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10567 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10568 # This bug is HP SR number 8606223364.
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10570 $as_echo_n "checking size of short... " >&6; }
10571 if ${ac_cv_sizeof_short+:} false; then :
10572 $as_echo_n "(cached) " >&6
10574 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10577 if test "$ac_cv_type_short" = yes; then
10578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10580 as_fn_error 77 "cannot compute sizeof (short)
10581 See \`config.log' for more details" "$LINENO" 5; }
10583 ac_cv_sizeof_short=0
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10589 $as_echo "$ac_cv_sizeof_short" >&6; }
10593 cat >>confdefs.h <<_ACEOF
10594 #define SIZEOF_SHORT $ac_cv_sizeof_short
10598 # The cast to long int works around a bug in the HP C Compiler
10599 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10600 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10601 # This bug is HP SR number 8606223364.
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10603 $as_echo_n "checking size of int... " >&6; }
10604 if ${ac_cv_sizeof_int+:} false; then :
10605 $as_echo_n "(cached) " >&6
10607 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10610 if test "$ac_cv_type_int" = yes; then
10611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10613 as_fn_error 77 "cannot compute sizeof (int)
10614 See \`config.log' for more details" "$LINENO" 5; }
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10622 $as_echo "$ac_cv_sizeof_int" >&6; }
10626 cat >>confdefs.h <<_ACEOF
10627 #define SIZEOF_INT $ac_cv_sizeof_int
10631 # The cast to long int works around a bug in the HP C Compiler
10632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10634 # This bug is HP SR number 8606223364.
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10636 $as_echo_n "checking size of long... " >&6; }
10637 if ${ac_cv_sizeof_long+:} false; then :
10638 $as_echo_n "(cached) " >&6
10640 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10643 if test "$ac_cv_type_long" = yes; then
10644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10646 as_fn_error 77 "cannot compute sizeof (long)
10647 See \`config.log' for more details" "$LINENO" 5; }
10649 ac_cv_sizeof_long=0
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10655 $as_echo "$ac_cv_sizeof_long" >&6; }
10659 cat >>confdefs.h <<_ACEOF
10660 #define SIZEOF_LONG $ac_cv_sizeof_long
10664 # The cast to long int works around a bug in the HP C Compiler
10665 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10666 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10667 # This bug is HP SR number 8606223364.
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10669 $as_echo_n "checking size of long long... " >&6; }
10670 if ${ac_cv_sizeof_long_long+:} false; then :
10671 $as_echo_n "(cached) " >&6
10673 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10676 if test "$ac_cv_type_long_long" = yes; then
10677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10679 as_fn_error 77 "cannot compute sizeof (long long)
10680 See \`config.log' for more details" "$LINENO" 5; }
10682 ac_cv_sizeof_long_long=0
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10688 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10692 cat >>confdefs.h <<_ACEOF
10693 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10697 # The cast to long int works around a bug in the HP C Compiler
10698 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10699 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10700 # This bug is HP SR number 8606223364.
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10702 $as_echo_n "checking size of off_t... " >&6; }
10703 if ${ac_cv_sizeof_off_t+:} false; then :
10704 $as_echo_n "(cached) " >&6
10706 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10709 if test "$ac_cv_type_off_t" = yes; then
10710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10712 as_fn_error 77 "cannot compute sizeof (off_t)
10713 See \`config.log' for more details" "$LINENO" 5; }
10715 ac_cv_sizeof_off_t=0
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10721 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10725 cat >>confdefs.h <<_ACEOF
10726 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10730 # The cast to long int works around a bug in the HP C Compiler
10731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10733 # This bug is HP SR number 8606223364.
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
10735 $as_echo_n "checking size of time_t... " >&6; }
10736 if ${ac_cv_sizeof_time_t+:} false; then :
10737 $as_echo_n "(cached) " >&6
10739 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
10742 if test "$ac_cv_type_time_t" = yes; then
10743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10745 as_fn_error 77 "cannot compute sizeof (time_t)
10746 See \`config.log' for more details" "$LINENO" 5; }
10748 ac_cv_sizeof_time_t=0
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
10754 $as_echo "$ac_cv_sizeof_time_t" >&6; }
10758 cat >>confdefs.h <<_ACEOF
10759 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10763 SIZEOF_SHORT=$ac_cv_sizeof_short
10764 SIZEOF_INT=$ac_cv_sizeof_int
10765 SIZEOF_LONG=$ac_cv_sizeof_long
10766 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10767 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10768 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10776 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10777 if ${ac_cv_c_bigendian+:} false; then :
10778 $as_echo_n "(cached) " >&6
10780 ac_cv_c_bigendian=unknown
10781 # See if we're dealing with a universal compiler.
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 #ifndef __APPLE_CC__
10785 not a universal capable compiler
10790 if ac_fn_c_try_compile "$LINENO"; then :
10792 # Check for potential -arch flags. It is not universal unless
10793 # there are at least two -arch flags with different values.
10796 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10797 if test -n "$ac_prev"; then
10799 i?86 | x86_64 | ppc | ppc64)
10800 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10803 ac_cv_c_bigendian=universal
10809 elif test "x$ac_word" = "x-arch"; then
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 if test $ac_cv_c_bigendian = unknown; then
10816 # See if sys/param.h defines the BYTE_ORDER macro.
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10819 #include <sys/types.h>
10820 #include <sys/param.h>
10825 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10826 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10828 bogus endian macros
10835 if ac_fn_c_try_compile "$LINENO"; then :
10836 # It does; now see whether it defined to BIG_ENDIAN or not.
10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h. */
10839 #include <sys/types.h>
10840 #include <sys/param.h>
10845 #if BYTE_ORDER != BIG_ENDIAN
10853 if ac_fn_c_try_compile "$LINENO"; then :
10854 ac_cv_c_bigendian=yes
10856 ac_cv_c_bigendian=no
10858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10862 if test $ac_cv_c_bigendian = unknown; then
10863 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10866 #include <limits.h>
10871 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10872 bogus endian macros
10879 if ac_fn_c_try_compile "$LINENO"; then :
10880 # It does; now see whether it defined to _BIG_ENDIAN or not.
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10883 #include <limits.h>
10888 #ifndef _BIG_ENDIAN
10896 if ac_fn_c_try_compile "$LINENO"; then :
10897 ac_cv_c_bigendian=yes
10899 ac_cv_c_bigendian=no
10901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10905 if test $ac_cv_c_bigendian = unknown; then
10906 # Compile a test program.
10907 if test "$cross_compiling" = yes; then :
10908 # Try to guess by grepping values from an object file.
10909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910 /* end confdefs.h. */
10911 short int ascii_mm[] =
10912 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10913 short int ascii_ii[] =
10914 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10915 int use_ascii (int i) {
10916 return ascii_mm[i] + ascii_ii[i];
10918 short int ebcdic_ii[] =
10919 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10920 short int ebcdic_mm[] =
10921 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10922 int use_ebcdic (int i) {
10923 return ebcdic_mm[i] + ebcdic_ii[i];
10930 return use_ascii (foo) == use_ebcdic (foo);
10935 if ac_fn_c_try_compile "$LINENO"; then :
10936 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10937 ac_cv_c_bigendian=yes
10939 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10940 if test "$ac_cv_c_bigendian" = unknown; then
10941 ac_cv_c_bigendian=no
10943 # finding both strings is unlikely to happen, but who knows?
10944 ac_cv_c_bigendian=unknown
10948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10952 $ac_includes_default
10957 /* Are we little or big endian? From Harbison&Steele. */
10961 char c[sizeof (long int)];
10964 return u.c[sizeof (long int) - 1] == 1;
10970 if ac_fn_c_try_run "$LINENO"; then :
10971 ac_cv_c_bigendian=no
10973 ac_cv_c_bigendian=yes
10975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10976 conftest.$ac_objext conftest.beam conftest.$ac_ext
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10982 $as_echo "$ac_cv_c_bigendian" >&6; }
10983 case $ac_cv_c_bigendian in #(
10985 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10991 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10995 as_fn_error $? "unknown endianness
10996 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10999 if test $cross_compiling = no; then
11000 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11002 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11004 ASM_TYPES_HEADER=./asm_types.h
11006 echo "/* These defines are needed for the public ext2fs.h header file */" \
11008 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
11009 uniq tmp_config.$$ >> public_config.h
11011 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
11013 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
11014 uniq tmp_config.$$ >> public_config.h
11016 echo "#undef WORDS_BIGENDIAN" >> public_config.h
11018 rm -f tmp_config.$$
11019 PUBLIC_CONFIG_HEADER=./public_config.h
11021 for ac_header in inttypes.h
11023 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11024 if test "x$ac_cv_header_inttypes_h" = xyes; then :
11025 cat >>confdefs.h <<_ACEOF
11026 #define HAVE_INTTYPES_H 1
11033 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11034 if test "x$ac_cv_type_intptr_t" = xyes; then :
11036 cat >>confdefs.h <<_ACEOF
11037 #define HAVE_INTPTR_T 1
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
11044 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
11045 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
11046 $as_echo_n "(cached) " >&6
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11050 #include <sys/stat.h>
11054 struct stat stat; stat.st_flags = 0;
11059 if ac_fn_c_try_compile "$LINENO"; then :
11060 e2fsprogs_cv_struct_st_flags=yes
11062 e2fsprogs_cv_struct_st_flags=no
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
11068 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
11069 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
11071 $as_echo_n "checking whether st_flags field is useful... " >&6; }
11072 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
11073 $as_echo_n "(cached) " >&6
11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h. */
11077 #include <sys/stat.h>
11081 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11086 if ac_fn_c_try_compile "$LINENO"; then :
11087 e2fsprogs_cv_struct_st_flags_immut=yes
11089 e2fsprogs_cv_struct_st_flags_immut=no
11091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11095 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11096 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11098 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11102 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11103 #include <sys/socket.h>
11105 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11107 cat >>confdefs.h <<_ACEOF
11108 #define HAVE_SA_LEN 1
11113 if test -n "$BLKID_CMT"; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
11115 $as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; }
11116 if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then :
11117 $as_echo_n "(cached) " >&6
11119 ac_check_lib_save_LIBS=$LIBS
11120 LIBS="-lblkid $LIBS"
11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h. */
11124 /* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11130 char blkid_probe_get_topology ();
11134 return blkid_probe_get_topology ();
11139 if ac_fn_c_try_link "$LINENO"; then :
11140 ac_cv_lib_blkid_blkid_probe_get_topology=yes
11142 ac_cv_lib_blkid_blkid_probe_get_topology=no
11144 rm -f core conftest.err conftest.$ac_objext \
11145 conftest$ac_exeext conftest.$ac_ext
11146 LIBS=$ac_check_lib_save_LIBS
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
11149 $as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
11150 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then :
11152 $as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
11157 $as_echo_n "checking for blkid_topology_get_dax in -lblkid... " >&6; }
11158 if ${ac_cv_lib_blkid_blkid_topology_get_dax+:} false; then :
11159 $as_echo_n "(cached) " >&6
11161 ac_check_lib_save_LIBS=$LIBS
11162 LIBS="-lblkid $LIBS"
11163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h. */
11166 /* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
11172 char blkid_topology_get_dax ();
11176 return blkid_topology_get_dax ();
11181 if ac_fn_c_try_link "$LINENO"; then :
11182 ac_cv_lib_blkid_blkid_topology_get_dax=yes
11184 ac_cv_lib_blkid_blkid_topology_get_dax=no
11186 rm -f core conftest.err conftest.$ac_objext \
11187 conftest$ac_exeext conftest.$ac_ext
11188 LIBS=$ac_check_lib_save_LIBS
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
11191 $as_echo "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
11192 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes; then :
11194 $as_echo "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
11199 $as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
11200 if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then :
11201 $as_echo_n "(cached) " >&6
11203 ac_check_lib_save_LIBS=$LIBS
11204 LIBS="-lblkid $LIBS"
11205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h. */
11208 /* Override any GCC internal prototype to avoid an error.
11209 Use char because int might match the return type of a GCC
11210 builtin and then its argument prototype would still apply. */
11214 char blkid_probe_enable_partitions ();
11218 return blkid_probe_enable_partitions ();
11223 if ac_fn_c_try_link "$LINENO"; then :
11224 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
11226 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
11228 rm -f core conftest.err conftest.$ac_objext \
11229 conftest$ac_exeext conftest.$ac_ext
11230 LIBS=$ac_check_lib_save_LIBS
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
11233 $as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
11234 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then :
11236 $as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
11241 if test -n "$DLOPEN_LIB" ; then
11242 ac_cv_func_dlopen=yes
11244 for ac_func in __secure_getenv add_key backtrace chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname 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
11246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11247 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11248 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11249 cat >>confdefs.h <<_ACEOF
11250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11258 $as_echo_n "checking for socket in -lsocket... " >&6; }
11259 if ${ac_cv_lib_socket_socket+:} false; then :
11260 $as_echo_n "(cached) " >&6
11262 ac_check_lib_save_LIBS=$LIBS
11263 LIBS="-lsocket $LIBS"
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11267 /* Override any GCC internal prototype to avoid an error.
11268 Use char because int might match the return type of a GCC
11269 builtin and then its argument prototype would still apply. */
11282 if ac_fn_c_try_link "$LINENO"; then :
11283 ac_cv_lib_socket_socket=yes
11285 ac_cv_lib_socket_socket=no
11287 rm -f core conftest.err conftest.$ac_objext \
11288 conftest$ac_exeext conftest.$ac_ext
11289 LIBS=$ac_check_lib_save_LIBS
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11292 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11293 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11294 SOCKET_LIB=-lsocket
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
11299 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
11300 if ${ac_cv_lib_magic_magic_file+:} false; then :
11301 $as_echo_n "(cached) " >&6
11303 ac_check_lib_save_LIBS=$LIBS
11304 LIBS="-lmagic $LIBS"
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11314 char magic_file ();
11318 return magic_file ();
11323 if ac_fn_c_try_link "$LINENO"; then :
11324 ac_cv_lib_magic_magic_file=yes
11326 ac_cv_lib_magic_magic_file=no
11328 rm -f core conftest.err conftest.$ac_objext \
11329 conftest$ac_exeext conftest.$ac_ext
11330 LIBS=$ac_check_lib_save_LIBS
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
11333 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
11334 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
11336 for ac_header in magic.h
11338 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
11339 if test "x$ac_cv_header_magic_h" = xyes; then :
11340 cat >>confdefs.h <<_ACEOF
11341 #define HAVE_MAGIC_H 1
11350 if test "$ac_cv_func_dlopen" = yes ; then
11351 MAGIC_LIB=$DLOPEN_LIB
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11355 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11356 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
11357 $as_echo_n "(cached) " >&6
11359 ac_check_lib_save_LIBS=$LIBS
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11364 /* Override any GCC internal prototype to avoid an error.
11365 Use char because int might match the return type of a GCC
11366 builtin and then its argument prototype would still apply. */
11370 char clock_gettime ();
11374 return clock_gettime ();
11379 if ac_fn_c_try_link "$LINENO"; then :
11380 ac_cv_lib_rt_clock_gettime=yes
11382 ac_cv_lib_rt_clock_gettime=no
11384 rm -f core conftest.err conftest.$ac_objext \
11385 conftest$ac_exeext conftest.$ac_ext
11386 LIBS=$ac_check_lib_save_LIBS
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11389 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11390 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
11391 CLOCK_GETTIME_LIB=-lrt
11397 # Check whether --enable-fuse2fs was given.
11398 if test "${enable_fuse2fs+set}" = set; then :
11399 enableval=$enable_fuse2fs; if test "$enableval" = "no"
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
11403 $as_echo "Disabling fuse2fs" >&6; }
11405 for ac_header in pthread.h fuse.h
11407 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11408 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
11409 #define FUSE_USE_VERSION 29
11411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11412 cat >>confdefs.h <<_ACEOF
11413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11419 as_fn_error $? "Cannot find fuse2fs headers.
11420 See \`config.log' for more details" "$LINENO" 5; }
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11428 #define FUSE_USE_VERSION 29
11430 #include <linux/fs.h>
11431 #include <linux/falloc.h>
11432 #include <linux/xattr.h>
11443 if ac_fn_c_try_cpp "$LINENO"; then :
11446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11448 as_fn_error $? "Cannot find fuse2fs Linux headers.
11449 See \`config.log' for more details" "$LINENO" 5; }
11451 rm -f conftest.err conftest.i conftest.$ac_ext
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11454 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11455 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11456 $as_echo_n "(cached) " >&6
11458 ac_check_lib_save_LIBS=$LIBS
11459 LIBS="-losxfuse $LIBS"
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11463 /* Override any GCC internal prototype to avoid an error.
11464 Use char because int might match the return type of a GCC
11465 builtin and then its argument prototype would still apply. */
11473 return fuse_main ();
11478 if ac_fn_c_try_link "$LINENO"; then :
11479 ac_cv_lib_osxfuse_fuse_main=yes
11481 ac_cv_lib_osxfuse_fuse_main=no
11483 rm -f core conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext conftest.$ac_ext
11485 LIBS=$ac_check_lib_save_LIBS
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11488 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11489 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11493 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11494 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11495 $as_echo_n "(cached) " >&6
11497 ac_check_lib_save_LIBS=$LIBS
11498 LIBS="-lfuse $LIBS"
11499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500 /* end confdefs.h. */
11502 /* Override any GCC internal prototype to avoid an error.
11503 Use char because int might match the return type of a GCC
11504 builtin and then its argument prototype would still apply. */
11512 return fuse_main ();
11517 if ac_fn_c_try_link "$LINENO"; then :
11518 ac_cv_lib_fuse_fuse_main=yes
11520 ac_cv_lib_fuse_fuse_main=no
11522 rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11527 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11528 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11533 as_fn_error $? "Cannot find fuse library.
11534 See \`config.log' for more details" "$LINENO" 5; }
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
11540 $as_echo "Enabling fuse2fs" >&6; }
11544 for ac_header in pthread.h fuse.h
11546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11547 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
11548 #define FUSE_USE_VERSION 29
11550 # include <linux/fs.h>
11551 # include <linux/falloc.h>
11552 # include <linux/xattr.h>
11555 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11556 cat >>confdefs.h <<_ACEOF
11557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11566 if test -z "$FUSE_CMT"
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11569 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11570 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11571 $as_echo_n "(cached) " >&6
11573 ac_check_lib_save_LIBS=$LIBS
11574 LIBS="-losxfuse $LIBS"
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11578 /* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
11588 return fuse_main ();
11593 if ac_fn_c_try_link "$LINENO"; then :
11594 ac_cv_lib_osxfuse_fuse_main=yes
11596 ac_cv_lib_osxfuse_fuse_main=no
11598 rm -f core conftest.err conftest.$ac_objext \
11599 conftest$ac_exeext conftest.$ac_ext
11600 LIBS=$ac_check_lib_save_LIBS
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11603 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11604 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11608 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11609 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11610 $as_echo_n "(cached) " >&6
11612 ac_check_lib_save_LIBS=$LIBS
11613 LIBS="-lfuse $LIBS"
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11617 /* Override any GCC internal prototype to avoid an error.
11618 Use char because int might match the return type of a GCC
11619 builtin and then its argument prototype would still apply. */
11627 return fuse_main ();
11632 if ac_fn_c_try_link "$LINENO"; then :
11633 ac_cv_lib_fuse_fuse_main=yes
11635 ac_cv_lib_fuse_fuse_main=no
11637 rm -f core conftest.err conftest.$ac_objext \
11638 conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11642 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11643 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11652 if test -z "$FUSE_CMT"
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
11655 $as_echo "Enabling fuse2fs by default." >&6; }
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11663 $as_echo_n "checking for optreset... " >&6; }
11664 if ${ac_cv_have_optreset+:} false; then :
11665 $as_echo_n "(cached) " >&6
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11669 #include <unistd.h>
11672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11673 $EGREP "optreset" >/dev/null 2>&1; then :
11674 ac_cv_have_optreset=yes
11676 ac_cv_have_optreset=no
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11682 $as_echo "$ac_cv_have_optreset" >&6; }
11683 if test $ac_cv_have_optreset = yes; then
11685 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11690 echo GL_THREADS_API: ${gl_threads_api}
11691 if test "${gl_threads_api}" != none
11693 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11694 if test "x$ac_cv_func_sem_init" = xyes; then :
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11698 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11699 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11700 $as_echo_n "(cached) " >&6
11702 ac_check_lib_save_LIBS=$LIBS
11703 LIBS="-lpthread $LIBS"
11704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11705 /* end confdefs.h. */
11707 /* Override any GCC internal prototype to avoid an error.
11708 Use char because int might match the return type of a GCC
11709 builtin and then its argument prototype would still apply. */
11717 return sem_init ();
11722 if ac_fn_c_try_link "$LINENO"; then :
11723 ac_cv_lib_pthread_sem_init=yes
11725 ac_cv_lib_pthread_sem_init=no
11727 rm -f core conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
11729 LIBS=$ac_check_lib_save_LIBS
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11732 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11733 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11734 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11736 SEM_INIT_LIB=-lpthread
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11739 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11740 if ${ac_cv_lib_rt_sem_init+:} false; then :
11741 $as_echo_n "(cached) " >&6
11743 ac_check_lib_save_LIBS=$LIBS
11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h. */
11748 /* Override any GCC internal prototype to avoid an error.
11749 Use char because int might match the return type of a GCC
11750 builtin and then its argument prototype would still apply. */
11758 return sem_init ();
11763 if ac_fn_c_try_link "$LINENO"; then :
11764 ac_cv_lib_rt_sem_init=yes
11766 ac_cv_lib_rt_sem_init=no
11768 rm -f core conftest.err conftest.$ac_objext \
11769 conftest$ac_exeext conftest.$ac_ext
11770 LIBS=$ac_check_lib_save_LIBS
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11773 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11774 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11775 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11780 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11781 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11782 $as_echo_n "(cached) " >&6
11784 ac_check_lib_save_LIBS=$LIBS
11785 LIBS="-lposix4 $LIBS"
11786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787 /* end confdefs.h. */
11789 /* Override any GCC internal prototype to avoid an error.
11790 Use char because int might match the return type of a GCC
11791 builtin and then its argument prototype would still apply. */
11799 return sem_init ();
11804 if ac_fn_c_try_link "$LINENO"; then :
11805 ac_cv_lib_posix4_sem_init=yes
11807 ac_cv_lib_posix4_sem_init=no
11809 rm -f core conftest.err conftest.$ac_objext \
11810 conftest$ac_exeext conftest.$ac_ext
11811 LIBS=$ac_check_lib_save_LIBS
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11814 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11815 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11816 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11818 SEM_INIT_LIB=-lposix4
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11829 $as_echo_n "checking for unified diff option... " >&6; }
11830 if diff -u $0 $0 > /dev/null 2>&1 ; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11836 $as_echo "$UNI_DIFF_OPTS" >&6; }
11841 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11846 $as_echo_n "checking for mount 'nosuid' option... "
11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h. */
11849 #include <sys/mount.h>
11853 void *temp = (void *)(MS_NOSUID); (void) temp;
11858 if ac_fn_c_try_compile "$LINENO"; then :
11860 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11862 ac_cv_mount_nosuid=yes
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11867 #include <sys/mount.h>
11871 void *temp = (void *)(MNT_NOSUID); (void) temp;
11876 if ac_fn_c_try_compile "$LINENO"; then :
11878 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11880 ac_cv_mount_nosuid=yes
11883 ac_cv_mount_nosuid=no
11887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11893 $as_echo_n "checking for mount 'nodev' option... "
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896 #include <sys/mount.h>
11900 void *temp = (void *)(MS_NODEV); (void) temp;
11905 if ac_fn_c_try_compile "$LINENO"; then :
11907 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11909 ac_cv_mount_nodev=yes
11912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913 /* end confdefs.h. */
11914 #include <sys/mount.h>
11918 void *temp = (void *)(MNT_NODEV); (void) temp;
11923 if ac_fn_c_try_compile "$LINENO"; then :
11925 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11927 ac_cv_mount_nodev=yes
11930 ac_cv_mount_nodev=no
11934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939 # Check whether --enable-lto was given.
11940 if test "${enable_lto+set}" = set; then :
11941 enableval=$enable_lto;
11946 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
11948 $as_echo_n "checking if C compiler supports LTO... " >&6; }
11949 OLD_CFLAGS="$CFLAGS"
11950 OLD_LDFLAGS="$LDFLAGS"
11951 LTO_FLAGS="-g -flto -ffat-lto-objects"
11952 CFLAGS="$CFLAGS $LTO_FLAGS"
11953 LDFLAGS="$LDFLAGS $LTO_FLAGS"
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11965 if ac_fn_c_try_link "$LINENO"; then :
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967 $as_echo "yes" >&6; }
11968 lto_cflags=$LTO_FLAGS
11969 lto_ldflags=$LTO_FLAGS
11970 # Extract the first word of "gcc-ar", so it can be a program name with args.
11971 set dummy gcc-ar; ac_word=$2
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973 $as_echo_n "checking for $ac_word... " >&6; }
11974 if ${ac_cv_path_gcc_ar+:} false; then :
11975 $as_echo_n "(cached) " >&6
11979 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
11982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983 for as_dir in $PATH
11986 test -z "$as_dir" && as_dir=.
11987 for ac_exec_ext in '' $ac_executable_extensions; do
11988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11989 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
11990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12000 gcc_ar=$ac_cv_path_gcc_ar
12001 if test -n "$gcc_ar"; then
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
12003 $as_echo "$gcc_ar" >&6; }
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006 $as_echo "no" >&6; }
12010 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
12011 set dummy gcc-ranlib; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if ${ac_cv_path_gcc_ranlib+:} false; then :
12015 $as_echo_n "(cached) " >&6
12017 case $gcc_ranlib in
12019 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12026 test -z "$as_dir" && as_dir=.
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12029 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
12030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12040 gcc_ranlib=$ac_cv_path_gcc_ranlib
12041 if test -n "$gcc_ranlib"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
12043 $as_echo "$gcc_ranlib" >&6; }
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12054 rm -f core conftest.err conftest.$ac_objext \
12055 conftest$ac_exeext conftest.$ac_ext
12056 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
12059 RANLIB="${gcc_ranlib}"
12061 CFLAGS="${OLD_CFLAGS}"
12062 LDFLAGS="${OLD_LDFLAGS}"
12067 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
12068 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
12070 # Check whether --enable-ubsan was given.
12071 if test "${enable_ubsan+set}" = set; then :
12072 enableval=$enable_ubsan;
12077 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
12079 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
12080 OLD_CFLAGS="$CFLAGS"
12081 OLD_LDFLAGS="$LDFLAGS"
12082 UBSAN_FLAGS="-fsanitize=undefined"
12083 CFLAGS="$CFLAGS $UBSAN_FLAGS"
12084 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12096 if ac_fn_c_try_link "$LINENO"; then :
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12098 $as_echo "yes" >&6; }
12099 ubsan_cflags=$UBSAN_FLAGS
12100 ubsan_ldflags=$UBSAN_FLAGS
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12106 rm -f core conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12108 CFLAGS="${OLD_CFLAGS}"
12109 LDFLAGS="${OLD_LDFLAGS}"
12114 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
12115 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
12117 # Check whether --enable-addrsan was given.
12118 if test "${enable_addrsan+set}" = set; then :
12119 enableval=$enable_addrsan;
12124 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
12126 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
12127 OLD_CFLAGS="$CFLAGS"
12128 OLD_LDFLAGS="$LDFLAGS"
12129 ADDRSAN_FLAGS="-fsanitize=address"
12130 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
12131 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h. */
12143 if ac_fn_c_try_link "$LINENO"; then :
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12145 $as_echo "yes" >&6; }
12146 addrsan_cflags=$ADDRSAN_FLAGS
12147 addrsan_ldflags=$ADDRSAN_FLAGS
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151 $as_echo "no" >&6; }
12153 rm -f core conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155 CFLAGS="${OLD_CFLAGS}"
12156 LDFLAGS="${OLD_LDFLAGS}"
12161 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
12162 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
12164 # Check whether --enable-threadsan was given.
12165 if test "${enable_threadsan+set}" = set; then :
12166 enableval=$enable_threadsan;
12168 enable_threadsan=no
12171 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
12173 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
12174 OLD_CFLAGS="$CFLAGS"
12175 OLD_LDFLAGS="$LDFLAGS"
12176 THREADSAN_FLAGS="-fsanitize=thread"
12177 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
12178 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180 /* end confdefs.h. */
12190 if ac_fn_c_try_link "$LINENO"; then :
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12192 $as_echo "yes" >&6; }
12193 threadsan_cflags=$THREADSAN_FLAGS
12194 threadsan_ldflags=$THREADSAN_FLAGS
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12200 rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12202 CFLAGS="${OLD_CFLAGS}"
12203 LDFLAGS="${OLD_LDFLAGS}"
12208 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
12209 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
12211 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
12213 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
12230 E2SCRUB_CMT="$LINUX_CMT"
12233 linux* | gnu* | k*bsd*-gnu)
12234 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
12237 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
12242 linux* | gnu* | k*bsd*-gnu)
12243 if test "$prefix" = NONE ; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
12246 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
12247 if test "$mandir" = '${prefix}/man' ; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
12249 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
12250 mandir=/usr/share/man
12255 if test "$root_prefix" = NONE ; then
12256 if test "$prefix" = NONE ; then
12257 root_prefix="$ac_default_prefix"
12259 root_prefix="$prefix"
12261 root_bindir=$bindir
12262 root_sbindir=$sbindir
12263 root_libdir=$libdir
12264 root_sysconfdir=$sysconfdir
12266 root_bindir='${root_prefix}/bin'
12267 root_sbindir='${root_prefix}/sbin'
12268 root_libdir='${root_prefix}/lib'
12269 root_sysconfdir='${root_prefix}/etc'
12271 if test "$bindir" != '${exec_prefix}/bin'; then
12272 root_bindir=$bindir
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
12274 $as_echo "Setting root_bindir to $root_bindir" >&6; }
12276 if test "$sbindir" != '${exec_prefix}/sbin'; then
12277 root_sbindir=$sbindir
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
12279 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
12281 if test "$libdir" != '${exec_prefix}/lib'; then
12282 root_libdir=$libdir
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
12284 $as_echo "Setting root_libdir to $root_libdir" >&6; }
12286 if test "$sysconfdir" != '${prefix}/etc'; then
12287 root_sysconfdir=$sysconfdir
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
12289 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
12297 # Check whether --with-multiarch was given.
12298 if test "${with_multiarch+set}" = set; then :
12299 withval=$with_multiarch; if test "$withval" = "lib64"; then
12303 libdir=$libdir/$withval
12304 root_libdir=$root_libdir/$withval
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
12310 $as_echo_n "checking whether we can link with -static... " >&6; }
12311 if ${ac_cv_e2fsprogs_use_static+:} false; then :
12312 $as_echo_n "(cached) " >&6
12314 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12326 if ac_fn_c_try_link "$LINENO"; then :
12327 ac_cv_e2fsprogs_use_static=yes
12329 ac_cv_e2fsprogs_use_static=no
12331 rm -f core conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12333 LDFLAGS=$SAVE_LDFLAGS
12338 ac_cv_e2fsprogs_use_static=no
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
12342 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
12343 if test $ac_cv_e2fsprogs_use_static = yes; then
12344 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
12350 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
12352 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
12356 if test "$cross_compiling" = yes ; then
12359 DO_TEST_SUITE=check
12362 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
12363 if test -n "$CPPFLAGS" ; then
12364 INCLUDES="$INCLUDES $CPPFLAGS"
12366 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
12367 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
12369 if test -n "$WITH_DIET_LIBC" ; then
12370 INCLUDES="$INCLUDES -D_REENTRANT"
12373 if test $cross_compiling = no; then
12374 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
12375 BUILD_LDFLAGS="$LDFLAGS"
12379 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
12380 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
12381 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
12387 # Check whether --with-udev_rules_dir was given.
12388 if test "${with_udev_rules_dir+set}" = set; then :
12389 withval=$with_udev_rules_dir;
12391 with_udev_rules_dir=yes
12394 if test "x${with_udev_rules_dir}" != "xno"; then :
12396 if test "x${with_udev_rules_dir}" = "xyes"; then :
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
12401 $as_echo_n "checking for udev... " >&6; }
12403 if test -n "$udev_CFLAGS"; then
12404 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
12405 elif test -n "$PKG_CONFIG"; then
12406 if test -n "$PKG_CONFIG" && \
12407 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12408 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12411 test $ac_status = 0; }; then
12412 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
12413 test "x$?" != "x0" && pkg_failed=yes
12420 if test -n "$udev_LIBS"; then
12421 pkg_cv_udev_LIBS="$udev_LIBS"
12422 elif test -n "$PKG_CONFIG"; then
12423 if test -n "$PKG_CONFIG" && \
12424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12425 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12428 test $ac_status = 0; }; then
12429 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
12430 test "x$?" != "x0" && pkg_failed=yes
12440 if test $pkg_failed = yes; then
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12445 _pkg_short_errors_supported=yes
12447 _pkg_short_errors_supported=no
12449 if test $_pkg_short_errors_supported = yes; then
12450 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
12452 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
12454 # Put the nasty error message in config.log where it belongs
12455 echo "$udev_PKG_ERRORS" >&5
12458 with_udev_rules_dir=""
12460 elif test $pkg_failed = untried; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462 $as_echo "no" >&6; }
12464 with_udev_rules_dir=""
12467 udev_CFLAGS=$pkg_cv_udev_CFLAGS
12468 udev_LIBS=$pkg_cv_udev_LIBS
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12470 $as_echo "yes" >&6; }
12472 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
12478 $as_echo_n "checking for udev rules dir... " >&6; }
12479 pkg_udev_rules_dir="${with_udev_rules_dir}"
12480 if test -n "${pkg_udev_rules_dir}"; then :
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
12483 $as_echo "${pkg_udev_rules_dir}" >&6; }
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489 $as_echo "no" >&6; }
12496 have_udev="disabled"
12503 # Check whether --with-crond_dir was given.
12504 if test "${with_crond_dir+set}" = set; then :
12505 withval=$with_crond_dir;
12510 if test "x${with_crond_dir}" != "xno"; then :
12512 if test "x${with_crond_dir}" = "xyes"; then :
12514 if test -d "/etc/cron.d"; then :
12515 with_crond_dir="/etc/cron.d"
12517 have_crond="no"; with_crond_dir=""
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
12522 $as_echo_n "checking for system crontab dir... " >&6; }
12523 crond_dir="${with_crond_dir}"
12524 if test -n "${crond_dir}"; then :
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
12527 $as_echo "${crond_dir}" >&6; }
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533 $as_echo "no" >&6; }
12540 have_crond="disabled"
12547 # Check whether --with-systemd_unit_dir was given.
12548 if test "${with_systemd_unit_dir+set}" = set; then :
12549 withval=$with_systemd_unit_dir;
12551 with_systemd_unit_dir=yes
12554 if test "x${with_systemd_unit_dir}" != "xno"; then :
12556 if test "x${with_systemd_unit_dir}" = "xyes"; then :
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
12561 $as_echo_n "checking for systemd... " >&6; }
12563 if test -n "$systemd_CFLAGS"; then
12564 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
12565 elif test -n "$PKG_CONFIG"; then
12566 if test -n "$PKG_CONFIG" && \
12567 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12568 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12571 test $ac_status = 0; }; then
12572 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
12573 test "x$?" != "x0" && pkg_failed=yes
12580 if test -n "$systemd_LIBS"; then
12581 pkg_cv_systemd_LIBS="$systemd_LIBS"
12582 elif test -n "$PKG_CONFIG"; then
12583 if test -n "$PKG_CONFIG" && \
12584 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12585 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12588 test $ac_status = 0; }; then
12589 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
12590 test "x$?" != "x0" && pkg_failed=yes
12600 if test $pkg_failed = yes; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12602 $as_echo "no" >&6; }
12604 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12605 _pkg_short_errors_supported=yes
12607 _pkg_short_errors_supported=no
12609 if test $_pkg_short_errors_supported = yes; then
12610 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
12612 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
12614 # Put the nasty error message in config.log where it belongs
12615 echo "$systemd_PKG_ERRORS" >&5
12618 with_systemd_unit_dir=""
12620 elif test $pkg_failed = untried; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12624 with_systemd_unit_dir=""
12627 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
12628 systemd_LIBS=$pkg_cv_systemd_LIBS
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12630 $as_echo "yes" >&6; }
12632 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
12639 $as_echo_n "checking for systemd system unit dir... " >&6; }
12640 systemd_system_unit_dir="${with_systemd_unit_dir}"
12641 if test -n "${systemd_system_unit_dir}"; then :
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
12644 $as_echo "${systemd_system_unit_dir}" >&6; }
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12657 have_systemd="disabled"
12663 test -d lib || mkdir lib
12664 test -d include || mkdir include
12665 test -d include/linux || mkdir include/linux
12666 test -d include/asm || mkdir include/asm
12667 if test -z "$UUID_CMT" ; then
12668 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
12669 lib/uuid/uuid_types.h"
12671 if test -z "$BLKID_CMT" ; then
12672 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
12673 lib/blkid/blkid_types.h"
12675 for i in MCONFIG Makefile \
12676 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
12677 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
12678 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
12679 $uuid_out_list $blkid_out_list lib/support/Makefile \
12680 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
12681 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
12682 debugfs/Makefile tests/Makefile tests/progs/Makefile \
12683 resize/Makefile doc/Makefile po/Makefile.in scrub/Makefile; do
12684 if test -d `dirname ${srcdir}/$i` ; then
12685 outlist="$outlist $i"
12688 ac_config_files="$ac_config_files $outlist"
12690 cat >confcache <<\_ACEOF
12691 # This file is a shell script that caches the results of configure
12692 # tests run on this system so they can be shared between configure
12693 # scripts and configure runs, see configure's option --config-cache.
12694 # It is not useful on other systems. If it contains results you don't
12695 # want to keep, you may remove or edit it.
12697 # config.status only pays attention to the cache file if you give it
12698 # the --recheck option to rerun configure.
12700 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12701 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12702 # following values.
12706 # The following way of writing the cache mishandles newlines in values,
12707 # but we know of no workaround that is simple, portable, and efficient.
12708 # So, we kill variables containing newlines.
12709 # Ultrix sh set writes to stderr and can't be redirected directly,
12710 # and sets the high bit in the cache file unless we assign to the vars.
12712 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12713 eval ac_val=\$$ac_var
12717 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12718 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12721 _ | IFS | as_nl) ;; #(
12722 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12723 *) { eval $ac_var=; unset $ac_var;} ;;
12729 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12730 *${as_nl}ac_space=\ *)
12731 # `set' does not quote correctly, so add quotes: double-quote
12732 # substitution turns \\\\ into \\, and sed turns \\ into \.
12735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12738 # `set' quotes correctly as required by POSIX, so do not add quotes.
12739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12748 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12750 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12752 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12753 if test -w "$cache_file"; then
12754 if test "x$cache_file" != "x/dev/null"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12756 $as_echo "$as_me: updating cache $cache_file" >&6;}
12757 if test ! -f "$cache_file" || test -h "$cache_file"; then
12758 cat confcache >"$cache_file"
12760 case $cache_file in #(
12762 mv -f confcache "$cache_file"$$ &&
12763 mv -f "$cache_file"$$ "$cache_file" ;; #(
12765 mv -f confcache "$cache_file" ;;
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12771 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12776 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12777 # Let make expand exec_prefix.
12778 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12780 DEFS=-DHAVE_CONFIG_H
12785 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12786 # 1. Remove the extension, and $U if already installed.
12787 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12788 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12789 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12790 # will be set to the directory where LIBOBJS objects are built.
12791 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12792 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12794 LIBOBJS=$ac_libobjs
12796 LTLIBOBJS=$ac_ltlibobjs
12801 : "${CONFIG_STATUS=./config.status}"
12803 ac_clean_files_save=$ac_clean_files
12804 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12806 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12808 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12810 # Generated by $as_me.
12811 # Run this file to recreate the current configuration.
12812 # Compiler output produced by configure, useful for debugging
12813 # configure, is in config.log if it exists.
12816 ac_cs_recheck=false
12819 SHELL=\${CONFIG_SHELL-$SHELL}
12822 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12823 ## -------------------- ##
12824 ## M4sh Initialization. ##
12825 ## -------------------- ##
12827 # Be more Bourne compatible
12828 DUALCASE=1; export DUALCASE # for MKS sh
12829 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12832 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12833 # is contrary to our usage. Disable this feature.
12834 alias -g '${1+"$@"}'='"$@"'
12835 setopt NO_GLOB_SUBST
12837 case `(set -o) 2>/dev/null` in #(
12849 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12850 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12851 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12852 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12853 # Prefer a ksh shell builtin over an external printf program on Solaris,
12854 # but without wasting forks for bash or zsh.
12855 if test -z "$BASH_VERSION$ZSH_VERSION" \
12856 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12857 as_echo='print -r --'
12858 as_echo_n='print -rn --'
12859 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12860 as_echo='printf %s\n'
12861 as_echo_n='printf %s'
12863 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12864 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12865 as_echo_n='/usr/ucb/echo -n'
12867 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12868 as_echo_n_body='eval
12872 expr "X$arg" : "X\\(.*\\)$as_nl";
12873 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12875 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12877 export as_echo_n_body
12878 as_echo_n='sh -c $as_echo_n_body as_echo'
12880 export as_echo_body
12881 as_echo='sh -c $as_echo_body as_echo'
12884 # The user is always right.
12885 if test "${PATH_SEPARATOR+set}" != set; then
12887 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12888 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12895 # We need space, tab and new line, in precisely that order. Quoting is
12896 # there to prevent editors from complaining about space-tab.
12897 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12898 # splitting by setting IFS to empty value.)
12901 # Find who we are. Look in the path if we contain no directory separator.
12904 *[\\/]* ) as_myself=$0 ;;
12905 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $PATH
12909 test -z "$as_dir" && as_dir=.
12910 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12916 # We did not find ourselves, most probably we were run as `sh COMMAND'
12917 # in which case we are not to be found in the path.
12918 if test "x$as_myself" = x; then
12921 if test ! -f "$as_myself"; then
12922 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12926 # Unset variables that we do not need and which cause bugs (e.g. in
12927 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12928 # suppresses any "Segmentation fault" message there. '((' could
12929 # trigger a bug in pdksh 5.2.14.
12930 for as_var in BASH_ENV ENV MAIL MAILPATH
12931 do eval test x\${$as_var+set} = xset \
12932 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12945 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12948 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12949 # ----------------------------------------
12950 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12951 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12952 # script with STATUS, using 1 if that was 0.
12955 as_status=$1; test $as_status -eq 0 && as_status=1
12957 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12958 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12960 $as_echo "$as_me: error: $2" >&2
12961 as_fn_exit $as_status
12965 # as_fn_set_status STATUS
12966 # -----------------------
12967 # Set $? to STATUS, without forking.
12968 as_fn_set_status ()
12971 } # as_fn_set_status
12973 # as_fn_exit STATUS
12974 # -----------------
12975 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12979 as_fn_set_status $1
12985 # Portably unset VAR.
12988 { eval $1=; unset $1;}
12990 as_unset=as_fn_unset
12991 # as_fn_append VAR VALUE
12992 # ----------------------
12993 # Append the text in VALUE to the end of the definition contained in VAR. Take
12994 # advantage of any shell optimizations that allow amortized linear growth over
12995 # repeated appends, instead of the typical quadratic growth present in naive
12997 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12998 eval 'as_fn_append ()
13009 # as_fn_arith ARG...
13010 # ------------------
13011 # Perform arithmetic evaluation on the ARGs, and store the result in the
13012 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13013 # must be portable across $(()) and expr.
13014 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13015 eval 'as_fn_arith ()
13022 as_val=`expr "$@" || test $? -eq 1`
13027 if expr a : '\(a\)' >/dev/null 2>&1 &&
13028 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13034 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13035 as_basename=basename
13040 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13046 as_me=`$as_basename -- "$0" ||
13047 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13048 X"$0" : 'X\(//\)$' \| \
13049 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13051 sed '/^.*\/\([^/][^/]*\)\/*$/{
13065 # Avoid depending upon Character Ranges.
13066 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13067 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13068 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13069 as_cr_digits='0123456789'
13070 as_cr_alnum=$as_cr_Letters$as_cr_digits
13072 ECHO_C= ECHO_N= ECHO_T=
13073 case `echo -n x` in #(((((
13075 case `echo 'xy\c'` in
13076 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13078 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13085 rm -f conf$$ conf$$.exe conf$$.file
13086 if test -d conf$$.dir; then
13087 rm -f conf$$.dir/conf$$.file
13090 mkdir conf$$.dir 2>/dev/null
13092 if (echo >conf$$.file) 2>/dev/null; then
13093 if ln -s conf$$.file conf$$ 2>/dev/null; then
13095 # ... but there are two gotchas:
13096 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13097 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13098 # In both cases, we have to default to `cp -pR'.
13099 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13101 elif ln conf$$.file conf$$ 2>/dev/null; then
13109 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13110 rmdir conf$$.dir 2>/dev/null
13115 # Create "$as_dir" as a directory, including parents if necessary.
13120 -*) as_dir=./$as_dir;;
13122 test -d "$as_dir" || eval $as_mkdir_p || {
13126 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13127 *) as_qdir=$as_dir;;
13129 as_dirs="'$as_qdir' $as_dirs"
13130 as_dir=`$as_dirname -- "$as_dir" ||
13131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13132 X"$as_dir" : 'X\(//\)[^/]' \| \
13133 X"$as_dir" : 'X\(//\)$' \| \
13134 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13135 $as_echo X"$as_dir" |
13136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13140 /^X\(\/\/\)[^/].*/{
13153 test -d "$as_dir" && break
13155 test -z "$as_dirs" || eval "mkdir $as_dirs"
13156 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13160 if mkdir -p . 2>/dev/null; then
13161 as_mkdir_p='mkdir -p "$as_dir"'
13163 test -d ./-p && rmdir ./-p
13168 # as_fn_executable_p FILE
13169 # -----------------------
13170 # Test if FILE is an executable regular file.
13171 as_fn_executable_p ()
13173 test -f "$1" && test -x "$1"
13174 } # as_fn_executable_p
13175 as_test_x='test -x'
13176 as_executable_p=as_fn_executable_p
13178 # Sed expression to map a string onto a valid CPP name.
13179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13181 # Sed expression to map a string onto a valid variable name.
13182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13186 ## ----------------------------------- ##
13187 ## Main body of $CONFIG_STATUS script. ##
13188 ## ----------------------------------- ##
13190 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13193 # Save the log message, to keep $0 and so on meaningful, and to
13194 # report actual input values of CONFIG_FILES etc. instead of their
13195 # values after options handling.
13197 This file was extended by $as_me, which was
13198 generated by GNU Autoconf 2.69. Invocation command line was
13200 CONFIG_FILES = $CONFIG_FILES
13201 CONFIG_HEADERS = $CONFIG_HEADERS
13202 CONFIG_LINKS = $CONFIG_LINKS
13203 CONFIG_COMMANDS = $CONFIG_COMMANDS
13206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13211 case $ac_config_files in *"
13212 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13215 case $ac_config_headers in *"
13216 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13221 # Files that config.status was made for.
13222 config_files="$ac_config_files"
13223 config_headers="$ac_config_headers"
13224 config_commands="$ac_config_commands"
13228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13230 \`$as_me' instantiates files and other configuration actions
13231 from templates according to the current configuration. Unless the files
13232 and actions are specified as TAGs, all are instantiated by default.
13234 Usage: $0 [OPTION]... [TAG]...
13236 -h, --help print this help, then exit
13237 -V, --version print version number and configuration settings, then exit
13238 --config print configuration, then exit
13239 -q, --quiet, --silent
13240 do not print progress messages
13241 -d, --debug don't remove temporary files
13242 --recheck update $as_me by reconfiguring in the same conditions
13243 --file=FILE[:TEMPLATE]
13244 instantiate the configuration file FILE
13245 --header=FILE[:TEMPLATE]
13246 instantiate the configuration header FILE
13248 Configuration files:
13251 Configuration headers:
13254 Configuration commands:
13257 Report bugs to the package provider."
13260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13261 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13264 configured by $0, generated by GNU Autoconf 2.69,
13265 with options \\"\$ac_cs_config\\"
13267 Copyright (C) 2012 Free Software Foundation, Inc.
13268 This config.status script is free software; the Free Software Foundation
13269 gives unlimited permission to copy, distribute and modify it."
13276 test -n "\$AWK" || AWK=awk
13279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13280 # The default lists apply if the user does not specify any file.
13286 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13287 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13291 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13303 # Handling of the options.
13304 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13306 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13307 $as_echo "$ac_cs_version"; exit ;;
13308 --config | --confi | --conf | --con | --co | --c )
13309 $as_echo "$ac_cs_config"; exit ;;
13310 --debug | --debu | --deb | --de | --d | -d )
13312 --file | --fil | --fi | --f )
13315 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13316 '') as_fn_error $? "missing file argument" ;;
13318 as_fn_append CONFIG_FILES " '$ac_optarg'"
13319 ac_need_defaults=false;;
13320 --header | --heade | --head | --hea )
13323 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13325 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13326 ac_need_defaults=false;;
13328 # Conflict between --help and --header
13329 as_fn_error $? "ambiguous option: \`$1'
13330 Try \`$0 --help' for more information.";;
13331 --help | --hel | -h )
13332 $as_echo "$ac_cs_usage"; exit ;;
13333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13334 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13337 # This is an error.
13338 -*) as_fn_error $? "unrecognized option: \`$1'
13339 Try \`$0 --help' for more information." ;;
13341 *) as_fn_append ac_config_targets " $1"
13342 ac_need_defaults=false ;;
13348 ac_configure_extra_args=
13350 if $ac_cs_silent; then
13352 ac_configure_extra_args="$ac_configure_extra_args --silent"
13356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13357 if \$ac_cs_recheck; then
13358 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13360 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13361 CONFIG_SHELL='$SHELL'
13362 export CONFIG_SHELL
13367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13371 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13372 ## Running $as_me. ##
13378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13382 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13383 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
13384 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
13385 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13386 LINGUAS="${LINGUAS-%UNSET%}"
13391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13393 # Handling of arguments.
13394 for ac_config_target in $ac_config_targets
13396 case $ac_config_target in
13397 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
13398 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13399 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
13401 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13406 # If the user did not use the arguments to specify the items to instantiate,
13407 # then the envvar interface is used. Set only those that are not.
13408 # We use the long form for the default assignment because of an extremely
13409 # bizarre bug on SunOS 4.1.3.
13410 if $ac_need_defaults; then
13411 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13412 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13413 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13416 # Have a temporary directory for convenience. Make it in the build tree
13417 # simply because there is no reason against having it here, and in addition,
13418 # creating and moving files from /tmp can sometimes cause problems.
13419 # Hook for its removal unless debugging.
13420 # Note that there is a small window in which the directory will not be cleaned:
13421 # after its creation but before its name has been assigned to `$tmp'.
13425 trap 'exit_status=$?
13426 : "${ac_tmp:=$tmp}"
13427 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13429 trap 'as_fn_exit 1' 1 2 13 15
13431 # Create a (secure) tmp directory for tmp files.
13434 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13438 tmp=./conf$$-$RANDOM
13439 (umask 077 && mkdir "$tmp")
13440 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13443 # Set up the scripts for CONFIG_FILES section.
13444 # No need to generate them if there are no CONFIG_FILES.
13445 # This happens for instance with `./config.status config.h'.
13446 if test -n "$CONFIG_FILES"; then
13448 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13449 ac_cs_awk_getline=:
13450 ac_cs_awk_pipe_init=
13451 ac_cs_awk_read_file='
13452 while ((getline aline < (F[key])) > 0)
13455 ac_cs_awk_pipe_fini=
13457 ac_cs_awk_getline=false
13458 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13459 ac_cs_awk_read_file='
13461 print "cat " F[key] " &&"
13462 '$ac_cs_awk_pipe_init
13463 # The final `:' finishes the AND list.
13464 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
13466 ac_cr=`echo X | tr X '\015'`
13467 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13468 # But we know of no other shell where ac_cr would be empty at this
13469 # point, so we can use a bashism as a fallback.
13470 if test "x$ac_cr" = x; then
13471 eval ac_cr=\$\'\\r\'
13473 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13474 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13477 ac_cs_awk_cr=$ac_cr
13480 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13483 # Create commands to substitute file output variables.
13485 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
13486 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
13487 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
13490 } >conf$$files.sh &&
13491 . ./conf$$files.sh ||
13492 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13493 rm -f conf$$files.sh
13496 echo "cat >conf$$subs.awk <<_ACEOF" &&
13497 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13499 } >conf$$subs.sh ||
13500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13501 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13503 for ac_last_try in false false false false false :; do
13504 . ./conf$$subs.sh ||
13505 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13507 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13508 if test $ac_delim_n = $ac_delim_num; then
13510 elif $ac_last_try; then
13511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13513 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13516 rm -f conf$$subs.sh
13518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13519 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13523 s/^/S["/; s/!.*/"]=/
13533 s/\(.\{148\}\)..*/\1/
13535 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13540 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13547 s/\(.\{148\}\)..*/\1/
13549 s/["\\]/\\&/g; s/^/"/; s/$/"/
13553 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13558 ' <conf$$subs.awk | sed '
13563 ' >>$CONFIG_STATUS || ac_write_fail=1
13564 rm -f conf$$subs.awk
13565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13567 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13568 for (key in S) S_is_set[key] = 1
13570 \$ac_cs_awk_pipe_init
13574 nfields = split(line, field, "@")
13576 len = length(field[1])
13577 for (i = 2; i < nfields; i++) {
13579 keylen = length(key)
13580 if (S_is_set[key]) {
13582 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13583 len += length(value) + length(field[++i])
13588 if (nfields == 3 && !substed) {
13590 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
13591 \$ac_cs_awk_read_file
13597 \$ac_cs_awk_pipe_fini
13600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13601 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13602 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13605 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13606 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13609 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13610 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13611 # trailing colons and then remove the whole line if VPATH becomes empty
13612 # (actually we leave an empty line to preserve line numbers).
13613 if test "x$srcdir" = x.; then
13614 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13633 fi # test -n "$CONFIG_FILES"
13635 # Set up the scripts for CONFIG_HEADERS section.
13636 # No need to generate them if there are no CONFIG_HEADERS.
13637 # This happens for instance with `./config.status Makefile'.
13638 if test -n "$CONFIG_HEADERS"; then
13639 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13643 # Transform confdefs.h into an awk script `defines.awk', embedded as
13644 # here-document in config.status, that substitutes the proper values into
13645 # config.h.in to produce config.h.
13647 # Create a delimiter string that does not exist in confdefs.h, to ease
13648 # handling of long lines.
13650 for ac_last_try in false false :; do
13651 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13652 if test -z "$ac_tt"; then
13654 elif $ac_last_try; then
13655 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13661 # For the awk script, D is an array of macro values keyed by name,
13662 # likewise P contains macro parameters if any. Preserve backslash
13663 # newline sequences.
13665 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13667 s/.\{148\}/&'"$ac_delim"'/g
13670 s/^[ ]*#[ ]*define[ ][ ]*/ /
13677 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13679 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13683 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13684 D["\1"]=" \3\\\\\\n"\\/p
13686 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13691 s/.\{148\}/&'"$ac_delim"'/g
13696 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13699 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13701 ' <confdefs.h | sed '
13702 s/'"$ac_delim"'/"\\\
13703 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13706 for (key in D) D_is_set[key] = 1
13709 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13711 split(line, arg, " ")
13712 if (arg[1] == "#") {
13716 defundef = substr(arg[1], 2)
13719 split(mac1, mac2, "(") #)
13721 prefix = substr(line, 1, index(line, defundef) - 1)
13722 if (D_is_set[macro]) {
13723 # Preserve the white space surrounding the "#".
13724 print prefix "define", macro P[macro] D[macro]
13727 # Replace #undef with comments. This is necessary, for example,
13728 # in the case of _POSIX_SOURCE, which is predefined and required
13729 # on some systems where configure will not decide to define it.
13730 if (defundef == "undef") {
13731 print "/*", prefix defundef, macro, "*/"
13739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13740 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13741 fi # test -n "$CONFIG_HEADERS"
13744 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13749 :[FHLC]) ac_mode=$ac_tag; continue;;
13751 case $ac_mode$ac_tag in
13753 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13754 :[FH]-) ac_tag=-:-;;
13755 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13772 -) ac_f="$ac_tmp/stdin";;
13773 *) # Look for the file first in the build tree, then in the source tree
13774 # (if the path is not absolute). The absolute path cannot be DOS-style,
13775 # because $ac_f cannot contain `:'.
13779 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13781 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13783 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13784 as_fn_append ac_file_inputs " '$ac_f'"
13787 # Let's still pretend it is `configure' which instantiates (i.e., don't
13788 # use $as_me), people would be surprised to read:
13789 # /* config.h. Generated by config.status. */
13790 configure_input='Generated from '`
13791 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13793 if test x"$ac_file" != x-; then
13794 configure_input="$ac_file. $configure_input"
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13796 $as_echo "$as_me: creating $ac_file" >&6;}
13798 # Neutralize special characters interpreted by sed in replacement strings.
13799 case $configure_input in #(
13800 *\&* | *\|* | *\\* )
13801 ac_sed_conf_input=`$as_echo "$configure_input" |
13802 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13803 *) ac_sed_conf_input=$configure_input;;
13807 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13808 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13813 ac_dir=`$as_dirname -- "$ac_file" ||
13814 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13815 X"$ac_file" : 'X\(//\)[^/]' \| \
13816 X"$ac_file" : 'X\(//\)$' \| \
13817 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13818 $as_echo X"$ac_file" |
13819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13823 /^X\(\/\/\)[^/].*/{
13836 as_dir="$ac_dir"; as_fn_mkdir_p
13840 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13842 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13843 # A ".." for each directory in $ac_dir_suffix.
13844 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13845 case $ac_top_builddir_sub in
13846 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13847 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13850 ac_abs_top_builddir=$ac_pwd
13851 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13852 # for backward compatibility:
13853 ac_top_builddir=$ac_top_build_prefix
13856 .) # We are building in place.
13858 ac_top_srcdir=$ac_top_builddir_sub
13859 ac_abs_top_srcdir=$ac_pwd ;;
13860 [\\/]* | ?:[\\/]* ) # Absolute name.
13861 ac_srcdir=$srcdir$ac_dir_suffix;
13862 ac_top_srcdir=$srcdir
13863 ac_abs_top_srcdir=$srcdir ;;
13864 *) # Relative name.
13865 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13866 ac_top_srcdir=$ac_top_build_prefix$srcdir
13867 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13869 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13879 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13880 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13882 ac_MKDIR_P=$MKDIR_P
13884 [\\/$]* | ?:[\\/]* ) ;;
13885 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13890 # If the template does not know about datarootdir, expand it.
13891 # FIXME: This hack should be removed a few years after 2.60.
13892 ac_datarootdir_hack=; ac_datarootdir_seen=
13903 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13904 *datarootdir*) ac_datarootdir_seen=yes;;
13905 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13907 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13910 ac_datarootdir_hack='
13911 s&@datadir@&$datadir&g
13912 s&@docdir@&$docdir&g
13913 s&@infodir@&$infodir&g
13914 s&@localedir@&$localedir&g
13915 s&@mandir@&$mandir&g
13916 s&\\\${datarootdir}&$datarootdir&g' ;;
13920 # Neutralize VPATH when `$srcdir' = `.'.
13921 # Shell code in configure.ac might set extrasub.
13922 # FIXME: do we really want to maintain this feature?
13923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13924 ac_sed_extra="$ac_vpsub
13927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13930 s|@configure_input@|$ac_sed_conf_input|;t t
13931 s&@top_builddir@&$ac_top_builddir_sub&;t t
13932 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13933 s&@srcdir@&$ac_srcdir&;t t
13934 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13935 s&@top_srcdir@&$ac_top_srcdir&;t t
13936 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13937 s&@builddir@&$ac_builddir&;t t
13938 s&@abs_builddir@&$ac_abs_builddir&;t t
13939 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13940 s&@INSTALL@&$ac_INSTALL&;t t
13941 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13942 $ac_datarootdir_hack
13944 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
13945 if $ac_cs_awk_getline; then
13946 $AWK -f "$ac_tmp/subs.awk"
13948 $AWK -f "$ac_tmp/subs.awk" | $SHELL
13950 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13952 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13953 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13954 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13955 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13957 which seems to be undefined. Please make sure it is defined" >&5
13958 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13959 which seems to be undefined. Please make sure it is defined" >&2;}
13961 rm -f "$ac_tmp/stdin"
13963 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13964 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13972 if test x"$ac_file" != x-; then
13974 $as_echo "/* $configure_input */" \
13975 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13976 } >"$ac_tmp/config.h" \
13977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13978 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13980 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13983 mv "$ac_tmp/config.h" "$ac_file" \
13984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13987 $as_echo "/* $configure_input */" \
13988 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13989 || as_fn_error $? "could not create -" "$LINENO" 5
13993 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13994 $as_echo "$as_me: executing $ac_file commands" >&6;}
13999 case $ac_file$ac_mode in
14000 "po-directories":C)
14001 for ac_file in $CONFIG_FILES; do
14002 # Support "outfile[:infile[:infile...]]"
14004 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14006 # PO directories have a Makefile.in generated from Makefile.in.in.
14007 case "$ac_file" in */Makefile.in)
14008 # Adjust a relative srcdir.
14009 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14010 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14011 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14012 # In autoconf-2.13 it is called $ac_given_srcdir.
14013 # In autoconf-2.50 it is called $srcdir.
14014 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14015 case "$ac_given_srcdir" in
14016 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14017 /*) top_srcdir="$ac_given_srcdir" ;;
14018 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14020 # Treat a directory as a PO directory if and only if it has a
14021 # POTFILES.in file. This allows packages to have multiple PO
14022 # directories under different names or in different locations.
14023 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14024 rm -f "$ac_dir/POTFILES"
14025 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14026 gt_tab=`printf '\t'`
14027 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"
14028 POMAKEFILEDEPS="POTFILES.in"
14029 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14030 # on $ac_dir but don't depend on user-specified configuration
14032 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14033 # The LINGUAS file contains the set of available languages.
14034 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14035 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14037 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14038 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14040 # The set of available languages was given in configure.in.
14041 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
14044 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14045 # Compute UPDATEPOFILES
14046 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14047 # Compute DUMMYPOFILES
14048 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14050 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14051 case "$ac_given_srcdir" in
14053 *) srcdirpre='$(srcdir)/' ;;
14059 for lang in $ALL_LINGUAS; do
14060 POFILES="$POFILES $srcdirpre$lang.po"
14061 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14062 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14063 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14065 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14066 # environment variable.
14068 if test -n "$ALL_LINGUAS"; then
14069 for presentlang in $ALL_LINGUAS; do
14071 if test "%UNSET%" != "$LINGUAS"; then
14072 desiredlanguages="$LINGUAS"
14074 desiredlanguages="$ALL_LINGUAS"
14076 for desiredlang in $desiredlanguages; do
14077 # Use the presentlang catalog if desiredlang is
14078 # a. equal to presentlang, or
14079 # b. a variant of presentlang (because in this case,
14080 # presentlang can be used as a fallback for messages
14081 # which are not translated in the desiredlang catalog).
14082 case "$desiredlang" in
14083 "$presentlang"*) useit=yes;;
14086 if test $useit = yes; then
14087 INST_LINGUAS="$INST_LINGUAS $presentlang"
14092 if test -n "$INST_LINGUAS"; then
14093 for lang in $INST_LINGUAS; do
14094 CATALOGS="$CATALOGS $lang.gmo"
14097 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14098 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"
14099 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14100 if test -f "$f"; then
14102 *.orig | *.bak | *~) ;;
14103 *) cat "$f" >> "$ac_dir/Makefile" ;;
14118 ac_clean_files=$ac_clean_files_save
14120 test $ac_write_fail = 0 ||
14121 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14124 # configure is writing to config.log, and then calls config.status.
14125 # config.status does its own redirection, appending to config.log.
14126 # Unfortunately, on DOS this fails, as config.log is still kept open
14127 # by configure, so config.status won't be able to write to it; its
14128 # output is simply discarded. So we exec the FD to /dev/null,
14129 # effectively closing config.log, so it can be properly (re)opened and
14130 # appended to by config.status. When coming back to configure, we
14131 # need to make the FD available again.
14132 if test "$no_create" != yes; then
14134 ac_config_status_args=
14135 test "$silent" = yes &&
14136 ac_config_status_args="$ac_config_status_args --quiet"
14138 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14140 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14141 # would make configure fail if this is the last instruction.
14142 $ac_cs_success || as_fn_exit 1
14144 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14146 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14149 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi