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
705 XGETTEXT_EXTRA_OPTIONS
706 MSGMERGE_FOR_MSGFMT_OPTION
713 GETTEXT_MACRO_VERSION
829 program_transform_name
840 ac_subst_files='MCONFIG
846 PUBLIC_CONFIG_HEADER'
848 enable_option_checking
854 enable_maintainer_mode
855 enable_symlink_install
856 enable_relative_symlinks
857 enable_symlink_relative_symlinks
859 enable_verbose_makecmds
868 enable_developer_features
878 enable_e2initrd_helper
885 enable_bmap_stats_ops
899 with_systemd_unit_dir
901 ac_precious_vars='build_alias
919 # Initialize some variables set by options.
921 ac_init_version=false
922 ac_unrecognized_opts=
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
933 program_transform_name=s,x,x,
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 runstatedir='${localstatedir}/run'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE}'
959 infodir='${datarootdir}/info'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1011 -datadir | --datadir | --datadi | --datad)
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1023 -disable-* | --disable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1037 eval enable_$ac_useropt=no ;;
1039 -docdir | --docdir | --docdi | --doc | --do)
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
1049 -enable-* | --enable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1063 eval enable_$ac_useropt=\$ac_optarg ;;
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
1072 exec_prefix=$ac_optarg ;;
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
1085 -host | --host | --hos | --ho)
1086 ac_prev=host_alias ;;
1087 -host=* | --host=* | --hos=* | --ho=*)
1088 host_alias=$ac_optarg ;;
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094 htmldir=$ac_optarg ;;
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
1101 includedir=$ac_optarg ;;
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106 infodir=$ac_optarg ;;
1108 -libdir | --libdir | --libdi | --libd)
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111 libdir=$ac_optarg ;;
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
1118 libexecdir=$ac_optarg ;;
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
1126 | --localstate | --localstat | --localsta | --localst | --locals)
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130 localstatedir=$ac_optarg ;;
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135 mandir=$ac_optarg ;;
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142 | --no-cr | --no-c | -n)
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156 oldincludedir=$ac_optarg ;;
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161 prefix=$ac_optarg ;;
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168 program_prefix=$ac_optarg ;;
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175 program_suffix=$ac_optarg ;;
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
1192 program_transform_name=$ac_optarg ;;
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1199 -psdir | --psdir | --psdi | --psd | --ps)
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1208 -runstatedir | --runstatedir | --runstatedi | --runstated \
1209 | --runstate | --runstat | --runsta | --runst | --runs \
1210 | --run | --ru | --r)
1211 ac_prev=runstatedir ;;
1212 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1213 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1214 | --run=* | --ru=* | --r=*)
1215 runstatedir=$ac_optarg ;;
1217 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221 sbindir=$ac_optarg ;;
1223 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225 | --sharedst | --shareds | --shared | --share | --shar \
1227 ac_prev=sharedstatedir ;;
1228 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232 sharedstatedir=$ac_optarg ;;
1234 -site | --site | --sit)
1236 -site=* | --site=* | --sit=*)
1239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242 srcdir=$ac_optarg ;;
1244 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245 | --syscon | --sysco | --sysc | --sys | --sy)
1246 ac_prev=sysconfdir ;;
1247 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249 sysconfdir=$ac_optarg ;;
1251 -target | --target | --targe | --targ | --tar | --ta | --t)
1252 ac_prev=target_alias ;;
1253 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254 target_alias=$ac_optarg ;;
1256 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 -version | --version | --versio | --versi | --vers | -V)
1260 ac_init_version=: ;;
1263 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 as_fn_error $? "invalid package name: $ac_useropt"
1267 ac_useropt_orig=$ac_useropt
1268 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1273 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274 ac_unrecognized_sep=', ';;
1276 eval with_$ac_useropt=\$ac_optarg ;;
1278 -without-* | --without-*)
1279 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error $? "invalid package name: $ac_useropt"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1292 eval with_$ac_useropt=no ;;
1295 # Obsolete; use --with-x.
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303 x_includes=$ac_optarg ;;
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310 x_libraries=$ac_optarg ;;
1312 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1313 Try \`$0 --help' for more information"
1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318 # Reject names that are not valid shell variable names.
1319 case $ac_envvar in #(
1320 '' | [0-9]* | *[!_$as_cr_alnum]* )
1321 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1323 eval $ac_envvar=\$ac_optarg
1324 export $ac_envvar ;;
1327 # FIXME: should be removed in autoconf 3.0.
1328 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1337 if test -n "$ac_prev"; then
1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339 as_fn_error $? "missing argument to $ac_option"
1342 if test -n "$ac_unrecognized_opts"; then
1343 case $enable_option_checking in
1345 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1346 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1350 # Check all directory arguments for consistency.
1351 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir runstatedir
1356 eval ac_val=\$$ac_var
1357 # Remove trailing slashes.
1360 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361 eval $ac_var=\$ac_val;;
1363 # Be sure to have absolute directory names.
1365 [\\/$]* | ?:[\\/]* ) continue;;
1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1376 target=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 elif test "x$build_alias" != "x$host_alias"; then
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390 test "$silent" = yes && exec 6>/dev/null
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396 as_fn_error $? "working directory cannot be determined"
1397 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1398 as_fn_error $? "pwd does not report name of working directory"
1401 # Find the source files, if location was not specified.
1402 if test -z "$srcdir"; then
1403 ac_srcdir_defaulted=yes
1404 # Try the directory containing this script, then the parent directory.
1405 ac_confdir=`$as_dirname -- "$as_myself" ||
1406 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407 X"$as_myself" : 'X\(//\)[^/]' \| \
1408 X"$as_myself" : 'X\(//\)$' \| \
1409 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410 $as_echo X"$as_myself" |
1411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1433 ac_srcdir_defaulted=no
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1437 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1439 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 for ac_var in $ac_precious_vars; do
1454 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_env_${ac_var}_value=\$${ac_var}
1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461 # Report the --help message.
1463 if test "$ac_init_help" = "long"; then
1464 # Omit some internal or obsolete options to make the list less imposing.
1465 # This message is too long to be a string in the A/UX 3.1 sh.
1467 \`configure' configures this package to adapt to many kinds of systems.
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE. See below for descriptions of some of the useful variables.
1474 Defaults for the options are specified in brackets.
1477 -h, --help display this help and exit
1478 --help=short display options specific to this package
1479 --help=recursive display the short help of all the included packages
1480 -V, --version display version information and exit
1481 -q, --quiet, --silent do not print \`checking ...' messages
1482 --cache-file=FILE cache test results in FILE [disabled]
1483 -C, --config-cache alias for \`--cache-file=config.cache'
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1487 Installation directories:
1488 --prefix=PREFIX install architecture-independent files in PREFIX
1489 [$ac_default_prefix]
1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1498 For better control, use the options below.
1500 Fine tuning of the installation directories:
1501 --bindir=DIR user executables [EPREFIX/bin]
1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
1503 --libexecdir=DIR program executables [EPREFIX/libexec]
1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1507 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1508 --libdir=DIR object code libraries [EPREFIX/lib]
1509 --includedir=DIR C header files [PREFIX/include]
1510 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1513 --infodir=DIR info documentation [DATAROOTDIR/info]
1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1515 --mandir=DIR man documentation [DATAROOTDIR/man]
1516 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1517 --htmldir=DIR html documentation [DOCDIR]
1518 --dvidir=DIR dvi documentation [DOCDIR]
1519 --pdfdir=DIR pdf documentation [DOCDIR]
1520 --psdir=DIR ps documentation [DOCDIR]
1526 --build=BUILD configure for building on BUILD [guessed]
1527 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1531 if test -n "$ac_init_help"; then
1536 --disable-option-checking ignore unrecognized --enable/--with options
1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1539 --enable-maintainer-mode enable makefile rules useful for maintainers
1540 --enable-symlink-install use symlinks when installing instead of hard links
1541 --enable-relative-symlinks use relative symlinks when installing
1543 --enable-symlink-build use symlinks while building instead of hard links
1544 --enable-verbose-makecmds enable verbose make command output
1545 --enable-elf-shlibs select ELF shared libraries
1546 --enable-bsd-shlibs select BSD shared libraries
1547 --enable-profile build profiling libraries
1548 --enable-gcov build for coverage testing using gcov
1549 --enable-hardening build for coverage testing using gcov
1550 --enable-jbd-debug enable journal debugging
1551 --enable-blkid-debug enable blkid debugging
1552 --disable-testio-debug disable the use of the test I/O manager for debugging
1553 --enable-developer-features enable features for use by ext4 developers
1554 --enable-libuuid build and use private uuid library
1555 --enable-libblkid build and use private blkid library
1556 --enable-subset enable subset-only build
1557 --disable-backtrace disable use backtrace
1558 --disable-debugfs disable support of debugfs program
1559 --disable-imager disable support of e2image program
1560 --disable-resizer disable support of e2resize program
1561 --disable-defrag disable support of e4defrag program
1562 --enable-fsck build fsck wrapper program
1563 --enable-e2initrd-helper build e2initrd-helper program
1564 --disable-tls disable use of thread local support
1565 --disable-uuidd disable building the uuid daemon
1566 --disable-mmp disable support mmp, Multi Mount Protection
1567 --disable-tdb disable tdb support
1568 --disable-bmap-stats disable collection of bitmap stats.
1569 --enable-bmap-stats-ops enable collection of additional bitmap stats
1570 --disable-nls do not use Native Language Support
1571 --disable-rpath do not hardcode runtime library paths
1572 --disable-fuse2fs do not build fuse2fs
1573 --enable-lto enable link time optimization
1574 --enable-ubsan enable undefined behavior sanitizer
1575 --enable-addrsan enable address sanitizer
1576 --enable-threadsan enable thread sanitizer
1579 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1580 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1581 --with-diet-libc use diet libc
1582 --with-cc no longer supported, use CC= instead
1583 --with-ccopts no longer supported, use CFLAGS= instead
1584 --with-ldopts no longer supported, use LDFLAGS= instead
1585 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1586 --without-pthread disable use of pthread support
1587 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1588 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1589 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1590 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1591 --without-libintl-prefix don't search for libintl in includedir and libdir
1592 --with-multiarch=ARCH specify the multiarch triplet
1593 --with-udev-rules-dir[=DIR]
1594 Install udev rules into DIR.
1595 --with-crond-dir[=DIR] Install system crontabs into DIR.
1596 --with-systemd-unit-dir[=DIR]
1597 Install systemd system units into DIR.
1599 Some influential environment variables:
1600 CC C compiler command
1601 CFLAGS C compiler flags
1602 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1603 nonstandard directory <lib dir>
1604 LIBS libraries to pass to the linker, e.g. -l<library>
1605 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1606 you have headers in a nonstandard directory <include dir>
1608 PKG_CONFIG path to pkg-config utility
1610 directories to add to pkg-config's search path
1612 path overriding pkg-config's built-in search path
1613 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1614 udev_LIBS linker flags for udev, overriding pkg-config
1616 C compiler flags for systemd, overriding pkg-config
1618 linker flags for systemd, overriding pkg-config
1620 Use these variables to override the choices made by `configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1623 Report bugs to the package provider.
1628 if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
1630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631 test -d "$ac_dir" ||
1632 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1640 # A ".." for each directory in $ac_dir_suffix.
1641 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1642 case $ac_top_builddir_sub in
1643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647 ac_abs_top_builddir=$ac_pwd
1648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649 # for backward compatibility:
1650 ac_top_builddir=$ac_top_build_prefix
1653 .) # We are building in place.
1655 ac_top_srcdir=$ac_top_builddir_sub
1656 ac_abs_top_srcdir=$ac_pwd ;;
1657 [\\/]* | ?:[\\/]* ) # Absolute name.
1658 ac_srcdir=$srcdir$ac_dir_suffix;
1659 ac_top_srcdir=$srcdir
1660 ac_abs_top_srcdir=$srcdir ;;
1662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663 ac_top_srcdir=$ac_top_build_prefix$srcdir
1664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1668 cd "$ac_dir" || { ac_status=$?; continue; }
1669 # Check for guested configure.
1670 if test -f "$ac_srcdir/configure.gnu"; then
1672 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673 elif test -f "$ac_srcdir/configure"; then
1675 $SHELL "$ac_srcdir/configure" --help=recursive
1677 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1679 cd "$ac_pwd" || { ac_status=$?; break; }
1683 test -n "$ac_init_help" && exit $ac_status
1684 if $ac_init_version; then
1687 generated by GNU Autoconf 2.69
1689 Copyright (C) 2012 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1696 ## ------------------------ ##
1697 ## Autoconf initialization. ##
1698 ## ------------------------ ##
1700 # ac_fn_c_try_compile LINENO
1701 # --------------------------
1702 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_compile ()
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext
1707 if { { ac_try="$ac_compile"
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_compile") 2>conftest.err
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest.$ac_objext; then :
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1736 } # ac_fn_c_try_compile
1738 # ac_fn_c_try_link LINENO
1739 # -----------------------
1740 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 rm -f conftest.$ac_objext conftest$ac_exeext
1745 if { { ac_try="$ac_link"
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>conftest.err
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && {
1761 test -z "$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 } && test -s conftest$ac_exeext && {
1764 test "$cross_compiling" = yes ||
1765 test -x conftest$ac_exeext
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1774 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776 # interfere with the next link command; also delete a directory that is
1777 # left behind by Apple's compiler. We do this before executing the actions.
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1782 } # ac_fn_c_try_link
1784 # ac_fn_c_try_cpp LINENO
1785 # ----------------------
1786 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if { { ac_try="$ac_cpp conftest.$ac_ext"
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } > conftest.i && {
1806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1821 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1824 # the include files in INCLUDES and setting the cache variable VAR
1826 ac_fn_c_check_header_mongrel ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if eval \${$3+:} false; then :
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833 $as_echo_n "(cached) " >&6
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1839 # Is the header compilable?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1841 $as_echo_n "checking $2 usability... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 ac_header_compiler=yes
1850 ac_header_compiler=no
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1854 $as_echo "$ac_header_compiler" >&6; }
1856 # Is the header present?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1858 $as_echo_n "checking $2 presence... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1863 if ac_fn_c_try_cpp "$LINENO"; then :
1864 ac_header_preproc=yes
1866 ac_header_preproc=no
1868 rm -f conftest.err conftest.i conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1870 $as_echo "$ac_header_preproc" >&6; }
1872 # So? What about this header?
1873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1876 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1882 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1884 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1886 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1888 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896 $as_echo_n "(cached) " >&6
1898 eval "$3=\$ac_header_compiler"
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 } # ac_fn_c_check_header_mongrel
1908 # ac_fn_c_try_run LINENO
1909 # ----------------------
1910 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1911 # that executables *can* be run.
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 if { { ac_try="$ac_link"
1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918 *) ac_try_echo=$ac_try;;
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922 (eval "$ac_link") 2>&5
1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1926 { { case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_try") 2>&5
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; }; }; then :
1938 $as_echo "$as_me: program exited with status $ac_status" >&5
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1942 ac_retval=$ac_status
1944 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 as_fn_set_status $ac_retval
1950 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1951 # -------------------------------------------------------
1952 # Tests whether HEADER exists and can be compiled using the include files in
1953 # INCLUDES, setting the cache variable VAR accordingly.
1954 ac_fn_c_check_header_compile ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if eval \${$3+:} false; then :
1960 $as_echo_n "(cached) " >&6
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1967 if ac_fn_c_try_compile "$LINENO"; then :
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 } # ac_fn_c_check_header_compile
1981 # ac_fn_c_check_func LINENO FUNC VAR
1982 # ----------------------------------
1983 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1984 ac_fn_c_check_func ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990 $as_echo_n "(cached) " >&6
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1994 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1996 #define $2 innocuous_$2
1998 /* System header to define __stub macros and hopefully few prototypes,
1999 which can conflict with char $2 (); below.
2000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2001 <limits.h> exists even on freestanding compilers. */
2004 # include <limits.h>
2006 # include <assert.h>
2011 /* Override any GCC internal prototype to avoid an error.
2012 Use char because int might match the return type of a GCC
2013 builtin and then its argument prototype would still apply. */
2018 /* The GNU C library defines this for functions which it implements
2019 to always fail with ENOSYS. Some functions are actually named
2020 something starting with __ and the normal name is an alias. */
2021 #if defined __stub_$2 || defined __stub___$2
2033 if ac_fn_c_try_link "$LINENO"; then :
2038 rm -f core conftest.err conftest.$ac_objext \
2039 conftest$ac_exeext conftest.$ac_ext
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 } # ac_fn_c_check_func
2048 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2049 # ----------------------------------------------------
2050 # Tries to find if the field MEMBER exists in type AGGR, after including
2051 # INCLUDES, setting cache variable VAR accordingly.
2052 ac_fn_c_check_member ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2056 $as_echo_n "checking for $2.$3... " >&6; }
2057 if eval \${$4+:} false; then :
2058 $as_echo_n "(cached) " >&6
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2073 if ac_fn_c_try_compile "$LINENO"; then :
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2083 if (sizeof ac_aggr.$3)
2089 if ac_fn_c_try_compile "$LINENO"; then :
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103 } # ac_fn_c_check_member
2105 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2106 # -------------------------------------------
2107 # Tests whether TYPE exists after having included INCLUDES, setting cache
2108 # variable VAR accordingly.
2109 ac_fn_c_check_type ()
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if eval \${$3+:} false; then :
2115 $as_echo_n "(cached) " >&6
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2143 if ac_fn_c_try_compile "$LINENO"; then :
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157 } # ac_fn_c_check_type
2159 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2160 # ---------------------------------------------
2161 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2163 ac_fn_c_check_decl ()
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 as_decl_name=`echo $2|sed 's/ *(.*//'`
2167 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2169 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2170 if eval \${$3+:} false; then :
2171 $as_echo_n "(cached) " >&6
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2179 #ifndef $as_decl_name
2181 (void) $as_decl_use;
2183 (void) $as_decl_name;
2191 if ac_fn_c_try_compile "$LINENO"; then :
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203 } # ac_fn_c_check_decl
2205 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2206 # --------------------------------------------
2207 # Tries to find the compile-time value of EXPR in a program that includes
2208 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2210 ac_fn_c_compute_int ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 if test "$cross_compiling" = yes; then
2214 # Depending upon the size, compute the lo and hi bounds.
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2221 static int test_array [1 - 2 * !(($2) >= 0)];
2223 return test_array [0];
2229 if ac_fn_c_try_compile "$LINENO"; then :
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2238 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2240 return test_array [0];
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247 ac_hi=$ac_mid; break
2249 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2250 if test $ac_lo -le $ac_mid; then
2254 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2265 static int test_array [1 - 2 * !(($2) < 0)];
2267 return test_array [0];
2273 if ac_fn_c_try_compile "$LINENO"; then :
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2282 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2284 return test_array [0];
2290 if ac_fn_c_try_compile "$LINENO"; then :
2291 ac_lo=$ac_mid; break
2293 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2294 if test $ac_mid -le $ac_hi; then
2298 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 # Binary search between lo and hi bounds.
2309 while test "x$ac_lo" != "x$ac_hi"; do
2310 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2317 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2319 return test_array [0];
2325 if ac_fn_c_try_compile "$LINENO"; then :
2328 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2340 static long int longval () { return $2; }
2341 static unsigned long int ulongval () { return $2; }
2348 FILE *f = fopen ("conftest.val", "w");
2353 long int i = longval ();
2356 fprintf (f, "%ld", i);
2360 unsigned long int i = ulongval ();
2363 fprintf (f, "%lu", i);
2365 /* Do not output a trailing newline, as this causes \r\n confusion
2366 on some platforms. */
2367 return ferror (f) || fclose (f) != 0;
2373 if ac_fn_c_try_run "$LINENO"; then :
2374 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2379 conftest.$ac_objext conftest.beam conftest.$ac_ext
2383 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384 as_fn_set_status $ac_retval
2386 } # ac_fn_c_compute_int
2387 cat >config.log <<_ACEOF
2388 This file contains any messages produced by compilers while
2389 running configure, to aid debugging if configure makes a mistake.
2391 It was created by $as_me, which was
2392 generated by GNU Autoconf 2.69. Invocation command line was
2404 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2405 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2406 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2407 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2408 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2410 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2411 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2413 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2414 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2415 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2416 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2417 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2418 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2419 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir=.
2428 $as_echo "PATH: $as_dir"
2444 # Keep a trace of the command line.
2445 # Strip out --no-create and --no-recursion so they do not pile up.
2446 # Strip out --silent because we don't want to record it for future runs.
2447 # Also quote any args containing shell meta-characters.
2448 # Make two passes to allow for proper duplicate-argument suppression.
2452 ac_must_keep_next=false
2458 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2459 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2460 | -silent | --silent | --silen | --sile | --sil)
2463 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2466 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2468 as_fn_append ac_configure_args1 " '$ac_arg'"
2469 if test $ac_must_keep_next = true; then
2470 ac_must_keep_next=false # Got value, back to normal.
2473 *=* | --config-cache | -C | -disable-* | --disable-* \
2474 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2475 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2476 | -with-* | --with-* | -without-* | --without-* | --x)
2477 case "$ac_configure_args0 " in
2478 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2481 -* ) ac_must_keep_next=true ;;
2484 as_fn_append ac_configure_args " '$ac_arg'"
2489 { ac_configure_args0=; unset ac_configure_args0;}
2490 { ac_configure_args1=; unset ac_configure_args1;}
2492 # When interrupted or exit'd, cleanup temporary files, and complete
2493 # config.log. We remove comments because anyway the quotes in there
2494 # would cause problems or look ugly.
2495 # WARNING: Use '\'' to represent an apostrophe within the trap.
2496 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2497 trap 'exit_status=$?
2498 # Save into config.log some information that might help in debugging.
2502 $as_echo "## ---------------- ##
2503 ## Cache variables. ##
2504 ## ---------------- ##"
2506 # The following way of writing the cache mishandles newlines in values,
2508 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2509 eval ac_val=\$$ac_var
2513 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2514 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2517 _ | IFS | as_nl) ;; #(
2518 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2519 *) { eval $ac_var=; unset $ac_var;} ;;
2524 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2525 *${as_nl}ac_space=\ *)
2527 "s/'\''/'\''\\\\'\'''\''/g;
2528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2538 $as_echo "## ----------------- ##
2539 ## Output variables. ##
2540 ## ----------------- ##"
2542 for ac_var in $ac_subst_vars
2544 eval ac_val=\$$ac_var
2546 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2548 $as_echo "$ac_var='\''$ac_val'\''"
2552 if test -n "$ac_subst_files"; then
2553 $as_echo "## ------------------- ##
2554 ## File substitutions. ##
2555 ## ------------------- ##"
2557 for ac_var in $ac_subst_files
2559 eval ac_val=\$$ac_var
2561 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2563 $as_echo "$ac_var='\''$ac_val'\''"
2568 if test -s confdefs.h; then
2569 $as_echo "## ----------- ##
2576 test "$ac_signal" != 0 &&
2577 $as_echo "$as_me: caught signal $ac_signal"
2578 $as_echo "$as_me: exit $exit_status"
2580 rm -f core *.core core.conftest.* &&
2581 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2584 for ac_signal in 1 2 13 15; do
2585 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2589 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2590 rm -f -r conftest* confdefs.h
2592 $as_echo "/* confdefs.h */" > confdefs.h
2594 # Predefined preprocessor variables.
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_NAME "$PACKAGE_NAME"
2600 cat >>confdefs.h <<_ACEOF
2601 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE_STRING "$PACKAGE_STRING"
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_URL "$PACKAGE_URL"
2621 # Let the site file select an alternate cache file if it wants to.
2622 # Prefer an explicitly selected file to automatically selected ones.
2625 if test -n "$CONFIG_SITE"; then
2626 # We do not want a PATH search for config.site.
2627 case $CONFIG_SITE in #((
2628 -*) ac_site_file1=./$CONFIG_SITE;;
2629 */*) ac_site_file1=$CONFIG_SITE;;
2630 *) ac_site_file1=./$CONFIG_SITE;;
2632 elif test "x$prefix" != xNONE; then
2633 ac_site_file1=$prefix/share/config.site
2634 ac_site_file2=$prefix/etc/config.site
2636 ac_site_file1=$ac_default_prefix/share/config.site
2637 ac_site_file2=$ac_default_prefix/etc/config.site
2639 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2641 test "x$ac_site_file" = xNONE && continue
2642 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2644 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2645 sed 's/^/| /' "$ac_site_file" >&5
2647 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2649 as_fn_error $? "failed to load site script $ac_site_file
2650 See \`config.log' for more details" "$LINENO" 5; }
2654 if test -r "$cache_file"; then
2655 # Some versions of bash will fail to source /dev/null (special files
2656 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2657 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2659 $as_echo "$as_me: loading cache $cache_file" >&6;}
2661 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2662 *) . "./$cache_file";;
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2667 $as_echo "$as_me: creating cache $cache_file" >&6;}
2671 gt_needs="$gt_needs "
2672 # Check that the precious variables saved in the cache have kept the same
2674 ac_cache_corrupted=false
2675 for ac_var in $ac_precious_vars; do
2676 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2677 eval ac_new_set=\$ac_env_${ac_var}_set
2678 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2679 eval ac_new_val=\$ac_env_${ac_var}_value
2680 case $ac_old_set,$ac_new_set in
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2683 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2684 ac_cache_corrupted=: ;;
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2687 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2688 ac_cache_corrupted=: ;;
2691 if test "x$ac_old_val" != "x$ac_new_val"; then
2692 # differences in whitespace do not lead to failure.
2693 ac_old_val_w=`echo x $ac_old_val`
2694 ac_new_val_w=`echo x $ac_new_val`
2695 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2697 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2698 ac_cache_corrupted=:
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2701 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2702 eval $ac_var=\$ac_old_val
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2705 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2707 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2710 # Pass precious variables to config.status.
2711 if test "$ac_new_set" = set; then
2713 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2714 *) ac_arg=$ac_var=$ac_new_val ;;
2716 case " $ac_configure_args " in
2717 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2718 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2722 if $ac_cache_corrupted; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2726 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2727 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2729 ## -------------------- ##
2730 ## Main body of script. ##
2731 ## -------------------- ##
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 for ac_dir in config "$srcdir"/config; do
2743 if test -f "$ac_dir/install-sh"; then
2745 ac_install_sh="$ac_aux_dir/install-sh -c"
2747 elif test -f "$ac_dir/install.sh"; then
2749 ac_install_sh="$ac_aux_dir/install.sh -c"
2751 elif test -f "$ac_dir/shtool"; then
2753 ac_install_sh="$ac_aux_dir/shtool install -c"
2757 if test -z "$ac_aux_dir"; then
2758 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2761 # These three variables are undocumented and unsupported,
2762 # and are intended to be withdrawn in a future Autoconf release.
2763 # They can cause serious problems if a builder's source tree is in a directory
2764 # whose full name contains unusual characters.
2765 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2766 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2767 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2770 ac_config_headers="$ac_config_headers lib/config.h"
2776 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2777 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2778 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2779 | tr \" " " | awk '{print $1}'`
2780 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2781 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2782 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2784 if expr $YEAR ">" 1900 > /dev/null ; then
2785 E2FSPROGS_YEAR=$YEAR
2786 elif expr $YEAR ">" 90 >/dev/null ; then
2787 E2FSPROGS_YEAR=19$YEAR
2789 E2FSPROGS_YEAR=20$YEAR
2793 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2794 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2795 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2796 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2797 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2798 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2799 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2800 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2801 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2802 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2803 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2804 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2805 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2806 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2809 base_ver=`echo $E2FSPROGS_VERSION | \
2810 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2812 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2814 case $E2FSPROGS_VERSION in
2816 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2819 E2FSPROGS_PKGVER="$base_ver"
2823 unset DATE MONTH YEAR base_ver pre_vers date_spec
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2825 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2827 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2836 # Check whether --with-diet-libc was given.
2837 if test "${with_diet_libc+set}" = set; then :
2838 withval=$with_diet_libc; CC="diet cc -nostdinc"
2844 LIBS="$LIBS -lcompat"
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2847 $as_echo "CC=$CC" >&6; }
2849 # Make sure we can run config.sub.
2850 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2851 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2854 $as_echo_n "checking build system type... " >&6; }
2855 if ${ac_cv_build+:} false; then :
2856 $as_echo_n "(cached) " >&6
2858 ac_build_alias=$build_alias
2859 test "x$ac_build_alias" = x &&
2860 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2861 test "x$ac_build_alias" = x &&
2862 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2863 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2864 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2868 $as_echo "$ac_cv_build" >&6; }
2869 case $ac_cv_build in
2871 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2874 ac_save_IFS=$IFS; IFS='-'
2880 # Remember, the first character of IFS is used to create $*,
2881 # except with old shells:
2884 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2888 $as_echo_n "checking host system type... " >&6; }
2889 if ${ac_cv_host+:} false; then :
2890 $as_echo_n "(cached) " >&6
2892 if test "x$host_alias" = x; then
2893 ac_cv_host=$ac_cv_build
2895 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2896 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2901 $as_echo "$ac_cv_host" >&6; }
2904 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2907 ac_save_IFS=$IFS; IFS='-'
2913 # Remember, the first character of IFS is used to create $*,
2914 # except with old shells:
2917 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 if test -n "$ac_tool_prefix"; then
2927 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 if test -n "$CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2965 if test -z "$ac_cv_prog_CC"; then
2967 # Extract the first word of "gcc", so it can be a program name with args.
2968 set dummy gcc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2972 $as_echo_n "(cached) " >&6
2974 if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_ac_ct_CC="gcc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997 $as_echo "$ac_ct_CC" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3003 if test "x$ac_ct_CC" = x; then
3006 case $cross_compiling:$ac_tool_warned in
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3010 ac_tool_warned=yes ;;
3018 if test -z "$CC"; then
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3021 set dummy ${ac_tool_prefix}cc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 ac_cv_prog_CC="${ac_tool_prefix}cc"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 if test -n "$CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3059 if test -z "$CC"; then
3060 # Extract the first word of "cc", so it can be a program name with args.
3061 set dummy cc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_CC+:} false; then :
3065 $as_echo_n "(cached) " >&6
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3079 ac_prog_rejected=yes
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 if test $ac_prog_rejected = yes; then
3091 # We found a bogon in the path, so make sure we never use it.
3092 set dummy $ac_cv_prog_CC
3094 if test $# != 0; then
3095 # We chose a different compiler from the bogus one.
3096 # However, it has the same basename, so the bogon will be chosen
3097 # first if we set CC to just the basename; use the full file name.
3099 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3105 if test -n "$CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3115 if test -z "$CC"; then
3116 if test -n "$ac_tool_prefix"; then
3117 for ac_prog in cl.exe
3119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3156 test -n "$CC" && break
3159 if test -z "$CC"; then
3161 for ac_prog in cl.exe
3163 # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3170 if test -n "$ac_ct_CC"; then
3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_ac_ct_CC="$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191 if test -n "$ac_ct_CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193 $as_echo "$ac_ct_CC" >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3200 test -n "$ac_ct_CC" && break
3203 if test "x$ac_ct_CC" = x; then
3206 case $cross_compiling:$ac_tool_warned in
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned=yes ;;
3219 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $? "no acceptable C compiler found in \$PATH
3222 See \`config.log' for more details" "$LINENO" 5; }
3224 # Provide some information about the compiler.
3225 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3228 for ac_option in --version -v -V -qversion; do
3229 { { ac_try="$ac_compiler $ac_option >&5"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3238 if test -s conftest.err; then
3240 ... rest of stderr output deleted ...
3241 10q' conftest.err >conftest.er1
3242 cat conftest.er1 >&5
3244 rm -f conftest.er1 conftest.err
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3260 ac_clean_files_save=$ac_clean_files
3261 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3262 # Try to create an executable without -o first, disregard a.out.
3263 # It will help us diagnose broken compilers, and finding out an intuition
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3266 $as_echo_n "checking whether the C compiler works... " >&6; }
3267 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3269 # The possible output files:
3270 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3273 for ac_file in $ac_files
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3277 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3282 if { { ac_try="$ac_link_default"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_link_default") 2>&5
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; then :
3293 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3294 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3295 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3296 # so that the user can short-circuit this test for compilers unknown to
3298 for ac_file in $ac_files ''
3300 test -f "$ac_file" || continue
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3305 # We found the default executable, but exeext='' is most
3309 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3311 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313 # We set ac_cv_exeext here because the later test for it is not
3314 # safe: cross compilers may not add the suffix if given an `-o'
3315 # argument, so we may need to know it at that point already.
3316 # Even if this section looks crufty: it has the advantage of
3323 test "$ac_cv_exeext" = no && ac_cv_exeext=
3328 if test -z "$ac_file"; then :
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 $as_echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 as_fn_error 77 "C compiler cannot create executables
3337 See \`config.log' for more details" "$LINENO" 5; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3340 $as_echo "yes" >&6; }
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3343 $as_echo_n "checking for C compiler default output file name... " >&6; }
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3345 $as_echo "$ac_file" >&6; }
3346 ac_exeext=$ac_cv_exeext
3348 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3349 ac_clean_files=$ac_clean_files_save
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3351 $as_echo_n "checking for suffix of executables... " >&6; }
3352 if { { ac_try="$ac_link"
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 $as_echo "$ac_try_echo"; } >&5
3359 (eval "$ac_link") 2>&5
3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362 test $ac_status = 0; }; then :
3363 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3364 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3365 # work properly (i.e., refer to `conftest.exe'), while it won't with
3367 for ac_file in conftest.exe conftest conftest.*; do
3368 test -f "$ac_file" || continue
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3371 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3380 See \`config.log' for more details" "$LINENO" 5; }
3382 rm -f conftest conftest$ac_cv_exeext
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3384 $as_echo "$ac_cv_exeext" >&6; }
3386 rm -f conftest.$ac_ext
3387 EXEEXT=$ac_cv_exeext
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3395 FILE *f = fopen ("conftest.out", "w");
3396 return ferror (f) || fclose (f) != 0;
3402 ac_clean_files="$ac_clean_files conftest.out"
3403 # Check that the compiler produces executables we can run. If not, either
3404 # the compiler is broken, or we cross compile.
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3406 $as_echo_n "checking whether we are cross compiling... " >&6; }
3407 if test "$cross_compiling" != yes; then
3408 { { ac_try="$ac_link"
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_link") 2>&5
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }
3419 if { ac_try='./conftest$ac_cv_exeext'
3420 { { case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_try") 2>&5
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; }; then
3432 if test "$cross_compiling" = maybe; then
3435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437 as_fn_error $? "cannot run C compiled programs.
3438 If you meant to cross compile, use \`--host'.
3439 See \`config.log' for more details" "$LINENO" 5; }
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3444 $as_echo "$cross_compiling" >&6; }
3446 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3447 ac_clean_files=$ac_clean_files_save
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3449 $as_echo_n "checking for suffix of object files... " >&6; }
3450 if ${ac_cv_objext+:} false; then :
3451 $as_echo_n "(cached) " >&6
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3464 rm -f conftest.o conftest.obj
3465 if { { ac_try="$ac_compile"
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_compile") 2>&5
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }; then :
3476 for ac_file in conftest.o conftest.obj conftest.*; do
3477 test -f "$ac_file" || continue;
3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3480 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3485 $as_echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $? "cannot compute suffix of object files: cannot compile
3491 See \`config.log' for more details" "$LINENO" 5; }
3493 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3496 $as_echo "$ac_cv_objext" >&6; }
3497 OBJEXT=$ac_cv_objext
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3500 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3501 if ${ac_cv_c_compiler_gnu+:} false; then :
3502 $as_echo_n "(cached) " >&6
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3518 if ac_fn_c_try_compile "$LINENO"; then :
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3528 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3529 if test $ac_compiler_gnu = yes; then
3534 ac_test_CFLAGS=${CFLAGS+set}
3535 ac_save_CFLAGS=$CFLAGS
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3537 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3538 if ${ac_cv_prog_cc_g+:} false; then :
3539 $as_echo_n "(cached) " >&6
3541 ac_save_c_werror_flag=$ac_c_werror_flag
3542 ac_c_werror_flag=yes
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3556 if ac_fn_c_try_compile "$LINENO"; then :
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3571 if ac_fn_c_try_compile "$LINENO"; then :
3574 ac_c_werror_flag=$ac_save_c_werror_flag
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3587 if ac_fn_c_try_compile "$LINENO"; then :
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 ac_c_werror_flag=$ac_save_c_werror_flag
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3598 $as_echo "$ac_cv_prog_cc_g" >&6; }
3599 if test "$ac_test_CFLAGS" = set; then
3600 CFLAGS=$ac_save_CFLAGS
3601 elif test $ac_cv_prog_cc_g = yes; then
3602 if test "$GCC" = yes; then
3608 if test "$GCC" = yes; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3615 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3616 if ${ac_cv_prog_cc_c89+:} false; then :
3617 $as_echo_n "(cached) " >&6
3619 ac_cv_prog_cc_c89=no
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3627 struct buf { int x; };
3628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3629 static char *e (p, i)
3635 static char *f (char * (*g) (char **, int), char **p, ...)
3640 s = g (p, va_arg (v,int));
3645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3646 function prototypes and stuff, but not '\xHH' hex character constants.
3647 These don't provoke an error unfortunately, instead are silently treated
3648 as 'x'. The following induces an error, until -std is added to get
3649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3650 array size at least. It's necessary to write '\x00'==0 to get something
3651 that's true only with -std. */
3652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3654 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3655 inside strings and character constants. */
3657 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3659 int test (int i, double x);
3660 struct s1 {int (*f) (int a);};
3661 struct s2 {int (*f) (double a);};
3662 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3668 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3673 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3674 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3676 CC="$ac_save_CC $ac_arg"
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_cv_prog_cc_c89=$ac_arg
3680 rm -f core conftest.err conftest.$ac_objext
3681 test "x$ac_cv_prog_cc_c89" != "xno" && break
3683 rm -f conftest.$ac_ext
3688 case "x$ac_cv_prog_cc_c89" in
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 $as_echo "none needed" >&6; } ;;
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3694 $as_echo "unsupported" >&6; } ;;
3696 CC="$CC $ac_cv_prog_cc_c89"
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3698 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3700 if test "x$ac_cv_prog_cc_c89" != xno; then :
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3712 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3713 if ${ac_cv_lib_dl_dlopen+:} false; then :
3714 $as_echo_n "(cached) " >&6
3716 ac_check_lib_save_LIBS=$LIBS
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3721 /* Override any GCC internal prototype to avoid an error.
3722 Use char because int might match the return type of a GCC
3723 builtin and then its argument prototype would still apply. */
3736 if ac_fn_c_try_link "$LINENO"; then :
3737 ac_cv_lib_dl_dlopen=yes
3739 ac_cv_lib_dl_dlopen=no
3741 rm -f core conftest.err conftest.$ac_objext \
3742 conftest$ac_exeext conftest.$ac_ext
3743 LIBS=$ac_check_lib_save_LIBS
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3746 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3747 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3753 # Check whether --with-cc was given.
3754 if test "${with_cc+set}" = set; then :
3755 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3759 # Check whether --with-ccopts was given.
3760 if test "${with_ccopts+set}" = set; then :
3761 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3765 # Check whether --with-ldopts was given.
3766 if test "${with_ldopts+set}" = set; then :
3767 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3771 ac_cpp='$CPP $CPPFLAGS'
3772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 if test -n "$ac_tool_prefix"; then
3776 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3777 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if ${ac_cv_prog_CC+:} false; then :
3781 $as_echo_n "(cached) " >&6
3783 if test -n "$CC"; then
3784 ac_cv_prog_CC="$CC" # Let the user override the test.
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 if test -n "$CC"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3806 $as_echo "$CC" >&6; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3814 if test -z "$ac_cv_prog_CC"; then
3816 # Extract the first word of "gcc", so it can be a program name with args.
3817 set dummy gcc; ac_word=$2
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 $as_echo_n "checking for $ac_word... " >&6; }
3820 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3821 $as_echo_n "(cached) " >&6
3823 if test -n "$ac_ct_CC"; then
3824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833 ac_cv_prog_ac_ct_CC="gcc"
3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3844 if test -n "$ac_ct_CC"; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3846 $as_echo "$ac_ct_CC" >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3852 if test "x$ac_ct_CC" = x; then
3855 case $cross_compiling:$ac_tool_warned in
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3859 ac_tool_warned=yes ;;
3867 if test -z "$CC"; then
3868 if test -n "$ac_tool_prefix"; then
3869 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3870 set dummy ${ac_tool_prefix}cc; ac_word=$2
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if ${ac_cv_prog_CC+:} false; then :
3874 $as_echo_n "(cached) " >&6
3876 if test -n "$CC"; then
3877 ac_cv_prog_CC="$CC" # Let the user override the test.
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_CC="${ac_tool_prefix}cc"
3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 if test -n "$CC"; then
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899 $as_echo "$CC" >&6; }
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3908 if test -z "$CC"; then
3909 # Extract the first word of "cc", so it can be a program name with args.
3910 set dummy cc; ac_word=$2
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if ${ac_cv_prog_CC+:} false; then :
3914 $as_echo_n "(cached) " >&6
3916 if test -n "$CC"; then
3917 ac_cv_prog_CC="$CC" # Let the user override the test.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3928 ac_prog_rejected=yes
3932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 if test $ac_prog_rejected = yes; then
3940 # We found a bogon in the path, so make sure we never use it.
3941 set dummy $ac_cv_prog_CC
3943 if test $# != 0; then
3944 # We chose a different compiler from the bogus one.
3945 # However, it has the same basename, so the bogon will be chosen
3946 # first if we set CC to just the basename; use the full file name.
3948 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3954 if test -n "$CC"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3956 $as_echo "$CC" >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3964 if test -z "$CC"; then
3965 if test -n "$ac_tool_prefix"; then
3966 for ac_prog in cl.exe
3968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971 $as_echo_n "checking for $ac_word... " >&6; }
3972 if ${ac_cv_prog_CC+:} false; then :
3973 $as_echo_n "(cached) " >&6
3975 if test -n "$CC"; then
3976 ac_cv_prog_CC="$CC" # Let the user override the test.
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 if test -n "$CC"; then
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3998 $as_echo "$CC" >&6; }
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 $as_echo "no" >&6; }
4005 test -n "$CC" && break
4008 if test -z "$CC"; then
4010 for ac_prog in cl.exe
4012 # Extract the first word of "$ac_prog", so it can be a program name with args.
4013 set dummy $ac_prog; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4017 $as_echo_n "(cached) " >&6
4019 if test -n "$ac_ct_CC"; then
4020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4029 ac_cv_prog_ac_ct_CC="$ac_prog"
4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4040 if test -n "$ac_ct_CC"; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4042 $as_echo "$ac_ct_CC" >&6; }
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4049 test -n "$ac_ct_CC" && break
4052 if test "x$ac_ct_CC" = x; then
4055 case $cross_compiling:$ac_tool_warned in
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059 ac_tool_warned=yes ;;
4068 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4070 as_fn_error $? "no acceptable C compiler found in \$PATH
4071 See \`config.log' for more details" "$LINENO" 5; }
4073 # Provide some information about the compiler.
4074 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4077 for ac_option in --version -v -V -qversion; do
4078 { { ac_try="$ac_compiler $ac_option >&5"
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 $as_echo "$ac_try_echo"; } >&5
4085 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4087 if test -s conftest.err; then
4089 ... rest of stderr output deleted ...
4090 10q' conftest.err >conftest.er1
4091 cat conftest.er1 >&5
4093 rm -f conftest.er1 conftest.err
4094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095 test $ac_status = 0; }
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4099 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4100 if ${ac_cv_c_compiler_gnu+:} false; then :
4101 $as_echo_n "(cached) " >&6
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4117 if ac_fn_c_try_compile "$LINENO"; then :
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4127 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4128 if test $ac_compiler_gnu = yes; then
4133 ac_test_CFLAGS=${CFLAGS+set}
4134 ac_save_CFLAGS=$CFLAGS
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4136 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4137 if ${ac_cv_prog_cc_g+:} false; then :
4138 $as_echo_n "(cached) " >&6
4140 ac_save_c_werror_flag=$ac_c_werror_flag
4141 ac_c_werror_flag=yes
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4155 if ac_fn_c_try_compile "$LINENO"; then :
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4170 if ac_fn_c_try_compile "$LINENO"; then :
4173 ac_c_werror_flag=$ac_save_c_werror_flag
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4186 if ac_fn_c_try_compile "$LINENO"; then :
4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 ac_c_werror_flag=$ac_save_c_werror_flag
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4197 $as_echo "$ac_cv_prog_cc_g" >&6; }
4198 if test "$ac_test_CFLAGS" = set; then
4199 CFLAGS=$ac_save_CFLAGS
4200 elif test $ac_cv_prog_cc_g = yes; then
4201 if test "$GCC" = yes; then
4207 if test "$GCC" = yes; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4214 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4215 if ${ac_cv_prog_cc_c89+:} false; then :
4216 $as_echo_n "(cached) " >&6
4218 ac_cv_prog_cc_c89=no
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4225 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4226 struct buf { int x; };
4227 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4228 static char *e (p, i)
4234 static char *f (char * (*g) (char **, int), char **p, ...)
4239 s = g (p, va_arg (v,int));
4244 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4245 function prototypes and stuff, but not '\xHH' hex character constants.
4246 These don't provoke an error unfortunately, instead are silently treated
4247 as 'x'. The following induces an error, until -std is added to get
4248 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4249 array size at least. It's necessary to write '\x00'==0 to get something
4250 that's true only with -std. */
4251 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4253 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4254 inside strings and character constants. */
4256 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4258 int test (int i, double x);
4259 struct s1 {int (*f) (int a);};
4260 struct s2 {int (*f) (double a);};
4261 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4267 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4272 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4273 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4275 CC="$ac_save_CC $ac_arg"
4276 if ac_fn_c_try_compile "$LINENO"; then :
4277 ac_cv_prog_cc_c89=$ac_arg
4279 rm -f core conftest.err conftest.$ac_objext
4280 test "x$ac_cv_prog_cc_c89" != "xno" && break
4282 rm -f conftest.$ac_ext
4287 case "x$ac_cv_prog_cc_c89" in
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4290 $as_echo "none needed" >&6; } ;;
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4293 $as_echo "unsupported" >&6; } ;;
4295 CC="$CC $ac_cv_prog_cc_c89"
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4297 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4299 if test "x$ac_cv_prog_cc_c89" != xno; then :
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 if test "$GCC" = yes; then
4310 RDYNAMIC="-rdynamic"
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4319 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4320 # On Suns, sometimes $CPP names a directory.
4321 if test -n "$CPP" && test -d "$CPP"; then
4324 if test -z "$CPP"; then
4325 if ${ac_cv_prog_CPP+:} false; then :
4326 $as_echo_n "(cached) " >&6
4328 # Double quotes because CPP needs to be expanded
4329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4332 for ac_c_preproc_warn_flag in '' yes
4334 # Use a header file that comes with gcc, so configuring glibc
4335 # with a fresh cross-compiler works.
4336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4337 # <limits.h> exists even on freestanding compilers.
4338 # On the NeXT, cc -E runs the code through the compiler's parser,
4339 # not just through cpp. "Syntax error" is here to catch this case.
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4343 # include <limits.h>
4345 # include <assert.h>
4349 if ac_fn_c_try_cpp "$LINENO"; then :
4352 # Broken: fails on valid input.
4355 rm -f conftest.err conftest.i conftest.$ac_ext
4357 # OK, works on sane cases. Now check whether nonexistent headers
4358 # can be detected and how.
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 #include <ac_nonexistent.h>
4363 if ac_fn_c_try_cpp "$LINENO"; then :
4364 # Broken: success on invalid input.
4367 # Passes both tests.
4371 rm -f conftest.err conftest.i conftest.$ac_ext
4374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4375 rm -f conftest.i conftest.err conftest.$ac_ext
4376 if $ac_preproc_ok; then :
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4389 $as_echo "$CPP" >&6; }
4391 for ac_c_preproc_warn_flag in '' yes
4393 # Use a header file that comes with gcc, so configuring glibc
4394 # with a fresh cross-compiler works.
4395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4396 # <limits.h> exists even on freestanding compilers.
4397 # On the NeXT, cc -E runs the code through the compiler's parser,
4398 # not just through cpp. "Syntax error" is here to catch this case.
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4402 # include <limits.h>
4404 # include <assert.h>
4408 if ac_fn_c_try_cpp "$LINENO"; then :
4411 # Broken: fails on valid input.
4414 rm -f conftest.err conftest.i conftest.$ac_ext
4416 # OK, works on sane cases. Now check whether nonexistent headers
4417 # can be detected and how.
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 #include <ac_nonexistent.h>
4422 if ac_fn_c_try_cpp "$LINENO"; then :
4423 # Broken: success on invalid input.
4426 # Passes both tests.
4430 rm -f conftest.err conftest.i conftest.$ac_ext
4433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4434 rm -f conftest.i conftest.err conftest.$ac_ext
4435 if $ac_preproc_ok; then :
4438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4440 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4441 See \`config.log' for more details" "$LINENO" 5; }
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4451 $as_echo_n "checking for additional special compiler flags... " >&6; }
4452 if test "$GCC" = yes
4455 alpha) addcflags="-mieee" ;;
4458 if test "x$addcflags" != x
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4461 $as_echo "$addcflags" >&6; }
4462 CFLAGS="$addcflags $CFLAGS"
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4465 $as_echo "(none)" >&6; }
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4469 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4470 if ${ac_cv_path_GREP+:} false; then :
4471 $as_echo_n "(cached) " >&6
4473 if test -z "$GREP"; then
4474 ac_path_GREP_found=false
4475 # Loop through the user's path and test for each of PROGNAME-LIST
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4480 test -z "$as_dir" && as_dir=.
4481 for ac_prog in grep ggrep; do
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4484 as_fn_executable_p "$ac_path_GREP" || continue
4485 # Check for GNU ac_path_GREP and select it if it is found.
4486 # Check for GNU $ac_path_GREP
4487 case `"$ac_path_GREP" --version 2>&1` in
4489 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4492 $as_echo_n 0123456789 >"conftest.in"
4495 cat "conftest.in" "conftest.in" >"conftest.tmp"
4496 mv "conftest.tmp" "conftest.in"
4497 cp "conftest.in" "conftest.nl"
4498 $as_echo 'GREP' >> "conftest.nl"
4499 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4501 as_fn_arith $ac_count + 1 && ac_count=$as_val
4502 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4503 # Best one so far, save it but keep looking for a better one
4504 ac_cv_path_GREP="$ac_path_GREP"
4505 ac_path_GREP_max=$ac_count
4507 # 10*(2^10) chars as input seems more than enough
4508 test $ac_count -gt 10 && break
4510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4513 $ac_path_GREP_found && break 3
4518 if test -z "$ac_cv_path_GREP"; then
4519 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4522 ac_cv_path_GREP=$GREP
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4527 $as_echo "$ac_cv_path_GREP" >&6; }
4528 GREP="$ac_cv_path_GREP"
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4532 $as_echo_n "checking for egrep... " >&6; }
4533 if ${ac_cv_path_EGREP+:} false; then :
4534 $as_echo_n "(cached) " >&6
4536 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4537 then ac_cv_path_EGREP="$GREP -E"
4539 if test -z "$EGREP"; then
4540 ac_path_EGREP_found=false
4541 # Loop through the user's path and test for each of PROGNAME-LIST
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4546 test -z "$as_dir" && as_dir=.
4547 for ac_prog in egrep; do
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4550 as_fn_executable_p "$ac_path_EGREP" || continue
4551 # Check for GNU ac_path_EGREP and select it if it is found.
4552 # Check for GNU $ac_path_EGREP
4553 case `"$ac_path_EGREP" --version 2>&1` in
4555 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4558 $as_echo_n 0123456789 >"conftest.in"
4561 cat "conftest.in" "conftest.in" >"conftest.tmp"
4562 mv "conftest.tmp" "conftest.in"
4563 cp "conftest.in" "conftest.nl"
4564 $as_echo 'EGREP' >> "conftest.nl"
4565 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4567 as_fn_arith $ac_count + 1 && ac_count=$as_val
4568 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4569 # Best one so far, save it but keep looking for a better one
4570 ac_cv_path_EGREP="$ac_path_EGREP"
4571 ac_path_EGREP_max=$ac_count
4573 # 10*(2^10) chars as input seems more than enough
4574 test $ac_count -gt 10 && break
4576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 $ac_path_EGREP_found && break 3
4584 if test -z "$ac_cv_path_EGREP"; then
4585 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4588 ac_cv_path_EGREP=$EGREP
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4594 $as_echo "$ac_cv_path_EGREP" >&6; }
4595 EGREP="$ac_cv_path_EGREP"
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4599 $as_echo_n "checking for ANSI C header files... " >&6; }
4600 if ${ac_cv_header_stdc+:} false; then :
4601 $as_echo_n "(cached) " >&6
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4618 if ac_fn_c_try_compile "$LINENO"; then :
4619 ac_cv_header_stdc=yes
4621 ac_cv_header_stdc=no
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 if test $ac_cv_header_stdc = yes; then
4626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633 $EGREP "memchr" >/dev/null 2>&1; then :
4636 ac_cv_header_stdc=no
4642 if test $ac_cv_header_stdc = yes; then
4643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4650 $EGREP "free" >/dev/null 2>&1; then :
4653 ac_cv_header_stdc=no
4659 if test $ac_cv_header_stdc = yes; then
4660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4661 if test "$cross_compiling" = yes; then :
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4668 #if ((' ' & 0x0FF) == 0x020)
4669 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4670 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4672 # define ISLOWER(c) \
4673 (('a' <= (c) && (c) <= 'i') \
4674 || ('j' <= (c) && (c) <= 'r') \
4675 || ('s' <= (c) && (c) <= 'z'))
4676 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4679 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4684 for (i = 0; i < 256; i++)
4685 if (XOR (islower (i), ISLOWER (i))
4686 || toupper (i) != TOUPPER (i))
4691 if ac_fn_c_try_run "$LINENO"; then :
4694 ac_cv_header_stdc=no
4696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4697 conftest.$ac_objext conftest.beam conftest.$ac_ext
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4703 $as_echo "$ac_cv_header_stdc" >&6; }
4704 if test $ac_cv_header_stdc = yes; then
4706 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4710 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4711 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4712 inttypes.h stdint.h unistd.h
4714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4715 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4717 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4718 cat >>confdefs.h <<_ACEOF
4719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4728 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4729 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4736 if test "$MINIX" = yes; then
4738 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4741 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4744 $as_echo "#define _MINIX 1" >>confdefs.h
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4750 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4751 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4752 $as_echo_n "(cached) " >&6
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4757 # define __EXTENSIONS__ 1
4758 $ac_includes_default
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 ac_cv_safe_to_define___extensions__=yes
4770 ac_cv_safe_to_define___extensions__=no
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4775 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4776 test $ac_cv_safe_to_define___extensions__ = yes &&
4777 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4779 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4781 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4783 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4785 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4792 # Check whether --with-root-prefix was given.
4793 if test "${with_root_prefix+set}" = set; then :
4794 withval=$with_root_prefix; root_prefix=$withval
4798 # Check whether --enable-maintainer-mode was given.
4799 if test "${enable_maintainer_mode+set}" = set; then :
4800 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4804 $as_echo "Disabling maintainer mode" >&6; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4808 $as_echo "Enabling maintainer mode" >&6; }
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4814 $as_echo "Disabling maintainer mode by default" >&6; }
4819 # Check whether --enable-symlink-install was given.
4820 if test "${enable_symlink_install+set}" = set; then :
4821 enableval=$enable_symlink_install; if test "$enableval" = "no"
4823 LINK_INSTALL_FLAGS=-f
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4825 $as_echo "Disabling symlinks for install" >&6; }
4827 LINK_INSTALL_FLAGS=-sf
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4829 $as_echo "Enabling symlinks for install" >&6; }
4833 LINK_INSTALL_FLAGS=-f
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4835 $as_echo "Disabling symlinks for install by default" >&6; }
4840 relative_symlink_defined=
4841 # Check whether --enable-relative-symlinks was given.
4842 if test "${enable_relative_symlinks+set}" = set; then :
4843 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4846 relative_symlink_defined=yes
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4848 $as_echo "Disabling relative symlinks for install" >&6; }
4850 SYMLINK_RELATIVE=--relative
4851 relative_symlink_defined=yes
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4853 $as_echo "Enabling relative symlinks for install" >&6; }
4857 # Check whether --enable-symlink-relative-symlinks was given.
4858 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4859 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4861 SYMLINK_RELATIVE=yes
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4863 $as_echo "Disabling relative symlinks for install" >&6; }
4865 SYMLINK_RELATIVE=--relative
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4867 $as_echo "Enabling relative symlinks for install" >&6; }
4871 if test -z "$relative_symlink_defined"
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4875 $as_echo "Disabling relative symlinks for install by default" >&6; }
4881 # Check whether --enable-symlink-build was given.
4882 if test "${enable_symlink_build+set}" = set; then :
4883 enableval=$enable_symlink_build; if test "$enableval" = "no"
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4887 $as_echo "Disabling symlinks for build" >&6; }
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4891 $as_echo "Enabling symlinks for build" >&6; }
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4897 $as_echo "Disabling symlinks for build by default" >&6; }
4902 # Check whether --enable-verbose-makecmds was given.
4903 if test "${enable_verbose_makecmds+set}" = set; then :
4904 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4907 $as_echo "Disabling verbose make commands" >&6; }
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4913 $as_echo "Enabling verbose make commands" >&6; }
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4921 $as_echo "Disabling verbose make commands" >&6; }
4931 E2_PKG_CONFIG_STATIC=--static
4934 # Check whether --enable-elf-shlibs was given.
4935 if test "${enable_elf_shlibs+set}" = set; then :
4936 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4939 MAKEFILE_ELF=/dev/null
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4941 $as_echo "Disabling ELF shared libraries" >&6; }
4943 E2_PKG_CONFIG_STATIC=
4945 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4948 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4954 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4956 $as_echo "Enabling ELF shared libraries" >&6; }
4960 MAKEFILE_ELF=/dev/null
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4963 $as_echo "Disabling ELF shared libraries by default" >&6; }
4969 # Check whether --enable-bsd-shlibs was given.
4970 if test "${enable_bsd_shlibs+set}" = set; then :
4971 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4974 MAKEFILE_BSDLIB=/dev/null
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4976 $as_echo "Disabling BSD shared libraries" >&6; }
4978 E2_PKG_CONFIG_STATIC=
4980 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4984 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4989 $as_echo "Enabling BSD shared libraries" >&6; }
4993 MAKEFILE_BSDLIB=/dev/null
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4996 $as_echo "Disabling BSD shared libraries by default" >&6; }
5002 # Check whether --enable-profile was given.
5003 if test "${enable_profile+set}" = set; then :
5004 enableval=$enable_profile; if test "$enableval" = "no"
5007 MAKEFILE_PROFILE=/dev/null
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5009 $as_echo "Disabling profiling libraries" >&6; }
5012 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5013 PROFILED_LIB_EXT=_p.a
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5015 $as_echo "Building profiling libraries" >&6; }
5020 MAKEFILE_PROFILE=/dev/null
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5022 $as_echo "Disabling profiling libraries by default" >&6; }
5028 # Check whether --enable-gcov was given.
5029 if test "${enable_gcov+set}" = set; then :
5030 enableval=$enable_gcov; if test "$enableval" = "yes"
5032 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5033 LDFLAGS="-fprofile-arcs -ftest-coverage"
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5035 $as_echo "Enabling gcov support" >&6; }
5040 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5041 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5042 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5043 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5044 # Check whether --enable-hardening was given.
5045 if test "${enable_hardening+set}" = set; then :
5046 enableval=$enable_hardening; if test "$enableval" = "yes"
5048 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5049 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5050 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5051 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5052 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5053 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5054 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5055 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5057 $as_echo "Enabling hardening support" >&6; }
5067 # Check whether --enable-jbd-debug was given.
5068 if test "${enable_jbd_debug+set}" = set; then :
5069 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5072 $as_echo "Disabling journal debugging" >&6; }
5075 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5078 $as_echo "Enabling journal debugging" >&6; }
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5083 $as_echo "Disabling journal debugging by default" >&6; }
5087 # Check whether --enable-blkid-debug was given.
5088 if test "${enable_blkid_debug+set}" = set; then :
5089 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5092 $as_echo "Disabling blkid debugging" >&6; }
5095 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5098 $as_echo "Enabling blkid debugging" >&6; }
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5103 $as_echo "Disabling blkid debugging by default" >&6; }
5107 # Check whether --enable-testio-debug was given.
5108 if test "${enable_testio_debug+set}" = set; then :
5109 enableval=$enable_testio_debug;
5110 if test "$enableval" = "no"
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5113 $as_echo "Disabling testio debugging" >&6; }
5117 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5120 $as_echo "Enabling testio debugging" >&6; }
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5125 $as_echo "Enabling testio debugging by default" >&6; }
5126 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5133 # Check whether --enable-developer-features was given.
5134 if test "${enable_developer_features+set}" = set; then :
5135 enableval=$enable_developer_features;
5136 if test "$enableval" = "yes"
5139 $as_echo "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
5142 $as_echo "Enabling ext4 developer features" >&6; }
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
5145 $as_echo "Disabling ext4 developer features" >&6; }
5146 DEV_FEATURES_CMT="#"
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
5151 $as_echo "Disabling ext4 developer features by default" >&6; }
5164 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5165 if test -n "$ac_tool_prefix"; then
5166 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5167 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5171 $as_echo_n "(cached) " >&6
5175 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5197 if test -n "$PKG_CONFIG"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5199 $as_echo "$PKG_CONFIG" >&6; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5207 if test -z "$ac_cv_path_PKG_CONFIG"; then
5208 ac_pt_PKG_CONFIG=$PKG_CONFIG
5209 # Extract the first word of "pkg-config", so it can be a program name with args.
5210 set dummy pkg-config; ac_word=$2
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212 $as_echo_n "checking for $ac_word... " >&6; }
5213 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5214 $as_echo_n "(cached) " >&6
5216 case $ac_pt_PKG_CONFIG in
5218 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5240 if test -n "$ac_pt_PKG_CONFIG"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5242 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5248 if test "x$ac_pt_PKG_CONFIG" = x; then
5251 case $cross_compiling:$ac_tool_warned in
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned=yes ;;
5257 PKG_CONFIG=$ac_pt_PKG_CONFIG
5260 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5264 if test -n "$PKG_CONFIG"; then
5265 _pkg_min_version=0.9.0
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5267 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5268 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5270 $as_echo "yes" >&6; }
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5282 DEPPROFILED_LIBUUID=
5284 # Check whether --enable-libuuid was given.
5285 if test "${enable_libuuid+set}" = set; then :
5286 enableval=$enable_libuuid; if test "$enableval" = "no"
5288 if test -z "$PKG_CONFIG"; then
5289 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5293 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5294 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5295 $as_echo_n "(cached) " >&6
5297 ac_check_lib_save_LIBS=$LIBS
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5302 /* Override any GCC internal prototype to avoid an error.
5303 Use char because int might match the return type of a GCC
5304 builtin and then its argument prototype would still apply. */
5308 char uuid_generate ();
5312 return uuid_generate ();
5317 if ac_fn_c_try_link "$LINENO"; then :
5318 ac_cv_lib_uuid_uuid_generate=yes
5320 ac_cv_lib_uuid_uuid_generate=no
5322 rm -f core conftest.err conftest.$ac_objext \
5323 conftest$ac_exeext conftest.$ac_ext
5324 LIBS=$ac_check_lib_save_LIBS
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5327 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5328 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5329 LIBUUID=`$PKG_CONFIG --libs uuid`;
5330 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5332 as_fn_error $? "external uuid library not found" "$LINENO" 5
5335 PROFILED_LIBUUID=$LIBUUID
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5338 $as_echo "Disabling private uuid library" >&6; }
5340 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5342 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5343 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5344 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5345 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5347 $as_echo "Enabling private uuid library" >&6; }
5351 if test -n "$PKG_CONFIG"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5353 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5354 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5355 $as_echo_n "(cached) " >&6
5357 ac_check_lib_save_LIBS=$LIBS
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5362 /* Override any GCC internal prototype to avoid an error.
5363 Use char because int might match the return type of a GCC
5364 builtin and then its argument prototype would still apply. */
5368 char uuid_generate ();
5372 return uuid_generate ();
5377 if ac_fn_c_try_link "$LINENO"; then :
5378 ac_cv_lib_uuid_uuid_generate=yes
5380 ac_cv_lib_uuid_uuid_generate=no
5382 rm -f core conftest.err conftest.$ac_objext \
5383 conftest$ac_exeext conftest.$ac_ext
5384 LIBS=$ac_check_lib_save_LIBS
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5387 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5388 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5389 LIBUUID=`$PKG_CONFIG --libs uuid`;
5390 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5394 if test -n "$LIBUUID"; then
5395 PROFILED_LIBUUID=$LIBUUID
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5398 $as_echo "Using system uuid by default" >&6; }
5400 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5402 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5403 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5404 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5405 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5407 $as_echo "Enabling private uuid library by default" >&6; }
5426 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5427 if test -n "$ac_tool_prefix"; then
5428 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5429 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5433 $as_echo_n "(cached) " >&6
5437 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5459 if test -n "$PKG_CONFIG"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5461 $as_echo "$PKG_CONFIG" >&6; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5469 if test -z "$ac_cv_path_PKG_CONFIG"; then
5470 ac_pt_PKG_CONFIG=$PKG_CONFIG
5471 # Extract the first word of "pkg-config", so it can be a program name with args.
5472 set dummy pkg-config; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5476 $as_echo_n "(cached) " >&6
5478 case $ac_pt_PKG_CONFIG in
5480 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5502 if test -n "$ac_pt_PKG_CONFIG"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5504 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5510 if test "x$ac_pt_PKG_CONFIG" = x; then
5513 case $cross_compiling:$ac_tool_warned in
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5517 ac_tool_warned=yes ;;
5519 PKG_CONFIG=$ac_pt_PKG_CONFIG
5522 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5526 if test -n "$PKG_CONFIG"; then
5527 _pkg_min_version=0.9.0
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5529 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5530 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5532 $as_echo "yes" >&6; }
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5544 DEPPROFILED_LIBBLKID=
5547 # Check whether --enable-libblkid was given.
5548 if test "${enable_libblkid+set}" = set; then :
5549 enableval=$enable_libblkid; if test "$enableval" = "no"
5551 if test -z "$PKG_CONFIG"; then
5552 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5556 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5557 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5558 $as_echo_n "(cached) " >&6
5560 ac_check_lib_save_LIBS=$LIBS
5561 LIBS="-lblkid -luuid $LIBS"
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5565 /* Override any GCC internal prototype to avoid an error.
5566 Use char because int might match the return type of a GCC
5567 builtin and then its argument prototype would still apply. */
5571 char blkid_get_cache ();
5575 return blkid_get_cache ();
5580 if ac_fn_c_try_link "$LINENO"; then :
5581 ac_cv_lib_blkid_blkid_get_cache=yes
5583 ac_cv_lib_blkid_blkid_get_cache=no
5585 rm -f core conftest.err conftest.$ac_objext \
5586 conftest$ac_exeext conftest.$ac_ext
5587 LIBS=$ac_check_lib_save_LIBS
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5590 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5591 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5592 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5593 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5595 as_fn_error $? "external blkid library not found" "$LINENO" 5
5599 PROFILED_LIBBLKID=$LIBBLKID
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5601 $as_echo "Disabling private blkid library" >&6; }
5603 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5604 DEPLIBBLKID=$LIBBLKID
5605 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5606 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5607 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5608 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5609 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5612 $as_echo "Enabling private blkid library" >&6; }
5616 if test -n "$PKG_CONFIG"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5618 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5619 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5620 $as_echo_n "(cached) " >&6
5622 ac_check_lib_save_LIBS=$LIBS
5623 LIBS="-lblkid $LIBS"
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5627 /* Override any GCC internal prototype to avoid an error.
5628 Use char because int might match the return type of a GCC
5629 builtin and then its argument prototype would still apply. */
5633 char blkid_get_cache ();
5637 return blkid_get_cache ();
5642 if ac_fn_c_try_link "$LINENO"; then :
5643 ac_cv_lib_blkid_blkid_get_cache=yes
5645 ac_cv_lib_blkid_blkid_get_cache=no
5647 rm -f core conftest.err conftest.$ac_objext \
5648 conftest$ac_exeext conftest.$ac_ext
5649 LIBS=$ac_check_lib_save_LIBS
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5652 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5653 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5654 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5655 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5659 if test -n "$LIBBLKID"; then
5661 PROFILED_LIBBLKID=$LIBBLKID
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5663 $as_echo "Using system blkid library by default" >&6; }
5665 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5666 DEPLIBBLKID=$LIBBLKID
5667 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5668 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5669 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5670 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5671 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5674 $as_echo "Enabling private blkid library by default" >&6; }
5688 # Check whether --enable-subset was given.
5689 if test "${enable_subset+set}" = set; then :
5690 enableval=$enable_subset; if test "$enableval" = "no"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5694 $as_echo "Disabling subset-only build" >&6; }
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5698 $as_echo "Enabling subset-only-build" >&6; }
5706 # Check whether --enable-backtrace was given.
5707 if test "${enable_backtrace+set}" = set; then :
5708 enableval=$enable_backtrace; if test "$enableval" = "no"
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5711 $as_echo "Disabling use of backtrace" >&6; }
5712 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5716 $as_echo "Enabling use of backtrace" >&6; }
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5721 $as_echo "Enabling use of backtrace by default" >&6; }
5725 # Check whether --enable-debugfs was given.
5726 if test "${enable_debugfs+set}" = set; then :
5727 enableval=$enable_debugfs; if test "$enableval" = "no"
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5730 $as_echo "Disabling debugfs support" >&6; }
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5735 $as_echo "Enabling debugfs support" >&6; }
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5740 $as_echo "Enabling debugfs support by default" >&6; }
5746 # Check whether --enable-imager was given.
5747 if test "${enable_imager+set}" = set; then :
5748 enableval=$enable_imager; if test "$enableval" = "no"
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5751 $as_echo "Disabling e2image support" >&6; }
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5756 $as_echo "Enabling e2image support" >&6; }
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5761 $as_echo "Enabling e2image support by default" >&6; }
5767 # Check whether --enable-resizer was given.
5768 if test "${enable_resizer+set}" = set; then :
5769 enableval=$enable_resizer; if test "$enableval" = "no"
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5772 $as_echo "Disabling e2resize support" >&6; }
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5777 $as_echo "Enabling e2resize support" >&6; }
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5782 $as_echo "Enabling e2resize support by default" >&6; }
5788 # Check whether --enable-defrag was given.
5789 if test "${enable_defrag+set}" = set; then :
5790 enableval=$enable_defrag; if test "$enableval" = "no"
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5793 $as_echo "Disabling e4defrag support" >&6; }
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5798 $as_echo "Enabling e4defrag support" >&6; }
5802 if test -z "$WITH_DIET_LIBC"
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5805 $as_echo "Enabling e4defrag support by default" >&6; }
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5809 $as_echo "Disabling e4defrag support by default" >&6; }
5816 # Check whether --enable-fsck was given.
5817 if test "${enable_fsck+set}" = set; then :
5818 enableval=$enable_fsck; if test "$enableval" = "no"
5820 FSCK_PROG='' FSCK_MAN=''
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5822 $as_echo "Not building fsck wrapper" >&6; }
5824 FSCK_PROG=fsck FSCK_MAN=fsck.8
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5826 $as_echo "Building fsck wrapper" >&6; }
5832 FSCK_PROG='' FSCK_MAN=''
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5834 $as_echo "Not building fsck wrapper by default" >&6; }
5837 FSCK_PROG=fsck FSCK_MAN=fsck.8
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5839 $as_echo "Building fsck wrapper by default" >&6; }
5846 # Check whether --enable-e2initrd-helper was given.
5847 if test "${enable_e2initrd_helper+set}" = set; then :
5848 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5850 E2INITRD_PROG='' E2INITRD_MAN=''
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5852 $as_echo "Not building e2initrd helper" >&6; }
5854 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5856 $as_echo "Building e2initrd helper" >&6; }
5860 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5862 $as_echo "Building e2initrd helper by default" >&6; }
5868 # Check whether --enable-tls was given.
5869 if test "${enable_tls+set}" = set; then :
5870 enableval=$enable_tls; if test "$enableval" = "no"
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5874 $as_echo "Disabling thread local support" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5878 $as_echo "Enabling thread local support" >&6; }
5882 if test -n "$WITH_DIET_LIBC"
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5886 $as_echo "Diet libc does not support thread local support" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5890 $as_echo "Try using thread local support by default" >&6; }
5895 if test "$try_tls" = "yes"
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5899 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5900 if ${ac_cv_tls+:} false; then :
5901 $as_echo_n "(cached) " >&6
5904 ax_tls_keywords="__thread __declspec(thread) none"
5905 for ax_tls_keyword in $ax_tls_keywords; do
5906 case $ax_tls_keyword in
5907 none) ac_cv_tls=none ; break ;;
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5914 static $ax_tls_keyword int bar;
5925 if ac_fn_c_try_compile "$LINENO"; then :
5926 ac_cv_tls=$ax_tls_keyword ; break
5931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938 if test "$ac_cv_tls" != "none"; then
5940 cat >>confdefs.h <<_ACEOF
5941 #define TLS $ac_cv_tls
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5946 $as_echo "$ac_cv_tls" >&6; }
5950 # Check whether --with-pthread was given.
5951 if test "${with_pthread+set}" = set; then :
5952 withval=$with_pthread; if test "$withval" = "no"
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
5956 $as_echo "Disabling pthread support" >&6; }
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
5960 $as_echo "Testing for pthread support" >&6; }
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
5966 $as_echo "Try testing for pthread support by default" >&6; }
5970 if test "$try_pthread" = "yes"
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5973 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5974 if ${ac_cv_path_SED+:} false; then :
5975 $as_echo_n "(cached) " >&6
5977 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5978 for ac_i in 1 2 3 4 5 6 7; do
5979 ac_script="$ac_script$as_nl$ac_script"
5981 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5982 { ac_script=; unset ac_script;}
5983 if test -z "$SED"; then
5984 ac_path_SED_found=false
5985 # Loop through the user's path and test for each of PROGNAME-LIST
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 test -z "$as_dir" && as_dir=.
5991 for ac_prog in sed gsed; do
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5994 as_fn_executable_p "$ac_path_SED" || continue
5995 # Check for GNU ac_path_SED and select it if it is found.
5996 # Check for GNU $ac_path_SED
5997 case `"$ac_path_SED" --version 2>&1` in
5999 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6002 $as_echo_n 0123456789 >"conftest.in"
6005 cat "conftest.in" "conftest.in" >"conftest.tmp"
6006 mv "conftest.tmp" "conftest.in"
6007 cp "conftest.in" "conftest.nl"
6008 $as_echo '' >> "conftest.nl"
6009 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6011 as_fn_arith $ac_count + 1 && ac_count=$as_val
6012 if test $ac_count -gt ${ac_path_SED_max-0}; then
6013 # Best one so far, save it but keep looking for a better one
6014 ac_cv_path_SED="$ac_path_SED"
6015 ac_path_SED_max=$ac_count
6017 # 10*(2^10) chars as input seems more than enough
6018 test $ac_count -gt 10 && break
6020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6023 $ac_path_SED_found && break 3
6028 if test -z "$ac_cv_path_SED"; then
6029 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6037 $as_echo "$ac_cv_path_SED" >&6; }
6038 SED="$ac_cv_path_SED"
6046 ac_cpp='$CPP $CPPFLAGS'
6047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6053 # We used to check for pthread.h first, but this fails if pthread.h
6054 # requires special compiler flags (e.g. on Tru64 or Sequent).
6055 # It gets checked for in the link test anyway.
6057 # First of all, check if the user has set any of the PTHREAD_LIBS,
6058 # etcetera environment variables, and if threads linking works using
6060 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
6061 ax_pthread_save_CC="$CC"
6062 ax_pthread_save_CFLAGS="$CFLAGS"
6063 ax_pthread_save_LIBS="$LIBS"
6064 if test "x$PTHREAD_CC" != "x"; then :
6067 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6068 LIBS="$PTHREAD_LIBS $LIBS"
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
6070 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6074 /* Override any GCC internal prototype to avoid an error.
6075 Use char because int might match the return type of a GCC
6076 builtin and then its argument prototype would still apply. */
6080 char pthread_join ();
6084 return pthread_join ();
6089 if ac_fn_c_try_link "$LINENO"; then :
6092 rm -f core conftest.err conftest.$ac_objext \
6093 conftest$ac_exeext conftest.$ac_ext
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6095 $as_echo "$ax_pthread_ok" >&6; }
6096 if test "x$ax_pthread_ok" = "xno"; then
6100 CC="$ax_pthread_save_CC"
6101 CFLAGS="$ax_pthread_save_CFLAGS"
6102 LIBS="$ax_pthread_save_LIBS"
6105 # We must check for the threads library under a number of different
6106 # names; the ordering is very important because some systems
6107 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6108 # libraries is broken (non-POSIX).
6110 # Create a list of thread flags to try. Items starting with a "-" are
6111 # C compiler flags, and other items are library names, except for "none"
6112 # which indicates that we try without any flags at all, and "pthread-config"
6113 # which is a program returning the flags for the Pth emulation library.
6115 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6117 # The ordering *is* (sometimes) important. Some notes on the
6118 # individual items follow:
6120 # pthreads: AIX (must check this before -lpthread)
6121 # none: in case threads are in libc; should be tried before -Kthread and
6122 # other compiler flags to prevent continual compiler warnings
6123 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6124 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
6125 # (Note: HP C rejects this with "bad form for `-t' option")
6126 # -pthreads: Solaris/gcc (Note: HP C also rejects)
6127 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6128 # doesn't hurt to check since this sometimes defines pthreads and
6129 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
6130 # is present but should not be used directly; and before -mthreads,
6131 # because the compiler interprets this as "-mt" + "-hreads")
6132 # -mthreads: Mingw32/gcc, Lynx/gcc
6133 # pthread: Linux, etcetera
6134 # --thread-safe: KAI C++
6135 # pthread-config: use pthread-config program (for GNU Pth library)
6141 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6142 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6144 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
6149 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
6150 # multi-threading and also sets -lpthread."
6152 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
6157 # IBM z/OS requires a feature-test macro to be defined in order to
6158 # enable POSIX threads at all, so give the user a hint if this is
6159 # not set. (We don't define these ourselves, as they can affect
6160 # other portions of the system API in unpredictable ways.)
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6165 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
6166 AX_PTHREAD_ZOS_MISSING
6170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6171 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
6173 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
6181 # On Solaris (at least, for some versions), libc contains stubbed
6182 # (non-functional) versions of the pthreads routines, so link-based
6183 # tests will erroneously succeed. (N.B.: The stubs are missing
6184 # pthread_cleanup_push, or rather a function called by this macro,
6185 # so we could check for that, but who knows whether they'll stub
6186 # that too in a future libc.) So we'll check first for the
6187 # standard Solaris way of linking pthreads (-mt -lpthread).
6189 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
6193 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
6195 if test "x$GCC" = "xyes"; then :
6196 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
6199 # The presence of a feature test macro requesting re-entrant function
6200 # definitions is, on some systems, a strong hint that pthreads support is
6204 darwin* | hpux* | linux* | osf* | solaris*)
6205 ax_pthread_check_macro="_REENTRANT"
6209 ax_pthread_check_macro="_THREAD_SAFE"
6213 ax_pthread_check_macro="--"
6216 if test "x$ax_pthread_check_macro" = "x--"; then :
6217 ax_pthread_check_cond=0
6219 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
6222 # Are we compiling with Clang?
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
6225 $as_echo_n "checking whether $CC is Clang... " >&6; }
6226 if ${ax_cv_PTHREAD_CLANG+:} false; then :
6227 $as_echo_n "(cached) " >&6
6229 ax_cv_PTHREAD_CLANG=no
6230 # Note that Autoconf sets GCC=yes for Clang as well as GCC
6231 if test "x$GCC" = "xyes"; then
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
6235 # if defined(__clang__) && defined(__llvm__)
6236 AX_PTHREAD_CC_IS_CLANG
6240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6241 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
6242 ax_cv_PTHREAD_CLANG=yes
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
6250 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
6251 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
6253 ax_pthread_clang_warning=no
6255 # Clang needs special handling, because older versions handle the -pthread
6256 # option in a rather... idiosyncratic way
6258 if test "x$ax_pthread_clang" = "xyes"; then
6260 # Clang takes -pthread; it has never supported any other flag
6262 # (Note 1: This will need to be revisited if a system that Clang
6263 # supports has POSIX threads in a separate library. This tends not
6264 # to be the way of modern systems, but it's conceivable.)
6266 # (Note 2: On some systems, notably Darwin, -pthread is not needed
6267 # to get POSIX threads support; the API is always present and
6268 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
6269 # -pthread does define _REENTRANT, and while the Darwin headers
6270 # ignore this macro, third-party headers might not.)
6272 PTHREAD_CFLAGS="-pthread"
6277 # However, older versions of Clang make a point of warning the user
6278 # that, in an invocation where only linking and no compilation is
6279 # taking place, the -pthread option has no effect ("argument unused
6280 # during compilation"). They expect -pthread to be passed in only
6281 # when source code is being compiled.
6283 # Problem is, this is at odds with the way Automake and most other
6284 # C build frameworks function, which is that the same flags used in
6285 # compilation (CFLAGS) are also used in linking. Many systems
6286 # supported by AX_PTHREAD require exactly this for POSIX threads
6287 # support, and in fact it is often not straightforward to specify a
6288 # flag that is used only in the compilation phase and not in
6289 # linking. Such a scenario is extremely rare in practice.
6291 # Even though use of the -pthread flag in linking would only print
6292 # a warning, this can be a nuisance for well-run software projects
6293 # that build with -Werror. So if the active version of Clang has
6294 # this misfeature, we search for an option to squash it.
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
6297 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
6298 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
6299 $as_echo_n "(cached) " >&6
6301 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
6302 # Create an alternate version of $ac_link that compiles and
6303 # links in two steps (.c -> .o, .o -> exe) instead of one
6304 # (.c -> exe), because the warning occurs only in the second
6306 ax_pthread_save_ac_link="$ac_link"
6307 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
6308 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
6309 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
6310 ax_pthread_save_CFLAGS="$CFLAGS"
6311 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
6312 if test "x$ax_pthread_try" = "xunknown"; then :
6315 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
6316 ac_link="$ax_pthread_save_ac_link"
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 int main(void){return 0;}
6321 if ac_fn_c_try_link "$LINENO"; then :
6322 ac_link="$ax_pthread_2step_ac_link"
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325 int main(void){return 0;}
6327 if ac_fn_c_try_link "$LINENO"; then :
6330 rm -f core conftest.err conftest.$ac_objext \
6331 conftest$ac_exeext conftest.$ac_ext
6334 rm -f core conftest.err conftest.$ac_objext \
6335 conftest$ac_exeext conftest.$ac_ext
6337 ac_link="$ax_pthread_save_ac_link"
6338 CFLAGS="$ax_pthread_save_CFLAGS"
6339 if test "x$ax_pthread_try" = "x"; then :
6342 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
6346 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
6348 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
6350 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
6353 fi # $ax_pthread_clang = yes
6355 if test "x$ax_pthread_ok" = "xno"; then
6356 for ax_pthread_try_flag in $ax_pthread_flags; do
6358 case $ax_pthread_try_flag in
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6361 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
6366 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
6367 PTHREAD_CFLAGS="-mt"
6368 PTHREAD_LIBS="-lpthread"
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
6373 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
6374 PTHREAD_CFLAGS="$ax_pthread_try_flag"
6378 # Extract the first word of "pthread-config", so it can be a program name with args.
6379 set dummy pthread-config; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_prog_ax_pthread_config+:} false; then :
6383 $as_echo_n "(cached) " >&6
6385 if test -n "$ax_pthread_config"; then
6386 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_ax_pthread_config="yes"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6406 ax_pthread_config=$ac_cv_prog_ax_pthread_config
6407 if test -n "$ax_pthread_config"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6409 $as_echo "$ax_pthread_config" >&6; }
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6416 if test "x$ax_pthread_config" = "xno"; then :
6419 PTHREAD_CFLAGS="`pthread-config --cflags`"
6420 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
6425 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
6426 PTHREAD_LIBS="-l$ax_pthread_try_flag"
6430 ax_pthread_save_CFLAGS="$CFLAGS"
6431 ax_pthread_save_LIBS="$LIBS"
6432 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6433 LIBS="$PTHREAD_LIBS $LIBS"
6435 # Check for various functions. We must include pthread.h,
6436 # since some functions may be macros. (On the Sequent, we
6437 # need a special flag -Kthread to make this header compile.)
6438 # We check for pthread_join because it is in -lpthread on IRIX
6439 # while pthread_create is in libc. We check for pthread_attr_init
6440 # due to DEC craziness with -lpthreads. We check for
6441 # pthread_cleanup_push because it is one of the few pthread
6442 # functions on Solaris that doesn't have a non-functional libc stub.
6443 # We try pthread_create on general principles.
6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6447 #include <pthread.h>
6448 # if $ax_pthread_check_cond
6449 # error "$ax_pthread_check_macro must be defined"
6451 static void routine(void *a) { a = 0; }
6452 static void *start_routine(void *a) { return a; }
6456 pthread_t th; pthread_attr_t attr;
6457 pthread_create(&th, 0, start_routine, 0);
6458 pthread_join(th, 0);
6459 pthread_attr_init(&attr);
6460 pthread_cleanup_push(routine, 0);
6461 pthread_cleanup_pop(0) /* ; */
6466 if ac_fn_c_try_link "$LINENO"; then :
6469 rm -f core conftest.err conftest.$ac_objext \
6470 conftest$ac_exeext conftest.$ac_ext
6472 CFLAGS="$ax_pthread_save_CFLAGS"
6473 LIBS="$ax_pthread_save_LIBS"
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6476 $as_echo "$ax_pthread_ok" >&6; }
6477 if test "x$ax_pthread_ok" = "xyes"; then :
6486 # Various other checks:
6487 if test "x$ax_pthread_ok" = "xyes"; then
6488 ax_pthread_save_CFLAGS="$CFLAGS"
6489 ax_pthread_save_LIBS="$LIBS"
6490 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6491 LIBS="$PTHREAD_LIBS $LIBS"
6493 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6495 $as_echo_n "checking for joinable pthread attribute... " >&6; }
6496 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
6497 $as_echo_n "(cached) " >&6
6499 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
6500 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 #include <pthread.h>
6507 int attr = $ax_pthread_attr; return attr /* ; */
6512 if ac_fn_c_try_link "$LINENO"; then :
6513 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
6515 rm -f core conftest.err conftest.$ac_objext \
6516 conftest$ac_exeext conftest.$ac_ext
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
6521 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
6522 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
6523 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
6524 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
6526 cat >>confdefs.h <<_ACEOF
6527 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
6530 ax_pthread_joinable_attr_defined=yes
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
6535 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
6536 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
6537 $as_echo_n "(cached) " >&6
6539 ax_cv_PTHREAD_SPECIAL_FLAGS=no
6542 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
6548 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
6549 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
6550 test "x$ax_pthread_special_flags_added" != "xyes"; then :
6551 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
6552 ax_pthread_special_flags_added=yes
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
6556 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
6557 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
6558 $as_echo_n "(cached) " >&6
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6562 #include <pthread.h>
6566 int i = PTHREAD_PRIO_INHERIT;
6571 if ac_fn_c_try_link "$LINENO"; then :
6572 ax_cv_PTHREAD_PRIO_INHERIT=yes
6574 ax_cv_PTHREAD_PRIO_INHERIT=no
6576 rm -f core conftest.err conftest.$ac_objext \
6577 conftest$ac_exeext conftest.$ac_ext
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
6581 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
6582 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
6583 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
6585 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
6587 ax_pthread_prio_inherit_defined=yes
6591 CFLAGS="$ax_pthread_save_CFLAGS"
6592 LIBS="$ax_pthread_save_LIBS"
6594 # More AIX lossage: compile with *_r variant
6595 if test "x$GCC" != "xyes"; then
6599 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
6600 #handle absolute path differently from PATH based program lookup
6603 if as_fn_executable_p ${CC}_r; then :
6604 PTHREAD_CC="${CC}_r"
6607 for ac_prog in ${CC}_r
6609 # Extract the first word of "$ac_prog", so it can be a program name with args.
6610 set dummy $ac_prog; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
6614 $as_echo_n "(cached) " >&6
6616 if test -n "$PTHREAD_CC"; then
6617 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626 ac_cv_prog_PTHREAD_CC="$ac_prog"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6637 if test -n "$PTHREAD_CC"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
6639 $as_echo "$PTHREAD_CC" >&6; }
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6646 test -n "$PTHREAD_CC" && break
6648 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6659 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6665 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6666 if test "x$ax_pthread_ok" = "xyes"; then
6668 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6676 ac_cpp='$CPP $CPPFLAGS'
6677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6683 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6687 # Check whether --enable-uuidd was given.
6688 if test "${enable_uuidd+set}" = set; then :
6689 enableval=$enable_uuidd; if test "$enableval" = "no"
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
6692 $as_echo "Not building uuidd" >&6; }
6695 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
6699 $as_echo "Building uuidd" >&6; }
6703 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6705 if test -z "$UUID_CMT"
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
6709 $as_echo "Building uuidd by default" >&6; }
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
6713 $as_echo "Disabling uuidd by default" >&6; }
6720 # Check whether --enable-mmp was given.
6721 if test "${enable_mmp+set}" = set; then :
6722 enableval=$enable_mmp; if test "$enableval" = "no"
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6725 $as_echo "Disabling mmp support" >&6; }
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6728 $as_echo "Enabling mmp support" >&6; }
6729 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6735 $as_echo "Enabling mmp support by default" >&6; }
6736 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6742 # Check whether --enable-tdb was given.
6743 if test "${enable_tdb+set}" = set; then :
6744 enableval=$enable_tdb; if test "$enableval" = "no"
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6747 $as_echo "Disabling tdb support" >&6; }
6749 TDB_MAN_COMMENT='.\"'
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6752 $as_echo "Enabling tdb support" >&6; }
6753 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6761 $as_echo "Enabling mmp support by default" >&6; }
6762 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6772 # Check whether --enable-bmap-stats was given.
6773 if test "${enable_bmap_stats+set}" = set; then :
6774 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6777 $as_echo "Disabling bitmap statistics support" >&6; }
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6780 $as_echo "Enabling bitmap statistics support" >&6; }
6781 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6787 $as_echo "Enabling bitmap statistics support by default" >&6; }
6788 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6794 # Check whether --enable-bmap-stats-ops was given.
6795 if test "${enable_bmap_stats_ops+set}" = set; then :
6796 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6799 $as_echo "Disabling additional bitmap statistics" >&6; }
6801 if test "x${enable_bmap_stats}" = "xno"; then :
6802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6804 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6805 See \`config.log' for more details" "$LINENO" 5; }
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6809 $as_echo "Enabling additional bitmap statistics" >&6; }
6810 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6816 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6820 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6822 GETTEXT_PACKAGE=e2fsprogs
6824 VERSION="$E2FSPROGS_VERSION"
6827 cat >>confdefs.h <<_ACEOF
6828 #define PACKAGE "$PACKAGE"
6832 cat >>confdefs.h <<_ACEOF
6833 #define VERSION "$VERSION"
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6841 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6843 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6844 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6845 $as_echo_n "(cached) " >&6
6847 cat >conftest.make <<\_ACEOF
6850 @echo '@@@%%%=$(MAKE)=@@@%%%'
6852 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6853 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6855 eval ac_cv_prog_make_${ac_make}_set=yes;;
6857 eval ac_cv_prog_make_${ac_make}_set=no;;
6861 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6863 $as_echo "yes" >&6; }
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 SET_MAKE="MAKE=${MAKE-make}"
6871 # Find a good install program. We prefer a C program (faster),
6872 # so one script is as good as another. But avoid the broken or
6873 # incompatible versions:
6874 # SysV /etc/install, /usr/sbin/install
6875 # SunOS /usr/etc/install
6876 # IRIX /sbin/install
6878 # AmigaOS /C/install, which installs bootblocks on floppy discs
6879 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6880 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6881 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6882 # OS/2's system install, which has a completely different semantic
6883 # ./install, which can be erroneously created by make from ./install.sh.
6884 # Reject install programs that cannot install multiple files.
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6886 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6887 if test -z "$INSTALL"; then
6888 if ${ac_cv_path_install+:} false; then :
6889 $as_echo_n "(cached) " >&6
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 test -z "$as_dir" && as_dir=.
6896 # Account for people who put trailing slashes in PATH elements.
6897 case $as_dir/ in #((
6898 ./ | .// | /[cC]/* | \
6899 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6900 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6903 # OSF1 and SCO ODT 3.0 have their own names for install.
6904 # Don't use installbsd from OSF since it installs stuff as root
6906 for ac_prog in ginstall scoinst install; do
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6909 if test $ac_prog = install &&
6910 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6911 # AIX install. It has an incompatible calling convention.
6913 elif test $ac_prog = install &&
6914 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6915 # program-specific install script used by HP pwplus--don't use.
6918 rm -rf conftest.one conftest.two conftest.dir
6919 echo one > conftest.one
6920 echo two > conftest.two
6922 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6923 test -s conftest.one && test -s conftest.two &&
6924 test -s conftest.dir/conftest.one &&
6925 test -s conftest.dir/conftest.two
6927 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6940 rm -rf conftest.one conftest.two conftest.dir
6943 if test "${ac_cv_path_install+set}" = set; then
6944 INSTALL=$ac_cv_path_install
6946 # As a last resort, use the slow shell script. Don't cache a
6947 # value for INSTALL within a source directory, because that will
6948 # break other packages using the cache if that directory is
6949 # removed, or if the value is a relative name.
6950 INSTALL=$ac_install_sh
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6954 $as_echo "$INSTALL" >&6; }
6956 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6957 # It thinks the first close brace ends the variable substitution.
6958 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6960 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6962 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6965 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6966 if test -z "$MKDIR_P"; then
6967 if ${ac_cv_path_mkdir+:} false; then :
6968 $as_echo_n "(cached) " >&6
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6974 test -z "$as_dir" && as_dir=.
6975 for ac_prog in mkdir gmkdir; do
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6978 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6979 'mkdir (GNU coreutils) '* | \
6980 'mkdir (coreutils) '* | \
6981 'mkdir (fileutils) '4.1*)
6982 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6992 test -d ./--version && rmdir ./--version
6993 if test "${ac_cv_path_mkdir+set}" = set; then
6994 MKDIR_P="$ac_cv_path_mkdir -p"
6996 # As a last resort, use the slow shell script. Don't cache a
6997 # value for MKDIR_P within a source directory, because that will
6998 # break other packages using the cache if that directory is
6999 # removed, or if the value is a relative name.
7000 MKDIR_P="$ac_install_sh -d"
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7004 $as_echo "$MKDIR_P" >&6; }
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7008 $as_echo_n "checking whether NLS is requested... " >&6; }
7009 # Check whether --enable-nls was given.
7010 if test "${enable_nls+set}" = set; then :
7011 enableval=$enable_nls; USE_NLS=$enableval
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7017 $as_echo "$USE_NLS" >&6; }
7022 GETTEXT_MACRO_VERSION=0.20
7027 # Prepare PATH_SEPARATOR.
7028 # The user is always right.
7029 if test "${PATH_SEPARATOR+set}" != set; then
7030 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7031 # contains only /bin. Note that ksh looks also at the FPATH variable,
7032 # so we have to set that as well for the test.
7034 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7035 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7036 || PATH_SEPARATOR=';'
7040 # Find out how to test for executable files. Don't use a zero-byte file,
7041 # as systems may use methods other than mode bits to determine executability.
7042 cat >conf$$.file <<_ASEOF
7046 chmod +x conf$$.file
7047 if test -x conf$$.file >/dev/null 2>&1; then
7048 ac_executable_p="test -x"
7050 ac_executable_p="test -f"
7054 # Extract the first word of "msgfmt", so it can be a program name with args.
7055 set dummy msgfmt; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if ${ac_cv_path_MSGFMT+:} false; then :
7059 $as_echo_n "(cached) " >&6
7063 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7066 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7067 for ac_dir in $PATH; do
7069 test -z "$ac_dir" && ac_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7072 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7073 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7074 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7075 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7082 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7086 MSGFMT="$ac_cv_path_MSGFMT"
7087 if test "$MSGFMT" != ":"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7089 $as_echo "$MSGFMT" >&6; }
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7095 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7096 set dummy gmsgfmt; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_path_GMSGFMT+:} false; then :
7100 $as_echo_n "(cached) " >&6
7104 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7126 GMSGFMT=$ac_cv_path_GMSGFMT
7127 if test -n "$GMSGFMT"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7129 $as_echo "$GMSGFMT" >&6; }
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7137 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7138 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7139 *) GMSGFMT_015=$GMSGFMT ;;
7144 # Prepare PATH_SEPARATOR.
7145 # The user is always right.
7146 if test "${PATH_SEPARATOR+set}" != set; then
7147 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7148 # contains only /bin. Note that ksh looks also at the FPATH variable,
7149 # so we have to set that as well for the test.
7151 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7152 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7153 || PATH_SEPARATOR=';'
7157 # Find out how to test for executable files. Don't use a zero-byte file,
7158 # as systems may use methods other than mode bits to determine executability.
7159 cat >conf$$.file <<_ASEOF
7163 chmod +x conf$$.file
7164 if test -x conf$$.file >/dev/null 2>&1; then
7165 ac_executable_p="test -x"
7167 ac_executable_p="test -f"
7171 # Extract the first word of "xgettext", so it can be a program name with args.
7172 set dummy xgettext; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_path_XGETTEXT+:} false; then :
7176 $as_echo_n "(cached) " >&6
7180 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7183 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7184 for ac_dir in $PATH; do
7186 test -z "$ac_dir" && ac_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7189 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7190 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7191 (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
7192 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7199 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7203 XGETTEXT="$ac_cv_path_XGETTEXT"
7204 if test "$XGETTEXT" != ":"; then
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7206 $as_echo "$XGETTEXT" >&6; }
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7214 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7215 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7216 *) XGETTEXT_015=$XGETTEXT ;;
7221 # Prepare PATH_SEPARATOR.
7222 # The user is always right.
7223 if test "${PATH_SEPARATOR+set}" != set; then
7224 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7225 # contains only /bin. Note that ksh looks also at the FPATH variable,
7226 # so we have to set that as well for the test.
7228 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7229 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7230 || PATH_SEPARATOR=';'
7234 # Find out how to test for executable files. Don't use a zero-byte file,
7235 # as systems may use methods other than mode bits to determine executability.
7236 cat >conf$$.file <<_ASEOF
7240 chmod +x conf$$.file
7241 if test -x conf$$.file >/dev/null 2>&1; then
7242 ac_executable_p="test -x"
7244 ac_executable_p="test -f"
7248 # Extract the first word of "msgmerge", so it can be a program name with args.
7249 set dummy msgmerge; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if ${ac_cv_path_MSGMERGE+:} false; then :
7253 $as_echo_n "(cached) " >&6
7257 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7260 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7261 for ac_dir in $PATH; do
7263 test -z "$ac_dir" && ac_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7266 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7267 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7268 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7275 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7279 MSGMERGE="$ac_cv_path_MSGMERGE"
7280 if test "$MSGMERGE" != ":"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7282 $as_echo "$MSGMERGE" >&6; }
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7289 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
7290 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
7292 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
7293 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
7295 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
7300 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7303 ac_config_commands="$ac_config_commands po-directories"
7307 if test "X$prefix" = "XNONE"; then
7308 acl_final_prefix="$ac_default_prefix"
7310 acl_final_prefix="$prefix"
7312 if test "X$exec_prefix" = "XNONE"; then
7313 acl_final_exec_prefix='${prefix}'
7315 acl_final_exec_prefix="$exec_prefix"
7317 acl_save_prefix="$prefix"
7318 prefix="$acl_final_prefix"
7319 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7320 prefix="$acl_save_prefix"
7324 # Check whether --with-gnu-ld was given.
7325 if test "${with_gnu_ld+set}" = set; then :
7326 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7331 # Prepare PATH_SEPARATOR.
7332 # The user is always right.
7333 if test "${PATH_SEPARATOR+set}" != set; then
7334 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7335 # contains only /bin. Note that ksh looks also at the FPATH variable,
7336 # so we have to set that as well for the test.
7338 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7339 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7340 || PATH_SEPARATOR=';'
7344 if test -n "$LD"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
7346 $as_echo_n "checking for ld... " >&6; }
7347 elif test "$GCC" = yes; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7349 $as_echo_n "checking for ld used by $CC... " >&6; }
7350 elif test "$with_gnu_ld" = yes; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7352 $as_echo_n "checking for GNU ld... " >&6; }
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7355 $as_echo_n "checking for non-GNU ld... " >&6; }
7357 if test -n "$LD"; then
7358 # Let the user override the test with a path.
7361 if ${acl_cv_path_LD+:} false; then :
7362 $as_echo_n "(cached) " >&6
7365 acl_cv_path_LD= # Final result of this test
7366 ac_prog=ld # Program to search in $PATH
7367 if test "$GCC" = yes; then
7368 # Check if gcc -print-prog-name=ld gives a path.
7371 # gcc leaves a trailing carriage return which upsets mingw
7372 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7374 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
7377 # Accept absolute paths.
7379 re_direlt='/[^/][^/]*/\.\./'
7380 # Canonicalize the pathname of ld
7381 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
7382 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
7383 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
7385 # Got the pathname. No search in PATH is needed.
7386 acl_cv_path_LD="$acl_output"
7390 # If it fails, then pretend we aren't using GCC.
7393 # If it is relative, then search for the first ld in PATH.
7398 if test -n "$ac_prog"; then
7399 # Search for $ac_prog in $PATH.
7400 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7401 for ac_dir in $PATH; do
7403 test -z "$ac_dir" && ac_dir=.
7404 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7405 acl_cv_path_LD="$ac_dir/$ac_prog"
7406 # Check to see if the program is GNU ld. I'd rather use --version,
7407 # but apparently some variants of GNU ld only accept -v.
7408 # Break only if it was the GNU/non-GNU ld that we prefer.
7409 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7410 *GNU* | *'with BFD'*)
7411 test "$with_gnu_ld" != no && break
7414 test "$with_gnu_ld" != yes && break
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425 #if defined __powerpc64__ || defined _ARCH_PPC64
7432 if ac_fn_c_try_compile "$LINENO"; then :
7433 # The compiler produces 64-bit code. Add option '-b64' so that the
7434 # linker groks 64-bit object files.
7435 case "$acl_cv_path_LD " in
7437 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7446 #if defined __sparcv9 || defined __arch64__
7453 if ac_fn_c_try_compile "$LINENO"; then :
7456 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
7457 # so that the linker groks 32-bit object files.
7458 case "$acl_cv_path_LD " in
7459 *" -m elf32_sparc "*) ;;
7460 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
7464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7470 LD="$acl_cv_path_LD"
7472 if test -n "$LD"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7474 $as_echo "$LD" >&6; }
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7478 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7481 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7482 if ${acl_cv_prog_gnu_ld+:} false; then :
7483 $as_echo_n "(cached) " >&6
7485 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7486 case `$LD -v 2>&1 </dev/null` in
7487 *GNU* | *'with BFD'*)
7488 acl_cv_prog_gnu_ld=yes
7491 acl_cv_prog_gnu_ld=no
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7496 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7497 with_gnu_ld=$acl_cv_prog_gnu_ld
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7503 $as_echo_n "checking for shared library run path origin... " >&6; }
7504 if ${acl_cv_rpath+:} false; then :
7505 $as_echo_n "(cached) " >&6
7508 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7509 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7516 $as_echo "$acl_cv_rpath" >&6; }
7518 acl_libext="$acl_cv_libext"
7519 acl_shlibext="$acl_cv_shlibext"
7520 acl_libname_spec="$acl_cv_libname_spec"
7521 acl_library_names_spec="$acl_cv_library_names_spec"
7522 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7523 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7524 acl_hardcode_direct="$acl_cv_hardcode_direct"
7525 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7526 # Check whether --enable-rpath was given.
7527 if test "${enable_rpath+set}" = set; then :
7528 enableval=$enable_rpath; :
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
7537 $as_echo_n "checking 32-bit host C ABI... " >&6; }
7538 if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
7539 $as_echo_n "(cached) " >&6
7541 if test -n "$gl_cv_host_cpu_c_abi"; then
7542 case "$gl_cv_host_cpu_c_abi" in
7543 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
7544 gl_cv_host_cpu_c_abi_32bit=yes ;;
7545 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
7546 gl_cv_host_cpu_c_abi_32bit=no ;;
7548 gl_cv_host_cpu_c_abi_32bit=unknown ;;
7553 # CPUs that only support a 32-bit ABI.
7562 | microblaze | microblazeel \
7563 | nds32 | nds32le | nds32be \
7564 | nios2 | nios2eb | nios2el \
7567 | sh | sh1234 | sh1234elb \
7570 gl_cv_host_cpu_c_abi_32bit=yes
7573 # CPUs that only support a 64-bit ABI.
7574 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
7576 gl_cv_host_cpu_c_abi_32bit=no
7580 gl_cv_host_cpu_c_abi_32bit=yes
7584 # On x86_64 systems, the C compiler may be generating code in one of
7586 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
7587 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
7588 # with native Windows (mingw, MSVC).
7589 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
7590 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593 #if (defined __x86_64__ || defined __amd64__ \
7594 || defined _M_X64 || defined _M_AMD64) \
7595 && !(defined __ILP32__ || defined _ILP32)
7602 if ac_fn_c_try_compile "$LINENO"; then :
7603 gl_cv_host_cpu_c_abi_32bit=no
7605 gl_cv_host_cpu_c_abi_32bit=yes
7607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611 # Assume arm with EABI.
7612 # On arm64 systems, the C compiler may be generating code in one of
7614 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
7615 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
7616 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
7626 if ac_fn_c_try_compile "$LINENO"; then :
7627 gl_cv_host_cpu_c_abi_32bit=no
7629 gl_cv_host_cpu_c_abi_32bit=yes
7631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
7635 # On hppa, the C compiler may be generating 32-bit code or 64-bit
7636 # code. In the latter case, it defines _LP64 and __LP64__.
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7646 if ac_fn_c_try_compile "$LINENO"; then :
7647 gl_cv_host_cpu_c_abi_32bit=no
7649 gl_cv_host_cpu_c_abi_32bit=yes
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
7656 # 32-bit code. In the latter case, it defines _ILP32.
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h. */
7666 if ac_fn_c_try_compile "$LINENO"; then :
7667 gl_cv_host_cpu_c_abi_32bit=yes
7669 gl_cv_host_cpu_c_abi_32bit=no
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7679 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
7686 if ac_fn_c_try_compile "$LINENO"; then :
7687 gl_cv_host_cpu_c_abi_32bit=no
7689 gl_cv_host_cpu_c_abi_32bit=yes
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
7696 # No need to distinguish them here; the caller may distinguish
7697 # them based on the OS.
7698 # On powerpc64 systems, the C compiler may still be generating
7699 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
7700 # be generating 64-bit code.
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703 #if defined __powerpc64__ || defined _ARCH_PPC64
7710 if ac_fn_c_try_compile "$LINENO"; then :
7711 gl_cv_host_cpu_c_abi_32bit=no
7713 gl_cv_host_cpu_c_abi_32bit=yes
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719 gl_cv_host_cpu_c_abi_32bit=yes
7723 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
7724 # Size of 'long' and 'void *':
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727 #if defined __LP64__
7734 if ac_fn_c_try_compile "$LINENO"; then :
7735 gl_cv_host_cpu_c_abi_32bit=no
7737 gl_cv_host_cpu_c_abi_32bit=yes
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 # On s390x, the C compiler may be generating 64-bit (= s390x) code
7744 # or 31-bit (= s390) code.
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7747 #if defined __LP64__ || defined __s390x__
7754 if ac_fn_c_try_compile "$LINENO"; then :
7755 gl_cv_host_cpu_c_abi_32bit=no
7757 gl_cv_host_cpu_c_abi_32bit=yes
7759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
7764 # C compiler still generates 32-bit code.
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767 #if defined __sparcv9 || defined __arch64__
7774 if ac_fn_c_try_compile "$LINENO"; then :
7775 gl_cv_host_cpu_c_abi_32bit=no
7777 gl_cv_host_cpu_c_abi_32bit=yes
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783 gl_cv_host_cpu_c_abi_32bit=unknown
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
7790 $as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
7792 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
7799 $as_echo_n "checking for ELF binary format... " >&6; }
7800 if ${gl_cv_elf+:} false; then :
7801 $as_echo_n "(cached) " >&6
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7806 Extensible Linking Format
7810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7811 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
7821 $as_echo "$gl_cv_elf" >&6; }
7822 if test $gl_cv_elf; then
7823 # Extract the ELF class of a file (5th byte) in decimal.
7824 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
7825 if od -A x < /dev/null >/dev/null 2>/dev/null; then
7829 od -A n -t d1 -j 4 -N 1
7835 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
7839 case $HOST_CPU_C_ABI_32BIT in
7842 acl_is_expected_elfclass ()
7844 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
7849 acl_is_expected_elfclass ()
7851 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
7856 acl_is_expected_elfclass ()
7863 acl_is_expected_elfclass ()
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
7870 $as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
7871 if ${acl_cv_libdirstems+:} false; then :
7872 $as_echo_n "(cached) " >&6
7879 if test $HOST_CPU_C_ABI_32BIT = no; then
7880 acl_libdirstem2=lib/64
7882 sparc*) acl_libdirstem3=lib/sparcv9 ;;
7883 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
7888 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
7889 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7890 if test $HOST_CPU_C_ABI_32BIT != no; then
7891 # 32-bit or unknown ABI.
7892 if test -d /usr/lib32; then
7893 acl_libdirstem2=lib32
7896 if test $HOST_CPU_C_ABI_32BIT != yes; then
7897 # 64-bit or unknown ABI.
7898 if test -d /usr/lib64; then
7899 acl_libdirstem3=lib64
7902 if test -n "$searchpath"; then
7903 acl_save_IFS="${IFS= }"; IFS=":"
7904 for searchdir in $searchpath; do
7905 if test -d "$searchdir"; then
7906 case "$searchdir" in
7907 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
7908 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
7910 # Better ignore directories of this form. They are misleading.
7912 *) searchdir=`cd "$searchdir" && pwd`
7913 case "$searchdir" in
7914 */lib32 ) acl_libdirstem2=lib32 ;;
7915 */lib64 ) acl_libdirstem3=lib64 ;;
7921 if test $HOST_CPU_C_ABI_32BIT = yes; then
7925 if test $HOST_CPU_C_ABI_32BIT = no; then
7932 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7933 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
7934 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
7938 $as_echo "$acl_cv_libdirstems" >&6; }
7939 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
7940 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
7941 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
7955 acl_save_prefix="$prefix"
7956 prefix="$acl_final_prefix"
7957 acl_save_exec_prefix="$exec_prefix"
7958 exec_prefix="$acl_final_exec_prefix"
7960 eval additional_includedir=\"$includedir\"
7961 eval additional_libdir=\"$libdir\"
7962 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7963 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7965 exec_prefix="$acl_save_exec_prefix"
7966 prefix="$acl_save_prefix"
7969 # Check whether --with-libiconv-prefix was given.
7970 if test "${with_libiconv_prefix+set}" = set; then :
7971 withval=$with_libiconv_prefix;
7972 if test "X$withval" = "Xno"; then
7975 if test "X$withval" = "X"; then
7977 acl_save_prefix="$prefix"
7978 prefix="$acl_final_prefix"
7979 acl_save_exec_prefix="$exec_prefix"
7980 exec_prefix="$acl_final_exec_prefix"
7982 eval additional_includedir=\"$includedir\"
7983 eval additional_libdir=\"$libdir\"
7984 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7985 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7987 exec_prefix="$acl_save_exec_prefix"
7988 prefix="$acl_save_prefix"
7991 additional_includedir="$withval/include"
7992 additional_libdir="$withval/$acl_libdirstem"
7993 additional_libdir2="$withval/$acl_libdirstem2"
7994 additional_libdir3="$withval/$acl_libdirstem3"
8000 if test "X$additional_libdir2" = "X$additional_libdir"; then
8003 if test "X$additional_libdir3" = "X$additional_libdir"; then
8013 names_already_handled=
8014 names_next_round='iconv '
8015 while test -n "$names_next_round"; do
8016 names_this_round="$names_next_round"
8018 for name in $names_this_round; do
8020 for n in $names_already_handled; do
8021 if test "$n" = "$name"; then
8026 if test -z "$already_handled"; then
8027 names_already_handled="$names_already_handled $name"
8028 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8029 eval value=\"\$HAVE_LIB$uppername\"
8030 if test -n "$value"; then
8031 if test "$value" = yes; then
8032 eval value=\"\$LIB$uppername\"
8033 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8034 eval value=\"\$LTLIB$uppername\"
8035 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8044 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8045 if test -n "$acl_shlibext"; then
8046 shrext=".$acl_shlibext" # typically: shrext=.so
8050 if test $use_additional = yes; then
8051 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8052 if test "X$found_dir" = "X"; then
8053 eval dir=\$$additional_libdir_variable
8054 if test -n "$dir"; then
8055 if test -n "$acl_shlibext"; then
8056 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8058 found_so="$dir/$libname$shrext"
8060 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8061 ver=`(cd "$dir" && \
8062 for f in "$libname$shrext".*; do echo "$f"; done \
8063 | sed -e "s,^$libname$shrext\\\\.,," \
8064 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8065 | sed 1q ) 2>/dev/null`
8066 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8068 found_so="$dir/$libname$shrext.$ver"
8071 eval library_names=\"$acl_library_names_spec\"
8072 for f in $library_names; do
8073 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8082 if test "X$found_dir" = "X"; then
8083 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8085 found_a="$dir/$libname.$acl_libext"
8088 if test "X$found_dir" != "X"; then
8089 if test -f "$dir/$libname.la"; then
8090 found_la="$dir/$libname.la"
8097 if test "X$found_dir" = "X"; then
8098 for x in $LDFLAGS $LTLIBICONV; do
8100 acl_save_prefix="$prefix"
8101 prefix="$acl_final_prefix"
8102 acl_save_exec_prefix="$exec_prefix"
8103 exec_prefix="$acl_final_exec_prefix"
8105 exec_prefix="$acl_save_exec_prefix"
8106 prefix="$acl_save_prefix"
8110 dir=`echo "X$x" | sed -e 's/^X-L//'`
8111 if test -n "$acl_shlibext"; then
8112 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8114 found_so="$dir/$libname$shrext"
8116 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8117 ver=`(cd "$dir" && \
8118 for f in "$libname$shrext".*; do echo "$f"; done \
8119 | sed -e "s,^$libname$shrext\\\\.,," \
8120 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8121 | sed 1q ) 2>/dev/null`
8122 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8124 found_so="$dir/$libname$shrext.$ver"
8127 eval library_names=\"$acl_library_names_spec\"
8128 for f in $library_names; do
8129 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8138 if test "X$found_dir" = "X"; then
8139 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8141 found_a="$dir/$libname.$acl_libext"
8144 if test "X$found_dir" != "X"; then
8145 if test -f "$dir/$libname.la"; then
8146 found_la="$dir/$libname.la"
8151 if test "X$found_dir" != "X"; then
8156 if test "X$found_dir" != "X"; then
8157 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8158 if test "X$found_so" != "X"; then
8159 if test "$enable_rpath" = no \
8160 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8161 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
8162 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
8163 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8166 for x in $ltrpathdirs; do
8167 if test "X$x" = "X$found_dir"; then
8172 if test -z "$haveit"; then
8173 ltrpathdirs="$ltrpathdirs $found_dir"
8175 if test "$acl_hardcode_direct" = yes; then
8176 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8178 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8179 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8181 for x in $rpathdirs; do
8182 if test "X$x" = "X$found_dir"; then
8187 if test -z "$haveit"; then
8188 rpathdirs="$rpathdirs $found_dir"
8192 for x in $LDFLAGS $LIBICONV; do
8194 acl_save_prefix="$prefix"
8195 prefix="$acl_final_prefix"
8196 acl_save_exec_prefix="$exec_prefix"
8197 exec_prefix="$acl_final_exec_prefix"
8199 exec_prefix="$acl_save_exec_prefix"
8200 prefix="$acl_save_prefix"
8202 if test "X$x" = "X-L$found_dir"; then
8207 if test -z "$haveit"; then
8208 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8210 if test "$acl_hardcode_minus_L" != no; then
8211 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8213 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8219 if test "X$found_a" != "X"; then
8220 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8222 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8225 additional_includedir=
8226 case "$found_dir" in
8227 */$acl_libdirstem | */$acl_libdirstem/)
8228 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8229 if test "$name" = 'iconv'; then
8230 LIBICONV_PREFIX="$basedir"
8232 additional_includedir="$basedir/include"
8234 */$acl_libdirstem2 | */$acl_libdirstem2/)
8235 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8236 if test "$name" = 'iconv'; then
8237 LIBICONV_PREFIX="$basedir"
8239 additional_includedir="$basedir/include"
8241 */$acl_libdirstem3 | */$acl_libdirstem3/)
8242 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
8243 if test "$name" = 'iconv'; then
8244 LIBICONV_PREFIX="$basedir"
8246 additional_includedir="$basedir/include"
8249 if test "X$additional_includedir" != "X"; then
8250 if test "X$additional_includedir" != "X/usr/include"; then
8252 if test "X$additional_includedir" = "X/usr/local/include"; then
8253 if test -n "$GCC"; then
8255 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8259 if test -z "$haveit"; then
8260 for x in $CPPFLAGS $INCICONV; do
8262 acl_save_prefix="$prefix"
8263 prefix="$acl_final_prefix"
8264 acl_save_exec_prefix="$exec_prefix"
8265 exec_prefix="$acl_final_exec_prefix"
8267 exec_prefix="$acl_save_exec_prefix"
8268 prefix="$acl_save_prefix"
8270 if test "X$x" = "X-I$additional_includedir"; then
8275 if test -z "$haveit"; then
8276 if test -d "$additional_includedir"; then
8277 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8283 if test -n "$found_la"; then
8284 save_libdir="$libdir"
8286 */* | *\\*) . "$found_la" ;;
8287 *) . "./$found_la" ;;
8289 libdir="$save_libdir"
8290 for dep in $dependency_libs; do
8293 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8294 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
8295 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
8296 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
8298 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
8299 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
8300 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
8301 if test -n "$GCC"; then
8303 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8307 if test -z "$haveit"; then
8309 for x in $LDFLAGS $LIBICONV; do
8311 acl_save_prefix="$prefix"
8312 prefix="$acl_final_prefix"
8313 acl_save_exec_prefix="$exec_prefix"
8314 exec_prefix="$acl_final_exec_prefix"
8316 exec_prefix="$acl_save_exec_prefix"
8317 prefix="$acl_save_prefix"
8319 if test "X$x" = "X-L$dependency_libdir"; then
8324 if test -z "$haveit"; then
8325 if test -d "$dependency_libdir"; then
8326 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
8330 for x in $LDFLAGS $LTLIBICONV; do
8332 acl_save_prefix="$prefix"
8333 prefix="$acl_final_prefix"
8334 acl_save_exec_prefix="$exec_prefix"
8335 exec_prefix="$acl_final_exec_prefix"
8337 exec_prefix="$acl_save_exec_prefix"
8338 prefix="$acl_save_prefix"
8340 if test "X$x" = "X-L$dependency_libdir"; then
8345 if test -z "$haveit"; then
8346 if test -d "$dependency_libdir"; then
8347 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
8354 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8355 if test "$enable_rpath" != no; then
8357 for x in $rpathdirs; do
8358 if test "X$x" = "X$dir"; then
8363 if test -z "$haveit"; then
8364 rpathdirs="$rpathdirs $dir"
8367 for x in $ltrpathdirs; do
8368 if test "X$x" = "X$dir"; then
8373 if test -z "$haveit"; then
8374 ltrpathdirs="$ltrpathdirs $dir"
8379 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8382 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8385 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8386 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8392 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8393 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8399 if test "X$rpathdirs" != "X"; then
8400 if test -n "$acl_hardcode_libdir_separator"; then
8402 for found_dir in $rpathdirs; do
8403 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8405 acl_save_libdir="$libdir"
8407 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8408 libdir="$acl_save_libdir"
8409 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8411 for found_dir in $rpathdirs; do
8412 acl_save_libdir="$libdir"
8414 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8415 libdir="$acl_save_libdir"
8416 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8420 if test "X$ltrpathdirs" != "X"; then
8421 for found_dir in $ltrpathdirs; do
8422 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8455 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8456 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8457 $as_echo_n "(cached) " >&6
8459 gt_save_LIBS="$LIBS"
8460 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8463 #include <CoreFoundation/CFPreferences.h>
8467 CFPreferencesCopyAppValue(NULL, NULL)
8472 if ac_fn_c_try_link "$LINENO"; then :
8473 gt_cv_func_CFPreferencesCopyAppValue=yes
8475 gt_cv_func_CFPreferencesCopyAppValue=no
8477 rm -f core conftest.err conftest.$ac_objext \
8478 conftest$ac_exeext conftest.$ac_ext
8479 LIBS="$gt_save_LIBS"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8482 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8483 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8485 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
8489 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
8490 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
8491 $as_echo_n "(cached) " >&6
8493 gt_save_LIBS="$LIBS"
8494 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 #include <CoreFoundation/CFLocale.h>
8501 CFLocaleCopyPreferredLanguages();
8506 if ac_fn_c_try_link "$LINENO"; then :
8507 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
8509 gt_cv_func_CFLocaleCopyPreferredLanguages=no
8511 rm -f core conftest.err conftest.$ac_objext \
8512 conftest$ac_exeext conftest.$ac_ext
8513 LIBS="$gt_save_LIBS"
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
8516 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
8517 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
8519 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
8523 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
8524 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
8525 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8537 case " $gt_needs " in
8538 *" need-formatstring-macros "*) gt_api_version=3 ;;
8539 *" need-ngettext "*) gt_api_version=2 ;;
8540 *) gt_api_version=1 ;;
8542 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8543 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8545 if test "$USE_NLS" = "yes"; then
8546 gt_use_preinstalled_gnugettext=no
8549 if test $gt_api_version -ge 3; then
8550 gt_revision_test_code='
8551 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8552 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8554 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8557 gt_revision_test_code=
8559 if test $gt_api_version -ge 2; then
8560 gt_expression_test_code=' + * ngettext ("", "", 0)'
8562 gt_expression_test_code=
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8566 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8567 if eval \${$gt_func_gnugettext_libc+:} false; then :
8568 $as_echo_n "(cached) " >&6
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8573 #include <libintl.h>
8574 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8575 extern int _nl_msg_cat_cntr;
8576 extern int *_nl_domain_bindings;
8577 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
8579 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8581 $gt_revision_test_code
8587 bindtextdomain ("", "");
8588 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8594 if ac_fn_c_try_link "$LINENO"; then :
8595 eval "$gt_func_gnugettext_libc=yes"
8597 eval "$gt_func_gnugettext_libc=no"
8599 rm -f core conftest.err conftest.$ac_objext \
8600 conftest$ac_exeext conftest.$ac_ext
8602 eval ac_res=\$$gt_func_gnugettext_libc
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8604 $as_echo "$ac_res" >&6; }
8606 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8612 am_save_CPPFLAGS="$CPPFLAGS"
8614 for element in $INCICONV; do
8616 for x in $CPPFLAGS; do
8618 acl_save_prefix="$prefix"
8619 prefix="$acl_final_prefix"
8620 acl_save_exec_prefix="$exec_prefix"
8621 exec_prefix="$acl_final_exec_prefix"
8623 exec_prefix="$acl_save_exec_prefix"
8624 prefix="$acl_save_prefix"
8626 if test "X$x" = "X$element"; then
8631 if test -z "$haveit"; then
8632 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8638 $as_echo_n "checking for iconv... " >&6; }
8639 if ${am_cv_func_iconv+:} false; then :
8640 $as_echo_n "(cached) " >&6
8643 am_cv_func_iconv="no, consider installing GNU libiconv"
8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8654 iconv_t cd = iconv_open("","");
8655 iconv(cd,NULL,NULL,NULL,NULL);
8661 if ac_fn_c_try_link "$LINENO"; then :
8662 am_cv_func_iconv=yes
8664 rm -f core conftest.err conftest.$ac_objext \
8665 conftest$ac_exeext conftest.$ac_ext
8666 if test "$am_cv_func_iconv" != yes; then
8667 am_save_LIBS="$LIBS"
8668 LIBS="$LIBS $LIBICONV"
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670 /* end confdefs.h. */
8678 iconv_t cd = iconv_open("","");
8679 iconv(cd,NULL,NULL,NULL,NULL);
8685 if ac_fn_c_try_link "$LINENO"; then :
8687 am_cv_func_iconv=yes
8689 rm -f core conftest.err conftest.$ac_objext \
8690 conftest$ac_exeext conftest.$ac_ext
8691 LIBS="$am_save_LIBS"
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8696 $as_echo "$am_cv_func_iconv" >&6; }
8697 if test "$am_cv_func_iconv" = yes; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8699 $as_echo_n "checking for working iconv... " >&6; }
8700 if ${am_cv_func_iconv_works+:} false; then :
8701 $as_echo_n "(cached) " >&6
8704 am_save_LIBS="$LIBS"
8705 if test $am_cv_lib_iconv = yes; then
8706 LIBS="$LIBS $LIBICONV"
8708 am_cv_func_iconv_works=no
8709 for ac_iconv_const in '' 'const'; do
8710 if test "$cross_compiling" = yes; then :
8712 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8713 *) am_cv_func_iconv_works="guessing yes" ;;
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8723 # define ICONV_CONST $ac_iconv_const
8730 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8733 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8734 if (cd_utf8_to_88591 != (iconv_t)(-1))
8736 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8738 ICONV_CONST char *inptr = input;
8739 size_t inbytesleft = strlen (input);
8741 size_t outbytesleft = sizeof (buf);
8742 size_t res = iconv (cd_utf8_to_88591,
8743 &inptr, &inbytesleft,
8744 &outptr, &outbytesleft);
8747 iconv_close (cd_utf8_to_88591);
8750 /* Test against Solaris 10 bug: Failures are not distinguishable from
8751 successful returns. */
8753 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8754 if (cd_ascii_to_88591 != (iconv_t)(-1))
8756 static ICONV_CONST char input[] = "\263";
8758 ICONV_CONST char *inptr = input;
8759 size_t inbytesleft = strlen (input);
8761 size_t outbytesleft = sizeof (buf);
8762 size_t res = iconv (cd_ascii_to_88591,
8763 &inptr, &inbytesleft,
8764 &outptr, &outbytesleft);
8767 iconv_close (cd_ascii_to_88591);
8770 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8772 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8773 if (cd_88591_to_utf8 != (iconv_t)(-1))
8775 static ICONV_CONST char input[] = "\304";
8776 static char buf[2] = { (char)0xDE, (char)0xAD };
8777 ICONV_CONST char *inptr = input;
8778 size_t inbytesleft = 1;
8780 size_t outbytesleft = 1;
8781 size_t res = iconv (cd_88591_to_utf8,
8782 &inptr, &inbytesleft,
8783 &outptr, &outbytesleft);
8784 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8786 iconv_close (cd_88591_to_utf8);
8789 #if 0 /* This bug could be worked around by the caller. */
8790 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8792 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8793 if (cd_88591_to_utf8 != (iconv_t)(-1))
8795 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8797 ICONV_CONST char *inptr = input;
8798 size_t inbytesleft = strlen (input);
8800 size_t outbytesleft = sizeof (buf);
8801 size_t res = iconv (cd_88591_to_utf8,
8802 &inptr, &inbytesleft,
8803 &outptr, &outbytesleft);
8806 iconv_close (cd_88591_to_utf8);
8810 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8813 /* Try standardized names. */
8814 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8815 /* Try IRIX, OSF/1 names. */
8816 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8817 /* Try AIX names. */
8818 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8819 /* Try HP-UX names. */
8820 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8821 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8822 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8824 if (cd1 != (iconv_t)(-1))
8826 if (cd2 != (iconv_t)(-1))
8828 if (cd3 != (iconv_t)(-1))
8830 if (cd4 != (iconv_t)(-1))
8839 if ac_fn_c_try_run "$LINENO"; then :
8840 am_cv_func_iconv_works=yes
8842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8843 conftest.$ac_objext conftest.beam conftest.$ac_ext
8846 test "$am_cv_func_iconv_works" = no || break
8848 LIBS="$am_save_LIBS"
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8852 $as_echo "$am_cv_func_iconv_works" >&6; }
8853 case "$am_cv_func_iconv_works" in
8854 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8855 *) am_func_iconv=yes ;;
8858 am_func_iconv=no am_cv_lib_iconv=no
8860 if test "$am_func_iconv" = yes; then
8862 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8865 if test "$am_cv_lib_iconv" = yes; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8867 $as_echo_n "checking how to link with libiconv... " >&6; }
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8869 $as_echo "$LIBICONV" >&6; }
8871 CPPFLAGS="$am_save_CPPFLAGS"
8887 acl_save_prefix="$prefix"
8888 prefix="$acl_final_prefix"
8889 acl_save_exec_prefix="$exec_prefix"
8890 exec_prefix="$acl_final_exec_prefix"
8892 eval additional_includedir=\"$includedir\"
8893 eval additional_libdir=\"$libdir\"
8894 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8895 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8897 exec_prefix="$acl_save_exec_prefix"
8898 prefix="$acl_save_prefix"
8901 # Check whether --with-libintl-prefix was given.
8902 if test "${with_libintl_prefix+set}" = set; then :
8903 withval=$with_libintl_prefix;
8904 if test "X$withval" = "Xno"; then
8907 if test "X$withval" = "X"; then
8909 acl_save_prefix="$prefix"
8910 prefix="$acl_final_prefix"
8911 acl_save_exec_prefix="$exec_prefix"
8912 exec_prefix="$acl_final_exec_prefix"
8914 eval additional_includedir=\"$includedir\"
8915 eval additional_libdir=\"$libdir\"
8916 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8917 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8919 exec_prefix="$acl_save_exec_prefix"
8920 prefix="$acl_save_prefix"
8923 additional_includedir="$withval/include"
8924 additional_libdir="$withval/$acl_libdirstem"
8925 additional_libdir2="$withval/$acl_libdirstem2"
8926 additional_libdir3="$withval/$acl_libdirstem3"
8932 if test "X$additional_libdir2" = "X$additional_libdir"; then
8935 if test "X$additional_libdir3" = "X$additional_libdir"; then
8945 names_already_handled=
8946 names_next_round='intl '
8947 while test -n "$names_next_round"; do
8948 names_this_round="$names_next_round"
8950 for name in $names_this_round; do
8952 for n in $names_already_handled; do
8953 if test "$n" = "$name"; then
8958 if test -z "$already_handled"; then
8959 names_already_handled="$names_already_handled $name"
8960 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8961 eval value=\"\$HAVE_LIB$uppername\"
8962 if test -n "$value"; then
8963 if test "$value" = yes; then
8964 eval value=\"\$LIB$uppername\"
8965 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8966 eval value=\"\$LTLIB$uppername\"
8967 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8976 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8977 if test -n "$acl_shlibext"; then
8978 shrext=".$acl_shlibext" # typically: shrext=.so
8982 if test $use_additional = yes; then
8983 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8984 if test "X$found_dir" = "X"; then
8985 eval dir=\$$additional_libdir_variable
8986 if test -n "$dir"; then
8987 if test -n "$acl_shlibext"; then
8988 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8990 found_so="$dir/$libname$shrext"
8992 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8993 ver=`(cd "$dir" && \
8994 for f in "$libname$shrext".*; do echo "$f"; done \
8995 | sed -e "s,^$libname$shrext\\\\.,," \
8996 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8997 | sed 1q ) 2>/dev/null`
8998 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9000 found_so="$dir/$libname$shrext.$ver"
9003 eval library_names=\"$acl_library_names_spec\"
9004 for f in $library_names; do
9005 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9014 if test "X$found_dir" = "X"; then
9015 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9017 found_a="$dir/$libname.$acl_libext"
9020 if test "X$found_dir" != "X"; then
9021 if test -f "$dir/$libname.la"; then
9022 found_la="$dir/$libname.la"
9029 if test "X$found_dir" = "X"; then
9030 for x in $LDFLAGS $LTLIBINTL; do
9032 acl_save_prefix="$prefix"
9033 prefix="$acl_final_prefix"
9034 acl_save_exec_prefix="$exec_prefix"
9035 exec_prefix="$acl_final_exec_prefix"
9037 exec_prefix="$acl_save_exec_prefix"
9038 prefix="$acl_save_prefix"
9042 dir=`echo "X$x" | sed -e 's/^X-L//'`
9043 if test -n "$acl_shlibext"; then
9044 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9046 found_so="$dir/$libname$shrext"
9048 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9049 ver=`(cd "$dir" && \
9050 for f in "$libname$shrext".*; do echo "$f"; done \
9051 | sed -e "s,^$libname$shrext\\\\.,," \
9052 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9053 | sed 1q ) 2>/dev/null`
9054 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9056 found_so="$dir/$libname$shrext.$ver"
9059 eval library_names=\"$acl_library_names_spec\"
9060 for f in $library_names; do
9061 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9070 if test "X$found_dir" = "X"; then
9071 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9073 found_a="$dir/$libname.$acl_libext"
9076 if test "X$found_dir" != "X"; then
9077 if test -f "$dir/$libname.la"; then
9078 found_la="$dir/$libname.la"
9083 if test "X$found_dir" != "X"; then
9088 if test "X$found_dir" != "X"; then
9089 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9090 if test "X$found_so" != "X"; then
9091 if test "$enable_rpath" = no \
9092 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9093 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9094 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9095 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9098 for x in $ltrpathdirs; do
9099 if test "X$x" = "X$found_dir"; then
9104 if test -z "$haveit"; then
9105 ltrpathdirs="$ltrpathdirs $found_dir"
9107 if test "$acl_hardcode_direct" = yes; then
9108 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9110 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9111 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9113 for x in $rpathdirs; do
9114 if test "X$x" = "X$found_dir"; then
9119 if test -z "$haveit"; then
9120 rpathdirs="$rpathdirs $found_dir"
9124 for x in $LDFLAGS $LIBINTL; do
9126 acl_save_prefix="$prefix"
9127 prefix="$acl_final_prefix"
9128 acl_save_exec_prefix="$exec_prefix"
9129 exec_prefix="$acl_final_exec_prefix"
9131 exec_prefix="$acl_save_exec_prefix"
9132 prefix="$acl_save_prefix"
9134 if test "X$x" = "X-L$found_dir"; then
9139 if test -z "$haveit"; then
9140 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9142 if test "$acl_hardcode_minus_L" != no; then
9143 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9145 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9151 if test "X$found_a" != "X"; then
9152 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9154 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9157 additional_includedir=
9158 case "$found_dir" in
9159 */$acl_libdirstem | */$acl_libdirstem/)
9160 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9161 if test "$name" = 'intl'; then
9162 LIBINTL_PREFIX="$basedir"
9164 additional_includedir="$basedir/include"
9166 */$acl_libdirstem2 | */$acl_libdirstem2/)
9167 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9168 if test "$name" = 'intl'; then
9169 LIBINTL_PREFIX="$basedir"
9171 additional_includedir="$basedir/include"
9173 */$acl_libdirstem3 | */$acl_libdirstem3/)
9174 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9175 if test "$name" = 'intl'; then
9176 LIBINTL_PREFIX="$basedir"
9178 additional_includedir="$basedir/include"
9181 if test "X$additional_includedir" != "X"; then
9182 if test "X$additional_includedir" != "X/usr/include"; then
9184 if test "X$additional_includedir" = "X/usr/local/include"; then
9185 if test -n "$GCC"; then
9187 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9191 if test -z "$haveit"; then
9192 for x in $CPPFLAGS $INCINTL; do
9194 acl_save_prefix="$prefix"
9195 prefix="$acl_final_prefix"
9196 acl_save_exec_prefix="$exec_prefix"
9197 exec_prefix="$acl_final_exec_prefix"
9199 exec_prefix="$acl_save_exec_prefix"
9200 prefix="$acl_save_prefix"
9202 if test "X$x" = "X-I$additional_includedir"; then
9207 if test -z "$haveit"; then
9208 if test -d "$additional_includedir"; then
9209 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9215 if test -n "$found_la"; then
9216 save_libdir="$libdir"
9218 */* | *\\*) . "$found_la" ;;
9219 *) . "./$found_la" ;;
9221 libdir="$save_libdir"
9222 for dep in $dependency_libs; do
9225 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9226 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9227 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9228 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9230 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9231 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9232 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9233 if test -n "$GCC"; then
9235 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9239 if test -z "$haveit"; then
9241 for x in $LDFLAGS $LIBINTL; do
9243 acl_save_prefix="$prefix"
9244 prefix="$acl_final_prefix"
9245 acl_save_exec_prefix="$exec_prefix"
9246 exec_prefix="$acl_final_exec_prefix"
9248 exec_prefix="$acl_save_exec_prefix"
9249 prefix="$acl_save_prefix"
9251 if test "X$x" = "X-L$dependency_libdir"; then
9256 if test -z "$haveit"; then
9257 if test -d "$dependency_libdir"; then
9258 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
9262 for x in $LDFLAGS $LTLIBINTL; do
9264 acl_save_prefix="$prefix"
9265 prefix="$acl_final_prefix"
9266 acl_save_exec_prefix="$exec_prefix"
9267 exec_prefix="$acl_final_exec_prefix"
9269 exec_prefix="$acl_save_exec_prefix"
9270 prefix="$acl_save_prefix"
9272 if test "X$x" = "X-L$dependency_libdir"; then
9277 if test -z "$haveit"; then
9278 if test -d "$dependency_libdir"; then
9279 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
9286 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9287 if test "$enable_rpath" != no; then
9289 for x in $rpathdirs; do
9290 if test "X$x" = "X$dir"; then
9295 if test -z "$haveit"; then
9296 rpathdirs="$rpathdirs $dir"
9299 for x in $ltrpathdirs; do
9300 if test "X$x" = "X$dir"; then
9305 if test -z "$haveit"; then
9306 ltrpathdirs="$ltrpathdirs $dir"
9311 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9314 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9317 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9318 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9324 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9325 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9331 if test "X$rpathdirs" != "X"; then
9332 if test -n "$acl_hardcode_libdir_separator"; then
9334 for found_dir in $rpathdirs; do
9335 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9337 acl_save_libdir="$libdir"
9339 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9340 libdir="$acl_save_libdir"
9341 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9343 for found_dir in $rpathdirs; do
9344 acl_save_libdir="$libdir"
9346 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9347 libdir="$acl_save_libdir"
9348 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9352 if test "X$ltrpathdirs" != "X"; then
9353 for found_dir in $ltrpathdirs; do
9354 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9363 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9364 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9365 $as_echo_n "(cached) " >&6
9367 gt_save_CPPFLAGS="$CPPFLAGS"
9368 CPPFLAGS="$CPPFLAGS $INCINTL"
9369 gt_save_LIBS="$LIBS"
9370 LIBS="$LIBS $LIBINTL"
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9374 #include <libintl.h>
9375 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9376 extern int _nl_msg_cat_cntr;
9381 const char *_nl_expand_alias (const char *);
9382 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9384 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9386 $gt_revision_test_code
9392 bindtextdomain ("", "");
9393 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9399 if ac_fn_c_try_link "$LINENO"; then :
9400 eval "$gt_func_gnugettext_libintl=yes"
9402 eval "$gt_func_gnugettext_libintl=no"
9404 rm -f core conftest.err conftest.$ac_objext \
9405 conftest$ac_exeext conftest.$ac_ext
9406 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9407 LIBS="$LIBS $LIBICONV"
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9411 #include <libintl.h>
9412 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9413 extern int _nl_msg_cat_cntr;
9418 const char *_nl_expand_alias (const char *);
9419 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9421 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9423 $gt_revision_test_code
9429 bindtextdomain ("", "");
9430 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9436 if ac_fn_c_try_link "$LINENO"; then :
9437 LIBINTL="$LIBINTL $LIBICONV"
9438 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9439 eval "$gt_func_gnugettext_libintl=yes"
9442 rm -f core conftest.err conftest.$ac_objext \
9443 conftest$ac_exeext conftest.$ac_ext
9445 CPPFLAGS="$gt_save_CPPFLAGS"
9446 LIBS="$gt_save_LIBS"
9448 eval ac_res=\$$gt_func_gnugettext_libintl
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9450 $as_echo "$ac_res" >&6; }
9453 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9454 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9455 && test "$PACKAGE" != gettext-runtime \
9456 && test "$PACKAGE" != gettext-tools; }; then
9457 gt_use_preinstalled_gnugettext=yes
9466 if test -n "$INTL_MACOSX_LIBS"; then
9467 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9468 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9469 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9470 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9474 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9475 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9477 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9485 $as_echo_n "checking whether to use NLS... " >&6; }
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9487 $as_echo "$USE_NLS" >&6; }
9488 if test "$USE_NLS" = "yes"; then
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9490 $as_echo_n "checking where the gettext function comes from... " >&6; }
9491 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9492 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9493 gt_source="external libintl"
9498 gt_source="included intl directory"
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9501 $as_echo "$gt_source" >&6; }
9504 if test "$USE_NLS" = "yes"; then
9506 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9507 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9509 $as_echo_n "checking how to link with libintl... " >&6; }
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9511 $as_echo "$LIBINTL" >&6; }
9513 for element in $INCINTL; do
9515 for x in $CPPFLAGS; do
9517 acl_save_prefix="$prefix"
9518 prefix="$acl_final_prefix"
9519 acl_save_exec_prefix="$exec_prefix"
9520 exec_prefix="$acl_final_exec_prefix"
9522 exec_prefix="$acl_save_exec_prefix"
9523 prefix="$acl_save_prefix"
9525 if test "X$x" = "X$element"; then
9530 if test -z "$haveit"; then
9531 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9538 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9541 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9559 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9561 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9562 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9563 $as_echo_n "(cached) " >&6
9565 cat >conftest.make <<\_ACEOF
9568 @echo '@@@%%%=$(MAKE)=@@@%%%'
9570 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9571 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9573 eval ac_cv_prog_make_${ac_make}_set=yes;;
9575 eval ac_cv_prog_make_${ac_make}_set=no;;
9579 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9581 $as_echo "yes" >&6; }
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585 $as_echo "no" >&6; }
9586 SET_MAKE="MAKE=${MAKE-make}"
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9590 $as_echo_n "checking for GNU make... " >&6; }
9591 if ${_cv_gnu_make_command+:} false; then :
9592 $as_echo_n "(cached) " >&6
9594 _cv_gnu_make_command='' ;
9595 if test -n "$FORCE_NATIVE_MAKE" ; then
9598 MAKES="make gmake gnumake"
9600 for a in "$MAKE" $MAKES ; do
9601 if test -z "$a" ; then continue ; fi ;
9602 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9603 _cv_gnu_make_command=$a ;
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9610 $as_echo "$_cv_gnu_make_command" >&6; } ;
9611 if test "x$_cv_gnu_make_command" != "x" ; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9618 $as_echo "\"Not found\"" >&6; };
9623 # Extract the first word of "ln", so it can be a program name with args.
9624 set dummy ln; ac_word=$2
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9626 $as_echo_n "checking for $ac_word... " >&6; }
9627 if ${ac_cv_path_LN+:} false; then :
9628 $as_echo_n "(cached) " >&6
9632 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639 test -z "$as_dir" && as_dir=.
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9642 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9650 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9655 if test -n "$LN"; then
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9657 $as_echo "$LN" >&6; }
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 $as_echo "no" >&6; }
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9668 $as_echo_n "checking whether ln -s works... " >&6; }
9670 if test "$LN_S" = "ln -s"; then
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9672 $as_echo "yes" >&6; }
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9675 $as_echo "no, using $LN_S" >&6; }
9678 # Extract the first word of "mv", so it can be a program name with args.
9679 set dummy mv; ac_word=$2
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681 $as_echo_n "checking for $ac_word... " >&6; }
9682 if ${ac_cv_path_MV+:} false; then :
9683 $as_echo_n "(cached) " >&6
9687 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 test -z "$as_dir" && as_dir=.
9695 for ac_exec_ext in '' $ac_executable_extensions; do
9696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9697 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9705 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9710 if test -n "$MV"; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9712 $as_echo "$MV" >&6; }
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 $as_echo "no" >&6; }
9719 # Extract the first word of "cp", so it can be a program name with args.
9720 set dummy cp; ac_word=$2
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722 $as_echo_n "checking for $ac_word... " >&6; }
9723 if ${ac_cv_path_CP+:} false; then :
9724 $as_echo_n "(cached) " >&6
9728 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9738 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9751 if test -n "$CP"; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9753 $as_echo "$CP" >&6; }
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756 $as_echo "no" >&6; }
9760 # Extract the first word of "rm", so it can be a program name with args.
9761 set dummy rm; ac_word=$2
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9763 $as_echo_n "checking for $ac_word... " >&6; }
9764 if ${ac_cv_path_RM+:} false; then :
9765 $as_echo_n "(cached) " >&6
9769 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9776 test -z "$as_dir" && as_dir=.
9777 for ac_exec_ext in '' $ac_executable_extensions; do
9778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9779 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9787 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9792 if test -n "$RM"; then
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9794 $as_echo "$RM" >&6; }
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9797 $as_echo "no" >&6; }
9801 # Extract the first word of "chmod", so it can be a program name with args.
9802 set dummy chmod; ac_word=$2
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804 $as_echo_n "checking for $ac_word... " >&6; }
9805 if ${ac_cv_path_CHMOD+:} false; then :
9806 $as_echo_n "(cached) " >&6
9810 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9817 test -z "$as_dir" && as_dir=.
9818 for ac_exec_ext in '' $ac_executable_extensions; do
9819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9820 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9828 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9832 CHMOD=$ac_cv_path_CHMOD
9833 if test -n "$CHMOD"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9835 $as_echo "$CHMOD" >&6; }
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9842 for ac_prog in gawk mawk nawk awk
9844 # Extract the first word of "$ac_prog", so it can be a program name with args.
9845 set dummy $ac_prog; ac_word=$2
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9847 $as_echo_n "checking for $ac_word... " >&6; }
9848 if ${ac_cv_prog_AWK+:} false; then :
9849 $as_echo_n "(cached) " >&6
9851 if test -n "$AWK"; then
9852 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858 test -z "$as_dir" && as_dir=.
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9861 ac_cv_prog_AWK="$ac_prog"
9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 if test -n "$AWK"; then
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9874 $as_echo "$AWK" >&6; }
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877 $as_echo "no" >&6; }
9881 test -n "$AWK" && break
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9885 $as_echo_n "checking for egrep... " >&6; }
9886 if ${ac_cv_path_EGREP+:} false; then :
9887 $as_echo_n "(cached) " >&6
9889 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9890 then ac_cv_path_EGREP="$GREP -E"
9892 if test -z "$EGREP"; then
9893 ac_path_EGREP_found=false
9894 # Loop through the user's path and test for each of PROGNAME-LIST
9895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9896 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9899 test -z "$as_dir" && as_dir=.
9900 for ac_prog in egrep; do
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9903 as_fn_executable_p "$ac_path_EGREP" || continue
9904 # Check for GNU ac_path_EGREP and select it if it is found.
9905 # Check for GNU $ac_path_EGREP
9906 case `"$ac_path_EGREP" --version 2>&1` in
9908 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9911 $as_echo_n 0123456789 >"conftest.in"
9914 cat "conftest.in" "conftest.in" >"conftest.tmp"
9915 mv "conftest.tmp" "conftest.in"
9916 cp "conftest.in" "conftest.nl"
9917 $as_echo 'EGREP' >> "conftest.nl"
9918 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9920 as_fn_arith $ac_count + 1 && ac_count=$as_val
9921 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9922 # Best one so far, save it but keep looking for a better one
9923 ac_cv_path_EGREP="$ac_path_EGREP"
9924 ac_path_EGREP_max=$ac_count
9926 # 10*(2^10) chars as input seems more than enough
9927 test $ac_count -gt 10 && break
9929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9932 $ac_path_EGREP_found && break 3
9937 if test -z "$ac_cv_path_EGREP"; then
9938 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9941 ac_cv_path_EGREP=$EGREP
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9947 $as_echo "$ac_cv_path_EGREP" >&6; }
9948 EGREP="$ac_cv_path_EGREP"
9951 # Extract the first word of "sed", so it can be a program name with args.
9952 set dummy sed; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if ${ac_cv_path_SED+:} false; then :
9956 $as_echo_n "(cached) " >&6
9960 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9970 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9978 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9983 if test -n "$SED"; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9985 $as_echo "$SED" >&6; }
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; }
9992 # Extract the first word of "perl", so it can be a program name with args.
9993 set dummy perl; ac_word=$2
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 $as_echo_n "checking for $ac_word... " >&6; }
9996 if ${ac_cv_path_PERL+:} false; then :
9997 $as_echo_n "(cached) " >&6
10001 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in $PATH
10008 test -z "$as_dir" && as_dir=.
10009 for ac_exec_ext in '' $ac_executable_extensions; do
10010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10011 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10023 PERL=$ac_cv_path_PERL
10024 if test -n "$PERL"; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10026 $as_echo "$PERL" >&6; }
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029 $as_echo "no" >&6; }
10033 # Extract the first word of "ldconfig", so it can be a program name with args.
10034 set dummy ldconfig; ac_word=$2
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10036 $as_echo_n "checking for $ac_word... " >&6; }
10037 if ${ac_cv_path_LDCONFIG+:} false; then :
10038 $as_echo_n "(cached) " >&6
10042 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046 for as_dir in $PATH
10049 test -z "$as_dir" && as_dir=.
10050 for ac_exec_ext in '' $ac_executable_extensions; do
10051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10052 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10064 LDCONFIG=$ac_cv_path_LDCONFIG
10065 if test -n "$LDCONFIG"; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10067 $as_echo "$LDCONFIG" >&6; }
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070 $as_echo "no" >&6; }
10074 if test -n "$ac_tool_prefix"; then
10075 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10076 set dummy ${ac_tool_prefix}ar; ac_word=$2
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10078 $as_echo_n "checking for $ac_word... " >&6; }
10079 if ${ac_cv_prog_AR+:} false; then :
10080 $as_echo_n "(cached) " >&6
10082 if test -n "$AR"; then
10083 ac_cv_prog_AR="$AR" # Let the user override the test.
10085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10089 test -z "$as_dir" && as_dir=.
10090 for ac_exec_ext in '' $ac_executable_extensions; do
10091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10092 ac_cv_prog_AR="${ac_tool_prefix}ar"
10093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 if test -n "$AR"; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10105 $as_echo "$AR" >&6; }
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 $as_echo "no" >&6; }
10113 if test -z "$ac_cv_prog_AR"; then
10115 # Extract the first word of "ar", so it can be a program name with args.
10116 set dummy ar; ac_word=$2
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10118 $as_echo_n "checking for $ac_word... " >&6; }
10119 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10120 $as_echo_n "(cached) " >&6
10122 if test -n "$ac_ct_AR"; then
10123 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10126 for as_dir in $PATH
10129 test -z "$as_dir" && as_dir=.
10130 for ac_exec_ext in '' $ac_executable_extensions; do
10131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10132 ac_cv_prog_ac_ct_AR="ar"
10133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10142 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10143 if test -n "$ac_ct_AR"; then
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10145 $as_echo "$ac_ct_AR" >&6; }
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10148 $as_echo "no" >&6; }
10151 if test "x$ac_ct_AR" = x; then
10154 case $cross_compiling:$ac_tool_warned in
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10158 ac_tool_warned=yes ;;
10163 AR="$ac_cv_prog_AR"
10166 if test -n "$ac_tool_prefix"; then
10167 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10168 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10170 $as_echo_n "checking for $ac_word... " >&6; }
10171 if ${ac_cv_prog_RANLIB+:} false; then :
10172 $as_echo_n "(cached) " >&6
10174 if test -n "$RANLIB"; then
10175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178 for as_dir in $PATH
10181 test -z "$as_dir" && as_dir=.
10182 for ac_exec_ext in '' $ac_executable_extensions; do
10183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10184 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10194 RANLIB=$ac_cv_prog_RANLIB
10195 if test -n "$RANLIB"; then
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10197 $as_echo "$RANLIB" >&6; }
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10200 $as_echo "no" >&6; }
10205 if test -z "$ac_cv_prog_RANLIB"; then
10206 ac_ct_RANLIB=$RANLIB
10207 # Extract the first word of "ranlib", so it can be a program name with args.
10208 set dummy ranlib; ac_word=$2
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10210 $as_echo_n "checking for $ac_word... " >&6; }
10211 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10212 $as_echo_n "(cached) " >&6
10214 if test -n "$ac_ct_RANLIB"; then
10215 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218 for as_dir in $PATH
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
10223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10224 ac_cv_prog_ac_ct_RANLIB="ranlib"
10225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10235 if test -n "$ac_ct_RANLIB"; then
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10237 $as_echo "$ac_ct_RANLIB" >&6; }
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240 $as_echo "no" >&6; }
10243 if test "x$ac_ct_RANLIB" = x; then
10246 case $cross_compiling:$ac_tool_warned in
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10250 ac_tool_warned=yes ;;
10252 RANLIB=$ac_ct_RANLIB
10255 RANLIB="$ac_cv_prog_RANLIB"
10258 if test -n "$ac_tool_prefix"; then
10259 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10260 set dummy ${ac_tool_prefix}strip; ac_word=$2
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10262 $as_echo_n "checking for $ac_word... " >&6; }
10263 if ${ac_cv_prog_STRIP+:} false; then :
10264 $as_echo_n "(cached) " >&6
10266 if test -n "$STRIP"; then
10267 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in $PATH
10273 test -z "$as_dir" && as_dir=.
10274 for ac_exec_ext in '' $ac_executable_extensions; do
10275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10276 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10286 STRIP=$ac_cv_prog_STRIP
10287 if test -n "$STRIP"; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10289 $as_echo "$STRIP" >&6; }
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292 $as_echo "no" >&6; }
10297 if test -z "$ac_cv_prog_STRIP"; then
10299 # Extract the first word of "strip", so it can be a program name with args.
10300 set dummy strip; ac_word=$2
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302 $as_echo_n "checking for $ac_word... " >&6; }
10303 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10304 $as_echo_n "(cached) " >&6
10306 if test -n "$ac_ct_STRIP"; then
10307 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310 for as_dir in $PATH
10313 test -z "$as_dir" && as_dir=.
10314 for ac_exec_ext in '' $ac_executable_extensions; do
10315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10316 ac_cv_prog_ac_ct_STRIP="strip"
10317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10327 if test -n "$ac_ct_STRIP"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10329 $as_echo "$ac_ct_STRIP" >&6; }
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10335 if test "x$ac_ct_STRIP" = x; then
10338 case $cross_compiling:$ac_tool_warned in
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10342 ac_tool_warned=yes ;;
10347 STRIP="$ac_cv_prog_STRIP"
10350 # Extract the first word of "makeinfo", so it can be a program name with args.
10351 set dummy makeinfo; ac_word=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if ${ac_cv_prog_MAKEINFO+:} false; then :
10355 $as_echo_n "(cached) " >&6
10357 if test -n "$MAKEINFO"; then
10358 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10367 ac_cv_prog_MAKEINFO="makeinfo"
10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10377 MAKEINFO=$ac_cv_prog_MAKEINFO
10378 if test -n "$MAKEINFO"; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10380 $as_echo "$MAKEINFO" >&6; }
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10387 if test "_$MAKEINFO" = "_"; then
10388 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
10390 case "$MAKEINFO" in
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10393 *** Makeinfo is missing. Info documentation will not be built." >&5
10394 $as_echo "$as_me: WARNING:
10395 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10403 # See if we need a separate native compiler.
10404 if test $cross_compiling = no; then
10408 for ac_prog in gcc cc
10410 # Extract the first word of "$ac_prog", so it can be a program name with args.
10411 set dummy $ac_prog; ac_word=$2
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413 $as_echo_n "checking for $ac_word... " >&6; }
10414 if ${ac_cv_prog_BUILD_CC+:} false; then :
10415 $as_echo_n "(cached) " >&6
10417 if test -n "$BUILD_CC"; then
10418 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421 for as_dir in $PATH
10424 test -z "$as_dir" && as_dir=.
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10427 ac_cv_prog_BUILD_CC="$ac_prog"
10428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 BUILD_CC=$ac_cv_prog_BUILD_CC
10438 if test -n "$BUILD_CC"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10440 $as_echo "$BUILD_CC" >&6; }
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10447 test -n "$BUILD_CC" && break
10451 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/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
10453 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10454 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10455 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10456 cat >>confdefs.h <<_ACEOF
10457 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
10465 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
10467 for i in dd gdd ; do
10468 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
10473 if test -n "$DD" ; then
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
10475 $as_echo "$DD" >&6; }
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
10478 $as_echo "not found, using dd" >&6; }
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
10481 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
10485 for ac_header in net/if.h
10487 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10488 #if HAVE_SYS_TYPES_H
10489 #include <sys/types.h>
10491 #if HAVE_SYS_SOCKET
10492 #include <sys/socket.h>
10496 if test "x$ac_cv_header_net_if_h" = xyes; then :
10497 cat >>confdefs.h <<_ACEOF
10498 #define HAVE_NET_IF_H 1
10505 for ac_func in vprintf
10507 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10508 if test "x$ac_cv_func_vprintf" = xyes; then :
10509 cat >>confdefs.h <<_ACEOF
10510 #define HAVE_VPRINTF 1
10513 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10514 if test "x$ac_cv_func__doprnt" = xyes; then :
10516 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10524 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10526 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10528 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10532 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10533 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10535 cat >>confdefs.h <<_ACEOF
10536 #define HAVE_STRUCT_STAT_ST_ATIM 1
10542 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10544 if test "x$ac_cv_type_ssize_t" = xyes; then :
10546 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10550 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10552 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10554 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10558 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10559 #define _LARGEFILE64_SOURCE
10560 #include <unistd.h>
10562 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10564 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10568 # The cast to long int works around a bug in the HP C Compiler
10569 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10570 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10571 # This bug is HP SR number 8606223364.
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10573 $as_echo_n "checking size of short... " >&6; }
10574 if ${ac_cv_sizeof_short+:} false; then :
10575 $as_echo_n "(cached) " >&6
10577 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10580 if test "$ac_cv_type_short" = yes; then
10581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10583 as_fn_error 77 "cannot compute sizeof (short)
10584 See \`config.log' for more details" "$LINENO" 5; }
10586 ac_cv_sizeof_short=0
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10592 $as_echo "$ac_cv_sizeof_short" >&6; }
10596 cat >>confdefs.h <<_ACEOF
10597 #define SIZEOF_SHORT $ac_cv_sizeof_short
10601 # The cast to long int works around a bug in the HP C Compiler
10602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10604 # This bug is HP SR number 8606223364.
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10606 $as_echo_n "checking size of int... " >&6; }
10607 if ${ac_cv_sizeof_int+:} false; then :
10608 $as_echo_n "(cached) " >&6
10610 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10613 if test "$ac_cv_type_int" = yes; then
10614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10616 as_fn_error 77 "cannot compute sizeof (int)
10617 See \`config.log' for more details" "$LINENO" 5; }
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10625 $as_echo "$ac_cv_sizeof_int" >&6; }
10629 cat >>confdefs.h <<_ACEOF
10630 #define SIZEOF_INT $ac_cv_sizeof_int
10634 # The cast to long int works around a bug in the HP C Compiler
10635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10637 # This bug is HP SR number 8606223364.
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10639 $as_echo_n "checking size of long... " >&6; }
10640 if ${ac_cv_sizeof_long+:} false; then :
10641 $as_echo_n "(cached) " >&6
10643 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10646 if test "$ac_cv_type_long" = yes; then
10647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10649 as_fn_error 77 "cannot compute sizeof (long)
10650 See \`config.log' for more details" "$LINENO" 5; }
10652 ac_cv_sizeof_long=0
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10658 $as_echo "$ac_cv_sizeof_long" >&6; }
10662 cat >>confdefs.h <<_ACEOF
10663 #define SIZEOF_LONG $ac_cv_sizeof_long
10667 # The cast to long int works around a bug in the HP C Compiler
10668 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10669 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10670 # This bug is HP SR number 8606223364.
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10672 $as_echo_n "checking size of long long... " >&6; }
10673 if ${ac_cv_sizeof_long_long+:} false; then :
10674 $as_echo_n "(cached) " >&6
10676 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10679 if test "$ac_cv_type_long_long" = yes; then
10680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10682 as_fn_error 77 "cannot compute sizeof (long long)
10683 See \`config.log' for more details" "$LINENO" 5; }
10685 ac_cv_sizeof_long_long=0
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10691 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10695 cat >>confdefs.h <<_ACEOF
10696 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10700 # The cast to long int works around a bug in the HP C Compiler
10701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10703 # This bug is HP SR number 8606223364.
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10705 $as_echo_n "checking size of off_t... " >&6; }
10706 if ${ac_cv_sizeof_off_t+:} false; then :
10707 $as_echo_n "(cached) " >&6
10709 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10712 if test "$ac_cv_type_off_t" = yes; then
10713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10715 as_fn_error 77 "cannot compute sizeof (off_t)
10716 See \`config.log' for more details" "$LINENO" 5; }
10718 ac_cv_sizeof_off_t=0
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10724 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10728 cat >>confdefs.h <<_ACEOF
10729 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10733 # The cast to long int works around a bug in the HP C Compiler
10734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10736 # This bug is HP SR number 8606223364.
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
10738 $as_echo_n "checking size of time_t... " >&6; }
10739 if ${ac_cv_sizeof_time_t+:} false; then :
10740 $as_echo_n "(cached) " >&6
10742 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
10745 if test "$ac_cv_type_time_t" = yes; then
10746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10748 as_fn_error 77 "cannot compute sizeof (time_t)
10749 See \`config.log' for more details" "$LINENO" 5; }
10751 ac_cv_sizeof_time_t=0
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
10757 $as_echo "$ac_cv_sizeof_time_t" >&6; }
10761 cat >>confdefs.h <<_ACEOF
10762 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10766 SIZEOF_SHORT=$ac_cv_sizeof_short
10767 SIZEOF_INT=$ac_cv_sizeof_int
10768 SIZEOF_LONG=$ac_cv_sizeof_long
10769 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10770 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10771 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10779 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10780 if ${ac_cv_c_bigendian+:} false; then :
10781 $as_echo_n "(cached) " >&6
10783 ac_cv_c_bigendian=unknown
10784 # See if we're dealing with a universal compiler.
10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h. */
10787 #ifndef __APPLE_CC__
10788 not a universal capable compiler
10793 if ac_fn_c_try_compile "$LINENO"; then :
10795 # Check for potential -arch flags. It is not universal unless
10796 # there are at least two -arch flags with different values.
10799 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10800 if test -n "$ac_prev"; then
10802 i?86 | x86_64 | ppc | ppc64)
10803 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10806 ac_cv_c_bigendian=universal
10812 elif test "x$ac_word" = "x-arch"; then
10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10818 if test $ac_cv_c_bigendian = unknown; then
10819 # See if sys/param.h defines the BYTE_ORDER macro.
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10822 #include <sys/types.h>
10823 #include <sys/param.h>
10828 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10829 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10831 bogus endian macros
10838 if ac_fn_c_try_compile "$LINENO"; then :
10839 # It does; now see whether it defined to BIG_ENDIAN or not.
10840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h. */
10842 #include <sys/types.h>
10843 #include <sys/param.h>
10848 #if BYTE_ORDER != BIG_ENDIAN
10856 if ac_fn_c_try_compile "$LINENO"; then :
10857 ac_cv_c_bigendian=yes
10859 ac_cv_c_bigendian=no
10861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10865 if test $ac_cv_c_bigendian = unknown; then
10866 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h. */
10869 #include <limits.h>
10874 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10875 bogus endian macros
10882 if ac_fn_c_try_compile "$LINENO"; then :
10883 # It does; now see whether it defined to _BIG_ENDIAN or not.
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h. */
10886 #include <limits.h>
10891 #ifndef _BIG_ENDIAN
10899 if ac_fn_c_try_compile "$LINENO"; then :
10900 ac_cv_c_bigendian=yes
10902 ac_cv_c_bigendian=no
10904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10908 if test $ac_cv_c_bigendian = unknown; then
10909 # Compile a test program.
10910 if test "$cross_compiling" = yes; then :
10911 # Try to guess by grepping values from an object file.
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914 short int ascii_mm[] =
10915 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10916 short int ascii_ii[] =
10917 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10918 int use_ascii (int i) {
10919 return ascii_mm[i] + ascii_ii[i];
10921 short int ebcdic_ii[] =
10922 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10923 short int ebcdic_mm[] =
10924 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10925 int use_ebcdic (int i) {
10926 return ebcdic_mm[i] + ebcdic_ii[i];
10933 return use_ascii (foo) == use_ebcdic (foo);
10938 if ac_fn_c_try_compile "$LINENO"; then :
10939 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10940 ac_cv_c_bigendian=yes
10942 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10943 if test "$ac_cv_c_bigendian" = unknown; then
10944 ac_cv_c_bigendian=no
10946 # finding both strings is unlikely to happen, but who knows?
10947 ac_cv_c_bigendian=unknown
10951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10955 $ac_includes_default
10960 /* Are we little or big endian? From Harbison&Steele. */
10964 char c[sizeof (long int)];
10967 return u.c[sizeof (long int) - 1] == 1;
10973 if ac_fn_c_try_run "$LINENO"; then :
10974 ac_cv_c_bigendian=no
10976 ac_cv_c_bigendian=yes
10978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10979 conftest.$ac_objext conftest.beam conftest.$ac_ext
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10985 $as_echo "$ac_cv_c_bigendian" >&6; }
10986 case $ac_cv_c_bigendian in #(
10988 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10994 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10998 as_fn_error $? "unknown endianness
10999 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11002 if test $cross_compiling = no; then
11003 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11005 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11007 ASM_TYPES_HEADER=./asm_types.h
11009 echo "/* These defines are needed for the public ext2fs.h header file */" \
11011 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
11012 uniq tmp_config.$$ >> public_config.h
11014 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
11016 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
11017 uniq tmp_config.$$ >> public_config.h
11019 echo "#undef WORDS_BIGENDIAN" >> public_config.h
11021 rm -f tmp_config.$$
11022 PUBLIC_CONFIG_HEADER=./public_config.h
11024 for ac_header in inttypes.h
11026 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11027 if test "x$ac_cv_header_inttypes_h" = xyes; then :
11028 cat >>confdefs.h <<_ACEOF
11029 #define HAVE_INTTYPES_H 1
11036 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11037 if test "x$ac_cv_type_intptr_t" = xyes; then :
11039 cat >>confdefs.h <<_ACEOF
11040 #define HAVE_INTPTR_T 1
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
11047 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
11048 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
11049 $as_echo_n "(cached) " >&6
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11053 #include <sys/stat.h>
11057 struct stat stat; stat.st_flags = 0;
11062 if ac_fn_c_try_compile "$LINENO"; then :
11063 e2fsprogs_cv_struct_st_flags=yes
11065 e2fsprogs_cv_struct_st_flags=no
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
11071 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
11072 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
11074 $as_echo_n "checking whether st_flags field is useful... " >&6; }
11075 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
11076 $as_echo_n "(cached) " >&6
11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11080 #include <sys/stat.h>
11084 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11089 if ac_fn_c_try_compile "$LINENO"; then :
11090 e2fsprogs_cv_struct_st_flags_immut=yes
11092 e2fsprogs_cv_struct_st_flags_immut=no
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11098 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11099 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11101 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11105 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11106 #include <sys/socket.h>
11108 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11110 cat >>confdefs.h <<_ACEOF
11111 #define HAVE_SA_LEN 1
11116 if test -n "$BLKID_CMT"; then
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
11118 $as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; }
11119 if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then :
11120 $as_echo_n "(cached) " >&6
11122 ac_check_lib_save_LIBS=$LIBS
11123 LIBS="-lblkid $LIBS"
11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h. */
11127 /* Override any GCC internal prototype to avoid an error.
11128 Use char because int might match the return type of a GCC
11129 builtin and then its argument prototype would still apply. */
11133 char blkid_probe_get_topology ();
11137 return blkid_probe_get_topology ();
11142 if ac_fn_c_try_link "$LINENO"; then :
11143 ac_cv_lib_blkid_blkid_probe_get_topology=yes
11145 ac_cv_lib_blkid_blkid_probe_get_topology=no
11147 rm -f core conftest.err conftest.$ac_objext \
11148 conftest$ac_exeext conftest.$ac_ext
11149 LIBS=$ac_check_lib_save_LIBS
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
11152 $as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
11153 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then :
11155 $as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
11160 $as_echo_n "checking for blkid_topology_get_dax in -lblkid... " >&6; }
11161 if ${ac_cv_lib_blkid_blkid_topology_get_dax+:} false; then :
11162 $as_echo_n "(cached) " >&6
11164 ac_check_lib_save_LIBS=$LIBS
11165 LIBS="-lblkid $LIBS"
11166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11167 /* end confdefs.h. */
11169 /* Override any GCC internal prototype to avoid an error.
11170 Use char because int might match the return type of a GCC
11171 builtin and then its argument prototype would still apply. */
11175 char blkid_topology_get_dax ();
11179 return blkid_topology_get_dax ();
11184 if ac_fn_c_try_link "$LINENO"; then :
11185 ac_cv_lib_blkid_blkid_topology_get_dax=yes
11187 ac_cv_lib_blkid_blkid_topology_get_dax=no
11189 rm -f core conftest.err conftest.$ac_objext \
11190 conftest$ac_exeext conftest.$ac_ext
11191 LIBS=$ac_check_lib_save_LIBS
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
11194 $as_echo "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
11195 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes; then :
11197 $as_echo "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
11202 $as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
11203 if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then :
11204 $as_echo_n "(cached) " >&6
11206 ac_check_lib_save_LIBS=$LIBS
11207 LIBS="-lblkid $LIBS"
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11211 /* Override any GCC internal prototype to avoid an error.
11212 Use char because int might match the return type of a GCC
11213 builtin and then its argument prototype would still apply. */
11217 char blkid_probe_enable_partitions ();
11221 return blkid_probe_enable_partitions ();
11226 if ac_fn_c_try_link "$LINENO"; then :
11227 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
11229 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
11231 rm -f core conftest.err conftest.$ac_objext \
11232 conftest$ac_exeext conftest.$ac_ext
11233 LIBS=$ac_check_lib_save_LIBS
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
11236 $as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
11237 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then :
11239 $as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
11244 if test -n "$DLOPEN_LIB" ; then
11245 ac_cv_func_dlopen=yes
11247 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
11249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11250 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11251 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11252 cat >>confdefs.h <<_ACEOF
11253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11261 $as_echo_n "checking for socket in -lsocket... " >&6; }
11262 if ${ac_cv_lib_socket_socket+:} false; then :
11263 $as_echo_n "(cached) " >&6
11265 ac_check_lib_save_LIBS=$LIBS
11266 LIBS="-lsocket $LIBS"
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11270 /* Override any GCC internal prototype to avoid an error.
11271 Use char because int might match the return type of a GCC
11272 builtin and then its argument prototype would still apply. */
11285 if ac_fn_c_try_link "$LINENO"; then :
11286 ac_cv_lib_socket_socket=yes
11288 ac_cv_lib_socket_socket=no
11290 rm -f core conftest.err conftest.$ac_objext \
11291 conftest$ac_exeext conftest.$ac_ext
11292 LIBS=$ac_check_lib_save_LIBS
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11295 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11296 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11297 SOCKET_LIB=-lsocket
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
11302 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
11303 if ${ac_cv_lib_magic_magic_file+:} false; then :
11304 $as_echo_n "(cached) " >&6
11306 ac_check_lib_save_LIBS=$LIBS
11307 LIBS="-lmagic $LIBS"
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h. */
11311 /* Override any GCC internal prototype to avoid an error.
11312 Use char because int might match the return type of a GCC
11313 builtin and then its argument prototype would still apply. */
11317 char magic_file ();
11321 return magic_file ();
11326 if ac_fn_c_try_link "$LINENO"; then :
11327 ac_cv_lib_magic_magic_file=yes
11329 ac_cv_lib_magic_magic_file=no
11331 rm -f core conftest.err conftest.$ac_objext \
11332 conftest$ac_exeext conftest.$ac_ext
11333 LIBS=$ac_check_lib_save_LIBS
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
11336 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
11337 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
11339 for ac_header in magic.h
11341 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
11342 if test "x$ac_cv_header_magic_h" = xyes; then :
11343 cat >>confdefs.h <<_ACEOF
11344 #define HAVE_MAGIC_H 1
11353 if test "$ac_cv_func_dlopen" = yes ; then
11354 MAGIC_LIB=$DLOPEN_LIB
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11358 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11359 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
11360 $as_echo_n "(cached) " >&6
11362 ac_check_lib_save_LIBS=$LIBS
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11367 /* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11373 char clock_gettime ();
11377 return clock_gettime ();
11382 if ac_fn_c_try_link "$LINENO"; then :
11383 ac_cv_lib_rt_clock_gettime=yes
11385 ac_cv_lib_rt_clock_gettime=no
11387 rm -f core conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11392 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11393 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
11394 CLOCK_GETTIME_LIB=-lrt
11400 # Check whether --enable-fuse2fs was given.
11401 if test "${enable_fuse2fs+set}" = set; then :
11402 enableval=$enable_fuse2fs; if test "$enableval" = "no"
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
11406 $as_echo "Disabling fuse2fs" >&6; }
11408 for ac_header in pthread.h fuse.h
11410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11411 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
11412 #define FUSE_USE_VERSION 29
11414 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11415 cat >>confdefs.h <<_ACEOF
11416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11422 as_fn_error $? "Cannot find fuse2fs headers.
11423 See \`config.log' for more details" "$LINENO" 5; }
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11431 #define FUSE_USE_VERSION 29
11433 #include <linux/fs.h>
11434 #include <linux/falloc.h>
11435 #include <linux/xattr.h>
11446 if ac_fn_c_try_cpp "$LINENO"; then :
11449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11451 as_fn_error $? "Cannot find fuse2fs Linux headers.
11452 See \`config.log' for more details" "$LINENO" 5; }
11454 rm -f conftest.err conftest.i conftest.$ac_ext
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11457 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11458 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11459 $as_echo_n "(cached) " >&6
11461 ac_check_lib_save_LIBS=$LIBS
11462 LIBS="-losxfuse $LIBS"
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11466 /* Override any GCC internal prototype to avoid an error.
11467 Use char because int might match the return type of a GCC
11468 builtin and then its argument prototype would still apply. */
11476 return fuse_main ();
11481 if ac_fn_c_try_link "$LINENO"; then :
11482 ac_cv_lib_osxfuse_fuse_main=yes
11484 ac_cv_lib_osxfuse_fuse_main=no
11486 rm -f core conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11488 LIBS=$ac_check_lib_save_LIBS
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11491 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11492 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11496 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11497 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11498 $as_echo_n "(cached) " >&6
11500 ac_check_lib_save_LIBS=$LIBS
11501 LIBS="-lfuse $LIBS"
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11505 /* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11515 return fuse_main ();
11520 if ac_fn_c_try_link "$LINENO"; then :
11521 ac_cv_lib_fuse_fuse_main=yes
11523 ac_cv_lib_fuse_fuse_main=no
11525 rm -f core conftest.err conftest.$ac_objext \
11526 conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_check_lib_save_LIBS
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11530 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11531 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11536 as_fn_error $? "Cannot find fuse library.
11537 See \`config.log' for more details" "$LINENO" 5; }
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
11543 $as_echo "Enabling fuse2fs" >&6; }
11547 for ac_header in pthread.h fuse.h
11549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11550 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
11551 #define FUSE_USE_VERSION 29
11553 # include <linux/fs.h>
11554 # include <linux/falloc.h>
11555 # include <linux/xattr.h>
11558 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11559 cat >>confdefs.h <<_ACEOF
11560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11569 if test -z "$FUSE_CMT"
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11572 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11573 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11574 $as_echo_n "(cached) " >&6
11576 ac_check_lib_save_LIBS=$LIBS
11577 LIBS="-losxfuse $LIBS"
11578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11579 /* end confdefs.h. */
11581 /* Override any GCC internal prototype to avoid an error.
11582 Use char because int might match the return type of a GCC
11583 builtin and then its argument prototype would still apply. */
11591 return fuse_main ();
11596 if ac_fn_c_try_link "$LINENO"; then :
11597 ac_cv_lib_osxfuse_fuse_main=yes
11599 ac_cv_lib_osxfuse_fuse_main=no
11601 rm -f core conftest.err conftest.$ac_objext \
11602 conftest$ac_exeext conftest.$ac_ext
11603 LIBS=$ac_check_lib_save_LIBS
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11606 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11607 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11611 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11612 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11613 $as_echo_n "(cached) " >&6
11615 ac_check_lib_save_LIBS=$LIBS
11616 LIBS="-lfuse $LIBS"
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11620 /* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11630 return fuse_main ();
11635 if ac_fn_c_try_link "$LINENO"; then :
11636 ac_cv_lib_fuse_fuse_main=yes
11638 ac_cv_lib_fuse_fuse_main=no
11640 rm -f core conftest.err conftest.$ac_objext \
11641 conftest$ac_exeext conftest.$ac_ext
11642 LIBS=$ac_check_lib_save_LIBS
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11645 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11646 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11655 if test -z "$FUSE_CMT"
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
11658 $as_echo "Enabling fuse2fs by default." >&6; }
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11666 $as_echo_n "checking for optreset... " >&6; }
11667 if ${ac_cv_have_optreset+:} false; then :
11668 $as_echo_n "(cached) " >&6
11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11672 #include <unistd.h>
11675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11676 $EGREP "optreset" >/dev/null 2>&1; then :
11677 ac_cv_have_optreset=yes
11679 ac_cv_have_optreset=no
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11685 $as_echo "$ac_cv_have_optreset" >&6; }
11686 if test $ac_cv_have_optreset = yes; then
11688 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11693 echo GL_THREADS_API: ${gl_threads_api}
11694 if test "${gl_threads_api}" != none
11696 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11697 if test "x$ac_cv_func_sem_init" = xyes; then :
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11701 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11702 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11703 $as_echo_n "(cached) " >&6
11705 ac_check_lib_save_LIBS=$LIBS
11706 LIBS="-lpthread $LIBS"
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11710 /* Override any GCC internal prototype to avoid an error.
11711 Use char because int might match the return type of a GCC
11712 builtin and then its argument prototype would still apply. */
11720 return sem_init ();
11725 if ac_fn_c_try_link "$LINENO"; then :
11726 ac_cv_lib_pthread_sem_init=yes
11728 ac_cv_lib_pthread_sem_init=no
11730 rm -f core conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732 LIBS=$ac_check_lib_save_LIBS
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11735 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11736 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11737 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11739 SEM_INIT_LIB=-lpthread
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11742 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11743 if ${ac_cv_lib_rt_sem_init+:} false; then :
11744 $as_echo_n "(cached) " >&6
11746 ac_check_lib_save_LIBS=$LIBS
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h. */
11751 /* Override any GCC internal prototype to avoid an error.
11752 Use char because int might match the return type of a GCC
11753 builtin and then its argument prototype would still apply. */
11761 return sem_init ();
11766 if ac_fn_c_try_link "$LINENO"; then :
11767 ac_cv_lib_rt_sem_init=yes
11769 ac_cv_lib_rt_sem_init=no
11771 rm -f core conftest.err conftest.$ac_objext \
11772 conftest$ac_exeext conftest.$ac_ext
11773 LIBS=$ac_check_lib_save_LIBS
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11776 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11777 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11778 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11783 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11784 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11785 $as_echo_n "(cached) " >&6
11787 ac_check_lib_save_LIBS=$LIBS
11788 LIBS="-lposix4 $LIBS"
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11792 /* Override any GCC internal prototype to avoid an error.
11793 Use char because int might match the return type of a GCC
11794 builtin and then its argument prototype would still apply. */
11802 return sem_init ();
11807 if ac_fn_c_try_link "$LINENO"; then :
11808 ac_cv_lib_posix4_sem_init=yes
11810 ac_cv_lib_posix4_sem_init=no
11812 rm -f core conftest.err conftest.$ac_objext \
11813 conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11817 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11818 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11819 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11821 SEM_INIT_LIB=-lposix4
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11832 $as_echo_n "checking for unified diff option... " >&6; }
11833 if diff -u $0 $0 > /dev/null 2>&1 ; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11839 $as_echo "$UNI_DIFF_OPTS" >&6; }
11844 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11849 $as_echo_n "checking for mount 'nosuid' option... "
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11852 #include <sys/mount.h>
11856 void *temp = (void *)(MS_NOSUID); (void) temp;
11861 if ac_fn_c_try_compile "$LINENO"; then :
11863 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11865 ac_cv_mount_nosuid=yes
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11870 #include <sys/mount.h>
11874 void *temp = (void *)(MNT_NOSUID); (void) temp;
11879 if ac_fn_c_try_compile "$LINENO"; then :
11881 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11883 ac_cv_mount_nosuid=yes
11886 ac_cv_mount_nosuid=no
11890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896 $as_echo_n "checking for mount 'nodev' option... "
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11899 #include <sys/mount.h>
11903 void *temp = (void *)(MS_NODEV); (void) temp;
11908 if ac_fn_c_try_compile "$LINENO"; then :
11910 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11912 ac_cv_mount_nodev=yes
11915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916 /* end confdefs.h. */
11917 #include <sys/mount.h>
11921 void *temp = (void *)(MNT_NODEV); (void) temp;
11926 if ac_fn_c_try_compile "$LINENO"; then :
11928 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11930 ac_cv_mount_nodev=yes
11933 ac_cv_mount_nodev=no
11937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 # Check whether --enable-lto was given.
11943 if test "${enable_lto+set}" = set; then :
11944 enableval=$enable_lto;
11949 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
11951 $as_echo_n "checking if C compiler supports LTO... " >&6; }
11952 OLD_CFLAGS="$CFLAGS"
11953 OLD_LDFLAGS="$LDFLAGS"
11954 LTO_FLAGS="-g -flto -ffat-lto-objects"
11955 CFLAGS="$CFLAGS $LTO_FLAGS"
11956 LDFLAGS="$LDFLAGS $LTO_FLAGS"
11957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11958 /* end confdefs.h. */
11968 if ac_fn_c_try_link "$LINENO"; then :
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11970 $as_echo "yes" >&6; }
11971 lto_cflags=$LTO_FLAGS
11972 lto_ldflags=$LTO_FLAGS
11973 # Extract the first word of "gcc-ar", so it can be a program name with args.
11974 set dummy gcc-ar; ac_word=$2
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11976 $as_echo_n "checking for $ac_word... " >&6; }
11977 if ${ac_cv_path_gcc_ar+:} false; then :
11978 $as_echo_n "(cached) " >&6
11982 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
11985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986 for as_dir in $PATH
11989 test -z "$as_dir" && as_dir=.
11990 for ac_exec_ext in '' $ac_executable_extensions; do
11991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11992 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
11993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003 gcc_ar=$ac_cv_path_gcc_ar
12004 if test -n "$gcc_ar"; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
12006 $as_echo "$gcc_ar" >&6; }
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12013 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
12014 set dummy gcc-ranlib; ac_word=$2
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12016 $as_echo_n "checking for $ac_word... " >&6; }
12017 if ${ac_cv_path_gcc_ranlib+:} false; then :
12018 $as_echo_n "(cached) " >&6
12020 case $gcc_ranlib in
12022 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
12025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026 for as_dir in $PATH
12029 test -z "$as_dir" && as_dir=.
12030 for ac_exec_ext in '' $ac_executable_extensions; do
12031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12032 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
12033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12043 gcc_ranlib=$ac_cv_path_gcc_ranlib
12044 if test -n "$gcc_ranlib"; then
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
12046 $as_echo "$gcc_ranlib" >&6; }
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049 $as_echo "no" >&6; }
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12057 rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12059 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
12062 RANLIB="${gcc_ranlib}"
12064 CFLAGS="${OLD_CFLAGS}"
12065 LDFLAGS="${OLD_LDFLAGS}"
12070 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
12071 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
12073 # Check whether --enable-ubsan was given.
12074 if test "${enable_ubsan+set}" = set; then :
12075 enableval=$enable_ubsan;
12080 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
12082 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
12083 OLD_CFLAGS="$CFLAGS"
12084 OLD_LDFLAGS="$LDFLAGS"
12085 UBSAN_FLAGS="-fsanitize=undefined"
12086 CFLAGS="$CFLAGS $UBSAN_FLAGS"
12087 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12099 if ac_fn_c_try_link "$LINENO"; then :
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12101 $as_echo "yes" >&6; }
12102 ubsan_cflags=$UBSAN_FLAGS
12103 ubsan_ldflags=$UBSAN_FLAGS
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12109 rm -f core conftest.err conftest.$ac_objext \
12110 conftest$ac_exeext conftest.$ac_ext
12111 CFLAGS="${OLD_CFLAGS}"
12112 LDFLAGS="${OLD_LDFLAGS}"
12117 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
12118 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
12120 # Check whether --enable-addrsan was given.
12121 if test "${enable_addrsan+set}" = set; then :
12122 enableval=$enable_addrsan;
12127 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
12129 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
12130 OLD_CFLAGS="$CFLAGS"
12131 OLD_LDFLAGS="$LDFLAGS"
12132 ADDRSAN_FLAGS="-fsanitize=address"
12133 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
12134 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
12135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136 /* end confdefs.h. */
12146 if ac_fn_c_try_link "$LINENO"; then :
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12148 $as_echo "yes" >&6; }
12149 addrsan_cflags=$ADDRSAN_FLAGS
12150 addrsan_ldflags=$ADDRSAN_FLAGS
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12156 rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12158 CFLAGS="${OLD_CFLAGS}"
12159 LDFLAGS="${OLD_LDFLAGS}"
12164 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
12165 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
12167 # Check whether --enable-threadsan was given.
12168 if test "${enable_threadsan+set}" = set; then :
12169 enableval=$enable_threadsan;
12171 enable_threadsan=no
12174 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
12176 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
12177 OLD_CFLAGS="$CFLAGS"
12178 OLD_LDFLAGS="$LDFLAGS"
12179 THREADSAN_FLAGS="-fsanitize=thread"
12180 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
12181 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12193 if ac_fn_c_try_link "$LINENO"; then :
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12195 $as_echo "yes" >&6; }
12196 threadsan_cflags=$THREADSAN_FLAGS
12197 threadsan_ldflags=$THREADSAN_FLAGS
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12203 rm -f core conftest.err conftest.$ac_objext \
12204 conftest$ac_exeext conftest.$ac_ext
12205 CFLAGS="${OLD_CFLAGS}"
12206 LDFLAGS="${OLD_LDFLAGS}"
12211 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
12212 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
12214 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
12216 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
12233 E2SCRUB_CMT="$LINUX_CMT"
12236 linux* | gnu* | k*bsd*-gnu)
12237 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
12240 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
12245 linux* | gnu* | k*bsd*-gnu)
12246 if test "$prefix" = NONE ; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
12249 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
12250 if test "$mandir" = '${prefix}/man' ; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
12252 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
12253 mandir=/usr/share/man
12258 if test "$root_prefix" = NONE ; then
12259 if test "$prefix" = NONE ; then
12260 root_prefix="$ac_default_prefix"
12262 root_prefix="$prefix"
12264 root_bindir=$bindir
12265 root_sbindir=$sbindir
12266 root_libdir=$libdir
12267 root_sysconfdir=$sysconfdir
12269 root_bindir='${root_prefix}/bin'
12270 root_sbindir='${root_prefix}/sbin'
12271 root_libdir='${root_prefix}/lib'
12272 root_sysconfdir='${root_prefix}/etc'
12274 if test "$bindir" != '${exec_prefix}/bin'; then
12275 root_bindir=$bindir
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
12277 $as_echo "Setting root_bindir to $root_bindir" >&6; }
12279 if test "$sbindir" != '${exec_prefix}/sbin'; then
12280 root_sbindir=$sbindir
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
12282 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
12284 if test "$libdir" != '${exec_prefix}/lib'; then
12285 root_libdir=$libdir
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
12287 $as_echo "Setting root_libdir to $root_libdir" >&6; }
12289 if test "$sysconfdir" != '${prefix}/etc'; then
12290 root_sysconfdir=$sysconfdir
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
12292 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
12300 # Check whether --with-multiarch was given.
12301 if test "${with_multiarch+set}" = set; then :
12302 withval=$with_multiarch; if test "$withval" = "lib64"; then
12306 libdir=$libdir/$withval
12307 root_libdir=$root_libdir/$withval
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
12313 $as_echo_n "checking whether we can link with -static... " >&6; }
12314 if ${ac_cv_e2fsprogs_use_static+:} false; then :
12315 $as_echo_n "(cached) " >&6
12317 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12329 if ac_fn_c_try_link "$LINENO"; then :
12330 ac_cv_e2fsprogs_use_static=yes
12332 ac_cv_e2fsprogs_use_static=no
12334 rm -f core conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext conftest.$ac_ext
12336 LDFLAGS=$SAVE_LDFLAGS
12341 ac_cv_e2fsprogs_use_static=no
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
12345 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
12346 if test $ac_cv_e2fsprogs_use_static = yes; then
12347 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
12353 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
12355 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
12359 if test "$cross_compiling" = yes ; then
12362 DO_TEST_SUITE=check
12365 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
12366 if test -n "$CPPFLAGS" ; then
12367 INCLUDES="$INCLUDES $CPPFLAGS"
12369 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
12370 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
12372 if test -n "$WITH_DIET_LIBC" ; then
12373 INCLUDES="$INCLUDES -D_REENTRANT"
12376 if test $cross_compiling = no; then
12377 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
12378 BUILD_LDFLAGS="$LDFLAGS"
12382 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
12383 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
12384 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
12390 # Check whether --with-udev_rules_dir was given.
12391 if test "${with_udev_rules_dir+set}" = set; then :
12392 withval=$with_udev_rules_dir;
12394 with_udev_rules_dir=yes
12397 if test "x${with_udev_rules_dir}" != "xno"; then :
12399 if test "x${with_udev_rules_dir}" = "xyes"; then :
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
12404 $as_echo_n "checking for udev... " >&6; }
12406 if test -n "$udev_CFLAGS"; then
12407 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
12408 elif test -n "$PKG_CONFIG"; then
12409 if test -n "$PKG_CONFIG" && \
12410 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12411 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12414 test $ac_status = 0; }; then
12415 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
12416 test "x$?" != "x0" && pkg_failed=yes
12423 if test -n "$udev_LIBS"; then
12424 pkg_cv_udev_LIBS="$udev_LIBS"
12425 elif test -n "$PKG_CONFIG"; then
12426 if test -n "$PKG_CONFIG" && \
12427 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12428 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12431 test $ac_status = 0; }; then
12432 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
12433 test "x$?" != "x0" && pkg_failed=yes
12443 if test $pkg_failed = yes; then
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445 $as_echo "no" >&6; }
12447 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12448 _pkg_short_errors_supported=yes
12450 _pkg_short_errors_supported=no
12452 if test $_pkg_short_errors_supported = yes; then
12453 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
12455 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
12457 # Put the nasty error message in config.log where it belongs
12458 echo "$udev_PKG_ERRORS" >&5
12461 with_udev_rules_dir=""
12463 elif test $pkg_failed = untried; then
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465 $as_echo "no" >&6; }
12467 with_udev_rules_dir=""
12470 udev_CFLAGS=$pkg_cv_udev_CFLAGS
12471 udev_LIBS=$pkg_cv_udev_LIBS
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12473 $as_echo "yes" >&6; }
12475 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
12481 $as_echo_n "checking for udev rules dir... " >&6; }
12482 pkg_udev_rules_dir="${with_udev_rules_dir}"
12483 if test -n "${pkg_udev_rules_dir}"; then :
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
12486 $as_echo "${pkg_udev_rules_dir}" >&6; }
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492 $as_echo "no" >&6; }
12499 have_udev="disabled"
12506 # Check whether --with-crond_dir was given.
12507 if test "${with_crond_dir+set}" = set; then :
12508 withval=$with_crond_dir;
12513 if test "x${with_crond_dir}" != "xno"; then :
12515 if test "x${with_crond_dir}" = "xyes"; then :
12517 if test -d "/etc/cron.d"; then :
12518 with_crond_dir="/etc/cron.d"
12520 have_crond="no"; with_crond_dir=""
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
12525 $as_echo_n "checking for system crontab dir... " >&6; }
12526 crond_dir="${with_crond_dir}"
12527 if test -n "${crond_dir}"; then :
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
12530 $as_echo "${crond_dir}" >&6; }
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12543 have_crond="disabled"
12550 # Check whether --with-systemd_unit_dir was given.
12551 if test "${with_systemd_unit_dir+set}" = set; then :
12552 withval=$with_systemd_unit_dir;
12554 with_systemd_unit_dir=yes
12557 if test "x${with_systemd_unit_dir}" != "xno"; then :
12559 if test "x${with_systemd_unit_dir}" = "xyes"; then :
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
12564 $as_echo_n "checking for systemd... " >&6; }
12566 if test -n "$systemd_CFLAGS"; then
12567 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
12568 elif test -n "$PKG_CONFIG"; then
12569 if test -n "$PKG_CONFIG" && \
12570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12571 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12574 test $ac_status = 0; }; then
12575 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
12576 test "x$?" != "x0" && pkg_failed=yes
12583 if test -n "$systemd_LIBS"; then
12584 pkg_cv_systemd_LIBS="$systemd_LIBS"
12585 elif test -n "$PKG_CONFIG"; then
12586 if test -n "$PKG_CONFIG" && \
12587 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12588 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12591 test $ac_status = 0; }; then
12592 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
12593 test "x$?" != "x0" && pkg_failed=yes
12603 if test $pkg_failed = yes; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12607 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12608 _pkg_short_errors_supported=yes
12610 _pkg_short_errors_supported=no
12612 if test $_pkg_short_errors_supported = yes; then
12613 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
12615 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
12617 # Put the nasty error message in config.log where it belongs
12618 echo "$systemd_PKG_ERRORS" >&5
12621 with_systemd_unit_dir=""
12623 elif test $pkg_failed = untried; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12627 with_systemd_unit_dir=""
12630 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
12631 systemd_LIBS=$pkg_cv_systemd_LIBS
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633 $as_echo "yes" >&6; }
12635 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
12642 $as_echo_n "checking for systemd system unit dir... " >&6; }
12643 systemd_system_unit_dir="${with_systemd_unit_dir}"
12644 if test -n "${systemd_system_unit_dir}"; then :
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
12647 $as_echo "${systemd_system_unit_dir}" >&6; }
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12660 have_systemd="disabled"
12666 test -d lib || mkdir lib
12667 test -d include || mkdir include
12668 test -d include/linux || mkdir include/linux
12669 test -d include/asm || mkdir include/asm
12670 if test -z "$UUID_CMT" ; then
12671 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
12672 lib/uuid/uuid_types.h"
12674 if test -z "$BLKID_CMT" ; then
12675 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
12676 lib/blkid/blkid_types.h"
12678 for i in MCONFIG Makefile \
12679 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
12680 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
12681 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
12682 $uuid_out_list $blkid_out_list lib/support/Makefile \
12683 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
12684 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
12685 debugfs/Makefile tests/Makefile tests/progs/Makefile \
12686 resize/Makefile doc/Makefile po/Makefile.in scrub/Makefile; do
12687 if test -d `dirname ${srcdir}/$i` ; then
12688 outlist="$outlist $i"
12691 ac_config_files="$ac_config_files $outlist"
12693 cat >confcache <<\_ACEOF
12694 # This file is a shell script that caches the results of configure
12695 # tests run on this system so they can be shared between configure
12696 # scripts and configure runs, see configure's option --config-cache.
12697 # It is not useful on other systems. If it contains results you don't
12698 # want to keep, you may remove or edit it.
12700 # config.status only pays attention to the cache file if you give it
12701 # the --recheck option to rerun configure.
12703 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12704 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12705 # following values.
12709 # The following way of writing the cache mishandles newlines in values,
12710 # but we know of no workaround that is simple, portable, and efficient.
12711 # So, we kill variables containing newlines.
12712 # Ultrix sh set writes to stderr and can't be redirected directly,
12713 # and sets the high bit in the cache file unless we assign to the vars.
12715 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12716 eval ac_val=\$$ac_var
12720 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12721 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12724 _ | IFS | as_nl) ;; #(
12725 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12726 *) { eval $ac_var=; unset $ac_var;} ;;
12732 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12733 *${as_nl}ac_space=\ *)
12734 # `set' does not quote correctly, so add quotes: double-quote
12735 # substitution turns \\\\ into \\, and sed turns \\ into \.
12738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12741 # `set' quotes correctly as required by POSIX, so do not add quotes.
12742 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12751 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12753 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12755 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12756 if test -w "$cache_file"; then
12757 if test "x$cache_file" != "x/dev/null"; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12759 $as_echo "$as_me: updating cache $cache_file" >&6;}
12760 if test ! -f "$cache_file" || test -h "$cache_file"; then
12761 cat confcache >"$cache_file"
12763 case $cache_file in #(
12765 mv -f confcache "$cache_file"$$ &&
12766 mv -f "$cache_file"$$ "$cache_file" ;; #(
12768 mv -f confcache "$cache_file" ;;
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12774 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12779 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12780 # Let make expand exec_prefix.
12781 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12783 DEFS=-DHAVE_CONFIG_H
12788 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12789 # 1. Remove the extension, and $U if already installed.
12790 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12791 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12792 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12793 # will be set to the directory where LIBOBJS objects are built.
12794 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12795 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12797 LIBOBJS=$ac_libobjs
12799 LTLIBOBJS=$ac_ltlibobjs
12804 : "${CONFIG_STATUS=./config.status}"
12806 ac_clean_files_save=$ac_clean_files
12807 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12809 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12811 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12813 # Generated by $as_me.
12814 # Run this file to recreate the current configuration.
12815 # Compiler output produced by configure, useful for debugging
12816 # configure, is in config.log if it exists.
12819 ac_cs_recheck=false
12822 SHELL=\${CONFIG_SHELL-$SHELL}
12825 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12826 ## -------------------- ##
12827 ## M4sh Initialization. ##
12828 ## -------------------- ##
12830 # Be more Bourne compatible
12831 DUALCASE=1; export DUALCASE # for MKS sh
12832 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12835 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12836 # is contrary to our usage. Disable this feature.
12837 alias -g '${1+"$@"}'='"$@"'
12838 setopt NO_GLOB_SUBST
12840 case `(set -o) 2>/dev/null` in #(
12852 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12853 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12854 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12855 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12856 # Prefer a ksh shell builtin over an external printf program on Solaris,
12857 # but without wasting forks for bash or zsh.
12858 if test -z "$BASH_VERSION$ZSH_VERSION" \
12859 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12860 as_echo='print -r --'
12861 as_echo_n='print -rn --'
12862 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12863 as_echo='printf %s\n'
12864 as_echo_n='printf %s'
12866 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12867 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12868 as_echo_n='/usr/ucb/echo -n'
12870 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12871 as_echo_n_body='eval
12875 expr "X$arg" : "X\\(.*\\)$as_nl";
12876 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12878 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12880 export as_echo_n_body
12881 as_echo_n='sh -c $as_echo_n_body as_echo'
12883 export as_echo_body
12884 as_echo='sh -c $as_echo_body as_echo'
12887 # The user is always right.
12888 if test "${PATH_SEPARATOR+set}" != set; then
12890 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12891 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12898 # We need space, tab and new line, in precisely that order. Quoting is
12899 # there to prevent editors from complaining about space-tab.
12900 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12901 # splitting by setting IFS to empty value.)
12904 # Find who we are. Look in the path if we contain no directory separator.
12907 *[\\/]* ) as_myself=$0 ;;
12908 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12912 test -z "$as_dir" && as_dir=.
12913 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12919 # We did not find ourselves, most probably we were run as `sh COMMAND'
12920 # in which case we are not to be found in the path.
12921 if test "x$as_myself" = x; then
12924 if test ! -f "$as_myself"; then
12925 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12929 # Unset variables that we do not need and which cause bugs (e.g. in
12930 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12931 # suppresses any "Segmentation fault" message there. '((' could
12932 # trigger a bug in pdksh 5.2.14.
12933 for as_var in BASH_ENV ENV MAIL MAILPATH
12934 do eval test x\${$as_var+set} = xset \
12935 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12948 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12951 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12952 # ----------------------------------------
12953 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12954 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12955 # script with STATUS, using 1 if that was 0.
12958 as_status=$1; test $as_status -eq 0 && as_status=1
12960 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12961 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12963 $as_echo "$as_me: error: $2" >&2
12964 as_fn_exit $as_status
12968 # as_fn_set_status STATUS
12969 # -----------------------
12970 # Set $? to STATUS, without forking.
12971 as_fn_set_status ()
12974 } # as_fn_set_status
12976 # as_fn_exit STATUS
12977 # -----------------
12978 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12982 as_fn_set_status $1
12988 # Portably unset VAR.
12991 { eval $1=; unset $1;}
12993 as_unset=as_fn_unset
12994 # as_fn_append VAR VALUE
12995 # ----------------------
12996 # Append the text in VALUE to the end of the definition contained in VAR. Take
12997 # advantage of any shell optimizations that allow amortized linear growth over
12998 # repeated appends, instead of the typical quadratic growth present in naive
13000 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13001 eval 'as_fn_append ()
13012 # as_fn_arith ARG...
13013 # ------------------
13014 # Perform arithmetic evaluation on the ARGs, and store the result in the
13015 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13016 # must be portable across $(()) and expr.
13017 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13018 eval 'as_fn_arith ()
13025 as_val=`expr "$@" || test $? -eq 1`
13030 if expr a : '\(a\)' >/dev/null 2>&1 &&
13031 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13037 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13038 as_basename=basename
13043 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13049 as_me=`$as_basename -- "$0" ||
13050 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13051 X"$0" : 'X\(//\)$' \| \
13052 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13054 sed '/^.*\/\([^/][^/]*\)\/*$/{
13068 # Avoid depending upon Character Ranges.
13069 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13070 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13071 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13072 as_cr_digits='0123456789'
13073 as_cr_alnum=$as_cr_Letters$as_cr_digits
13075 ECHO_C= ECHO_N= ECHO_T=
13076 case `echo -n x` in #(((((
13078 case `echo 'xy\c'` in
13079 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13081 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13088 rm -f conf$$ conf$$.exe conf$$.file
13089 if test -d conf$$.dir; then
13090 rm -f conf$$.dir/conf$$.file
13093 mkdir conf$$.dir 2>/dev/null
13095 if (echo >conf$$.file) 2>/dev/null; then
13096 if ln -s conf$$.file conf$$ 2>/dev/null; then
13098 # ... but there are two gotchas:
13099 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13100 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13101 # In both cases, we have to default to `cp -pR'.
13102 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13104 elif ln conf$$.file conf$$ 2>/dev/null; then
13112 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13113 rmdir conf$$.dir 2>/dev/null
13118 # Create "$as_dir" as a directory, including parents if necessary.
13123 -*) as_dir=./$as_dir;;
13125 test -d "$as_dir" || eval $as_mkdir_p || {
13129 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13130 *) as_qdir=$as_dir;;
13132 as_dirs="'$as_qdir' $as_dirs"
13133 as_dir=`$as_dirname -- "$as_dir" ||
13134 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13135 X"$as_dir" : 'X\(//\)[^/]' \| \
13136 X"$as_dir" : 'X\(//\)$' \| \
13137 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13138 $as_echo X"$as_dir" |
13139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13143 /^X\(\/\/\)[^/].*/{
13156 test -d "$as_dir" && break
13158 test -z "$as_dirs" || eval "mkdir $as_dirs"
13159 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13163 if mkdir -p . 2>/dev/null; then
13164 as_mkdir_p='mkdir -p "$as_dir"'
13166 test -d ./-p && rmdir ./-p
13171 # as_fn_executable_p FILE
13172 # -----------------------
13173 # Test if FILE is an executable regular file.
13174 as_fn_executable_p ()
13176 test -f "$1" && test -x "$1"
13177 } # as_fn_executable_p
13178 as_test_x='test -x'
13179 as_executable_p=as_fn_executable_p
13181 # Sed expression to map a string onto a valid CPP name.
13182 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13184 # Sed expression to map a string onto a valid variable name.
13185 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13189 ## ----------------------------------- ##
13190 ## Main body of $CONFIG_STATUS script. ##
13191 ## ----------------------------------- ##
13193 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13196 # Save the log message, to keep $0 and so on meaningful, and to
13197 # report actual input values of CONFIG_FILES etc. instead of their
13198 # values after options handling.
13200 This file was extended by $as_me, which was
13201 generated by GNU Autoconf 2.69. Invocation command line was
13203 CONFIG_FILES = $CONFIG_FILES
13204 CONFIG_HEADERS = $CONFIG_HEADERS
13205 CONFIG_LINKS = $CONFIG_LINKS
13206 CONFIG_COMMANDS = $CONFIG_COMMANDS
13209 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13214 case $ac_config_files in *"
13215 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13218 case $ac_config_headers in *"
13219 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13224 # Files that config.status was made for.
13225 config_files="$ac_config_files"
13226 config_headers="$ac_config_headers"
13227 config_commands="$ac_config_commands"
13231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13233 \`$as_me' instantiates files and other configuration actions
13234 from templates according to the current configuration. Unless the files
13235 and actions are specified as TAGs, all are instantiated by default.
13237 Usage: $0 [OPTION]... [TAG]...
13239 -h, --help print this help, then exit
13240 -V, --version print version number and configuration settings, then exit
13241 --config print configuration, then exit
13242 -q, --quiet, --silent
13243 do not print progress messages
13244 -d, --debug don't remove temporary files
13245 --recheck update $as_me by reconfiguring in the same conditions
13246 --file=FILE[:TEMPLATE]
13247 instantiate the configuration file FILE
13248 --header=FILE[:TEMPLATE]
13249 instantiate the configuration header FILE
13251 Configuration files:
13254 Configuration headers:
13257 Configuration commands:
13260 Report bugs to the package provider."
13263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13264 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13267 configured by $0, generated by GNU Autoconf 2.69,
13268 with options \\"\$ac_cs_config\\"
13270 Copyright (C) 2012 Free Software Foundation, Inc.
13271 This config.status script is free software; the Free Software Foundation
13272 gives unlimited permission to copy, distribute and modify it."
13279 test -n "\$AWK" || AWK=awk
13282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13283 # The default lists apply if the user does not specify any file.
13289 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13290 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13294 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13306 # Handling of the options.
13307 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13309 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13310 $as_echo "$ac_cs_version"; exit ;;
13311 --config | --confi | --conf | --con | --co | --c )
13312 $as_echo "$ac_cs_config"; exit ;;
13313 --debug | --debu | --deb | --de | --d | -d )
13315 --file | --fil | --fi | --f )
13318 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13319 '') as_fn_error $? "missing file argument" ;;
13321 as_fn_append CONFIG_FILES " '$ac_optarg'"
13322 ac_need_defaults=false;;
13323 --header | --heade | --head | --hea )
13326 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13328 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13329 ac_need_defaults=false;;
13331 # Conflict between --help and --header
13332 as_fn_error $? "ambiguous option: \`$1'
13333 Try \`$0 --help' for more information.";;
13334 --help | --hel | -h )
13335 $as_echo "$ac_cs_usage"; exit ;;
13336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13337 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13340 # This is an error.
13341 -*) as_fn_error $? "unrecognized option: \`$1'
13342 Try \`$0 --help' for more information." ;;
13344 *) as_fn_append ac_config_targets " $1"
13345 ac_need_defaults=false ;;
13351 ac_configure_extra_args=
13353 if $ac_cs_silent; then
13355 ac_configure_extra_args="$ac_configure_extra_args --silent"
13359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13360 if \$ac_cs_recheck; then
13361 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13363 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13364 CONFIG_SHELL='$SHELL'
13365 export CONFIG_SHELL
13370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13374 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13375 ## Running $as_me. ##
13381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13385 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13386 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
13387 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
13388 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13389 LINGUAS="${LINGUAS-%UNSET%}"
13394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13396 # Handling of arguments.
13397 for ac_config_target in $ac_config_targets
13399 case $ac_config_target in
13400 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
13401 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13402 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
13404 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13409 # If the user did not use the arguments to specify the items to instantiate,
13410 # then the envvar interface is used. Set only those that are not.
13411 # We use the long form for the default assignment because of an extremely
13412 # bizarre bug on SunOS 4.1.3.
13413 if $ac_need_defaults; then
13414 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13415 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13416 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13419 # Have a temporary directory for convenience. Make it in the build tree
13420 # simply because there is no reason against having it here, and in addition,
13421 # creating and moving files from /tmp can sometimes cause problems.
13422 # Hook for its removal unless debugging.
13423 # Note that there is a small window in which the directory will not be cleaned:
13424 # after its creation but before its name has been assigned to `$tmp'.
13428 trap 'exit_status=$?
13429 : "${ac_tmp:=$tmp}"
13430 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13432 trap 'as_fn_exit 1' 1 2 13 15
13434 # Create a (secure) tmp directory for tmp files.
13437 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13441 tmp=./conf$$-$RANDOM
13442 (umask 077 && mkdir "$tmp")
13443 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13446 # Set up the scripts for CONFIG_FILES section.
13447 # No need to generate them if there are no CONFIG_FILES.
13448 # This happens for instance with `./config.status config.h'.
13449 if test -n "$CONFIG_FILES"; then
13451 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13452 ac_cs_awk_getline=:
13453 ac_cs_awk_pipe_init=
13454 ac_cs_awk_read_file='
13455 while ((getline aline < (F[key])) > 0)
13458 ac_cs_awk_pipe_fini=
13460 ac_cs_awk_getline=false
13461 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13462 ac_cs_awk_read_file='
13464 print "cat " F[key] " &&"
13465 '$ac_cs_awk_pipe_init
13466 # The final `:' finishes the AND list.
13467 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
13469 ac_cr=`echo X | tr X '\015'`
13470 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13471 # But we know of no other shell where ac_cr would be empty at this
13472 # point, so we can use a bashism as a fallback.
13473 if test "x$ac_cr" = x; then
13474 eval ac_cr=\$\'\\r\'
13476 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13477 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13480 ac_cs_awk_cr=$ac_cr
13483 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13486 # Create commands to substitute file output variables.
13488 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
13489 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
13490 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
13493 } >conf$$files.sh &&
13494 . ./conf$$files.sh ||
13495 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13496 rm -f conf$$files.sh
13499 echo "cat >conf$$subs.awk <<_ACEOF" &&
13500 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13502 } >conf$$subs.sh ||
13503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13504 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13506 for ac_last_try in false false false false false :; do
13507 . ./conf$$subs.sh ||
13508 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13510 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13511 if test $ac_delim_n = $ac_delim_num; then
13513 elif $ac_last_try; then
13514 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13519 rm -f conf$$subs.sh
13521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13522 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13526 s/^/S["/; s/!.*/"]=/
13536 s/\(.\{148\}\)..*/\1/
13538 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13543 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13550 s/\(.\{148\}\)..*/\1/
13552 s/["\\]/\\&/g; s/^/"/; s/$/"/
13556 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13561 ' <conf$$subs.awk | sed '
13566 ' >>$CONFIG_STATUS || ac_write_fail=1
13567 rm -f conf$$subs.awk
13568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13570 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13571 for (key in S) S_is_set[key] = 1
13573 \$ac_cs_awk_pipe_init
13577 nfields = split(line, field, "@")
13579 len = length(field[1])
13580 for (i = 2; i < nfields; i++) {
13582 keylen = length(key)
13583 if (S_is_set[key]) {
13585 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13586 len += length(value) + length(field[++i])
13591 if (nfields == 3 && !substed) {
13593 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
13594 \$ac_cs_awk_read_file
13600 \$ac_cs_awk_pipe_fini
13603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13604 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13605 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13608 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13609 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13612 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13613 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13614 # trailing colons and then remove the whole line if VPATH becomes empty
13615 # (actually we leave an empty line to preserve line numbers).
13616 if test "x$srcdir" = x.; then
13617 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13636 fi # test -n "$CONFIG_FILES"
13638 # Set up the scripts for CONFIG_HEADERS section.
13639 # No need to generate them if there are no CONFIG_HEADERS.
13640 # This happens for instance with `./config.status Makefile'.
13641 if test -n "$CONFIG_HEADERS"; then
13642 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13646 # Transform confdefs.h into an awk script `defines.awk', embedded as
13647 # here-document in config.status, that substitutes the proper values into
13648 # config.h.in to produce config.h.
13650 # Create a delimiter string that does not exist in confdefs.h, to ease
13651 # handling of long lines.
13653 for ac_last_try in false false :; do
13654 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13655 if test -z "$ac_tt"; then
13657 elif $ac_last_try; then
13658 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13660 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13664 # For the awk script, D is an array of macro values keyed by name,
13665 # likewise P contains macro parameters if any. Preserve backslash
13666 # newline sequences.
13668 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13670 s/.\{148\}/&'"$ac_delim"'/g
13673 s/^[ ]*#[ ]*define[ ][ ]*/ /
13680 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13682 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13686 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13687 D["\1"]=" \3\\\\\\n"\\/p
13689 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13694 s/.\{148\}/&'"$ac_delim"'/g
13699 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13702 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13704 ' <confdefs.h | sed '
13705 s/'"$ac_delim"'/"\\\
13706 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13709 for (key in D) D_is_set[key] = 1
13712 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13714 split(line, arg, " ")
13715 if (arg[1] == "#") {
13719 defundef = substr(arg[1], 2)
13722 split(mac1, mac2, "(") #)
13724 prefix = substr(line, 1, index(line, defundef) - 1)
13725 if (D_is_set[macro]) {
13726 # Preserve the white space surrounding the "#".
13727 print prefix "define", macro P[macro] D[macro]
13730 # Replace #undef with comments. This is necessary, for example,
13731 # in the case of _POSIX_SOURCE, which is predefined and required
13732 # on some systems where configure will not decide to define it.
13733 if (defundef == "undef") {
13734 print "/*", prefix defundef, macro, "*/"
13742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13743 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13744 fi # test -n "$CONFIG_HEADERS"
13747 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13752 :[FHLC]) ac_mode=$ac_tag; continue;;
13754 case $ac_mode$ac_tag in
13756 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13757 :[FH]-) ac_tag=-:-;;
13758 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13775 -) ac_f="$ac_tmp/stdin";;
13776 *) # Look for the file first in the build tree, then in the source tree
13777 # (if the path is not absolute). The absolute path cannot be DOS-style,
13778 # because $ac_f cannot contain `:'.
13782 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13784 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13786 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13787 as_fn_append ac_file_inputs " '$ac_f'"
13790 # Let's still pretend it is `configure' which instantiates (i.e., don't
13791 # use $as_me), people would be surprised to read:
13792 # /* config.h. Generated by config.status. */
13793 configure_input='Generated from '`
13794 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13796 if test x"$ac_file" != x-; then
13797 configure_input="$ac_file. $configure_input"
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13799 $as_echo "$as_me: creating $ac_file" >&6;}
13801 # Neutralize special characters interpreted by sed in replacement strings.
13802 case $configure_input in #(
13803 *\&* | *\|* | *\\* )
13804 ac_sed_conf_input=`$as_echo "$configure_input" |
13805 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13806 *) ac_sed_conf_input=$configure_input;;
13810 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13811 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13816 ac_dir=`$as_dirname -- "$ac_file" ||
13817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13818 X"$ac_file" : 'X\(//\)[^/]' \| \
13819 X"$ac_file" : 'X\(//\)$' \| \
13820 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13821 $as_echo X"$ac_file" |
13822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13826 /^X\(\/\/\)[^/].*/{
13839 as_dir="$ac_dir"; as_fn_mkdir_p
13843 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13845 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13846 # A ".." for each directory in $ac_dir_suffix.
13847 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13848 case $ac_top_builddir_sub in
13849 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13850 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13853 ac_abs_top_builddir=$ac_pwd
13854 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13855 # for backward compatibility:
13856 ac_top_builddir=$ac_top_build_prefix
13859 .) # We are building in place.
13861 ac_top_srcdir=$ac_top_builddir_sub
13862 ac_abs_top_srcdir=$ac_pwd ;;
13863 [\\/]* | ?:[\\/]* ) # Absolute name.
13864 ac_srcdir=$srcdir$ac_dir_suffix;
13865 ac_top_srcdir=$srcdir
13866 ac_abs_top_srcdir=$srcdir ;;
13867 *) # Relative name.
13868 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13869 ac_top_srcdir=$ac_top_build_prefix$srcdir
13870 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13872 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13882 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13883 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13885 ac_MKDIR_P=$MKDIR_P
13887 [\\/$]* | ?:[\\/]* ) ;;
13888 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13893 # If the template does not know about datarootdir, expand it.
13894 # FIXME: This hack should be removed a few years after 2.60.
13895 ac_datarootdir_hack=; ac_datarootdir_seen=
13906 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13907 *datarootdir*) ac_datarootdir_seen=yes;;
13908 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13910 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13913 ac_datarootdir_hack='
13914 s&@datadir@&$datadir&g
13915 s&@docdir@&$docdir&g
13916 s&@infodir@&$infodir&g
13917 s&@localedir@&$localedir&g
13918 s&@mandir@&$mandir&g
13919 s&\\\${datarootdir}&$datarootdir&g' ;;
13923 # Neutralize VPATH when `$srcdir' = `.'.
13924 # Shell code in configure.ac might set extrasub.
13925 # FIXME: do we really want to maintain this feature?
13926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13927 ac_sed_extra="$ac_vpsub
13930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13932 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13933 s|@configure_input@|$ac_sed_conf_input|;t t
13934 s&@top_builddir@&$ac_top_builddir_sub&;t t
13935 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13936 s&@srcdir@&$ac_srcdir&;t t
13937 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13938 s&@top_srcdir@&$ac_top_srcdir&;t t
13939 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13940 s&@builddir@&$ac_builddir&;t t
13941 s&@abs_builddir@&$ac_abs_builddir&;t t
13942 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13943 s&@INSTALL@&$ac_INSTALL&;t t
13944 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13945 $ac_datarootdir_hack
13947 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
13948 if $ac_cs_awk_getline; then
13949 $AWK -f "$ac_tmp/subs.awk"
13951 $AWK -f "$ac_tmp/subs.awk" | $SHELL
13953 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13955 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13956 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13957 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13958 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13960 which seems to be undefined. Please make sure it is defined" >&5
13961 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13962 which seems to be undefined. Please make sure it is defined" >&2;}
13964 rm -f "$ac_tmp/stdin"
13966 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13967 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13969 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13975 if test x"$ac_file" != x-; then
13977 $as_echo "/* $configure_input */" \
13978 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13979 } >"$ac_tmp/config.h" \
13980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13981 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13983 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13986 mv "$ac_tmp/config.h" "$ac_file" \
13987 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13990 $as_echo "/* $configure_input */" \
13991 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13992 || as_fn_error $? "could not create -" "$LINENO" 5
13996 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13997 $as_echo "$as_me: executing $ac_file commands" >&6;}
14002 case $ac_file$ac_mode in
14003 "po-directories":C)
14004 for ac_file in $CONFIG_FILES; do
14005 # Support "outfile[:infile[:infile...]]"
14007 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14009 # PO directories have a Makefile.in generated from Makefile.in.in.
14010 case "$ac_file" in */Makefile.in)
14011 # Adjust a relative srcdir.
14012 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14013 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14014 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14015 # In autoconf-2.13 it is called $ac_given_srcdir.
14016 # In autoconf-2.50 it is called $srcdir.
14017 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14018 case "$ac_given_srcdir" in
14019 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14020 /*) top_srcdir="$ac_given_srcdir" ;;
14021 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14023 # Treat a directory as a PO directory if and only if it has a
14024 # POTFILES.in file. This allows packages to have multiple PO
14025 # directories under different names or in different locations.
14026 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14027 rm -f "$ac_dir/POTFILES"
14028 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14029 gt_tab=`printf '\t'`
14030 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"
14031 POMAKEFILEDEPS="POTFILES.in"
14032 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14033 # on $ac_dir but don't depend on user-specified configuration
14035 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14036 # The LINGUAS file contains the set of available languages.
14037 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14038 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14040 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14041 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14043 # The set of available languages was given in configure.in.
14044 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
14047 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14048 # Compute UPDATEPOFILES
14049 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14050 # Compute DUMMYPOFILES
14051 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14053 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14054 case "$ac_given_srcdir" in
14056 *) srcdirpre='$(srcdir)/' ;;
14062 for lang in $ALL_LINGUAS; do
14063 POFILES="$POFILES $srcdirpre$lang.po"
14064 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14065 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14066 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14068 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14069 # environment variable.
14071 if test -n "$ALL_LINGUAS"; then
14072 for presentlang in $ALL_LINGUAS; do
14074 if test "%UNSET%" != "$LINGUAS"; then
14075 desiredlanguages="$LINGUAS"
14077 desiredlanguages="$ALL_LINGUAS"
14079 for desiredlang in $desiredlanguages; do
14080 # Use the presentlang catalog if desiredlang is
14081 # a. equal to presentlang, or
14082 # b. a variant of presentlang (because in this case,
14083 # presentlang can be used as a fallback for messages
14084 # which are not translated in the desiredlang catalog).
14085 case "$desiredlang" in
14086 "$presentlang"*) useit=yes;;
14089 if test $useit = yes; then
14090 INST_LINGUAS="$INST_LINGUAS $presentlang"
14095 if test -n "$INST_LINGUAS"; then
14096 for lang in $INST_LINGUAS; do
14097 CATALOGS="$CATALOGS $lang.gmo"
14100 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14101 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"
14102 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14103 if test -f "$f"; then
14105 *.orig | *.bak | *~) ;;
14106 *) cat "$f" >> "$ac_dir/Makefile" ;;
14121 ac_clean_files=$ac_clean_files_save
14123 test $ac_write_fail = 0 ||
14124 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14127 # configure is writing to config.log, and then calls config.status.
14128 # config.status does its own redirection, appending to config.log.
14129 # Unfortunately, on DOS this fails, as config.log is still kept open
14130 # by configure, so config.status won't be able to write to it; its
14131 # output is simply discarded. So we exec the FD to /dev/null,
14132 # effectively closing config.log, so it can be properly (re)opened and
14133 # appended to by config.status. When coming back to configure, we
14134 # need to make the FD available again.
14135 if test "$no_create" != yes; then
14137 ac_config_status_args=
14138 test "$silent" = yes &&
14139 ac_config_status_args="$ac_config_status_args --quiet"
14141 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14143 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14144 # would make configure fail if this is the last instruction.
14145 $ac_cs_success || as_fn_exit 1
14147 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14149 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14152 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi